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

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

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ICt,yLC,FJq,R4S,O55,LJ4,yB,wHo,P_L,Ro,JL,KJ_,USt,qS,Eq,rLq,joL,oA5,Ge,QB,xSW,lCW,f5,EAo,YqB,pHq,MWq,dS5,aCB,Bqq,C_C,cLS,$So,e4q,TqH,VW_,Re,JM,tM,IRC,PG,K_,yMJ,uu,Qg,FMq,RnL,kP,dc,vPB,Uz_,rMC,BG,Nc4,hnW,xzq,bu,lRo,uWq,EPo,qOS,GaW,sO,je_,Vg,XGW,fRA,zn5,xy,kaL,dzL,he,pGC,Ka,mze,MfS,$zA,H_W,enL,Qa,VfL,seC,Z_o,gP_,IQC,D8A,F1q,L1e,JeC,SbC,PRe,U8H,hZq,lQt,x8B,cC,uY_,YbA,WC,fQt,pCe,koq,Mg4,d8L,zZB,BC,yeL,Ae,$y,bR,aQJ,eg,CRL,cee,W1L,In,BG4,iaq,$8_,Ha_,baJ,eZ5,TGt,sTe,sb,Zaq,I0W,Dgo,RCW,SZ,LHq,vsB,P$,Pa_,
rVq,w$e,jnq,Noo,hC_,X$A,uj_,Yxq,nse,p$W,MZC,zCq,cVq,WHJ,iSL,$go,eCW,sno,VZL,gsJ,yW4,F4e,JWS,K4L,ks,rWJ,oQA,Nj5,ia,ba,eZ,yr,Fy,RB,XdA,Pd,YkJ,pdq,MY4,zDH,kdW,hW,d_4,li,ui,q_,Gd,cWB,W4W,Cie,BjW,ijo,$_4,bjq,HjL,eDe,sB_,fj,YQ,VY_,Zjt,gQq,yYC,IOq,DRH,F2H,RqA,Bd,ii,AW,$Q,Hd,L24,eY,wB_,K2W,sk,URH,rYq,jd_,Zt,oBq,NBt,hqt,Id,uOA,DO,G_q,XBq,FO,Ytq,QdJ,fOA,nBo,pB_,mRq,LG,M$H,zqq,JY,k_L,dRB,wB,vB,S$,tY,aOC,W2q,cYS,PB,BB5,iGB,AY_,Ut,j$,od,NR,hY,xB,$RL,bGo,eqC,TB_,V$B,gBq,ZGH,IZe,yvJ,DJq,F5L,RBe,qR,OW5,L5J,w5J,vWC,
SWt,tTq,PDS,K5W,UJS,QE,YB,rvt,pG,m2,jDA,hBJ,xJe,lZL,qWW,EWH,G6A,fZe,nWA,p5q,mJe,MT_,zB5,k6q,W5C,dB,CDq,BMH,iWJ,AvB,$JL,bWH,eB5,LOW,Ju_,wmq,tRe,PSA,AY,KOH,jbA,hkA,xaL,laJ,u55,quB,EM4,GOe,Xm5,Yut,faL,oMt,nMq,pmt,maW,MR5,zkW,kOS,da5,aa_,cu_,ieS,CSB,beq,AuJ,$aq,TR5,sbq,VRB,HeW,gM_,ek5,yIq,Jv,D3C,wM,ST,FEH,Oi_,LEq,v4_,hYH,tjW,SfB,KEt,rIC,PFt,GBe,u8e,XVC,QUH,YfL,f4A,n45,m3q,pV4,MjH,zYL,kBt,d3B,cIB,CFH,BZt,ii_,$3_,AI4,FwW,UW,RXq,LwH,JG_,wiA,vf5,SJH,PPC,Kwq,UC5,uD,qJ,rGA,G6,lFB,Qe,fW,GP4,Q8_,aFe,MJ,CPq,B6t,
bRq,AGt,$CL,c5,HRq,eXH,s8q,VFJ,ZR_,gfH,IT5,y0t,DoA,R5B,$W,sW,vkq,Da,r0A,UoS,N1e,Ou,Le,xoJ,lTB,uGe,Ylq,QCS,fT5,wR,nkq,p1S,moo,z5A,doe,kmB,aTA,lS,A0B,X5,Zvt,T1H,gk4,fe,F$_,ne,pe,Rfo,Ouq,wPC,v7W,mO,tnq,S6W,hfo,xwA,lJA,q6_,Qrt,fJW,n7J,pPB,mwq,Mnt,kM,k8S,Wm,aJq,cOq,W$B,B2B,dw5,zfL,CHt,ab,AO4,efL,buB,VnS,Zu5,g7_,yqC,DMq,RNe,EnA,XuB,QfC,YNH,fMC,eR,nnC,mML,puB,MbW,kUL,V2,aMW,WAe,IU,D4,yj,$Me,AqC,cq_,sfA,DQ4,OZB,RAJ,wrJ,Li,S14,tuC,UQS,rp5,PV,oCA,Uf,rZ,xQq,q1W,GtS,Xro,f6t,nCq,prW,mQJ,jj,zAA,ktW,dQH,a6q,WDo,
Cg5,BNe,iZ_,hI,uF,bZq,HZt,eAH,Vue,ZZq,gCL,LQA,JRC,FQe,viq,S_H,tCt,pi,M3,zB,k4,rRL,jVC,cV,oi_,NUW,hLH,xUB,u1q,q_A,EiH,GG_,l_H,Xx5,BV,Y_q,MCe,iF,mUq,zLH,QVt,kGt,$4,a_B,cRe,WQC,C5q,iDJ,BUq,AR4,HDt,$U4,TUW,y95,F9W,OEq,wg4,J9e,L9_,vIe,S$t,PjW,Urq,K9q,r9J,yV,oI_,NeA,h3B,xr5,lLt,q$A,usJ,EIq,GCA,nIW,Y$o,fL4,mrB,Mk4,z35,dr4,kC_,aLJ,c94,CjA,iEo,bEC,e3q,HEB,QV,Tee,BeJ,DlW,RVJ,OC4,Ld_,zP,J_A,vKe,Pot,r_B,Ulo,hVo,xl4,l5W,uw4,EKo,f5_,Gzt,QQL,YcC,nKS,pW4,MI_,mlS,kzL,zVS,Hi,dlH,c_H,WdL,A_q,yx,FG,$lB,bCS,RC,THC,v1,
SA,t0,gK5,P1,DPC,r1,FXA,RjW,O0L,LXq,No,JSq,wFH,vcJ,t7J,KXH,jqH,NYA,Yk,hj5,xPA,l7q,uMH,qgq,Ec4,GFo,XF5,pv,f7_,ncB,pFL,mPA,M75,zjC,kFq,dP_,a75,cSA,WXt,CXt,BYS,W1,INJ,ytt,Cv,B1,iZ,DXA,FhS,R6_,OgA,Lh5,JtB,wpC,KhA,UXH,rtW,j0_,oe5,H1,Tm,sl,Vx,Ir,yq,DJ,h6_,Rr,lN_,O6,uBL,qM4,Lu,EeL,G4J,Xpt,k4A,aNH,ig5,HgH,bgS,dX4,e6S,Vv5,tE_,FZC,j6_,OQo,U4_,oEL,PP,h0H,U6,lde,uf4,EEH,GvW,X4H,Yv5,or,nEq,p4L,m4H,MEq,z0S,kv4,d4t,fde,WZ4,CVH,ByL,hO,e0o,Tyq,HQq,VEA,ZQ5,Ioe,yf5,gEq,wU4,PO5,UK_,nu,loB,hgJ,xKC,XUJ,YEB,foL,nYo,pUB,
mK4,Mpo,Cu,i4W,$KA,COB,WjH,AfJ,kJS,H45,R2q,suo,Vpo,Z4_,UYt,jPo,KCC,lXq,PpC,zgA,xYe,TVt,FCS,rZt,b45,aoW,dKe,cfo,BVW,tao,ON,kj4,aXo,cZJ,WCC,Cp4,sPA,yUe,D5W,NM,Rb_,JU4,t5S,SAC,KK5,U5H,jkt,owB,NvC,hbB,lyA,x5q,XS,YAC,Qke,X_J,m5B,fyW,M5S,p_q,zbq,kEL,WKq,ayH,cUe,Bv5,AUA,$5q,ebq,Tv_,skq,V5t,gwW,ys_,MM,DvL,Oxe,FPH,LPH,SR5,tz5,UvA,jzH,Wu,CT,xvW,l3A,Bu,iK,u9W,Aq,$n,qRq,bK,E1B,Hu,GrC,XwW,TU,QzC,YRq,f3q,n1H,pwo,MzL,mvB,krH,csq,a3q,WPo,C0_,zpL,BT5,$vC,AsW,dvS,bxJ,Hxq,yG,epH,szJ,TTq,VzJ,ZxB,I$q,g1C,yTA,FT,Fr4,RMe,
D0q,LrC,JT_,wnA,Pyo,rTB,x0o,Em_,R5,QLL,YIC,Jp,f$q,tp,Pr,kpS,vr,rN,d0e,a$S,Wrt,CyH,izJ,$0e,bz5,HzL,eMq,V0W,DVS,IhJ,sLe,FVW,RvH,hp,y4A,O25,ug,LVt,J4q,wq_,vXB,KVB,Sm4,P7q,oXt,NJL,qmB,udH,XqA,mVJ,Mq4,kQq,ahA,c4W,C74,BJ5,i2t,$V4,b2L,H2q,shH,Iw_,yPB,Vq4,FWH,OAB,RrL,DOS,LWA,w2A,vRq,S5A,teH,PbW,KWW,dN,a5,UOL,rPt,jRH,oR5,Hr,lwH,s1,q5C,GIo,X2q,Y5H,p2B,Z6,gN,mO5,IV,kI5,dOB,awJ,D_,iAq,HA5,TCq,sRW,Veq,gRe,I1L,yde,Rde,RV,O9B,wvt,O_,vrJ,Kqq,LD,jaC,JR,SC,tR,orq,hdC,NnL,l1A,uIt,q7e,ErL,x2q,f1J,nro,m2S,zdW,cd_,a1W,
Wq_,BnA,i9_,AdW,$2L,b9A,H9o,edJ,VUJ,TnS,jC,gro,oV,ImS,hR,xi,yrt,DjA,FSA,RPL,OHq,l5,LSC,Jrq,wR4,v_C,tV4,Pko,KSC,Ujq,rrH,o_t,jcL,u5,hPB,lmW,uiB,qsW,E_W,Qce,fm_,X1,pR5,MVt,zPW,k9L,djq,amq,crt,WSo,Ck_,Ys4,n_B,BX5,iHL,HHe,ePS,TX4,scB,tlC,Unt,rgW,jZB,Kzo,uoH,G0B,q4q,XtW,fBW,ptA,Mlt,aBJ,dnJ,Bht,aV,i3H,Ago,cx,$ne,Wx,b34,H3o,etA,sZ_,ThL,VlW,Z3L,g0t,IUq,JKB,vF4,tQL,SDJ,RlL,DLe,K6t,rKq,xL5,lUq,EFe,nFJ,mLA,AR,MQq,k5H,dLL,cK4,iPJ,bPJ,TtL,sO4,VQH,ZPB,Fge,gFC,JwS,wco,v6J,tJJ,eC,PE5,UH4,rwo,j7B,o6q,Nbe,hRB,xH4,ulo,
q2o,Z_,E6L,GhS,Q7A,I1,Xc4,fjt,MJS,Fs,zRA,khJ,dHB,WgA,CE4,aj4,iho,Hhq,eRH,TbS,vg,s7q,IfW,yze,KE,Ret,DE_,F7S,Jzo,w0e,vjq,K7S,jj_,rzq,UEq,ojq,heo,xEq,GVS,lfA,X05,YZC,QjH,ze_,af5,W7W,B7e,sjJ,TC,Zbt,DF_,RSo,Hg,Fw,S3C,UFt,KN5,jJH,oDe,hSC,NEq,xF_,lIe,RQ,At4,tMt,rxA,P3C,yi,EDB,GL5,XfJ,rH,nDB,jI,pfo,mFq,MMq,zSA,kLo,Nl,dFB,aIH,cx4,WNW,C3q,uo,BEe,$FA,HJH,eSB,y2e,Fe_,RQW,OMB,J2q,wbJ,pC,SYq,tro,PCA,Keo,Uye,r2_,opW,hQ_,l85,uNe,YYq,Xbt,f8o,my4,MrS,cW,zQJ,k1L,dyS,WeC,Biq,CC4,A2q,bMq,$K,eQB,TiA,HM5,sm_,VrJ,gpq,ymS,
IgC,DTA,ZMB,FkB,RJo,OYB,Lko,Jm_,w9B,v3L,Syq,txB,UTq,KkL,rm4,o3e,jtS,bo,NQL,lge,G2C,hJ5,YyS,fgH,n3A,p9_,zJe,BQq,iYH,$Te,bYq,Og,st_,IWC,Ffo,L0,Jlo,R95,ONW,Lf_,wyt,CLS,S7,Bp5,iN_,$GC,bNW,HNH,e95,sKL,VoJ,LnS,Di_,RHL,wQq,J5e,vS5,SGC,PzJ,Uiq,j_W,NK_,hHJ,lPo,pQB,zHL,diW,aPL,c5H,Wnq,CzH,icq,A5_,Hc5,eHt,TKq,s_A,VD4,Zcq,gSq,IkA,FFS,LFS,uX,qP,Eg,Jhq,w7q,Qp,SHS,hGq,GRo,qHC,BmB,iFW,AhB,P1_,Nm5,rh4,bFB,HFH,eG_,Tmq,lkA,s2q,ZF5,IVq,Fce,RoJ,aq,Kct,raW,oxt,NOA,xDH,hoe,qKq,G3o,mDt,nxS,QFq,pjH,YKB,Mwt,aV4,gY,I0,HpL,
AaA,TOq,sF4,Zp5,gx5,DN,Ino,Fst,RyL,O1L,Lst,UcL,Kse,Pp,xce,o0,uJq,qdo,EbA,G7W,Xoe,Qlq,Ydq,fnB,nb_,poS,mcq,ht,M4J,zyC,k7q,dc5,anS,ciW,WsJ,C$q,lI,BlC,i1L,Aiq,$c_,b1e,H1o,eyB,TlL,slA,V4S,Z1B,gbW,Ipo,EM,DkH,Rs_,LBW,vu4,PG_,KB4,Ukq,jYC,N5o,hsq,xk5,mh,Gnq,q0e,XJL,QY4,Y0W,pJe,mkt,MtC,knq,$e,ap_,iI,WBB,CGe,bI,B5J,ifo,Ak4,$ke,ev,T5B,VtS,DZo,ybq,RxB,Ooo,Dd,Lbq,Jb_,vaA,tHt,PA4,UZo,rbS,SVC,jpL,lxB,GSq,XA4,Ff,QpW,YVJ,MHH,fxt,pA5,mZe,Wb4,kSB,CAe,io4,$Z4,bot,HoJ,ex_,Tx5,spW,Zot,gaA,IHL,yHq,D7S,Rh4,LiW,vJo,KiB,jxJ,
N_t,lHt,SE,uFA,qhJ,EJ4,Gl5,X3J,YhS,fHe,nJL,p34,m7o,Mco,zhL,kle,d7_,aHW,cHB,CN_,WiH,AHJ,bqW,KQ,Hqt,sxq,T_o,gJC,IcL,yo5,RI4,JoC,LoJ,Fo_,SFC,vHe,roq,t8t,hC,KoW,uxo,NfL,hI_,xdt,lcq,qFS,Gx5,EHt,uV,q4,mdq,QW4,pN5,nH_,YFW,fc5,kxt,aco,Wot,coH,CBJ,$dA,Ao5,HXA,sWe,ZXt,Tfo,gH5,yD5,Ib5,Fu4,LuC,YE,JDW,wT_,tSA,jye,u2H,nQ,Eh4,XTA,dy,fbq,QyW,Yrq,kE,MS4,nhW,pTt,z7W,dNt,kct,WuH,ChC,iL_,ADo,$NB,bLJ,HLq,TSq,syq,Tv,ZLq,Dmo,FT5,gy,RTt,LTe,rXo,Ru,SpB,Um_,tBq,Pe4,hTJ,NdJ,qpo,xmA,E5W,GsW,L4,XYt,Q$A,Ypq,vU,fSC,Jf,mmW,MBq,
zTB,ksS,dmt,cXo,iOC,AX_,HOq,eTt,s$A,g5t,VBB,ZOC,IE4,Dut,FmJ,RF4,O84,Lm4,wl4,S8S,t6o,KmC,P44,Uut,r7t,ov5,Nrt,QGH,GfW,nvA,plS,aEq,c7q,WmJ,C4q,Brt,i8W,b8e,H8q,eFW,sGL,V6q,Z8C,gvq,IDt,yNW,FYo,REL,Or_,f4,vq5,wDS,JN_,LYA,t3o,UhB,PT_,jwB,oqC,hEJ,xhe,lD_,uz_,qTJ,YTW,Eqt,GZ_,XDS,fDq,nq4,pDB,QwS,MK,zEe,dhH,kZB,kY,aDW,WYt,CTq,Bwo,cNe,irW,ANo,$ht,br4,HrB,TwS,swS,V3B,ZrJ,y8q,I9A,LpB,gqH,au,J8B,D6_,OIB,vOA,SoJ,tm4,PYW,KpL,r85,jgt,oO_,hKq,x6q,u3_,EOt,f9L,QgS,Yoo,XLJ,GYC,nO4,ep,pLB,TJ,m6q,Mmo,c8J,CYL,Bgq,iI5,A8W,
$6t,bIW,yM,DX,Vm5,eK4,HIJ,TgL,vN5,Lv4,sgq,OK5,rEJ,jXo,oNS,N9o,hwq,uQt,EN_,XsS,YBS,fA5,nNA,zw4,MdB,kb5,aAq,up,Cso,B9e,iKW,AES,$9B,bKH,HKL,EP,Gj,sXq,Vd5,gNq,DWe,wMJ,KxW,Pw_,UWt,j9o,oo_,NFW,hmJ,xWS,luC,pt,uaW,fuA,noq,XML,Gg4,YjH,Q9e,kge,dW4,auW,ccH,Wxt,CwW,AcH,iwJ,BF5,got,VL4,Ieq,yAC,DsB,OdC,JAq,F04,RcL,rAe,oVA,hce,leJ,q9C,GXW,fee,nVq,pzt,zc4,MKB,msH,kXH,dsB,aet,cAW,W0C,C2C,Bkq,id5,AAJ,$so,Hd_,ecB,Tkq,s35,VKq,Zdq,IqB,yjB,Dqo,FLW,RaJ,OkW,v9A,SnB,PtJ,UqL,KLH,rjB,$z,jiW,o9B,NAA,haq,qnL,urB,E9e,GWe,Xke,
QiA,Yn4,fqq,n9q,pkt,mqA,MPq,zaL,kWC,dq5,aqA,cj_,CtB,WLq,BAW,ikH,Aj4,$qW,bkL,Hko,eaW,TAC,Ik,VPW,Zke,g9L,IKA,yJJ,FG_,RiW,O7C,LGC,JJC,wIC,SSt,tNB,KG5,Rk,jE5,lKq,hiq,Nae,o2B,x$H,E2W,GuH,XIH,QEq,fKS,n2q,pIA,MNS,m$J,zio,ku_,d$J,WGL,Cv_,BaS,i7o,AJL,$$A,ei5,Ta_,UA,Ire,yQC,F8W,L8A,OsL,JQC,wX4,rv,ok,SQ4,ts4,xw,l9,rQW,PfA,K8q,N3o,hUS,xbB,lrA,GwW,QHt,YQB,fro,ntA,pXq,Mso,zUt,kwq,dbJ,ar_,cQt,W8q,EA,CfC,B3_,XP,isH,AQL,$bH,bs5,Hst,eUW,Yw,fV,T3t,sHt,nV,Vso,Zsq,gtB,I2H,Dpe,Fyt,OUt,Sz4,vUC,wOH,t_t,PrL,hzB,r3H,jMt,oUB,
UpH,N0J,xpq,l2B,qzt,EUJ,mK,QMW,YzS,f2B,nUq,pOS,M_q,kkq,c3t,iU5,Cre,M5,WyB,HUL,T0W,zE,sMA,V_A,ZUq,gUq,IlB,DAC,F3e,OyH,L3_,w8o,vlq,K3W,PmW,rnq,jSH,olq,NWt,xAL,llq,uVq,qLq,ElL,GH5,X8A,QS_,YLB,nlC,p8q,dAt,al_,cnA,W3H,CmS,BWB,$w,$A5,HyW,euA,TWA,sSq,VGt,glt,Isq,yBB,DxJ,R1H,O$S,LUq,e5,JB5,wKB,tXW,Pcq,TE,sA,rBq,KUo,jAJ,h1_,o8_,xxB,u_5,Iz,qw5,E8e,GK5,YwS,n8A,yo,mxB,MXJ,z15,kK_,dxS,asH,cBS,WUH,Cct,$xt,b$o,sAC,H$t,TLq,VXA,Z$L,g8W,DIC,Fa4,R_4,La_,JFH,KaA,P6J,Nse,lze,Pw,uUS,qeS,ORW,Kx,ETB,GAJ,QvL,nTq,p64,cFH,
Waq,C6W,Bs5,inq,AFH,bnA,Hnq,Ts5,Vie,e_q,svA,gTo,ZnS,y6H,ROC,DfJ,OB4,LRA,J6q,wE4,vLJ,Sit,PxJ,th4,j4H,hO5,oLo,xfJ,lvq,uv4,u0,qi_,ELt,ER,XEe,GDe,Q4q,fvL,YiB,Mho,zOq,dfA,Qo,c6H,WR_,Cx4,BDB,$fL,HBq,s45,TDC,VhW,ZBB,gLH,Ftt,Kt_,J$W,r$_,jIB,Nzq,hWe,qU_,E$4,GNt,XaJ,QIJ,YUB,pa4,mt_,M2J,zWC,ai4,Wtq,CnS,c$5,i6t,BzL,eWq,Tzq,sI4,V2_,Z6B,g$J,IGq,DBS,Ol4,LIo,J1H,Sa4,vde,KIC,r1q,jNB,odH,N$q,h$J,lGq,xBt,qaW,YaW,mBe,peW,MOS,z$J,kyW,aGC,Hw,WI4,Vo,B$_,A1C,$BL,sNH,ZlL,Dee,R8o,OmA,JyS,whW,vGW,tyA,KlL,UeB,jsH,h84,N8H,oGq,
Fq,lYt,xeq,u05,qXJ,EGo,GTJ,XhJ,QsJ,YX4,nGJ,ph5,meW,My_,z8A,kTe,de_,aY_,cyH,Wl5,B8S,imq,AyH,$eW,bmt,e8q,T8t,sso,gGq,S0,O5_,LJn,wHe,vAg,Sqn,tWO,P_M,Pn,xSf,GO,Kz,ru,lCf,utP,GeP,Qon,XHO,oL,Yqg,fCO,nAu,pHc;ICt=function(){var I,y;return typeof CSS!=="undefined"&&((y=(I=CSS).supports)==null?void 0:y.call(I,"selector(:has(*))"))};
yLC=function(I){return I.visibility!=="hidden"&&I.display!=="none"};
FJq=function(I){if(ICt()||I.tagName!=="DETAILS"?!I.matches(DSS):I.querySelector("summary")!==null)return-1;I=I.getAttribute("tabindex")||"0";return Number(I)};
R4S=function(I){return I.some(function(y){return FJq(y)>0})};
O55=function(I){if(I.textContent||I.ariaLabel)return!0;if(I instanceof HTMLInputElement){if(!I.labels)return!1;I=_.J(I.labels);for(var y=I.next();!y.done;y=I.next())if(y.value.textContent)return!0}return!1};
LJ4=function(I){return I.sort(function(y,D){return FJq(D)-FJq(y)})};
_.JLq=function(I){I=Array.from(I.querySelectorAll(DSS)).filter(function(y){return(yLC(y.style)?yLC(window.getComputedStyle(y)):!1)&&O55(y)});
return R4S(I)?LJ4(I):I};
_.Io=function(I,y){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Io);else{var D=Error().stack;D&&(this.stack=D)}I&&(this.message=String(I));y!==void 0&&(this.cause=y)};
yB=function(){throw Error("E");};
wHo=function(I,y){y=String.fromCharCode.apply(null,y);return I==null?y:I+y};
P_L=function(I){var y=!1;y=y===void 0?!1:y;if(vAB){if(y&&(Sq4?!I.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(I)))throw Error("F");I=(tWq||(tWq=new TextEncoder)).encode(I)}else{for(var D=0,F=new Uint8Array(3*I.length),R=0;R<I.length;R++){var O=I.charCodeAt(R);if(O<128)F[D++]=O;else{if(O<2048)F[D++]=O>>6|192;else{if(O>=55296&&O<=57343){if(O<=56319&&R<I.length){var w=I.charCodeAt(++R);if(w>=56320&&w<=57343){O=(O-55296)*1024+w-56320+65536;F[D++]=O>>18|
240;F[D++]=O>>12&63|128;F[D++]=O>>6&63|128;F[D++]=O&63|128;continue}else R--}if(y)throw Error("F");O=65533}F[D++]=O>>12|224;F[D++]=O>>6&63|128}F[D++]=O&63|128}}I=D===F.length?F:F.subarray(0,D)}return I};
Ro=function(I){_.Ft.setTimeout(function(){throw I;},0)};
_.Oq=function(I,y){return I.lastIndexOf(y,0)==0};
JL=function(I,y){var D=I.length-y.length;return D>=0&&I.indexOf(y,D)==D};
_.wq=function(I){return/^[\s\xa0]*$/.test(I)};
_.SW=function(I,y){return I.indexOf(y)!=-1};
_.PH=function(I,y){return _.SW(I.toLowerCase(),y.toLowerCase())};
_.Uq=function(I,y){var D=0;I=K5(String(I)).split(".");y=K5(String(y)).split(".");for(var F=Math.max(I.length,y.length),R=0;D==0&&R<F;R++){var O=I[R]||"",w=y[R]||"";do{O=/(\d*)(\D*)(.*)/.exec(O)||["","","",""];w=/(\d*)(\D*)(.*)/.exec(w)||["","","",""];if(O[0].length==0&&w[0].length==0)break;D=KJ_(O[1].length==0?0:parseInt(O[1],10),w[1].length==0?0:parseInt(w[1],10))||KJ_(O[2].length==0,w[2].length==0)||KJ_(O[2],w[2]);O=O[3];w=w[3]}while(D==0)}return D};
KJ_=function(I,y){return I<y?-1:I>y?1:0};
_.oo=function(){var I=_.Ft.navigator;return I&&(I=I.userAgent)?I:""};
USt=function(I){if(!hL||!l_)return!1;for(var y=0;y<l_.brands.length;y++){var D=l_.brands[y].brand;if(D&&_.SW(D,I))return!0}return!1};
qS=function(I){return _.SW(_.oo(),I)};
Eq=function(){return hL?!!l_&&l_.brands.length>0:!1};
rLq=function(){return Eq()?!1:qS("Opera")};
joL=function(){return Eq()?!1:qS("Trident")||qS("MSIE")};
oA5=function(){return Eq()?USt("Microsoft Edge"):qS("Edg/")};
Ge=function(){return qS("Firefox")||qS("FxiOS")};
_.Nqo=function(){return qS("Safari")&&!(QB()||(Eq()?0:qS("Coast"))||rLq()||(Eq()?0:qS("Edge"))||oA5()||(Eq()?USt("Opera"):qS("OPR"))||Ge()||qS("Silk")||qS("Android"))};
QB=function(){return Eq()?USt("Chromium"):(qS("Chrome")||qS("CriOS"))&&!(Eq()?0:qS("Edge"))||qS("Silk")};
_.h4B=function(){return qS("Android")&&!(QB()||Ge()||rLq()||qS("Silk"))};
xSW=function(I){var y={};I.forEach(function(D){y[D[0]]=D[1]});
return function(D){return y[D.find(function(F){return F in y})]||""}};
lCW=function(I){var y=_.oo();if(I==="Internet Explorer"){if(joL())if((I=/rv: *([\d\.]*)/.exec(y))&&I[1])y=I[1];else{I="";var D=/MSIE +([\d\.]+)/.exec(y);if(D&&D[1])if(y=/Trident\/(\d.\d)/.exec(y),D[1]=="7.0")if(y&&y[1])switch(y[1]){case "4.0":I="8.0";break;case "5.0":I="9.0";break;case "6.0":I="10.0";break;case "7.0":I="11.0"}else I="7.0";else I=D[1];y=I}else y="";return y}var F=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");D=[];for(var R;R=F.exec(y);)D.push([R[1],R[2],R[3]||void 0]);
y=xSW(D);switch(I){case "Opera":if(rLq())return y(["Version","Opera"]);if(Eq()?USt("Opera"):qS("OPR"))return y(["OPR"]);break;case "Microsoft Edge":if(Eq()?0:qS("Edge"))return y(["Edge"]);if(oA5())return y(["Edg"]);break;case "Chromium":if(QB())return y(["Chrome","CriOS","HeadlessChrome"])}return I==="Firefox"&&Ge()||I==="Safari"&&_.Nqo()||I==="Android Browser"&&_.h4B()||I==="Silk"&&qS("Silk")?(y=D[2])&&y[1]||"":""};
_.utA=function(I){if(Eq()&&I!=="Silk"){var y=l_.brands.find(function(D){return D.brand===I});
if(!y||!y.version)return NaN;y=y.version.split(".")}else{y=lCW(I);if(y==="")return NaN;y=y.split(".")}return y.length===0?NaN:Number(y[0])};
f5=function(){return hL?!!l_&&!!l_.platform:!1};
_.qqH=function(){return f5()?l_.platform==="Android":qS("Android")};
EAo=function(){return qS("iPhone")&&!qS("iPod")&&!qS("iPad")};
_.n5=function(){return EAo()||qS("iPad")||qS("iPod")};
_.GeA=function(){return f5()?l_.platform==="macOS":qS("Macintosh")};
_.XHq=function(){return f5()?l_.platform==="Windows":qS("Windows")};
_.Qo4=function(){return f5()?l_.platform==="Chrome OS":qS("CrOS")};
_.p5=function(I){return I[I.length-1]};
YqB=function(I){for(var y=_.mJ,D=typeof I==="string"?I.split(""):I,F=I.length-1;F>=0;F--)if(F in D&&y.call(void 0,D[F],F,I))return F;return-1};
_.kA=function(I,y){return _.ze(I,y)>=0};
_.fCq=function(I,y){_.kA(I,y)||I.push(y)};
_.WH=function(I,y){y=_.ze(I,y);var D;(D=y>=0)&&_.nA_(I,y);return D};
_.nA_=function(I,y){Array.prototype.splice.call(I,y,1)};
_.C5=function(I){var y=I.length;if(y>0){for(var D=Array(y),F=0;F<y;F++)D[F]=I[F];return D}return[]};
_.AL=function(I,y){for(var D=1;D<arguments.length;D++){var F=arguments[D];if(_.i_(F)){var R=I.length||0,O=F.length||0;I.length=R+O;for(var w=0;w<O;w++)I[R+w]=F[w]}else I.push(F)}};
_.mSS=function(I,y,D,F){Array.prototype.splice.apply(I,pHq(arguments,1))};
pHq=function(I,y,D){return arguments.length<=2?Array.prototype.slice.call(I,y):Array.prototype.slice.call(I,y,D)};
MWq=function(I,y){y=y||I;for(var D=0,F=0,R={};F<I.length;){var O=I[F++],w=_.b_(O)?"o"+_.HH(O):(typeof O).charAt(0)+O;Object.prototype.hasOwnProperty.call(R,w)||(R[w]=!0,y[D++]=O)}y.length=D};
_.ke_=function(I,y,D){D=D||_.z4q;for(var F=0,R=I.length,O;F<R;){var w=F+(R-F>>>1);var v=D(y,I[w]);v>0?F=w+1:(R=w,O=!v)}return O?F:-F-1};
_.sq=function(I,y,D){if(!_.i_(I)||!_.i_(y)||I.length!=y.length)return!1;var F=I.length;D=D||dS5;for(var R=0;R<F;R++)if(!D(I[R],y[R]))return!1;return!0};
_.z4q=function(I,y){return I>y?1:I<y?-1:0};
dS5=function(I,y){return I===y};
aCB=function(I,y,D){y=Array.prototype.splice.call(I,y,1);Array.prototype.splice.call(I,D,0,y[0])};
_.VB=function(I,y){y===void 0&&(y=0);cLS();y=WJJ[y];for(var D=Array(Math.floor(I.length/3)),F=y[64]||"",R=0,O=0;R<I.length-2;R+=3){var w=I[R],v=I[R+1],P=I[R+2],K=y[w>>2];w=y[(w&3)<<4|v>>4];v=y[(v&15)<<2|P>>6];P=y[P&63];D[O++]=K+w+v+P}K=0;P=F;switch(I.length-R){case 2:K=I[R+1],P=y[(K&15)<<2]||F;case 1:I=I[R],D[O]=y[I>>2]+y[(I&3)<<4|K>>4]+P+F}return D.join("")};
Bqq=function(I){var y="";C_C(I,function(D){y+=String.fromCharCode(D)});
return y};
_.i5t=function(I){var y=[];C_C(I,function(D){y.push(D)});
return y};
_.ZC=function(I){var y=I.length,D=y*3/4;D%3?D=Math.floor(D):_.SW("=.",I[y-1])&&(D=_.SW("=.",I[y-2])?D-2:D-1);var F=new Uint8Array(D),R=0;C_C(I,function(O){F[R++]=O});
return R!==D?F.subarray(0,R):F};
C_C=function(I,y){function D(P){for(;F<I.length;){var K=I.charAt(F++),r=gq[K];if(r!=null)return r;if(!_.wq(K))throw Error("H`"+K);}return P}
cLS();for(var F=0;;){var R=D(-1),O=D(0),w=D(64),v=D(64);if(v===64&&R===-1)break;y(R<<2|O>>4);w!=64&&(y(O<<4&240|w>>2),v!=64&&y(w<<6&192|v))}};
cLS=function(){if(!gq){gq={};for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),y=["+/=","+/","-_=","-_.","-_"],D=0;D<5;D++){var F=I.concat(y[D].split(""));WJJ[D]=F;for(var R=0;R<F.length;R++){var O=F[R];gq[O]===void 0&&(gq[O]=R)}}}};
$So=function(I){return ALo[I]||""};
e4q=function(I){if(!b55)return _.ZC(I);I=H5_.test(I)?I.replace(H5_,$So):I;I=atob(I);for(var y=new Uint8Array(I.length),D=0;D<I.length;D++)y[D]=I.charCodeAt(D);return y};
TqH=function(I,y){I.__closure__error__context__984382||(I.__closure__error__context__984382={});I.__closure__error__context__984382.severity=y};
_.DR=function(I){I=Error(I);TqH(I,"warning");return I};
VW_=function(I,y){if(I!=null){var D;var F=(D=soe)!=null?D:soe={};D=F[I]||0;D>=y||(F[I]=D+1,I=Error(),TqH(I,"incident"),Ro(I))}};
Re=function(I,y,D){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(D===void 0?0:D)&&Symbol.for&&I?Symbol.for(I):I!=null?Symbol(I):Symbol():y};
JM=function(I,y){OO||_.L_ in I||Z5o(I,gAS);I[_.L_]|=y};
tM=function(I,y){OO||_.L_ in I||Z5o(I,gAS);I[_.L_]=y};
IRC=function(I){if(4&I)return 512&I?512:1024&I?1024:0};
PG=function(I){JM(I,34);return I};
K_=function(I){JM(I,8192);return I};
yMJ=function(I){JM(I,32);return I};
uu=function(){return typeof BigInt==="function"};
Qg=function(I,y){return y===void 0?I.copyOnWrite!==EO&&!!(2&(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.L_]|0)):!!(2&y)&&I.copyOnWrite!==EO};
_.Mz=function(I,y){if(I!=null)if(typeof I==="string")I=I?new YP(I,n_):_.p_();else if(I.constructor!==YP)if(DzC&&I!=null&&I instanceof Uint8Array)I=I.length?new YP(new Uint8Array(I),n_):_.p_();else{if(!y)throw Error();I=void 0}return I};
FMq=function(I,y){if(typeof y!=="number"||y<0||y>=I.length)throw Error();};
RnL=function(I,y,D){var F=y&128?0:-1,R=I.length,O;if(O=!!R)O=I[R-1],O=O!=null&&typeof O==="object"&&O.constructor===Object;var w=R+(O?-1:0);for(y=y&128?1:0;y<w;y++)D(y-F,I[y]);if(O){I=I[R-1];for(var v in I)!isNaN(v)&&D(+v,I[v])}};
kP=function(I){return I&128?za:void 0};
_.JMA=function(I){var y=O_q;if(!LMq(I)){var D,F;y=(F=(D=typeof y==="function"?y():y)==null?void 0:D.concat("\n"))!=null?F:"";throw Error("K`"+y+"`"+String(I));}};
dc=function(I){I.isGuard_doNotManuallySetPrettyPlease=!0;return I};
vPB=function(){var I=wGC;return dc(function(y){for(var D in I)if(y===I[D]&&!/^[0-9]+$/.test(D))return!0;return!1})};
_.ae=function(I){var y=I;if(SOA(y)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(y))throw Error(String(y));}else if(tfS(y)&&!Number.isSafeInteger(y))throw Error(String(y));return Puo?BigInt(I):I=KMq(I)?I?"1":"0":SOA(I)?I.trim()||"0":String(I)};
Uz_=function(I,y){if(I.length>y.length)return!1;if(I.length<y.length||I===y)return!0;for(var D=0;D<I.length;D++){var F=I[D],R=y[D];if(F>R)return!1;if(F<R)return!0}};
rMC=function(I){var y=I>>>0;WG=y;C_=(I-y)/4294967296>>>0};
BG=function(I){if(I<0){rMC(-I);var y=_.J(je_(WG,C_));I=y.next().value;y=y.next().value;WG=I>>>0;C_=y>>>0}else rMC(I)};
Nc4=function(I){var y=oPB||(oPB=new DataView(new ArrayBuffer(8)));y.setFloat32(0,+I,!0);C_=0;WG=y.getUint32(0,!0)};
hnW=function(I,y){var D=y*4294967296+(I>>>0);return Number.isSafeInteger(D)?D:_.iu(I,y)};
xzq=function(I,y){return _.ae(uu()?BigInt.asUintN(64,(BigInt(y>>>0)<<BigInt(32))+BigInt(I>>>0)):_.iu(I,y))};
bu=function(I,y){var D=y&2147483648;D&&(I=~I+1>>>0,y=~y>>>0,I==0&&(y=y+1>>>0));I=hnW(I,y);return typeof I==="number"?D?-I:I:D?"-"+I:I};
lRo=function(I,y){return uu()?_.ae(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(y))<<BigInt(32))+BigInt.asUintN(32,BigInt(I)))):_.ae(_.ef(I,y))};
uWq=function(I){var y=WG,D=C_,F=D>>31;D=(D<<1|y>>>31)^F;I(y<<1^F,D)};
EPo=function(I,y){return qOS(I,y,bu)};
qOS=function(I,y,D){var F=-(I&1);I=(I>>>1|y<<31)^F;y=y>>>1^F;return D(I,y)};
_.iu=function(I,y){y>>>=0;I>>>=0;if(y<=2097151)var D=""+(4294967296*y+I);else uu()?D=""+(BigInt(y)<<BigInt(32)|BigInt(I)):(D=(I>>>24|y<<8)&16777215,y=y>>16&65535,I=(I&16777215)+D*6777216+y*6710656,D+=y*8147497,y*=2,I>=1E7&&(D+=I/1E7>>>0,I%=1E7),D>=1E7&&(y+=D/1E7>>>0,D%=1E7),D=y+GaW(D)+GaW(I));return D};
GaW=function(I){I=String(I);return"0000000".slice(I.length)+I};
_.ef=function(I,y){y&2147483648?uu()?I=""+(BigInt(y|0)<<BigInt(32)|BigInt(I>>>0)):(y=_.J(je_(I,y)),I=y.next().value,y=y.next().value,I="-"+_.iu(I,y)):I=_.iu(I,y);return I};
sO=function(I){if(I.length<16)BG(Number(I));else if(uu())I=BigInt(I),WG=Number(I&BigInt(4294967295))>>>0,C_=Number(I>>BigInt(32)&BigInt(4294967295));else{var y=+(I[0]==="-");C_=WG=0;for(var D=I.length,F=y,R=(D-y)%6+y;R<=D;F=R,R+=6)F=Number(I.slice(F,R)),C_*=1E6,WG=WG*1E6+F,WG>=4294967296&&(C_+=Math.trunc(WG/4294967296),C_>>>=0,WG>>>=0);y&&(y=_.J(je_(WG,C_)),I=y.next().value,y=y.next().value,WG=I,C_=y)}};
je_=function(I,y){y=~y;I?I=~I+1:y+=1;return[I,y]};
Vg=function(I){return Array.prototype.slice.call(I)};
_.ya=function(I,y){throw Error(y===void 0?"unexpected value "+I+"!":y);};
_.DQ=function(I){if(I!=null&&typeof I!=="number")throw Error("L`"+typeof I+"`"+I);return I};
_.FY=function(I){if(I==null||typeof I==="number")return I;if(I==="NaN"||I==="Infinity"||I==="-Infinity")return Number(I)};
XGW=function(I){if(I!=null&&typeof I!=="boolean")throw Error("M`"+_.RT(I)+"`"+I);return I};
_.QeS=function(I){if(I==null||typeof I==="boolean")return I;if(typeof I==="number")return!!I};
_.La=function(I){switch(typeof I){case "bigint":return!0;case "number":return Ob(I);case "string":return YO_.test(I);default:return!1}};
_.Je=function(I){if(!Ob(I))throw _.DR("enum");return I|0};
_.Sg=function(I){return I==null?I:Ob(I)?I|0:void 0};
fRA=function(I){if(typeof I!=="number")throw _.DR("int32");if(!Ob(I))throw _.DR("int32");return I|0};
_.te=function(I){return I==null?I:fRA(I)};
_.PC=function(I){if(I==null)return I;if(typeof I==="string"&&I)I=+I;else if(typeof I!=="number")return;return Ob(I)?I|0:void 0};
_.nPW=function(I){if(I==null)return I;if(typeof I==="string"&&I)I=+I;else if(typeof I!=="number")return;return Ob(I)?I>>>0:void 0};
zn5=function(I){var y=0;y=y===void 0?0:y;if(!_.La(I))throw _.DR("int64");var D=typeof I;switch(y){case 512:switch(D){case "string":return Ka(I);case "bigint":return String(N8(64,I));default:return pGC(I)}case 1024:switch(D){case "string":return mze(I);case "bigint":return _.ae(N8(64,I));default:return MfS(I)}case 0:switch(D){case "string":return Ka(I);case "bigint":return _.ae(N8(64,I));default:return he(I)}default:return _.ya(y,"Unknown format requested type for int64")}};
xy=function(I){return I==null?I:zn5(I)};
kaL=function(I){var y=I.length;if(I[0]==="-"?y<20||y===20&&I<="-9223372036854775808":y<19||y===19&&I<="9223372036854775807")return I;sO(I);return _.ef(WG,C_)};
dzL=function(I){if(I[0]==="-")var y=!1;else y=I.length,y=y<20?!0:y===20&&I<="18446744073709551615";if(y)return I;sO(I);return _.iu(WG,C_)};
he=function(I){I=lR(I);q8(I)||(BG(I),I=bu(WG,C_));return I};
_.aRJ=function(I){I=lR(I);I>=0&&q8(I)||(BG(I),I=hnW(WG,C_));return I};
pGC=function(I){I=lR(I);q8(I)?I=String(I):(BG(I),I=_.ef(WG,C_));return I};
_.cMC=function(I){I=lR(I);I>=0&&q8(I)?I=String(I):(BG(I),I=_.iu(WG,C_));return I};
Ka=function(I){var y=lR(Number(I));if(q8(y))return String(y);y=I.indexOf(".");y!==-1&&(I=I.substring(0,y));return kaL(I)};
mze=function(I){var y=lR(Number(I));if(q8(y))return _.ae(y);y=I.indexOf(".");y!==-1&&(I=I.substring(0,y));return uu()?_.ae(N8(64,BigInt(I))):_.ae(kaL(I))};
MfS=function(I){return q8(I)?_.ae(he(I)):_.ae(pGC(I))};
_.WMH=function(I){return q8(I)?_.ae(_.aRJ(I)):_.ae(_.cMC(I))};
_.Cuq=function(I){var y=lR(Number(I));if(q8(y)&&y>=0)return String(y);y=I.indexOf(".");y!==-1&&(I=I.substring(0,y));return dzL(I)};
_.BcC=function(I){var y=lR(Number(I));if(q8(y)&&y>=0)return _.ae(y);y=I.indexOf(".");y!==-1&&(I=I.substring(0,y));return uu()?_.ae((0,_.Eb)(64,BigInt(I))):_.ae(dzL(I))};
_.AM_=function(I){if(I==null)return I;if(typeof I==="bigint")return i_e(I)?I=Number(I):(I=N8(64,I),I=i_e(I)?Number(I):String(I)),I;if(_.La(I))return typeof I==="number"?he(I):Ka(I)};
$zA=function(I,y){y=y===void 0?!1:y;var D=typeof I;if(I==null)return I;if(D==="bigint")return String(N8(64,I));if(_.La(I))return D==="string"?Ka(I):y?pGC(I):he(I)};
_.b_o=function(I){var y=typeof I;if(I==null)return I;if(y==="bigint")return _.ae(N8(64,I));if(_.La(I))return y==="string"?mze(I):MfS(I)};
H_W=function(I){if(I==null)return I;var y=typeof I;if(y==="bigint")return String(N8(64,I));if(_.La(I)){if(y==="string")return Ka(I);if(y==="number")return he(I)}};
enL=function(I){if(I==null)return I;var y=typeof I;if(y==="bigint")return String((0,_.Eb)(64,I));if(_.La(I)){if(y==="string")return _.Cuq(I);if(y==="number")return _.aRJ(I)}};
_.Go=function(I){if(typeof I!=="string")throw Error();return I};
Qa=function(I){if(I!=null&&typeof I!=="string")throw Error();return I};
_.fa=function(I){return I==null||typeof I==="string"?I:void 0};
VfL=function(I,y,D,F){if(I!=null&&I[na]===pa)return I;if(!Array.isArray(I))return D?F&2?y[TcL]||(y[TcL]=seC(y)):new y:void 0;D=I[_.L_]|0;F=D|F&32|F&2;F!==D&&tM(I,F);return new y(I)};
seC=function(I){I=new I;PG(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return I};
Z_o=function(I,y,D){I=y?fRA(I):_.PC(I);return I==null?D?0:void 0:I|0};
gP_=function(I){return I};
IQC=function(I){return I};
D8A=function(I,y,D,F,R,O){I=VfL(I,F,D,O);R&&(I=yeL(I));return I};
F1q=function(I){return[I,this.get(I)]};
L1e=function(){return RZt||(RZt=new m1(PG([]),void 0,void 0,void 0,Oa5))};
JeC=function(I){var y=M8(ky);return y?I[y]:void 0};
SbC=function(I,y){var D=D===void 0?!1:D;if(M8(wCL)&&M8(ky)&&void 0===wCL){var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=F[ky];if(!R)return;if(R=R.reviveUnknownFields)try{R(F,y,vy4);return}catch(O){Ro(O)}}D&&(I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(D=M8(ky))&&D in I&&(I=I[D])&&delete I[y])};
PRe=function(I,y){var D=M8(ky),F;OO&&D&&((F=I[D])==null?void 0:F[y])!=null&&VW_(tgt,3)};
U8H=function(I,y){y<100||VW_(K1W,1)};
hZq=function(I,y,D,F){var R=F!==void 0;F=!!F;var O=M8(ky),w;!R&&OO&&O&&(w=I[O])&&reJ(w,U8H);O=[];var v=I.length;w=4294967295;var P=!1,K=!!(y&64),r=K?y&128?0:-1:void 0;if(!(y&1)){var N=v&&I[v-1];N!=null&&typeof N==="object"&&N.constructor===Object?(v--,w=v):N=void 0;if(K&&!(y&128)&&!R){P=!0;var h;w=((h=jTJ)!=null?h:gP_)(w-r,r,I,N,void 0)+r}}y=void 0;for(h=0;h<v;h++){var x=I[h];if(x!=null&&(x=D(x,F))!=null)if(K&&h>=w){var q=h-r,X=void 0;((X=y)!=null?X:y={})[q]=x}else O[h]=x}if(N)for(var f in N)v=N[f],
v!=null&&(v=D(v,F))!=null&&(h=+f,x=void 0,K&&!Number.isNaN(h)&&(x=h+r)<w?O[x]=v:(h=void 0,((h=y)!=null?h:y={})[f]=v));y&&(P?O.push(y):O[w]=y);R&&M8(ky)&&(I=JeC(I))&&I instanceof oyt&&(O[ky]=NGq(I));return O};
lQt=function(I){I[0]=x8B(I[0]);I[1]=x8B(I[1]);return I};
x8B=function(I){switch(typeof I){case "number":return Number.isFinite(I)?I:""+I;case "bigint":return i_e(I)?Number(I):""+I;case "boolean":return I?1:0;case "object":if(Array.isArray(I)){var y=I[_.L_]|0;return I.length===0&&y&1?void 0:hZq(I,y,x8B)}if(I!=null&&I[na]===pa)return uY_(I);if(I instanceof YP){y=I.JSC$9096_value_;if(y==null)I="";else if(typeof y==="string")I=y;else{if(b55){for(var D="",F=0,R=y.length-10240;F<R;)D+=String.fromCharCode.apply(null,y.subarray(F,F+=10240));D+=String.fromCharCode.apply(null,
F?y.subarray(F):y);y=btoa(D)}else y=_.VB(y);I=I.JSC$9096_value_=y}return I}if(I instanceof m1)return I=I.size!==0?qbo(I,lQt):void 0,I;return}return I};
cC=function(I,y){if(y){jTJ=y==null||y===gP_||y[EyA]!==Go4?gP_:y;try{return uY_(I)}finally{jTJ=void 0}}return uY_(I)};
uY_=function(I){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return hZq(I,I[_.L_]|0,x8B)};
YbA=function(I){switch(typeof I){case "boolean":return XCJ||(XCJ=[0,void 0,!0]);case "number":return I>0?void 0:I===0?QTt||(QTt=[0,void 0]):[-I,void 0];case "string":return[0,I];case "object":return I}};
WC=function(I,y){return fQt(I,y[0],y[1])};
_.Ca=function(I,y,D){return fQt(I,y,D,2048)};
fQt=function(I,y,D,F){F=F===void 0?0:F;if(I==null){var R=32;D?(I=[D],R|=128):I=[];y&&(R=R&-16760833|(y&1023)<<14)}else{if(!Array.isArray(I))throw Error("O");R=I[_.L_]|0;if(nyq&&1&R)throw Error("P");2048&R&&!(2&R)&&pCe();if(R&256)throw Error("Q");if(R&64)return(R|F)!==R&&tM(I,R|F),I;if(D&&(R|=128,D!==I[0]))throw Error("R");a:{D=I;R|=64;var O=D.length;if(O){var w=O-1,v=D[w];if(v!=null&&typeof v==="object"&&v.constructor===Object){y=R&128?0:-1;w-=y;if(w>=1024)throw Error("T");for(var P in v)O=+P,O<w&&
(D[O+y]=v[P],delete v[P]);R=R&-16760833|(w&1023)<<14;break a}}if(y){P=Math.max(y,O-(R&128?0:-1));if(P>1024)throw Error("U");R=R&-16760833|(P&1023)<<14}}}tM(I,R|64|F);return I};
pCe=function(){if(nyq)throw Error("S");VW_(m85,5)};
koq=function(I,y){if(typeof I!=="object")return I;if(Array.isArray(I)){var D=I[_.L_]|0;return I.length===0&&D&1?void 0:Mg4(I,D,y)}if(I!=null&&I[na]===pa)return zZB(I);if(I instanceof m1){y=I.arrayState;if(y&2)return I;if(!I.size)return;D=PG(qbo(I));if(I.valueCtor)for(I=0;I<D.length;I++){var F=D[I],R=F[1];R==null||typeof R!=="object"?R=void 0:R!=null&&R[na]===pa?R=zZB(R):Array.isArray(R)?R=Mg4(R,R[_.L_]|0,!!(y&32)):R=void 0;F[1]=R}return D}if(I instanceof YP)return I};
Mg4=function(I,y,D){if(y&2)return I;!D||4096&y||16&y?I=BC(I,y,!1,D&&!(y&16)):(JM(I,34),y&4&&Object.freeze(I));return I};
d8L=function(I,y,D){I=new I.constructor(y);D&&(I.copyOnWrite=EO);I.noLegacyNull=EO;return I};
zZB=function(I){var y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=y[_.L_]|0;return Qg(I,D)?I:aQJ(I,y,D)?d8L(I,y):BC(y,D)};
BC=function(I,y,D,F){F!=null||(F=!!(34&y));I=hZq(I,y,koq,F);F=32;D&&(F|=2);y=y&16769217|F;tM(I,y);return I};
yeL=function(I){var y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=y[_.L_]|0;return Qg(I,D)?aQJ(I,y,D)?d8L(I,y,!0):new I.constructor(BC(y,D,!1)):I};
Ae=function(I){if(I.copyOnWrite!==EO)return!1;var y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=BC(y,y[_.L_]|0);JM(y,2048);I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=y;I.copyOnWrite=void 0;I.noLegacyNull=void 0;return!0};
$y=function(I){if(!Ae(I)&&Qg(I,I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.L_]|0))throw Error();};
bR=function(I,y){y===void 0&&(y=I[_.L_]|0);y&32&&!(y&4096)&&tM(I,y|4096)};
aQJ=function(I,y,D){return D&2?!0:D&32&&!(D&4096)?(tM(y,D|2),I.copyOnWrite=EO,!0):!1};
eg=function(I,y,D,F,R){var O=D+(R?0:-1),w=I.length-1;if(w>=1+(R?0:-1)&&O>=w){var v=I[w];if(v!=null&&typeof v==="object"&&v.constructor===Object)return v[D]=F,y}if(O<=w)return I[O]=F,y;if(F!==void 0){var P;w=((P=y)!=null?P:y=I[_.L_]|0)>>14&1023||536870912;D>=w?F!=null&&(O={},I[w+(R?0:-1)]=(O[D]=F,O)):I[O]=F}return y};
_.Va=function(I,y,D,F,R){var O=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=O[_.L_]|0;F=Qg(I,w)?1:F;R=!!R||F===3;F===2&&Ae(I)&&(O=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=O[_.L_]|0);I=cee(O,y);var v=I===To?7:I[_.L_]|0,P=W1L(v,w);var K=4&P?!1:!0;if(K){4&P&&(I=Vg(I),v=0,P=sb(P,w),w=eg(O,w,y,I));for(var r=0,N=0;r<I.length;r++){var h=D(I[r]);h!=null&&(I[N++]=h)}N<r&&(I.length=N);D=(P|4)&-513;P=D&=-1025;P&=-4097}P!==v&&(tM(I,P),2&P&&Object.freeze(I));return I=CRL(I,P,O,
w,y,F,K,R)};
CRL=function(I,y,D,F,R,O,w,v){var P=y;O===1||(O!==4?0:2&y||!(16&y)&&32&F)?In(y)||(y|=!I.length||w&&!(4096&y)||32&F&&!(4096&y||16&y)?2:256,y!==P&&tM(I,y),Object.freeze(I)):(O===2&&In(y)&&(I=Vg(I),P=0,y=sb(y,F),F=eg(D,F,R,I)),In(y)||(v||(y|=16),y!==P&&tM(I,y)));2&y||!(4096&y||16&y)||bR(D,F);return I};
cee=function(I,y,D){I=yA(I,y,D);return Array.isArray(I)?I:To};
W1L=function(I,y){2&y&&(I|=2);return I|1};
In=function(I){return!!(2&I)&&!!(4&I)||!!(256&I)};
BG4=function(I){return _.Mz(I,!0)};
iaq=function(I){I=Vg(I);for(var y=0;y<I.length;y++){var D=I[y]=Vg(I[y]);Array.isArray(D[1])&&(D[1]=PG(D[1]))}return K_(I)};
_.Ae5=function(I,y,D,F,R){var O=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=O[_.L_]|0;var v=Qg(I,w);a:{!v&&Ae(I)&&(O=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=O[_.L_]|0);var P=yA(O,y);I=!1;if(P==null){if(v){y=L1e();break a}P=[]}else if(P.constructor===m1)if(P.arrayState&2&&!v)P=qbo(P);else{y=P;break a}else Array.isArray(P)?I=!!((P[_.L_]|0)&2):P=[];if(v){if(!P.length){y=L1e();break a}I||(I=!0,PG(P))}else I&&(I=!1,K_(P),P=iaq(P));!I&&w&32&&yMJ(P);F=new m1(P,D,F,R);w=
eg(O,w,y,F);I||bR(O,w);y=F}!v&&D&&(y.callToMutableOnAccess=!0);return y};
_.D0=function(I,y,D,F){$y(I);var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=R[_.L_]|0;if(D==null)return eg(R,O,y),I;var w=D===To?7:D[_.L_]|0,v=w,P=In(w),K=P||Object.isFrozen(D);P||(w=0);K||(D=Vg(D),v=0,w=sb(w,O),K=!1);w|=5;var r;P=(r=IRC(w))!=null?r:0;for(r=0;r<D.length;r++){var N=D[r],h=F(N,P);Object.is(N,h)||(K&&(D=Vg(D),v=0,w=sb(w,O),K=!1),D[r]=h)}w!==v&&(K&&(D=Vg(D),w=sb(w,O)),tM(D,w));eg(R,O,y,D);return I};
_.Fj=function(I,y,D,F,R){$y(I);var O=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eg(O,O[_.L_]|0,y,(F==="0"?Number(D)===0:D===F)?void 0:D,R);return I};
_.LS=function(I,y,D){if(y&2)throw Error();var F=kP(y),R=cee(I,D,F),O=R===To?7:R[_.L_]|0,w=W1L(O,y);if(2&w||In(w)||16&w)w===O||In(w)||tM(R,w),R=Vg(R),O=0,w=sb(w,y),eg(I,y,D,R,F);w&=-13;w!==O&&tM(R,w);return R};
$8_=function(I){if(OO){var y;return(y=I[wo])!=null?y:I[wo]=new Map}if(wo in I)return I[wo];y=new Map;Object.defineProperty(I,wo,{value:y});return y};
Ha_=function(I,y,D,F,R){var O=$8_(I),w=baJ(O,I,y,D,R);w!==F&&(w&&(y=eg(I,y,w,void 0,R)),O.set(D,F));return y};
baJ=function(I,y,D,F,R){var O=I.get(F);if(O!=null)return O;for(var w=O=0;w<F.length;w++){var v=F[w];yA(y,v,R)!=null&&(O!==0&&(D=eg(y,D,O,void 0,R)),O=v)}I.set(F,O);return O};
eZ5=function(I,y,D,F,R){var O=!1;F=yA(I,F,R,function(w){var v=VfL(w,D,!1,y);O=v!==w&&v!=null;return v});
if(F!=null)return O&&!Qg(F)&&bR(I,y),F};
TGt=function(I,y,D,F,R,O,w,v){var P=Qg(I,D);O=P?1:O;w=!!w||O===3;P=v&&!P;(O===2||P)&&Ae(I)&&(y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=y[_.L_]|0);I=cee(y,R);var K=I===To?7:I[_.L_]|0,r=W1L(K,D);if(v=!(4&r)){var N=I,h=D,x=!!(2&r);x&&(h|=2);for(var q=!x,X=!0,f=0,m=0;f<N.length;f++){var z=VfL(N[f],F,!1,h);if(z instanceof F){if(!x){var B=Qg(z);q&&(q=!B);X&&(X=B)}N[m++]=z}}m<f&&(N.length=m);r|=4;r=X?r&-4097:r|4096;r=q?r|8:r&-9}r!==K&&(tM(I,r),2&r&&Object.freeze(I));if(P&&!(8&r||!I.length&&
(O===1||(O!==4?0:2&r||!(16&r)&&32&D)))){In(r)&&(I=Vg(I),r=sb(r,D),D=eg(y,D,R,I));F=I;P=r;for(K=0;K<F.length;K++)N=F[K],r=yeL(N),N!==r&&(F[K]=r);P|=8;r=P=F.length?P|4096:P&-4097;tM(I,r)}return I=CRL(I,r,y,D,R,O,v,w)};
sTe=function(I){I==null&&(I=void 0);return I};
sb=function(I,y){return I=(2&y?I|2:I&-3)&-273};
_.VgS=function(I,y,D,F,R){$y(I);y=_.Va(I,y,R,2,!0);var O;R=(O=IRC(y===To?7:y[_.L_]|0))!=null?O:0;y.push(D(F,R));return I};
Zaq=function(I,y,D,F,R,O,w){$y(I);var v=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;I=TGt(I,v,v[_.L_]|0,D,y,2,!0);if(O&&w)R!=null||(R=I.length-1),FMq(I,R),I.splice(R,O),I.length||(I[_.L_]&=-4097);else{if(O){if(typeof R!=="number"||R<0||R>I.length)throw Error();}else F=F!=null?F:new D;R!=void 0?I.splice(R,O,F):I.push(F);R=D=I===To?7:I[_.L_]|0;(F=Qg(F))?(D&=-9,I.length===1&&(D&=-4097)):D|=4096;D!==R&&tM(I,D);F||bR(v)}};
I0W=function(I,y){if(typeof I==="string")return new v$(e4q(I),y);if(Array.isArray(I))return new v$(new Uint8Array(I),y);if(I.constructor===Uint8Array)return new v$(I,!1);if(I.constructor===ArrayBuffer)return I=new Uint8Array(I),new v$(I,!1);if(I.constructor===YP)return y=gyC(I)||new Uint8Array(0),new v$(y,!0,I);if(I instanceof Uint8Array)return I=I.constructor===Uint8Array?I:new Uint8Array(I.buffer,I.byteOffset,I.byteLength),new v$(I,!1);throw Error();};
Dgo=function(I){switch(typeof I){case "string":yV5(I)}};
RCW=function(I){switch(typeof I){case "string":FHq(I)}};
SZ=function(){var I=function(){throw Error();};
Object.setPrototypeOf(I,I.prototype);return I};
LHq=function(I,y){var D=D===void 0?OSq:D;return new tV(I,y,D)};
vsB=function(I,y,D,F,R){JVq(I,D,w$e(y,F),R)};
P$=function(I,y,D,F){var R=F[I];if(R)return R;R={};R.binaryFields=F;R.messageMetadata=YbA(F[0]);var O=F[1],w=1;O&&O.constructor===Object&&(R.extensions=O,O=F[++w],typeof O==="function"&&(R.isMessageSet=!0,SxS!=null||(SxS=O),tZ4!=null||(tZ4=F[w+1]),O=F[w+=2]));for(var v={};O&&Pa_(O);){for(var P=0;P<O.length;P++)v[O[P]]=O;O=F[++w]}for(P=1;O!==void 0;){typeof O==="number"&&(P+=O,O=F[++w]);var K=void 0;if(O instanceof tV)var r=O;else r=KHJ,w--;O=void 0;if((O=r)==null?0:O.$$isMsg){O=F[++w];K=F;var N=w;
typeof O==="function"&&(O=O(),K[N]=O);K=O}O=F[++w];N=P+1;typeof O==="number"&&O<0&&(N-=O,O=F[++w]);for(;P<N;P++){var h=v[P];K?D(R,P,r,K,h):y(R,P,r,h)}}return F[I]=R};
Pa_=function(I){return Array.isArray(I)&&!!I.length&&typeof I[0]==="number"&&I[0]>0};
rVq=function(I){return Array.isArray(I)?I[0]instanceof tV?I:[UgA,I]:[I,void 0]};
w$e=function(I,y){if(I instanceof _.KS)return I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(I))return WC(I,y)};
jnq=function(I,y,D,F){var R=D.$$binaryReaderFn;I[y]=F?function(O,w,v){return R(O,w,v,F)}:R};
Noo=function(I,y,D,F,R){var O=D.$$binaryReaderFn,w,v;I[y]=function(P,K,r){return O(P,K,r,v||(v=P$(osL,jnq,Noo,F).messageMetadata),w||(w=hC_(F)),R)}};
hC_=function(I){var y=I[xgH];if(y!=null)return y;var D=P$(osL,jnq,Noo,I);y=D.isMessageSet?function(F,R){return SxS(F,R,D)}:function(F,R){for(;l0t(R)&&R.nextWireType_!=4;){var O=R.nextField_,w=D[O];
if(w==null){var v=D.extensions;v&&(v=v[O])&&(v=uj_(v),v!=null&&(w=D[O]=v))}if(w==null||!w(R,F,O)){v=R;w=v.fieldCursor_;qxt(v);if(v.discardUnknownFields)var P=void 0;else{var K=v.decoder_.cursor_-w;v.decoder_.cursor_=w;P=EsH(v.decoder_,K)}K=v=w=void 0;var r=F;P&&((w=(v=(K=r[ky])!=null?K:r[ky]=new oyt)[O])!=null?w:v[O]=[]).push(P)}}if(F=JeC(F))F.reviveUnknownFields=D.binaryFields[Gq4];return!0};
I[xgH]=y;I[Gq4]=X$A.bind(I);return y};
X$A=function(I,y,D,F){var R=this[osL],O=this[xgH],w=WC(void 0,R.messageMetadata),v=JeC(I);if(v){var P=!1,K=R.extensions;if(K){R=function(q,X,f){if(f.length!==0)if(K[X])for(q=_.J(f),X=q.next();!X.done;X=q.next()){X=Qnt(X.value);try{P=!0,O(w,X)}finally{X.free()}}else F==null||F(I,X,f)};
if(y==null)reJ(v,R);else if(v!=null){var r=v[y];r&&R(v,y,r)}if(P){var N=I[_.L_]|0;if(N&2&&N&2048&&(D==null||!D.reviveIntoImmutable))throw Error();var h=kP(N),x=function(q,X){if(yA(I,q,h)!=null)switch(D==null?void 0:D.resolutionBehavior){case 1:return;default:throw Error();}X!=null&&(N=eg(I,N,q,X,h));delete v[q]};
y==null?RnL(w,w[_.L_]|0,function(q,X){x(q,X)}):x(y,yA(w,y,h))}}}};
uj_=function(I){I=rVq(I);var y=I[0].$$binaryReaderFn;if(I=I[1]){var D=hC_(I),F=P$(osL,jnq,Noo,I).messageMetadata;return function(R,O,w){return y(R,O,w,F,D)}}return y};
Yxq=function(I,y,D){I[y]=D.$$binaryWriterFn};
nse=function(I,y,D,F){var R,O,w=D.$$binaryWriterFn;I[y]=function(v,P,K){return w(v,P,K,O||(O=P$(f04,Yxq,nse,F).messageMetadata),R||(R=p$W(F)))}};
p$W=function(I){var y=I[mgt];if(!y){var D=P$(f04,Yxq,nse,I);y=function(F,R){return MZC(F,R,D)};
I[mgt]=y}return y};
MZC=function(I,y,D){RnL(I,I[_.L_]|0,function(F,R){if(R!=null){var O=zCq(D,F);O?O(y,R,F):F<500||VW_(kq4,3)}});
(I=JeC(I))&&reJ(I,function(F,R,O){ro(y,y.encoder_.end());for(F=0;F<O.length;F++)ro(y,gyC(O[F])||new Uint8Array(0))})};
zCq=function(I,y){var D=I[y];if(D)return D;if(D=I.extensions)if(D=D[y]){D=rVq(D);var F=D[0].$$binaryWriterFn;if(D=D[1]){var R=p$W(D),O=P$(f04,Yxq,nse,D).messageMetadata;D=I.isMessageSet?tZ4(O,R):function(w,v,P){return F(w,v,P,O,R)}}else D=F;
return I[y]=D}};
_.dgq=function(I,y,D){if(Array.isArray(y)){var F=y[_.L_]|0;if(F&4)return y;for(var R=0,O=0;R<y.length;R++){var w=I(y[R]);w!=null&&(y[O++]=w)}O<R&&(y.length=O);I=F|1;D&&(I=(I|4)&-1537);I!==F&&tM(y,I);D&&I&2&&Object.freeze(y);return y}};
_.jZ=function(I,y,D){return new tV(I,y,D)};
_.a0q=function(I,y,D){return new tV(I,y,D)};
_.on=function(I,y,D){eg(I,I[_.L_]|0,y,D,kP(I[_.L_]|0))};
cVq=function(I,y,D){y=_.FY(y);y!=null&&(_.Ng(I,D,1),I=I.encoder_,D=oPB||(oPB=new DataView(new ArrayBuffer(8))),D.setFloat64(0,+y,!0),WG=D.getUint32(0,!0),C_=D.getUint32(4,!0),_.hV(I,WG),_.hV(I,C_))};
WHJ=function(I,y,D){y=_.FY(y);y!=null&&(_.Ng(I,D,5),I=I.encoder_,Nc4(y),_.hV(I,WG))};
_.la=function(I,y,D){y=H_W(y);if(y!=null&&(Dgo(y),y!=null))switch(_.Ng(I,D,0),typeof y){case "number":I=I.encoder_;BG(y);xs(I,WG,C_);break;case "bigint":D=BigInt.asUintN(64,y);D=new CaW(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)));xs(I.encoder_,D.JSC$9139_lo,D.JSC$9139_hi);break;default:D=yV5(y),xs(I.encoder_,D.JSC$9139_lo,D.JSC$9139_hi)}};
iSL=function(I,y,D){y=enL(y);if(y!=null&&(RCW(y),y!=null))switch(_.Ng(I,D,0),typeof y){case "number":I=I.encoder_;BG(y);xs(I,WG,C_);break;case "bigint":D=Bo5(y);xs(I.encoder_,D.JSC$9137_lo,D.JSC$9137_hi);break;default:D=FHq(y),xs(I.encoder_,D.JSC$9137_lo,D.JSC$9137_hi)}};
$go=function(I,y,D){y=_.PC(y);y!=null&&y!=null&&(_.Ng(I,D,0),_.AVe(I.encoder_,y))};
_.HSo=function(I,y,D){bSJ(I,D,enL(y))};
eCW=function(I,y,D){y=_.QeS(y);y!=null&&(_.Ng(I,D,0),I.encoder_.JSC$9141_buffer_.push(y?1:0))};
sno=function(I,y,D){y=_.fa(y);y!=null&&ToL(I,D,P_L(y))};
VZL=function(I,y,D,F,R){JVq(I,D,w$e(y,F),R)};
_.ZSe=function(I,y,D){y=y==null||typeof y=="string"||y instanceof YP?y:void 0;y!=null&&ToL(I,D,I0W(y,!0).buffer)};
gsJ=function(I,y,D){y=_.nPW(y);y!=null&&y!=null&&(_.Ng(I,D,0),ua(I.encoder_,y))};
_.ItS=function(I,y,D){y=_.PC(y);y!=null&&(y=parseInt(y,10),_.Ng(I,D,0),_.AVe(I.encoder_,y))};
yW4=function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,lRo));return!0};
_.D_q=function(I,y,D,F){if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,_.qg(I.decoder_,lRo));return!0};
F4e=function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,xzq));return!0};
_.OjL=function(I,y,D){if(I.nextWireType_!==1)return!1;_.on(y,D,RDB(I.decoder_));return!0};
_.Xj=function(I,y){return function(D,F){var R={treatNewDataAsImmutable:!0};F&&Object.assign(R,F);D=Qnt(D,void 0,void 0,R);try{var O=new I,w=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hC_(y)(w,D);var v=O}finally{D.free()}return v}};
_.Ys=function(I){return function(y){return L4H(y,I)}};
JWS=function(I){return function(){return L4H(this,I)}};
_.wdC=function(I){return dc(function(y){return y instanceof I&&!Qg(y)})};
_.nS=function(I){return function(y){return vQo(I,y)}};
K4L=function(I,y){return Sk5({child:I,origin:y||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:tYL,getPayloadCase:function(D){return D.getPayloadCase()},
createInitMessage:function(D){var F=new pS,R=new PiC;D=_.mH(R,1,D);return _.Mg(F,5,zq,D)}})};
ks=function(I){return{valueOf:I}.valueOf()};
rWJ=function(){var I=null;if(!U__)return I;try{var y=function(D){return D};
I=U__.createPolicy("goog#html",{createHTML:y,createScript:y,createScriptURL:y})}catch(D){}return I};
oQA=function(){jBL===void 0&&(jBL=rWJ());return jBL};
_.c$=function(I){var y=oQA();I=y?y.createScriptURL(I):I;return new an(I)};
_.W$=function(I){if(I instanceof an)return I.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.CS=function(I){return Object.isFrozen(I)&&Object.isFrozen(I.raw)};
Nj5=function(I){return I.toString().indexOf("`")===-1};
ia=function(I){return new _.B$(hDC,I)};
ba=function(I){return I instanceof _.B$};
_.H$=function(I){if(ba(I))return I.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
eZ=function(I){return new x_o(function(y){return y.substr(0,I.length+1).toLowerCase()===I+":"})};
_.Tq=function(I,y){y=y===void 0?lte:y;if(ba(I))return I;for(var D=0;D<y.length;++D){var F=y[D];if(F instanceof x_o&&F.isValid(I))return ia(I)}};
_.VA=function(I,y){y=y===void 0?lte:y;return _.Tq(I,y)||sx};
_.Z0=function(I){var y=window;if(typeof MediaSource!=="undefined"&&I instanceof MediaSource||typeof y.ManagedMediaSource!=="undefined"&&I instanceof y.ManagedMediaSource)return ia(URL.createObjectURL(I));y=I.type;y.toLowerCase()==="application/octet-stream"?y=!0:(y=y.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),y=(y==null?void 0:y.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(y[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(y[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(y[1])||/^font\/[\w-]+$/i.test(y[1])));if(!y)throw Error("Z");return ia(URL.createObjectURL(I))};
_.uyS=function(I){for(var y=_.go.apply(1,arguments),D=[I[0]],F=0;F<y.length;F++)D.push(String(y[F])),D.push(I[F+1]);return ia(D.join(""))};
_.EQ4=function(I){if(!qkq){a:{var y=document.createElement("a");try{y.href=I}catch(D){I=void 0;break a}I=y.protocol;I=I===":"||I===""?"https:":I}return I}try{y=new URL(I)}catch(D){return"https:"}return y.protocol};
_.IB=function(I){I instanceof _.B$?I=_.H$(I):I=GdH.test(I)?I:void 0;return I};
yr=function(I,y){y=_.IB(y);y!==void 0&&(I.href=y)};
Fy=function(I){var y=oQA();I=y?y.createHTML(I):I;return new Dt(I)};
RB=function(I){if(I instanceof Dt)return I.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Ok=function(I,y){I.src=_.W$(y).toString()};
XdA=function(I,y){I.setAttribute("sandbox","");for(var D=0;D<y.length;D++)I.sandbox.supports&&!I.sandbox.supports(y[D])||I.sandbox.add(y[D])};
_.JW=function(I,y,D){I.removeAttribute("srcdoc");switch(y){case 0:if(D instanceof an)throw new QBq("TrustedResourceUrl",0);XdA(I,[]);y=_.IB(D);y!==void 0&&(I.src=y);break;case 1:if(!(D instanceof an))throw new QBq(typeof D,1);XdA(I,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Ok(I,D);break;case 2:if(D instanceof an)throw new QBq("TrustedResourceUrl",2);XdA(I,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
y=_.IB(D);y!==void 0&&(I.src=y);break;default:_.ya(y)}};
_.wj=function(I,y,D,F){y=_.IB(y);return y!==void 0?I.open(y,D,F):null};
_.vd=function(I){I=I===void 0?document:I;var y,D;I=(D=(y=I).querySelector)==null?void 0:D.call(y,"script[nonce]");return I==null?"":I.nonce||I.getAttribute("nonce")||""};
_.tW=function(I){var y=oQA();I=y?y.createScript(I):I;return new _.SY(I)};
Pd=function(I){if(I instanceof _.SY)return I.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
YkJ=function(I){var y=_.vd(I.ownerDocument);y&&I.setAttribute("nonce",y)};
_.Kj=function(I,y){I.textContent=Pd(y);YkJ(I)};
_.Uk=function(I,y){I.src=_.W$(y);YkJ(I)};
_.rj=function(I,y){if(I.nodeType===1&&/^(script|style)$/i.test(I.tagName))throw Error("Z");I.innerHTML=RB(y)};
_.jY=function(I,y,D,F){if(I.length===0)throw Error("Z");I=I.map(function(O){if(O instanceof ftH)O=O.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return O});
var R=D.toLowerCase();if(I.every(function(O){return R.indexOf(O)!==0}))throw Error("aa`"+D);
y.setAttribute(D,F)};
_.oB=function(I,y,D){if(y instanceof an)I.href=_.W$(y).toString(),I.rel=D;else{if(nQq.indexOf(D)===-1)throw Error("ba`"+D);y=_.IB(y);y!==void 0&&(I.href=y,I.rel=D)}};
pdq=function(I){if(I instanceof N_)return I.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.m_L=function(I,y){y=_.IB(y);y!==void 0&&(I.href=y)};
MY4=function(I){return new Worker(_.W$(I),void 0)};
zDH=function(I){return _.c$(I)};
kdW=function(I,y){I&&(y=I.indexOf(y),0<=y&&I.splice(y,1))};
hW=function(I){return typeof I==="function"};
d_4=function(I){return I instanceof xQ||I&&"closed"in I&&hW(I.remove)&&hW(I.add)&&hW(I.unsubscribe)};
li=function(){};
ui=function(I){at5(function(){throw I;})};
q_=function(I){return I};
Gd=function(){return cWB(_.go.apply(0,arguments))};
cWB=function(I){return I.length===0?q_:I.length===1?I[0]:function(y){return I.reduce(function(D,F){return F(D)},y)}};
W4W=function(I){var y;return(y=I!=null?I:void 0)!=null?y:Promise};
Cie=function(I,y){return new Xy(function(D){var F=0;return y.schedule(function(){F===I.length?D.complete():(D.next(I[F++]),D.closed||this.schedule())})})};
BjW=function(I,y){if(!I)throw Error("ca");return new Xy(function(D){var F=new xQ;F.add(y.schedule(function(){var R=I[Symbol.asyncIterator]();F.add(y.schedule(function(){var O=this;R.next().then(function(w){w.done?D.complete():(D.next(w.value),O.schedule())})}))}));
return F})};
ijo=function(I,y,D){y=y.schedule(function(){try{D.call(this)}catch(F){I.error(F)}},0);
I.add(y)};
$_4=function(I,y){return new Xy(function(D){var F;D.add(y.schedule(function(){F=I[AWt]();ijo(D,y,function(){var R=F.next(),O=R.value;R.done?D.complete():(D.next(O),this.schedule())})}));
return function(){var R;return hW((R=F)==null?void 0:R.return)&&F.return()}})};
bjq=function(I,y){return new Xy(function(D){var F=new xQ;F.add(y.schedule(function(){var R=I[Qr]();F.add(R.subscribe({next:function(O){F.add(y.schedule(function(){return D.next(O)}))},
error:function(O){F.add(y.schedule(function(){return D.error(O)}))},
complete:function(){F.add(y.schedule(function(){return D.complete()}))}}))}));
return F})};
HjL=function(I,y){return new Xy(function(D){return y.schedule(function(){return I.then(function(F){D.add(y.schedule(function(){D.next(F);D.add(y.schedule(function(){return D.complete()}))}))},function(F){D.add(y.schedule(function(){return D.error(F)}))})})})};
eDe=function(I){return new TypeError("da`"+(I!==null&&typeof I==="object"?"an invalid object":"'"+I+"'"))};
sB_=function(I,y){if(I!=null){if(hW(I[Qr]))return bjq(I,y);if(Tjo(I))return Cie(I,y);if(hW(I==null?void 0:I.then))return HjL(I,y);if(Symbol.asyncIterator&&hW(I==null?void 0:I[Symbol.asyncIterator]))return BjW(I,y);if(hW(I==null?void 0:I[AWt]))return $_4(I,y)}throw eDe(I);};
fj=function(I,y){return y?sB_(I,y):YQ(I)};
YQ=function(I){if(I instanceof Xy)return I;if(I!=null){if(hW(I[Qr]))return VY_(I);if(Tjo(I))return Zjt(I);if(hW(I==null?void 0:I.then))return gQq(I);if(Symbol.asyncIterator&&hW(I==null?void 0:I[Symbol.asyncIterator]))return IOq(I);if(hW(I==null?void 0:I[AWt]))return yYC(I)}throw eDe(I);};
VY_=function(I){return new Xy(function(y){var D=I[Qr]();if(hW(D.subscribe))return D.subscribe(y);throw new TypeError("ea");})};
Zjt=function(I){return new Xy(function(y){for(var D=0;D<I.length&&!y.closed;D++)y.next(I[D]);y.complete()})};
gQq=function(I){return new Xy(function(y){I.then(function(D){y.closed||(y.next(D),y.complete())},function(D){return y.error(D)}).then(null,ui)})};
yYC=function(I){return new Xy(function(y){for(var D=I[AWt]();!y.closed;){var F=D.next(),R=F.value;F.done?y.complete():y.next(R)}return function(){return hW(D==null?void 0:D.return)&&D.return()}})};
IOq=function(I){return new Xy(function(y){DRH(I,y).catch(function(D){return y.error(D)})})};
DRH=function(I,y){var D,F,R,O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:_.nj(P,2,3),O=_.pj(I);case 5:return P.yield(O.next(),8);case 8:F=P.yieldResult;if(F.done){P.jumpTo(3);break}w=F.value;y.next(w);P.jumpTo(5);break;case 3:_.m4(P);_.zd(P,9);if(!F||F.done||!(R=O.return)){P.jumpTo(9);break}return P.yield(R.call(O),9);case 9:_.m4(P,0,0,1);if(D)throw D.error;_.kQ(P,10,1);break;case 10:_.kQ(P,4);break;case 2:v=_.dj(P);D={error:v};P.jumpTo(3);break;case 4:y.complete(),_.Cj(P)}})};
F2H=function(I,y){return y?Cie(I,y):Zjt(I)};
RqA=function(I){return hW(I[I.length-1])?I.pop():void 0};
Bd=function(I){var y=I[I.length-1];return y&&hW(y.schedule)?I.pop():void 0};
ii=function(){var I=_.go.apply(0,arguments),y=Bd(I);return y?Cie(I,y):F2H(I)};
AW=function(I){var y=hW(I)?I:function(){return I};
return new Xy(function(D){return D.error(y())})};
$Q=function(I){return function(y){if(hW(y==null?void 0:y.lift))return y.lift(function(D){try{return I(D,this)}catch(F){this.error(F)}});
throw new TypeError("fa");}};
Hd=function(){return $Q(function(I,y){var D=null;I._refCount++;var F=new bi(y,void 0,void 0,void 0,function(){if(!I||I._refCount<=0||0<--I._refCount)D=null;else{var R=I._connection,O=D;D=null;!R||O&&R!==O||R.unsubscribe();y.unsubscribe()}});
I.subscribe(F);F.closed||(D=I.connect())})};
L24=function(){var I=OG_;var y=y===void 0?0:y;return $Q(function(D,F){F.add(I.schedule(function(){return D.subscribe(F)},y))})};
eY=function(I){return $Q(function(y,D){var F=0;y.subscribe(new bi(D,function(R){D.next(I.call(void 0,R,F++))}))})};
wB_=function(I){return eY(function(y){return JYe(y)?I.apply(null,_.Td(y)):I(y)})};
K2W=function(I){if(I.length===1){var y=I[0];if(vBA(y))return{args:y,keys:null};if(y&&typeof y==="object"&&St4(y)===t$e)return I=Ple(y),{args:I.map(function(D){return y[D]}),
keys:I}}return{args:I,keys:null}};
sk=function(){var I=_.go.apply(0,arguments),y=Bd(I),D=RqA(I);I=K2W(I);var F=I.args,R=I.keys;if(F.length===0)return fj([],y);y=new Xy(URH(F,y,R?function(O){for(var w={},v=0;v<O.length;v++)w[R[v]]=O[v];return w}:q_));
return D?y.pipe(wB_(D)):y};
URH=function(I,y,D){D=D===void 0?q_:D;return function(F){rYq(y,function(){for(var R=I.length,O=Array(R),w=R,v=I.map(function(){return!1}),P=!0,K={i$jscomp$218:0};K.i$jscomp$218<R;K={i$jscomp$218:K.i$jscomp$218},K.i$jscomp$218++)rYq(y,function(r){return function(){fj(I[r.i$jscomp$218],y).subscribe(new Vr(F,function(N){O[r.i$jscomp$218]=N;
P&&(v[r.i$jscomp$218]=!0,P=!v.every(q_));P||F.next(D(O.slice()))},function(){return--w===0}))}}(K),F)},F)}};
rYq=function(I,y,D){I?D.add(I.schedule(y)):y()};
jd_=function(I,y,D,F){var R=[],O=0,w=0,v=!1,P=function(K){O++;YQ(D(K,w++)).subscribe(new bi(y,function(r){y.next(r)},void 0,function(){O--;
for(var r={};R.length&&O<F;r={bufferedValue:void 0})r.bufferedValue=R.shift(),P(r.bufferedValue);!v||R.length||O||y.complete()}))};
I.subscribe(new bi(y,function(K){return O<F?P(K):R.push(K)},void 0,function(){v=!0;
!v||R.length||O||y.complete()}));
return function(){R=null}};
Zt=function(I,y){var D=D===void 0?Infinity:D;if(hW(y))return Zt(function(F,R){return eY(function(O,w){return y(F,O,R,w)})(YQ(I(F,R)))},D);
typeof y==="number"&&(D=y);return $Q(function(F,R){return jd_(F,R,I,D)})};
oBq=function(I){I=I===void 0?Infinity:I;return Zt(q_,I)};
NBt=function(){var I=_.go.apply(0,arguments);return oBq(1)(F2H(I,Bd(I)))};
hqt=function(I){return new Xy(function(y){YQ(I()).subscribe(y)})};
Id=function(I,y,D){if(hW(D)){var F=D;D=void 0}if(F)return Id(I,y,D).pipe(wB_(F));F=_.J(hW(I.addEventListener)&&hW(I.removeEventListener)?xRJ.map(function(w){return function(v){return I[w](y,v,D)}}):hW(I.addListener)&&hW(I.removeListener)?lO4.map(uOA(I,y)):hW(I.on)&&hW(I.off)?qte.map(uOA(I,y)):[]);
var R=F.next().value,O=F.next().value;return!R&&Tjo(I)?Zt(function(w){return Id(w,y,D)})(F2H(I)):new Xy(function(w){if(!R)throw new TypeError("ga");
var v=function(){var P=_.go.apply(0,arguments);return w.next(1<P.length?P:P[0])};
R(v);return function(){return O(v)}})};
uOA=function(I,y){return function(D){return function(F){return I[D](y,F)}}};
DO=function(){var I=_.go.apply(0,arguments),y=Bd(I);var D=typeof I[I.length-1]==="number"?I.pop():Infinity;return I.length?I.length===1?YQ(I[0]):oBq(D)(F2H(I,y)):yE};
G_q=function(I){return I.length===1&&EBo(I[0])?I[0]:I};
XBq=function(){var I=G_q(_.go.apply(0,arguments));return $Q(function(y,D){var F=[y].concat(_.Td(I)),R=function(){if(!D.closed)if(F.length>0){try{var O=YQ(F.shift())}catch(v){R();return}var w=new bi(D,void 0,li,li);D.add(O.subscribe(w));w.add(R)}else D.complete()};
R()})};
FO=function(I){return $Q(function(y,D){var F=0;y.subscribe(new bi(D,function(R){return I.call(void 0,R,F++)&&D.next(R)}))})};
Ytq=function(){var I=_.go.apply(0,arguments);I=G_q(I);return I.length===1?YQ(I[0]):new Xy(QdJ(I))};
QdJ=function(I){return function(y){for(var D=[],F={i$jscomp$221:0};D&&!y.closed&&F.i$jscomp$221<I.length;F={i$jscomp$221:F.i$jscomp$221},F.i$jscomp$221++)D.push(YQ(I[F.i$jscomp$221]).subscribe(new bi(y,function(R){return function(O){if(D){for(var w=0;w<D.length;w++)w!==R.i$jscomp$221&&D[w].unsubscribe();D=null}y.next(O)}}(F))))}};
fOA=function(){var I=_.go.apply(0,arguments),y=RqA(I),D=G_q(I);return D.length?new Xy(function(F){var R=D.map(function(){return[]}),O=D.map(function(){return!1});
F.add(function(){R=O=null});
for(var w={sourceIndex$jscomp$1:0};!F.closed&&w.sourceIndex$jscomp$1<D.length;w={sourceIndex$jscomp$1:w.sourceIndex$jscomp$1},w.sourceIndex$jscomp$1++)YQ(D[w.sourceIndex$jscomp$1]).subscribe(new bi(F,function(v){return function(P){R[v.sourceIndex$jscomp$1].push(P);R.every(function(K){return K.length})&&(P=R.map(function(K){return K.shift()}),F.next(y?y.apply(null,_.Td(P)):P),R.some(function(K,r){return!K.length&&O[r]})&&F.complete())}}(w),void 0,function(v){return function(){O[v.sourceIndex$jscomp$1]=
!0;
!R[v.sourceIndex$jscomp$1].length&&F.complete()}}(w)));
return function(){R=O=null}}):yE};
nBo=function(I){var y,D,F;return!!I&&typeof I.active==="boolean"&&typeof((y=I.clock)==null?void 0:y.now)==="function"&&((D=I.clock)==null?void 0:D.timeline)!==void 0&&!((F=I.lastMeasurement)==null||!F.timestamp)&&typeof I.equivalentTo==="function"&&typeof I.extrapolateToNow==="function"&&typeof I.extrapolateToTime==="function"&&typeof I.map==="function"&&typeof I.joinWith==="function"};
pB_=function(I){function y(D){return typeof D==="boolean"||typeof D==="string"||typeof D==="number"||D===void 0||D===null}
return y(I)?!0:Array.isArray(I)?I.every(y):typeof I==="object"?Object.keys(I).every(function(D){return typeof D==="string"})&&Object.values(I).every(function(D){return Array.isArray(D)?D.every(y):y(D)}):!1};
mRq=function(I){if(pB_(I))return I;if(nBo(I))return{lastMeasurement:{value:mRq(I.lastMeasurement.value),timestamp:Rd(I.lastMeasurement.timestamp,new Ot(0,I.lastMeasurement.timestamp.timeline))},active:I.active};try{return JSON.parse(JSON.stringify(I))}catch(y){}return String(I)};
LG=function(I,y){return function(D){return new Xy(function(F){return D.subscribe(function(R){I.timeExecution(y,function(){F.next(R)})()},function(R){I.timeExecution(y,function(){F.error(R)})()},function(){I.timeExecution(y,function(){F.complete()})()})})}};
M$H=function(I,y){var D=!1;return new Xy(function(F){var R=I.setTimeout(function(){D=!0;F.next(!0);F.complete()},y);
return function(){D||I.clearTimeout(R)}})};
zqq=function(I){I=I.global;if(I.fetchLater)return I.fetchLater.bind(I)};
JY=function(I){return $Q(function(y,D){var F=null,R=!1,O;F=y.subscribe(new bi(D,void 0,function(w){O=YQ(I(w,JY(I)(y)));F?(F.unsubscribe(),F=null,O.subscribe(D)):R=!0}));
R&&(F.unsubscribe(),F=null,O.subscribe(D))})};
k_L=function(I,y,D){return function(F,R){var O=D,w=y,v=0;F.subscribe(new bi(R,function(P){var K=v++;w=O?I(w,P,K):(O=!0,P);R.next(w)},void 0,void 0))}};
dRB=function(I){I=I===void 0?null:I;return $Q(function(y,D){var F=!1;y.subscribe(new bi(D,function(R){F=!0;D.next(R)},void 0,function(){F||D.next(I);
D.complete()}))})};
wB=function(){return $Q(function(I,y){I.subscribe(new bi(y,li))})};
vB=function(I){return $Q(function(y,D){y.subscribe(new bi(D,function(){return D.next(I)}))})};
S$=function(I){return I<=0?function(){return yE}:$Q(function(y,D){var F=0;
y.subscribe(new bi(D,function(R){++F<=I&&(D.next(R),I<=F&&D.complete())}))})};
tY=function(I){var y=y===void 0?q_:y;var D;I=(D=I)!=null?D:aOC;return $Q(function(F,R){var O,w=!0;F.subscribe(new bi(R,function(v){var P=y(v);if(w||!I(O,P))w=!1,O=P,R.next(v)}))})};
aOC=function(I,y){return I===y};
W2q=function(I){I=I===void 0?cYS:I;return $Q(function(y,D){var F=!1;y.subscribe(new bi(D,function(R){F=!0;D.next(R)},void 0,function(){return F?D.complete():D.error(I())}))})};
cYS=function(){return new ClC};
PB=function(){var I=_.go.apply(0,arguments);return function(y){return NBt(y,ii.apply(null,_.Td(I)))}};
BB5=function(I){return $Q(function(y,D){var F=0;y.subscribe(new bi(D,function(R){I.call(void 0,R,F++,y)||(D.next(!1),D.complete())},void 0,function(){D.next(!0);
D.complete()}))})};
iGB=function(){return $Q(function(I,y){var D=[];I.subscribe(new bi(y,function(F){D.push(F);1<D.length&&D.shift()},void 0,function(){for(var F=_.J(D),R=F.next();!R.done;R=F.next())y.next(R.value);
y.complete()},function(){D=null}))})};
AY_=function(I,y){var D=arguments.length>=2;return function(F){return F.pipe(I?FO(function(R,O){return I(R,O,F)}):q_,iGB(),D?dRB(y):W2q(function(){return new ClC}))}};
Ut=function(I){var y=hW(I)?I:function(){return I};
return hW()?$Q(function(D,F){var R=y();(void 0)(R).subscribe(F).add(D.subscribe(R))}):function(D){var F=new KG(D,y);
hW(D==null?void 0:D.lift)&&(F.lift=D.lift);F.source=D;F.subjectFactory=y;return F}};
j$=function(I){var y=new rB(I,void 0,void 0);return function(D){return Ut(function(){return y})(D)}};
od=function(I,y){return $Q(k_L(I,y,arguments.length>=2))};
NR=function(){var I=_.go.apply(0,arguments),y=Bd(I);return $Q(function(D,F){(y?NBt(I,D,y):NBt(I,D)).subscribe(F)})};
hY=function(I){return $Q(function(y,D){var F=null,R=0,O=!1;y.subscribe(new bi(D,function(w){var v;(v=F)==null||v.unsubscribe();v=R++;YQ(I(w,v)).subscribe(F=new bi(D,function(P){return D.next(P)},void 0,function(){F=null;
O&&!F&&D.complete()}))},void 0,function(){(O=!0,!F)&&D.complete()}))})};
xB=function(I,y){y=y===void 0?!1:y;return $Q(function(D,F){var R=0;D.subscribe(new bi(F,function(O){var w=I(O,R++);(w||y)&&F.next(O);!w&&F.complete()}))})};
$RL=function(I,y,D){var F=hW(I)||y||D?{next:I,error:y,complete:D}:I;return F?$Q(function(R,O){R.subscribe(new bi(O,function(w){var v;(v=F.next)==null||v.call(F,w);O.next(w)},function(w){var v;
(v=F.error)==null||v.call(F,w);O.error(w)},function(){var w;
(w=F.complete)==null||w.call(F);O.complete()}))}):q_};
bGo=function(){var I=_.go.apply(0,arguments),y=RqA(I);return $Q(function(D,F){for(var R=I.length,O=Array(R),w=I.map(function(){return!1}),v=!1,P={i$jscomp$231:0};P.i$jscomp$231<R;P={i$jscomp$231:P.i$jscomp$231},P.i$jscomp$231++)YQ(I[P.i$jscomp$231]).subscribe(new bi(F,function(K){return function(r){O[K.i$jscomp$231]=r;
v||w[K.i$jscomp$231]||(w[K.i$jscomp$231]=!0,(v=w.every(q_))&&(w=null))}}(P),void 0,li));
D.subscribe(new bi(F,function(K){v&&(K=[K].concat(_.Td(O)),F.next(y?y.apply(null,_.Td(K)):K))}))})};
eqC=function(I){var y=HG5;if(y)for(var D in y)Object.prototype.hasOwnProperty.call(y,D)&&I(y[D],D,y)};
TB_=function(){var I=[];eqC(function(y){I.push(y)});
return I};
V$B=function(I){try{return!!I&&I.location.href!=null&&sdL(I,"foo")}catch(y){return!1}};
gBq=function(){return hL&&l_?l_.mobile:!ZGH()&&(qS("iPod")||qS("iPhone")||qS("Android")||qS("IEMobile"))};
ZGH=function(){return hL&&l_?!l_.mobile&&(qS("iPad")||qS("Android")||qS("Silk")):qS("iPad")||qS("Android")&&!qS("Mobile")||qS("Silk")};
_.ll=function(I){return new ftH(I[0].toLowerCase())};
IZe=function(I){for(var y=_.go.apply(1,arguments),D=I[0],F=0;F<I.length-1;F++)D+=String(y[F]),D+=I[F+1];y=document.implementation.createHTMLDocument("");F=y.createElement("style");y.head.appendChild(F);y=F.sheet;y.insertRule(D,0);if(y.cssRules.length===1&&(D=y.cssRules[0],D instanceof CSSStyleRule))return new N_(D.cssText.replace(/</g,"\\3C "))};
yvJ=function(I){try{return new URL(I,window.document.baseURI)}catch(y){return new URL("about:invalid")}};
DJq=function(I,y){var D=y.createRange();D.selectNode(y.body);I=Fy(I);return D.createContextualFragment(RB(I))};
F5L=function(I){I=I.nodeName;return typeof I==="string"?I:"FORM"};
RBe=function(I){I=I.nodeType;return I===1||typeof I!=="number"};
qR=function(I,y,D){I.setAttribute(y,D)};
OW5=function(I){return I.parts.map(function(y){var D=y.descriptor;return""+y.url+(D?" "+D:"")}).join(" , ")};
_.Et=function(I){var y=_.go.apply(1,arguments);if(y.length===0)return _.c$(I[0]);for(var D=I[0],F=0;F<y.length;F++)D+=encodeURIComponent(y[F])+I[F+1];return _.c$(D)};
_.G_=function(I,y){I=_.W$(I).toString();var D=I.split(/[?#]/),F=/[?]/.test(I)?"?"+D[1]:"";return L5J(D[0],F,/[#]/.test(I)?"#"+(F?D[2]:D[1]):"",y)};
L5J=function(I,y,D,F){function R(w,v){w!=null&&(Array.isArray(w)?w.forEach(function(P){return R(P,v)}):(y+=O+encodeURIComponent(v)+"="+encodeURIComponent(w),O="&"))}
var O=y.length?"&":"?";F.constructor===Object&&(F=Object.entries(F));Array.isArray(F)?F.forEach(function(w){return R(w[1],w[0])}):F.forEach(R);
return _.c$(I+y+D)};
w5J=function(){var I=Pd(JvH).toString();return _.c$(URL.createObjectURL(new Blob([I],{type:"text/javascript"})))};
_.XO=function(I,y){this.x=I!==void 0?I:0;this.y=y!==void 0?y:0};
vWC=function(I){var y=[],D=0,F;for(F in I)y[D++]=F;return y};
SWt=function(I,y){for(var D in I)if(I[D]==y)return!0;return!1};
tTq=function(I,y,D){for(var F in I)if(y.call(D,I[F],F,I))return F};
PDS=function(I){if(!I||typeof I!=="object")return I;if(typeof I.clone==="function")return I.clone();if(typeof Map!=="undefined"&&I instanceof Map)return new Map(I);if(typeof Set!=="undefined"&&I instanceof Set)return new Set(I);if(I instanceof Date)return new Date(I.getTime());var y=Array.isArray(I)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(I)||I instanceof DataView?{}:new I.constructor(I.length),D;for(D in I)y[D]=PDS(I[D]);return y};
K5W=function(I){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return K5W.apply(null,arguments[0]);if(y%2)throw Error("ma");for(var D={},F=0;F<y;F+=2)D[arguments[F]]=arguments[F+1];return D};
UJS=function(I){var y=arguments.length;if(y==1&&Array.isArray(arguments[0]))return UJS.apply(null,arguments[0]);for(var D={},F=0;F<y;F++)D[arguments[F]]=!0;return D};
QE=function(I,y,D,F){this.top=I;this.right=y;this.bottom=D;this.left=F};
YB=function(I,y,D,F){this.left=I;this.top=y;this.width=D;this.height=F};
rvt=function(I){I=I.global;if(I.PendingGetBeacon)return I.PendingGetBeacon};
pG=function(I){return function(y){return y.pipe(jDA(I,Ut(new nG)))}};
m2=function(I){return function(y){return y.pipe(jDA(I,j$(1)))}};
jDA=function(I,y){function D(F){return new Xy(function(R){return F.subscribe(function(O){MR(I,function(){return void R.next(O)},3)},function(O){MR(I,function(){return void R.error(O)},3)},function(){MR(I,function(){return void R.complete()},3)})})}
return Gd(D,L24(),y,Hd(),D)};
hBJ=function(I){var y=oWA(I);return y===null?new kB(null):y.pipe(eY(function(D){D=D.serialize();if(NMW)D=_.Ft.btoa(D);else{for(var F=[],R=0,O=0;O<D.length;O++){var w=D.charCodeAt(O);w>255&&(F[R++]=w&255,w>>=8);F[R++]=w}D=_.VB(F)}return D}),S$(1),m2(I.queue))};
xJe=function(I){var y=y===void 0?{}:y;if(typeof Event==="function")return new Event(I,y);if(typeof document!=="undefined"){var D=document.createEvent("CustomEvent");D.initCustomEvent(I,y.bubbles||!1,y.cancelable||!1,y.detail);return D}throw Error();};
lZL=function(I){return typeof I==="string"?document.getElementById(I):I};
qWW=function(I){var y=!1;y=y===void 0?!1:y;if(I.tagName==="IMG"){if(I.complete&&(!I.naturalWidth||!I.naturalHeight))return!0;var D;if(y&&((D=I.style)==null?void 0:D.display)==="none")return!0}var F,R;return um5.test((F=I.getAttribute("width"))!=null?F:"")&&um5.test((R=I.getAttribute("height"))!=null?R:"")};
EWH=function(I,y){if(I.tagName==="IMG")return I.naturalWidth&&I.naturalHeight?!0:!1;try{if(I.readyState)var D=I.readyState;else{var F,R;D=(F=I.contentWindow)==null?void 0:(R=F.document)==null?void 0:R.readyState}return D==="complete"}catch(O){return y===void 0?!1:y}};
G6A=function(I){I||(I=function(y,D,F){y.addEventListener(D,F)});
return I};
fZe=function(I,y){var D=X5t();D=D===void 0?new QDJ:D;if(I=lZL(I)){var F=G6A(F);for(var R=!1,O=function(f){R||(R=!0,y(f))},w,v=2,P=0;P<YWo.length;++P)if(YWo[P]===I.tagName){v=3;
w=[I];break}w||(w=I.querySelectorAll(YWo.join(",")));var K=0,r=0,N=!0,h=I=!1;P={};for(var x=0;x<w.length;P={isImg:void 0},x++){var q=w[x];if(!qWW(q))if(P.isImg=q.tagName==="IMG",EWH(q,D.crossDomainLoadedDefault))I=!0,P.isImg&&(N=!0);else{K++;var X=function(f){return function(m){K--;!K&&N&&O(v);f.isImg&&(m=m&&m.type==="error",r--,m||(N=!0),!r&&h&&N&&O(v))}}(P);
F(q,"load",X);P.isImg&&(r++,F(q,"error",X))}}r===0&&(N=!0);w=null;w=_.Ft.document.readyState==="complete";if(K===0&&!I&&w)v=5;else if(K||!I){F(_.Ft,"load",function(){!D.pendingImagesBlockLoad||!r&&N?O(4):h=!0});
return}O(v)}};
nWA=function(I,y,D){if(I)for(var F=0;I!=null&&F<500&&!D(I);++F)I=y(I)};
p5q=function(I,y){nWA(I,function(D){try{return D===D.parent?null:D.parent}catch(F){}return null},y)};
mJe=function(I,y){if(I.tagName=="IFRAME")y(I);else{I=I.querySelectorAll("IFRAME");for(var D=0;D<I.length&&!y(I[D]);++D);}};
MT_=function(I){return(I=I.ownerDocument)&&(I.parentWindow||I.defaultView)||null};
zB5=function(I,y,D){try{var F=JSON.parse(D.data)}catch(w){}if(typeof F==="object"&&F&&F.type==="creativeLoad"){var R=MT_(I);if(D.source&&R){var O;p5q(D.source,function(w){try{if(w.parent===R)return O=w,!0}catch(v){}});
O&&mJe(I,function(w){if(w.contentWindow===O)return y(F),!0})}}};
k6q=function(I){return typeof I==="string"?document.getElementById(I):I};
W5C=function(){var I={};return I[0]=_.Et(dJW,"current"),I[1]=_.Et(aZ_),I[2]=_.Et(cvt),I};
dB=function(I,y){return I.left===y.left&&I.top===y.top&&I.width===y.width&&I.height===y.height};
CDq=function(I,y){return{left:Math.max(I.left,y.left),top:Math.max(I.top,y.top),width:Math.max(0,Math.min(I.left+I.width,y.left+y.width)-Math.max(I.left,y.left)),height:Math.max(0,Math.min(I.top+I.height,y.top+y.height)-Math.max(I.top,y.top))}};
BMH=function(I,y){return{left:Math.round(I.left+y.x),top:Math.round(I.top+y.y),width:I.width,height:I.height}};
iWJ=function(I,y,D){if(I&&y!==null&&y!=y.top){if(!y.top)return new _.ad(-12245933,-12245933);y=y.top}try{return(D===void 0?0:D)?(new _.ad(y.innerWidth,y.innerHeight)).round():_.cB(y).round()}catch(F){return new _.ad(-12245933,-12245933)}};
AvB=function(I,y,D){try{if(I){if(!y.top)return new QE(-12245933,-12245933,-12245933,-12245933);y=y.top}var F=iWJ(I,y,D),R=F.height,O=F.width;if(O===-12245933)return new QE(O,O,O,O);var w=WB(CG(y.document)),v=w.x,P=w.y;return new QE(P,v+O,P+R,v)}catch(K){return new QE(-12245933,-12245933,-12245933,-12245933)}};
$JL=function(I){var y;return(y=I.google_tag_data)!=null?y:I.google_tag_data={}};
bWH=function(I){var y,D;return typeof((y=I.navigator)==null?void 0:(D=y.userAgentData)==null?void 0:D.getHighEntropyValues)==="function"};
eB5=function(I){if(!bWH(I))return null;var y=$JL(I);if(y.uach_promise)return y.uach_promise;I=I.navigator.userAgentData.getHighEntropyValues(HW5).then(function(D){y.uach!=null||(y.uach=D);return D});
return y.uach_promise=I};
LOW=function(I){var y;return TMo(sDL(VTo(ZWJ(gW5(IaA(yuL(Daq(FO5(new RkH,I.architecture||""),I.bitness||""),I.mobile||!1),I.model||""),I.platform||""),I.platformVersion||""),I.uaFullVersion||""),((y=I.fullVersionList)==null?void 0:y.map(function(D){var F=new OeS;F=_.BB(F,1,D.brand);return _.BB(F,2,D.version)}))||[]),I.wow64||!1)};
Ju_=function(I){var y,D;return(D=(y=eB5(I))==null?void 0:y.then(function(F){return LOW(F)}))!=null?D:null};
wmq=function(I,y){return new Xy(function(D){var F=!1,R=Array(y.length);R.fill(void 0);var O=new Set,w=new Set,v=function(N,h){I.running?(R[h]=N,O.add(h),F||(F=!0,MR(I,function(){F=!1;D.next(_.C5(R))},1))):D.error(new il(h))},P=function(N,h){w.add(h);
O.add(h);MR(I,function(){D.error(N)},1)},K=function(N){w.add(N);
MR(I,function(){w.size===y.length&&D.complete()},1)},r=y.map(function(N,h){return N.subscribe(function(x){return void v(x,h)},function(x){return void P(x,h)},function(){return void K(h)})});
return function(){r.forEach(function(N){return void N.unsubscribe()})}})};
tRe=function(I,y,D){function F(){if(y.debugChannel){var f=y.debugChannel,m=f.next;var z={creativeId:y.debugNames.getName(D),requiredSignals:R,signals:Object.assign({},O),hasPrematurelyCompleted:w,errorMessage:v,erroredSignalKey:P};z={specMajor:2,specMinor:0,specPatch:0,timestamp:Rd(y.timeProvider.now(),new Ot(0,y.timeProvider.timeline)),instanceId:y.debugNames.getName(y.symbol),creativeState:z};m.call(f,z)}}
for(var R=Object.keys(I),O={},w=!1,v=null,P=null,K={},r=new Set,N=[],h=[],x=_.J(R),q=x.next(),X={};!q.done;X={key$jscomp$394:void 0},q=x.next())X.key$jscomp$394=q.value,q=I[X.key$jscomp$394],q instanceof kB?(K[X.key$jscomp$394]=q.value,r.add(X.key$jscomp$394),y.debugChannel&&(O[String(X.key$jscomp$394)]=mRq(q.value))):(q=q.pipe(tY(function(f,m){return nBo(f)||nBo(m)?!1:f===m}),eY(function(f){return function(m){y.debugChannel&&(O[String(f.key$jscomp$394)]=mRq(m),F());
var z={};return z[f.key$jscomp$394]=m,z}}(X)),JY(function(f){return function(m){if(m instanceof il)throw new vMJ(String(f.key$jscomp$394));
throw m;}}(X)),$RL(function(f){return function(){r.add(f.key$jscomp$394)}}(X),function(f){return function(m){P=String(f.key$jscomp$394);
v=String(m);F()}}(X),function(f){return function(){r.has(f.key$jscomp$394)||(w=!0,F())}}(X))),h.push(X.key$jscomp$394),N.push(q));
(I=Object.keys(O).length>0)&&F();x=wmq(y.queue,N).pipe(JY(function(f){if(f instanceof il)throw new Su_(String(h[f.inputObservableIndex]));throw f;}),eY(function(f){return Object.freeze(Object.assign.apply(Object,[{},
K].concat(_.Td(f))))}));
return(N=N.length>0)&&I?DO(ii(Object.freeze(K)),x):N?x:ii(Object.freeze(K))};
PSA=function(I,y,D,F,R){return I.performanceMonitor.timeExecution.bind(I.performanceMonitor)(733,function(){var O={};try{return y.pipe(JY(function(w){F(Object.assign({},O,{error:w}));return yE}),Zt(function(w){try{var v=D(I,w)}catch(K){return F(Object.assign({},O,{error:K instanceof Error?K:String(K)})),yE}var P={};
return tRe(v,I,w.symbol).pipe($RL(function(K){P=K}),j$(1),Hd()).pipe(R,JY(function(K){F(Object.assign({},P,{error:K}));
return yE}),PB(void 0),eY(function(){return!0}))})).pipe(od(function(w){return w+1},0),JY(function(w){F(Object.assign({},O,{error:w}));
return yE}))}catch(w){return F(Object.assign({},O,{error:w})),yE}})()};
AY=function(I){var y=new Map;if(typeof I!=="object"||I===null)return y;Object.values(I).forEach(function(D){D&&typeof D.extrapolateToNow==="function"&&(y.has(D.clock.timeline)||y.set(D.clock.timeline,D.clock.now()))});
return y};
KOH=function(I,y){return typeof I==="string"?encodeURIComponent(I):typeof I==="number"?String(I):Array.isArray(I)?I.map(function(D){return KOH(D,y)}).join(","):I instanceof Ot?I.toString():I&&typeof I.extrapolateToNow==="function"?KOH(I.extrapolateUsingTimestampMap(y).value,y):I===!0?"1":I===!1?"0":I===void 0||I===null?null:I instanceof Uat?ruS(I):[I.top,
I.left,I.top+I.height,I.left+I.width].join()};
jbA=function(I,y){I=Object.entries(I).map(function(D){var F=_.J(D);D=F.next().value;F=F.next().value;F=KOH(F,y);return F===null?"":D+"="+F}).filter(function(D){return D!==""});
return I.length?I.join("&"):""};
hkA=function(I,y){var D=oMt,F=NRC;y=y===void 0?.01:y;return function(R){y>0&&Math.random()<=y&&(I.global.HTMLFencedFrameElement&&I.global.fence&&typeof I.global.fence.reportEvent==="function"&&I.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),R=Object.assign({},R,{errorMessage:R.error instanceof Error&&R.error.message?R.error.message:String(R.error),errorStack:R.error instanceof Error&&R.error.stack?String(R.error.stack):null,errorName:R.error instanceof
Error&&R.error.name?String(R.error.name):null,errorContext:String(I.performanceMonitor.timedFunctionContext),errorEscapedQueryId:R.escapedQueryId}),D(Object.assign({},R,{payloadMapper:function(){return function(O){try{return F(Object.assign({},O))}catch(w){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),AY(R)).forEach(function(O){I.beaconFactory.makeBeacon(O).sendNow()}))}};
xaL=function(){var I=_.go.apply(0,arguments);return function(y){var D=y.pipe(j$(1),Hd());y=I.map(function(F){return D.pipe(F,PB(!0))});
return sk(y).pipe(S$(1),wB())}};
laJ=function(){var I=_.go.apply(0,arguments);return function(y){var D=y.pipe(j$(1),Hd());y=I.map(function(F){return D.pipe(F,PB(!0))});
return DO.apply(null,_.Td(y)).pipe(S$(1),wB())}};
u55=function(I,y){return function(D){var F=D.pipe(j$(1),Hd());D=F.pipe(I,PB(!0));F=F.pipe(Gd(y,j$(),Hd()),PB(!0));D=sk([D,F]);return Ytq(D,F).pipe(S$(1),wB())}};
quB=function(I,y,D){D(!0)};
EM4=function(I,y){return Gd(hY(function(D){var F=I(D),R=y(D),O={};return F&&R&&O?new Xy(function(w){R(F,O,function(v){w.next(Object.assign({},D,{canEmit:v}));w.complete()});
return function(){}}):$B}),FO(function(D){return D.canEmit}))};
GOe=function(I){var y={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(D){return D.pipe(hY(function(F){return new Xy(function(R){function O(){v.disconnect();P.unsubscribe()}
var w=I.MutationObserver;if(w&&F.ref!==void 0){var v=new w(function(K){R.next(K)});
v.observe(F.ref,y);var P=F.JSC$9636_released.subscribe(O);return O}})}))}};
Xm5=function(I){if(I.measurementDeferralState===3)return null;if(I.timeOnScreenReason!==void 0){var y=I.creativeFound===!1?"n":null;if(y!==null)return y}return I.geometricMeasurementErrors instanceof bl?"msf":I.contextValidationErrors instanceof HB?"c":I.contextVisibilityKnown===!1?"pv":I.geometricMeasurementErrors||I.contextValidationErrors?"x":null};
Yut=function(I,y){return I.replace(Qbq,function(D,F){try{var R=_.e$.get(y,F);if(R==null||R.toString()==null)return D;R=R.toString();if(R==""||!_.wq(R==null?"":String(R)))return encodeURIComponent(R).replace(/%2C/g,",")}catch(O){}return D})};
faL=function(I,y){var D=Object.assign({},I),F=I.userAgentClientHints;D=(delete D.userAgentClientHints,D);D=I.payloadMapper(D);var R=jbA(D,y);return _.T_(I.urlPrefixes,function(O){var w="";typeof F==="string"&&(w="&"+jbA({uach:F},y));var v={};return Yut(O,(v.VIEWABILITY=R,v))+w})};
oMt=function(I,y){var D=I.payloadMapper(I),F=jbA(D,y);return F?_.T_(I.urlPrefixes,function(R){R=R.indexOf("?")>=0?R:R+"?";R="?&".indexOf(R.slice(-1))>=0?R:R+"&";return R+F}):I.urlPrefixes};
nMq=function(){return Gd(FO(function(I){return I!==void 0}),eY(function(I){return I}))};
pmt=function(I){return Gd(eY(function(){return!0}),NR(!1),m2(I))};
maW=function(I){return I.length<=0?yE:sk(I.map(function(y){var D=0;return y.pipe(eY(function(F){return{index:D++,value:F}}))})).pipe(FO(function(y){return y.every(function(D){return D.index===y[0].index})}),eY(function(y){return y.map(function(D){return D.value})}))};
MR5=function(I,y){I.currentState&&(I.previousState=I.currentState);I.currentState=y;I.previousState&&I.previousState.value?(y=Math.max(0,Rd(y.timestamp,I.previousState.timestamp)),I.totalTime+=y,I.consecutiveTime+=y):I.consecutiveTime=0;return I};
zkW=function(){return Gd(od(MR5,{totalTime:0,consecutiveTime:0}),eY(function(I){return I.totalTime}))};
kOS=function(){return Gd(od(MR5,{totalTime:0,consecutiveTime:0}),eY(function(I){return I.consecutiveTime}))};
da5=function(I,y){return function(D){return maW(y.map(function(F){return D.pipe(I(F))}))}};
aa_=function(){var I;return Gd($RL(function(y){return void(I=y.timestamp)}),kOS(),eY(function(y){return{timestamp:I,
value:Math.round(y)}}))};
cu_=function(I,y){return dB(I.topWindowViewportExternalGeometry,y.topWindowViewportExternalGeometry)&&dB(I.elementGeometry,y.elementGeometry)&&dB(I.exposedViewportLocalGeometry,y.exposedViewportLocalGeometry)&&dB(I.intersectionGeometry,y.intersectionGeometry)&&I.elementGeometrySourceName===y.elementGeometrySourceName&&I.measurementRequests===y.measurementRequests&&I.viewportGeometrySourceName===y.viewportGeometrySourceName&&I.viewportLocalAppOffset.x===y.viewportLocalAppOffset.x&&I.viewportLocalAppOffset.y===
y.viewportLocalAppOffset.y};
ieS=function(I,y){return function(D){return function(F){var R=F.pipe(Ut(new nG),Hd());F=D.element.pipe(tY());R=R.pipe(eY(function(O){return O.value}));
return sk([F,R,y]).pipe(eY(function(O){var w=_.J(O);O=w.next().value;var v=w.next().value;w=w.next().value;if(O.ref===void 0)var P={top:0,left:0,width:0,height:0};else{P=O.ref.getBoundingClientRect();var K=O.ref,r=I.global,N=new _.XO(0,0),h=st(_.VE(K));if(sdL(h,"parent")){do{if(h==r)var x=_.ZO(K);else x=WO4(K),x=new _.XO(x.left,x.top);N.x+=x.x;N.y+=x.y}while(h&&h!=r&&h!=h.parent&&(K=h.frameElement)&&(h=h.parent))}P={top:N.y,left:N.x,width:P.width,height:P.height}}P=BMH(P,v.viewportLocalAppOffset);
r=CDq(P,v.exposedViewportLocalGeometry);N=I.timeProvider.now();h=Object;K=h.assign;if(w!==2||I.inCrossDomainIframe||r.width<=0||r.height<=0)var q=!1;else try{var X=I.document.elementFromPoint(r.left+r.width/2,r.top+r.height/2);q=X?!CSB(X,O):!1}catch(f){q=!1}return{timestamp:N,value:K.call(h,{},v,{elementGeometrySourceName:"geo",intersectionGeometry:q?BRS.intersectionGeometry:r,elementGeometry:P})}}),pG(I.queue))}}};
CSB=function(I,y,D){D=D===void 0?0:D;return I.ref===void 0||y.ref===void 0?!1:I.ref===y.ref||_.gB(y.ref,function(F){return F===I.ref})?!0:y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView===y.ref.ownerDocument.defaultView.top?!1:D<10&&y.ref.ownerDocument&&y.ref.ownerDocument.defaultView&&y.ref.ownerDocument.defaultView.frameElement?CSB(I,new ID(y.ref.ownerDocument.defaultView.frameElement),D+1):!0};
beq=function(I){return function(y){return y.pipe(I.ResizeObserver?AuJ(I):$aq(I),j$(1),Hd())}};
AuJ=function(I){return function(y){return y.pipe(hY(function(D){var F=I.ResizeObserver;if(!F||D.ref===void 0)return ii(BRS.elementGeometry);var R=(new Xy(function(O){function w(){D.ref!==void 0&&v.unobserve(D.ref);v.disconnect();P.unsubscribe()}
if(D.ref===void 0)return O.complete(),function(){};
var v=new F(function(K){K.forEach(function(r){O.next(r)})});
v.observe(D.ref);var P=D.JSC$9636_released.subscribe(w);return w})).pipe(LG(I.performanceMonitor,736),eY(function(O){return O.contentRect}));
return DO(ii(D.ref.getBoundingClientRect()),R)}),tY(dB))}};
$aq=function(I){return function(y){var D=y.pipe(GOe(I)),F=I.onResize;D=DO(y.pipe(eY(function(){return xJe("resize")})),D,F);
return sk(y,D).pipe(LG(I.performanceMonitor,737),eY(function(R){R=_.J(R).next().value;return R.ref===void 0?void 0:R.ref.getBoundingClientRect()}),nMq(),tY(dB))}};
TR5=function(I,y){var D=HeW(I,y).pipe(j$(1),Hd());return function(F){return function(R){R=R.pipe(hY(function(O){return O.element}),tY());
return sk([D,R]).pipe(hY(function(O){var w=_.J(O);O=w.next().value;w=w.next().value;return ek5(I,O.intersectionObserver,beq(I),O.observations,F,O.flushRecords,w)}),pG(I.queue))}}};
sbq=function(I){return eY(function(y){return y.value.viewportGeometrySourceName!=="nio"?y:Object.assign({},y,{value:Object.assign({},y.value,{exposedViewportLocalGeometry:Fm(I,!0),topWindowViewportExternalGeometry:Fm(I,!0)})})})};
VRB=function(I,y){return ii(y).pipe(I,eY(function(){return y}))};
HeW=function(I,y){return I.timeProvider.timeline!==Zeq?AW(new bl(2)):I.MutationObserver?typeof IntersectionObserver==="undefined"?AW(new bl(0)):(new Xy(function(D){var F=new nG,R=new RD(F.next.bind(F),{threshold:[].concat(_.Td(y))});D.next({observations:F.pipe(LG(I.performanceMonitor,735)),intersectionObserver:R,flushRecords:function(O){O=R.takeRecords(O);O.length>0&&F.next(O)}})})).pipe(S$(1),j$(1),Hd()):AW(new bl(1))};
gM_=function(I){return sB_(I.sort(function(y,D){return y.time-D.time}),OG_)};
ek5=function(I,y,D,F,R,O,w){return new Xy(function(v){function P(){q||(q=!0,w.ref!==void 0&&y.unobserve(R,w.ref),r.unsubscribe(),x.unsubscribe(),h.unsubscribe(),X.unsubscribe())}
if(w.ref!==void 0){I4J(y,R);y.observe(R,w.ref);var K=new OW({timestamp:I.timeProvider.now(),value:Object.assign({},BRS,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),r=F.pipe(Zt(function(f){return gM_(f)}),FO(function(f){return f.target===w.ref}),eY(function(f){return{timestamp:new Ot(f.time,Zeq),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:f.rootBounds||LW,topWindowViewportExternalGeometry:f.rootBounds||Fm(I,!0),measurementRequests:N,elementGeometrySourceName:"nio",intersectionGeometry:f.intersectionRect,elementGeometry:f.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:f.isIntersecting,isV2Visible:f.isVisible}}}),Ut(K),Hd()).subscribe(v),N=new nG,h=N.subscribe(function(){O(R);
v.next({timestamp:I.timeProvider.now(),value:K.value.value});w.ref!==void 0&&(y.unobserve(R,w.ref),y.observe(R,w.ref))}),x=VRB(D,w).subscribe(function(){N.next()}),q=!1,X=w.JSC$9636_released.subscribe(function(){return P()});
return P}})};
yIq=function(I,y){var D=I.getOnBackgrounded().pipe(eY(function(){return"b"}));
return Ytq(y,D).pipe(S$(1),m2(I.queue))};
Jv=function(I){return function(y){var D;return y.pipe($RL(function(F){return void(D=F.timestamp)}),eY(function(F){return F.value}),I,eY(function(F){return{timestamp:D,
value:F}}))}};
D3C=function(I){return I.intersectionGeometry.width*I.intersectionGeometry.height/(I.elementGeometry.width*I.elementGeometry.height)};
wM=function(I,y,D){D=D===void 0?function(F,R){return F===R}:D;
return I.timestamp.equals(y.timestamp)&&D(I.value,y.value)};
ST=function(I,y){return y.pipe(eY(function(D){return new v5(I.timeProvider,{timestamp:I.timeProvider.now(),value:D})}))};
FEH=function(I){return function(y){return y.pipe(bGo(I),eY(function(D){var F=_.J(D);D=F.next().value;F=F.next().value;var R=D.value;return{timestamp:D.timestamp,value:R>=1?!0:R<=0?!1:R>=F}}))}};
Oi_=function(){return Gd(FO(function(I,y){return y>0}),RYq,NR(-1),tY())};
LEq=function(I,y,D){return I?sk([y,D]).pipe(FO(function(F){var R=_.J(F);F=R.next().value;R=R.next().value;return F.timestamp.equals(R.timestamp)}),eY(function(F){var R=_.J(F);
F=R.next().value;R=R.next().value;return F.value>R.value?F:R})):y};
v4_=function(I){return function(y){var D=y.pipe(JIe),F=y.pipe(wVH);return I instanceof Xy?I.pipe(hY(function(R){return LEq(R,D,F)})):LEq(I.value,D,F)}};
hYH=function(I,y,D,F){var R=F.geometryIsOccluded,O=F.exposureThreshold,w=F.wasLargeAdAtRender,v=F.allowLargeAdThreshold,P=F.largeAdExposureThreshold,K=F.mayUseViewportShareExposure,r=F.hasMeasurementStarted;F=F.useIntersectionObserverV2;y=SfB(I,D,y);D=tjW(I,D);F=PFt(y,F);var N=KEt(I,R,K,y),h=N.pipe(eY(function(H){return H.value}),tY(),m2(I),od(function(H,e){return Math.max(H,e)},0)),x=N.pipe(eY(function(H){return H.value}),Oi_(),m2(I)),q=y.pipe(U35,eY(function(H){return H.value}),S$(2),tY(),m2(I));
w=rIC(I,y,w,v);var X=w.pipe(NR(!1),tY(),eY(function(H){return H?P:O}));
v=N.pipe(FEH(X),tY(),m2(I));var f=sk([v,y]).pipe(FO(function(H){var e=_.J(H);H=e.next().value;e=e.next().value;return H.timestamp.equals(e.timestamp)}),eY(function(H){var e=_.J(H);
H=e.next().value;e=e.next().value;return{visible:H.value,geometry:e.value.elementGeometry}}),od(function(H,e){return!e.visible&&H.visible?H:e},{visible:!1,
geometry:LW}),eY(function(H){return H.geometry}),NR(LW),m2(I),tY(dB));
K=K instanceof Xy?K.pipe(tY(),vB()):$B;X=sk([K,X]).pipe(vB());var m=y.pipe(FO(function(H){return H.value.viewportGeometrySourceName!=="ns"&&H.value.elementGeometrySourceName!=="ns"}),od(function(H){return H+1},0),NR(0),m2(I)),z=D.pipe(vB(!0),NR(!1),m2(I));
z=sk([r,z]).pipe(eY(function(H){var e=_.J(H);H=e.next().value;e=e.next().value;return H&&!e}),m2(I));
var B=y.pipe(jUW,tY()),C=B.pipe(eY(function(H){return H.value}),od(function(H,e){return Math.max(H,e)},0),tY(),m2(I));
I=B.pipe(eY(function(H){return H.value}),Oi_(),m2(I));
return{shouldResetExposureSignals:K,shouldResetViewabilitySignals:X,geometrySignals:{readyGeometryWithDefault:y,measurementStrategy:y.pipe(o4J),creativePosition:f.pipe(tY(dB)),visible:v.pipe(tY(wM)),timestampedExposure:N.pipe(tY(wM)),maximumExposure:h,minimumExposure:x,browserSize:y.pipe(NZL,tY(_.sq)),timestampedScreenShare:B,maxScreenShare:C,minScreenShare:I,geometricMeasurementErrors:D,measurementRequests:y.pipe(eY(function(H){return H.value.measurementRequests})),
isLargeAd:w,geometryIsOccluded:R,hasMeasurementStarted:r,geometryMeasurable:z,validMeasurementCount:m,loadTimeExposure:q,v2VisibilityBitVector:F}}};
tjW=function(I,y){return y.pipe(FO(function(){return!1}),eY(function(D){return D}),JY(function(D){return tv(new kB(D),I)}))};
SfB=function(I,y,D){return y.pipe(XBq($B),m2(I)).pipe(tY(function(F,R){return wM(F,R,cu_)}),NR({timestamp:D.now(),
value:BRS}),m2(I))};
KEt=function(I,y,D,F){D=F.pipe(v4_(D),Jv(eY(function(R){return Math.round(R*100)/100})),m2(I));
return y instanceof kB?D:sk([D,y]).pipe(eY(function(R){var O=_.J(R);R=O.next().value;O=O.next().value;return{timestamp:O.timestamp.maximum(R.timestamp),value:O.value?0:R.value}}),tY(wM),m2(I))};
rIC=function(I,y,D,F){y=[y.pipe(eY(function(R){return R.value.elementGeometry.width*R.value.elementGeometry.height>=242500}))];
D instanceof Xy&&y.push(D.pipe(eY(function(R){return!!R})));
D=sk(y);return F?D.pipe(eY(function(R){return R.some(function(O){return O})}),NR(!1),tY(),m2(I)):tv(new kB(!1),I)};
PFt=function(I,y){I=sk([I,y]).pipe(eY(function(R){var O=_.J(R);R=O.next().value;if(O.next().value&&R.value.isIntersecting)return R.value.isV2Visible}),tY());
var D=I.pipe(eY(function(R){return R===void 0?!0:R}),od(function(R,O){return R||!O},!1)),F=I.pipe(od(function(R,O){return O===void 0?R:O?!1:R!=null?R:!0},void 0),eY(function(R){return!!R}));
return sk([y,fOA(I,D,F)]).pipe(eY(function(R){var O=_.J(R);R=O.next().value;var w=_.J(O.next().value);O=w.next().value;var v=w.next().value;w=w.next().value;var P=0;if(!R)return 0;if(O===void 0)return 16;O&&(P|=1);O||(P|=2);v&&(P|=4);w&&(P|=8);return P}))};
GBe=function(I,y,D,F,R){var O=x3e.timeThresholdMs;var w=w===void 0?new l4B(y,F):w;return(new Xy(function(v){var P=D.pipe(NR(void 0),hY(function(){return u8e(R)})).pipe(eY(function(K){var r=K.value;
K=K.timestamp;var N=r.visible;r=r.consecutiveViewTime;var h=r>=O;h||!N?qfJ(w):(K=Math.max(0,Rd(y.now(),K)),E4e(w,Math.max(0,O-r-K)));return h}),od(function(K,r){return r||K},!1),tY()).subscribe(v);
return function(){w.dispose();P.unsubscribe()}})).pipe(xB(function(v){return!v},!0),m2(I))};
u8e=function(I){return maW([I,I.pipe(aa_())]).pipe(eY(function(y){var D=_.J(y);y=D.next().value;D=D.next().value;return{timestamp:y.timestamp,value:{visible:y.value,consecutiveViewTime:D.value}}}),tY(function(y,D){return wM(y,D,function(F,R){return F.consecutiveViewTime===R.consecutiveViewTime&&F.visible===R.visible})}))};
XVC=function(){return Gd(kOS(),od(function(I,y){return Math.max(I,y)},0),eY(function(I){return Math.round(I)}))};
QUH=function(I){return Gd(FEH(ii(I)),XVC())};
YfL=function(I,y){return y instanceof Xy?y.pipe(hY(function(D){return(D=D?15:null)?AW(new bl(D)):I})):(y=y.value?15:null)?AW(new bl(y)):I};
f4A=function(I){var y=new bl(13);if(I.length<1)return{chain:yE,capturedErrors:yE};var D=new nG,F=I[0];return{chain:I.slice(1).reduce(function(R,O){return R.pipe(JY(function(w){D.next(w);return O}))},F).pipe(JY(function(R){D.next(R);
return AW(y)}),Ut(new nG),Hd()),
capturedErrors:D}};
n45=function(I,y){var D=I.pipe(Ut(new nG),Hd());return hY(function(F){return D.pipe(y(F))})};
m3q=function(I,y){if(I.inCrossDomainIframe)return AW(new bl(6));var D=new nG;return DO(ii({}),y,D).pipe(eY(function(){return{timestamp:I.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:pV4(I),topWindowViewportExternalGeometry:Fm(I,!0),measurementRequests:D,viewportLocalAppOffset:{x:0,y:0}}}}),pG(I.queue))};
pV4=function(I){var y=Fm(I,!1);if(!I.inIframe||!V$B(I.global.parent)||I.global.parent===I.global)return y;var D=new P5(I.global.parent,I.debugChannel);D.beaconFactory=I.beaconFactory;D=pV4(D);I=I.global.frameElement.getBoundingClientRect();return CDq(BMH(CDq(D,I),{x:y.left-I.left,y:y.top-I.top}),y)};
MjH=function(I){if(I.prerendering)return 3;var y;return(y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[I.visibilityState||I.webkitVisibilityState||I.mozVisibilityState||""])!=null?y:0};
zYL=function(I){return I.document.JSC$9647_onVisibilityChange.pipe(eY(function(y){return y==="visible"}),tY(),m2(I.queue))};
kBt=function(I,y,D){var F;return y.pipe(tY(),hY(function(R){return D.pipe(eY(function(){if(!F){F=!0;try{R.next()}finally{F=!1}}return!0}))}),NR(!1),m2(I.queue))};
d3B=function(I){return Gd(Jv(eY(function(y){return y>=1?!0:y<=0?!1:y>=I})),zkW(),eY(function(y){return Math.round(y)}))};
cIB=function(I,y,D,F,R){var O=a4B;if(O.length>1)for(var w=0;w<O.length-1;w++)if(O[w]<O[w+1])throw Error();w=R.pipe(NR(void 0),hY(function(){return D.pipe(aa_())}),tY(),m2(I));
R=R.pipe(NR(void 0),hY(function(){return D.pipe(XVC())}),tY(),m2(I));
return{totalMeasurementTime:F.pipe(NR(void 0),hY(function(){return y.pipe(eY(function(v){return{timestamp:v.timestamp,value:!0}}),zkW())}),tY(),m2(I)),
totalUnviewedTime:F.pipe(NR(void 0),hY(function(){return y.pipe(eY(function(v){return{timestamp:v.timestamp,value:v.value===0}}),zkW())}),tY(),m2(I)),
maxTimeOnScreen:F.pipe(NR(void 0),hY(function(){return y.pipe(da5(QUH,O))}),tY(_.sq),m2(I)),
timeOnScreen:F.pipe(NR(void 0),hY(function(){return y.pipe(da5(d3B,O),eY(function(v){return v.map(function(P,K){return K>0?P-v[K-1]:P})}))}),tY(_.sq),m2(I)),
maxConsecutiveViewTime:R,consecutiveViewTime:w.pipe(tY(wM),m2(I))}};
CFH=function(I){var y=!0;y=y===void 0?!1:y;return Gd(hY(function(D){return WES(I.document,D,y)}),m2(I.queue))};
BZt=function(I,y,D){var F=D.pipe(eY(function(R){return{value:R,timestamp:I.timeProvider.now()}}),tY(wM));
return y instanceof Xy?y.pipe(tY(),hY(function(R){return R?tv(new kB({value:!1,timestamp:I.timeProvider.now()}),I.queue):F})):y.value===!1?F:new kB(!1)};
ii_=function(I,y,D,F,R,O,w){var v=x3e;y=y instanceof Xy?y.pipe(NR(!1),tY()):y;var P=!I.isMobile();D=BZt(I,D,F);I=w.measurableCreative.pipe(pmt(I.queue));return Object.assign({},v,{geometryIsOccluded:D,wasLargeAdAtRender:R,allowLargeAdThreshold:P,mayUseViewportShareExposure:y,hasMeasurementStarted:I,useIntersectionObserverV2:O})};
$3_=function(I,y,D,F,R,O){var w=1;O=O===void 0?!0:O;w=w===void 0?.01:w;var v=v===void 0?I.timeProvider.intervalObservable(100).pipe(m2(I.queue)):v;return I.performanceMonitor.timeExecution(916,function(){return AI4(I,y.pipe(pG(I.queue)),D.pipe(pG(I.queue)),F,R,O,w,v)})()};
AI4=function(I,y,D,F,R,O,w,v){var P=zYL(I).pipe(eY(function(r){return!r})),K=new biW(I,[new Hiq(I,a4B),
new eYS(I,v)]);v=xaL(TZB,sUJ);return PSA(I,y,function(r,N){var h=tv(new kB(N.element),r.queue).pipe(CFH(r),m2(r.queue)),x={loadedElement:h,shouldMeasure:h.pipe(vB(!0)),measurableCreative:h.pipe(eY(function(H){var e=e===void 0?Symbol():e;return Object.freeze({symbol:e,element:tv(new kB(H),r.queue)})})),
creativeSearchResult:tv(new kB("mue"),r.queue)},q=new kB(!1),X=new kB(!1),f=new kB(17),m=new kB(!1),z=new kB(!1),B=tv(KW,r.queue);q=K.buildGeometrySource(x,{inApp:q,useV2:!1,requestSource:tv(f,r.queue)}).geometrySource;x=ii_(r,m,X,P,z,B,x);X=hYH(r.queue,r.timeProvider,q,x);x=X.geometrySignals;m=X.shouldResetViewabilitySignals;X=cIB(r.queue,x.timestampedExposure,x.visible,X.shouldResetExposureSignals,m);m=GBe(r.queue,r.timeProvider,m,x.measurementRequests,x.visible);z=D.pipe(FO(function(H){return H===
N.element.ref}),eY(function(){return"ur"}));
B=M$H(r.timeProvider,R).pipe(vB("t"));z=yIq(r,DO(z,B));B=kBt(r,x.measurementRequests,z.pipe(FO(function(H){return H!==null})));
q=z.pipe(FO(function(H){return H!==null}),eY(function(){return MjH(r.global.document)===1}));
var C=Vj5(r.document);return Object.assign({},{beaconFactory:new kB(r.beaconFactory),context:new kB(r),inferredPingId:new kB("lidar2"),timeOnScreenPingId:new kB("lidartos"),binaryContext:new kB(17),binaryVersion:new kB(F),requestSource:f,contextValidationErrors:new kB(r.validate()?null:new HB),contextVisibilityKnown:new kB(C),payloadMapper:new kB(NRC),endOfSessionReason:z,timeOnScreenReason:z,requestMeasurementOnEndOfSession:B,hasImpressionFired:Zi_,crossDomainIframeState:new kB(r.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:KW,inFetchLaterBeaconExperiment:KW,isTurtlex:KW,turtlexReportEventData:new kB(""),reportFencedFrameEvent:$B,isViewableAttributionEnabled:KW,inViewableAttributionExperiment:new kB(0),fetchBeaconFactory:$B,supportsPendingBeacon:KW,supportsFetchLater:KW,emit:new kB(quB),beginToRenderEvent:new kB(Symbol()),activeViewUnmeasurableEvent:new kB(Symbol()),activeViewViewableEvent:new kB(Symbol()),creativeFound:Zi_,immediateUrlPrefixes:new kB(N.immediateUrls),timeOnScreenUrlPrefixes:new kB(N.timeOnScreenUrls),
cpmavUrls:$B,viewableRelayUrls:$B,measurementDeferralState:new kB(2),urlSerializer:new kB(faL),viewUrlSerializer:new kB(g4B),isCreativeLoaded:h.pipe(pmt(r.queue)),pageVisible:P.pipe(eY(function(H){return!H})),
eosPageVisible:q,timestampedExposureHistory:x.timestampedExposure.pipe(od(function(H,e){H.push(e);return H},[]))},x,{viewable:ST(r,m),
maxTimeOnScreen:ST(r,X.maxTimeOnScreen),timeOnScreen:ST(r,X.timeOnScreen),maxConsecutiveViewTime:ST(r,X.maxConsecutiveViewTime),consecutiveViewTime:X.consecutiveViewTime.pipe(eY(function(H){return new v5(r.timeProvider,H)})),
totalMeasurementTime:ST(r,X.totalMeasurementTime),totalUnviewedTime:ST(r,X.totalUnviewedTime),userAgentClientHints:hBJ(r),clientOrderPingCounter:new kB(new Uat)})},hkA(I,w),laJ(O?u55(v,IFq):u55(v,yGo),DCt))};
FwW=function(I){var y=_.go.apply(1,arguments).filter(Boolean).join("&");if(!y)return I;var D=I.match(/[?&]adurl=/);return D?I.slice(0,D.index+1)+y+"&"+I.slice(D.index+1):I+(I.indexOf("?")<0?"?":"&")+y};
UW=function(I,y){return y?"&"+I+"="+encodeURIComponent(y):""};
RXq=function(){try{var I,y;return!!((I=window)==null?0:(y=I.top)==null?0:y.location.href)&&!1}catch(D){return!0}};
_.rM=function(I){I&&typeof I.dispose=="function"&&I.dispose()};
_.oD=function(I){for(var y=0,D=arguments.length;y<D;++y){var F=arguments[y];_.i_(F)?_.oD.apply(null,F):_.rM(F)}};
LwH=function(){var I=ORW();I=I===void 0?"bevasrsg":I;return new Promise(function(y){var D=window===window.top?window:RXq()?window:window.top,F=D[I],R;((R=F)==null?0:R.bevasrs)?y(new NJ(F.bevasrs)):(F||(F={},F=(F.nqfbel=[],F),D[I]=F),F.nqfbel.push(function(O){y(new NJ(O))}))})};
JG_=function(I){var y={c:I.jH,e:I.tnt,mc:I.y2j,me:I.kam};I.so&&(y.co={c:I.so.gKH,a:I.so.lbe,s:I.so.o2u});return y};
wiA=function(I){var y,D,F={jH:I.c,tnt:I.e,y2j:(y=I.mc)!=null?y:!1,kam:(D=I.me)!=null?D:!1};I.co&&(F.so={gKH:I.co.c,lbe:I.co.a,o2u:I.co.s});return F};
vf5=function(I){return function(){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I(),2);y=D.yieldResult;return D.return({f:function(){return y.aik()},
c:function(F){return y.b1j(F)},
m:function(F){return y.fJ(wiA(F))},
mws:function(F){return y.xBp(wiA(F))}})})}};
SJH=function(I,y){var D=ORW();D=D===void 0?"bevasrsg":D;y={s:function(O){var w;return I.snapshot(Object.assign({},O.c&&{jH:O.c},O.s&&{klc:O.s},{gTs:(w=O.p)!=null?w:!0}))},
e:function(O){var w;return void((w=I.uLK)==null?void 0:w.call(I,O))},
c:function(O,w){return I.vnf(O,w)},
p:I.oTt,l:function(){return I.nDt()},
wpc:y?vf5(y):void 0};var F=window===window.top?window:RXq()?window:window.top,R=F[D];if(R){R.bevasrs=y;if(R.nqfbel!==void 0)for(D=_.J(R.nqfbel),F=D.next();!F.done;F=D.next())F=F.value,F(y);R.nqfbel=void 0}else R={},R=(R.bevasrs=y,R.nqfbel=void 0,R),F[D]=R};
PPC=function(I){var y=y===void 0?52:y;var D=[];_.hv(I,tF_,6,_.xW()).forEach(function(F){_.lD(F,2)<=y&&D.push(_.lD(F,1))});
return D};
Kwq=function(I){var y=y===void 0?52:y;var D=[];_.hv(I,tF_,6,_.xW()).forEach(function(F){_.lD(F,2)>y&&D.push(_.lD(F,1))});
return D};
UC5=function(I){I.then(function(){},function(){})};
uD=function(I){return{fieldType:1,fieldName:I}};
qJ=function(I){return{fieldType:2,fieldName:I}};
_.EW=function(I){return{fieldType:3,fieldName:I}};
rGA=function(){function I(){R[0]=1732584193;R[1]=4023233417;R[2]=2562383102;R[3]=271733878;R[4]=3285377520;r=K=0}
function y(N){for(var h=w,x=0;x<64;x+=4)h[x/4]=N[x]<<24|N[x+1]<<16|N[x+2]<<8|N[x+3];for(x=16;x<80;x++)N=h[x-3]^h[x-8]^h[x-14]^h[x-16],h[x]=(N<<1|N>>>31)&4294967295;N=R[0];var q=R[1],X=R[2],f=R[3],m=R[4];for(x=0;x<80;x++){if(x<40)if(x<20){var z=f^q&(X^f);var B=1518500249}else z=q^X^f,B=1859775393;else x<60?(z=q&X|f&(q|X),B=2400959708):(z=q^X^f,B=3395469782);z=((N<<5|N>>>27)&4294967295)+z+m+B+h[x]&4294967295;m=f;f=X;X=(q<<30|q>>>2)&4294967295;q=N;N=z}R[0]=R[0]+N&4294967295;R[1]=R[1]+q&4294967295;R[2]=
R[2]+X&4294967295;R[3]=R[3]+f&4294967295;R[4]=R[4]+m&4294967295}
function D(N,h){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var x=[],q=0,X=N.length;q<X;++q)x.push(N.charCodeAt(q));N=x}h||(h=N.length);x=0;if(K==0)for(;x+64<h;)y(N.slice(x,x+64)),x+=64,r+=64;for(;x<h;)if(O[K++]=N[x++],r++,K==64)for(K=0,y(O);x+64<h;)y(N.slice(x,x+64)),x+=64,r+=64}
function F(){var N=[],h=r*8;K<56?D(v,56-K):D(v,64-(K-56));for(var x=63;x>=56;x--)O[x]=h&255,h>>>=8;y(O);for(x=h=0;x<5;x++)for(var q=24;q>=0;q-=8)N[h++]=R[x]>>q&255;return N}
for(var R=[],O=[],w=[],v=[128],P=1;P<64;++P)v[P]=0;var K,r;I();return{reset:I,update:D,digest:F,digestString:function(){for(var N=F(),h="",x=0;x<N.length;x++)h+="0123456789ABCDEF".charAt(Math.floor(N[x]/16))+"0123456789ABCDEF".charAt(N[x]%16);return h}}};
G6=function(I){this.JSC$9894_document_=I||{cookie:""}};
lFB=function(I,y){y=y===void 0?j8A:y;if(!ofJ){var D;I=(D=I.navigator)==null?void 0:D.userAgentData;if(!I||typeof I.getHighEntropyValues!=="function"||I.brands&&typeof I.brands.map!=="function")return Promise.reject(Error("ua"));N6q((I.brands||[]).map(function(R){var O=new hXq;O=_.BB(O,1,R.brand);return _.BB(O,2,R.version)}));
typeof I.mobile==="boolean"&&_.Xm(xC_,2,I.mobile);ofJ=I.getHighEntropyValues(y)}var F=new Set(y);return ofJ.then(function(R){var O=xC_.clone();F.has("platform")&&_.BB(O,3,R.platform);F.has("platformVersion")&&_.BB(O,4,R.platformVersion);F.has("architecture")&&_.BB(O,5,R.architecture);F.has("model")&&_.BB(O,6,R.model);F.has("uaFullVersion")&&_.BB(O,7,R.uaFullVersion);return O.serialize()}).catch(function(){return xC_.serialize()})};
Qe=function(I,y,D,F){this.initialValue_=I;this.maxValue_=y;this.currBaseValue_=this.currValue_=I;this.randomFactor_=D||0;this.backoffFactor_=F||2};
fW=function(I){this.src=I;this.listeners={};this.typeCount_=0};
GP4=function(){for(var I;I=uht.remove();){try{I.fn.call(I.scope)}catch(y){Ro(y)}qJA.put(I)}Efq=!1};
_.XiL=function(I){switch(I){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}};
Q8_=function(I){switch(I){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""}};
_.YJe=function(){};
aFe=function(I,y,D,F){I=fFS(nf_(piH(new _.nW(1828,"0"),I),new mCS)).disableWithCredentials();y.length&&MF_(I,zXt(new kPq,y));F!==void 0&&(I.destinationUrl=F);var R=new dCo(1828,"","",!1,"",I.build());_.pW(R,I);var O=new m5({flush:function(w){try{R.flush(w)}catch(v){D(v)}}});
O.addOnDisposeCallback(function(){setTimeout(function(){try{O.snapshotAndFlush()}finally{R.dispose()}})});
O.invocationLimit=1E5;O.flushInterval=3E4;O.JSC$10063_flushTimer.setInterval(3E4);return O};
MJ=function(){var I,y,D;return(D=(I=globalThis.performance)==null?void 0:(y=I.now)==null?void 0:y.call(I))!=null?D:Date.now()};
CPq=function(I,y){if(I.disable)return new cG4;y=y?PPC(y):[];I={uR:I.uR,acv:I.fLm,eEv:I.iP5,destinationUrl:I.destinationUrl,rIM:I.rIM,k0t:I.k0t};y=y===void 0?[]:y;return new WwC(I,y)};
B6t=function(I){if(!I)return null;I=_.z6(I,2);return I===null||I===void 0?null:Fy(I)};
_.iRH=function(I){if(!I)return null;I=_.z6(I,4);return I===null||I===void 0?null:_.c$(I)};
bRq=function(I,y){return y?AGt(y):I?$CL(I):Promise.resolve()};
AGt=function(I){return new Promise(function(y,D){var F=_.kW("SCRIPT"),R=_.iRH(I);_.Uk(F,R);F.onload=function(){_.dM(F);y()};
F.onerror=function(){_.dM(F);D(Error("Fa"))};
(aD("HEAD")[0]||document.documentElement).appendChild(F)})};
$CL=function(I){return new Promise(function(y){var D=_.kW("SCRIPT");if(I){var F=_.z6(I,6);F=F===null||F===void 0?null:_.tW(F)}else F=null;_.Kj(D,F);(aD("HEAD")[0]||document.documentElement).appendChild(D);_.dM(D);y()})};
c5=function(I,y,D){var F,R=new Promise(function(O){F=setTimeout(O,y)});
return Promise.race([I.finally(function(){return void clearTimeout(F)}),
R.then(D)])};
HRq=function(I,y){try{return globalThis.sessionStorage.setItem(I,y),!0}catch(D){return!1}};
eXH=function(I,y,D,F){y=y===void 0?0:y;D=D===void 0?I.length:D;var R=0;for(F&&(R=eXH(F));y<D;y++)F=typeof I==="string"?I.charCodeAt(y):I[y],R=T6C(31,R)+F|0;return R};
s8q=function(I,y){return[eXH(I,0,I.length>>1,y),eXH(I,I.length>>1)]};
VFJ=function(I){var y=_.J(s8q(I,W5));I=y.next().value;y=y.next().value;return I.toString(16)+y.toString(16)};
ZR_=function(I,y){var D=s8q(y);I=new Uint32Array(I.buffer);y=I[0];var F=_.J(D);D=F.next().value;F=F.next().value;for(var R=1;R<I.length;R+=2){for(var O=y,w=R,v=D,P=F,K=0;K<22;K++)w=w>>>8|w<<24,w+=O|0,w^=v+38293,O=O<<3|O>>>29,O^=w,P=P>>>8|P<<24,P+=v|0,P^=K+38293,v=v<<3|v>>>29,v^=P;O=[O,w];I[R]^=O[0];R+1<I.length&&(I[R+1]^=O[1])}};
gfH=function(I,y,D,F,R){var O=(4-(W5.length+D.length)%4)%4,w=new Uint8Array(4+O+W5.length+4+D.length),v=new DataView(w.buffer),P=0;v.setUint32(P,Math.random()*4294967295);P=P+4+O;w.set(W5,P);P+=W5.length;v.setUint32(P,R);w.set(D,P+4);ZR_(w,F);return I.insert(y,function(K){return void globalThis.sessionStorage.removeItem(K)})?HRq(y,_.VB(w))?"s":"t":"i"};
IT5=function(I,y){var D=globalThis.sessionStorage.getItem(I);if(!D)return["m"];try{var F=_.ZC(D);ZR_(F,y)}catch(R){return globalThis.sessionStorage.removeItem(I),["c"]}for(y=4;y<7&&F[y]===0;)y++;for(D=0;D<W5.length;D++)if(F[y++]!==W5[D])return globalThis.sessionStorage.removeItem(I),["d"];D=(new DataView(F.buffer)).getUint32(y);return Math.floor(Date.now()/1E3)>=D?(globalThis.sessionStorage.removeItem(I),["e"]):["a",new Uint8Array(F.buffer,y+4)]};
y0t=function(I){return globalThis.TextEncoder?(new TextEncoder).encode(I):_.CW(I)};
DoA=function(I){var y=I,D;return function(){if(y){var F=y;y=void 0;D=F.apply(this,arguments)}return D}};
R5B=function(I){return dc(function(y){if(y instanceof I)return!0;var D,F,R=y==null?void 0:(D=y.ownerDocument)==null?void 0:(F=D.defaultView)==null?void 0:F[I.name];return F_W(R)&&y instanceof R})};
_.Av=function(I,y,D){_.B5.call(this);this.JSC$10277_listener_=I;this.JSC$10277_interval_=y||0;this.handler_=D;this.callback_=(0,_.iD)(this.JSC$10279_doAction_,this)};
$W=function(){_.B5.call(this);this.services_={}};
sW=function(I,y,D,F,R){bD.call(this,D);this.JSC$10303_channel_=I;this.protocolVersion_=R||2;this.peerHostname_=y||"*";this.JSC$10303_eventHandler_=new _.H5(this);this.maybeAttemptToConnectTimer_=new _.eT(100,this.getWindow());this.oneSidedHandshake_=!!F;this.setupAckReceived_=new T6;this.setupAckSent_=new T6;this.JSC$10303_connected_=new T6;this.endpointId_=OvB();this.peerEndpointId_=null;this.oneSidedHandshake_?L_S(this.JSC$10303_channel_)==1?J0o(this.JSC$10303_connected_,this.setupAckReceived_):
J0o(this.JSC$10303_connected_,this.setupAckSent_):(J0o(this.JSC$10303_connected_,this.setupAckReceived_),this.protocolVersion_==2&&J0o(this.JSC$10303_connected_,this.setupAckSent_));w1J(this.JSC$10303_connected_,this.notifyConnected_,this);this.JSC$10303_connected_.callback(!0);this.JSC$10303_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Ve=function(I){I=vkq(I);return _.c$(I)};
vkq=function(I){return I===null?"null":I===void 0?"undefined":I};
Da=function(I,y){$W.call(this);for(var D=0,F;F=Sl4[D];D++)if(F in I&&!/^https?:\/\//.test(I[F]))throw Error("Ra`"+I[F]+"`"+F);this.cfg_=I;this.name=this.cfg_.cn||OvB();this.JSC$10304_domHelper_=y||CG();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.H5(this);I.lpu=I.lpu||tAo(this.JSC$10304_domHelper_.getWindow().location.href)+"/robots.txt";I.ppu=I.ppu||tAo(I.pu||"")+"/robots.txt";ZZ[this.name]=this;PZt(window,"unload",K_A)||Ib(window,"unload",K_A)};
r0A=function(I){if(I&&I.focus)if(I!==document.activeElement)I.focus();else return UoS(function(){return _.S(function(y){document.activeElement&&document.activeElement.blur();return y.return(UoS(function(){I.focus()}))})})};
_.jCt=function(I){var y=y===void 0?5:y;setTimeout(function(){var D;return _.S(function(F){F.nextAddress==1&&(D=document.activeElement);if(F.nextAddress!=5)return(document.activeElement===D||document.activeElement===document.body)&&y>=0&&I?F.yield(r0A(I),5):F.jumpTo(0);if(document.activeElement===I)return F.return();I=I.parentElement;--y;return F.jumpTo(2)})},15)};
UoS=function(I){return new Promise(function(y){requestAnimationFrame(function(){y(I())})})};
N1e=function(I){if(_.F5)I(_.F5);else{var y;((y=okA)!=null?y:okA=[]).push(I)}};
Ou=function(){!_.F5&&_.Rb&&_.h5B(_.Rb());return _.F5};
_.h5B=function(I){_.F5=I;var y;(y=okA)==null||y.forEach(N1e);okA=void 0};
Le=function(I){return i_e(I)?Number(I):String(I)};
xoJ=function(I){this.action=I;this.wfv=!1};
lTB=function(I,y){xoJ.call(this,"set-drive-options");this.appId=I;this.appOrigin=y};
uGe=function(I){xoJ.call(this,"visibility");this.visible=I};
Ylq=function(I,y){var D=qlt++,F={measureTask:{id:D,fn:I.measure,context:y},mutateTask:{id:D,fn:I.mutate,context:y},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(F.args||(F.args=[]),F.args.length=0,F.args.push.apply(F.args,arguments),F.args.push(F.state)):F.args&&F.args.length!=0?(F.args[0]=F.state,F.args.length=1):F.args=[F.state];F.isScheduled||(F.isScheduled=!0,Ek5[GmB].push(F));X1S||(X1S=!0,window.requestAnimationFrame(QCS))}};
QCS=function(){X1S=!1;var I=Ek5[GmB],y=I.length;GmB=(GmB+1)%2;for(var D,F=0;F<y;++F){D=I[F];var R=D.measureTask;D.isScheduled=!1;R.fn&&R.fn.apply(R.context,D.args)}for(F=0;F<y;++F)D=I[F],R=D.mutateTask,D.isScheduled=!1,R.fn&&R.fn.apply(R.context,D.args),D.state={};I.length=0};
fT5=function(I,y){this.JSC$10439_element_=I;this.JSC$10439_dom_=y};
wR=function(I,y){Ju.call(this,y);this.useIframeMask_=!!I;this.lastFocus_=null;this.resizeBackgroundTask_=Ylq({mutate:this.resizeBackground_},this);Ylq({mutate:this.updateModalAndBackground_},this)};
nkq=function(I,y,D){SR.call(this,I,y,D)};
p1S=function(I){tu.call(this,I)};
moo=function(I){I=I&&I.getWindow()||window;return I.gadgets&&I.gadgets.rpc};
z5A=function(I,y){var D=y&&y.getWindow()||window;if(moo(y))I();else if(MA4)MA4.push(I);else var F=MA4=[I],R=D.setInterval(function(){if(moo(y)){D.clearInterval(R);for(var O=0;O<F.length;O++)F[O]();MA4=null}},100)};
doe=function(I,y){var D=new Pm(I);_.pW(y,D);var F={passive:!1};y.listen(D,"mousewheel",function(R){return void kmB(I,R)},F).listen(I,"scroll",function(R){return void kmB(I,R)},F)};
kmB=function(I,y){var D;a:{for(D=y.target;D;){if(D.nodeType==1){var F=_.Ke(D,"overflowY");if(F=="auto"||F=="scroll")break a}D=D.parentNode}D=null}if(!D||!_.Uu(I,D)||D.scrollHeight==D.clientHeight||y.deltaY>0&&Math.abs(D.scrollTop-(D.scrollHeight-D.clientHeight))<=1||y.deltaY<0&&D.scrollTop==0)y.preventDefault(),y.stopPropagation()};
aTA=function(){var I;if(I=I===void 0?window:I)return I!==I.parent&&I.hasOwnProperty("pangolinIframeGlobals");var y=Error("fb");setTimeout(function(){throw y;},1);
return!1};
lS=function(I,y,D,F,R,O,w,v,P){v=v===void 0?!1:v;P=P===void 0?!1:P;SR.call(this,void 0,void 0,void 0);SR.call(this,O?O+" picker modal-dialog":"picker modal-dialog",!0,D);_.rR(I,"protocol");this.iframeManager_=new c0e;this.targetId_=jR();this.rpcToken_=jR();I=_.ob(I);_.Na(I,"hostId");this.useGapi_=!P&&!aTA();v&&_.hu(I,"fv2","true");this.setUrl(I.toString());this.preferredDialogWidth_=F;this.preferredDialogHeight_=R;F!==void 0||R!==void 0?F=!0:(F=_.Na(_.ob(I.toString()),"hostId"),W_o||(W_o=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
F=!W_o.has(F));this.autoSizeDialog_=F;this.JSC$10467_gadgetsDomHelper_=w||this.JSC$10418_dom_;y&&(w=this.JSC$10467_gadgetsDomHelper_,y=_.Na(_.ob(this.JSC$10469_url_),"grugl")=="true"?CZt:B1A,moo(w)||(w=w||CG(document),F=w.createElement("SCRIPT"),_.Uk(F,y),F.type="text/javascript",w.JSC$9602_document_.body.appendChild(F)));I=I.toString();y=null;w=I.indexOf("/picker?");w>-1?y=I.substring(0,w+8-1):JL(I,"/picker")&&(y=I);y&&this.setRelayUrl(y+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(I=this.buttons_,I.JSC$10452_element_=this.buttonEl_,I.render()):_.rj(this.buttonEl_,ivC),_.xM(this.buttonEl_,!!this.buttons_))};
A0B=function(I,y){_.uS.call(this,I.type,y);this.event_=I};
_.e5o=function(I){var y=y===void 0?$o5:y;var D=_.HH(I),F=function(O){O=_.J(O);O.next();O=GO(O);return y(D,O)},R=function(O){var w=_.J(O);
O=w.next().value;w=GO(w);return I.apply(O,w)};
return function(){var O=_.go.apply(0,arguments),w=this||_.Ft,v=bvB.get(w);v||(v={},bvB.set(w,v));return HvC(v,[this].concat(_.Td(O)),R,F)}};
X5=function(I){var y={};I=I.replace(/\r/g,"").split("\n");for(var D=0;D<I.length;D++){var F=I[D],R=F.indexOf(":");R<0||(y[F.substring(0,R)]=F.substring(R+2,F.length))}return y};
Zvt=function(I,y){y.id||(y.id="ow"+_.HH(y));I.setAttribute("jsowner",y.id);I.__owner=y;var D=_.gB(y,T1H);D&&(sCt.has(D)||sCt.set(D,[]),sCt.get(D).push(I));(D=VAJ.get(y))||VAJ.set(y,D=[]);D.includes(I)||D.push(I);y.setAttribute("__IS_OWNER",!0)};
T1H=function(I){return _.Q2(I)?I.getAttribute("jsname")==="coFSxe":!1};
gk4=function(I,y,D){D=D===void 0?function(){}:D;
return I?y():D()};
_.yOH=function(I){var y;return((y=IJW.documentOverride)!=null?y:I).__wizdispatcher};
fe=function(I){var y=YM;YM=I;return y};
F$_=function(I){return I===DwW||(I==null?void 0:I.name)==="\u0275NotFound"};
ne=function(I,y){var D;if((D=I)==null?0:D.isDisposed)throw Error("kb`"+String(I.debugName));for(;I!==void 0;){D=I;if(D.retrieve)return D.retrieve(y,{optional:!0});I=I.parent}return DwW};
pe=function(I){return{"\u0275prov":{providedIn:"root",token:Symbol(I),factory:void 0,value:void 0}}};
Rfo=function(I){var y=YM;if(!y){switch(I===void 0?3:I){case 0:I=Error("jb");break;case 1:I=Error("lb");break;case 2:I=Error("mb");break;default:I=Error("nb")}throw I;}return y};
Ouq=function(I){var y=fe(I);I={};return I[Symbol.dispose]=function(){fe(y)},I};
wPC=function(){var I=Rfo(1);I=ne(I,L$A);if(!(F$_(I)||I[JOq]&&!I.__hasBeenSet))return I.value};
v7W=function(I,y){I.disposables||(I.disposables=[]);I.disposables.push(y)};
mO=function(I){var y=YM;y&&!y.isDisposed&&(v7W(y,I),I.parent=y)};
tnq=function(I){if(I.disposables){for(var y=_.J(I.disposables),D=y.next();!D.done;D=y.next())D=D.value,typeof D==="function"?D():S6W(D);I.disposables.length=0}};
S6W=function(I){if(!I.isDisposed){I.isDisposed=!0;var y;(y=I[Symbol.dispose])==null||y.call(I);delete I.parent;tnq(I)}};
hfo=function(I){var y={retrieve:function(D){switch(D.\u0275prov.token){case PHB.\u0275prov.token:var F=I.asyncDeps;break;case L$A.\u0275prov.token:F=I.rootElement;break;case K$B.\u0275prov.token:F=I.modelRootElement;break;case Uwe.\u0275prov.token:F=I.appContext;break;case rOt.\u0275prov.token:F=I.rendererData;break;case jrA.\u0275prov.token:F=I.injectingConstructor;break;case o7t.\u0275prov.token:F=I.dispatcher}if(F)D=F;else a:{for(F=y.parent;F;){var R=F;if(R.retrieve){D=R.retrieve(D);break a}F=
F.parent}F=D.\u0275prov.token;R=N2J[F];R!==void 0?D=R:(R=D.\u0275prov.providedIn,D.\u0275prov.factory?(D=D.\u0275prov.factory(),F&&R==="root"&&(N2J[F]=D)):D=DwW)}return D}};
mO(y);return y};
xwA=function(){var I=Rfo(1),y=ne(I,Uwe);if(!F$_(y))return y;I=ne(I,o7t);if(!F$_(I))return I.getOptionalAppContext()};
lJA=function(I){if(typeof document!=="undefined"&&document&&document.getElementById&&(I=document.getElementById(I))){var y=I.tagName.toUpperCase();if(y=="SCRIPT"||y=="LINK")return I}return null};
q6_=function(I,y){if((I=I===void 0?"":I)&&y)throw Error("tb");var D="";var F=_.Ft._F_jsUrl;(I=y||lJA(I))&&(D=I.src?I.src:I.getAttribute("href"));if(F&&D){if(F!=D)throw Error("ub`"+F+"`"+D);D=F}else D=F||D;if(!ug4(D))throw Error("vb");return D};
Qrt=function(){if(!E7o){E7o=!0;try{var I=q6_(_.Ft._F_jsUrl?"":"base-js")}catch(F){return}var y=G8t(XPL(I)),D=Object.keys(y);D.length!==0&&N1e(function(F){for(var R=_.J(D),O=R.next();!O.done;O=R.next()){O=O.value;for(var w=_.J(Object.keys(y[O])),v=w.next();!v.done;v=w.next())F.addExtraEdge(O,v.value)}})}};
fJW=function(){var I=Object.assign({},Y6A);Object.getOwnPropertyNames(Y6A).forEach(function(y){Ma[y]!==void 0&&(I[y]=Ma[y])});
return I};
n7J=function(I,y){if(Ma.enablePerformanceTiming){var D,F;(F=(D=performance).mark)==null||F.call(D,I+"Start__"+y)}};
pPB=function(I,y){if(Ma.enablePerformanceTiming){var D,F;(F=(D=performance).measure)==null||F.call(D,I+"__"+y,I+"Start__"+y)}};
mwq=function(I,y,D){var F;return I&&y?I+"__"+y:(F=I!=null?I:y)!=null?F:D};
Mnt=function(I,y){return Object.is(I,y)};
kM=function(I){var y=zO;zO=I;return y};
k8S=function(I){if(dR)throw Error("Z");if(zO!==null){var y=zO.producersTail;if(y===void 0||y.producer!==I){var D=void 0,F=zO.recomputing;if(F&&(D=y!==void 0?y.nextProducer:zO.producers,D!==void 0&&D.producer===I)){zO.producersTail=D;D.lastReadVersion=I.version;return}var R=I.consumersTail,O;if(!(O=R===void 0||R.consumer!==zO)){if(F){a:{O=zO;F=O.producersTail;if(F!==void 0){O=O.producers;do{if(O===R){F=!0;break a}if(O===F)break;O=O.nextProducer}while(O!==void 0)}F=!1}F=!F}O=F}O&&(F=ab(zO),D={producer:I,
consumer:zO,nextProducer:D,prevConsumer:R,lastReadVersion:I.version,nextConsumer:void 0},zO.producersTail=D,y!==void 0?y.nextProducer=D:zO.producers=D,F&&zfL(I,D))}}};
Wm=function(I){if(!ab(I)||I.dirty)if(I.dirty||I.lastCleanEpoch!==cm)(I.producerMustRecompute(I)||dw5(I))&&I.producerRecomputeValue(I),I.dirty=!1,I.lastCleanEpoch=cm};
aJq=function(I){if(I.consumers!==void 0){var y=dR;dR=!0;try{for(var D=I.consumers;D!==void 0;D=D.nextConsumer){var F=D.consumer;F.dirty||(I=void 0,F.dirty=!0,aJq(F),(I=F.consumerMarkedDirty)==null||I.call(F,F))}}finally{dR=y}}};
cOq=function(){var I;return((I=zO)==null?void 0:I.consumerAllowSignalWrites)!==!1};
W$B=function(I){I&&(I.producersTail=void 0,I.recomputing=!0);return kM(I)};
B2B=function(I){I.recomputing=!1;var y=I.producersTail,D=y!==void 0?y.nextProducer:I.producers;if(D!==void 0){if(ab(I)){do D=CHt(D);while(D!==void 0)}y!==void 0?y.nextProducer=void 0:I.producers=void 0}};
dw5=function(I){for(I=I.producers;I!==void 0;I=I.nextProducer){var y=I.producer,D=I.lastReadVersion;if(D!==y.version)return!0;Wm(y);if(D!==y.version)return!0}return!1};
zfL=function(I,y){var D=I.consumersTail,F=ab(I);D!==void 0?(y.nextConsumer=D.nextConsumer,D.nextConsumer=y):(y.nextConsumer=void 0,I.consumers=y);y.prevConsumer=D;I.consumersTail=y;if(!F)for(I=I.producers;I!==void 0;I=I.nextProducer)zfL(I.producer,I)};
CHt=function(I){var y=I.producer,D=I.nextProducer,F=I.nextConsumer,R=I.prevConsumer;I.nextConsumer=void 0;I.prevConsumer=void 0;F!==void 0?F.prevConsumer=R:y.consumersTail=R;if(R!==void 0)R.nextConsumer=F;else if(y.consumers=F,!ab(y))for(I=y.producers;I!==void 0;)I=CHt(I);return D};
ab=function(I){return I.consumerIsAlwaysLive||I.consumers!==void 0};
AO4=function(I){var y=Object.create(iue);y.computation=I;I=function(){Wm(y);k8S(y);if(y.value===Ce)throw y.error;return y.value};
I[Bm]=y;return I};
efL=function(I,y){var D=Object.create($wB);D.value=I;y!==void 0&&(D.equal=y);I=function(){k8S(D);return D.value};
I[Bm]=D;return[I,function(F){return buB(D,F)},
function(F){cOq()||Hue(D);buB(D,F(D.value))}]};
buB=function(I,y){cOq()||Hue(I);if(!I.equal(I.value,y)){I.value=y;I.version++;cm++;aJq(I);var D;(D=T2q)==null||D(I)}};
VnS=function(I,y,D){var F=Object.create(srA);F.source=I;F.computation=y;D!=void 0&&(F.equal=D);I=function(){Wm(F);k8S(F);if(F.value===Ce)throw F.error;return F.value};
I[Bm]=F;return I};
_.iS=function(I){var y=kM(null);try{return I()}finally{kM(y)}};
Zu5=function(I,y){n7J("signalSet",y.debugName);try{I()}finally{pPB("signalSet",y.debugName)}};
g7_=function(I,y,D){I=efL(I,y.equals);var F=I[0],R=F[Bm];R.debugName=mwq(y.debugName,D,"[signal]");if(!Ma.enablePerformanceTiming)return I;var O=I[1],w=I[2];return[F,function(v){Zu5(function(){return void O(v)},R)},
function(v){Zu5(function(){return void w(v)},R)}]};
yqC=function(I){var y=Object.create(IMA);y.debugName=I;!YM||mO(y);return y};
DMq=function(I,y){var D=yqC(y);y=fe(D);try{I(D)}finally{fe(y)}return function(){return void S6W(D)}};
RNe=function(I){return Au(I)&&FAq in I};
EnA=function(I){for(I=I===void 0?YM:I;I;){if(RNe(I))return I;var y=void 0;I=(y=I.parent)!=null?y:null}return null};
_.$M=function(I,y,D){return g7_(I,y!=null?y:{},D===void 0?"":D)};
XuB=function(I,y){var D=_.J(_.$M(I,void 0,"cPpJzc"));I=D.next().value;D=D.next().value;I[GUC]=D;I[bS]=y;return I};
QfC=function(I){return!!I&&typeof I==="object"&&Object.getPrototypeOf(I)===Object.prototype};
YNH=function(I){return typeof I==="function"&&GUC in I&&typeof I[GUC]==="function"};
fMC=function(I,y){Object.defineProperty(I,bS,{get:function(){return y}})};
eR=function(I,y){if(Hm(I)){var D=I.map(function(O){return eR(O,y)});
fMC(D,y);return D}if(QfC(I)){D={};I=_.J(Object.entries(I));for(var F=I.next();!F.done;F=I.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;D[F]=eR(R,y)}fMC(D,y);return D}return XuB(I,y)};
nnC=function(I){if(Hm(I))return I.map(function(R){return nnC(R)});
if(QfC(I)){var y={};I=_.J(Object.entries(I));for(var D=I.next();!D.done;D=I.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;y[D]=nnC(F)}return y}return YNH(I)?I():I};
mML=function(){var I={height:0,width:0};if(!QfC(I))throw Error("Kb");var y=Symbol("Lb");return[eR(I,y),function(D,F){if(D[bS]===y)if(typeof F==="function"){var R=[].concat(_.Td(nnC(D)));F=F(R)||R;puB(D,[].concat(_.Td(F)))}else puB(D,F);else throw Error("Mb");}]};
puB=function(I,y){if(YNH(I))I[GUC](y);else if(Hm(I)&&Hm(y))y=eR(y,I[bS]),I.length=0,I.push.apply(I,_.Td(y));else if((QfC(I)||Hm(I))&&(Hm(y)||typeof y==="object"&&y!==null)){y=_.J(Object.entries(y));for(var D=y.next();!D.done;D=y.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;var R=I,O=R[D];Object.hasOwn(I,D)?puB(O,F):R[D]=eR(F,I[bS])}}else throw Error("Nb");};
MbW=function(I){return Object.create(Object.assign({},TO,I))};
kUL=function(){var I;return(I=zNe)!=null?I:zNe=MbW({consumerAllowSignalWrites:!0})};
_.su=function(I,y,D){D=D===void 0?"":D;I=AO4(I);var F=I[Bm];F.debugName=mwq(y==null?void 0:y.debugName,D,"[computed]");(y==null?void 0:y.equals)!=null&&(F.equal=y.equals);return I};
V2=function(I){var y=kM(dM5);try{I()}finally{kM(y)}};
aMW=function(I){return Au(I)&&I.name!==void 0&&I.isReactive!==void 0&&I.parent!==void 0};
WAe=function(I,y,D){var F=cq_(I);Za={name:D?F+" ("+D+")":F,isReactive:I.componentType!==gR,parent:Za};I=y();Za=Za.parent;return I};
IU=function(){var I=Za;return I?I.isReactive:!1};
D4=function(I,y,D){var F=Za;y&&(Za=y);try{return D==null?I():I.call(D)}catch(O){I=O;yj(I,Za);if(I!==CKW){BIB=Za;y=[];for(D=YM;D;){var R=void 0;y.push((R=D.debugName)!=null?R:"[context]");R=void 0;D=(R=D.parent)!=null?R:null}iT_=y.reverse()}CKW=I;throw I;}finally{Za=F}};
yj=function(I,y){try{var D=AqC(y);if(D&&!I.componentStack&&(I.componentStack=D,Ma.enableComponentStacksInErrorMessages)){var F=I.message+"\n\nComponent stack: "+D;I.stack&&(I.stack=I.stack.replace(I.message,F));I.message=F}}catch(R){}};
$Me=function(I){for(var y=0,D="";y<20&&I;)D+="$$XID:"+I.name+"$$ > ",I=I.parent,y++;return D.slice(0,-3)};
AqC=function(I){return aMW(I)||I===null?$Me(I):Ma.enableContextBasedComponentStacks?EnA(I).getComponentStack().slice(0,20).map(function(y){return"$$XID:"+y+"$$"}).join(" > "):""};
cq_=function(I){return I.debugName||I.name||"[component]"};
sfA=function(I){switch(I.onInitType){case bTq:HTH.schedule(I);break;case eN5:Ma.enableQueueEffectAndOnInitInitialRuns?TIt.enqueue(I):TIt.schedule(I);break;default:_.ya(I.onInitType)}};
DQ4=function(I){if(!I.isDisposed)switch(I.effectType){case F8:Vbt.schedule(I);break;case ZTW:gnH.schedule(I);break;case I6H:Ma.enableQueueEffectAndOnInitInitialRuns||I.version!==0?ype.enqueue(I):ype.schedule(I);break;default:_.ya(I.effectType)}};
OZB=function(){if(RU>0)Ma.flushRenderEffectsDuringRender&&Vbt.flush();else{for(var I=_.J(FDe),y=I.next();!y.done;y=I.next())y.value.flush();RAJ()}};
RAJ=function(){_.S(function(I){if(I.nextAddress==1)return I.yield(Promise.resolve(),2);for(var y=_.J(LDH),D=y.next();!D.done;D=y.next())D.value.flush();_.Cj(I)})};
wrJ=function(I){Of=!0;try{for(var y=_.J(I),D=y.next();!D.done;D=y.next()){for(var F=D.value,R=[F],O=F;O.parent!==void 0;)O=O.parent,JpW(O)&&I.has(O)&&R.push(O);for(;R.length>0;){var w=R.pop();I.delete(w);w.run()}}}finally{Of=!1}};
Li=function(I){RU--;if(I){I=_.J(vCJ);for(var y=I.next();!y.done;y=I.next())y.value.clear()}else RU>0||Of&&!Ma.flushRenderEffectsDuringRender||OZB()};
S14=function(I,y,D){I=Object.create(I);y&&(I.fn=y);D&&(I.debugName=D);mO(I);I.componentStack=Za;return I};
tuC=function(I){if(!I.isDisposed){if(dR)throw Error("Rb");var y=fe(I);n7J("effectRun",I.debugName);try{D4(function(){I.dirty=!1;if(!(I.version>0)||dw5(I)){I.version++;var D=W$B(I);try{I.cleanup(),I.fn()}finally{kM(D),I&&B2B(I)}}},I.componentStack,I)}catch(D){throw Ma.enableContextBasedComponentStacks&&yj(D),D;
}finally{pPB("effectRun",I.debugName),fe(y)}}};
_.JI=function(I,y){I=S14(Pg_,I,y);DQ4(I)};
_.wZ=function(I,y){I=S14(KDC,I,y);DQ4(I)};
UQS=function(I){return I};
rp5=function(I,y,D){function F(){return R()}
D=D===void 0?"":D;var R=typeof I==="function"?VnS(I,UQS,y==null?void 0:y.equals):VnS(I.source,I.computation,y==null?void 0:y.equals);var O=R[Bm];O.debugName=mwq(y==null?void 0:y.debugName,D,"[linkedSignal]");F[Bm]=O;return[F,function(w){Zu5(function(){Wm(O);buB(O,w);O.dirty=!1;O.lastCleanEpoch=cm},O)},
function(w){Zu5(function(){Wm(O);cOq()||Hue(O);buB(O,w(O.value));O.dirty=!1;O.lastCleanEpoch=cm},O)}]};
_.tI=function(I){var y=YM;if(y){var D=Za;v7W(y,function(){var F=kM(kUL());try{D4(function(){return void I()},D)}catch(R){throw Ma.enableContextBasedComponentStacks&&yj(R),R;
}finally{kM(F)}})}};
PV=function(I,y){var D={};(y===void 0||y)&&mO(D);y=fe(D);try{I(D)}finally{fe(y)}return function(){return void S6W(D)}};
_.Ki=function(I){return typeof I==="function"?I():(I==null?0:I[j5S])?I.get():I};
oCA=function(I){if(YM)throw Error("ob");PV(I,!1)};
Uf=function(I,y){I=fe(I);try{return _.iS(y)}finally{fe(I)}};
rZ=function(I,y){var D=AqC(BIB),F,R;var O=(R=(F=iT_)==null?void 0:F.slice())!=null?R:[];y={componentStack:D,contextTrace:O,errorSeverity:3,featureFlags:fJW(),tagName:y};return[I,y]};
xQq=function(I,y,D){if(Object.hasOwnProperty.call(NNq,I)&&(I=NNq[I],Object.hasOwnProperty.call(I,y)&&(I=I[y],I instanceof Array))){for(var F=null,R=!1,O=0,w=I.length;O<w;++O){var v=I[O],P=v.contingentAttribute;if(!P)return v.contract;F===null&&(F={});P=Object.hasOwnProperty.call(F,P)?F[P]:F[P]=D(P);if(P===v.requiredValue)return v.contract;P==null&&(R=!0)}if(R)return null}y=hAS[y];return typeof y==="number"?y:null};
q1W=function(I,y,D){var F=null;(I=l6o[I])&&(F=I[y]);return typeof F!=="number"&&((I=l6o["*"])&&(F=I[y]),typeof F!=="number")?!1:!0===uTL[F][String(D).toLowerCase()]};
GtS=function(I,y){y=xQq(I.toLowerCase(),y,function(){var F;(F=Ma.handleError)==null||F.call.apply(F,[Ma].concat(_.Td(rZ(Error("Ub"),I.toLowerCase()))))});
if(y===null)return null;var D;return(D=EC_[y])!=null?D:null};
Xro=function(I,y,D){if(D===null||D===void 0)return D;y=y.toLowerCase();I=GtS(I,y);return I===null?D:I(y,D)};
f6t=function(I){var y=Q5q,D=I,F="",R="",O=1;I<0&&(I=-I);if(I===Infinity)I=(Infinity*Math.sign(D)).toString();else{for(var w=0;w<Y1W.length;w++){var v=Y1W[w];O=y[v];if(I>=O||O<=1&&I>.1*O){F=v;break}}F?(F+="B",R=" "):O=1;I=Math.round(D/O*10)/10+R+F}return I};
nCq=function(){};
prW=function(I,y){for(;I.length>y;)I.pop()};
mQJ=function(I){I=Array(I);prW(I,0);return I};
jj=function(I,y,D){if(D==null)I.removeAttribute(y);else{var F;(F=y.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":y.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?I.setAttributeNS(F,y,D):I.setAttribute(y,D)}};
zAA=function(I,y,D){I=I.style;if(typeof D==="string")I.cssText=D;else{I.cssText="";for(var F in D)if(Muo.call(D,F)){y=I;var R=F,O=D[F];R.indexOf("-")>=0?y.setProperty(R,O):y[R]=O}}};
ktW=function(I,y,D){var F=typeof D;F==="object"||F==="function"?I[y]=D:jj(I,y,D)};
dQH=function(){var I=new nCq;I[oU.default]=ktW;I.style=zAA;return I};
a6q=function(I,y,D,F){(F[y]||F[oU.default])(I,y,D)};
WDo=function(I,y,D){y=new cp5(y,D);return I.__incrementalDOMData=y};
Cg5=function(I,y){if(I.__incrementalDOMData)return I.__incrementalDOMData;var D=I.nodeType===1?I.localName:I.nodeName,F=I.nodeType===1?I.getAttribute("key"):null;y=WDo(I,D,I.nodeType===1?F||y:null);if(I.nodeType===1&&(I=I.attributes,D=I.length)){F=y._attrsArr||(y._attrsArr=mQJ(D*2));for(var R=0,O=0;R<D;R+=1,O+=2){var w=I[R],v=w.value;F[O]=w.name;F[O+1]=v}}return y};
BNe=function(I,y,D,F,R){return y==D&&F==R};
iZ_=function(I){for(var y=N3,D=hI();D!==I;){var F=D.nextSibling;y.removeChild(D);x4.deleted.push(D);D=F}};
hI=function(){return lF?lF.nextSibling:N3.firstChild};
uF=function(){lF=hI()};
bZq=function(I,y){uF();var D;a:{if(D=lF){do{var F=D,R=I,O=y,w=Cg5(F,O);if(ApB(F,R,w.nameOrCtor,O,w.key))break a}while(y&&(D=D.nextSibling))}D=null}D||(I==="#text"?(I=q3.createTextNode(""),WDo(I,"#text",null)):(D=q3,F=N3,typeof I==="function"?D=new I:D=(F=I==="svg"?"http://www.w3.org/2000/svg":I==="math"?"http://www.w3.org/1998/Math/MathML":F==null||Cg5(F).nameOrCtor==="foreignObject"?null:F.namespaceURI)?D.createElementNS(F,I):D.createElement(I),WDo(D,I,y),I=D),x4.created.push(I),D=I);I=D;if(I!==
lF){if($Q_.indexOf(I)>=0)for(y=N3,D=I.nextSibling,F=lF;F!==null&&F!==I;)R=F.nextSibling,y.insertBefore(F,D),F=R;else N3.insertBefore(I,lF);lF=I}};
HZt=function(I,y){bZq(I,y);N3=lF;lF=null;return N3};
eAH=function(){iZ_(null);lF=N3;N3=N3.parentNode};
Vue=function(I,y){y=y===void 0?{}:y;var D=y.matches===void 0?BNe:y.matches;return function(F,R,O){var w=x4,v=q3,P=$Q_,K=Ef,r=lF,N=N3,h=ApB;q3=F.ownerDocument;x4=new TNo(F);ApB=D;Ef=[];lF=null;var x=N3=F.parentNode,q,X=s5W.call(F);if((q=X.nodeType===11||X.nodeType===9?X.activeElement:null)&&F.contains(q)){for(X=[];q!==x;)X.push(q),q=q.parentNode||(x?q.host:null);x=X}else x=[];$Q_=x;try{return I(F,R,O)}finally{F=x4,GB&&F.deleted.length>0&&GB(F.deleted),q3=v,x4=w,ApB=h,Ef=K,lF=r,N3=N,$Q_=P}}};
ZZq=function(I,y,D,F){X8.push(a6q);X8.push(I);X8.push(y);X8.push(D);X8.push(F)};
gCL=function(I){bZq("#text",null);var y=lF;var D=Cg5(y);if(D.text!==I){D=D.text=I;for(var F=1;F<arguments.length;F+=1)D=(0,arguments[F])(D);y.data!==D&&(y.data=D)}};
LQA=function(I,y,D){if(D===!1&&I_q.has(y))jj(I,y,null);else if(y!=="idomKey"&&y!=="skip"&&y!=="skipchildren"&&y!=="children"&&y!=="el")if(y.startsWith("on")){if(y[2]!==":")throw Error("Tb`"+y);if(D===void 0||D===null){var F;(F=Ma.handleError)==null||F.call.apply(F,[Ma].concat(_.Td(rZ(Error("Yb`"+y),I.tagName))));I[y]=void 0}else{var R=y.slice(3);F=IU();if(R==="jsaction"){D=Array.isArray(D)?D:[D];D=_.J(D);for(var O=D.next();!O.done;O=D.next()){O=O.value;if(typeof O!=="object"||O===null||typeof O.selfReg!==
"function")throw Error("ac`"+y);O.selfReg(0,I,F?_.tI:function(){})}}else{if(typeof D!=="object"||D===null)throw Error("Zb`"+y+"`"+typeof D);
if(typeof D.getFn!=="function")throw Error("$b`"+y+"`"+Object.keys(D));if(D.selfReg)D.selfReg(0,I,R,F?_.tI:function(){});
else if(F&&I["on"+R]===void 0){var w=D.getFn(0);I.addEventListener(R,w);_.tI(function(){return void I.removeEventListener(R,w)})}else if(F||!yRC.includes(R))I["on"+R]=D.getFn(0)}}}else{if(y.startsWith("data-")&&typeof D==="string")try{D=DUL(D)}catch(v){D="zSoyz"}typeof D!=="function"||I._disposeEffects!=null?((F=y.startsWith("prop:"))&&(y=y.slice(5)),Ma.enableAttributeSanitization&&(F&&FQe(I.tagName)||(D=Xro(I.tagName,y,D))),y==="style"?("function"==typeof _.Qj&&D instanceof _.Qj&&(D=D.toString()),
RL5(I,y,D)):F?I[y]=D:OD_(I,y,D)):(I._signalProps||(I._signalProps=[]),I._signalValues||(I._signalValues=[]),I._signalProps.push(y))}};
JRC=function(I,y,D){D=(D===void 0?{}:D).isReactive;if(y==null?0:y.el){var F=y.el,R;(R=F.onRender)==null||R.call(F,I);I._disposeRef||(I._disposeRef=function(){var O;(O=F.onUnmount)==null||O.call(F);delete I._disposeRef},D&&_.tI(function(){var O;
(O=I._disposeRef)==null||O.call(I)}))}};
FQe=function(I){return I.length>0&&I.includes("-")&&!wxH.includes(I.toLowerCase())};
viq=function(I){return Au(I)&&Y4 in I};
S_H=function(I){return viq(I)?I[Y4].flattened:I};
tCt=function(I,y){var D=_.go.apply(2,arguments),F;y=(F=y)!=null?F:{};F={};return F.type=I,F.props=y,F.children=D,F[fi]=!0,F};
_.ni=function(I){return I.children};
pi=function(I){var y=P5_!==tCt;P5_=I?KQA:tCt;return y};
M3=function(I){return _.b_(I)?"nodeType"in I:!1};
zB=function(){return document.createTextNode("")};
k4=function(I){I=document.createTextNode(String(I));I._isSignalTextNode=!0;return I};
rRL=function(I){return I!=null&&I.contentKind===aU||I instanceof Dt||UUe(I)};
jVC=function(I){var y=document.createElement("div");if(UUe(I)&&B6t(I))_.rj(y,B6t(I));else if(I instanceof Dt)_.rj(y,I);else if(I!=null&&I.contentKind===aU){if(I.contentKind!==aU)throw Error("Xb");I=Fy(I.toString());_.rj(y,I)}I=_.J(y.childNodes);for(var D=I.next();!D.done;D=I.next())D.value._isSafeOrSanitizedHtmlNode=!0;return y};
cV=function(I){I=typeof I;return I==="string"||I==="number"||I==="boolean"};
oi_=function(I){return I instanceof an||ba(I)||I instanceof N_||"function"==typeof _.Qj&&I instanceof _.Qj};
NUW=function(I,y){var D=I.parentElement;if(!D)return y;D.replaceChild(y,I);return y};
hLH=function(I,y){var D=I[0].parentElement;if(D)if(I[0].previousSibling||I[I.length-1].nextSibling){D.insertBefore(y,I[0]);for(var F=I.length-1;F>=0;F--)D.removeChild(I[F])}else D.textContent="",D.appendChild(y);return y};
xUB=function(I,y){if(I[0].parentElement)for(var D=I[0].parentElement,F=y.length,R=I.length,O=F,w=0,v=0,P=I[R-1].nextSibling,K=null;w<R||v<O;)if(I[w]===y[v])w++,v++;else{for(;I[R-1]===y[O-1];)R--,O--;if(R===w)for(var r=O<F?v?y[v-1].nextSibling:y[O-v]:P;v<O;){var N=y[v++];D.insertBefore(N,r)}else if(O===v)for(;w<R;)r=I[w],K&&K.has(r)||D.removeChild(r),w++;else if(I[w]===y[O-1]&&y[v]===I[R-1])r=I[--R].nextSibling,D.insertBefore(y[v++],I[w++].nextSibling),D.insertBefore(y[--O],r),I[R]=y[O];else{if(!K)for(K=
new Map,r=v;r<O;)K.set(y[r],r++);r=K.get(I[w]);if(r==null)D.removeChild(I[w]),w++;else if(v<r&&r<O){N=w;for(var h=1,x=void 0;++N<R&&N<O&&(x=K.get(I[N]))!=null&&x===r+h;)h++;if(h>r-v)for(N=I[w];v<r;)D.insertBefore(y[v++],N);else D.replaceChild(y[v++],I[w++])}else w++}}return y};
u1q=function(I){if(Array.isArray(I)){if(I.length>1)throw Error("kc`"+I.length+"`"+I.map(l_H).join(", "));I=I[0]}if(I==null)return null;if(!(I instanceof _.SY)){var y,D;if((y=window)==null?0:(D=y.trustedTypes)==null?0:D.isScript(I))throw Error("jc");if(String(I).trim().length===0)return null;throw Error("lc`"+l_H(I));}return I};
q_A=function(I,y){y=u1q(y);y!==null&&_.Kj(I,y)};
EiH=function(I){if(Array.isArray(I)){if(I.length>1)throw Error("mc`"+I.length+"`"+I.map(l_H).join(", "));I=I[0]}if(I==null)return null;if(!(I instanceof N_)){if(String(I).trim().length===0)return null;throw Error("nc`"+l_H(I));}return I};
GG_=function(I,y){y=EiH(y);y!==null&&(I.textContent=pdq(y))};
l_H=function(I){return"("+typeof I+") "+(I!=null&&typeof I==="object"?I.constructor.name:typeof I)+" "+I};
Xx5=function(){};
BV=function(I,y){y=y===void 0?{}:y;var D=QVt(),F=!0,R,O=!!Ma.legacyTriggerSoyRendererEvents;O&&(R=xwA());_.JI(function(){var w=!F&&y.isControlFlowComponent&&O,v=w?D[Y4].flattened[0].parentElement:void 0;F=!1;WV.setUp();y.isControlFlowComponent&&RU++;var P=D[0],K=D[Y4].flattened,r=pi(!0);try{var N=I(),h=Y_q(P,N,D);Array.isArray(h)||(D[Y4].flattened=[h]);var x=D[Y4].flattened;if(K&&(!Array.isArray(K)||K.length!==0)){var q=Array.isArray(K)?K[0]:K,X=q[Ci],f=q._disposeEffects;q._disposeEffects=void 0;
q=Array.isArray(x)?x[0]:x;q[Ci]=X;q[Ci]&&(q[Ci].numNodes=q===x?1:x.length);q._disposeEffects=f}D[0]=h;y.isControlFlowComponent&&Li(!1)}catch(m){throw y.isControlFlowComponent&&Li(!0),m;}finally{pi(r),WV.tearDown()}w&&(w=R,w!=null||(w=_.yOH(document).getAppContext()),w.get(f__).JSC$29974_getEventTarget().dispatchEvent(new ni5(pxS,v,aU)))},y.debugName);
return D};
Y_q=function(I,y,D){for(;typeof y==="function";)y=y();if(y!=null&&y[fi]){var F,R,O;(O=Ma.handleError)==null||O.call.apply(O,[Ma].concat(_.Td(rZ(Error("oc`"+((F=y.type)==null?void 0:F.TAG_NAME)),(R=y.type)==null?void 0:R.TAG_NAME))))}if(I==null)return y==null?zB():cV(y)?k4(y):oi_(y)?k4(y.toString()):M3(y)?y:y.length===0?zB():mUq(y,D);if(M3(I)){if(y==null)return NUW(I,zB());if(cV(y))return MCe(I,y);if(oi_(y))return MCe(I,y.toString());if(M3(y))return NUW(I,y);if(y.length===0)return NUW(I,zB());y=mUq(y,
D);xUB([I],D[Y4].flattened);return y}I=iF(I);if(y==null)return hLH(I,zB());if(cV(y))return hLH(I,k4(y));if(oi_(y))return hLH(I,k4(y.toString()));if(M3(y))return xUB(I,[y])[0];if(y.length===0)return hLH(I,zB());y=mUq(y,D);xUB(I,D[Y4].flattened);return y};
MCe=function(I,y){I.nodeType===Node.TEXT_NODE?I.textContent!==String(y)&&(I.textContent=String(y)):I=NUW(I,k4(y));return I};
iF=function(I,y,D){return zLH(I,y!=null?y:[],D===void 0?!1:D)};
mUq=function(I,y){var D=iF(I,void 0,!0);if(D.length===0)return zB();y[Y4].flattened=D;return I};
zLH=function(I,y,D,F,R){y=y===void 0?[]:y;D=D===void 0?!1:D;R=R===void 0?-1:R;if(I==null)return y;if(I instanceof AI){var O=I.render();return zLH(O,y,D,F,R)}if(M3(y)&&y.nodeType===Node.ELEMENT_NODE)switch(y.tagName){case "SCRIPT":q_A(y,I);return;case "STYLE":GG_(y,I);return}cV(I)&&(I=k4(I),F&&D&&(F[R]=I));if(rRL(I)){D=jVC(I);D=Array.from(D.childNodes);D=_.J(D);for(O=D.next();!O.done;O=D.next())kGt(y,O.value);return y}oi_(I)&&(I=k4(I.toString()),F&&D&&(F[R]=I));if(M3(I))return kGt(y,I);if(Array.isArray(I)){for(O=
0;O<I.length;O++)zLH(I[O],y,D,I,O);return y}if(typeof I==="function"){O=BV(function(){var v=I();return v!=null&&!cV(v)&&rRL(v)?(v=jVC(v),Array.from(v.childNodes)):v},{debugName:"qmF2ne",
debugFn:I})[0];if(Array.isArray(O)){D=_.J(O);for(O=D.next();!O.done;O=D.next())kGt(y,O.value);return y}F&&D&&(F[R]=O);return kGt(y,O)}if(I!=null&&I[fi]){F=I;R=pi(!0);var w=P5_;try{O=w.apply(null,[F.type,F.props].concat(_.Td(F.children)))}finally{pi(R)}return zLH(O,y,D)}(w=Ma.handleError)==null||w.call.apply(w,[Ma].concat(_.Td(rZ(Error("pc")))));return y};
QVt=function(I){var y={};y=Object.assign([],(y[Y4]={flattened:[]},y));if(!I)return y;y[0]=mUq(I,y);return y};
kGt=function(I,y){Array.isArray(I)?I.push(y):I.appendChild(y);return I};
$4=function(I){if(!Ma.enableLazyTsx)return I;if(Array.isArray(I)){for(var y=0;y<I.length;y++)I[y]=$4(I[y]);return I}return I instanceof AI?(I=I.render(),$4(I)):I};
a_B=function(I,y){var D,F,R=cq_(I),O=function(x){F=x;x=pi(!0);var q=kM(bF);n7J("render",R);try{D=$4(I(y))}finally{pPB("render",R),kM(q),pi(x)}};
O=Ma.enableContextPerComponent?DMq(O,R):PV(O,Ma.alwaysTrackContexts||!!YM);RNe(F);if(!y.renderedFromIdom){var w=fe(F);try{return dUq(I,y,D),D}finally{fe(w)}}!viq(D)&&Array.isArray(D)&&(D=QVt(D));var v=S_H(D);w=Array.isArray(v)?v[0]:v;var P=!1;if(w){var K,r=(K=y==null?void 0:y.idomKey)!=null?K:I;K=v!==w;w._disposeEffects=O;var N=w[Ci]||{},h=viq(D)?D:N.sourceDynamicRange;Object.assign(N,{key:r,numNodes:K?v.length:1,context:F,higherOrder:!!w[Ci],sourceDynamicRange:h});w[Ci]=N}else P=!0;(function(){var x=
fe(F);try{dUq(I,y,v)}finally{fe(x)}})();
P&&O();return D};
cRe=function(I){var y={},D;for(D in I)y={prev$jscomp$24:void 0,next$jscomp$33:void 0},y.prev$jscomp$24=HV[D],y.next$jscomp$33=I[D],HV[D]=function(F){return function(){var R=_.go.apply(0,arguments);F.prev$jscomp$24.apply(null,_.Td(R));F.next$jscomp$33.apply(null,_.Td(R))}}(y)};
WQC=function(){if(IU())throw Error("qc");return ej};
C5q=function(I,y){if(!I.__unmounted&&y){I.__unmounted=!0;try{I.didUnmount()}catch(R){var D,F;(F=Ma.handleError)==null||F.call.apply(F,[Ma].concat(_.Td(rZ(R,(D=I.__type)==null?void 0:D.TAG_NAME))))}HV.didUnmount(I);I.el=null;y.__instance&&delete y.__instance}};
iDJ=function(I,y,D){I._signalProps!=null&&I._disposeEffects==null&&((D===void 0?0:D)?I._disposeEffects=PV(function(){return void BUq(I,y)},Ma.alwaysTrackContexts||!!YM):BUq(I,y))};
BUq=function(I,y){_.JI(function(){for(var D=I._signalProps,F=I._signalValues,R=0;R<D.length;R++){var O=D[R],w=y[O]();F[R]!==w&&(F[R]=w,LQA(I,O,w))}},"e3YVbb")};
AR4=function(I,y,D){var F,R=[];I._disposeEffects=PV(function(){_.JI(function(){var O=D();if(O===null||O===void 0)O="";if(cV(O)||O===null)F!=null||(F=document.createTextNode("")),F.parentNode!==I&&(F._isSignalTextNode=!0,I.insertBefore(F,y)),F.textContent=String(O);else if(rRL(O)){for(var w=R.length>0?R[R.length-1].nextSibling:y,v=_.J(R),P=v.next();!P.done;P=v.next())I.removeChild(P.value);O=jVC(O);R=Array.from(O.childNodes);O=_.J(R);for(v=O.next();!v.done;v=O.next())I.insertBefore(v.value,w)}else throw P=
(v=(w=Za)==null?void 0:w.name)!=null?v:"unknown",Error("fc`"+P+"`"+typeof O);},"VvDgC")},Ma.alwaysTrackContexts||!!YM)};
HDt=function(I,y){var D=_.go.apply(2,arguments);y!=null||(y={});return!Ma.enableLazyTsx||Za!=null&&!IU()?$U4(I,y,D):new bDo(I,y,D)};
$U4=function(I,y,D){if(I===_.ni)return D;if(typeof I==="function")return Za&&!IU()&&(y.renderedFromIdom=!0),WAe(I,function(){var O=eLt(I,y,D);if(O)return O;D.length>0&&(y.children=D.length===1?D[0]:D);if(I.componentType===gR){var w;DMq(function(){var v=y;if(I.componentType!==gR)w=!1;else{v||(v={});var P=new TB(v,I),K=kM(bF);try{var r=P.render(v)}finally{kM(K)}r instanceof HTMLElement?(r.__instance=P,P.el=r,P.__type=I,I.TAG_NAME=r.tagName.toLowerCase(),HV.didPatch(P),w=r):w=r}},I.name);
if(w)return w}return a_B(I,y)},y.debugInstance);
var F=TUW(I,y),R;for(R in y)LQA(F,R,y[R]);iDJ(F,y);iF(D,F);JRC(F,y,{isReactive:!0});sVH(F,y);return F};
TUW=function(I,y){I=(VCA.has(I.toLowerCase())?0:ZD4.has(I.startsWith("svg:")?I.replace("svg:",""):I))?document.createElementNS("http://www.w3.org/2000/svg",I.startsWith("svg:")?I.replace("svg:",""):I):gi5(I,y)||document.createElement(I);I[ILS]=!0;return I};
y95=function(I){if(I){var y;(y=I._disposeRef)==null||y.call(I);var D;(D=I._disposeEffects)==null||D.call(I);I.__instance&&I.__instance instanceof sf&&(y=I.__instance,C5q(y,I),y instanceof TB&&y.disposeEffects());for(y=0;y<I.childNodes.length;y++)y95(I.childNodes[y])}};
F9W=function(I){DrH.push(I)===1&&requestAnimationFrame(function(){setTimeout(function(){var y=[].concat(_.Td(DrH));DrH=[];y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;try{for(var F=0;F<D.length;F++)y95(D[F])}catch(R){F=D=void 0,(F=(D=Ma).handleError)==null||F.call.apply(F,[D].concat(_.Td(rZ(R))))}}})})};
_.t=function(I,y){return P5_.apply(null,[I,y].concat(_.Td(_.go.apply(2,arguments))))};
_.Vj=function(I){return I};
_.Z4=function(I){return{isDefault:!0,children:I.children}};
_.U=function(I){var y=I.cond;if(y===void 0)return I.else&&I.else();var D=_.su(function(){return!!y()},void 0,"JHVi8"),F=function(){var R=y();
if(!R){var O;(O=Ma.handleError)==null||O.call.apply(O,[Ma].concat(_.Td(rZ(R3e.nonNullableCondIsNull()))))}return R};
return BV(function(){var R=D(),O;PV(function(){var w=kM(bF);try{O=$4(R?I.then(F):I.else&&I.else())}finally{kM(w)}},!0);
return O},{debugName:I.debugInstance,
debugFn:I.then,isControlFlowComponent:!0})};
OEq=function(I){return _.U(I)};
_.gZ=function(I){return I.keyBy==="INDEX"?L9_(I):J9e(I)};
wg4=function(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next()){var D=void 0;(D=y.value)==null||D()}};
J9e=function(I){var y=I.keyBy===void 0||I.keyBy==="REFERENCE",D=y?function(r){return r}:I.keyBy,F=[],R=[],O=[],w=[],v=[],P=[],K=!0;
_.tI(function(){wg4(w)});
return BV(function(){var r=vIe(I),N=r.length;if(N===0){if(F.length===0&&!K)return O;wg4(w);F=r;R=[];for(r=0;r<F.length;r++)R.push(D(F[r]));O=[];w=[];v=[];P=[];I.fallback&&(w[0]=S$t(function(){O[0]=$4(I.fallback())}));
K=!1;return O}for(var h=new tkC,x=F.length-1;x>=0;x--)h.push(R[x],x);x=Array(N);for(var q=Array(N),X=Array(N),f=Array(N),m=Array(y?0:N),z={i$jscomp$451:0};z.i$jscomp$451<N;z={i$jscomp$451:z.i$jscomp$451,item$jscomp$104:void 0,key$jscomp$563:void 0},z.i$jscomp$451++){z.item$jscomp$104=r[z.i$jscomp$451];z.key$jscomp$563=D(z.item$jscomp$104);var B=h.pop(z.key$jscomp$563);B!=null?(X[z.i$jscomp$451]=O[B],q[z.i$jscomp$451]=R[B],x[z.i$jscomp$451]=w[B],f[z.i$jscomp$451]=v[B],y||(m[z.i$jscomp$451]=P[B]),V2(function(C){return function(){f[C.i$jscomp$451](C.i$jscomp$451);
if(!y)m[C.i$jscomp$451](C.item$jscomp$104)}}(z)),delete w[B]):x[z.i$jscomp$451]=S$t(function(C){return function(){var H=_.J(_.$M(C.i$jscomp$451,void 0,"Fqk1zd")),e=H.next().value;
H=H.next().value;f[C.i$jscomp$451]=H;q[C.i$jscomp$451]=C.key$jscomp$563;if(y)X[C.i$jscomp$451]=$4(I.children(C.item$jscomp$104,e));else{var T=_.J(_.$M(C.item$jscomp$104,void 0,"GBj5de"));H=T.next().value;T=T.next().value;m[C.i$jscomp$451]=T;X[C.i$jscomp$451]=$4(I.children(H,e))}}}(z))}wg4(w);
F=r;R=q;O=X;w=x;v=f;P=m;K=!1;return X},{debugName:I.debugInstance,
debugFn:I.each,isControlFlowComponent:!0})};
L9_=function(I){var y=[],D=[],F=[],R=[],O=!1;_.tI(function(){wg4(R)});
return BV(function(){var w=vIe(I);O&&w.length>0&&(R.pop()(),y.pop(),O=!1);for(var v=Array(w.length),P={i$jscomp$452:0};P.i$jscomp$452<w.length;P={i$jscomp$452:P.i$jscomp$452},P.i$jscomp$452++)if(P.i$jscomp$452<y.length)y[P.i$jscomp$452]!==w[P.i$jscomp$452]&&(V2(function(r){return function(){return void D[r.i$jscomp$452](w[r.i$jscomp$452])}}(P)),y[P.i$jscomp$452]=w[P.i$jscomp$452]),v[P.i$jscomp$452]=F[P.i$jscomp$452];
else{var K=S$t(function(r){return function(){y[r.i$jscomp$452]=w[r.i$jscomp$452];var N=_.J(_.$M(w[r.i$jscomp$452],void 0,"JMMLmd")),h=N.next().value;N=N.next().value;D[r.i$jscomp$452]=N;v[r.i$jscomp$452]=$4(I.children(h,r.i$jscomp$452))}}(P));
R[P.i$jscomp$452]=K}for(;y.length>w.length;)y.pop(),R.pop()(),D.pop();w.length===0&&!O&&I.fallback&&(P=S$t(function(){v[0]=$4(I.fallback())}),R[0]=P,O=!0);
return F=v},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
vIe=function(I){I=I.each();return Array.isArray(I)?I:Array.from(I)};
S$t=function(I){var y=YM;return PV(function(D){var F=kM(bF);try{D.parent=y,I(D)}finally{kM(F)}},!1)};
_.I8=function(I){var y=PjW(I),D=_.su(function(){return K9q(y)},void 0,"F1PF4");
return BV(function(){var F=D(),R;PV(function(){var O=kM(bF);try{R=$4(F())}finally{kM(O)}});
return R},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
PjW=function(I){I=I.children;return Array.isArray(I)?I:[I]};
Urq=function(I){var y=I.props;I=I.getChildren()[0];return y.when?{when:y.when,children:I}:{isDefault:!0,children:I}};
K9q=function(I){var y=function(){return null};
I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D!=null&&D[fi]&&(D=D.type===_.Z4?{isDefault:!0,children:D.children[0]}:{when:D.props.when,children:D.children[0]}),D instanceof AI&&(D=Urq(D)),D.isDefault)y=D.children;else if(D.when())return D.children;return y};
r9J=function(I){var y=null,D,F={get value(){var O,w;(w=(O=R).validateGetValue)==null||w.call(O);return R.__value},set value(O){var w,v;(v=(w=R).validateSetValue)==null||v.call(w,O);R.__value=O;R.__hasBeenSet=!0}},R=(F.__value=null,F.__hasBeenSet=!1,F.__hasErrored=!1,F.onRender=function(O){if(D&&O!==D){D._disposeRef=void 0;var w;(w=y)==null||w()}D=O;y=I(O)||null},F.onUnmount=function(){var O;
(O=y)==null||O();y=R.value=null},F[JOq]=!0,F);
return R};
yV=function(I){return typeof I==="symbol"};
oI_=function(I){var y=WQC();if(y==null)throw j1L.PRIMITIVE_INVALID_HOOK_CALL();var D=y.hookCounter++;y.hooks||(y.hooks=[]);var F=y.hooks;F[D]||(F[D]={key:I,host:y});if(I!==F[D].key){if(y.__type){var R;I=(R=y.__type)==null?void 0:R.name}else I=y instanceof TB?cq_(y.functionComponent):"<"+y.el.tagName.toLowerCase()+">";throw j1L.OUT_OF_ORDER_HOOK_CALL(I);}return F[D]};
NeA=function(I,y){return!I||I.length!==(y==null?void 0:y.length)||I.some(function(D,F){return D!==y[F]})};
h3B=function(I,y){if(IU())return I();var D=oI_("useMemoInternal");NeA(D.deps,y)&&(D.deps=y,D.value=I());return D.value};
xr5=function(I,y){return h3B(I,y)};
_.DF=function(I,y){return lLt(I,!1,y)};
_.Fh=function(I,y){return lLt(I,!0,y)};
lLt=function(I,y,D){return IU()?usJ(I,y,D):q$A(I,y,D)};
q$A=function(I,y,D){return h3B(function(){return usJ(I,y,D)},[])};
usJ=function(I,y,D){var F=r9J(function(R){F.value=R;var O=function(){var w=kM(null);try{return D==null?void 0:D(R)}finally{kM(w)}}();
return function(){O==null||O()}});
F.__expectedTagName=I;F.__optional=y;F.isIdom=!IU();return F};
EIq=function(I,y){var D;y=PV(function(){var F=pi(!0);RU++;try{D=iF(I()),Li(!1)}catch(R){throw Li(!0),R;}finally{pi(F)}},y===void 0?!1:y);
return[D,y]};
_.R8=function(I,y,D){D!=null||(D={});D=D.appContext;var F=!!Ma.legacyTriggerSoyRendererEvents;WV.setUp();try{var R=GCA(I,y,D);F&&(y=D,y!=null||(y=_.yOH(document).getAppContext()),y.get(f__).JSC$29974_getEventTarget().dispatchEvent(new ni5(Xgt,I,aU)));WV.log(I);return R}finally{WV.tearDown()}};
GCA=function(I,y,D){var F=D4(function(){var R=kM(bF);try{return PV(function(){var O=_.yOH(_.VE(I)),w;var v=hfo({rootElement:{value:I},appContext:D||(O==null?void 0:(w=O.getOptionalAppContext)==null?void 0:w.call(O)),dispatcher:O});O=fe(v);v=pi(!0);RU++;try{iF(y(),I),Li(!1)}catch(P){throw Li(!0),P;}finally{pi(v),fe(O)}},!1)}catch(O){throw Ma.enableContextBasedComponentStacks&&yj(O),O;
}finally{kM(R)}});
I[Q1q]=!0;return function(){I.textContent="";F();I[Q1q]=!1}};
_.OJ=function(I){if(JpW(zO)){var y;(y=Ma.handleError)==null||y.call.apply(y,[Ma].concat(_.Td(rZ(Error("ec")))))}var D=YM,F=Za;sfA({onInitType:eN5,run:function(){if(D&&!D.isDisposed){var R=fe(D);try{D4(function(){return void I()},F)}catch(O){throw Ma.enableContextBasedComponentStacks&&yj(O),O;
}finally{fe(R)}}}})};
nIW=function(I){var y=Rfo(2),D=new Set;_.tI(function(){return void D.forEach(function(F){return void F()})});
return function(F){var R=fe(y);try{var O=Y$o(fL4(I),F);D.add(O);return function(){O();D.delete(O)}}finally{fe(R)}}};
_.pgo=function(I){var y=I.children;var D=I.root;_.OJ(function(){var F=nIW(D)(y);_.tI(F)});
return document.createTextNode("")};
Y$o=function(I,y){var D=mrB(I);(I=wPC())&&Zvt(D,I);WV.setUp();y=_.J(EIq(y,!0));I=y.next().value;var F=y.next().value;y=_.J(I);for(I=y.next();!I.done;I=y.next())D.appendChild(I.value);WV.log(D);WV.tearDown();return function(){F();D.remove()}};
fL4=function(I){if(typeof I==="string")return I=document.querySelector(I),_.JMA(I),I;if(M3(I)&&I.nodeType===Node.ELEMENT_NODE)return I;if(!I.__value&&!I.__optional){var y=j1L.USE_ELEMENT_NOT_ASSIGNED(I.__expectedTagName);I.__hasErrored=!0;throw y;}return I.value};
mrB=function(I){var y=document.createElementNS(I.namespaceURI,I.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return I.appendChild(y)};
Mk4=function(I,y){var D=oI_("onChange"),F=WQC();NeA(D.deps,y)&&(D.deps=y,D.pendingEffect=I,F.__syncEffects||(F.__syncEffects=[]),F.__syncEffects.push(D))};
z35=function(I,y){Mk4(function(){return _.iS(I)},y)};
_.LR=function(I){IU()?_.OJ(function(){_.iS(I)}):Mk4(function(){return _.iS(I)},[])};
dr4=function(I){var y=[].concat(_.Td(I));I.length=0;I=_.J(y);for(y=I.next();!y.done;y=I.next()){y=y.value;kC_(y);var D=y.pendingEffect;y.pendingEffect=null;if(D=D==null?void 0:D())y.pendingCleanup=D}};
kC_=function(I){var y=I.pendingCleanup;I.pendingCleanup=null;y==null||y()};
aLJ=function(I){return h3B(function(){return{value:I}},[])};
_.vi=function(I,y){if(!I)return null;I=Object.keys(I);I=_.J(I);for(var D=I.next();!D.done;D=I.next()){D=D.value;var F=D.toLowerCase();if(F.indexOf(y,F.length-y.length)>-1)return D}return null};
_.tG=function(){var I=arguments,y=_.SF;I.length>1?y[I[0]]=I[1]:I.length===1&&Object.assign(y,I[0])};
_.Pi=function(I,y){return I in _.SF?_.SF[I]:y};
_.KR=function(I,y){return!!_.Pi(I,y)};
c94=function(I){var y=_.SF.EXPERIMENT_FLAGS;return y?y[I]:void 0};
CjA=function(I){W9H.forEach(function(y){return y(I)})};
_.r6=function(I){return I&&window.yterr?function(){try{return I.apply(this,arguments)}catch(y){_.UJ(y)}}:I};
_.UJ=function(I){var y=_.jF("yt.logging.errors.log");y?y(I,"ERROR",void 0,void 0,void 0,void 0,void 0):(y=_.Pi("ERRORS",[]),y.push([I,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.tG("ERRORS",y));CjA(I)};
_.o8=function(I,y,D,F,R){var O=_.jF("yt.logging.errors.log");O?O(I,"WARNING",y,D,F,void 0,R):(O=_.Pi("ERRORS",[]),O.push([I,"WARNING",y,D,F,void 0,R]),_.tG("ERRORS",O))};
iEo=function(I,y){y=I.split(y);for(var D={},F=0,R=y.length;F<R;F++){var O=y[F].split("=");if(O.length===1&&O[0]||O.length===2)try{var w=BeJ(O[0]||""),v=BeJ(O[1]||"");if(w in D){var P=D[w];Array.isArray(P)?_.AL(P,v):D[w]=[P,v]}else D[w]=v}catch(h){var K=h,r=O[0],N=String(iEo);K.args=[{key:r,value:O[1],query:I,method:A9J===N?"unchanged":N}];$r4.hasOwnProperty(r)||_.o8(K)}}return D};
bEC=function(I){var y=[];_.e$.forEach(I,function(D,F){var R=_.NC(F);D=Array.isArray(D)?D:[D];_.hG(D,function(O){O==""?y.push(R):y.push(R+"="+_.NC(O))})});
return y.join("&")};
_.xf=function(I){I.charAt(0)==="?"&&(I=I.substring(1));return iEo(I,"&")};
_.lP=function(I){return I.indexOf("?")!==-1?(I=(I||"").split("#")[0],I=I.split("?",2),_.xf(I.length>1?I[1]:I[0])):{}};
_.uP=function(I,y){return HEB(I,y||{},!0)};
e3q=function(I,y){return HEB(I,y||{},!1)};
HEB=function(I,y,D){var F=I.split("#",2);I=F[0];F=F.length>1?"#"+F[1]:"";var R=I.split("?",2);I=R[0];R=_.xf(R[1]||"");for(var O in y)if(D||!_.e$.containsKey(R,O))R[O]=y[O];return _.qC(I,R)+F};
QV=function(I){if(!y)var y=window.location.href;var D=_.EJ(I)[1]||null,F=_.GP(I);return D&&F?Xh(I,y):F?_.GP(y)===F&&(Number(_.EJ(y)[4]||null)||null)===(Number(_.EJ(I)[4]||null)||null):!0};
_.s1q=function(I){I=Tee(I);return I===null?!1:I[0]==="com"&&I[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Tee=function(I){I=_.GP(I);return I!==null?I.split(".").reverse():null};
BeJ=function(I){return I&&I.match(Vkq)?I:Yf(I)};
_.fR=function(I){return new ZEC(I)};
_.nR=function(){gIA||(gIA=new I5A);return gIA};
DlW=function(){var I=y_q;return function(){var y=_.nR();if(!y.resolve(_.fR(I))){var D={};y.addProvider((D.provide=I,D.useClass=I,D[mw]=void 0,D))}return y.resolve(I)}};
RVJ=function(I){var y=_.MC,D,F;_.S(function(R){D=_.nR();return(F=D.resolve(_.fR(y)))?(I(F),R.return(Promise.resolve(F))):R.return(D.resolve(new FdH(y)).then(function(O){I(O);return O}))})};
_.l=function(I){I=zP(I);return typeof I==="string"&&I==="false"?!1:!!I};
_.kf=function(I,y){I=zP(I);return I===void 0&&y!==void 0?y:Number(I||0)};
OC4=function(I){I=zP(I);return Array.isArray(I)?_.T_(I,function(y){return Number(y||0)}):[Number(I||0)]};
_.d6=function(I){I=zP(I);return I!==void 0?String(I):""};
_.a8=function(I){I=zP(I);return Array.isArray(I)?_.T_(I,function(y){return String(y||"")}):[String(I||"")]};
Ld_=function(){return _.Pi("EXPERIMENTS_TOKEN","")};
zP=function(I){return _.Pi("EXPERIMENT_FLAGS",{})[I]};
J_A=function(){for(var I=[],y=_.Pi("EXPERIMENTS_FORCED_FLAGS",{}),D=_.J(Object.keys(y)),F=D.next();!F.done;F=D.next())F=F.value,I.push({key:F,value:String(y[F])});D=_.Pi("EXPERIMENT_FLAGS",{});F=_.J(Object.keys(D));for(var R=F.next();!R.done;R=F.next())R=R.value,R.startsWith("force_")&&y[R]===void 0&&I.push({key:R,value:String(D[R])});return I};
vKe=function(){if(!wWB)return null;var I=wWB();return"open"in I?I:null};
_.Sc5=function(I){switch(_.ci(I)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.ci=function(I){return I&&"status"in I?I.status:-1};
_.Wi=function(I,y){typeof I==="function"&&(I=_.r6(I));return window.setTimeout(I,y)};
_.CR=function(I,y){typeof I==="function"&&(I=_.r6(I));return window.setInterval(I,y)};
_.Bi=function(I){window.clearTimeout(I)};
Pot=function(I){I=_.lP(I);for(var y=_.J(tI5),D=y.next();!D.done;D=y.next())if(I[D.value]!==void 0)return!0;return!1};
r_B=function(I,y,D,F,R,O,w,v,P){D=D===void 0?"GET":D;F=F===void 0?"":F;v=v===void 0?!1:v;var K=vKe();if(!K)return null;var r=function(){(K&&"readyState"in K?K.readyState:0)===4&&y&&_.r6(y)(K)};
"onloadend"in K?K.addEventListener("loadend",r,!1):K.onreadystatechange=r;_.l("debug_forward_web_query_parameters")&&(I=KdA(I,window.location.search));K.open(D,I,!0);O&&(K.responseType=O);w&&(K.withCredentials=!0);D=D==="POST"&&(window.FormData===void 0||!(F instanceof FormData));if(R=Ulo(I,R))for(var N in R)K.setRequestHeader(N,R[N]),"content-type"===N.toLowerCase()&&(D=!1);D&&K.setRequestHeader("Content-Type","application/x-www-form-urlencoded");P&&"onprogress"in K&&(K.onprogress=function(){P(K.responseText)});
if(v&&"setAttributionReporting"in XMLHttpRequest.prototype){I={eventSourceEligible:!0,triggerEligible:!1};try{K.setAttributionReporting(I)}catch(h){_.o8(h)}}K.send(F);return K};
Ulo=function(I,y){y=y===void 0?{}:y;var D=QV(I),F=_.Pi("INNERTUBE_CLIENT_NAME"),R=_.l("web_ajax_ignore_global_headers_if_set"),O;for(O in jQe){var w=_.Pi(jQe[O]),v=O==="X-Goog-AuthUser"||O==="X-Goog-PageId";O!=="X-Goog-Visitor-Id"||w||(w=_.Pi("VISITOR_DATA"));var P;if(!(P=!w)){if(!(P=D||(_.GP(I)?!1:!0))){P=I;var K;if(K=_.l("add_auth_headers_to_remarketing_google_dot_com_ping")&&O==="Authorization"&&(F==="TVHTML5"||F==="TVHTML5_UNPLUGGED"||F==="TVHTML5_SIMPLY"))K=Tee(P),K=K===null?!1:K[1]==="google"?
!0:K[2]==="google"?K[0]==="au"&&K[1]==="com"?!0:K[0]==="uk"&&K[1]==="co"?!0:!1:!1;K&&(P=_.iP(P)||"",P=P.split("/"),P="/"+(P.length>1?P[1]:""),K=P==="/pagead");P=K?!0:!1}P=!P}P||R&&y[O]!==void 0||F==="TVHTML5_UNPLUGGED"&&v||(y[O]=w)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];if(D||!_.GP(I))y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(D||!_.GP(I)){try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}r&&(y["X-YouTube-Time-Zone"]=
r)}document.location.hostname.endsWith("youtubeeducation.com")||!D&&_.GP(I)||(y["X-YouTube-Ad-Signals"]=bEC(oKS()));return y};
_.NHo=function(I,y){var D=_.GP(I);_.l("debug_handle_relative_url_for_query_forward_killswitch")||!D&&QV(I)&&(D=document.location.hostname);var F=_.iP(I);F=(D=D&&(D.endsWith("youtube.com")||D.endsWith("youtube-nocookie.com")))&&F&&F.startsWith("/api/");if(!D||F)return I;var R=_.xf(y),O={};_.hG(tI5,function(w){R[w]&&(O[w]=R[w])});
return e3q(I,O)};
hVo=function(I,y){y.method="POST";y.postParams||(y.postParams={});return _.AG(I,y)};
xl4=function(I,y){var D=_.Pi("XSRF_FIELD_NAME"),F;y.headers&&(F=y.headers["Content-Type"]);return!y.excludeXsrf&&(!_.GP(I)||y.withCredentials||_.GP(I)===document.location.hostname)&&y.method==="POST"&&(!F||F==="application/x-www-form-urlencoded")&&!(y.postParams&&y.postParams[D])};
_.AG=function(I,y){var D=y.format||"JSON";I=l5W(I,y);var F=uw4(I,y),R=!1,O=qcW(I,function(P){if(!R){R=!0;v&&_.Bi(v);var K=_.Sc5(P),r=null,N=400<=P.status&&P.status<500,h=500<=P.status&&P.status<600;if(K||N||h)r=EKo(I,D,P,y.convertToSafeHtml);K&&(K=Gzt(D,P,r));r=r||{};N=y.context||_.Ft;K?y.onSuccess&&y.onSuccess.call(N,P,r):y.onError&&y.onError.call(N,P,r);y.onFinish&&y.onFinish.call(N,P,r)}},y.method,F,y.headers,y.responseType,y.withCredentials,!1,y.onProgress);
F=y.timeout||0;if(y.onTimeout&&F>0){var w=y.onTimeout;var v=_.Wi(function(){R||(R=!0,O.abort(),_.Bi(v),w.call(y.context||_.Ft,O))},F)}return O};
l5W=function(I,y){y.includeDomain&&(I=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+I);var D=_.Pi("XSRF_FIELD_NAME");if(y=y.urlParams)y[D]&&delete y[D],I=_.uP(I,y);return I};
uw4=function(I,y){var D=_.Pi("XSRF_FIELD_NAME"),F=_.Pi("XSRF_TOKEN"),R=y.postBody||"",O=y.postParams;xl4(I,y)&&(O||(O={}),O[D]=F);(_.l("ajax_parse_query_data_only_when_filled")&&O&&Object.keys(O).length>0||O)&&typeof R==="string"&&(R=_.xf(R),_.e$.extend(R,O),R=y.postBodyFormat&&y.postBodyFormat==="JSON"?JSON.stringify(R):_.$f(R));O=R||O&&!_.e$.isEmpty(O);!XWB&&O&&y.method!=="POST"&&(XWB=!0,_.UJ(Error("Lc")));return R};
EKo=function(I,y,D,F){var R=null;switch(y){case "JSON":try{var O=D.responseText}catch(w){throw F=Error("Mc"),F.params=I,_.o8(F),w;}I=D.getResponseHeader("Content-Type")||"";O&&I.indexOf("json")>=0&&(O.substring(0,5)===")]}'\n"&&(O=O.substring(5)),R=JSON.parse(O));break;case "XML":if(I=(I=D.responseXML)?QQL(I):null)R={},_.hG(I.getElementsByTagName("*"),function(w){R[w.tagName]=YcC(w)})}F&&f5_(R);
return R};
f5_=function(I){if(_.b_(I))for(var y in I)y==="html_content"||JL(y,"_html")?I[y]=Fy(I[y]):f5_(I[y])};
Gzt=function(I,y,D){if(y&&y.status===204)return!0;switch(I){case "JSON":return!!D;case "XML":return Number(D&&D.return_code)===0;case "RAW":return!0;default:return!!D}};
QQL=function(I){return I?(I=("responseXML"in I?I.responseXML:I).getElementsByTagName("root"))&&I.length>0?I[0]:null:null};
YcC=function(I){var y="";_.hG(I.childNodes,function(D){y+=D.nodeValue});
return y};
nKS=function(I){if(I.name==="JavaException")return!0;I=I.stack;return I.includes("chrome://")||I.includes("-extension://")||I.includes("webkit-masked-url://")};
pW4=function(I){if(!I.stack)return!0;var y=!I.stack.includes("\n");return y&&I.stack.includes("ErrorType: ")||y&&I.stack.includes("Anonymous function (Unknown script")||I.stack.toLowerCase()==="not available"||I.fileName==="user-script"||I.fileName.startsWith("user-script:")?!0:!1};
_.bP=function(I){_.B5.call(this);this.JSC$10796_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!I};
MI_=function(I,y){var D=I.length,F=0,R=function(){return I.charCodeAt(F++)};
do{var O=mlS(R);if(O===Infinity)break;var w=O>>3;switch(O&7){case 0:O=mlS(R);if(w===y)return O;break;case 1:if(w===y)return;F+=8;break;case 2:O=mlS(R);if(w===y)return I.substr(F,O);F+=O;break;case 5:if(w===y)return;F+=4;break;default:return}}while(F<D)};
mlS=function(I){var y=I(),D=y&127;if(y<128)return D;y=I();D|=(y&127)<<7;if(y<128)return D;y=I();D|=(y&127)<<14;if(y<128)return D;y=I();return y<128?D|(y&127)<<21:Infinity};
kzL=function(I,y,D,F){if(I)if(Array.isArray(I)){var R=F;for(F=0;F<I.length&&!(I[F]&&(R+=zVS(F,I[F],y,D),R>500));F++);F=R}else if(typeof I==="object")for(R in I){if(I[R]){var O=R;var w=I[R],v=y,P=D;O=typeof w!=="string"||O!=="clickTrackingParams"&&O!=="trackingParams"?0:(w=MI_(atob(w.replace(/-/g,"+").replace(/_/g,"/")),2))?zVS(O+".ve",w,v,P):0;F+=O;F+=zVS(R,I[R],y,D);if(F>500)break}}else D[y]=Hi(I),F+=D[y].length;else D[y]=Hi(I),F+=D[y].length;return F};
zVS=function(I,y,D,F){D+="."+I;I=Hi(y);F[D]=I;return D.length+I.length};
Hi=function(I){try{return(typeof I==="string"?I:String(JSON.stringify(I))).substr(0,500)}catch(y){return"unable to serialize "+typeof I+" ("+y.message+")"}};
dlH=function(I){switch(I){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}};
_.TP=function(I,y,D,F,R){_.eF.set(I,y,{maxAge:D,path:"/",domain:F===void 0?"youtube.com":F,secure:R===void 0?!1:R})};
_.a5q=function(I,y,D){_.eF.remove(I,y===void 0?"/":y,D===void 0?"youtube.com":D)};
_.sJ=function(){if(_.l("embeds_web_enable_cookie_detection_fix")){if(!_.Ft.navigator.cookieEnabled)return!1}else if(!_.eF.isEnabled())return!1;if(!_.eF.isEmpty())return!0;_.l("embeds_web_enable_cookie_detection_fix")?_.eF.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.eF.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.eF.get("TESTCOOKIESENABLED")!=="1")return!1;_.eF.remove("TESTCOOKIESENABLED");return!0};
c_H=function(){var I=_.Ft.navigator;return I?I.connection:void 0};
WdL=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(I){}};
_.BHt=function(){var I=c_H();if(I){var y=CoL[I.type||"unknown"]||"CONN_UNKNOWN";I=CoL[I.effectiveType||"unknown"]||"CONN_UNKNOWN";y==="CONN_CELLULAR_UNKNOWN"&&I!=="CONN_UNKNOWN"&&(y=I);if(y!=="CONN_UNKNOWN")return y;if(I!=="CONN_UNKNOWN")return I}};
A_q=function(){var I=c_H();if(I!=null&&I.effectiveType)return iCq.hasOwnProperty(I.effectiveType)?iCq[I.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.ZF=function(){try{return _.VV(),!0}catch(I){return!1}};
_.VV=function(I){if(_.Pi("DATASYNC_ID")!==void 0)return _.Pi("DATASYNC_ID");throw new _.g6("Datasync ID not set",I===void 0?"unknown":I);};
_.IC=function(I){this.mechanism=I};
yx=function(I){this.mechanism=I};
FG=function(I){this.storage_=I;this.cachedIsStorageAvailable_=null};
$lB=function(){var I=null;try{I=_.Ft.localStorage||null}catch(y){}FG.call(this,I)};
bCS=function(){var I=null;try{I=_.Ft.sessionStorage||null}catch(y){}FG.call(this,I)};
RC=function(I,y){this.mechanism_=I;this.JSC$10899_prefix_=y+"::"};
_.Ol=function(I){var y=new $lB;return y.isAvailable()?I?new RC(y,I):y:null};
_.HCA=function(I){var y=new bCS;return y.isAvailable()?I?new RC(y,I):y:null};
THC=function(){var I;return(I=eVW())==null?void 0:I.get("LAST_RESULT_ENTRY_KEY",!0)};
_.w1=function(I){sQ4||(_.Lv?_.Lv.logError(I):(_.J0.push({type:"ERROR",payload:I}),_.J0.length>10&&_.J0.shift()))};
v1=function(I,y){sQ4||(_.Lv?_.Lv.logEvent(I,y):(_.J0.push({type:"EVENT",eventType:I,payload:y}),_.J0.length>10&&_.J0.shift()))};
SA=function(I){if(I.indexOf(":")>=0)throw Error("Tc");};
t0=function(I){return I.substr(0,I.indexOf(":"))||I};
gK5=function(){return(VIB||ZCq)&&P1("applewebkit")&&!P1("version")&&(!P1("safari")||P1("gsa/"))};
P1=function(I){var y=_.oo();return y?y.toLowerCase().indexOf(I)>=0:!1};
DPC=function(I,y,D,F){y=t0(y);var R=I instanceof Error?I:Error("Uc`"+I);if(R instanceof Kv)return R;I={objectStoreNames:D,dbName:y,dbVersion:F};if(R.name==="QuotaExceededError")return new Kv("QUOTA_EXCEEDED",I);if(_.Ul&&R.name==="UnknownError")return new Kv("QUOTA_MAYBE_EXCEEDED",I);if(R instanceof I7A)return new Kv("MISSING_INDEX",Object.assign({},I,{objectStore:R.objectStore,index:R.index}));if(R.name==="InvalidStateError"&&ySt.some(function(O){return R.message.includes(O)}))return new Kv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
I);
if(R.name==="AbortError")return new Kv("UNKNOWN_ABORT",I,R.message);R.args=[Object.assign({},I,{name:"IdbError",originalName:R.name})];R.level="WARNING";return R};
r1=function(I,y,D){var F=THC();return new Kv("IDB_NOT_SUPPORTED",{context:{caller:I,publicName:y,version:D,hasSucceededOnce:F==null?void 0:F.hasSucceededOnce}})};
FXA=function(I){if(!I)throw Error();throw I;};
RjW=function(I){return I};
O0L=function(I,y,D){var F=function(){try{I.removeEventListener("success",R),I.removeEventListener("error",O)}catch(w){}},R=function(){y(I.result);
F()},O=function(){D(I.error);
F()};
I.addEventListener("success",R);I.addEventListener("error",O)};
LXq=function(I){return new Promise(function(y,D){O0L(I,y,D)})};
No=function(I){return new jA(new oC(function(y,D){O0L(I,y,D)}))};
JSq=function(I,y){return new jA(new oC(function(D,F){var R=function(){var O=I?y(I):null;O?O.then(function(w){I=w;R()},F):D()};
R()}))};
wFH=function(I,y,D){return new Promise(function(F,R){var O=y!==void 0?self.indexedDB.open(I,y):self.indexedDB.open(I);var w=D.blocked,v=D.blocking,P=D.terminated,K=D.upgrade,r=D.closed,N,h=function(){N||(N=new h0(O.result,{closed:r}));return N};
O.addEventListener("upgradeneeded",function(x){try{if(x.newVersion===null)throw Error("Zc");if(O.transaction===null)throw Error("$c");x.dataLoss&&x.dataLoss!=="none"&&v1("IDB_DATA_CORRUPTED",{reason:x.dataLossMessage||"unknown reason",dbName:t0(I)});var q=h(),X=new xk(O.transaction);K&&K(q,function(f){return x.oldVersion<f&&x.newVersion>=f},X);
X.done.catch(function(f){R(f)})}catch(f){R(f)}});
O.addEventListener("success",function(){var x=O.result;v&&x.addEventListener("versionchange",function(){v(h())});
x.addEventListener("close",function(){v1("IDB_UNEXPECTEDLY_CLOSED",{dbName:t0(I),dbVersion:x.version});P&&P()});
F(h())});
O.addEventListener("error",function(){R(O.error)});
w&&O.addEventListener("blocked",function(){w()})})};
vcJ=function(I,y,D){D=D===void 0?{}:D;return wFH(I,y,D)};
_.uZ=function(I,y){y=y===void 0?{}:y;var D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return _.nj(w,2),D=self.indexedDB.deleteDatabase(I),F=y,(R=F.blocked)&&D.addEventListener("blocked",function(){R()}),w.yield(LXq(D),4);
if(w.nextAddress!=2)return _.lZ(w,0);O=_.dj(w);throw DPC(O,I,"",-1);})};
t7J=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.qo(SgA,y),2);D=F.yieldResult;return F.return(_.El(D,["databases"],{enableRetries:!0,mode:"readwrite"},function(R){var O=R.objectStore("databases");return O.get(I.actualName).then(function(w){if(w?I.actualName!==w.actualName||I.publicName!==w.publicName||I.userIdentifier!==w.userIdentifier:1)return O.put(I).then(function(){})})}))})};
_.Gm=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)return I?F.yield(_.qo(SgA,y),2):F.return();D=F.yieldResult;return F.return(D.delete("databases",I))})};
_.PXq=function(I,y){var D,F;return _.S(function(R){return R.nextAddress==1?(D=[],R.yield(_.qo(SgA,y),2)):R.nextAddress!=3?(F=R.yieldResult,R.yield(_.El(F,["databases"],{enableRetries:!0,mode:"readonly"},function(O){D.length=0;return XG(O.objectStore("databases"),{},function(w){I(w.getValue())&&D.push(w.getValue());return w.continue()})}),3)):R.return(D)})};
KXH=function(I,y){return _.PXq(function(D){return D.publicName===I&&D.userIdentifier!==void 0},y)};
jqH=function(){var I,y,D,F;return _.S(function(R){switch(R.nextAddress){case 1:I=THC();if((y=I)==null?0:y.hasSucceededOnce)return R.return(!0);var O;if(O=UPH)O=/WebKit\/([0-9]+)/.exec(_.oo()),O=!!(O&&parseInt(O[1],10)>=600);O&&(O=/WebKit\/([0-9]+)/.exec(_.oo()),O=!(O&&parseInt(O[1],10)>=602));if(O||Qx)return R.return(!1);try{if(D=self,!(D.indexedDB&&D.IDBIndex&&D.IDBKeyRange&&D.IDBObjectStore))return R.return(!1)}catch(w){return R.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return R.return(!1);
_.nj(R,2);F={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return R.yield(t7J(F,rSt),4);case 4:return R.yield(_.Gm("yt-idb-test-do-not-use",rSt),5);case 5:return R.return(!0);case 2:return _.dj(R),R.return(!1)}})};
NYA=function(){if(ocW!==void 0)return ocW;sQ4=!0;return ocW=jqH().then(function(I){sQ4=!1;var y;if((y=eVW())!=null&&y.hasLocalStorage()){var D;y={hasSucceededOnce:((D=THC())==null?void 0:D.hasSucceededOnce)||I};var F;(F=eVW())==null||F.set("LAST_RESULT_ENTRY_KEY",y,2592E3,!0)}return I})};
Yk=function(){return _.jF("ytglobal.idbToken_")||void 0};
_.nv=function(){var I=Yk();return I?Promise.resolve(I):NYA().then(function(y){(y=y?rSt:void 0)&&_.fv("ytglobal.idbToken_",y);return y})};
hj5=function(I){if(!_.ZF())throw I=new Kv("AUTH_INVALID",{dbName:I}),_.w1(I),I;var y=_.VV();return{actualName:I+":"+y,publicName:I,userIdentifier:y}};
xPA=function(I,y,D,F){var R,O,w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:return O=(R=Error().stack)!=null?R:"",r.yield(_.nv(),2);case 2:w=r.yieldResult;if(!w)throw v=r1("openDbImpl",I,y),_.l("ytidb_async_stack_killswitch")||(v.stack=v.stack+"\n"+O.substring(O.indexOf("\n")+1)),_.w1(v),v;SA(I);P=D?{actualName:I,publicName:I,userIdentifier:void 0}:hj5(I);_.nj(r,3);return r.yield(t7J(P,w),5);case 5:return r.yield(vcJ(P.actualName,y,F),6);case 6:return r.return(r.yieldResult);case 3:return K=
_.dj(r),_.nj(r,7),r.yield(_.Gm(P.actualName,w),9);case 9:_.lZ(r,8);break;case 7:_.dj(r);case 8:throw K;}})};
l7q=function(I,y,D){D=D===void 0?{}:D;return xPA(I,y,!1,D)};
uMH=function(I,y,D){D=D===void 0?{}:D;return xPA(I,y,!0,D)};
qgq=function(I,y){y=y===void 0?{}:y;var D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(_.nv(),2);if(R.nextAddress!=3){D=R.yieldResult;if(!D)return R.return();SA(I);F=hj5(I);return R.yield(_.uZ(F.actualName,y),3)}return R.yield(_.Gm(F.actualName,D),0)})};
Ec4=function(I,y,D){I=I.map(function(F){return _.S(function(R){return R.nextAddress==1?R.yield(_.uZ(F.actualName,y),2):R.yield(_.Gm(F.actualName,D),0)})});
return Promise.all(I).then(function(){})};
GFo=function(I){var y=y===void 0?{}:y;var D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(_.nv(),2);if(R.nextAddress!=3){D=R.yieldResult;if(!D)return R.return();SA(I);return R.yield(KXH(I,D),3)}F=R.yieldResult;return R.yield(Ec4(F,y,D),0)})};
XF5=function(I,y){y=y===void 0?{}:y;var D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.nv(),2);if(F.nextAddress!=3){D=F.yieldResult;if(!D)return F.return();SA(I);return F.yield(_.uZ(I,y),3)}return F.yield(_.Gm(I,D),0)})};
pv=function(I,y){return Qq4(I,y)};
f7_=function(I){return _.qo(YgB(),I)};
ncB=function(I,y,D,F){var R,O,w;return _.S(function(v){switch(v.nextAddress){case 1:return R={config:I,hashData:y,timestamp:F!==void 0?F:(0,_.m_)()},v.yield(f7_(D),2);case 2:return O=v.yieldResult,v.yield(O.clear("hotConfigStore"),3);case 3:return v.yield(O.put("hotConfigStore",R),4);case 4:return w=v.yieldResult,v.return(w)}})};
pFL=function(I,y,D,F,R){var O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:return O={config:I,hashData:y,configData:D,timestamp:R!==void 0?R:(0,_.m_)()},P.yield(f7_(F),2);case 2:return w=P.yieldResult,P.yield(w.clear("coldConfigStore"),3);case 3:return P.yield(w.put("coldConfigStore",O),4);case 4:return v=P.yieldResult,P.return(v)}})};
mPA=function(I){var y,D;return _.S(function(F){return F.nextAddress==1?F.yield(f7_(I),2):F.nextAddress!=3?(y=F.yieldResult,D=void 0,F.yield(_.El(y,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(R){return _.Mo(R.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(O){D=O.getValue()})}),3)):F.return(D)})};
M75=function(I){var y,D;return _.S(function(F){return F.nextAddress==1?F.yield(f7_(I),2):F.nextAddress!=3?(y=F.yieldResult,D=void 0,F.yield(_.El(y,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(R){return _.Mo(R.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(O){D=O.getValue()})}),3)):F.return(D)})};
zjC=function(){return _.S(function(I){return I.yield(GFo("ytGcfConfig"),0)})};
kFq=function(){return"INNERTUBE_API_KEY"in _.SF&&"INNERTUBE_API_VERSION"in _.SF};
_.zm=function(){return{innertubeApiKey:_.Pi("INNERTUBE_API_KEY"),innertubeApiVersion:_.Pi("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Pi("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Pi("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Pi("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Pi("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.KR("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.KR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Pi("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.i0e=function(I){var y={client:{hl:I.innertubeContextHostLanguage,gl:I.innertubeContextGeoLocation,clientName:I.innertubeContextClientName,clientVersion:I.innertubeContextClientVersion,configInfo:I.innertubeContextClientConfigInfo}};navigator.userAgent&&(y.client.userAgent=String(navigator.userAgent));var D=_.Ft.devicePixelRatio;D&&D!=1&&(y.client.screenDensityFloat=String(D));D=Ld_();D!==""&&(y.client.experimentsToken=D);D=J_A();D.length>0&&(y.request={internalExperimentFlags:D});dP_(I,void 0,y);
a75(void 0,y);cSA(void 0,y);WXt(I,void 0,y);CXt(void 0,y);_.l("start_client_gcf")&&BYS(void 0,y);_.Pi("DELEGATED_SESSION_ID")&&!_.l("pageid_as_header_web")&&(y.user={onBehalfOfUser:_.Pi("DELEGATED_SESSION_ID")});!_.l("fill_delegate_context_in_gel_killswitch")&&(I=_.Pi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y.user=Object.assign({},y.user,{serializedDelegationContext:I}));I=_.Pi("INNERTUBE_CONTEXT");var F;if(_.l("enable_persistent_device_token")&&(I==null?0:(F=I.client)==null?0:F.rolloutToken)){var R;
y.client.rolloutToken=I==null?void 0:(R=I.client)==null?void 0:R.rolloutToken}F=Object;R=F.assign;I=y.client;D={};for(var O=_.J(Object.entries(_.xf(_.Pi("DEVICE","")))),w=O.next();!w.done;w=O.next()){var v=_.J(w.value);w=v.next().value;v=v.next().value;w==="cbrand"?D.deviceMake=v:w==="cmodel"?D.deviceModel=v:w==="cbr"?D.browserName=v:w==="cbrver"?D.browserVersion=v:w==="cos"?D.osName=v:w==="cosver"?D.osVersion=v:w==="cplatform"&&(D.platform=v)}y.client=R.call(F,I,D);return y};
dP_=function(I,y,D){I=I.innertubeContextClientName;if(I==="WEB"||I==="MWEB"||I===1||I===2)if(y){D=_.kk(y,AS_,96)||new AS_;var F=$Pq();F=Object.keys(b0_).indexOf(F);F=F===-1?null:F;F!==null&&_.d1(D,3,F);_.mH(y,96,D)}else D&&(D.client.mainAppWebInfo=(F=D.client.mainAppWebInfo)!=null?F:{},D.client.mainAppWebInfo.webDisplayMode=$Pq())};
a75=function(I,y){var D=_.jF("yt.embedded_player.embed_url");D&&(I?(y=_.kk(I,H0L,7)||new H0L,_.BB(y,4,D),_.mH(I,7,y)):y&&(y.thirdParty={embedUrl:D}))};
cSA=function(I,y){var D;if(_.l("web_log_memory_total_kbytes")&&((D=_.Ft.navigator)==null?0:D.deviceMemory)){var F;D=(F=_.Ft.navigator)==null?void 0:F.deviceMemory;I?_.aC(I,95,xy(D*1E6)):y&&(y.client.memoryTotalKbytes=""+D*1E6)}};
WXt=function(I,y,D){if(I.appInstallData)if(y){var F;D=(F=_.kk(y,c1,62))!=null?F:new c1;_.BB(D,6,I.appInstallData);_.mH(y,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},D.client.configInfo.appInstallData=I.appInstallData)};
CXt=function(I,y){var D=_.BHt();D&&(I?_.d1(I,61,ejq[D]):y&&(y.client.connectionType=D));_.l("web_log_effective_connection_type")&&(D=A_q())&&(I?_.d1(I,94,TYL[D]):y&&(y.client.effectiveConnectionType=D))};
_.Z0q=function(I,y,D){D=D===void 0?{}:D;var F={};_.Pi("EOM_VISITOR_DATA")?F={"X-Goog-EOM-Visitor-Id":_.Pi("EOM_VISITOR_DATA")}:F={"X-Goog-Visitor-Id":D.visitorData||_.Pi("VISITOR_DATA","")};if(y&&y.includes("www.youtube-nocookie.com"))return F;y=D.authorization||_.Pi("AUTHORIZATION");y||(I?y="Bearer "+_.jF("gapi.auth.getToken")().access_token:(sqW.instance||(sqW.instance=new sqW),I=V7J(),_.l("pageid_as_header_web")||delete I["X-Goog-PageId"],F=Object.assign({},F,I)));y&&(F.Authorization=y);return F};
BYS=function(I,y){var D=gc5();if(D){var F=D.coldConfigData,R=D.coldHashData;D=D.hotHashData;if(I){var O;y=(O=_.kk(I,c1,62))!=null?O:new c1;F=_.BB(y,1,F);_.BB(F,3,R).setHotHashData(D);_.mH(I,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},F&&(y.client.configInfo.coldConfigData=F),R&&(y.client.configInfo.coldHashData=R),D&&(y.client.configInfo.hotHashData=D))}};
W1=function(I){for(var y=I.length;--y>=0;)I[y]=0};
INJ=function(I,y,D,F,R){this.static_tree=I;this.extra_bits=y;this.extra_base=D;this.elems=F;this.max_length=R;this.has_stree=I&&I.length};
ytt=function(I,y){this.dyn_tree=I;this.max_code=0;this.stat_desc=y};
Cv=function(I,y){I.pending_buf[I.pending++]=y&255;I.pending_buf[I.pending++]=y>>>8&255};
B1=function(I,y,D){I.bi_valid>16-D?(I.bi_buf|=y<<I.bi_valid&65535,Cv(I,I.bi_buf),I.bi_buf=y>>16-I.bi_valid,I.bi_valid+=D-16):(I.bi_buf|=y<<I.bi_valid&65535,I.bi_valid+=D)};
iZ=function(I,y,D){B1(I,D[y*2],D[y*2+1])};
DXA=function(I,y){var D=0;do D|=I&1,I>>>=1,D<<=1;while(--y>0);return D>>>1};
FhS=function(I,y,D){var F=Array(16),R=0,O;for(O=1;O<=15;O++)F[O]=R=R+D[O-1]<<1;for(D=0;D<=y;D++)R=I[D*2+1],R!==0&&(I[D*2]=DXA(F[R]++,R))};
R6_=function(I){var y;for(y=0;y<286;y++)I.dyn_ltree[y*2]=0;for(y=0;y<30;y++)I.dyn_dtree[y*2]=0;for(y=0;y<19;y++)I.bl_tree[y*2]=0;I.dyn_ltree[512]=1;I.opt_len=I.static_len=0;I.last_lit=I.matches=0};
OgA=function(I){I.bi_valid>8?Cv(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf);I.bi_buf=0;I.bi_valid=0};
Lh5=function(I,y,D){OgA(I);Cv(I,D);Cv(I,~D);A0.arraySet(I.pending_buf,I.window,y,D,I.pending);I.pending+=D};
JtB=function(I,y,D,F){var R=y*2,O=D*2;return I[R]<I[O]||I[R]===I[O]&&F[y]<=F[D]};
wpC=function(I,y,D){for(var F=I.heap[D],R=D<<1;R<=I.heap_len;){R<I.heap_len&&JtB(y,I.heap[R+1],I.heap[R],I.depth)&&R++;if(JtB(y,F,I.heap[R],I.depth))break;I.heap[D]=I.heap[R];D=R;R<<=1}I.heap[D]=F};
KhA=function(I,y,D){var F=0;if(I.last_lit!==0){do{var R=I.pending_buf[I.d_buf+F*2]<<8|I.pending_buf[I.d_buf+F*2+1];var O=I.pending_buf[I.l_buf+F];F++;if(R===0)iZ(I,O,y);else{var w=$k[O];iZ(I,w+256+1,y);var v=veS[w];v!==0&&(O-=SMJ[w],B1(I,O,v));R--;w=R<256?bZ[R]:bZ[256+(R>>>7)];iZ(I,w,D);v=tvL[w];v!==0&&(R-=PIo[w],B1(I,R,v))}}while(F<I.last_lit)}iZ(I,256,y)};
UXH=function(I,y){var D=y.dyn_tree,F=y.stat_desc.static_tree,R=y.stat_desc.has_stree,O=y.stat_desc.elems,w,v=-1;I.heap_len=0;I.heap_max=573;for(w=0;w<O;w++)D[w*2]!==0?(I.heap[++I.heap_len]=v=w,I.depth[w]=0):D[w*2+1]=0;for(;I.heap_len<2;){var P=I.heap[++I.heap_len]=v<2?++v:0;D[P*2]=1;I.depth[P]=0;I.opt_len--;R&&(I.static_len-=F[P*2+1])}y.max_code=v;for(w=I.heap_len>>1;w>=1;w--)wpC(I,D,w);P=O;do w=I.heap[1],I.heap[1]=I.heap[I.heap_len--],wpC(I,D,1),F=I.heap[1],I.heap[--I.heap_max]=w,I.heap[--I.heap_max]=
F,D[P*2]=D[w*2]+D[F*2],I.depth[P]=(I.depth[w]>=I.depth[F]?I.depth[w]:I.depth[F])+1,D[w*2+1]=D[F*2+1]=P,I.heap[1]=P++,wpC(I,D,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1];w=y.dyn_tree;P=y.max_code;F=y.stat_desc.static_tree;R=y.stat_desc.has_stree;O=y.stat_desc.extra_bits;var K=y.stat_desc.extra_base,r=y.stat_desc.max_length,N,h=0;for(N=0;N<=15;N++)I.bl_count[N]=0;w[I.heap[I.heap_max]*2+1]=0;for(y=I.heap_max+1;y<573;y++){var x=I.heap[y];N=w[w[x*2+1]*2+1]+1;N>r&&(N=r,h++);w[x*2+1]=N;if(!(x>
P)){I.bl_count[N]++;var q=0;x>=K&&(q=O[x-K]);var X=w[x*2];I.opt_len+=X*(N+q);R&&(I.static_len+=X*(F[x*2+1]+q))}}if(h!==0){do{for(N=r-1;I.bl_count[N]===0;)N--;I.bl_count[N]--;I.bl_count[N+1]+=2;I.bl_count[r]--;h-=2}while(h>0);for(N=r;N!==0;N--)for(x=I.bl_count[N];x!==0;)F=I.heap[--y],F>P||(w[F*2+1]!==N&&(I.opt_len+=(N-w[F*2+1])*w[F*2],w[F*2+1]=N),x--)}FhS(D,v,I.bl_count)};
rtW=function(I,y,D){var F,R=-1,O=y[1],w=0,v=7,P=4;O===0&&(v=138,P=3);y[(D+1)*2+1]=65535;for(F=0;F<=D;F++){var K=O;O=y[(F+1)*2+1];++w<v&&K===O||(w<P?I.bl_tree[K*2]+=w:K!==0?(K!==R&&I.bl_tree[K*2]++,I.bl_tree[32]++):w<=10?I.bl_tree[34]++:I.bl_tree[36]++,w=0,R=K,O===0?(v=138,P=3):K===O?(v=6,P=3):(v=7,P=4))}};
j0_=function(I,y,D){var F,R=-1,O=y[1],w=0,v=7,P=4;O===0&&(v=138,P=3);for(F=0;F<=D;F++){var K=O;O=y[(F+1)*2+1];if(!(++w<v&&K===O)){if(w<P){do iZ(I,K,I.bl_tree);while(--w!==0)}else K!==0?(K!==R&&(iZ(I,K,I.bl_tree),w--),iZ(I,16,I.bl_tree),B1(I,w-3,2)):w<=10?(iZ(I,17,I.bl_tree),B1(I,w-3,3)):(iZ(I,18,I.bl_tree),B1(I,w-11,7));w=0;R=K;O===0?(v=138,P=3):K===O?(v=6,P=3):(v=7,P=4)}}};
oe5=function(I){var y=4093624447,D;for(D=0;D<=31;D++,y>>>=1)if(y&1&&I.dyn_ltree[D*2]!==0)return 0;if(I.dyn_ltree[18]!==0||I.dyn_ltree[20]!==0||I.dyn_ltree[26]!==0)return 1;for(D=32;D<256;D++)if(I.dyn_ltree[D*2]!==0)return 1;return 0};
H1=function(I,y,D){I.pending_buf[I.d_buf+I.last_lit*2]=y>>>8&255;I.pending_buf[I.d_buf+I.last_lit*2+1]=y&255;I.pending_buf[I.l_buf+I.last_lit]=D&255;I.last_lit++;y===0?I.dyn_ltree[D*2]++:(I.matches++,y--,I.dyn_ltree[($k[D]+256+1)*2]++,I.dyn_dtree[(y<256?bZ[y]:bZ[256+(y>>>7)])*2]++);return I.last_lit===I.lit_bufsize-1};
Tm=function(I,y){I.msg=eA[y];return y};
sl=function(I){for(var y=I.length;--y>=0;)I[y]=0};
Vx=function(I){var y=I.state,D=y.pending;D>I.avail_out&&(D=I.avail_out);D!==0&&(A0.arraySet(I.output,y.pending_buf,y.pending_out,D,I.next_out),I.next_out+=D,y.pending_out+=D,I.total_out+=D,I.avail_out-=D,y.pending-=D,y.pending===0&&(y.pending_out=0))};
Ir=function(I,y){var D=I.block_start>=0?I.block_start:-1,F=I.strstart-I.block_start,R=0;if(I.level>0){I.strm.data_type===2&&(I.strm.data_type=oe5(I));UXH(I,I.l_desc);UXH(I,I.d_desc);rtW(I,I.dyn_ltree,I.l_desc.max_code);rtW(I,I.dyn_dtree,I.d_desc.max_code);UXH(I,I.bl_desc);for(R=18;R>=3&&I.bl_tree[N4t[R]*2+1]===0;R--);I.opt_len+=3*(R+1)+5+5+4;var O=I.opt_len+3+7>>>3;var w=I.static_len+3+7>>>3;w<=O&&(O=w)}else O=w=F+5;if(F+4<=O&&D!==-1)B1(I,y?1:0,3),Lh5(I,D,F);else if(I.strategy===4||w===O)B1(I,2+(y?
1:0),3),KhA(I,ZT,g1);else{B1(I,4+(y?1:0),3);D=I.l_desc.max_code+1;F=I.d_desc.max_code+1;R+=1;B1(I,D-257,5);B1(I,F-1,5);B1(I,R-4,4);for(O=0;O<R;O++)B1(I,I.bl_tree[N4t[O]*2+1],3);j0_(I,I.dyn_ltree,D-1);j0_(I,I.dyn_dtree,F-1);KhA(I,I.dyn_ltree,I.dyn_dtree)}R6_(I);y&&OgA(I);I.block_start=I.strstart;Vx(I.strm)};
yq=function(I,y){I.pending_buf[I.pending++]=y};
DJ=function(I,y){I.pending_buf[I.pending++]=y>>>8&255;I.pending_buf[I.pending++]=y&255};
h6_=function(I,y){var D=I.max_chain_length,F=I.strstart,R=I.prev_length,O=I.nice_match,w=I.strstart>I.w_size-262?I.strstart-(I.w_size-262):0,v=I.window,P=I.w_mask,K=I.prev,r=I.strstart+258,N=v[F+R-1],h=v[F+R];I.prev_length>=I.good_match&&(D>>=2);O>I.lookahead&&(O=I.lookahead);do{var x=y;if(v[x+R]===h&&v[x+R-1]===N&&v[x]===v[F]&&v[++x]===v[F+1]){F+=2;for(x++;v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&v[++F]===v[++x]&&F<r;);
x=258-(r-F);F=r-258;if(x>R){I.match_start=y;R=x;if(x>=O)break;N=v[F+R-1];h=v[F+R]}}}while((y=K[y&P])>w&&--D!==0);return R<=I.lookahead?R:I.lookahead};
Rr=function(I){var y=I.w_size,D;do{var F=I.window_size-I.lookahead-I.strstart;if(I.strstart>=y+(y-262)){A0.arraySet(I.window,I.window,y,y,0);I.match_start-=y;I.strstart-=y;I.block_start-=y;var R=D=I.hash_size;do{var O=I.head[--R];I.head[R]=O>=y?O-y:0}while(--D);R=D=y;do O=I.prev[--R],I.prev[R]=O>=y?O-y:0;while(--D);F+=y}if(I.strm.avail_in===0)break;R=I.strm;D=I.window;O=I.strstart+I.lookahead;var w=R.avail_in;w>F&&(w=F);w===0?D=0:(R.avail_in-=w,A0.arraySet(D,R.input,R.next_in,w,O),R.state.wrap===
1?R.adler=xXo(R.adler,D,w,O):R.state.wrap===2&&(R.adler=Fg(R.adler,D,w,O)),R.next_in+=w,R.total_in+=w,D=w);I.lookahead+=D;if(I.lookahead+I.insert>=3)for(F=I.strstart-I.insert,I.ins_h=I.window[F],I.ins_h=(I.ins_h<<I.hash_shift^I.window[F+1])&I.hash_mask;I.insert&&!(I.ins_h=(I.ins_h<<I.hash_shift^I.window[F+3-1])&I.hash_mask,I.prev[F&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=F,F++,I.insert--,I.lookahead+I.insert<3););}while(I.lookahead<262&&I.strm.avail_in!==0)};
lN_=function(I,y){for(var D;;){if(I.lookahead<262){Rr(I);if(I.lookahead<262&&y===0)return 1;if(I.lookahead===0)break}D=0;I.lookahead>=3&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,D=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);D!==0&&I.strstart-D<=I.w_size-262&&(I.match_length=h6_(I,D));if(I.match_length>=3)if(D=H1(I,I.strstart-I.match_start,I.match_length-3),I.lookahead-=I.match_length,I.match_length<=I.max_lazy_match&&I.lookahead>=3){I.match_length--;
do I.strstart++,I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart;while(--I.match_length!==0);I.strstart++}else I.strstart+=I.match_length,I.match_length=0,I.ins_h=I.window[I.strstart],I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+1])&I.hash_mask;else D=H1(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++;if(D&&(Ir(I,!1),I.strm.avail_out===0))return 1}I.insert=I.strstart<2?I.strstart:2;return y===4?(Ir(I,
!0),I.strm.avail_out===0?3:4):I.last_lit&&(Ir(I,!1),I.strm.avail_out===0)?1:2};
O6=function(I,y){for(var D,F;;){if(I.lookahead<262){Rr(I);if(I.lookahead<262&&y===0)return 1;if(I.lookahead===0)break}D=0;I.lookahead>=3&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,D=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);I.prev_length=I.match_length;I.prev_match=I.match_start;I.match_length=2;D!==0&&I.prev_length<I.max_lazy_match&&I.strstart-D<=I.w_size-262&&(I.match_length=h6_(I,D),I.match_length<=5&&(I.strategy===1||I.match_length===3&&
I.strstart-I.match_start>4096)&&(I.match_length=2));if(I.prev_length>=3&&I.match_length<=I.prev_length){F=I.strstart+I.lookahead-3;D=H1(I,I.strstart-1-I.prev_match,I.prev_length-3);I.lookahead-=I.prev_length-1;I.prev_length-=2;do++I.strstart<=F&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);while(--I.prev_length!==0);I.match_available=0;I.match_length=2;I.strstart++;if(D&&(Ir(I,!1),I.strm.avail_out===0))return 1}else if(I.match_available){if((D=
H1(I,0,I.window[I.strstart-1]))&&Ir(I,!1),I.strstart++,I.lookahead--,I.strm.avail_out===0)return 1}else I.match_available=1,I.strstart++,I.lookahead--}I.match_available&&(H1(I,0,I.window[I.strstart-1]),I.match_available=0);I.insert=I.strstart<2?I.strstart:2;return y===4?(Ir(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Ir(I,!1),I.strm.avail_out===0)?1:2};
uBL=function(I,y){for(var D,F,R,O=I.window;;){if(I.lookahead<=258){Rr(I);if(I.lookahead<=258&&y===0)return 1;if(I.lookahead===0)break}I.match_length=0;if(I.lookahead>=3&&I.strstart>0&&(F=I.strstart-1,D=O[F],D===O[++F]&&D===O[++F]&&D===O[++F])){for(R=I.strstart+258;D===O[++F]&&D===O[++F]&&D===O[++F]&&D===O[++F]&&D===O[++F]&&D===O[++F]&&D===O[++F]&&D===O[++F]&&F<R;);I.match_length=258-(R-F);I.match_length>I.lookahead&&(I.match_length=I.lookahead)}I.match_length>=3?(D=H1(I,1,I.match_length-3),I.lookahead-=
I.match_length,I.strstart+=I.match_length,I.match_length=0):(D=H1(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++);if(D&&(Ir(I,!1),I.strm.avail_out===0))return 1}I.insert=0;return y===4?(Ir(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Ir(I,!1),I.strm.avail_out===0)?1:2};
qM4=function(I,y){for(var D;;){if(I.lookahead===0&&(Rr(I),I.lookahead===0)){if(y===0)return 1;break}I.match_length=0;D=H1(I,0,I.window[I.strstart]);I.lookahead--;I.strstart++;if(D&&(Ir(I,!1),I.strm.avail_out===0))return 1}I.insert=0;return y===4?(Ir(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Ir(I,!1),I.strm.avail_out===0)?1:2};
Lu=function(I,y,D,F,R){this.good_length=I;this.max_lazy=y;this.nice_length=D;this.max_chain=F;this.func=R};
EeL=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 A0.Buf16(1146);this.dyn_dtree=new A0.Buf16(122);this.bl_tree=new A0.Buf16(78);sl(this.dyn_ltree);sl(this.dyn_dtree);sl(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new A0.Buf16(16);this.heap=new A0.Buf16(573);sl(this.heap);this.heap_max=this.heap_len=0;this.depth=new A0.Buf16(573);sl(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};
G4J=function(I,y){if(!I||!I.state||y>5||y<0)return I?Tm(I,-2):-2;var D=I.state;if(!I.output||!I.input&&I.avail_in!==0||D.status===666&&y!==4)return Tm(I,I.avail_out===0?-5:-2);D.strm=I;var F=D.last_flush;D.last_flush=y;if(D.status===42)if(D.wrap===2)I.adler=0,yq(D,31),yq(D,139),yq(D,8),D.gzhead?(yq(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)),yq(D,D.gzhead.time&255),yq(D,D.gzhead.time>>8&255),yq(D,D.gzhead.time>>16&255),yq(D,D.gzhead.time>>
24&255),yq(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),yq(D,D.gzhead.os&255),D.gzhead.extra&&D.gzhead.extra.length&&(yq(D,D.gzhead.extra.length&255),yq(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(I.adler=Fg(I.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(yq(D,0),yq(D,0),yq(D,0),yq(D,0),yq(D,0),yq(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),yq(D,3),D.status=113);else{var R=8+(D.w_bits-8<<4)<<8;R|=(D.strategy>=2||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6;D.strstart!==0&&(R|=
32);D.status=113;DJ(D,R+(31-R%31));D.strstart!==0&&(DJ(D,I.adler>>>16),DJ(D,I.adler&65535));I.adler=1}if(D.status===69)if(D.gzhead.extra){for(R=D.pending;D.gzindex<(D.gzhead.extra.length&65535)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R)),Vx(I),R=D.pending,D.pending!==D.pending_buf_size));)yq(D,D.gzhead.extra[D.gzindex]&255),D.gzindex++;D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R));D.gzindex===D.gzhead.extra.length&&
(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R)),Vx(I),R=D.pending,D.pending===D.pending_buf_size)){var O=1;break}O=D.gzindex<D.gzhead.name.length?D.gzhead.name.charCodeAt(D.gzindex++)&255:0;yq(D,O)}while(O!==0);D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R));O===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===
91)if(D.gzhead.comment){R=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R)),Vx(I),R=D.pending,D.pending===D.pending_buf_size)){O=1;break}O=D.gzindex<D.gzhead.comment.length?D.gzhead.comment.charCodeAt(D.gzindex++)&255:0;yq(D,O)}while(O!==0);D.gzhead.hcrc&&D.pending>R&&(I.adler=Fg(I.adler,D.pending_buf,D.pending-R,R));O===0&&(D.status=103)}else D.status=103;D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&Vx(I),
D.pending+2<=D.pending_buf_size&&(yq(D,I.adler&255),yq(D,I.adler>>8&255),I.adler=0,D.status=113)):D.status=113);if(D.pending!==0){if(Vx(I),I.avail_out===0)return D.last_flush=-1,0}else if(I.avail_in===0&&(y<<1)-(y>4?9:0)<=(F<<1)-(F>4?9:0)&&y!==4)return Tm(I,-5);if(D.status===666&&I.avail_in!==0)return Tm(I,-5);if(I.avail_in!==0||D.lookahead!==0||y!==0&&D.status!==666){F=D.strategy===2?qM4(D,y):D.strategy===3?uBL(D,y):JO[D.level].func(D,y);if(F===3||F===4)D.status=666;if(F===1||F===3)return I.avail_out===
0&&(D.last_flush=-1),0;if(F===2&&(y===1?(B1(D,2,3),iZ(D,256,ZT),D.bi_valid===16?(Cv(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)):y!==5&&(B1(D,0,3),Lh5(D,0,0),y===3&&(sl(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),Vx(I),I.avail_out===0))return D.last_flush=-1,0}if(y!==4)return 0;if(D.wrap<=0)return 1;D.wrap===2?(yq(D,I.adler&255),yq(D,I.adler>>8&255),yq(D,I.adler>>16&255),yq(D,I.adler>>24&255),yq(D,
I.total_in&255),yq(D,I.total_in>>8&255),yq(D,I.total_in>>16&255),yq(D,I.total_in>>24&255)):(DJ(D,I.adler>>>16),DJ(D,I.adler&65535));Vx(I);D.wrap>0&&(D.wrap=-D.wrap);return D.pending!==0?0:1};
Xpt=function(I){if(!(this instanceof Xpt))return new Xpt(I);I=this.options=A0.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},I||{});I.raw&&I.windowBits>0?I.windowBits=-I.windowBits:I.gzip&&I.windowBits>0&&I.windowBits<16&&(I.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Q0J;this.strm.avail_out=0;var y=this.strm;var D=I.level,F=I.method,R=I.windowBits,O=I.memLevel,w=I.strategy;if(y){var v=1;D===-1&&(D=6);R<0?(v=0,R=-R):R>15&&
(v=2,R-=16);if(O<1||O>9||F!==8||R<8||R>15||D<0||D>9||w<0||w>4)y=Tm(y,-2);else{R===8&&(R=9);var P=new EeL;y.state=P;P.strm=y;P.wrap=v;P.gzhead=null;P.w_bits=R;P.w_size=1<<P.w_bits;P.w_mask=P.w_size-1;P.hash_bits=O+7;P.hash_size=1<<P.hash_bits;P.hash_mask=P.hash_size-1;P.hash_shift=~~((P.hash_bits+3-1)/3);P.window=new A0.Buf8(P.w_size*2);P.head=new A0.Buf16(P.hash_size);P.prev=new A0.Buf16(P.w_size);P.lit_bufsize=1<<O+6;P.pending_buf_size=P.lit_bufsize*4;P.pending_buf=new A0.Buf8(P.pending_buf_size);
P.d_buf=P.lit_bufsize;P.l_buf=3*P.lit_bufsize;P.level=D;P.strategy=w;P.method=F;if(y&&y.state){y.total_in=y.total_out=0;y.data_type=2;D=y.state;D.pending=0;D.pending_out=0;D.wrap<0&&(D.wrap=-D.wrap);D.status=D.wrap?42:113;y.adler=D.wrap===2?0:1;D.last_flush=0;if(!YM_){F=Array(16);for(O=w=0;O<28;O++)for(SMJ[O]=w,R=0;R<1<<veS[O];R++)$k[w++]=O;$k[w-1]=O;for(O=w=0;O<16;O++)for(PIo[O]=w,R=0;R<1<<tvL[O];R++)bZ[w++]=O;for(w>>=7;O<30;O++)for(PIo[O]=w<<7,R=0;R<1<<tvL[O]-7;R++)bZ[256+w++]=O;for(R=0;R<=15;R++)F[R]=
0;for(R=0;R<=143;)ZT[R*2+1]=8,R++,F[8]++;for(;R<=255;)ZT[R*2+1]=9,R++,F[9]++;for(;R<=279;)ZT[R*2+1]=7,R++,F[7]++;for(;R<=287;)ZT[R*2+1]=8,R++,F[8]++;FhS(ZT,287,F);for(R=0;R<30;R++)g1[R*2+1]=5,g1[R*2]=DXA(R,5);fNA=new INJ(ZT,veS,257,286,15);neJ=new INJ(g1,tvL,0,30,15);ppJ=new INJ([],mXe,0,19,7);YM_=!0}D.l_desc=new ytt(D.dyn_ltree,fNA);D.d_desc=new ytt(D.dyn_dtree,neJ);D.bl_desc=new ytt(D.bl_tree,ppJ);D.bi_buf=0;D.bi_valid=0;R6_(D);D=0}else D=Tm(y,-2);D===0&&(y=y.state,y.window_size=2*y.w_size,sl(y.head),
y.max_lazy_match=JO[y.level].max_lazy,y.good_match=JO[y.level].good_length,y.nice_match=JO[y.level].nice_length,y.max_chain_length=JO[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=2,y.match_available=0,y.ins_h=0);y=D}}else y=-2;if(y!==0)throw Error(eA[y]);I.header&&(y=this.strm)&&y.state&&y.state.wrap===2&&(y.state.gzhead=I.header);if(I.dictionary){var K;typeof I.dictionary==="string"?K=MvJ(I.dictionary):z6q.call(I.dictionary)==="[object ArrayBuffer]"?
K=new Uint8Array(I.dictionary):K=I.dictionary;I=this.strm;O=K;w=O.length;if(I&&I.state)if(K=I.state,y=K.wrap,y===2||y===1&&K.status!==42||K.lookahead)y=-2;else{y===1&&(I.adler=xXo(I.adler,O,w,0));K.wrap=0;w>=K.w_size&&(y===0&&(sl(K.head),K.strstart=0,K.block_start=0,K.insert=0),D=new A0.Buf8(K.w_size),A0.arraySet(D,O,w-K.w_size,K.w_size,0),O=D,w=K.w_size);D=I.avail_in;F=I.next_in;R=I.input;I.avail_in=w;I.next_in=0;I.input=O;for(Rr(K);K.lookahead>=3;){O=K.strstart;w=K.lookahead-2;do K.ins_h=(K.ins_h<<
K.hash_shift^K.window[O+3-1])&K.hash_mask,K.prev[O&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=O,O++;while(--w);K.strstart=O;K.lookahead=2;Rr(K)}K.strstart+=K.lookahead;K.block_start=K.strstart;K.insert=K.lookahead;K.lookahead=0;K.match_length=K.prev_length=2;K.match_available=0;I.next_in=F;I.input=R;I.avail_in=D;K.wrap=y;y=0}else y=-2;if(y!==0)throw Error(eA[y]);this._dict_set=!0}};
k4A=function(I,y){y=y||{};y.gzip=!0;y=new Xpt(y);y.push(I,!0);if(y.err)throw y.msg||eA[y.err];return y.result};
aNH=function(I,y){var D=dX4();D&&D.publish.call(D,I.toString(),I,y)};
ig5=function(I,y,D){var F=dX4();if(!F)return 0;var R=F.subscribe(I.toString(),function(O,w){var v=_.jF("ytPubsub2Pubsub2SkipSubKey");v&&v==R||(v=function(){if(ctH[R])try{if(w&&I instanceof WhH&&I!=O)try{var P=I.dataClass,K=w;if(!K.args||!K.version)throw Error("bd");try{if(!P.version_){var r=new P;P.version_=r.version}var N=P.version_}catch(h){}if(!N||K.version!=N)throw Error("cd");try{w=Reflect.construct(P,_.C5(K.args))}catch(h){throw h.message="yt.pubsub2.Data.deserialize(): "+h.message,h;}}catch(h){throw h.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+I.toString()+": "+h.message,h;}y.call(D||window,w)}catch(h){_.UJ(h)}},CIH[I.toString()]?_.jF("yt.scheduler.instance")?_.w2.addLowPriorityJob(v):_.Wi(v,0):v())});
ctH[R]=!0;B4W[I.toString()]||(B4W[I.toString()]=[]);B4W[I.toString()].push(R);return R};
HgH=function(){var I=At4,y=ig5($XC,function(D){I.apply(void 0,arguments);bgS(y)});
return y};
bgS=function(I){var y=dX4();y&&(typeof I==="number"&&(I=[I]),_.hG(I,function(D){y.unsubscribeByKey(D);delete ctH[D]}))};
dX4=function(){return _.jF("ytPubsub2Pubsub2Instance")};
e6S=function(I,y,D){D=D===void 0?{sampleRate:.1}:D;Math.random()<Math.min(.02,D.sampleRate/100)&&aNH("meta_logging_csi_event",{timerName:I,timelineData:y})};
_.T4A=function(I){return I?(I=I.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.tW(I):null:null};
_.vP=function(I){return I?(I=I.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.c$(I):null:null};
Vv5=function(){s0q||(s0q=_.vP(_.Pi("WORKER_SERIALIZATION_URL")));return s0q||void 0};
_.get=function(){var I=Vv5();Zg4||I===void 0||(Zg4=MY4(I));return Zg4};
_.IdA=function(){return typeof Worker==="function"&&Vv5()?!0:!1};
_.R0S=function(){if(_.IdA()&&!yCt){var I=function(D){D=D.data;if(D.op==="gzippedGelBatch"){var F=D4L.get(D.key);F&&(FZC(D.gzippedBatch,F.latencyPayload,F.url,F.options,F.sendFn),D4L.delete(D.key))}},y=_.get();
y&&(y.addEventListener("message",I),y.onerror=function(){D4L.clear()},yCt=!0)}};
tE_=function(I,y,D,F,R){R=R===void 0?!1:R;var O={startTime:(0,_.m_)(),ticks:{},infos:{}};if(Sn)try{var w=OQo(y);if(w!=null&&(w>LZe||w<JCt))F(I,D);else{if(_.l("gzip_gel_with_worker")&&(_.l("initial_gzip_use_main_thread")&&!w4q||!_.l("initial_gzip_use_main_thread"))){yCt||_.R0S();var v=_.get();if(v&&!R){D4L.set(vEt,{latencyPayload:O,url:I,options:D,sendFn:F});v.postMessage({op:"gelBatchToGzip",serializedBatch:y,key:vEt});vEt++;return}}var P=k4A(SvH(y));FZC(P,O,I,D,F)}}catch(K){_.o8(K),F(I,D)}else F(I,
D)};
FZC=function(I,y,D,F,R){w4q=!1;var O=(0,_.m_)();y.ticks.gelc=O;tO++;_.l("disable_compression_due_to_performance_degredation")&&O-y.startTime>=PVq&&(KZq++,Sn=!1);U4_(y);F.headers||(F.headers={});F.headers["Content-Encoding"]="gzip";F.postBody=I;F.postParams=void 0;R(D,F)};
j6_=function(I){var y=y===void 0?!1:y;var D=D===void 0?!1:D;var F=(0,_.m_)(),R={startTime:F,ticks:{},infos:{}},O=y?_.jF("yt.logging.gzipForFetch",!1):!0;if(Sn&&O){if(!I.body)return I;try{var w=D?I.body:typeof I.body==="string"?I.body:JSON.stringify(I.body);O=w;if(!D&&typeof w==="string"){var v=OQo(w);if(v!=null&&(v>LZe||v<JCt))return I;D=y?{level:1}:void 0;O=k4A(SvH(w),D);var P=(0,_.m_)();R.ticks.gelc=P;if(y){tO++;if((_.l("disable_compression_due_to_performance_degredation")||_.l("disable_compression_due_to_performance_degradation_lr"))&&
P-F>=PVq)if(KZq++,_.l("abandon_compression_after_N_slow_zips_lr")){y=KZq/tO;var K=rCJ/_.kf("compression_disable_point");tO>0&&tO%_.kf("compression_disable_point")===0&&y>=K&&(Sn=!1)}else Sn=!1;U4_(R)}}I.headers=Object.assign({},{"Content-Encoding":"gzip"},I.headers||{});I.body=O;return I}catch(r){return _.o8(r),I}}else return I};
OQo=function(I){try{return(new Blob(I.split(""))).size}catch(y){return _.o8(y),null}};
U4_=function(I){_.l("gel_compression_csi_killswitch")||!_.l("log_gel_compression_latency")&&!_.l("log_gel_compression_latency_lr")||e6S("gel_compression",I,{sampleRate:.1})};
oEL=function(){this.blockSize=-1};
PP=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var I=1;I<this.blockSize;++I)this.pad_[I]=0;this.total_=this.inbuf_=0;this.reset()};
h0H=function(I){I=Object.assign({},I);delete I.Authorization;var y=_.NyC();if(y){var D=new PP;D.update(_.Pi("INNERTUBE_API_KEY"));D.update(y);I.hash=_.VB(D.digest(),3)}return I};
U6=function(){x4B||(x4B=new _.Ku("yt.innertube"));return x4B};
lde=function(I,y,D,F){if(F)return null;F=U6().get("nextId",!0)||1;var R=U6().get("requests",!0)||{};R[F]={method:I,request:y,authState:h0H(D),requestTime:Math.round((0,_.m_)())};U6().set("nextId",F+1,86400,!0);U6().set("requests",R,86400,!0);return F};
uf4=function(I){var y=U6().get("requests",!0)||{};delete y[I];U6().set("requests",y,86400,!0)};
EEH=function(I){var y=U6().get("requests",!0);if(y){for(var D in y){var F=y[D];if(!(Math.round((0,_.m_)())-F.requestTime<6E4)){var R=F.authState,O=h0H(_.Z0q(!1));_.e$.equals(R,O)&&(R=F.request,"requestTimeMs"in R&&(R.requestTimeMs=Math.round((0,_.m_)())),qvo(I,F.method,R,{}));delete y[D]}}U6().set("requests",y,86400,!0)}};
GvW=function(I){var y;return(I=I==null?void 0:(y=I.error)==null?void 0:y.code)&&I>=400&&I<=599?!1:!0};
X4H=function(I){var y;I=I==null?void 0:(y=I.error)==null?void 0:y.code;return!(I!==400&&I!==415)};
Yv5=function(){if(Q6J)return Q6J();var I={};Q6J=pv("LogsDatabaseV2",{objectStores:(I.LogsRequestsStore={addedAtVersion:2},I),shared:!1,upgrade:function(y,D,F){D(2)&&r2(y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});D(3);D(5)&&(F=F.objectStore("LogsRequestsStore"),F.JSC$10958_wrapped.indexNames.contains("newRequest")&&F.JSC$10958_wrapped.deleteIndex("newRequest"),jn(F,"newRequestV2",["status","interface","timestamp"]));D(7)&&y.JSC$10943_wrapped.objectStoreNames.contains("sapisid")&&y.JSC$10943_wrapped.deleteObjectStore("sapisid");
D(9)&&y.JSC$10943_wrapped.objectStoreNames.contains("SWHealthLog")&&y.JSC$10943_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Q6J()};
or=function(I){return _.qo(Yv5(),I)};
nEq=function(I,y){var D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D={startTime:(0,_.m_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},w.yield(or(y),2);if(w.nextAddress!=3)return F=w.yieldResult,R=Object.assign({},I,{options:JSON.parse(JSON.stringify(I.options)),interface:_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),w.yield(F.put("LogsRequestsStore",R),3);O=w.yieldResult;D.ticks.tc=(0,_.m_)();fde(D);return w.return(O)})};
p4L=function(I,y){var D,F,R,O,w,v,P,K,r;return _.S(function(N){if(N.nextAddress==1)return D={startTime:(0,_.m_)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},N.yield(or(y),2);if(N.nextAddress!=3)return F=N.yieldResult,R=_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME",0),O=[I,R,0],w=[I,R,(0,_.m_)()],v=IDBKeyRange.bound(O,w),P="prev",_.l("use_fifo_for_networkless")&&(P="next"),K=void 0,r=I==="NEW"?"readwrite":"readonly",_.l("use_readonly_for_get_most_recent_by_status_killswitch")&&(r="readwrite"),
N.yield(_.El(F,["LogsRequestsStore"],{mode:r,enableRetries:!0},function(h){return _.Mo(h.objectStore("LogsRequestsStore").index("newRequestV2"),{query:v,direction:P},function(x){x.getValue()&&(K=x.getValue(),I==="NEW"&&(K.status="QUEUED",x.update(K)))})}),3);
D.ticks.tc=(0,_.m_)();fde(D);return N.return(K)})};
m4H=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)return F.yield(or(y),2);D=F.yieldResult;return F.return(_.El(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(R){var O=R.objectStore("LogsRequestsStore");return O.get(I).then(function(w){if(w)return w.status="QUEUED",O.put(w).then(function(){return w})})}))})};
MEq=function(I,y,D,F){D=D===void 0?!0:D;var R;return _.S(function(O){if(O.nextAddress==1)return O.yield(or(y),2);R=O.yieldResult;return O.return(_.El(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){var v=w.objectStore("LogsRequestsStore");return v.get(I).then(function(P){return P?(P.status="NEW",D&&(P.sendCount+=1),F!==void 0&&(P.options.compress=F),v.put(P).then(function(){return P})):jA.resolve(void 0)})}))})};
z0S=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)return F.yield(or(y),2);D=F.yieldResult;return F.return(D.delete("LogsRequestsStore",I))})};
kv4=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(or(I),2);y=F.yieldResult;D=(0,_.m_)()-2592E6;return F.yield(_.El(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(R){return XG(R.objectStore("LogsRequestsStore"),{},function(O){if(O.getValue().timestamp<=D)return O.delete().then(function(){return O.continue()})})}),0)})};
d4t=function(){_.S(function(I){return I.yield(GFo("LogsDatabaseV2"),0)})};
fde=function(I){_.l("nwl_csi_killswitch")||e6S("networkless_performance",I,{sampleRate:1})};
_.cCJ=function(I){return _.qo(adC(),I)};
WZ4=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(_.cCJ(I),2);y=F.yieldResult;D=(0,_.m_)()-2592E6;return F.yield(_.El(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(R){return XG(R.objectStore("SWHealthLog"),{},function(O){if(O.getValue().timestamp<=D)return O.delete().then(function(){return O.continue()})})}),0)})};
CVH=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(_.cCJ(I),2);y=D.yieldResult;return D.yield(y.clear("SWHealthLog"),0)})};
_.Nw=function(I,y,D,F,R,O,w){R=R===void 0?"":R;O=O===void 0?!1:O;w=w===void 0?!1:w;if(I)if(D&&!P1("cobalt"))_.o8(new _.g6("Legacy referrer-scrubbed ping detected")),I&&ByL(I,void 0,{scrubReferrer:!0});else if(R)r_B(I,y,"POST",R,F);else if(_.Pi("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||F||w)r_B(I,y,"GET","",F,void 0,O,w);else{b:{try{c:{var v=new iQA({url:I});if(v.urlParamValues_.dsh==="1")var P=null;else{var K=v.urlParamValues_.ae;if(K==="1"){var r=v.urlParamValues_.adurl;if(r)try{P={version:3,directUrl:decodeURIComponent(r),
asyncUrl:FwW(v.JSC$9752_url_,"act=1","ri=1",ACW(v))};break c}catch(q){}}P=K==="2"?{version:4,directUrl:FwW(v.JSC$9752_url_,"dct=1","suid="+v.suid_,"ri=1"),asyncUrl:FwW(v.JSC$9752_url_,"act=1","ri=1","suid="+v.suid_)}:null}}if(P){var N=_.iP(I);var h=!(!N||!N.endsWith("/aclk")||_.rR(I,"ri")!=="1");break b}}catch(q){}h=!1}if(h){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(I,"")){var x=!0;break b}}catch(q){}x=!1}x?(y&&y(),D=!0):D=!1}else D=!1;D||ByL(I,y)}};
ByL=function(I,y,D){D=D===void 0?{}:D;var F=new Image,R=""+$4S++;bQS[R]=F;F.onload=F.onerror=function(){y&&bQS[R]&&y();delete bQS[R]};
D.scrubReferrer&&(F.referrerPolicy="no-referrer");F.src=I};
hO=function(I,y){HQq(I,y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
e0o=function(I){var y;return((y=document.featurePolicy)==null?0:y.allowedFeatures().includes("attribution-reporting"))?I+"&nis=6":I+"&nis=5"};
Tyq=function(I){if(!I)return!1;try{var y;if(((y=_.xf(I))==null?void 0:y.asm)==="4")return!0}catch(D){_.UJ(D)}return!1};
HQq=function(I,y){y?(I=e0o(I),_.Nw(I,void 0,void 0,void 0,"",!0,!0)):_.Nw(I)};
VEA=function(){s6A||(s6A=new _.Ku("yt.offline"));return s6A};
ZQ5=function(I){if(_.l("offline_error_handling")){var y=VEA().get("errors",!0)||{};y[I.message]={name:I.name,stack:I.stack};I.level&&(y[I.message].level=I.level);VEA().set("errors",y,2592E3,!0)}};
Ioe=function(I,y,D,F){F=F===void 0?!1:F;y=_.l("web_fp_via_jspb")?Object.assign({},y):y;_.l("use_cfr_monitor")&&gEq(I,y);if(_.l("use_request_time_ms_header"))y.headers&&QV(I)&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.m_)())));else{var R;if((R=y.postParams)==null?0:R.requestTimeMs)y.postParams.requestTimeMs=Math.round((0,_.m_)())}D&&Object.keys(y).length===0?_.Nw(I):y.compress?y.postBody?(typeof y.postBody!=="string"&&(y.postBody=JSON.stringify(y.postBody)),tE_(I,y.postBody,
y,_.AG,F)):tE_(I,JSON.stringify(y.postParams),y,hVo,F):_.AG(I,y)};
yf5=function(I,y){_.l("use_event_time_ms_header")&&QV(I)&&(y.headers||(y.headers={}),y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.m_)())));return y};
_.FjB=function(){DKB||(DKB=new _.x7({logOfflineErrors:!0,enablePolling:!0}));return DKB};
gEq=function(I,y){var D=y.onError?y.onError:function(){};
y.onError=function(R,O){lH().requestComplete(I,!1);D(R,O)};
var F=y.onSuccess?y.onSuccess:function(){};
y.onSuccess=function(R,O){lH().requestComplete(I,!0);F(R,O)}};
_.RgW=function(){return _.GP(document.location.toString())!=="www.youtube-nocookie.com"};
_.Jfe=function(){return _.jF("ytNetworklessLoggingInitializationOptions")?_.O4o.isNwlInitialized:_.LjW};
wU4=function(I,y){if(_.l("polymer_on_demand_shady_dom")){var D;var F=(D=I.__shady_native_firstElementChild)!=null?D:I.firstElementChild}else F=I.firstElementChild;for(;F;){if(I=y(F)?F:wU4(F,y))return I;F=F.nextElementSibling}return null};
_.SEq=function(){var I=document;if("visibilityState"in I)return I.visibilityState;var y=vYB+"VisibilityState";if(y in I)return I[y]};
_.tpe=function(I,y){var D;uH(I,function(F){D=y[F];return!!D});
return D};
_.E6=function(I){var y=PO5(I);y?y.focus(void 0):_.qw(I)};
PO5=function(I){return(I=wU4(I,function(y){return _.Q2(y)?KjS(y)&&!!y.offsetParent:!1}))?I:null};
_.qw=function(I,y){I.hasAttribute("tabindex")||I.setAttribute("tabindex","-1");I.focus(y)};
UK_=function(I,y,D,F){F=F===void 0?{}:F;I.addEventListener&&(y!="mouseenter"||"onmouseenter"in document?y!="mouseleave"||"onmouseenter"in document?y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"):y="mouseout":y="mouseover");return _.e$.findKey(Qq,function(R){var O=typeof R[4]==="boolean"&&R[4]==!!F,w=_.b_(R[4])&&_.b_(F)&&_.e$.equals(R[4],F);return!!R.length&&R[0]==I&&R[1]==y&&R[2]==D&&(O||w)})};
_.fu=function(I,y,D,F){F=F===void 0?{}:F;if(!I||!I.addEventListener&&!I.attachEvent)return"";var R=UK_(I,y,D,F);if(R)return R;R=++rf_.count+"";var O=!(y!="mouseenter"&&y!="mouseleave"||!I.addEventListener||"onmouseenter"in document);var w=O?function(v){v=new Y7(v);if(!_.gB(v.relatedTarget,function(P){return P==I},!0))return v.currentTarget=I,v.type=y,D.call(I,v)}:function(v){v=new Y7(v);
v.currentTarget=I;return D.call(I,v)};
w=_.r6(w);I.addEventListener?(y=="mouseenter"&&O?y="mouseover":y=="mouseleave"&&O?y="mouseout":y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"),juJ()||typeof F==="boolean"?I.addEventListener(y,w,F):I.addEventListener(y,w,!!F.capture)):I.attachEvent("on"+y,w);Qq[R]=[I,y,D,w,F];return R};
_.NVC=function(I,y,D){var F=F===void 0?{}:F;var R=_.fu(I,y,function(){_.oY4(R);D.apply(I,arguments)},F)};
_.oY4=function(I){I&&(typeof I=="string"&&(I=[I]),_.hG(I,function(y){if(y in Qq){var D=Qq[y],F=D[0],R=D[1],O=D[3];D=D[4];F.removeEventListener?juJ()||typeof D==="boolean"?F.removeEventListener(R,O,D):F.removeEventListener(R,O,!!D.capture):F.detachEvent&&F.detachEvent("on"+R,O);delete Qq[y]}}))};
nu=function(I){this.callback_=I;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(I=0;I<4;I++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.fu(window,"mousemove",(0,_.iD)(this.onMouseMove_,this));this.timerId_=_.CR((0,_.iD)(this.checkPosition_,this),25)};
loB=function(){var I={};var y=I.preferMobileEvents===void 0?!1:I.preferMobileEvents;I=I.enableScrollEventListener===void 0?!0:I.enableScrollEventListener;if(_.jF("_lact",window)==null){var D=parseInt(_.Pi("LACT"),10);D=isFinite(D)?Date.now()-Math.max(D,0):-1;_.fv("_lact",D,window);_.fv("_fact",D,window);D==-1&&_.pu();hgJ(window,y,I);new nu(function(){xKC("mouse",100)})}};
hgJ=function(I,y,D){y=y===void 0?!1:y;D=D===void 0?!0:D;_.fu(I.document,"keydown",_.pu);_.fu(I.document,"keyup",_.pu);_.fu(I.document,"mousedown",_.pu);_.fu(I.document,"mouseup",_.pu);y?_.fu(I,"touchmove",function(){xKC("touchmove",200)},{passive:!0}):(_.fu(I,"resize",function(){xKC("resize",200)}),D&&_.fu(I,"scroll",function(){xKC("scroll",200)}));
_.fu(I.document,"touchstart",_.pu,{passive:!0});_.fu(I.document,"touchend",_.pu,{passive:!0})};
xKC=function(I,y){uH4[I]||(uH4[I]=!0,_.w2.addLowPriorityJob(function(){_.pu();uH4[I]=!1},y))};
_.pu=function(){_.jF("_lact",window)==null&&loB();var I=Date.now();_.fv("_lact",I,window);_.jF("_fact",window)==-1&&_.fv("_fact",I,window);(I=_.jF("ytglobal.ytUtilActivityCallback_"))&&I()};
_.m$=function(){var I=_.jF("_lact",window);return I==null?-1:Math.max(Date.now()-I,0)};
_.ar=function(I,y,D){var F=_.z8();if(F&&y){var R=F.subscribe(I,function(){var O=arguments,w=function(){k7[R]&&y.apply&&typeof y.apply=="function"&&y.apply(D||window,O)};
try{_.qE_[I]?w():_.Wi(w,0)}catch(v){_.UJ(v)}},D);
k7[R]=!0;d2[I]||(d2[I]=[]);d2[I].push(R);return R}return 0};
_.EYC=function(I){var y=_.z8();y&&(typeof I==="number"?I=[I]:typeof I==="string"&&(I=[parseInt(I,10)]),_.hG(I,function(D){y.unsubscribeByKey(D);delete k7[D]}))};
_.GJS=function(I,y){var D=_.z8();D&&D.publish.apply(D,arguments)};
_.QuB=function(I){var y=_.z8();if(y)if(y.clear(I),I)XUJ(I);else for(var D in d2)XUJ(D)};
_.z8=function(){return _.Ft.ytPubsubPubsubInstance};
XUJ=function(I){d2[I]&&(I=d2[I],_.hG(I,function(y){k7[y]&&delete k7[y]}),I.length=0)};
YEB=function(){var I,y;return"h5vcc"in cP&&((I=cP.h5vcc.traceEvent)==null?0:I.traceBegin)&&((y=cP.h5vcc.traceEvent)==null?0:y.traceEnd)?1:"performance"in cP&&cP.performance.mark&&cP.performance.measure?2:0};
foL=function(I){var y=YEB();switch(y){case 1:cP.h5vcc.traceEvent.traceBegin("YTLR",I);break;case 2:cP.performance.mark(I+"-start");break;case 0:break;default:_.ya(y,"unknown trace type")}};
nYo=function(I){var y=YEB();switch(y){case 1:cP.h5vcc.traceEvent.traceEnd("YTLR",I);break;case 2:y=I+"-start";var D=I+"-end";cP.performance.mark(D);cP.performance.measure(I,y,D);break;case 0:break;default:_.ya(y,"unknown trace type")}};
pUB=function(I){var y,D;(D=(y=window).onerror)==null||D.call(y,I.message,"",0,0,I)};
mK4=function(I){if(_.l("web_lifecycle_error_handling_killswitch"))return I();try{return I()}catch(y){pUB(y)}};
Mpo=function(I){return[I.auth===void 0?"undefined":I.auth,I.isJspb===void 0?"undefined":I.isJspb,I.cttAuthInfo===void 0?"undefined":I.cttAuthInfo,I.tier===void 0?"undefined":I.tier].join("/")};
_.u=function(I,y){if(I)return I[y.name]};
Cu=function(){var I=_.jF("yt.logging.ims");I||(I=new WP,_.fv("yt.logging.ims",I));return I};
i4W=function(I,y){if(I.endpoint==="log_event"){zgA(I);var D=kJS(I),F=dKe(I.payload)||"",R=aoW(F),O=200;if(R){if(R.enabled===!1&&!_.l("web_payload_policy_disabled_killswitch"))return;O=cfo(R.tier);if(O===400){WjH(I,y);return}}BP[D]=!0;D={cttAuthInfo:D,isJspb:!1,tier:O};Cu().storePayload(D,I.payload);COB(y,!1,D,BVW(F))}};
$KA=function(I,y,D){if(y.endpoint==="log_event"){zgA(void 0,y);var F=kJS(y,!0),R=aoW(I),O=200;if(R){if(R.enabled===!1&&!_.l("web_payload_policy_disabled_killswitch"))return;O=cfo(R.tier);if(O===400){AfJ(I,y,D);return}}BP[F]=!0;F={cttAuthInfo:F,isJspb:!0,tier:O};Cu().storePayload(F,cC(y.payload));COB(D,!0,F,BVW(I))}};
COB=function(I,y,D,F){y=y===void 0?!1:y;F=F===void 0?!1:F;I&&(iH=new I);I=_.kf("tvhtml5_logging_max_batch_ads_fork")||_.kf("tvhtml5_logging_max_batch")||_.kf("web_logging_max_batch")||100;var R=(0,_.m_)(),O=b45(y,D.tier),w=O.lastDebounceQueueFromLogTimeMs;F&&(O.useVideoStatsEndPoint=!0);F=0;D&&(F=Cu().getSequenceCount(D));var v=function(){H45({writeThenSend:!0},y,D.tier)};
F>=1E3?v():F>=I?egC||(egC=TVt(function(){v();egC=void 0},0)):R-w>=10&&(suo(y,D.tier),O.lastDebounceQueueFromLogTimeMs=R)};
WjH=function(I,y){if(I.endpoint==="log_event"){_.l("more_accurate_gel_parser")&&Cu().storePayload({isJspb:!1},I.payload);zgA(I);var D=kJS(I),F=new Map;F.set(D,[I.payload]);var R=dKe(I.payload)||"";y&&(iH=new y);return new _.AO(function(O,w){iH&&iH.isReady()?Vpo(F,iH,O,w,{bypassNetworkless:!0},!0,BVW(R)):O()})}};
AfJ=function(I,y,D){if(y.endpoint==="log_event"){zgA(void 0,y);var F=kJS(y,!0),R=new Map;R.set(F,[cC(y.payload)]);D&&(iH=new D);return new _.AO(function(O){iH&&iH.isReady()?Z4_(R,iH,O,{bypassNetworkless:!0},!0,BVW(I)):O()})}};
kJS=function(I,y){var D="";if(I.dangerousLogToVisitorSession)D="visitorOnlyApprovedKey";else if(I.cttAuthInfo){if(y===void 0?0:y){y=I.cttAuthInfo.token;D=I.cttAuthInfo;var F=new gYH;D.videoId?F.setVideoId(D.videoId):D.playlistId&&$7(F,2,IXC,Qa(D.playlistId));yZt[y]=F}else y=I.cttAuthInfo,D={},y.videoId?D.videoId=y.videoId:y.playlistId&&(D.playlistId=y.playlistId),DYq[I.cttAuthInfo.token]=D;D=I.cttAuthInfo.token}return D};
H45=function(I,y,D){I=I===void 0?{}:I;y=y===void 0?!1:y;new _.AO(function(F,R){var O=b45(y,D),w=O.useVideoStatsEndPoint;O.useVideoStatsEndPoint=!1;FCS(O.queueTimer);FCS(O.queueMaxTimer);O.queueMaxTimer=0;iH&&iH.isReady()?D===void 0&&_.l("enable_web_tiered_gel")?R2q(F,R,I,y,300,w):R2q(F,R,I,y,D,w):(suo(y,D),F())})};
R2q=function(I,y,D,F,R,O){var w=iH;D=D===void 0?{}:D;F=F===void 0?!1:F;R=R===void 0?200:R;O=O===void 0?!1:O;var v=new Map,P=new Map,K={isJspb:F,cttAuthInfo:void 0,tier:R},r={isJspb:F,cttAuthInfo:void 0};if(F){y=_.J(Object.keys(BP));for(R=y.next();!R.done;R=y.next())R=R.value,P=_.l("enable_web_tiered_gel")?Cu().smartExtractMatchingEntries({keys:[K,r],sizeLimit:1E3}):Cu().extractMatchingEntries({isJspb:!0,cttAuthInfo:R}),P.length>0&&v.set(R,P),(_.l("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.l("web_fp_via_jspb_and_json"))&&
delete BP[R];Z4_(v,w,I,D,!1,O)}else{v=_.J(Object.keys(BP));for(K=v.next();!K.done;K=v.next())K=K.value,r=_.l("enable_web_tiered_gel")?Cu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:K,tier:R},{isJspb:!1,cttAuthInfo:K}],sizeLimit:1E3}):Cu().extractMatchingEntries({isJspb:!1,cttAuthInfo:K}),r.length>0&&P.set(K,r),(_.l("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.l("web_fp_via_jspb_and_json"))&&delete BP[K];Vpo(P,w,I,y,D,!1,O)}};
suo=function(I,y){I=I===void 0?!1:I;y=y===void 0?200:y;var D=function(){H45({writeThenSend:!0},I,y)},F=b45(I,y),R=F===OtS||F===LCq?5E3:JZq;
_.l("web_gel_timeout_cap")&&!F.queueMaxTimer&&(R=TVt(function(){D()},R),F.queueMaxTimer=R);
FCS(F.queueTimer);R=_.Pi("LOGGING_BATCH_TIMEOUT",_.kf("web_gel_debounce_ms",1E4));_.l("shorten_initial_gel_batch_timeout")&&wSW&&(R=vz_);R=TVt(function(){_.kf("gel_min_batch_size")>0?Cu().getSequenceCount({cttAuthInfo:void 0,isJspb:I,tier:y})>=SP4&&D():D()},R);
F.queueTimer=R};
Vpo=function(I,y,D,F,R,O,w){R=R===void 0?{}:R;var v=Math.round((0,_.m_)()),P=I.size,K=tao(w);I=_.J(I);var r=I.next();for(w={};!r.done;w={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},r=I.next()){var N=_.J(r.value);r=N.next().value;N=N.next().value;w.batchRequest=_.e$.unsafeClone({context:_.i0e(y.config_||_.zm())});if(!_.i_(N)&&!_.l("throw_err_when_logevent_malformed_killswitch")){F();break}w.batchRequest.events=N;
(N=DYq[r])&&PpC(w.batchRequest,r,N);delete DYq[r];w.dangerousLogToVisitorSession=r==="visitorOnlyApprovedKey";KCC(w.batchRequest,v,w.dangerousLogToVisitorSession);UYt(R);w.onSuccess$jscomp$3=function(h){_.l("start_client_gcf")&&_.w2.addLowPriorityJob(function(){return _.S(function(x){return x.yield(rZt(h),0)})});
P--;P||D()};
w.networkFailures=0;w.onError$jscomp$5=function(h){return function(){h.networkFailures++;if(R.bypassNetworkless&&h.networkFailures===1)try{qvo(y,K,h.batchRequest,jPo({writeThenSend:!0},h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,O)),wSW=!1}catch(x){_.UJ(x),F()}P--;P||D()}}(w);
try{qvo(y,K,w.batchRequest,jPo(R,w.dangerousLogToVisitorSession,w.onSuccess$jscomp$3,w.onError$jscomp$5,O)),wSW=!1}catch(h){_.UJ(h),F()}}};
Z4_=function(I,y,D,F,R,O){F=F===void 0?{}:F;var w=Math.round((0,_.m_)()),v={value:I.size},P=new Map([].concat(_.Td(I)));P=_.J(P);for(var K=P.next();!K.done;K=P.next()){var r=_.J(K.value).next().value,N=I.get(r);K=new bH;var h=y.config_||_.zm(),x=new HP,q=new oz4;_.BB(q,1,h.innertubeContextHostLanguage);_.BB(q,2,h.innertubeContextGeoLocation);_.d1(q,16,h.innertubeContextClientNameFieldNumber);_.BB(q,17,h.innertubeContextClientVersion);if(h.innertubeContextClientConfigInfo){var X=h.innertubeContextClientConfigInfo,
f=new c1;X.coldConfigData&&_.BB(f,1,X.coldConfigData);X.appInstallData&&_.BB(f,6,X.appInstallData);X.coldHashData&&_.BB(f,3,X.coldHashData);X.hotHashData&&f.setHotHashData(X.hotHashData);_.mH(q,62,f)}(X=_.Ft.devicePixelRatio)&&X!=1&&_.aC(q,65,_.DQ(X));X=Ld_();X!==""&&_.BB(q,54,X);X=J_A();if(X.length>0){f=new NPA;for(var m=0;m<X.length;m++){var z=new en;z.setKey(X[m].key);$7(z,2,h2J,Qa(X[m].value));T8(f,15,en,z)}_.mH(x,5,f)}dP_(h,q);a75(x);cSA(q);WXt(h,q);CXt(q);_.l("start_client_gcf")&&BYS(q);_.Pi("DELEGATED_SESSION_ID")&&
!_.l("pageid_as_header_web")&&(h=new s6,_.BB(h,3,_.Pi("DELEGATED_SESSION_ID")));!_.l("fill_delegate_context_in_gel_killswitch")&&(X=_.Pi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f=_.kk(x,s6,3)||new s6,h=x,X=_.BB(f,18,X),_.mH(h,3,X));h=q;X=_.J(Object.entries(_.xf(_.Pi("DEVICE",""))));for(f=X.next();!f.done;f=X.next())m=_.J(f.value),f=m.next().value,m=m.next().value,f==="cbrand"?_.BB(h,12,m):f==="cmodel"?_.BB(h,13,m):f==="cbr"?_.BB(h,87,m):f==="cbrver"?_.BB(h,88,m):f==="cos"?_.BB(h,18,
m):f==="cosver"?_.BB(h,19,m):f==="cplatform"&&_.d1(h,42,dlH(m));x.setClient(q);_.mH(K,1,x);if(q=yZt[r])a:{if(_.z6(q,Vq(q,IXC,1)))x=1;else if(q.getPlaylistId())x=2;else break a;_.mH(K,4,q);q=K.getContext()||new HP;h=_.kk(q,s6,3)||new s6;X=new ZJ;X.setToken(r);_.d1(X,1,x);T8(h,12,ZJ,X);_.mH(q,3,h)}delete yZt[r];r=r==="visitorOnlyApprovedKey";xYe()||_.g2(K,2,w);!r&&(x=_.Pi("EVENT_ID"))&&(q=lXq(),h=new upA,_.BB(h,1,x),_.g2(h,2,q),_.mH(K,5,h));UYt(F);if(_.l("jspb_serialize_with_worker")&&(x=_.get())&&
F.writeThenSend){_.qPS.set(EzL,{client:y,resolve:D,networklessOptions:F,isIsolated:R,useVSSEndpoint:O,dangerousLogToVisitorSession:r,requestsOutstanding:v});x.postMessage({op:"gelBatchToSerialize",batchRequest:cC(K),clientEvents:N,key:EzL});EzL++;break}if(N){x=[];for(q=0;q<N.length;q++)try{x.push(new If(N[q]))}catch(B){_.UJ(new _.g6("Transport failed to deserialize "+String(N[q])))}N=x}else N=[];N=_.J(N);for(x=N.next();!x.done;x=N.next())T8(K,3,If,x.value);N={startTime:(0,_.m_)(),ticks:{},infos:{}};
K=K.serialize();N.ticks.geljspc=(0,_.m_)();_.l("log_jspb_serialize_latency")&&e6S("gel_jspb_serialize",N,{sampleRate:.1});_.GjC(K,y,D,F,R,O,r,v)}};
_.GjC=function(I,y,D,F,R,O,w,v){F=F===void 0?{}:F;v=v===void 0?{value:0}:v;O=tao(O);F=jPo(F,w,function(P){_.l("start_client_gcf")&&_.w2.addLowPriorityJob(function(){return _.S(function(K){return K.yield(rZt(P),0)})});
v.value--;v.value||D()},function(){v.value--;
v.value||D()},R);
F.headers["Content-Type"]="application/json+protobuf";F.postBodyFormat="JSPB";F.postBody=I;qvo(y,O,"",F);wSW=!1};
UYt=function(I){_.l("always_send_and_write")&&(I.writeThenSend=!1)};
jPo=function(I,y,D,F,R){I={retry:!0,onSuccess:D,onError:F,networklessOptions:I,dangerousLogToVisitorSession:y,bypassMonitoring:!!R,headers:{},postBodyFormat:"",postBody:"",compress:_.l("compress_gel")||_.l("compress_gel_lr")};xYe()&&(I.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.m_)())));return I};
KCC=function(I,y,D){xYe()||(I.requestTimeMs=String(y));_.l("unsplit_gel_payloads_in_logs")&&(I.unsplitGelPayloadsInLogs=!0);!D&&(y=_.Pi("EVENT_ID"))&&(D=lXq(),I.serializedClientEventId={serializedEventId:y,clientCounter:String(D)})};
lXq=function(){var I=_.Pi("BATCH_CLIENT_COUNTER")||0;I||(I=Math.floor(Math.random()*65535/2));I++;I>65535&&(I=1);_.tG("BATCH_CLIENT_COUNTER",I);return I};
PpC=function(I,y,D){if(D.videoId)var F="VIDEO";else if(D.playlistId)F="PLAYLIST";else return;I.credentialTransferTokenTargetId=D;I.context=I.context||{};I.context.user=I.context.user||{};I.context.user.credentialTransferTokens=[{token:y,scope:F}]};
zgA=function(I,y){var D=_.d6("il_payload_scraping")==="enable_il_payload_scraping";if(!_.jF("yt.logging.transport.enableScrapingForTest"))if(D)XSt=[],_.fv("yt.logging.transport.enableScrapingForTest",!0),_.fv("yt.logging.transport.scrapedPayloadsForTesting",XSt),_.fv("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.fv("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.fv("yt.logging.transport.scrapeClientEvent",!0);else return;D=_.jF("yt.logging.transport.scrapedPayloadsForTesting");var F=_.jF("yt.logging.transport.payloadToScrape");y&&(y=_.jF("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(y.payload)())&&D.push(y);y=_.jF("yt.logging.transport.scrapeClientEvent");if(F&&F.length>=1)for(var R=0;R<F.length;R++)if(I&&I.payload[F[R]])if(y)D.push(I.payload);else{var O=void 0;D.push(((O=I)==null?void 0:O.payload)[F[R]])}_.fv("yt.logging.transport.scrapedPayloadsForTesting",
D)};
xYe=function(){return _.l("use_request_time_ms_header")||_.l("lr_use_request_time_ms_header")};
TVt=function(I,y){return _.l("transport_use_scheduler")===!1?_.Wi(I,y):_.l("logging_avoid_blocking_during_navigation")||_.l("lr_logging_avoid_blocking_during_navigation")?_.y9(_.w2,function(){if(_.QPJ().currentState==="none")I();else{var D={};_.QPJ().install((D.none={callback:I},D))}},y):_.y9(_.w2,I,y)};
FCS=function(I){_.l("transport_use_scheduler")?_.w2.cancelJob(I):_.Bi(I)};
rZt=function(I){var y,D,F,R,O,w,v,P,K,r;return _.S(function(N){return N.nextAddress==1?(F=(y=I)==null?void 0:(D=y.responseContext)==null?void 0:D.globalConfigGroup,R=_.u(F,YP4),w=(O=F)==null?void 0:O.hotHashData,v=_.u(F,fXA),K=(P=F)==null?void 0:P.coldHashData,(r=_.nR().resolve(_.fR(DM)))?w?R?N.yield(nze(r,w,R),2):N.yield(nze(r,w),2):N.jumpTo(2):N.return()):K?v?N.yield(pSJ(r,K,v),0):N.yield(pSJ(r,K),0):N.jumpTo(0)})};
b45=function(I,y){y=y===void 0?200:y;return I?y===300?OtS:mYq:y===300?LCq:Maq};
aoW=function(I){if(_.l("enable_web_tiered_gel")){I=z24[I||""];var y,D,F,R=_.nR().resolve(_.fR(DM))==null?void 0:(y=FS())==null?void 0:(D=y.loggingHotConfig)==null?void 0:(F=D.eventLoggingConfig)==null?void 0:F.payloadPolicies;if(R)for(y=0;y<R.length;y++)if(R[y].payloadNumber===I)return R[y]}};
dKe=function(I){I=Object.keys(I);I=_.J(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,z24[y])return y};
cfo=function(I){switch(I){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}};
BVW=function(I){return I==="gelDebuggingEvent"};
tao=function(I){return(I===void 0?0:I)&&_.l("vss_through_gel_video_stats")?"video_stats":"log_event"};
ON=function(I,y,D,F){F=F===void 0?{}:F;var R={},O=Math.round(F.timestamp||(0,_.m_)());R.eventTimeMs=O<Number.MAX_SAFE_INTEGER?O:0;R[I]=y;I=_.m$();R.context={lastActivityMs:String(F.timestamp||!isFinite(I)?-1:I)};F.sequenceGroup&&!_.l("web_gel_sequence_info_killswitch")&&(I=R.context,y=F.sequenceGroup,y={index:kj4(y),groupKey:y},I.sequence=y,F.endOfSequence&&delete Rf[F.sequenceGroup]);_.l("web_tag_automated_log_events")&&(R.context.automatedLogEventSource=F.automatedLogEventSource);(F.sendIsolatedPayload?
WjH:i4W)({endpoint:"log_event",payload:R,cttAuthInfo:F.cttAuthInfo,dangerousLogToVisitorSession:F.dangerousLogToVisitorSession},D)};
kj4=function(I){Rf[I]=I in Rf?Rf[I]+1:0;return Rf[I]};
_.Jq=function(I,y,D){D=D===void 0?{}:D;var F=LT;_.KR("ytLoggingEventsDefaultDisabled",!1)&&LT===LT&&(F=null);ON(I,y,F,D)};
_.wI=function(){if(_.l("web_fp_via_jspb")){var I=!0;I=I===void 0?!1:I;var y=dY4;dY4=[];if(y){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,I?ON(D.payloadName,D.payload,LT,D.options):_.Jq(D.payloadName,D.payload,D.options)}H45(void 0,!0);if(!_.l("web_fp_via_jspb_and_json"))return}H45(void 0,!1)};
aXo=function(I,y){var D;if((D=y)==null?0:D.componentStack)return y;if(I=I.componentStack)y||(y={}),y.componentStack=I;return y};
cZJ=function(){_.hG(_.Pi("ERRORS")||[],function(I){_.vu.apply(null,I)});
_.tG("ERRORS",[])};
_.Sb=function(I){_.vu(I)};
_.tq=function(I){_.vu(I,"WARNING")};
WCC=function(I){I instanceof Error?_.vu(I):(I=_.b_(I)?JSON.stringify(I):String(I),I=new _.g6(I),I.name="RejectedPromiseError",_.tq(I))};
Cp4=function(I,y,D,F,R,O){y=y===void 0?"Unknown file":y;D=D===void 0?0:D;var w=!1,v=c94("log_window_onerror_fraction");if(v&&Math.random()<v)w=!0;else{v=document.getElementsByTagName("script");for(var P=0,K=v.length;P<K;P++)if(v[P].src.indexOf("/debug-")>0){w=!0;break}}w&&(w=!1,R?w=!0:(typeof I==="string"?v=I:ErrorEvent&&I instanceof ErrorEvent?(w=!0,v=I.message,y=I.filename,D=I.lineno,F=I.colno):(v="Unknown error",y="Unknown file",D=0),R=new _.g6(v),R.name="UnhandledWindowError",R.message=v,R.fileName=
y,R.lineNumber=D,isNaN(F)?delete R.columnNumber:R.columnNumber=F),_.l("wiz_enable_component_stack_propagation_killswitch")||(O=aXo(R,O)),O&&_.Pu(R,O),w?_.vu(R):_.tq(R))};
_.vu=function(I,y,D,F,R,O,w,v){O=O===void 0?{}:O;O.name=D||_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME",1);O.version=F||_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION");D=O;y=y===void 0?"ERROR":y;w=w===void 0?!1:w;y=y===void 0?"ERROR":y;w=w===void 0?!1:w;if(I&&(I.hasOwnProperty("level")&&I.level&&(y=I.level),_.l("console_log_js_exceptions")&&(F=[],F.push("Name: "+I.name),F.push("Message: "+I.message),I.hasOwnProperty("params")&&F.push("Error Params: "+JSON.stringify(I.params)),I.hasOwnProperty("args")&&F.push("Error args: "+
JSON.stringify(I.args)),F.push("File name: "+I.fileName),F.push("Stacktrace: "+I.stack),F=F.join("\n"),window.console.log(F,I)),!(BPJ>=5))){F=[];R=_.J(it_);for(O=R.next();!O.done;O=R.next()){O=O.value;try{O()&&F.push(O())}catch(f){}}F=[].concat(_.Td(AZH),_.Td(F));var P=$YB(I);R=P.message||"Unknown Error";O=P.name||"UnknownError";var K=P.stack||I.stacktrace||"Not available";if(K.startsWith(O+": "+R)){var r=K.split("\n");r.shift();K=r.join("\n")}r=P.lineNumber||"Not available";P=P.fileName||"Not available";
var N=0;if(I.hasOwnProperty("args")&&I.args&&I.args.length)for(var h=0;h<I.args.length&&!(N=kzL(I.args[h],"params."+h,D,N),N>=500);h++);else if(I.hasOwnProperty("params")&&I.params){var x=I.params;if(typeof I.params==="object")for(h in x){if(x[h]){var q="params."+h,X=Hi(x[h]);D[q]=X;N+=q.length+X.length;if(N>500)break}}else D.params=Hi(x)}if(F.length)for(h=0;h<F.length&&!(N=kzL(F[h],"params.context."+h,D,N),N>=500);h++);navigator.vendor&&!D.hasOwnProperty("vendor")&&(D["device.vendor"]=navigator.vendor);
h={message:R,name:O,lineNumber:r,fileName:P,stack:K,params:D,sampleWeight:1};D=Number(I.columnNumber);isNaN(D)||(h.lineNumber=h.lineNumber+":"+D);if(I.level==="IGNORED")I=0;else a:{I=btJ();D=_.J(I.messageWeights);for(F=D.next();!F.done;F=D.next())if(F=F.value,h.message&&h.message.match(F.messageRegExp)){I=F.weight;break a}I=_.J(I.callbackWeights);for(D=I.next();!D.done;D=I.next())if(D=D.value,D.callback(h)){I=D.weight;break a}I=1}h.sampleWeight=I;I=_.J(HtW);for(D=I.next();!D.done;D=I.next())if(D=
D.value,D.patternsForType[h.name])for(R=_.J(D.patternsForType[h.name]),F=R.next();!F.done;F=R.next())if(O=F.value,F=h.message.match(O.regexp)){h.params["params.error.original"]=F[0];R=O.groups;O={};for(r=0;r<R.length;r++)O[R[r]]=F[r+1],h.params["params.error."+R[r]]=F[r+1];h.message=D.messageFn(O);break}h.params||(h.params={});I=btJ();h.params["params.errorServiceSignature"]="msg="+I.messageWeights.length+"&cb="+I.callbackWeights.length;h.params["params.serviceWorker"]="false";_.Ft.document&&_.Ft.document.querySelectorAll&&
(h.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new KT(e2_,"sample")).constructor!==KT&&(h.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(h);if(h.sampleWeight!==0&&!TPW.has(h.message)){if(w)sPA(y===void 0?"ERROR":y,h);else{y=y===void 0?"ERROR":y;y==="ERROR"?(UN.publish("handleError",h),_.l("record_app_crashed_web")&&Va_===0&&h.sampleWeight===1&&(Va_++,w={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.l("report_client_error_with_app_crash_ks")||
(w.systemHealth={crashData:{clientError:{logMessage:{message:h.message}}}}),_.Jq("appCrashed",w)),ZtH++):y==="WARNING"&&UN.publish("handleWarning",h);if(_.l("kevlar_gel_error_routing")){w=y;v=v===void 0?{}:v;b:{I=_.J(gz4);for(D=I.next();!D.done;D=I.next())if(P1(D.value.toLowerCase())){I=!0;break b}I=!1}if(I)v=void 0;else{D={stackTrace:h.stack};h.fileName&&(D.filename=h.fileName);I=h.lineNumber&&h.lineNumber.split?h.lineNumber.split(":"):[];I.length!==0&&(I.length!==1||isNaN(Number(I[0]))?I.length!==
2||isNaN(Number(I[0]))||isNaN(Number(I[1]))||(D.lineNumber=Number(I[0]),D.columnNumber=Number(I[1])):D.lineNumber=Number(I[0]));I={level:"ERROR_LEVEL_UNKNOWN",message:h.message,errorClassName:h.name,sampleWeight:h.sampleWeight};w==="ERROR"?I.level="ERROR_LEVEL_ERROR":w==="WARNING"&&(I.level="ERROR_LEVEL_WARNNING");D={isObfuscated:!0,browserStackInfo:D};v.pageUrl=window.location.href;v.kvPairs=[];_.Pi("FEXP_EXPERIMENTS")&&(v.experimentIds=_.Pi("FEXP_EXPERIMENTS"));F=_.Pi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!c94("web_disable_gel_stp_ecatcher_killswitch")&&F)for(R=_.J(Object.keys(F)),O=R.next();!O.done;O=R.next())O=O.value,v.kvPairs.push({key:O,value:String(F[O])});if(F=h.params)for(R=_.J(Object.keys(F)),O=R.next();!O.done;O=R.next())O=O.value,v.kvPairs.push({key:"client."+O,value:String(F[O])});F=_.Pi("SERVER_NAME");R=_.Pi("SERVER_VERSION");F&&R&&(v.kvPairs.push({key:"server.name",value:F}),v.kvPairs.push({key:"server.version",value:R}));v={errorMetadata:v,stackTrace:D,logMessage:I}}v&&(_.Jq("clientError",
v),(w==="ERROR"||_.l("errors_flush_gel_always_killswitch"))&&_.wI())}_.l("suppress_error_204_logging")||sPA(y,h)}try{TPW.add(h.message)}catch(f){}BPJ++}}};
sPA=function(I,y){var D=y.params||{};I={urlParams:{a:"logerror",t:"jserror",type:y.name,msg:y.message.substr(0,250),line:y.lineNumber,level:I,"client.name":D.name},postParams:{url:_.Pi("PAGE_NAME",window.location.href),file:y.fileName},method:"POST"};D.version&&(I["client.version"]=D.version);if(I.postParams){y.stack&&(I.postParams.stack=y.stack);y=_.J(Object.keys(D));for(var F=y.next();!F.done;F=y.next())F=F.value,I.postParams["client."+F]=D[F];if(D=_.Pi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(y=
_.J(Object.keys(D)),F=y.next();!F.done;F=y.next())F=F.value,I.postParams[F]=D[F];(D=_.Pi("LAVA_VERSION"))&&(I.postParams["lava.version"]=D);D=_.Pi("SERVER_NAME");y=_.Pi("SERVER_VERSION");D&&y&&(I.postParams["server.name"]=D,I.postParams["server.version"]=y)}_.AG(_.Pi("ECATCHER_REPORT_HOST","")+"/error_204",I)};
_.Iyq=function(I,y){y=y===void 0?"ERROR":y;var D=D===void 0?{}:D;var F=_.jF("ytbin.polymer.shared.lib.tampering.info");F&&(F=F())&&(D["params.tamperingInfo"]=F.sort().join(","));_.vu(I,y,void 0,void 0,!0,D)};
_.Pu=function(I){var y=_.go.apply(1,arguments);I.args||(I.args=[]);Array.isArray(I.args)&&I.args.push.apply(I.args,_.Td(y))};
yUe=function(I){I.level="IGNORED"};
D5W=function(I,y){AZH.push(I);y();AZH.pop()};
NM=function(I,y){for(var D in y)y.hasOwnProperty(D)&&(I=_.rI(I,D,y[D]));return I};
_.FKo=function(I,y,D){D=D===void 0?!1:D;if(!I)return null;if(I.adInfoDialogEndpoint||I.backstageImageUploadEndpoint||I.confirmDialogEndpoint||I.clientActionEndpoint||I.createBackstagePostDialogEndpoint||I.createCommentReplyDialogEndpoint||I.flowEndpoint||I.guideBuilderEndpoint||I.liveChatDialogEndpoint||I.modalEndpoint||I.openPopupAction||I.shareEndpoint||I.shareEntityEndpoint||I.showLiveChatItemEndpoint||I.subscriptionManagerEndpoint||I.unlimitedCreateFamilyEndpoint||I.unlimitedFamilyFlowEndpoint||
I.updateCommentDialogEndpoint||I.updateCommentReplyDialogEndpoint||I.userFeedbackEndpoint||I.videoEditorEndpoint||I.ypcCancelSurveyEndpoint)return y=_.kf("polymer_report_client_url_requested_rate"),!D&&Math.random()<y&&_.tq(new _.g6("urlForEndpoint used on client endpoint",I)),null;var F=_.kf("polymer_report_missing_web_navigation_endpoint_rate");if(I.liveChatEndpoint||I.liveChatReplayEndpoint)F=0;if(!I.commandMetadata&&!I.clickTrackingParams&&Math.random()<F){var R={},O;for(O in I)R[O]="1";_.tq(new _.g6("Missing navigation data",
R))}R="";if(I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url)R=I.commandMetadata.webCommandMetadata.url;else if(I.searchEndpoint)Math.random()<F&&_.tq(new _.g6("Should not manually handle search",I)),R="/results?search_query="+encodeURIComponent(I.searchEndpoint.query).replace(/%20/g,"+"),I.searchEndpoint.params&&(R+="&sp="+I.searchEndpoint.params);else if(I.watchEndpoint)Math.random()<F&&_.tq(new _.g6("Should not manually handle watch",I)),R="/watch?v="+
I.watchEndpoint.videoId,I.watchEndpoint.playlistId&&(R+="&list="+I.watchEndpoint.playlistId),I.watchEndpoint.index&&(R+="&index="+I.watchEndpoint.index),I.watchEndpoint.startTimeSeconds&&(R+="&t="+I.watchEndpoint.startTimeSeconds);else if(I.browseEndpoint)F=I.browseEndpoint.browseId,(O=I.browseEndpoint.canonicalBaseUrl)?R=O:F&&(R=F.substr(0,2),R=R==="FE"?F==="FEwhat_to_watch"?"/":F==="FEmy_videos"?"/my_videos":"/feed/"+F.substr(2):R==="VL"?"/playlist?list="+F.substr(2):"/channel/"+F),R&&I.browseEndpoint.query&&
(R=NM(R+"/search",{query:I.browseEndpoint.query})),R&&I.browseEndpoint.params&&(R=NM(R,{params:I.browseEndpoint.params}));else{if(I.urlEndpoint)return I.urlEndpoint.url;I.signInEndpoint?(R="https://accounts.google.com/ServiceLogin",F={},_.e$.extend(F,y||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),y=F):I.uploadEndpoint?R="//www.youtube.com/upload":I.liveChatEndpoint?(R=I.liveChatEndpoint,F=_.e$.clone(R),_.b_(R.continuation)&&(O=Object.keys(R.continuation)[0],
F.continuation=R.continuation[O].continuation),R=NM("/youtubei/v1/live_chat/get_live_chat",F)):I.liveChatReplayEndpoint?(R=_.e$.clone(I.liveChatReplayEndpoint),R.currentPlayerState&&(_.e$.extend(R,R.currentPlayerState),delete R.currentPlayerState),R=NM("/youtubei/v1/live_chat/get_live_chat_replay",R)):I.liveChatItemContextMenuEndpoint?R=NM("/youtubei/v1/live_chat/get_item_context_menu",I.liveChatItemContextMenuEndpoint):I.liveChatPurchaseMessageEndpoint?R=NM("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
I.liveChatPurchaseMessageEndpoint):I.openSuperStickerBuyFlowCommand?R=NM("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",I.openSuperStickerBuyFlowCommand):I.videoEditEndpoint?R=NM("/edit",{video_id:I.videoEditEndpoint.videoId}):I.liveDashboardEndpoint?R=I.liveDashboardEndpoint.videoId?NM("/live_dashboard",{v:I.liveDashboardEndpoint.videoId}):"/live_dashboard":I.signalNavigationEndpoint&&I.signalNavigationEndpoint.signal&&I.signalNavigationEndpoint.signal==="WEBCAM"?R="/webcam":I.getPdgBuyFlowCommand&&
(R=NM(I.getPdgBuyFlowCommand.buyflowApiPath,{params:I.getPdgBuyFlowCommand.params}))}return R||D?NM(R,y||{}):(_.tq(new _.g6("Error: Can't construct url for endpoint","keys:"+Object.keys(I).sort().join(","),I)),null)};
Rb_=function(I){if(I){if(I.browseEndpoint)return!!I.browseEndpoint.nofollow;if(I.watchEndpoint)return!!I.watchEndpoint.nofollow;if(I.urlEndpoint)return!!I.urlEndpoint.nofollow}return!1};
_.LKW=function(I,y){var D=y+I,F=OV_.get(D);if(F)return F;I=y+"-"+I.replace(/([A-Z])/g,"-$1").toLowerCase();OV_.set(D,I);return I};
JU4=function(I){var y=_.vi(I,"action")||_.vi(I,"command")||_.vi(I,"endpoint");if(!y)return null;y=_.LKW(y,"yt");_.u(I,_.hq)&&(y+="-"+_.u(I,_.hq).signal.toLowerCase().replace(/_/g,"-"));return y};
t5S=function(I){try{var y=Object.keys(I)}catch(R){return[]}for(var D=0;D<y.length;D++){var F=y[D];if(w_4.test(F)||vw4.test(F))return SAC(I[F])}return[]};
SAC=function(I){return I.command?[I.command]:I.onExecutionAction?[I.onExecutionAction]:I.onResponseReceivedCommand?[I.onResponseReceivedCommand]:I.updateFlowCommand?[I.updateFlowCommand]:I.clientActions?I.clientActions:I.action?[I.action]:I.actions||I.commands||I.onResponseReceivedActions||I.onResponseReceivedCommands||I.onResponseReceivedEndpoints||[]};
KK5=function(I,y){y=y===void 0?!1:y;var D=_.nR().resolve(_.fR(xn));D||(D=new P9W,_.nR().addProvider({provide:xn,useValue:D}));return D&&I&&!_.e$.isEmpty(I)?D.getUrl(I,y):""};
U5H=function(I,y,D){D=D===void 0?"":D;if(y){I.data=y;var F=KK5(y);F?(yr(I,F),Rb_(y)||!QV(F)?I.rel="nofollow":I.removeAttribute("rel"),_.u(y,_.lK)&&_.u(y,_.lK).target==="TARGET_NEW_WINDOW"?I.target="_blank":D?I.target=D:I.removeAttribute("target")):(I.removeAttribute("href"),I.removeAttribute("rel"),I.removeAttribute("target"))}};
_.GU=function(I,y){var D=YM;if(IU())rU_(I,function(){var O=_.go.apply(0,arguments);Uf(D,function(){y.apply(null,_.Td(O))})});
else{var F=_.uK.getInstance(),R=aLJ(y);Mk4(function(){R.value=y});
_.LR(function(){var O={},w=_.qM(F,(O[I]=function(){var v=_.go.apply(0,arguments);Uf(D,function(){R.value.apply(R,_.Td(v))})},O));
return function(){var v={};_.EN(F,(v[I]="",v),w)}})}};
jkt=function(I){var y=YM,D=Za;return{getFn:function(){return function(F){if(!y.isDisposed){var R=function(){return I(F)};
D4(function(){return _.iS(R)},D)!==!0&&F.stopPropagation()}}}}};
owB=function(I){if(typeof I.children==="function")return I.children(),null;I=_.J(I.children);for(var y=I.next();!y.done;y=I.next())y=y.value,y();return null};
NvC=function(I){var y;return((y=I.prototype)==null?void 0:y.render)===void 0};
hbB=function(I){var y=Array.isArray(I.items)?I.items:Array.from(I.items);I=I.children;return(Array.isArray(y)?y:Array.from(y)).map(I)};
lyA=function(I,y,D){D=D===void 0?!1:D;D4(function(){return x5q(I,y,D)})};
x5q=function(I,y,D){var F=null;RU++;D=(D===void 0?0:D)?uPq:qA5;try{F=D(I,function(){XS(y)}),Li(!1)}catch(R){throw Li(!0),R;
}return F===null?I:F};
XS=function(I){if(I!==void 0&&I!==null)if(I instanceof AI)for(var y=N3;hI()!=null&&ILS in hI()&&y.contains(hI());)uF();else if(Array.isArray(I))for(y=_.J(I),I=y.next();!I.done;I=y.next())XS(I.value);else if(I instanceof an||I instanceof N_||"function"==typeof _.Qj&&I instanceof _.Qj)gCL(I.toString());else if(M3(I)){if(hI()!==I){var D,F;y=(F=(D=Za)==null?void 0:D.name)!=null?F:"unknown";throw Error("ic`"+I.tagName+"`"+y);}uF()}else if(I!=null&&I.contentKind===aU||I instanceof Dt||UUe(I))for(y=jVC(I),
y=Array.from(y.childNodes),y=_.J(y),I=y.next();!I.done;I=y.next())N3.appendChild(I.value),uF();else if(ba(I)&&(I=I.toString()),D=typeof I,D==="boolean"||D==="number"||D==="string")gCL(I);else if(typeof I==="function"){y=N3;var R=hI();R&&(R._isSignalTextNode||R._isSafeOrSanitizedHtmlNode)||AR4(y,R,I);uF()}else if(I.type===hbB)XS(I.type(Object.assign({},I.props,{children:I.children[0]})));else{if(typeof I.type==="string"){a:{I.__open||HZt(I.type,I.props.idomKey);R=N3;for(var O in I.props)if(I.props[O]!==
Ewe){var w=I.props[O];D=Ef;D.push(O);D.push(w)}O=Ma.attributes;O=O===void 0?Q9:O;w=N3;F=Cg5(w);D=O;O=Ef;F=F._attrsArr||(F._attrsArr=mQJ(O.length));for(var v=!F.length||!1,P=0;P<O.length;P+=2){var K=O[P];if(v)F[P]=K;else if(F[P]!==K)break;var r=O[P+1];if(v||F[P+1]!==r)F[P+1]=r,ZZq(w,K,r,D)}if(P<O.length||P<F.length){for(P=v=P;P<F.length;P+=2)Yn[F[P]]=F[P+1];for(P=v;P<O.length;P+=2)v=O[P],K=O[P+1],Yn[v]!==K&&ZZq(w,v,K,D),F[P]=v,F[P+1]=K,delete Yn[v];prW(F,O.length);for(y in Yn)ZZq(w,y,void 0,D),delete Yn[y]}y=
GEA;GEA=w=X8.length;for(D=y;D<w;D+=5)(0,X8[D])(X8[D+1],X8[D+2],X8[D+3],X8[D+4]);GEA=y;prW(X8,y);prW(O,0);iDJ(R,I.props,!0);if((I.props.skip||I.props.skipchildren)&&N3.hasChildNodes())lF=N3.lastChild;else{if(I.type==="style"&&EiH(I.children)===null){lF=N3.lastChild;y=void 0;break a}XS(I.children)}eAH();I.__open&&(I.__open=!1);JRC(R,I.props);y=R}return y}if(I.type===_.ni)XS(I.children);else if(!X_J(I)){y=I;try{Qke(y)}catch(N){I=N,(w=Ma.handleError)==null||w.call.apply(w,[Ma].concat(_.Td(rZ(I,(R=y.type)==
null?void 0:R.TAG_NAME))))}y.__open&&(eAH(),y.__open=!1)}}};
YAC=function(I,y){var D;NvC(I)?D=new TB(y,I):D=new I(y);D.__type=I;D.__updateContext={nextState:D.state,isForced:!1};return D};
Qke=function(I){var y=I.type,D=y.TAG_NAME;if(y===owB)I.props.children=I.children,y(I.props);else{I.children.length>0&&(I.props.children=I.children);var F;(F=I.props).idomKey||(F.idomKey=y);if(D){var R=HZt(D,I.props.idomKey);I.__open=!0;var O=R.__instance}O||(O=YAC(y,I.props),O.props=null,R&&(R.__instance=O,O.el=R));var w;D=((w=O.__updateContext)!=null?w:{nextState:O.state,isForced:!1}).nextState;O.__updateContext=void 0;y.getDerivedStateFromProps&&(D=y.getDerivedStateFromProps(I.props,D));O.props=
I.props;O.state=D;w=function(){var v=O;HV.beforeRender(v);var P=v.render(v.props);P?(v.props.idomKey&&(P.props.idomKey=v.props.idomKey),v=P):v=void 0;if(P=v)if(P.__open=I.__open,v=XS(P),I.__open=P.__open,!y.TAG_NAME)if(v)y.TAG_NAME=v.tagName.toLowerCase(),v.__instance=O,O.el=v;else{var K;if((K=O.hooks)==null?0:K.length){var r;(r=Ma.handleError)==null||r.call.apply(r,[Ma].concat(_.Td(rZ(Error("pd")))))}}O.didPatch();HV.didPatch(O)};
(D=O.functionComponent)?WAe(D,w,O.props.debugInstance):w()}};
X_J=function(I){var y=I.type;if(!NvC(y)||y===owB||y.componentType===gR)return!1;I.props.children=I.children.length>1?I.children:I.children[0];var D,F=(D=I.props.idomKey)!=null?D:I.type,R;if(hI()&&((R=hI()[Ci])==null?void 0:R.key)===F){var O=hI(),w=O[Ci];if(!w)throw Error("hc`"+O.tagName);var v;(v=w.updateSignalsFromIdomProps)==null||v.call(w,I.props);fyW(w);return!0}if(nwq.has(y.name))throw v=y.name,y=(w=(O=Za)==null?void 0:O.name)!=null?w:"unknown",Error("gc`"+v+"`"+y);eLt(I.type,I.props,I.children);
I.props.renderedFromIdom=!0;(v=WAe(I.type,function(){return a_B(I.type,I.props)},I.props.debugInstance))&&p_q(v);
return!0};
m5B=function(I){for(var y=0;y<iF(I).length;y++)uF()};
fyW=function(I){var y=M5S();if(y)m5B(y);else for(var D=0;D<I.numNodes;D++)(y=M5S())?m5B(y):uF()};
M5S=function(){var I;return(I=hI()[Ci])==null?void 0:I.sourceDynamicRange};
p_q=function(I){I=S_H(I);I=Array.isArray(I)?I:[I];I=_.J(I);for(var y=I.next();!y.done;y=I.next())N3.insertBefore(y.value,hI()),uF()};
zbq=function(){var I=WQC(),y=h3B(function(){return{value:0}},[]);
return[y.value,function(D){if(ej!==null){var F;(F=Ma.handleError)==null||F.call.apply(F,[Ma].concat(_.Td(rZ(Error("qd")))))}y.value=typeof D==="function"?D(y.value):D;I.__updateContext={nextState:I.state,isForced:!0};D=fe(I.effectContext);F=pi(!1);try{if(I.el){var R,O={},w=(O.props=I.props,O.type=I.__type,O.children=(R=I.props.children)!=null?R:[],O[fi]=!0,O);try{lyA(I.el,w,!0)}catch(K){var v,P;(P=Ma.handleError)==null||P.call.apply(P,[Ma].concat(_.Td(rZ(K,(v=I.__type)==null?void 0:v.TAG_NAME))))}}}finally{pi(F),
fe(D)}}]};
_.fT=function(I,y){var D=YM,F=function(R){Uf(D,function(){y(R)})};
window.addEventListener(I,F,void 0);_.tI(function(){window.removeEventListener(I,F,void 0)})};
_.pT=function(I){var y=YM;return function(D){var F,R=(F=I.observer)!=null?F:_.nR().resolve(nT);F=kEL(D);var O=[];I.showOption&&O.push(R.observe(D,function(){Uf(y,function(){I.visibilityCallback(!0,D)})},I.showOption));
I.hideOption&&O.push(R.observe(D,function(){Uf(y,function(){I.visibilityCallback(!1,D)})},I.hideOption));
I.prescanOption&&I.prescanCallback&&O.push(R.observe(D,function(){Uf(y,function(){I.prescanCallback()})},I.prescanOption));
var w;F.visibilityMonitorKeys=((w=F.visibilityMonitorKeys)!=null?w:[]).concat(O)}};
kEL=function(I){var y;return(y=I.polymerController)!=null?y:I};
WKq=function(I,y){var D=d5q;return _.t(_.ni,null,gk4(Ma.enableLazyTsx,function(){return _.t(ayH,{id:D,value:I,children:y})},function(){var F=cUe(D,I);
mO(F);F=fe(F);try{return y()}finally{fe(F)}}))};
ayH=function(I){var y=I.children;I=cUe(I.id,I.value);mO(I);I=fe(I);try{return _.t(_.ni,null,$4(y()))}finally{fe(I)}};
cUe=function(I,y){return Object.assign(Object.create(C9_),{id:I,contextValue:y})};
Bv5=function(I){var y,D=YM;_.JI(function(){var F=fe(D),R=pi(!y);try{if(y)lyA(y,I.children(),!0);else if(y=$4(I.children()),!(y instanceof Element))throw Error("rd");}finally{pi(R),fe(F)}},"i");
return y};
AUA=function(I){var y=new iVA;y.abort(I);return y.signal};
$5q=function(){if(this.aborted){var I;throw(I=this.reason)!=null?I:new DOMException("signal is aborted without reason","AbortError");}};
ebq=function(I){var y=new iVA;I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.aborted){y.abort(D.reason);break}else bVS.set(y.signal,y),HV_.add(D,y.signal);return y.signal};
Tv_=function(){for(var I=_.J(HV_.get(this)),y=I.next();!y.done;y=I.next())bVS.get(y.value).abort(this.reason)};
skq=function(I){var y=new iVA;setTimeout(function(){y.abort(new DOMException("signal timed out","TimeoutError"))},I);
return y.signal};
V5t=function(){var I,y;return{promise:new Promise(function(D,F){I=D;y=F}),
resolve:I,reject:y}};
gwW=function(I){var y=V5t(),D=y.promise;ZVL.set(I,{promise:D,resolve:y.resolve,reject:y.reject});mA||(mA=[],queueMicrotask(function(){var F=[].concat(_.Td(mA));mA=null;var R=Ou().loadMultiple(F);F=_.J(F);for(var O=F.next();!O.done;O=F.next())O=O.value,R[O].then(ZVL.get(O).resolve,ZVL.get(O).reject)}));
mA.push(I);return D};
ys_=function(I){I=I.buf.charCodeAt(I.pos++);return I3q[I]};
MM=function(I){var y=0,D=0;do{var F=ys_(I);y|=(F&31)<<D;D+=5}while(F&32);return y<0?y+4294967296:y};
DvL=function(I,y,D,F){var R=!0;R=R===void 0?!1:R;y=y===void 0?!1:y;F=F===void 0?{}:F;var O=F.cssRowKey||"",w=F.combinedSignature||"";!O&&window&&window._F_cssRowKey&&(O=window._F_cssRowKey,!w&&window._F_combinedSignature&&(w=window._F_combinedSignature));if(O&&typeof window._F_installCss!=="function")throw Error("Bd");var v=F.loaderClass||_.zU;I=lJA(I===void 0?"base-js":I);y=new v(zDH(q6_("",I)),O,w,R,y);R=F.useCors||I&&I.hasAttribute("crossorigin");I=F.corsMode||I&&I.getAttribute("crossorigin");
R&&(y.useCors_=R);I&&(y.corsMode_=I);F.urlMaxLength&&(y.urlMaxLength=F.urlMaxLength);D&&(y.insertPos=D);F.fetchPriority&&(y.fetchPriority=F.fetchPriority);var P=Ou();P.JSC$10330_loader_=y;P.setBatchModeEnabled(!0);_.kn=F.batchingStrategy==="BATCH"?gwW:function(K){return Promise.resolve(P.load(K))}};
Oxe=function(I,y,D){FPH(I,y);I[y][RpW].unshift(D)};
FPH=function(I,y){if(!I[y]||!I[y][RpW]){var D=I[y],F=D?[D]:[];I[y]=function(){for(var R=_.J(F),O=R.next();!O.done;O=R.next())O.value.apply(this,arguments)};
I[y][RpW]=F}};
LPH=function(I){if(!I)return[];var y=[];I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,Array.isArray(D)?y.push.apply(y,_.Td(LPH(D))):y.push(D);return y};
_.af=function(I,y){if(I&&JsB.test(I)||I==="//")return I;if(wwJ===void 0){wwJ=!1;try{var D=new URL("b","http://a");D.pathname="c%20d";wwJ=D.href==="http://a/c%20d"}catch(F){}}y||(y=document.baseURI||window.location.href);if(wwJ)try{return(new URL(I,y)).href}catch(F){return I}dI||(dI=document.implementation.createHTMLDocument("temp"),dI.base=dI.createElement("base"),dI.head.appendChild(dI.base),dI.anchor=dI.createElement("a"),dI.body.appendChild(dI.anchor));dI.base.href=y;dI.anchor.href=I;return dI.anchor.href||
I};
SR5=function(I,y){return I.replace(v1J,function(D,F,R,O){return F+"'"+_.af(R.replace(/["']/g,""),y)+"'"+O})};
tz5=function(I){return I.substring(0,I.lastIndexOf("/")+1)};
UvA=function(){P05=!1;for(var I=cu.length,y=0;y<I;y++){var D=cu[y];if(D)try{D()}catch(F){setTimeout(function(){throw F;})}}cu.splice(0,I);
KPq+=I};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(I){console.log("["+I.is+"]: registered")};
jzH=function(I){rsq.push(I)};
Wu=function(I){return o1B[I]||(o1B[I]=I.indexOf("-")<0?I:I.replace(NT5,function(y){return y[1].toUpperCase()}))};
CT=function(I){return o1B[I]||(o1B[I]=I.replace(hpJ,"-$1").toLowerCase())};
xvW=function(I,y){var D=y.parentInfo&&xvW(I,y.parentInfo);if(D)for(I=D.firstChild,D=0;I;I=I.nextSibling){if(y.parentIndex===D++)return I}else return I};
l3A=function(I,y){I=I._methodHost||I;return function(D){if(I[y])I[y](D,D.detail);else console.warn("listener method `"+y+"` not defined")}};
Bu=function(I){return I.indexOf(".")>=0};
iK=function(I){var y=I.indexOf(".");return y===-1?I:I.slice(0,y)};
u9W=function(I,y){return I.indexOf(y+".")===0};
Aq=function(I,y){return y.indexOf(I+".")===0};
$n=function(I,y,D){return y+D.slice(I.length)};
qRq=function(I,y){return I===y||u9W(I,y)||Aq(I,y)};
bK=function(I){if(Array.isArray(I)){for(var y=[],D=0;D<I.length;D++)for(var F=I[D].toString().split("."),R=0;R<F.length;R++)y.push(F[R]);return y.join(".")}return I};
E1B=function(I){return Array.isArray(I)?bK(I).split("."):I.toString().split(".")};
Hu=function(I,y,D){y=E1B(y);for(var F=0;F<y.length;F++){if(!I)return;I=I[y[F]]}D&&(D.path=y.join("."));return I};
GrC=function(I,y,D){var F=E1B(y),R=F[F.length-1];if(F.length>1){for(y=0;y<F.length-1;y++)if(I=I[F[y]],!I)return;I[R]=D}else I[y]=D;return F.join(".")};
XwW=function(I,y,D){var F=I[y];if(!F)F=I[y]={};else if(!I.hasOwnProperty(y)&&(F=I[y]=Object.create(I[y]),D))for(var R in F)for(I=F[R],y=F[R]=Array(I.length),D=0;D<I.length;D++)y[D]=I[D];return F};
TU=function(I,y,D,F,R,O){if(y){var w=!1,v=eb++,P;for(P in D){var K=R?iK(P):P;if(K=y[K])for(var r=0,N=K.length,h=void 0;r<N&&(h=K[r]);r++)h.info&&h.info.lastRun===v||R&&!QzC(P,h.trigger)||(h.info&&(h.info.lastRun=v),h.fn(I,P,D,F,h.info,R,O),w=!0)}return w}return!1};
QzC=function(I,y){if(y){var D=y.name;return D==I||!(!y.structured||!u9W(D,I))||!(!y.wildcard||!Aq(D,I))}return!0};
YRq=function(I,y,D,F,R){y=typeof R.method==="string"?I[R.method]:R.method;D=R.property;y?y.call(I,I.__data[D],F[D]):R.dynamicFn||console.warn("observer method `"+R.method+"` not defined")};
f3q=function(I,y,D,F){D={value:D,queueProperty:!0};F&&(D.path=F);(0,_.sN)(I).dispatchEvent(new CustomEvent(y,{detail:D}))};
n1H=function(I,y,D,F,R,O){O=(F=(O?iK(y):y)!=y?y:null)?Hu(I,F):I.__data[y];F&&O===void 0&&(O=D[y]);f3q(I,R.eventName,O,F)};
pwo=function(I,y,D,F,R){D=I.__data[y];ZM&&(D=ZM(D,R.attrName,"attribute",I));I._propertyToAttribute(y,R.attrName,D)};
MzL=function(I){var y=I.constructor.__orderedComputedDeps;if(!y){y=new Map;for(var D=I.__computeEffects,F=mvB(I),R=F.counts,O=F.ready,w=F.total;F=O.shift();)y.set(F,y.size),(F=D[F])&&F.forEach(function(v){v=v.info.methodInfo;--w;--R[v]===0&&O.push(v)});
w!==0&&console.warn("Computed graph for "+I.localName+" incomplete; circular?");I.constructor.__orderedComputedDeps=y}return y};
mvB=function(I){var y=I.__computeInfo,D={};I=I.__computeEffects;var F=[],R=0,O;for(O in y){var w=y[O];R+=D[O]=w.args.filter(function(P){return!P.literal}).length+(w.dynamicFn?1:0)}for(var v in I)y[v]||F.push(v);
return{counts:D,ready:F,total:R}};
krH=function(I,y,D,F,R){y=zpL(I,y,D,F,R);if(y===gI)return!1;R=R.methodInfo;if(I.__dataHasAccessor&&I.__dataHasAccessor[R])return I._setPendingProperty(R,y,!0);I[R]=y;return!1};
csq=function(I,y,D,F,R,O,w){D.bindings=D.bindings||[];F={kind:F,target:R,parts:O,literal:w,isCompound:O.length!==1};D.bindings.push(F);F.target&&F.kind!="attribute"&&F.kind!="text"&&!F.isCompound&&F.parts[0].mode==="{"&&(D=F.parts[0],O=D.negate,F.listenerEvent=D.event||CT(R)+"-changed",F.listenerNegate=O);R=y.nodeInfoList.length;for(D=0;D<F.parts.length;D++){var v=F.parts[D];v.compoundIndex=D;O=I;w=y;var P=F,K=v,r=R;if(!K.literal)if(P.kind==="attribute"&&P.target[0]==="-")console.warn("Cannot set attribute "+
P.target+' because "-" is not a valid attribute starting character');else for(v=K.dependencies,P={index:r,binding:P,part:K,evaluator:O},K=0;K<v.length;K++)r=v[K],typeof r=="string"&&(r=dvS(r),r.wildcard=!0),O._addTemplatePropertyEffect(w,r.rootProperty,{fn:a3q,info:P,trigger:r})}};
a3q=function(I,y,D,F,R,O,w){w=w[R.index];var v=R.binding,P=R.part;O&&P.source&&y.length>P.source.length&&v.kind=="property"&&!v.isCompound&&w.__isPropertyEffectsClient&&w.__dataHasAccessor&&w.__dataHasAccessor[v.target]?(D=D[y],y=$n(P.source,v.target,y),w._setPendingPropertyOrPath(y,D,!1,!0)&&I._enqueueClient(w)):(y=R.evaluator._evaluateBinding(I,P,y,D,F,O),y!==gI&&(v.isCompound&&(D=w.__dataCompoundStorage[v.target],D[P.compoundIndex]=y,y=D.join("")),v.kind==="attribute"||v.target!=="textContent"&&
(v.target!=="value"||w.localName!=="input"&&w.localName!=="textarea")||(y=y==void 0?"":y),P=y,ZM&&(P=ZM(P,v.target,v.kind,w)),v.kind=="attribute"?I._valueToNodeAttribute(w,P,v.target):(v=v.target,w.__isPropertyEffectsClient&&w.__dataHasAccessor&&w.__dataHasAccessor[v]?w.__readOnly&&w.__readOnly[v]||w._setPendingProperty(v,P)&&I._enqueueClient(w):I._setUnmanagedPropertyToNode(w,v,P))))};
WPo=function(I,y,D){if(D.listenerEvent){var F=D.parts[0];I.addEventListener(D.listenerEvent,function(R){var O=D.target,w=F.source,v=F.negate,P=R.detail,K=P&&P.path;K?(w=$n(O,w,K),R=P&&P.value):R=R.currentTarget[O];y.__readOnly&&y.__readOnly[w]||!y._setPendingPropertyOrPath(w,v?!R:R,!0,!!K)||P&&P.queueProperty||y._invalidateProperties()})}};
C0_=function(I,y,D,F,R,O){O=y.static||O&&(typeof O!=="object"||O[y.methodName]);R={methodName:y.methodName,args:y.args,methodInfo:R,dynamicFn:O};for(var w=0,v=void 0;w<y.args.length&&(v=y.args[w]);w++)v.literal||I._addPropertyEffect(v.rootProperty,D,{fn:F,info:R,trigger:v});O&&I._addPropertyEffect(y.methodName,D,{fn:F,info:R});return R};
zpL=function(I,y,D,F,R){F=I._methodHost||I;var O=F[R.methodName];if(O)return I=I._marshalArgs(R.args,y,D),I===gI?gI:O.apply(F,I);R.dynamicFn||console.warn("method `"+R.methodName+"` not defined")};
BT5=function(I){for(var y="",D=0;D<I.length;D++)y+=I[D].literal||"";return y};
$vC=function(I){if(I=I.match(/([^\s]+?)\(([\s\S]*)\)/)){var y={methodName:I[1],static:!0,args:ixq};return I[2].trim()?AsW(I[2].replace(/\\,/g,"&comma;").split(","),y):y}return null};
AsW=function(I,y){y.args=I.map(function(D){D=dvS(D);D.literal||(y.static=!1);return D},this);
return y};
dvS=function(I){I=I.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var y={name:I,value:"",literal:!1},D=I[0];D==="-"&&(D=I[1]);D>="0"&&D<="9"&&(D="#");switch(D){case "'":case '"':y.value=I.slice(1,-1);y.literal=!0;break;case "#":y.value=Number(I),y.literal=!0}y.literal||(y.rootProperty=iK(I),y.structured=Bu(I),y.structured&&(y.wildcard=I.slice(-2)==".*",y.wildcard&&(y.name=I.slice(0,-2))));return y};
bxJ=function(I,y,D){I=Hu(I,D);I===void 0&&(I=y[D]);return I};
Hxq=function(I,y,D,F){F={indexSplices:F};I5&&!I._overrideLegacyUndefined&&(y.splices=F);I.notifyPath(D+".splices",F);I.notifyPath(D+".length",y.length);I5&&!I._overrideLegacyUndefined&&(F.indexSplices=[])};
yG=function(I,y,D,F,R,O){Hxq(I,y,D,[{index:F,addedCount:R,removed:O,object:y,type:"splice"}])};
epH=function(I){I=SR5((I.body?I.body:I).textContent,I.baseURI);var y=document.createElement("style");y.textContent=I;return y};
szJ=function(I){I=I.trim().split(/\s+/);for(var y=[],D=0;D<I.length;D++)y.push.apply(y,_.Td(TTq(I[D])));return y};
TTq=function(I){var y=D6.import(I);if(!y)return console.warn("Could not find style data in module named",I),[];if(y._styles===void 0){I=[];I.push.apply(I,_.Td(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y)));var D=y.querySelector("template");D&&I.push.apply(I,_.Td(VzJ(D,y.assetpath)));y._styles=I}return y._styles};
VzJ=function(I,y){if(!I._styles){for(var D=[],F=I.content.querySelectorAll("style"),R=0;R<F.length;R++){var O=F[R],w=O.getAttribute("include");w&&D.push.apply(D,_.Td(szJ(w).filter(function(v,P,K){return K.indexOf(v)===P})));
y&&(O.textContent=SR5(O.textContent,y));D.push(O)}I._styles=D}return I._styles};
ZxB=function(I){return(I=D6.import(I))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(I){var y=[];I=I.querySelectorAll("link[rel=import][type~=css]");for(var D=0;D<I.length;D++){var F=I[D];if(F.import){var R=F.import;if((F=F.hasAttribute("shady-unscoped"))&&!R._unscopedStyle){var O=epH(R);O.setAttribute("shady-unscoped","");R._unscopedStyle=O}else R._style||(R._style=epH(R));y.push(F?R._unscopedStyle:R._style)}}return y};
I$q=function(I){I=I.trim().split(/\s+/);for(var y="",D=0;D<I.length;D++)y+=g1C(I[D]);return y};
g1C=function(I){var y=D6.import(I);if(y&&y._cssText===void 0){var D=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y),F=y.querySelector("template");F&&(D+=yTA(F,y.assetpath));y._cssText=D||null}y||console.warn("Could not find style data in module named",I);return y&&y._cssText||""};
yTA=function(I,y){var D="";I=VzJ(I,y);for(y=0;y<I.length;y++){var F=I[y];F.parentNode&&F.parentNode.removeChild(F);D+=F.textContent}return D};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(I){var y="";I=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I);for(var D=0;D<I.length;D++)y+=I[D].textContent;return y};
FT=function(I,y){return{index:I,removed:[],addedCount:y}};
Fr4=function(I,y,D,F){var R=0,O=0,w=0,v=0,P=Math.min(y-R,F-O);if(R==0&&O==0)a:{for(w=0;w<P;w++)if(I[w]!==D[w])break a;w=P}if(y==I.length&&F==D.length){v=I.length;for(var K=D.length,r=0;r<P-w&&D0q(I[--v],D[--K]);)r++;v=r}R+=w;O+=w;y-=v;F-=v;if(y-R==0&&F-O==0)return[];if(R==y){for(y=FT(R,0);O<F;)y.removed.push(D[O++]);return[y]}if(O==F)return[FT(R,y-R)];P=R;w=O;F=F-w+1;v=y-P+1;y=Array(F);for(K=0;K<F;K++)y[K]=Array(v),y[K][0]=K;for(K=0;K<v;K++)y[0][K]=K;for(K=1;K<F;K++)for(r=1;r<v;r++)if(I[P+r-1]===
D[w+K-1])y[K][r]=y[K-1][r-1];else{var N=y[K-1][r]+1,h=y[K][r-1]+1;y[K][r]=N<h?N:h}P=y.length-1;w=y[0].length-1;F=y[P][w];for(I=[];P>0||w>0;)P==0?(I.push(2),w--):w==0?(I.push(3),P--):(v=y[P-1][w-1],K=y[P-1][w],r=y[P][w-1],N=K<r?K<v?K:v:r<v?r:v,N==v?(v==F?I.push(0):(I.push(1),F=v),P--,w--):N==K?(I.push(3),P--,F=K):(I.push(2),w--,F=r));I.reverse();y=void 0;P=[];for(w=0;w<I.length;w++)switch(I[w]){case 0:y&&(P.push(y),y=void 0);R++;O++;break;case 1:y||(y=FT(R,0));y.addedCount++;R++;y.removed.push(D[O]);
O++;break;case 2:y||(y=FT(R,0));y.addedCount++;R++;break;case 3:y||(y=FT(R,0)),y.removed.push(D[O]),O++}y&&P.push(y);return P};
RMe=function(I,y){return Fr4(I,I.length,y,y.length)};
D0q=function(I,y){return I===y};
LrC=function(I){if(I instanceof OzL)return I.value;throw Error("Jd`"+I);};
JT_=function(I,y){for(var D in y)D===null?I.style.removeProperty(D):I.style.setProperty(D,y[D])};
wnA=function(I,y){return(I=window.getComputedStyle(I).getPropertyValue(y))?I.trim():""};
Pyo=function(I){requestAnimationFrame(function(){vmL?vmL(I):(SIH||(SIH=new Promise(function(y){t0J=y}),document.readyState==="complete"?t0J():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&t0J()})),SIH.then(function(){I&&I()}))})};
rTB=function(I){Kre=I&&I.shimcssproperties?!1:U0H||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
x0o=function(I){if(!(jLB.indexOf(I)>-1)&&I!=="touchend"&&om4&&Nuo&&hMS)return{passive:!0}};
Em_=function(I){for(var y=l$W?["click"]:jLB,D=0,F;D<y.length;D++)F=y[D],I?(uq5.length=0,document.addEventListener(F,qIq,!0)):document.removeEventListener(F,qIq,!0)};
R5=function(I){var y=I.type;return jLB.indexOf(y)>-1?y==="mousemove"?(y=I.buttons===void 0?1:I.buttons,I instanceof window.MouseEvent&&!Gpe&&(y=Xno[I.which]||0),!!(y&1)):(I.button===void 0?0:I.button)===0:!1};
QLL=function(I){if(I.type==="click"){if(I.detail===0)return!0;var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);if(!y.nodeType||y.nodeType!==Node.ELEMENT_NODE)return!0;y=y.getBoundingClientRect();var D=I.pageX;I=I.pageY;return!(D>=y.left&&D<=y.right&&I>=y.top&&I<=y.bottom)}return!1};
YIC=function(I,y,D){I.movefn=y;I.upfn=D;document.addEventListener("mousemove",y);document.addEventListener("mouseup",D)};
Jp=function(I){document.removeEventListener("mousemove",I.movefn);document.removeEventListener("mouseup",I.upfn);I.movefn=null;I.upfn=null};
f$q=function(I,y){for(var D=document.elementFromPoint(I,y),F=D;F&&F.shadowRoot&&!window.ShadyDOM;){var R=F;F=F.shadowRoot.elementFromPoint(I,y);if(R===F)break;F&&(D=F)}return D};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var y=nmt(I);return y.length>0?y[0]:I.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var y=I.type,D=I.currentTarget.__polymerGestures;if(D&&(D=D[y])){if(!I.__polymerGesturesHandled&&(I.__polymerGesturesHandled={},y.slice(0,5)==="touch")){var F=I.changedTouches[0];y==="touchstart"&&I.touches.length===1&&(pn_=F.identifier);if(pn_!==F.identifier)return;om4||(y==="touchstart"||y==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)}F=
I.__polymerGesturesHandled;if(!F.skip){for(var R=0,O;R<wN.length;R++)O=wN[R],D[O.name]&&!F[O.name]&&O.flow&&O.flow.start.indexOf(I.type)>-1&&O.reset&&O.reset();for(R=0;R<wN.length;R++)O=wN[R],D[O.name]&&!F[O.name]&&(F[O.name]=!0,O[y](I))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var y=I.changedTouches[0],D=I.type;if(D==="touchstart")m04=y.clientX,M0C=y.clientY,zMA=!1;else if(D==="touchmove"&&!zMA){zMA=!0;D="auto";for(var F=nmt(I),R=0,O;R<F.length;R++)if(O=F[R],O.__polymerGesturesTouchAction){D=O.__polymerGesturesTouchAction;break}F=!1;R=Math.abs(m04-y.clientX);y=Math.abs(M0C-y.clientY);I.cancelable&&(D==="none"?F=!0:D==="pan-x"?F=y>R:D==="pan-y"&&(F=R>y));F?I.preventDefault():
vr("track")}};
tp=function(I,y,D){return Su[y]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I,y,D),!0):!1};
Pr=function(I,y,D){return Su[y]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I,y,D),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,y,D){var F=Su[y],R=F.deps,O=F.name,w=I.__polymerGestures;w||(I.__polymerGestures=w={});for(var v=0,P,K;v<R.length;v++)P=R[v],l$W&&jLB.indexOf(P)>-1&&P!=="click"||((K=w[P])||(w[P]=K={_count:0}),K._count===0&&I.addEventListener(P,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,x0o(P)),K[O]=(K[O]||0)+1,K._count=(K._count||0)+1);I.addEventListener(y,D);F.touchAction&&_.KZ(I,F.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,y,D){var F=Su[y],R=F.deps;F=F.name;var O=I.__polymerGestures;if(O)for(var w=0,v,P;w<R.length;w++)v=R[w],(P=O[v])&&P[F]&&(P[F]=(P[F]||1)-1,P._count=(P._count||1)-1,P._count===0&&I.removeEventListener(v,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,x0o(v)));I.removeEventListener(y,D)};
kpS=function(I){wN.push(I);for(var y=0;y<I.emits.length;y++)Su[I.emits[y]]=I};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){for(var y=0,D;y<wN.length;y++){D=wN[y];for(var F=0,R;F<D.emits.length;F++)if(R=D.emits[F],R===I)return D}return null};
_.KZ=function(I,y){om4&&I instanceof HTMLElement&&U1.run(function(){I.style.touchAction=y});
I.__polymerGesturesTouchAction=y};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,y,D){y=new Event(y,{bubbles:!0,cancelable:!0,composed:!0});y.detail=D;(0,_.sN)(I).dispatchEvent(y);y.defaultPrevented&&(I=D.preventer||D.sourceEvent)&&I.preventDefault&&I.preventDefault()};
vr=function(I){I=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I.info&&(I.info.prevent=!0)};
rN=function(I,y,D,F){y&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,I,{x:D.clientX,y:D.clientY,sourceEvent:D,preventer:F,prevent:function(R){return vr(R)}})};
d0e=function(I,y,D){if(I.prevent)return!1;if(I.started)return!0;D=Math.abs(I.y-D);return Math.abs(I.x-y)>=5||D>=5};
a$S=function(I,y,D){if(y){var F=I.moves[I.moves.length-2],R=I.moves[I.moves.length-1],O=R.x-I.x,w=R.y-I.y,v=0;if(F){var P=R.x-F.x;v=R.y-F.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,"track",{state:I.state,x:D.clientX,y:D.clientY,dx:O,dy:w,ddx:P,ddy:v,sourceEvent:D,hover:function(){return f$q(D.clientX,D.clientY)}})}};
Wrt=function(I,y,D){var F=Math.abs(y.clientX-I.x),R=Math.abs(y.clientY-I.y),O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D||y);!O||cTA[O.localName]&&O.hasAttribute("disabled")||!(isNaN(F)||isNaN(R)||F<=25&&R<=25||QLL(y))||I.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,"tap",{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:D})};
CyH=function(I,y,D,F,R){var O;R&&(O=typeof D==="object"&&D!==null)&&(F=I.__dataTemp[y]);F=F!==D&&(F===F||D===D);O&&F&&(I.__dataTemp[y]=D);return F};
izJ=function(){if(ju&&!o5){if(!BuB){BuB=!0;var I=document.createElement("style");I.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(I)}return!0}return!1};
$0e=function(){return ATH};
bz5=function(I,y){ATH=I;Object.setPrototypeOf(I,y.prototype);new y;ATH=null};
HzL=function(I,y){for(var D=0;D<y.length;D++){var F=y[D];if(!!I!=!!F.__hideTemplateChildren__)if(F.nodeType===Node.TEXT_NODE)I?(F.__polymerTextContent__=F.textContent,F.textContent=""):F.textContent=F.__polymerTextContent__;else if(F.localName==="slot")if(I)F.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.sN)((0,_.sN)(F).parentNode).replaceChild(F.__polymerReplaced__,F);else{var R=F.__polymerReplaced__;R&&(0,_.sN)((0,_.sN)(R).parentNode).replaceChild(F,R)}else F.style&&(I?(F.__polymerDisplay__=
F.style.display,F.style.display="none"):F.style.display=F.__polymerDisplay__);F.__hideTemplateChildren__=I;F._showHideChildren&&F._showHideChildren(I)}};
eMq=function(I){return(I=I.__dataHost)&&I._methodHost||I};
V0W=function(I,y,D){var F=D.mutableData?TuC:NQ;hp.mixin&&(F=hp.mixin(F));var R=function(){return F.apply(this,arguments)||this};
_.E(R,F);R.prototype.__templatizeOptions=D;R.prototype._bindTemplate(I);sLe(R,I,y,D);return R};
DVS=function(I,y,D,F){var R=D.forwardHostProp;if(R&&y.hasHostProps){var O=I.localName=="template",w=y.templatizeTemplateClass;if(!w){if(O){var v=D.mutableData?ZzS:gmA;w=function(){return v.apply(this,arguments)||this};
_.E(w,v);w=y.templatizeTemplateClass=w}else{var P=I.constructor;w=function(){return P.apply(this,arguments)||this};
_.E(w,P);w=y.templatizeTemplateClass=w}var K=y.hostProps,r;for(r in K)w.prototype._addPropertyEffect("_host_"+r,w.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:IhJ(R)}),w.prototype._createNotifyingProperty("_host_"+r);xC&&F&&y4A(y,D,F)}I.__dataProto&&Object.assign(I.__data,I.__dataProto);if(O)bz5(I,w),I.__dataTemp={},I.__dataPending=null,I.__dataOld=null,I._enableProperties();else{Object.setPrototypeOf(I,w.prototype);y=y.hostProps;for(var N in y)N="_host_"+N,N in I&&(y=I[N],delete I[N],I.__data[N]=
y)}}};
IhJ=function(I){return function(y,D,F){I.call(y.__templatizeOwner,D.substring(6),F[D])}};
sLe=function(I,y,D,F){var R=D.hostProps||{},O;for(O in F.instanceProps){delete R[O];var w=F.notifyInstanceProp;w&&I.prototype._addPropertyEffect(O,I.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:FVW(w)})}if(F.forwardHostProp&&y.__dataHost)for(var v in R)D.hasHostProps||(D.hasHostProps=!0),I.prototype._addPropertyEffect(v,I.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:RvH()})};
FVW=function(I){return function(y,D,F){I.call(y.__templatizeOwner,y,D,F[D])}};
RvH=function(){return function(I,y,D){I.__dataHost._setPendingPropertyOrPath("_host_"+y,D[y],!0,!0)}};
hp=function(I,y,D){if(lg&&!eMq(I))throw Error("Pd");D=D||{};if(I.__templatizeOwner)throw Error("Qd");I.__templatizeOwner=y;var F=(y?y.constructor:NQ)._parseTemplate(I),R=F.templatizeInstanceClass;R||(R=V0W(I,F,D),F.templatizeInstanceClass=R);var O=eMq(I);DVS(I,F,D,O);D=function(){return R.apply(this,arguments)||this};
_.E(D,R);D.prototype._methodHost=O;D.prototype.__dataHost=I;D.prototype.__templatizeOwner=y;D.prototype.__hostProps=F.hostProps;return D};
y4A=function(I,y,D){D=D.constructor._properties;I=I.propertyEffects;y=y.instanceProps;for(var F in I)if(!(D[F]||y&&y[F]))for(var R=I[F],O=0;O<R.length;O++){var w=R[O].info.part;if(!w.signature||!w.signature.static){console.warn("Property '"+F+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
O25=function(I,y){for(var D;y;)if(D=y.__dataHost?y:y.__templatizeInstance)if(D.__dataHost!=I)y=D.__dataHost;else return D;else y=(0,_.sN)(y).parentNode;return null};
ug=function(I){return I.localName==="slot"};
LVt=function(){for(var I=qQ.prototype,y="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),D={},F=0;F<y.length;D={method$jscomp$33:void 0},F++)D.method$jscomp$33=y[F],I[D.method$jscomp$33]=function(R){return function(){return this.node[R.method$jscomp$33].apply(this.node,arguments)}}(D)};
J4q=function(I,y){for(var D={},F=0;F<y.length;D={name$jscomp$448:void 0},F++)D.name$jscomp$448=y[F],Object.defineProperty(I,D.name$jscomp$448,{get:function(R){return function(){return this.node[R.name$jscomp$448]}}(D),
configurable:!0})};
wq_=function(){for(var I=qQ.prototype,y=["textContent","innerHTML","className"],D={},F=0;F<y.length;D={name$jscomp$449:void 0},F++)D.name$jscomp$449=y[F],Object.defineProperty(I,D.name$jscomp$449,{get:function(R){return function(){return this.node[R.name$jscomp$449]}}(D),
set:function(R){return function(O){this.node[R.name$jscomp$449]=O}}(D),
configurable:!0})};
vXB=function(){E1=document.documentElement.getAttribute("dir");E1=document.documentElement.getAttribute("dir");for(var I=0;I<Gt.length;I++){var y=Gt[I];y.__autoDirOptOut||y.setAttribute("dir",E1)}};
KVB=function(){XT=!0;requestAnimationFrame(function(){XT=!1;Sm4(tq5);setTimeout(function(){for(var I=0,y=QG.length;I<y;I++)P7q(QG.shift())})})};
Sm4=function(I){for(;I.length;)P7q(I.shift())};
P7q=function(I){var y=I[0],D=I[1];I=I[2];try{D.apply(y,I)}catch(F){setTimeout(function(){throw F;})}};
_.UVo=function(I,y,D){XT||KVB();tq5.push([I,y,D])};
_.YC=function(I,y,D){XT||KVB();QG.push([I,y,D])};
oXt=function(I,y){y=y===void 0?!1:y;if(!r4A||!jh4||!r4A.handlesDynamicScoping)return null;var D=jh4.ScopingShim;if(!D)return null;var F=D.scopeForNode(I),R=(0,_.sN)(I).getRootNode(),O=function(w){if((0,_.sN)(w).getRootNode()===R){var v=Array.from(r4A.nativeMethods.querySelectorAll.call(w,"*"));v.push(w);for(w=0;w<v.length;w++){var P=v[w];if((0,_.sN)(P).getRootNode()===R){var K=D.currentScopeForNode(P);K!==F&&(K!==""&&D.unscopeNode(P,K),D.scopeNode(P,F))}}}};
O(I);return y?(y=new MutationObserver(function(w){for(var v=0;v<w.length;v++)for(var P=w[v],K=0;K<P.addedNodes.length;K++){var r=P.addedNodes[K];r.nodeType===Node.ELEMENT_NODE&&O(r)}}),y.observe(I,{childList:!0,
subtree:!0}),y):null};
NJL=function(){document.body.removeAttribute("unresolved")};
qmB=function(I){var y=I=I.replace(hvq,"").replace(xVL,""),D=new lhq;D.start=0;D.end=y.length;for(var F=D,R=0,O=y.length;R<O;R++)if(y[R]==="{"){F.rules||(F.rules=[]);var w=F,v=w.rules[w.rules.length-1]||null;F=new lhq;F.start=R+1;F.parent=w;F.previous=v;w.rules.push(F)}else y[R]==="}"&&(F.end=R+1,F=F.parent||D);return udH(D,I)};
udH=function(I,y){var D=y.substring(I.start,I.end-1);I.parsedCssText=I.cssText=D.trim();I.parent&&(D=y.substring(I.previous?I.previous.end:I.parent.start,I.start-1),D=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(D),D=D.replace(EXt," "),D=D.substring(D.lastIndexOf(";")+1),D=I.parsedSelector=I.selector=D.trim(),I.atRule=D.indexOf("@")===0,I.atRule?D.indexOf("@media")===0?I.type=4:D.match(GQe)&&(I.type=7,I.keyframesName=I.selector.split(EXt).pop()):D.indexOf("--")===
0?I.type=1E3:I.type=1);if(D=I.rules)for(var F=0,R=D.length,O=void 0;F<R&&(O=D[F]);F++)udH(O,y);return I};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(I){return I.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var y=arguments[1],D=6-y.length;D--;)y="0"+y;return"\\"+y})};
XqA=function(I,y,D){D=D===void 0?"":D;var F="";if(I.cssText||I.rules){var R=I.rules;if(R&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(R))for(var O=0,w=R.length,v=void 0;O<w&&(v=R[O]);O++)F=XqA(v,y,F);else y?y=I.cssText:(y=I.cssText,y=y.replace(Qhq,"").replace(Ymo,""),y=y.replace(fhH,"").replace(nXo,"")),(F=y.trim())&&(F="  "+F+"\n")}F&&(I.selector&&(D+=I.selector+" {\n"),D+=F,I.selector&&(D+="}\n\n"));return D};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(I){I=I[0];return!!I&&!!I.selector&&I.selector.indexOf("--")===0};
mVJ=function(I){if(I=pq5[I])I._applyShimCurrentVersion=I._applyShimCurrentVersion||0,I._applyShimValidatingVersion=I._applyShimValidatingVersion||0,I._applyShimNextVersion=(I._applyShimNextVersion||0)+1};
Mq4=function(I){return I._applyShimCurrentVersion===I._applyShimNextVersion};
kQq=function(I){I._applyShimValidatingVersion=I._applyShimNextVersion;I._validating||(I._validating=!0,zvA.then(function(){I._applyShimCurrentVersion=I._applyShimNextVersion;I._validating=!1}))};
ahA=function(I){if(!I)return"";typeof I==="string"&&(I=qmB(I));return XqA(I,dVJ)};
c4W=function(I){!I.__cssRules&&I.textContent&&(I.__cssRules=qmB(I.textContent));return I.__cssRules||null};
C74=function(I,y,D,F){if(I){var R=!1,O=I.type;if(F&&O===4){var w=I.selector.match(WVq);w&&(window.matchMedia(w[1]).matches||(R=!0))}O===1?y(I):D&&O===7?D(I):O===1E3&&(R=!0);if((I=I.rules)&&!R)for(R=0,O=I.length,w=void 0;R<O&&(w=I[R]);R++)C74(w,y,D,F)}};
BJ5=function(I,y){var D=I.indexOf("var(");if(D===-1)return y(I,"","","");a:{var F=0;var R=D+3;for(var O=I.length;R<O;R++)if(I[R]==="(")F++;else if(I[R]===")"&&--F===0)break a;R=-1}F=I.substring(D+4,R);D=I.substring(0,D);I=BJ5(I.substring(R+1),y);O=F.indexOf(",");if(O===-1)return y(D,F.trim(),"",I);R=F.substring(0,O).trim();F=F.substring(O+1).trim();return y(D,R,F,I)};
i2t=function(I){if(pZ!==void 0)return pZ;if(I.__cssBuild===void 0){var y=I.getAttribute("css-build");if(y)I.__cssBuild=y;else{a:{y=I.localName==="template"?I.content.firstChild:I.firstChild;if(y instanceof Comment&&(y=y.textContent.trim().split(":"),y[0]==="css-build")){y=y[1];break a}y=""}if(y!==""){var D=I.localName==="template"?I.content.firstChild:I.firstChild;D.parentNode.removeChild(D)}I.__cssBuild=y}}return I.__cssBuild||""};
$V4=function(I,y,D,F){for(var R=y._noAccessors,O=Object.getOwnPropertyNames(y),w=0;w<O.length;w++){var v=O[w];if(!(v in F))if(R)I[v]=y[v];else{var P=Object.getOwnPropertyDescriptor(y,v);P&&(P.configurable=!0,Object.defineProperty(I,v,P))}}for(var K in A4_)y[K]&&(D[K]=D[K]||[],D[K].push(y[K]))};
b2L=function(I,y,D){y=y||[];for(var F=I.length-1;F>=0;F--){var R=I[F];R?Array.isArray(R)?b2L(R,y):y.indexOf(R)<0&&(!D||D.indexOf(R)<0)&&y.unshift(R):console.warn("behavior is null, check for missing or 404 import")}return y};
H2q=function(I,y){for(var D in y){var F=I[D],R=y[D];I[D]=!("value"in R)&&F&&"value"in F?Object.assign({value:F.value},R):R}};
shH=function(I,y,D){var F={},R=function(){return y.apply(this,arguments)||this};
_.E(R,y);R._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(w)for(var P=0,K;P<w.length;P++)K=w[P],K.properties&&this.createProperties(K.properties),K.observers&&this.createObservers(K.observers,K.properties);I.properties&&this.createProperties(I.properties);I.observers&&this.createObservers(I.observers,I.properties);this._prepareTemplate()}else y._finalizeClass.call(this)};
R.prototype.created=function(){y.prototype.created.call(this);var P=F.created;if(P)for(var K=0;K<P.length;K++)P[K].call(this)};
R.prototype._registered=function(){var P=R.prototype;if(!P.hasOwnProperty("__hasRegisterFinished")){P.__hasRegisterFinished=!0;y.prototype._registered.call(this);ju&&v(P);P=Object.getPrototypeOf(this);var K=F.beforeRegister;if(K)for(var r=0;r<K.length;r++)K[r].call(P);if(K=F.registered)for(r=0;r<K.length;r++)K[r].call(P)}};
R.prototype._applyListeners=function(){y.prototype._applyListeners.call(this);var P=F.listeners;if(P)for(var K=0;K<P.length;K++){var r=P[K];if(r)for(var N in r)this._addMethodEventListenerToNode(this,N,r[N])}};
R.prototype._ensureAttributes=function(){var P=F.hostAttributes;if(P)for(var K=P.length-1;K>=0;K--){var r=P[K],N;for(N in r)this._ensureAttribute(N,r[N])}y.prototype._ensureAttributes.call(this)};
R.prototype.ready=function(){y.prototype.ready.call(this);var P=F.ready;if(P)for(var K=0;K<P.length;K++)P[K].call(this)};
R.prototype.attached=function(){y.prototype.attached.call(this);var P=F.attached;if(P)for(var K=0;K<P.length;K++)P[K].call(this)};
R.prototype.detached=function(){y.prototype.detached.call(this);var P=F.detached;if(P)for(var K=0;K<P.length;K++)P[K].call(this)};
R.prototype.attributeChanged=function(P,K,r){y.prototype.attributeChanged.call(this);var N=F.attributeChanged;if(N)for(var h=0;h<N.length;h++)N[h].call(this,P,K,r)};
_.mD.Object.defineProperties(R,{properties:{configurable:!0,enumerable:!0,get:function(){var P={};if(w)for(var K=0;K<w.length;K++)H2q(P,w[K].properties);H2q(P,I.properties);return P}},
observers:{configurable:!0,enumerable:!0,get:function(){var P=[];if(w)for(var K=0,r;K<w.length;K++)r=w[K],r.observers&&(P=P.concat(r.observers));I.observers&&(P=P.concat(I.observers));return P}}});
if(D){Array.isArray(D)||(D=[D]);var O=y.prototype.behaviors;var w=b2L(D,null,O);R.prototype.behaviors=O?O.concat(D):w}var v=function(P){if(w)for(var K=w,r=0;r<K.length;r++)$V4(P,K[r],F,ev5);$V4(P,I,F,TJe)};
ju||v(R.prototype);R.generatedFrom=I;return R};
Iw_=function(I){var y=typeof I!=="string"?I:{is:I,notifyObserversOnUndefined:!0};y.fastInit===void 0&&(y.fastInit=!0);return function(D){if(!y.disableInheritanceCheck&&Object.getPrototypeOf(D.prototype).constructor!==_.MQ)throw Error("Ud");var F=D.prototype;F.is=y.is;Oxe(F,"created",function(){this.hostElement=this;this.polymerController=this});
Vq4(F,D,y.fastInit);y.notifyObserversOnUndefined&&(F._overrideLegacyUndefined=!0);if(Z2q)for(var R=_.J(Object.getOwnPropertyNames(F)),O=R.next();!O.done;O=R.next()){O=O.value;var w=Object.getOwnPropertyDescriptor(F,O);w.enumerable===!1&&(w.enumerable=!0,Object.defineProperty(F,O,w))}if("template"in D)var v=function(){return D.template};
else y.template!==void 0&&(v=y.template);if(v!==void 0){var P;Object.defineProperty(F,"_template",{get:function(){P===void 0&&(P=v());return P},
set:function(K){P=K},
configurable:!0,enumerable:!0})}Polymer(F);D[gXW]=F}};
yPB=function(I){I=I===void 0?{}:I;I.fastInit===void 0&&(I.fastInit=!0);return function(y){if(!I.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==zt)throw Error("Vd");Vq4(y.prototype,y,I.fastInit)}};
Vq4=function(I,y,D){D=D===void 0?!1:D;DOS(y);D?Oxe(I,"created",function(){this.disableEnforceFastDefaultValuesCheck||FWH(y,this)}):Oxe(I,"ready",function(){for(var F={},R=_.J(LPH(this.behaviors)),O=R.next();!O.done;O=R.next())O=O.value,O.properties&&Object.assign(F,RrL(this,O.properties));
Object.assign(F,RrL(this,this.properties));FWH(y,this);R=_.J(Object.keys(F));for(O=R.next();!O.done;O=R.next())O=O.value,this[O]=F[O]})};
FWH=function(I,y){if(Z2q){I=new I;for(var D=_.J(Object.getOwnPropertyNames(I)),F=D.next();!F.done;F=D.next())F=F.value,y[F]=I[F];for(D=y;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){F=_.J(Object.getOwnPropertyNames(D));for(var R=F.next();!R.done;R=F.next())R=R.value,I.hasOwnProperty(R)||Object.defineProperty(I,R,OAB(y,R))}}else I.apply(y)};
OAB=function(I,y){return{get:function(){var D=I[y];return D instanceof Function?D.bind(I):D},
set:function(D){I[y]=D}}};
RrL=function(I,y){if(!y)return{};for(var D={},F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next())if(R=R.value,!y[R].readOnly){var O=I[R];O!==void 0&&(D[R]=O)}return D};
DOS=function(I){var y=new I;I=I.prototype.properties||{};for(var D=_.J(Object.keys(I)),F=D.next();!F.done;F=D.next())if(F=F.value,y.hasOwnProperty(F)){var R=I[F];typeof R==="function"&&(I[F]=R={type:R});y[F]!=null&&R.type===Object&&(R.type=LWA(y[F].constructor))}};
LWA=function(I){for(var y=_.J(JP4),D=y.next();!D.done;D=y.next())if(D=D.value,I===D)return D;return Object};
w2A=function(I){return function(y,D){y.behaviors=y.behaviors||[];y.behaviors.push(I||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",y,D).prototype:void 0));Object.defineProperty(y,D,{get:function(){return this},
enumerable:!0,configurable:!0})}};
vRq=function(I){I=I===void 0?{}:I;return function(y,D){y.properties=y.properties||{};I.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?I.type=LWA(Reflect.getMetadata("design:type",y,D)):I.type=String);var F=I,R=y.properties[D];y.properties[D]=R?Object.assign({},R,F):F}};
S5A=function(I){return function(y,D){y.listeners=y.listeners||{};y.listeners[I]=D}};
teH=function(){var I=_.go.apply(0,arguments);if(I.length===0)throw Error("Wd");return function(y,D){y.observers=y.observers||[];y.observers.push(D+"("+I.join(",")+")")}};
PbW=function(){var I=_.go.apply(0,arguments);return function(y,D,F){var R=Object.getOwnPropertyDescriptor(y,D).get,O="__compute__"+D;Object.defineProperty(y,O,{value:R,enumerable:!0});y.properties=y.properties||{};R=y.properties[D];R||(R={},y.properties[D]=R);R.computed=O+"("+I.join(",")+")";F.get=void 0}};
_.kC=function(I,y,D){_.B5.call(this);this.JSC$11588_id_=null;this.usingListeners_=!1;this.JSC$11588_listener_=I;this.handler_=D;this.JSC$11588_win_=y||window;this.callback_=(0,_.iD)(this.JSC$11590_doAction_,this)};
KWW=function(){};
dN=function(I){this.range_=I};
a5=function(I){this.range_=I};
UOL=function(I){return _.cr?new a5(I):_.Wr?new dN(I):new CZ(I)};
rPt=function(){var I=CG().JSC$9602_document_;return!!(I.webkitIsFullScreen||I.mozFullScreen||I.msFullscreenElement||I.fullscreenElement)};
_.Br=function(){var I=window.getSelection();return I&&jRH(I)};
jRH=function(I){var y=!1;if(I.createRange)try{var D=I.createRange()}catch(R){return null}else if(I.rangeCount){if(I.rangeCount>1){D=new ig;y=I.rangeCount;for(var F=0;F<y;F++)D.browserRanges_.push(I.getRangeAt(F));return D}D=I.getRangeAt(0);y=oR5(I.anchorNode,I.anchorOffset,I.focusNode,I.focusOffset)}else return null;return NC5(UOL(D),y)};
_.$C=function(I,y){return _.Ap(I,y,I,y)};
_.bg=function(I,y,D,F){return _.Ap(I,y,D,F)};
oR5=function(I,y,D,F){if(I==D)return F<y;var R;if(I.nodeType==1&&y)if(R=I.childNodes[y])I=R,y=0;else if(_.Uu(I,D))return!0;if(D.nodeType==1&&F)if(R=D.childNodes[F])D=R,F=0;else if(_.Uu(D,I))return!1;return(hrA(I,D)||y-F)>0};
Hr=function(I,y,D){_.B5.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=I;this.scrollTimer_=new _.eT(50);this.JSC$11667_eventHandler_=new _.H5(this);this.scrollDelta_=new _.XO;this.containerIsActuallyContent_=I.tagName==="BODY"||I.tagName==="HTML";this.containerBounds_=xOL(I);this.containerIsActuallyContent_&&(I=_.cB(),this.containerBounds_.height=I.height,this.containerBounds_.width=I.width);this.margin_=y||0;if(y){if(y=this.containerBounds_.clone(),I=this.margin_){var F=
Math.min(I,y.height*.25);y.top+=F;y.height-=2*F;I=Math.min(I,y.width*.25);y.left+=I;y.width-=2*I}}else y=this.containerBounds_;this.scrollBounds_=y;D||this.JSC$11667_eventHandler_.listen(_.VE(this.containerNode_),"mousemove",this.JSC$11669_onMouseMove);this.JSC$11667_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11669_onTick_)};
lwH=function(I,y,D,F,R,O,w,v){this.x0=I;this.y0=y;this.x1=D;this.y1=F;this.x2=R;this.y2=O;this.x3=w;this.y3=v};
_.eu=function(I){this.errorMessage_=null;this.result_=[];this.JSC$11757_buffer_="";this.stack_=[];this.JSC$11757_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!I||!I.deliverMessageAsRawString)};
_.Tt=function(I){this.mechanism=I};
s1=function(I,y){this.JSC$11764_key_=I;this.JSC$11764_value_=y};
_.VG=function(I,y){this.JSC$11770_map_={};this.JSC$11770_keys_=[];this.version_=this.size=0;var D=arguments.length;if(D>1){if(D%2)throw Error("ma");for(var F=0;F<D;F+=2)this.set(arguments[F],arguments[F+1])}else I&&this.addAll(I)};
q5C=function(){this.JSC$11773_map_=new _.VG;this.JSC$11773_head_=new u6J("");this.JSC$11773_head_.next=this.JSC$11773_head_.prev=this.JSC$11773_head_};
GIo=function(I){if(I>=55296&&I<=57343||I>1114111)return"\ufffd";I in ERJ&&(I=ERJ[I]);var y="";I>65535&&(I-=65536,y+=String.fromCharCode(I>>>10&1023|55296),I=56320|I&1023);return y+=String.fromCharCode(I)};
X2q=function(I,y){return I<y?1:-1};
Y5H=function(){return function(I){return I.charAt(1)==="#"?I.charAt(2)==="X"||I.charAt(2)==="x"?GIo(parseInt(I.substr(3),16)):GIo(parseInt(I.substr(2),10)):QR4[I.slice(1,-1)]}};
p2B=function(I){return I.slice(1,I.length-1).trim().replace(fwB,function(y){return nR5[y]||" "})};
Z6=function(I){return I===32||I===9};
gN=function(I,y){return y<I.length?I.charCodeAt(y):-1};
mO5=function(I){for(;I;){if(I._lastLineBlank)return!0;var y=I.type;if(y==="list"||y==="item")I=I._lastChild;else break}return!1};
IV=function(I){if(MeW.test(I)){var y=1,D=0,F=0;for(I[D]=="|"&&D++;D<I.length;){switch(I[D]){case "|":F=1;break;case " ":break;case "\t":break;default:F&&(F=0,y++)}D++}return zrt.test(I)?-y:y}return 0};
kI5=function(I){return I=="table"||I=="row"||I=="cell"};
dOB=function(){return new yO("document",[[1,1],[0,0]])};
awJ=function(){};
D_=function(){var I={safe:!1};I=I||{};I.softbreak=I.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=I};
iAq=function(I,y){var D="";if(I)if(I=I.toLowerCase(),I===" "||cPe.test(I))D="space";else if(WWq.test(I))D="esc";else if(I.length==1){if(!y||Cb5.test(I))D=I}else D=BCC.test(I)?I.replace("arrow",""):I=="multiply"?"*":I;return D};
HA5=function(I,y){var D=I.hasModifiers;if(y.key)D=iAq(y.key,D);else if(y.detail&&y.detail.key)D=iAq(y.detail.key,D);else{D=y.keyIdentifier;var F="";D&&(D in APA?F=APA[D]:$OH.test(D)?(D=parseInt(D.replace("U+","0x"),16),F=String.fromCharCode(D).toLowerCase()):F=D.toLowerCase());(D=F)||(D=y.keyCode,F="",Number(D)&&(D>=65&&D<=90?F=String.fromCharCode(32+D):D>=112&&D<=123?F="f"+(D-112+1):D>=48&&D<=57?F=String(D-48):D>=96&&D<=105?F=String(D-96):F=bAo[D]),D=F);D=D||""}return D===I.key&&(!I.hasModifiers||
!!y.shiftKey===!!I.shiftKey&&!!y.ctrlKey===!!I.ctrlKey&&!!y.altKey===!!I.altKey&&!!y.metaKey===!!I.metaKey)};
TCq=function(I){return I.length===1?{combo:I,key:I,event:"keydown"}:I.split("+").reduce(function(y,D){var F=D.split(":");D=F[0];F=F[1];D in erC?(y[erC[D]]=!0,y.hasModifiers=!0):(y.key=D,y.event=F||"keydown");return y},{combo:I.split(":").shift()})};
sRW=function(I){return I.trim().split(" ").map(function(y){return TCq(y)})};
Veq=function(I,y){if(I&&I.fn){var D=I.fn;I.fn=function(){try{D.apply(this,arguments)}catch(F){if(F instanceof F1)console.warn("Argument '"+F.arg+"'"+(y?" for method '"+y+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw F;}}}return I};
gRe=function(){var I=[],y;var D=D||_.ZAt.length;for(y=0;y<8;y++)I[y]=_.ZAt[0|Math.random()*D];return I.join("")};
I1L=function(){var I=_.go.apply(0,arguments);return I.length===0?function(y){return y}:I.length===1?I[0]:I.reduce(function(y,D){return function(){return y(D.apply(null,_.Td(_.go.apply(0,arguments))))}})};
yde=function(){var I=_.go.apply(0,arguments);return function(y){return function(D,F){D=y(D,F);var R=function(){throw Error("Ge");},O={getState:D.getState,
dispatch:function(w){return R.apply(null,[w].concat(_.Td(_.go.apply(1,arguments))))}};
F=I.map(function(w){return w(O)});
R=I1L.apply(null,_.Td(F))(D.dispatch);return Object.assign({},D,{dispatch:R})}}};
Rde=function(I){Object.keys(I).forEach(function(y){var D=I[y];if(typeof D(void 0,{type:D2H})==="undefined")throw Error("He`"+y);if(typeof D(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Fq4()})==="undefined")throw Error("Ie`"+y+"`"+D2H);})};
RV=function(I){for(var y=Object.keys(I),D={},F=0;F<y.length;F++){var R=y[F];typeof I[R]==="function"&&(D[R]=I[R])}var O=Object.keys(D);try{Rde(D)}catch(v){var w=v}return function(v,P){v=v===void 0?{}:v;if(w)throw w;for(var K=!1,r={},N=0;N<O.length;N++){var h=O[N],x=v[h],q=(0,D[h])(x,P);if(typeof q==="undefined")throw v=P&&P.type,Error("Je`"+(v?'"'+String(v)+'"':"(unknown type)")+"`"+h);r[h]=q;K=K||q!==x}return(K=K||O.length!==Object.keys(v).length)?r:v}};
O9B=function(I,y,D){function F(){if(r)throw Error("Ke");return v}
function R(x){if(typeof x!=="function")throw Error("Le`"+typeof x);if(r)throw Error("Me");var q=!0;K===P&&(K=P.slice());K.push(x);return function(){if(q){if(r)throw Error("Ne");q=!1;K===P&&(K=P.slice());var X=K.indexOf(x);K.splice(X,1);P=null}}}
function O(x){if(typeof x!=="object"||x===null)var q=!1;else{for(q=x;Object.getPrototypeOf(q)!==null;)q=Object.getPrototypeOf(q);q=Object.getPrototypeOf(x)===q}if(!q)throw Error("Oe`"+typeof x);if(typeof x.type==="undefined")throw Error("Pe");if(r)throw Error("Qe");try{r=!0,v=w(v,x)}finally{r=!1}q=P=K;for(var X=0;X<q.length;X++)(0,q[X])();return x}
if(typeof y==="function"&&typeof D==="function"||typeof D==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof y==="function"&&typeof D==="undefined"&&(D=y,y=void 0);if(typeof D!=="undefined"){if(typeof D!=="function")throw Error("Se`"+typeof D);return D(O9B)(I,y)}if(typeof I!=="function")throw Error("Te`"+typeof I);var w=I,v=y,P=[],K=P,r=!1;O({type:D2H});var N={},h=(N.dispatch=O,N.subscribe=R,N.getState=F,N.replaceReducer=function(x){if(typeof x!=="function")throw Error("Ue`"+
typeof x);w=x;O({type:Lqo});return h},N[Jde]=function(){var x={};
return x.subscribe=function(q){function X(){q.next&&q.next(F())}
if(typeof q!=="object"||q===null)throw new TypeError("Ve`"+typeof q);X();return{unsubscribe:R(X)}},x[Jde]=function(){return this},x},N);
return h};
wvt=function(I){function y(){R&&(R=!1,I());O&&F()}
function D(){requestAnimationFrame(y)}
function F(){var v=Date.now();if(R){if(v-w<2)return;O=!0}else R=!0,O=!1,setTimeout(D,20);w=v}
var R=!1,O=!1,w=0;return F};
O_=function(I){return typeof I==="number"?I:parseFloat(I)||0};
vrJ=function(I){return _.go.apply(1,arguments).reduce(function(y,D){return y+O_(I["border-"+D+"-width"])},0)};
Kqq=function(I){if(S7B[I])return S7B[I];var y=globalThis[I],D=y.prototype,F=I in tUt?tUt[I]:void 0;F=!(!F||!F.every(function(P){var K,r;return!!((K=Object.getOwnPropertyDescriptor(D,P))==null?0:(r=K.get)==null?0:r.toString().includes("[native code]"))}));
var R=I in PdH?PdH[I]:void 0;R=!(!R||!R.every(function(P){var K;return typeof D[P]==="function"&&((K=D[P])==null?void 0:K.toString().includes("[native code]"))}));
if(F&&R&&!globalThis.Zone)return S7B[I]=y.prototype;try{var O=document.createElement("iframe");document.body.appendChild(O);var w=O.contentWindow;if(!w)return y.prototype;var v=w[I].prototype;document.body.removeChild(O);return v?S7B[I]=v:D}catch(P){return D}};
LD=function(I,y,D){var F=I+"."+String(D);if(U2S[F])return U2S[F].call(y);I=Kqq(I);var R;I=(R=Object.getOwnPropertyDescriptor(I,D))==null?void 0:R.get;if(!I)return y[D];U2S[F]=I;return I.call(y)};
jaC=function(I,y){var D="Node."+String(y);if(rdq[D])return rdq[D].bind(I);var F=Kqq("Node")[y];if(typeof F!=="function")return I[y];rdq[D]=F;return F.bind(I)};
JR=function(I,y,D){try{if(!(y in I))return function(){};
var F=I[y],R=D(F);typeof R==="function"&&(R.prototype=R.prototype||{},Object.defineProperties(R,{__rrweb_original__:{enumerable:!1,value:F}}));I[y]=R;return function(){I[y]=F}}catch(O){return function(){}}};
SC=function(I){var y=I&&"host"in I&&"mode"in I&&wU(I)||null;return!!(y&&"shadowRoot"in y&&vx(y)===I)};
tR=function(I){return Object.prototype.toString.call(I)==="[object ShadowRoot]"};
orq=function(I){I.includes(" background-clip: text;")&&!I.includes(" -webkit-background-clip: text;")&&(I=I.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return I};
hdC=function(I){try{var y=I.rules||I.cssRules;if(!y)return null;var D=I.href;!D&&I.ownerNode&&(D=I.ownerNode.baseURI);var F=Array.from(y,function(R){return NnL(R,D)}).join("");
return orq(F)}catch(R){return null}};
NnL=function(I,y){if("styleSheet"in I){try{var D;if(!(D=hdC(I.styleSheet))){var F=I.cssText;if(F.split('"').length<3)D=F;else{var R=["@import","url("+JSON.stringify(I.href)+")"];I.layerName===""?R.push("layer"):I.layerName&&R.push("layer("+I.layerName+")");I.supportsText&&R.push("supports("+I.supportsText+")");I.media.length&&R.push(I.media.mediaText);D=R.join(" ")+";"}}var O=D}catch(w){O=I.cssText}return I.styleSheet.href?x2q(O,I.styleSheet.href):O}O=I.cssText;"selectorText"in I&&I.selectorText.includes(":")&&
(O=O.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return y?x2q(O,y):O};
l1A=function(I){var y=I.element;var D=I.maskInputOptions;var F=I.tagName;var R=I.type;var O=I.value;I=I.maskInputFn;O=O||"";R=R&&R.toLowerCase();if(D[F.toLowerCase()]||R&&D[R])O=I?I(O,y):"*".repeat(O.length);return O};
uIt=function(I){var y=I.getContext("2d");if(!y)return!0;for(var D=0;D<I.width;D+=50)for(var F=0;F<I.height;F+=50){var R=y.getImageData;if((new Uint32Array(("__rrweb_original__"in R?R.__rrweb_original__:R).call(y,D,F,Math.min(50,I.width-D),Math.min(50,I.height-F)).data.buffer)).some(function(O){return O!==0}))return!1}return!0};
q7e=function(I){var y=I.type;return I.hasAttribute("data-rr-is-password")?"password":y?y.toLowerCase():null};
ErL=function(I){try{var y=new URL(I,window.location.href)}catch(R){return null}var D,F;return(F=(D=y.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:D[1])!=null?F:null};
x2q=function(I,y){return(I||"").replace(GM5,function(D,F,R,O,w,v){R=R||w||v;F=F||O||"";if(!R)return D;if(Xv4.test(R)||Qa_.test(R)||Y7S.test(R))return"url("+F+R+F+")";if(R[0]==="/")return D=y.indexOf("//")>-1?y.split("/").slice(0,3).join("/"):y.split("/")[0],D=D.split("?")[0],"url("+F+(D+R)+F+")";D=y.split("/");O=R.split("/");D.pop();O=_.J(O);for(R=O.next();!R.done;R=O.next())R=R.value,R!=="."&&(R===".."?D.pop():D.push(R));return"url("+F+D.join("/")+F+")"})};
f1J=function(I,y){return(y=y===void 0?!1:y)?I.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):I.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
nro=function(I,y){var D=D===void 0?!1:D;y=Array.from(y.childNodes);var F=[],R=0;if(y.length>1&&I&&typeof I==="string")for(var O=f1J(I,D),w=O.length/I.length,v=1;v<y.length;v++)if(y[v].textContent&&typeof y[v].textContent==="string"){for(var P=f1J(y[v].textContent,D),K=3;K<P.length&&(P[K].match(/[a-zA-Z0-9]/)||P.indexOf(P.substring(0,K),1)!==-1);K++);for(;K<P.length;K++){var r=P.substring(0,K),N=O.split(r),h=-1;if(N.length===2)h=N[0].length;else if(N.length>2&&N[0]===""&&y[v-1].textContent!=="")h=
O.indexOf(r,1);else if(N.length===1){r=r.substring(0,r.length-1);N=O.split(r);if(N.length<=1)return F.push(I),F;K=101}else K===P.length-1&&(h=O.indexOf(r));if(N.length>=2&&K>100){var x=y[v-1].textContent;x&&typeof x==="string"&&(h=O.indexOf(r,f1J(x).length));h===-1&&(h=N[0].length)}if(h!==-1){for(P=Math.floor(h/w);P>0&&P<I.length;){R+=1;if(R>50*y.length)return F.push(I),F;K=f1J(I.substring(0,P),D);if(K.length===h){F.push(I.substring(0,P));I=I.substring(P);O=O.substring(h);break}else P=K.length<h?
P+Math.max(1,Math.floor((h-K.length)/w)):P-Math.max(1,Math.floor((K.length-h)*w))}break}}}F.push(I);return F};
m2S=function(){return pvS++};
zdW=function(I){if(I instanceof HTMLFormElement)return"form";I=I.tagName.toLowerCase();return MUS.test(I)?"div":I};
cd_=function(I,y){function D(K){return(K=K.exec(y.substring(F)))?(K=K[0],F+=K.length,K):""}
if(y.trim()==="")return y;for(var F=0,R=[];;){D(kM4);if(F>=y.length)break;var O=D(d2t);if(O.slice(-1)===",")O=a1W(I,O.substring(0,O.length-1)),R.push(O);else{var w="";O=a1W(I,O);for(var v=!1;;){var P=y.charAt(F);if(P===""){R.push((O+w).trim());break}else if(v)P===")"&&(v=!1);else if(P===","){F+=1;R.push((O+w).trim());break}else P==="("&&(v=!0);w+=P;F+=1}}}return R.join(", ")};
a1W=function(I,y){return y&&y.trim()!==""?Wq_(I,y):y};
Wq_=function(I,y){var D=CdB.get(I);D||(D=I.createElement("a"),CdB.set(I,D));if(!y)y="";else if(y.startsWith("blob:")||y.startsWith("data:"))return y;yr(D,y);return D.href};
BnA=function(I,y,D,F){return F?D==="src"||D==="href"&&(y!=="use"||F[0]!=="#")||D==="xlink:href"&&F[0]!=="#"||D==="background"&&(y==="table"||y==="td"||y==="th")?a1W(I,F):D==="srcset"?cd_(I,F):D==="style"?x2q(F,Wq_(I)):y==="object"&&D==="data"?a1W(I,F):F:F};
i9_=function(I,y){return(I==="video"||I==="audio")&&y==="autoplay"};
AdW=function(I,y,D){try{if(typeof y==="string"){if(I.classList.contains(y))return!0}else for(var F=I.classList.length;F--;)if(y.test(I.classList[F]))return!0;if(D)return I.matches(D)}catch(R){}return!1};
$2L=function(I,y,D){if(!I)return!1;if(I.nodeType!==I.ELEMENT_NODE)return D?$2L(Px(I),y,D):!1;for(var F=I.classList.length;F--;)if(y.test(I.classList[F]))return!0;return D?$2L(Px(I),y,D):!1};
b9A=function(I,y,D,F){if(I.nodeType===I.ELEMENT_NODE){if(!KD(I).length)return!1}else{if(U_(I)===null)return!1;I=U_(I)}try{if(typeof y==="string")if(F){if(I.closest("."+y))return!0}else{if(I.classList.contains(y))return!0}else if($2L(I,y,F))return!0;if(D)if(F){if(I.closest(D))return!0}else if(I.matches(D))return!0}catch(R){}return!1};
H9o=function(I,y,D){var F=I.contentWindow;if(F){var R=!1;try{var O=F.document.readyState}catch(v){return}if(O!=="complete"){var w=setTimeout(function(){R||(y(),R=!0)},D);
I.addEventListener("load",function(){clearTimeout(w);R=!0;y()})}else F.location.href==="about:blank"&&I.src!=="about:blank"&&I.src!==""||setTimeout(y,0),I.addEventListener("load",y)}};
edJ=function(I,y,D){var F=!1;try{var R=I.sheet}catch(w){return}if(!R){var O=setTimeout(function(){F||(y(),F=!0)},D);
I.addEventListener("load",function(){clearTimeout(O);F=!0;y()})}};
VUJ=function(I,y){var D=y.doc,F=y.blockClass,R=y.blockSelector,O=y.needsMask,w=y.inlineStylesheet,v=y.maskInputOptions===void 0?{}:y.maskInputOptions,P=y.maskTextFn,K=y.maskInputFn,r=y.dataURLOptions===void 0?{}:y.dataURLOptions,N=y.inlineImages,h=y.recordCanvas,x=y.keepIframeSrcFn,q=y.newlyAddedElement===void 0?!1:y.newlyAddedElement,X=y.cssCaptured===void 0?!1:y.cssCaptured;y=y.mirror;y.nodeMetaMap.has(D)?(y=y.getId(D),y=y===1?void 0:y):y=void 0;switch(I.nodeType){case I.DOCUMENT_NODE:return I.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:I.compatMode}:{type:0,childNodes:[]};case I.DOCUMENT_TYPE_NODE:return{type:1,name:I.name,publicId:I.publicId,systemId:I.systemId,rootId:y};case I.ELEMENT_NODE:return TnS(I,{doc:D,blockClass:F,blockSelector:R,inlineStylesheet:w,maskInputOptions:v,maskInputFn:K,dataURLOptions:r,inlineImages:N,recordCanvas:h,keepIframeSrcFn:x,newlyAddedElement:q,rootId:y});case I.TEXT_NODE:return w=(F=Px(I))&&F.tagName,F="",R=w==="STYLE"?!0:void 0,(w=w==="SCRIPT"?!0:void 0)?
F="SCRIPT_PLACEHOLDER":X||(F=saL(I),R&&F&&(F=x2q(F,Wq_(D)))),!R&&!w&&F&&O&&(F=P?P(F,U_(I)):F.replace(/[\S]/g,"*")),{type:3,textContent:F||"",rootId:y};case I.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:y};case I.COMMENT_NODE:return{type:5,textContent:saL(I)||"",rootId:y};default:return!1}};
TnS=function(I,y){var D=y.doc,F=y.inlineStylesheet,R=y.maskInputOptions===void 0?{}:y.maskInputOptions,O=y.maskInputFn,w=y.dataURLOptions===void 0?{}:y.dataURLOptions,v=y.inlineImages,P=y.recordCanvas,K=y.keepIframeSrcFn,r=y.newlyAddedElement===void 0?!1:y.newlyAddedElement,N=y.rootId;y=AdW(I,y.blockClass,y.blockSelector);for(var h=zdW(I),x={},q=I.attributes.length,X=0;X<q;X++){var f=I.attributes[X];i9_(h,f.name)||(x[f.name]=BnA(D,h,f.name.toLowerCase(),f.value))}h==="link"&&F&&(F=Array.from(D.styleSheets).find(function(H){return H.href===
I.href}),q=null,F&&(q=hdC(F)),q&&(delete x.rel,delete x.href,x._cssText=q));
h==="style"&&I.sheet&&(F=hdC(I.sheet))&&(I.childNodes.length>1&&(F=nro(F,I).join("/* rr_split */")),x._cssText=F);if(h==="input"||h==="textarea"||h==="select")F=I.value,q=I.checked,x.type!=="radio"&&x.type!=="checkbox"&&x.type!=="submit"&&x.type!=="button"&&F?x.value=l1A({element:I,type:q7e(I),tagName:h,value:F,maskInputOptions:R,maskInputFn:O}):q&&(x.checked=q);h==="option"&&(I.selected&&!R.select?x.selected=!0:delete x.selected);h==="dialog"&&I.open&&(x.rr_open_mode=I.matches("dialog:modal")?"modal":
"non-modal");h==="canvas"&&P&&(I.__context==="2d"?uIt(I)||(x.rr_dataURL=I.toDataURL(w.type,w.quality)):"__context"in I||(R=I.toDataURL(w.type,w.quality),O=D.createElement("canvas"),O.width=I.width,O.height=I.height,O=O.toDataURL(w.type,w.quality),R!==O&&(x.rr_dataURL=R)));if(h==="img"&&v){rU||(rU=D.createElement("canvas"),Z9J=rU.getContext("2d"));var m=I.currentSrc||I.getAttribute("src")||"<unknown-src>",z=I.crossOrigin,B=function(){I.removeEventListener("load",B);try{rU.width=I.naturalWidth,rU.height=
I.naturalHeight,Z9J.drawImage(I,0,0),x.rr_dataURL=rU.toDataURL(w.type,w.quality)}catch(H){if(I.crossOrigin!=="anonymous"){I.crossOrigin="anonymous";I.complete&&I.naturalWidth!==0?B():I.addEventListener("load",B);return}console.warn("Cannot inline img src="+m+"! Error: "+H)}I.crossOrigin==="anonymous"&&(z?x.crossOrigin=z:I.removeAttribute("crossorigin"))};
I.complete&&I.naturalWidth!==0?B():I.addEventListener("load",B)}if(h==="audio"||h==="video")D=x,D.rr_mediaState=I.paused?"paused":"played",D.rr_mediaCurrentTime=I.currentTime,D.rr_mediaPlaybackRate=I.playbackRate,D.rr_mediaMuted=I.muted,D.rr_mediaLoop=I.loop,D.rr_mediaVolume=I.volume;r||(I.scrollLeft&&(x.rr_scrollLeft=I.scrollLeft),I.scrollTop&&(x.rr_scrollTop=I.scrollTop));y&&(r=I.getBoundingClientRect(),x={class:x.class,rr_width:r.width+"px",rr_height:r.height+"px"});h!=="iframe"||K(x.src)||(I.contentDocument||
(x.rr_src=x.src),delete x.src);var C;try{customElements.get(h)&&(C=!0)}catch(H){}return{type:2,tagName:h,attributes:x,childNodes:[],isSVG:!(I.tagName!=="svg"&&!I.ownerSVGElement)||void 0,needBlock:y,rootId:N,isCustom:C}};
jC=function(I){return I===void 0||I===null?"":I.toLowerCase()};
gro=function(I,y){return y.comment&&I.type===5||I.type===2&&(y.script&&(I.tagName==="script"||I.tagName==="link"&&(I.attributes.rel==="preload"&&I.attributes.as==="script"||I.attributes.rel==="modulepreload")||I.tagName==="link"&&I.attributes.rel==="prefetch"&&typeof I.attributes.href==="string"&&ErL(I.attributes.href)==="js")||y.headFavicon&&(I.tagName==="link"&&I.attributes.rel==="shortcut icon"||I.tagName==="meta"&&(jC(I.attributes.name).match(/^msapplication-tile(image|color)$/)||jC(I.attributes.name)===
"application-name"||jC(I.attributes.rel)==="icon"||jC(I.attributes.rel)==="apple-touch-icon"||jC(I.attributes.rel)==="shortcut icon"))||I.tagName==="meta"&&(y.headMetaDescKeywords&&jC(I.attributes.name).match(/^description|keywords$/)||y.headMetaSocial&&(jC(I.attributes.property).match(/^(og|twitter|fb):/)||jC(I.attributes.name).match(/^(og|twitter):/)||jC(I.attributes.name)==="pinterest")||y.headMetaRobots&&(jC(I.attributes.name)==="robots"||jC(I.attributes.name)==="googlebot"||jC(I.attributes.name)===
"bingbot")||y.headMetaHttpEquiv&&I.attributes["http-equiv"]!==void 0||y.headMetaAuthorship&&(jC(I.attributes.name)==="author"||jC(I.attributes.name)==="generator"||jC(I.attributes.name)==="framework"||jC(I.attributes.name)==="publisher"||jC(I.attributes.name)==="progid"||jC(I.attributes.property).match(/^article:/)||jC(I.attributes.property).match(/^product:/))||y.headMetaVerification&&(jC(I.attributes.name)==="google-site-verification"||jC(I.attributes.name)==="yandex-verification"||jC(I.attributes.name)===
"csrf-token"||jC(I.attributes.name)==="p:domain_verify"||jC(I.attributes.name)==="verify-v1"||jC(I.attributes.name)==="verification"||jC(I.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
oV=function(I,y){var D=y.doc,F=y.mirror,R=y.blockClass,O=y.blockSelector,w=y.maskTextClass,v=y.maskTextSelector,P=y.skipChild===void 0?!1:y.skipChild,K=y.inlineStylesheet===void 0?!0:y.inlineStylesheet,r=y.maskInputOptions===void 0?{}:y.maskInputOptions,N=y.maskTextFn,h=y.maskInputFn,x=y.slimDOMOptions,q=y.dataURLOptions===void 0?{}:y.dataURLOptions,X=y.inlineImages===void 0?!1:y.inlineImages,f=y.recordCanvas===void 0?!1:y.recordCanvas,m=y.onSerialize,z=y.onIframeLoad,B=y.iframeLoadTimeout===void 0?
5E3:y.iframeLoadTimeout,C=y.onStylesheetLoad,H=y.stylesheetLoadTimeout===void 0?5E3:y.stylesheetLoadTimeout,e=y.keepIframeSrcFn===void 0?function(){return!1}:y.keepIframeSrcFn,T=y.newlyAddedElement===void 0?!1:y.newlyAddedElement,L5=y.cssCaptured===void 0?!1:y.cssCaptured,vH=y.needsMask,u_=y.preserveWhiteSpace===void 0?!0:y.preserveWhiteSpace;
vH||(vH=b9A(I,w,v,vH===void 0));var jW=VUJ(I,{doc:D,mirror:F,blockClass:R,blockSelector:O,needsMask:vH,inlineStylesheet:K,maskInputOptions:r,maskTextFn:N,maskInputFn:h,dataURLOptions:q,inlineImages:X,recordCanvas:f,keepIframeSrcFn:e,newlyAddedElement:T,cssCaptured:L5});if(!jW)return console.warn(I,"not serialized"),null;T=F.nodeMetaMap.has(I)?F.getId(I):gro(jW,x)||!u_&&jW.type===3&&!jW.textContent.replace(/^\s+|\s+$/gm,"").length?-2:pvS++;y=Object.assign(jW,{id:T});F.add(I,y);if(T===-2)return null;
m&&m(I);T=!P;y.type===2&&(T=T&&!y.needBlock,delete y.needBlock,(L5=vx(I))&&tR(L5)&&(y.isShadowHost=!0));if((y.type===0||y.type===2)&&T){x.headWhitespace&&y.type===2&&y.tagName==="head"&&(u_=!1);P={doc:D,mirror:F,blockClass:R,blockSelector:O,needsMask:vH,maskTextClass:w,maskTextSelector:v,skipChild:P,inlineStylesheet:K,maskInputOptions:r,maskTextFn:N,maskInputFn:h,slimDOMOptions:x,dataURLOptions:q,inlineImages:X,recordCanvas:f,preserveWhiteSpace:u_,onSerialize:m,onIframeLoad:z,iframeLoadTimeout:B,
onStylesheetLoad:C,stylesheetLoadTimeout:H,keepIframeSrcFn:e,cssCaptured:!1};if(y.type!==2||y.tagName!=="textarea"||y.attributes.value===void 0)for(y.type===2&&y.attributes._cssText!==void 0&&typeof y.attributes._cssText==="string"&&(P.cssCaptured=!0),T=_.J(Array.from(KD(I))),L5=T.next();!L5.done;L5=T.next())(L5=oV(L5.value,P))&&y.childNodes.push(L5);T=null;if(I.nodeType===I.ELEMENT_NODE&&(T=vx(I))){L5=_.J(Array.from(KD(T)));for(var xA=L5.next();!xA.done;xA=L5.next())if(xA=oV(xA.value,P))tR(T)&&(xA.isShadow=
!0),y.childNodes.push(xA)}}(P=Px(I))&&SC(P)&&tR(P)&&(y.isShadow=!0);y.type===2&&y.tagName==="iframe"&&H9o(I,function(){var dq=I.contentDocument;dq&&z&&(dq=oV(dq,{doc:dq,mirror:F,blockClass:R,blockSelector:O,needsMask:vH,maskTextClass:w,maskTextSelector:v,skipChild:!1,inlineStylesheet:K,maskInputOptions:r,maskTextFn:N,maskInputFn:h,slimDOMOptions:x,dataURLOptions:q,inlineImages:X,recordCanvas:f,preserveWhiteSpace:u_,onSerialize:m,onIframeLoad:z,iframeLoadTimeout:B,onStylesheetLoad:C,stylesheetLoadTimeout:H,
keepIframeSrcFn:e}))&&z(I,dq)},B);
y.type===2&&y.tagName==="link"&&typeof y.attributes.rel==="string"&&(y.attributes.rel==="stylesheet"||y.attributes.rel==="preload"&&typeof y.attributes.href==="string"&&ErL(y.attributes.href)==="css")&&edJ(I,function(){if(C){var dq=oV(I,{doc:D,mirror:F,blockClass:R,blockSelector:O,needsMask:vH,maskTextClass:w,maskTextSelector:v,skipChild:!1,inlineStylesheet:K,maskInputOptions:r,maskTextFn:N,maskInputFn:h,slimDOMOptions:x,dataURLOptions:q,inlineImages:X,recordCanvas:f,preserveWhiteSpace:u_,onSerialize:m,
onIframeLoad:z,iframeLoadTimeout:B,onStylesheetLoad:C,stylesheetLoadTimeout:H,keepIframeSrcFn:e});dq&&C(I,dq)}},H);
return y};
ImS=function(I){var y=document;I=I||{};var D=I.maskAllInputs===void 0?!1:I.maskAllInputs,F=I.slimDOM===void 0?!1:I.slimDOM;return oV(y,{doc:y,mirror:I.mirror===void 0?new NU:I.mirror,blockClass:I.blockClass===void 0?"rr-block":I.blockClass,blockSelector:I.blockSelector===void 0?null:I.blockSelector,maskTextClass:I.maskTextClass===void 0?"rr-mask":I.maskTextClass,maskTextSelector:I.maskTextSelector===void 0?null:I.maskTextSelector,skipChild:!1,inlineStylesheet:I.inlineStylesheet===void 0?!0:I.inlineStylesheet,
maskInputOptions:D===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:D===!1?{password:!0}:D,maskTextFn:I.maskTextFn,maskInputFn:I.maskInputFn,slimDOMOptions:F===!0||F==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:F==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:F===!1?{}:F,dataURLOptions:I.dataURLOptions,
inlineImages:I.inlineImages===void 0?!1:I.inlineImages,recordCanvas:I.recordCanvas===void 0?!1:I.recordCanvas,preserveWhiteSpace:I.preserveWhiteSpace,onSerialize:I.onSerialize,onIframeLoad:I.onIframeLoad,iframeLoadTimeout:I.iframeLoadTimeout,onStylesheetLoad:I.onStylesheetLoad,stylesheetLoadTimeout:I.stylesheetLoadTimeout,keepIframeSrcFn:I.keepIframeSrcFn===void 0?function(){return!1}:I.keepIframeSrcFn,
newlyAddedElement:!1})};
hR=function(I,y,D){D=D===void 0?document:D;var F={capture:!0,passive:!0};D.addEventListener(I,y,F);return function(){return D.removeEventListener(I,y,F)}};
xi=function(I,y,D){D=D===void 0?{}:D;var F=null,R=0;return function(){var O=_.go.apply(0,arguments),w=Date.now();R||D.leading!==!1||(R=w);var v=y-(w-R),P=this;v<=0||v>y?(F&&(clearTimeout(F),F=null),R=w,I.apply(P,O)):F||D.trailing===!1||(F=setTimeout(function(){R=D.leading===!1?0:Date.now();F=null;I.apply(P,O)},v))}};
yrt=function(I,y,D,F,R){R=R===void 0?window:R;var O=R.Object.getOwnPropertyDescriptor(I,y);R.Object.defineProperty(I,y,F?D:{set:function(w){var v=this;setTimeout(function(){D.set.call(v,w)},0);
O&&O.set&&O.set.call(this,w)}});
return function(){return yrt(I,y,O||{},!0)}};
DjA=function(I){var y=I.document,D,F,R,O;return{left:y.scrollingElement?y.scrollingElement.scrollLeft:I.pageXOffset!==void 0?I.pageXOffset:y.documentElement.scrollLeft||(y==null?void 0:y.body)&&((D=U_(y.body))==null?void 0:D.scrollLeft)||(y==null?void 0:(F=y.body)==null?void 0:F.scrollLeft)||0,top:y.scrollingElement?y.scrollingElement.scrollTop:I.pageYOffset!==void 0?I.pageYOffset:(y==null?void 0:y.documentElement.scrollTop)||(y==null?void 0:y.body)&&((R=U_(y.body))==null?void 0:R.scrollTop)||(y==
null?void 0:(O=y.body)==null?void 0:O.scrollTop)||0}};
FSA=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
RPL=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
OHq=function(I){return I?I.nodeType===I.ELEMENT_NODE?I:U_(I):null};
l5=function(I,y,D,F){if(!I)return!1;I=OHq(I);if(!I)return!1;try{if(typeof y==="string"){if(I.classList.contains(y)||F&&I.closest("."+y)!==null)return!0}else if($2L(I,y,F))return!0}catch(R){}return D&&(I.matches(D)||F&&I.closest(D)!==null)?!0:!1};
LSC=function(I,y,D){return I.tagName==="TITLE"&&D.headTitleMutations?!0:y.getId(I)===-2};
Jrq=function(I,y){if(SC(I))return!1;var D=y.getId(I);return y.has(D)?(D=Px(I))&&D.nodeType===I.DOCUMENT_NODE?!1:D?Jrq(D,y):!0:!0};
wR4=function(){var I=I===void 0?window:I;"NodeList"in I&&!I.NodeList.prototype.forEach&&(I.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in I&&!I.DOMTokenList.prototype.forEach&&(I.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
v_C=function(I,y){return!(I.nodeName!=="LINK"||I.nodeType!==I.ELEMENT_NODE||!I.getAttribute||I.getAttribute("rel")!=="stylesheet"||!y.nodeMetaMap.get(I))};
tV4=function(I){var y=null,D;"getRootNode"in I&&((D=SsH(I))==null?void 0:D.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&wU(SsH(I))&&(y=wU(SsH(I)));return y};
Pko=function(I){var y=I.ownerDocument;if(y){if(!(y=jaC(y,"contains")(I)))if(y=I.ownerDocument){for(var D;D=tV4(I);)I=D;y=jaC(y,"contains")(I)}else y=!1}else y=!1;return y};
KSC=function(I,y){I.delete(y);KD(y).forEach(function(D){return KSC(I,D)})};
Ujq=function(I,y){for(var D=[I];D.length;)I=D.pop(),y.has(I)||(y.add(I),KD(I).forEach(function(F){return D.push(F)}))};
rrH=function(I,y){I.size===0?I=!1:I=(y=Px(y))?I.has(y):!1;return I};
o_t=function(I,y){return I.size===0?!1:jcL(I,y)};
jcL=function(I,y){return(y=Px(y))?I.has(y)?!0:jcL(I,y):!1};
u5=function(I){try{if("composedPath"in I){var y=I.composedPath();if(y.length)return y[0]}else if("path"in I&&I.path.length)return I.path[0]}catch(D){}return I&&I.target};
hPB=function(I,y){var D=new NXt;qU.push(D);D.init(I);I=new (Kqq("MutationObserver").constructor)(E_(D.processMutations.bind(D)));I.observe(y,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return I};
lmW=function(I){var y=I.mousemoveCb;var D=I.sampling;var F=I.doc;var R=I.mirror;if(D.mousemove===!1)return function(){};
var O=[],w,v=xi(E_(function(K){var r=Date.now()-w;y(O.map(function(N){N.timeOffset-=r;return N}),K);
O=[];w=null}),typeof D.mousemoveCallback==="number"?D.mousemoveCallback:500);
I=E_(xi(E_(function(K){var r=u5(K),N=K.changedTouches?K.changedTouches[0]:K,h=N.clientX;N=N.clientY;w||(w=xjB());O.push({x:h,y:N,id:R.getId(r),timeOffset:xjB()-w});v(typeof DragEvent!=="undefined"&&K instanceof DragEvent?12:K instanceof MouseEvent?1:6)}),typeof D.mousemove==="number"?D.mousemove:50,{trailing:!1}));
var P=[hR("mousemove",I,F),hR("touchmove",I,F),hR("drag",I,F)];return E_(function(){P.forEach(function(K){return K()})})};
uiB=function(I){var y=I.mouseInteractionCb;var D=I.doc;var F=I.mirror;var R=I.blockClass;var O=I.blockSelector;I=I.sampling;if(I.mouseInteraction===!1)return function(){};
var w=I.mouseInteraction===!0||I.mouseInteraction===void 0?{}:I.mouseInteraction,v=[],P=null,K=function(r){return function(N){var h=u5(N);if(!l5(h,R,O,!0)){var x=null,q=r;if("pointerType"in N){switch(N.pointerType){case "mouse":x=0;break;case "touch":x=2;break;case "pen":x=1}x===2&&(GG[r]===1?q="TouchStart":GG[r]===0&&(q="TouchEnd"))}else N.changedTouches&&(x=2);if(x!==null){if(P=x,q.startsWith("Touch")&&x===2||q.startsWith("Mouse")&&x===0)x=null}else GG[r]===2&&(x=P,P=null);if(N=N.changedTouches?
N.changedTouches[0]:N)h=F.getId(h),E_(y)(Object.assign({},{type:GG[q],id:h,x:N.clientX,y:N.clientY},x!==null&&{pointerType:x}))}}};
Object.keys(GG).filter(function(r){return Number.isNaN(Number(r))&&!r.endsWith("_Departed")&&w[r]!==!1}).forEach(function(r){var N=r.toLowerCase(),h=K(r);
if(window.PointerEvent)switch(GG[r]){case 1:case 0:N=N.replace("mouse","pointer");break;case 7:case 9:return}v.push(hR(N,h,D))});
return E_(function(){v.forEach(function(r){return r()})})};
qsW=function(I){var y=I.scrollCb;var D=I.doc;var F=I.mirror;var R=I.blockClass;var O=I.blockSelector;return hR("scroll",E_(xi(E_(function(w){var v=u5(w);v&&!l5(v,R,O,!0)&&(w=F.getId(v),v===D&&D.defaultView?(v=DjA(D.defaultView),y({id:w,x:v.left,y:v.top})):y({id:w,x:v.scrollLeft,y:v.scrollTop}))}),I.sampling.scroll||100)),D)};
E_W=function(I,y){var D=I.viewportResizeCb;var F=-1,R=-1;return hR("resize",E_(xi(E_(function(){var O=FSA(),w=RPL();if(F!==O||R!==w)D({width:Number(w),height:Number(O)}),F=O,R=w}),200)),y.win)};
Qce=function(I){function y(f){var m=u5(f),z=f.isTrusted,B=m&&m.tagName;m&&B==="OPTION"&&(m=U_(m));if(!(!m||!B||G9q.indexOf(B)<0||l5(m,w,v,!0)||m.classList.contains(P)||K&&m.matches(K))){var C=m.value,H=!1;f=q7e(m)||"";if(f==="radio"||f==="checkbox")H=m.checked;else if(r[B.toLowerCase()]||r[f])C=l1A({element:m,maskInputOptions:r,tagName:B,type:f,value:C,maskInputFn:N});D(m,x?{text:C,isChecked:H,userTriggered:z}:{text:C,isChecked:H});z=m.name;f==="radio"&&z&&H&&R.querySelectorAll('input[type="radio"][name="'+
z+'"]').forEach(function(e){if(e!==m){var T=e.value;D(e,x?{text:T,isChecked:!H,userTriggered:!1}:{text:T,isChecked:!H})}})}}
function D(f,m){var z=XRJ.get(f);z&&z.text===m.text&&z.isChecked===m.isChecked||(XRJ.set(f,m),f=O.getId(f),E_(F)(Object.assign({},m,{id:f})))}
var F=I.inputCb;var R=I.doc;var O=I.mirror;var w=I.blockClass;var v=I.blockSelector;var P=I.ignoreClass;var K=I.ignoreSelector;var r=I.maskInputOptions;var N=I.maskInputFn;var h=I.sampling;var x=I.userTriggeredOnInput;var q=(h.input==="last"?["change"]:["input","change"]).map(function(f){return hR(f,E_(y),R)}),X=R.defaultView;
if(!X)return function(){q.forEach(function(f){return f()})};
I=X.Object.getOwnPropertyDescriptor(X.HTMLInputElement.prototype,"value");h=[[X.HTMLInputElement.prototype,"value"],[X.HTMLInputElement.prototype,"checked"],[X.HTMLSelectElement.prototype,"value"],[X.HTMLTextAreaElement.prototype,"value"],[X.HTMLSelectElement.prototype,"selectedIndex"],[X.HTMLOptionElement.prototype,"selected"]];I&&I.set&&q.push.apply(q,_.Td(h.map(function(f){return yrt(f[0],f[1],{set:function(){E_(y)({target:this,isTrusted:!1})}},!1,X)})));
return E_(function(){q.forEach(function(f){return f()})})};
fm_=function(I){var y=[],D,F,R,O;Ys4("CSSGroupingRule")&&((D=I.parentRule)==null?void 0:(F=D.constructor)==null?void 0:F.name)==="CSSGroupingRule"||Ys4("CSSMediaRule")&&I.parentRule instanceof CSSMediaRule||Ys4("CSSSupportsRule")&&I.parentRule instanceof CSSSupportsRule||Ys4("CSSConditionRule")&&((R=I.parentRule)==null?void 0:(O=R.constructor)==null?void 0:O.name)==="CSSConditionRule"?(I=Array.from(I.parentRule.cssRules).indexOf(I),y.unshift(I)):I.parentStyleSheet&&(I=Array.from(I.parentStyleSheet.cssRules).indexOf(I),
y.unshift(I));return y};
X1=function(I,y,D){var F,R;if(!I)return{};I.ownerNode?F=y.getId(I.ownerNode):R=D.getId(I);return{styleId:R,id:F}};
pR5=function(I,y){var D=I.styleSheetRuleCb;var F=I.mirror;var R=I.stylesheetManager;var O=y.win;if(!O.CSSStyleSheet||!O.CSSStyleSheet.prototype)return function(){};
var w=O.CSSStyleSheet.prototype.insertRule;O.CSSStyleSheet.prototype.insertRule=new QO(w,{apply:E_(function(h,x,q){var X=_.J(q),f=X.next().value;X=X.next().value;var m=X1(x,F,R.styleMirror),z=m.id;m=m.styleId;(z&&z!==-1||m&&m!==-1)&&D({id:z,styleId:m,adds:[{rule:f,index:X}]});return h.apply(x,q)})});
O.CSSStyleSheet.prototype.addRule=function(h,x,q){q=q===void 0?this.cssRules.length:q;return O.CSSStyleSheet.prototype.insertRule.apply(this,[h+" { "+x+" }",q])};
var v=O.CSSStyleSheet.prototype.deleteRule;O.CSSStyleSheet.prototype.deleteRule=new QO(v,{apply:E_(function(h,x,q){var X=_.J(q).next().value,f=X1(x,F,R.styleMirror),m=f.id;f=f.styleId;(m&&m!==-1||f&&f!==-1)&&D({id:m,styleId:f,removes:[{index:X}]});return h.apply(x,q)})});
O.CSSStyleSheet.prototype.removeRule=function(h){return O.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};
if(O.CSSStyleSheet.prototype.replace){var P=O.CSSStyleSheet.prototype.replace;O.CSSStyleSheet.prototype.replace=new QO(P,{apply:E_(function(h,x,q){var X=_.J(q).next().value,f=X1(x,F,R.styleMirror),m=f.id;f=f.styleId;(m&&m!==-1||f&&f!==-1)&&D({id:m,styleId:f,replace:X});return h.apply(x,q)})})}if(O.CSSStyleSheet.prototype.replaceSync){var K=O.CSSStyleSheet.prototype.replaceSync;
O.CSSStyleSheet.prototype.replaceSync=new QO(K,{apply:E_(function(h,x,q){var X=_.J(q).next().value,f=X1(x,F,R.styleMirror),m=f.id;f=f.styleId;(m&&m!==-1||f&&f!==-1)&&D({id:m,styleId:f,replaceSync:X});return h.apply(x,q)})})}var r={};
n_B("CSSGroupingRule")?r.CSSGroupingRule=O.CSSGroupingRule:(n_B("CSSMediaRule")&&(r.CSSMediaRule=O.CSSMediaRule),n_B("CSSConditionRule")&&(r.CSSConditionRule=O.CSSConditionRule),n_B("CSSSupportsRule")&&(r.CSSSupportsRule=O.CSSSupportsRule));var N={};Object.entries(r).forEach(function(h){var x=_.J(h);h=x.next().value;x=x.next().value;N[h]={insertRule:x.prototype.insertRule,deleteRule:x.prototype.deleteRule};x.prototype.insertRule=new QO(N[h].insertRule,{apply:E_(function(q,X,f){var m=_.J(f),z=m.next().value;
m=m.next().value;var B=X1(X.parentStyleSheet,F,R.styleMirror),C=B.id;B=B.styleId;(C&&C!==-1||B&&B!==-1)&&D({id:C,styleId:B,adds:[{rule:z,index:[].concat(_.Td(fm_(X)),[m||0])}]});return q.apply(X,f)})});
x.prototype.deleteRule=new QO(N[h].deleteRule,{apply:E_(function(q,X,f){var m=_.J(f).next().value,z=X1(X.parentStyleSheet,F,R.styleMirror),B=z.id;z=z.styleId;(B&&B!==-1||z&&z!==-1)&&D({id:B,styleId:z,removes:[{index:[].concat(_.Td(fm_(X)),[m])}]});return q.apply(X,f)})})});
return E_(function(){O.CSSStyleSheet.prototype.insertRule=w;O.CSSStyleSheet.prototype.deleteRule=v;P&&(O.CSSStyleSheet.prototype.replace=P);K&&(O.CSSStyleSheet.prototype.replaceSync=K);Object.entries(r).forEach(function(h){var x=_.J(h);h=x.next().value;x=x.next().value;x.prototype.insertRule=N[h].insertRule;x.prototype.deleteRule=N[h].deleteRule})})};
MVt=function(I,y){var D=I.mirror;var F=I.stylesheetManager;var R=null;R=y.nodeName==="#document"?D.getId(y):D.getId(wU(y));var O,w,v;I=y.nodeName==="#document"?(O=y.defaultView)==null?void 0:O.Document:(w=y.ownerDocument)==null?void 0:(v=w.defaultView)==null?void 0:v.ShadowRoot;var P=(I==null?0:I.prototype)?Object.getOwnPropertyDescriptor(I==null?void 0:I.prototype,"adoptedStyleSheets"):void 0;if(R===null||R===-1||!I||!P)return function(){};
Object.defineProperty(y,"adoptedStyleSheets",{configurable:P.configurable,enumerable:P.enumerable,get:function(){var K;return(K=P.get)==null?void 0:K.call(this)},
set:function(K){var r,N=(r=P.set)==null?void 0:r.call(this,K);if(R!==null&&R!==-1)try{mj5(F,K,R)}catch(h){}return N}});
return E_(function(){Object.defineProperty(y,"adoptedStyleSheets",{configurable:P.configurable,enumerable:P.enumerable,get:P.get,set:P.set})})};
zPW=function(I,y){var D=I.styleDeclarationCb;var F=I.mirror;var R=I.ignoreCSSAttributes;var O=I.stylesheetManager;var w=y.win;var v=w.CSSStyleDeclaration.prototype.setProperty;w.CSSStyleDeclaration.prototype.setProperty=new QO(v,{apply:E_(function(K,r,N){var h=_.J(N),x=h.next().value,q=h.next().value;h=h.next().value;if(R.has(x))return v.apply(r,[x,q,h]);var X,f=X1((X=r.parentRule)==null?void 0:X.parentStyleSheet,F,O.styleMirror);X=f.id;f=f.styleId;(X&&X!==-1||f&&f!==-1)&&D({id:X,styleId:f,set:{property:x,
value:q,priority:h},index:fm_(r.parentRule)});return K.apply(r,N)})});
var P=w.CSSStyleDeclaration.prototype.removeProperty;w.CSSStyleDeclaration.prototype.removeProperty=new QO(P,{apply:E_(function(K,r,N){var h=_.J(N).next().value;if(R.has(h))return P.apply(r,[h]);var x,q=X1((x=r.parentRule)==null?void 0:x.parentStyleSheet,F,O.styleMirror);x=q.id;q=q.styleId;(x&&x!==-1||q&&q!==-1)&&D({id:x,styleId:q,remove:{property:h},index:fm_(r.parentRule)});return K.apply(r,N)})});
return E_(function(){w.CSSStyleDeclaration.prototype.setProperty=v;w.CSSStyleDeclaration.prototype.removeProperty=P})};
k9L=function(I){var y=I.mediaInteractionCb;var D=I.blockClass;var F=I.blockSelector;var R=I.mirror;var O=I.sampling;I=I.doc;var w=E_(function(P){return xi(E_(function(K){if((K=u5(K))&&!l5(K,D,F,!0)){var r=K.currentTime,N=K.volume,h=K.muted,x=K.playbackRate,q=K.loop;y({type:P,id:R.getId(K),currentTime:r,volume:N,muted:h,playbackRate:x,loop:q})}}),O.media||500)}),v=[hR("play",w(0),I),
hR("pause",w(1),I),hR("seeked",w(2),I),hR("volumechange",w(3),I),hR("ratechange",w(4),I)];return E_(function(){v.forEach(function(P){return P()})})};
djq=function(I){var y=I.fontCb;I=I.doc;var D=I.defaultView;if(!D)return function(){};
var F=[],R=new WeakMap,O=D.FontFace;D.FontFace=function(w,v,P){var K=new O(w,v,P);R.set(K,{family:w,buffer:typeof v!=="string",descriptors:P,fontSource:typeof v==="string"?v:JSON.stringify(Array.from(new Uint8Array(v)))});return K};
I=JR(I.fonts,"add",function(w){return function(v){setTimeout(E_(function(){var P=R.get(v);P&&(y(P),R.delete(v))}),0);
return w.apply(this,[v])}});
F.push(function(){D.FontFace=O});
F.push(I);return E_(function(){F.forEach(function(w){return w()})})};
amq=function(I){var y=I.doc,D=I.mirror,F=I.blockClass,R=I.blockSelector,O=I.selectionCb,w=!0;I=E_(function(){var v=y.getSelection();if(v&&!(w&&(v==null?0:v.isCollapsed))){w=v.isCollapsed||!1;for(var P=[],K=v.rangeCount||0,r=0;r<K;r++){var N=v.getRangeAt(r),h=N.startContainer,x=N.startOffset,q=N.endContainer;N=N.endOffset;l5(h,F,R,!0)||l5(q,F,R,!0)||P.push({start:D.getId(h),startOffset:x,end:D.getId(q),endOffset:N})}O({ranges:P})}});
I();return hR("selectionchange",I)};
crt=function(I){var y=I.doc;var D=I.customElementCb;return(I=y.defaultView)&&I.customElements?JR(I.customElements,"define",function(F){return function(R,O,w){try{D({define:{name:R}})}catch(v){console.warn("Custom element callback failed for "+R)}return F.apply(this,[R,O,w])}}):function(){}};
WSo=function(I,y){var D=I.mutationCb,F=I.mousemoveCb,R=I.mouseInteractionCb,O=I.scrollCb,w=I.viewportResizeCb,v=I.inputCb,P=I.mediaInteractionCb,K=I.styleSheetRuleCb,r=I.styleDeclarationCb,N=I.canvasMutationCb,h=I.fontCb,x=I.selectionCb,q=I.customElementCb;I.mutationCb=function(){var X=_.go.apply(0,arguments);y.mutation&&y.mutation.apply(y,_.Td(X));D.apply(null,_.Td(X))};
I.mousemoveCb=function(){var X=_.go.apply(0,arguments);y.mousemove&&y.mousemove.apply(y,_.Td(X));F.apply(null,_.Td(X))};
I.mouseInteractionCb=function(){var X=_.go.apply(0,arguments);y.mouseInteraction&&y.mouseInteraction.apply(y,_.Td(X));R.apply(null,_.Td(X))};
I.scrollCb=function(){var X=_.go.apply(0,arguments);y.scroll&&y.scroll.apply(y,_.Td(X));O.apply(null,_.Td(X))};
I.viewportResizeCb=function(){var X=_.go.apply(0,arguments);y.viewportResize&&y.viewportResize.apply(y,_.Td(X));w.apply(null,_.Td(X))};
I.inputCb=function(){var X=_.go.apply(0,arguments);y.input&&y.input.apply(y,_.Td(X));v.apply(null,_.Td(X))};
I.mediaInteractionCb=function(){var X=_.go.apply(0,arguments);y.mediaInteaction&&y.mediaInteaction.apply(y,_.Td(X));P.apply(null,_.Td(X))};
I.styleSheetRuleCb=function(){var X=_.go.apply(0,arguments);y.styleSheetRule&&y.styleSheetRule.apply(y,_.Td(X));K.apply(null,_.Td(X))};
I.styleDeclarationCb=function(){var X=_.go.apply(0,arguments);y.styleDeclaration&&y.styleDeclaration.apply(y,_.Td(X));r.apply(null,_.Td(X))};
I.canvasMutationCb=function(){var X=_.go.apply(0,arguments);y.canvasMutation&&y.canvasMutation.apply(y,_.Td(X));N.apply(null,_.Td(X))};
I.fontCb=function(){var X=_.go.apply(0,arguments);y.font&&y.font.apply(y,_.Td(X));h.apply(null,_.Td(X))};
I.selectionCb=function(){var X=_.go.apply(0,arguments);y.selection&&y.selection.apply(y,_.Td(X));x.apply(null,_.Td(X))};
I.customElementCb=function(){var X=_.go.apply(0,arguments);y.customElement&&y.customElement.apply(y,_.Td(X));q.apply(null,_.Td(X))}};
Ck_=function(I,y){y=y===void 0?{}:y;var D=I.doc.defaultView;if(!D)return function(){};
WSo(I,y);var F;I.recordDOM&&(F=hPB(I,I.doc));var R=lmW(I),O=uiB(I),w=qsW(I),v=E_W(I,{win:D}),P=Qce(I),K=k9L(I),r=function(){},N=function(){},h=function(){},x=function(){};
I.recordDOM&&(r=pR5(I,{win:D}),N=MVt(I,I.doc),h=zPW(I,{win:D}),I.collectFonts&&(x=djq(I)));var q=amq(I),X=crt(I),f=[];I=_.J(I.plugins);for(y=I.next();!y.done;y=I.next())y=y.value,f.push(y.observer(y.callback,D,y.options));return E_(function(){qU.forEach(function(z){return z.reset()});
var m;(m=F)==null||m.disconnect();R();O();w();v();P();K();r();N();h();x();q();X();f.forEach(function(z){return z()})})};
Ys4=function(I){return typeof window[I]!=="undefined"};
n_B=function(I){return!!(typeof window[I]!=="undefined"&&window[I].prototype&&"insertRule"in window[I].prototype&&"deleteRule"in window[I].prototype)};
BX5=function(I){I=new Uint8Array(I);for(var y="",D=0;D<I.byteLength;D++)y+=String.fromCharCode(I[D]);return btoa(y)};
iHL=function(I,y,D){if(I instanceof Array)return I.map(function(R){return iHL(R,y,D)});
if(I!==null){if(I instanceof Float32Array||I instanceof Float64Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Uint8Array||I instanceof Uint16Array||I instanceof Int16Array||I instanceof Int8Array||I instanceof Uint8ClampedArray)return{rr_type:I.constructor.name,args:[Object.values(I)]};if(I instanceof ArrayBuffer){var F=I.constructor.name;I=BX5(I);return{rr_type:F,base64:I}}if(I instanceof DataView)return{rr_type:I.constructor.name,args:[iHL(I.buffer,y,D),I.byteOffset,I.byteLength]};
if(I instanceof HTMLImageElement)return{rr_type:I.constructor.name,src:I.src};if(I instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:I.toDataURL()};if(I instanceof ImageData)return{rr_type:I.constructor.name,args:[iHL(I.data,y,D),I.width,I.height]};if(Are(I,y)||typeof I==="object")return F=I.constructor.name,I=$jH(I,y,D),{rr_type:F,index:I}}return I};
HHe=function(I,y,D,F){for(var R=[],O=_.J(Object.getOwnPropertyNames(y.CanvasRenderingContext2D.prototype)),w=O.next(),v={};!w.done;v={prop$jscomp$58:void 0},w=O.next()){v.prop$jscomp$58=w.value;try{if(typeof y.CanvasRenderingContext2D.prototype[v.prop$jscomp$58]==="function"){var P=JR(y.CanvasRenderingContext2D.prototype,v.prop$jscomp$58,function(K){return function(r){return function(){var N=_.go.apply(0,arguments),h=this;l5(this.canvas,D,F,!0)||setTimeout(function(){var x=bHL(N,y,h);I(h.canvas,{type:Yi["2D"],
property:K.prop$jscomp$58,args:x})},0);
return r.apply(this,N)}}}(v));
R.push(P)}}catch(K){w=yrt(y.CanvasRenderingContext2D.prototype,v.prop$jscomp$58,{set:function(r){return function(N){I(this.canvas,{type:Yi["2D"],property:r.prop$jscomp$58,args:[N],setter:!0})}}(v)}),R.push(w)}}return function(){R.forEach(function(K){return K()})}};
ePS=function(I,y,D,F){var R=[];try{var O=JR(I.HTMLCanvasElement.prototype,"getContext",function(w){return function(v){var P=_.go.apply(1,arguments);if(!l5(this,y,D,!0)){var K=v==="experimental-webgl"?"webgl":v;"__context"in this||(this.__context=K);F&&["webgl","webgl2"].includes(K)&&(P[0]&&typeof P[0]==="object"?(K=P[0],K.preserveDrawingBuffer||(K.preserveDrawingBuffer=!0)):P.splice(0,1,{preserveDrawingBuffer:!0}))}return w.apply(this,[v].concat(_.Td(P)))}});
R.push(O)}catch(w){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){R.forEach(function(w){return w()})}};
TX4=function(I,y,D,F,R,O){for(var w=[],v=_.J(Object.getOwnPropertyNames(I)),P=v.next(),K={};!P.done;K={prop$jscomp$59:void 0},P=v.next())if(K.prop$jscomp$59=P.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(K.prop$jscomp$59))try{if(typeof I[K.prop$jscomp$59]==="function"){var r=JR(I,K.prop$jscomp$59,function(N){return function(h){return function(){var x=_.go.apply(0,arguments),q=h.apply(this,x);$jH(q,O,this);"tagName"in this.canvas&&!l5(this.canvas,F,R,!0)&&(x=
bHL(x,O,this),D(this.canvas,{type:y,property:N.prop$jscomp$59,args:x}));return q}}}(K));
w.push(r)}}catch(N){P=yrt(I,K.prop$jscomp$59,{set:function(h){return function(x){D(this.canvas,{type:y,property:h.prop$jscomp$59,args:[x],setter:!0})}}(K)}),w.push(P)}return w};
scB=function(I,y,D,F){var R=[];R.push.apply(R,_.Td(TX4(y.WebGLRenderingContext.prototype,1,I,D,F,y)));typeof y.WebGL2RenderingContext!=="undefined"&&R.push.apply(R,_.Td(TX4(y.WebGL2RenderingContext.prototype,2,I,D,F,y)));return function(){R.forEach(function(O){return O()})}};
tlC=function(I){var y=I=I===void 0?{}:I,D=y.emit,F=y.checkoutEveryNms,R=y.checkoutEveryNth,O=y.blockClass===void 0?"rr-block":y.blockClass,w=y.blockSelector===void 0?null:y.blockSelector,v=y.ignoreClass===void 0?"rr-ignore":y.ignoreClass,P=y.ignoreSelector===void 0?null:y.ignoreSelector,K=y.maskTextClass===void 0?"rr-mask":y.maskTextClass,r=y.maskTextSelector===void 0?null:y.maskTextSelector,N=y.inlineStylesheet===void 0?!0:y.inlineStylesheet,h=y.maskAllInputs,x=y.maskInputOptions,q=y.slimDOMOptions,
X=y.maskInputFn,f=y.maskTextFn,m=y.hooks,z=y.packFn,B=y.sampling===void 0?{}:y.sampling,C=y.dataURLOptions===void 0?{}:y.dataURLOptions,H=y.mousemoveWait,e=y.recordDOM===void 0?!0:y.recordDOM,T=y.recordCanvas===void 0?!1:y.recordCanvas,L5=y.recordCrossOriginIframes===void 0?!1:y.recordCrossOriginIframes,vH=y.recordAfter===void 0?I.recordAfter==="DOMContentLoaded"?I.recordAfter:"load":y.recordAfter,u_=y.userTriggeredOnInput===void 0?!1:y.userTriggeredOnInput,jW=y.collectFonts===void 0?!1:y.collectFonts,
xA=y.inlineImages===void 0?!1:y.inlineImages,dq=y.plugins,$A=y.keepIframeSrcFn===void 0?function(){return!1}:y.keepIframeSrcFn,BH=y.ignoreCSSAttributes===void 0?new Set([]):y.ignoreCSSAttributes;
fD=y.errorHandler;var jf=L5?window.parent===window:!0,yg=!1;if(!jf)try{window.parent.document&&(yg=!1)}catch($P){yg=!0}if(jf&&!D)throw Error("af");if(!jf&&!yg)return function(){};
H!==void 0&&B.mousemove===void 0&&(B.mousemove=H);nD.reset();var eW=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:x!==void 0?x:{password:!0},oe=q===!0||q==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:q==="all",headMetaDescKeywords:q==="all",headTitleMutations:q==="all"}:
q?q:{};wR4();var xP,XW=0,zo=function($P){for(var HC=_.J(dq||[]),vG=HC.next();!vG.done;vG=HC.next())vG=vG.value,vG.eventProcessor&&($P=vG.eventProcessor($P));z&&!yg&&($P=z($P));return $P};
pD=function($P,HC){$P.timestamp=xjB();var vG;((vG=qU[0])==null?0:vG.isFrozen())&&$P.type!==2&&($P.type!==3||$P.data.source!==0)&&qU.forEach(function(jg){return jg.unfreeze()});
jf?D==null||D(zo($P),HC):yg&&(HC={type:"rrweb",event:zo($P),origin:window.location.origin,isCheckout:HC},window.parent.postMessage(HC,"*"));$P.type===2?(xP=$P,XW=0):$P.type!==3||$P.data.source===0&&$P.data.isAttachIframe||(XW++,$P=F&&$P.timestamp-xP.timestamp>F,(R&&XW>=R||$P)&&VVt(!0))};
var Ub=function($P){pD({type:3,data:Object.assign({},{source:0},$P)})},rq=function($P){return pD({type:3,
data:Object.assign({},{source:3},$P)})},ao=function($P){return pD({type:3,
data:Object.assign({},{source:9},$P)})},rc=new ZHe({mutationCb:Ub,
adoptedStyleSheetCb:function($P){return pD({type:3,data:Object.assign({},{source:15},$P)})}}),Ta=new g_t({mirror:nD,
mutationCb:Ub,stylesheetManager:rc,recordCrossOriginIframes:L5,wrappedEmit:pD});I=_.J(dq||[]);for(y=I.next();!y.done;y=I.next())y=y.value,y.getMirror&&y.getMirror({nodeMirror:nD,crossOriginIframeMirror:Ta.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ta.crossOriginIframeStyleMirror});var f_=new IBS;ygq=new Dn4({recordCanvas:T,mutationCb:ao,win:window,blockClass:O,blockSelector:w,mirror:nD,sampling:B.canvas,dataURLOptions:C});var mM=new Fzq({mutationCb:Ub,scrollCb:rq,bypassOptions:{blockClass:O,
blockSelector:w,maskTextClass:K,maskTextSelector:r,inlineStylesheet:N,maskInputOptions:eW,dataURLOptions:C,maskTextFn:f,maskInputFn:X,recordCanvas:T,inlineImages:xA,sampling:B,slimDOMOptions:oe,iframeManager:Ta,stylesheetManager:rc,canvasManager:ygq,keepIframeSrcFn:$A,processedNodeManager:f_},mirror:nD});VVt=function($P){$P=$P===void 0?!1:$P;if(e){pD({type:4,data:{href:window.location.href,width:RPL(),height:FSA()}},$P);rc.reset();mM.init();qU.forEach(function(vG){return vG.lock()});
var HC=ImS({mirror:nD,blockClass:O,blockSelector:w,maskTextClass:K,maskTextSelector:r,inlineStylesheet:N,maskAllInputs:eW,maskTextFn:f,maskInputFn:X,slimDOM:oe,dataURLOptions:C,recordCanvas:T,inlineImages:xA,onSerialize:function(vG){vG.nodeName==="IFRAME"&&nD.nodeMetaMap.get(vG)&&Rtt(Ta,vG);v_C(vG,nD)&&O34(rc,vG);vG&&vx(vG)&&LzS(mM,vx(vG),document)},
onIframeLoad:function(vG,jg){Jgq(Ta,vG,jg);vG.contentWindow&&vG.contentDocument&&wte(mM,vG.contentWindow.Element,vG.contentDocument)},
onStylesheetLoad:function(vG,jg){v0C(rc,vG,jg)},
keepIframeSrcFn:$A});HC?(pD({type:2,data:{node:HC,initialOffset:DjA(window)}},$P),qU.forEach(function(vG){return vG.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&mj5(rc,document.adoptedStyleSheets,nD.getId(document))):console.warn("Failed to snapshot the document")}};
try{var M_=[],ZR=function($P){var HC;return E_(Ck_)({mutationCb:Ub,mousemoveCb:function(vG,jg){return pD({type:3,data:{source:jg,positions:vG}})},
mouseInteractionCb:function(vG){return pD({type:3,data:Object.assign({},{source:2},vG)})},
scrollCb:rq,viewportResizeCb:function(vG){return pD({type:3,data:Object.assign({},{source:4},vG)})},
inputCb:function(vG){return pD({type:3,data:Object.assign({},{source:5},vG)})},
mediaInteractionCb:function(vG){return pD({type:3,data:Object.assign({},{source:7},vG)})},
styleSheetRuleCb:function(vG){return pD({type:3,data:Object.assign({},{source:8},vG)})},
styleDeclarationCb:function(vG){return pD({type:3,data:Object.assign({},{source:13},vG)})},
canvasMutationCb:ao,fontCb:function(vG){return pD({type:3,data:Object.assign({},{source:10},vG)})},
selectionCb:function(vG){pD({type:3,data:Object.assign({},{source:14},vG)})},
customElementCb:function(vG){pD({type:3,data:Object.assign({},{source:16},vG)})},
blockClass:O,ignoreClass:v,ignoreSelector:P,maskTextClass:K,maskTextSelector:r,maskInputOptions:eW,inlineStylesheet:N,sampling:B,recordDOM:e,recordCanvas:T,inlineImages:xA,userTriggeredOnInput:u_,collectFonts:jW,doc:$P,maskInputFn:X,maskTextFn:f,keepIframeSrcFn:$A,blockSelector:w,slimDOMOptions:oe,dataURLOptions:C,mirror:nD,iframeManager:Ta,stylesheetManager:rc,shadowDomManager:mM,processedNodeManager:f_,canvasManager:ygq,ignoreCSSAttributes:BH,plugins:(dq==null?void 0:(HC=dq.filter(function(vG){return vG.observer}))==
null?void 0:HC.map(function(vG){return{observer:vG.observer,
options:vG.options,callback:function(jg){return pD({type:6,data:{plugin:vG.name,payload:jg}})}}}))||[]},m)};
S4o(Ta,function($P){try{M_.push(ZR($P.contentDocument))}catch(HC){console.warn(HC)}});
var rG=function(){VVt();M_.push(ZR(document))};
document.readyState==="interactive"||document.readyState==="complete"?rG():(M_.push(hR("DOMContentLoaded",function(){pD({type:0,data:{}});vH==="DOMContentLoaded"&&rG()})),M_.push(hR("load",function(){pD({type:1,
data:{}});vH==="load"&&rG()},window)));
return function(){M_.forEach(function($P){try{$P()}catch(HC){String(HC).toLowerCase().includes("cross-origin")||console.warn(HC)}});
f_.destroy();fD=void 0}}catch($P){console.warn($P)}};
_.G=function(I,y){y=RB(Fy(y));I.innerHTML=y};
Unt=function(I){var y=PMB;y||(y=Kzo(),y=PMB=_.e$.transpose(y));y=y[I];return typeof y==="string"?y:_.mQ(I)};
rgW=function(I){I=String(I).toLowerCase();var y=Kzo()[I];return typeof y==="string"?y:_.zG(I)};
jZB=function(I){I=I.toLowerCase();I=Kzo()[I];return typeof I==="string"?I:null};
Kzo=function(){if(!o0L){for(var I=Object.assign({},NhC),y=_.J(htL),D=y.next();!D.done;D=y.next())D=D.value,I[D.toLowerCase()]=D;o0L=I}return o0L};
uoH=function(I,y){var D=window.customElements;return D&&D.get(I)||xnB[I]===!0?2:y.name==="HTMLUnknownElement"?1:y.name==="HTMLElement"&&lBq.test(I)?3:0};
G0B=function(I,y){switch(y){case "innerHTML":return q4q(I)===1?2:null;case "textContent":return I=q4q(I),I===1||I===6?1:null;default:var D,F;return(F=(D=E0t[I.localName])==null?void 0:D[y])!=null?F:null}};
q4q=function(I){var y=I.localName,D=uoH(y,I.constructor);switch(D){case 0:case 1:return XtW(y,I);case 3:case 2:return 1;default:_.ya(D,"got an unknown element classification")}};
XtW=function(I,y){var D=Object.hasOwnProperty.call(QZt,I)?QZt[I]:null;return D!==null?D:Object.hasOwnProperty.call(Y4o,I)&&y instanceof SVGElement?Y4o[I]:null};
fBW=function(I,y){return y};
ptA=function(I){return(I=I.split(n0_,2))?{url:I[0],metadata:I[1]}:null};
Mlt=function(I){var y=String(I.url).replace(mnt,encodeURIComponent);if(I=I.metadata){mnt.lastIndex=0;if(mnt.test(I))return null;y+=" "+I}return y};
aBJ=function(I){function y(K){var r=K.localName;if(!K.getAttribute("is")&&uoH(r,K.constructor)===2){var N;return(N=P)!=null?N:P=document.createElement("polyresinuncustomized")}(K=v[r])||(K=v[r]=document.createElement(r));return K}
var D=I.reportHandler||void 0,F=I.safeTypesBridge||zt_,R=/^$/;if(I=I.allowedIdentifierPrefixes){I=_.J(I);for(var O=I.next();!O.done;O=I.next())R=new RegExp(R.source+"|^"+_.k0B(O.value))}D&&D(!1,"initResin",null);var w=dnJ(R,F,D),v={},P=null;return function(K,r,N){var h=K.nodeType;if(h!==Node.ELEMENT_NODE){if(h===Node.TEXT_NODE){r=K.parentElement;N=!r;if(r&&r.nodeType===Node.ELEMENT_NODE){h=r.localName;var x=uoH(h,r.constructor);switch(x){case 0:case 1:r=XtW(h,r);N=r===1||r===6;break;case 3:case 2:N=
!0;break;default:_.ya(x,"got an unknown element classification")}}if(N)return function(m){return""+F(m,"STRING",m)}}return function(m){if(!m&&m!==document.all)return m;
D&&D(!0,"Failed to sanitize "+(K.parentElement&&K.parentElement.nodeName)+" #text node to value "+m,K.parentElement);return ki}}var q=K.localName;
h=y(K);var X=null;switch(N){case "attribute":if(rgW(r)in h)break;return function(m){return m};
case "property":if(r in h){X=G0B(h,r);break}if((x=jZB(r))&&x in h)break;return function(m){return m};
default:_.ya(N,"got an unknown resin type, expected either 'property' or 'attribute'")}var f=N==="attribute"?r.toLowerCase():Unt(r);X||(X=xQq(q,f,function(m){var z=K.getAttribute(m);return!z||/[\[\{]/.test(m)?null:z}));
return function(m){var z=dU,B=null;if(!m&&m!==document.all)return m;if(X!=null){var C=w[X],H=C.safeType;B=C.safeReplacement;H&&(z=F(m,H,dU));z===dU&&(C.filterString?(z=String(F(m,"STRING",m)),z=C.filterString(q,f,z)):C.filterRaw&&(z=C.filterRaw(q,f,m,K)),z===B&&(z=dU))}z===dU&&(z=B||ki,D&&D(!0,"Failed to sanitize attribute of <"+q+">: <"+q+" "+f+'="'+m+'">',K));return z}}};
dnJ=function(I,y,D){return[,{filterRaw:function(F,R,O){return O},
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:cgt,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:cgt,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ki,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Wze,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(F,R,O){O=
String(O).toLowerCase();return q1W(F,R,O)?O:ki},
safeReplacement:ki,safeType:void 0},,{filterRaw:void 0,filterString:function(F,R,O){return I.test(O)?O:ki},
safeReplacement:ki,safeType:"CONSTANT"},{filterRaw:function(F,R,O,w){if(typeof O==="string")var v=(v=O.match(CM_))?v.map(ptA).filter(Boolean):[];else if(Array.isArray(O))v=O;else return cgt;var P=v;v=[];var K=[],r={};if(Array.isArray(P))for(var N=0,h=P.length;N<h;++N){var x=P[N],q=x&&x.url;if(q){var X=y(q,"URL",r);if(X){var f=X!==r;(f?v:K).push({url:f?X:q,metadata:x.metadata})}}}else K.push(P);P=K.length?JSON.stringify(K):null;K=dU;if(v.length){if(!Array.isArray(v))throw Error();K=v.map(Mlt).filter(Boolean).join(" , ")||
dU}P&&D&&D(!0,"Failed to sanitize attribute value of <"+F+">: <"+F+" "+R+'="'+O+'">: '+P,w);return K===dU?cgt:K},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Bht=function(I){var y=aBJ(I);return function(D,F,R,O){return O||O===document.all?y(D,F,R)(O):O}};
aV=function(I,y){function D(){function R(v,P,K){for(P=Reflect.getMetadata("parameters",v)||[];P.length<=K;)P.push(null);P[K]=P[K]||[];P[K].push(w);Reflect.defineMetadata(P,v);return v}
var O=_.go.apply(0,arguments);if(this instanceof D)return F.apply(this,O),this;var w=new (Function.prototype.bind.apply(D,[null].concat(_.Td(O))));R.annotation=w;return R}
var F=i3H(y);D.prototype.toString=function(){return"@"+I};
return D.annotationCls=D};
i3H=function(I){return function(){var y=_.go.apply(0,arguments),D=this;I.forEach(function(F,R){R=y[R];if(Array.isArray(F))D[F[0]]=R&&R!==void 0?R:F[1];else for(var O in F)D[O]=R&&R[O]!==void 0?R[O]:F[O]})}};
Ago=function(I){return I!==void 0&&I!==null};
cx=function(I){if(typeof I==="string")return I;if(I===void 0||I===null)return""+I;if(I.overriddenName)return I.overriddenName;if(I.name)return I.name;I=I.toString();var y=I.indexOf("\n");return y===-1?I:I.substring(0,y)};
$ne=function(I){I.__forward_ref__=$ne;I.toString=function(){return cx(this())};
return I};
Wx=function(I){return typeof I==="function"&&I.hasOwnProperty("__forward_ref__")&&I.__forward_ref__===$ne?I():I};
b34=function(I){return I?I.map(function(y){return new (Function.prototype.bind.apply(y.type.annotationCls,[null].concat(_.Td(y.args?y.args:[]))))}):[]};
H3o=function(I){for(var y=[],D=0;D<I.length;++D){if(y.indexOf(I[D])>-1){y.push(I[D]);break}y.push(I[D])}return y};
etA=function(I){return I.length>1?" ("+H3o(I.slice().reverse()).map(function(y){return cx(y.token)}).join(" -> ")+")":""};
sZ_=function(I,y,D,F){if(F){var R=Error("df``"+(F instanceof Error?F.message:F));R.ngOriginalError=F}else R=Error();R.addKey=ThL;R.keys=[y];R.injectors=[I];R.constructResolvingMessage=D;R.message=R.constructResolvingMessage();R.ngOriginalError=F;return R};
ThL=function(I,y){this.injectors.push(I);this.keys.push(y);this.message=this.constructResolvingMessage()};
VlW=function(I,y){return sZ_(I,y,function(){return"No provider for "+cx(this.keys[0].token)+"!"+etA(this.keys)})};
Z3L=function(I,y){return sZ_(I,y,function(){return"Cannot instantiate cyclic dependency!"+etA(this.keys)})};
g0t=function(I,y,D){return sZ_(I,D,function(){var F=cx(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+F+"!"+etA(this.keys)+"."},y)};
IUq=function(I,y){for(var D=[],F=0,R=y.length;F<R;F++){var O=y[F];O&&O.length!=0?D.push(O.map(cx).join(" ")):D.push("?")}return Error("hf`"+cx(I)+"`"+D.join(", ")+"`"+cx(I))};
JKB=function(I){var y=void 0,D=void 0;if(I&&I.useClass!==void 0){y=I.useClass;var F=Wx(I.useClass);var R=yKo.factory(F);F=DLe(F)}else I&&I.useExisting!==void 0?(R=function(O){return O},F=[F6t(CD.get(Wx(I.useExisting)))]):I&&I.useFactory!==void 0?(R=I.useFactory,F=RlL(I.useFactory,I.deps)):(D=I.useValue,R=function(){return I.useValue},F=OPA);
return new L64(R,F,y,D)};
vF4=function(I){return new wZo(CD.get(Wx(I.provide)),[JKB(I)],I.multi)};
tQL=function(I){I=SDJ(I,[]).map(vF4);for(var y=new Map,D=0;D<I.length;D++){var F=I[D],R=y.get(F.key.id);if(R){if(F.multiProvider!==R.multiProvider)throw Error("kf`"+R+"`"+F);if(F.multiProvider)for(var O=0;O<F.resolvedFactories.length;O++)R.resolvedFactories.push(F.resolvedFactories[O]);else y.set(F.key.id,F)}else R=void 0,F.multiProvider?R=new wZo(F.key,F.resolvedFactories.slice(),F.multiProvider):R=F,y.set(F.key.id,R)}return Array.from(y.values())};
SDJ=function(I,y){I.forEach(function(D){if(D instanceof P8q)y.push({provide:D,useClass:D});else if(D&&typeof D=="object"&&D.provide!==void 0)y.push(D);else if(D instanceof Array)SDJ(D,y);else throw Error("gf`"+D);});
return y};
RlL=function(I,y){if(y){var D=y.map(function(F){return[F]});
return y.map(function(F){return K6t(I,F,D)})}return DLe(I)};
DLe=function(I){var y=yKo.parameters(I);if(!y)return[];if(y.some(function(D){return D==null}))throw IUq(I,y);
return y.map(function(D){return K6t(I,D,y)})};
K6t=function(I,y,D){var F=null,R=!1;if(!Array.isArray(y))return y instanceof ULA?rKq(y.token,R,null):rKq(y,R,null);for(var O=null,w=0;w<y.length;++w){var v=y[w];if(v instanceof P8q)F=v;else if(v instanceof ULA)F=v.token;else if(v instanceof jOL)R=!0;else if(v instanceof oFH||v instanceof Nt4)O=v}F=Wx(F);if(F!=null)return rKq(F,R,O);throw IUq(I,D);};
rKq=function(I,y,D){return new hlL(CD.get(Wx(I)),y,D)};
xL5=function(I,y){for(var D=Array(I.providers.length),F=0;F<I.providers.length;++F){var R=F;if(F<0||F>=I.providers.length)throw Error("jf`"+F);D[R]=y(I.providers[F])}return D};
lUq=function(I){return typeof I==="function"&&yKo.parameters(I).every(function(y){return!!y})};
EFe=function(I){var y=uEq;qDJ.get(I)||qDJ.set(I,new y);return qDJ.get(I)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(I)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(I)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I,y){var D,F;if(I.contains(y))return!0;I=_.Bx(I).querySelectorAll("content,slot");for(D=0;D<I.length;++D){var R=_.Bx(I[D]).getDistributedNodes();for(F=0;F<R.length;++F)if(R[F].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(R[F],y))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){I.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(I)&&I.preventDefault();I.targetTouches&&(I=I.targetTouches[0],G5t=I.pageX,XZ_=I.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 I=0,y=i5.length;I<y;I++)document.addEventListener(i5[I],_._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 I=0,y=i5.length;I<y;I++)document.removeEventListener(i5[I],_._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(I){var y=_.Bx(I).rootTarget;I.type!=="touchmove"&&QO_!==y&&(QO_=y,YDH=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Bx(I).path));if(!YDH.length)return!0;if(I.type==="touchstart")return!1;I=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(I);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(YDH,I.deltaX,I.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){for(var y=[],D=I.indexOf(fUe),F=0;F<=D;F++)if(I[F].nodeType===Node.ELEMENT_NODE){var R=I[F],O=R.style;O.overflow!=="scroll"&&O.overflow!=="auto"&&(O=window.getComputedStyle(R));O.overflow!=="scroll"&&O.overflow!=="auto"||y.push(R)}return y};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I,y,D){if(y||D)for(var F=Math.abs(D)>=Math.abs(y),R=0;R<I.length;R++){var O=I[R];if(F?D<0?O.scrollTop>0:O.scrollTop<O.scrollHeight-O.clientHeight:y<0?O.scrollLeft>0:O.scrollLeft<O.scrollWidth-O.clientWidth)return O}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){var y={deltaX:I.deltaX,deltaY:I.deltaY};"deltaX"in I||("wheelDeltaX"in I&&"wheelDeltaY"in I?(y.deltaX=-I.wheelDeltaX,y.deltaY=-I.wheelDeltaY):"wheelDelta"in I?(y.deltaX=0,y.deltaY=-I.wheelDelta):"axis"in I?(y.deltaX=I.axis===1?I.detail:0,y.deltaY=I.axis===2?I.detail:0):I.targetTouches&&(I=I.targetTouches[0],y.deltaX=G5t-I.pageX,y.deltaY=XZ_-I.pageY));return y};
nFJ=function(I){this.element=I;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
mLA=function(I){this.element=I;this.color=window.getComputedStyle(I).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");_.Bx(this.waveContainer).appendChild(this.wave);pZq(this)};
AR=function(I,y){for(var D in I)if(D.toLowerCase()===y.toLowerCase())return I[D]};
MQq=function(I,y){for(var D in I)if(D.toLowerCase()===y.toLowerCase()){delete I[D];break}};
k5H=function(I){I=_.e$.clone(I);for(var y=0;y<zlq.length;++y){var D=zlq[y],F=AR(I,D);F&&(I["X-Goog-Upload-Header-"+D]=F,MQq(I,D))}return I};
dLL=function(I){I=_.e$.clone(I);MQq(I,"X-Goog-Upload-Status")};
cK4=function(I){return aU4.some(function(y){return y.test(I)})};
iPJ=function(I,y){var D;var F=(D=I.formContent)==null?void 0:D.locale;D=F==null?void 0:F.split("-")[0];F=F&&W65.includes(F)?F:D&&W65.includes(D)?D:void 0;F=(F!=null?F:"en").replaceAll("-","_").toLowerCase();var R;I=((R=I.initializationData)==null?0:R.useNightlyRelease)?"nightly":"live";var O;return(y==null?0:(O=y.getEnableAlohaBinarySplit)==null?0:O.call(y))?_.Et(C8e,I):_.Et(BtS,I,F)};
bPJ=function(I,y,D,F){if(AKq&&$Lo===y)return AKq;$Lo=y;var R=iPJ(I,F);return AKq=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(O,w){var v=_.kW("SCRIPT");_.Uk(v,R);v.onload=function(){y.feedbackV2GlobalObject?O(y.feedbackV2GlobalObject):w(Error("nf"))};
v.onerror=function(){w(Error("of`"+R.toString()))};
D.body.appendChild(v)})};
TtL=function(I,y,D,F){if(HPe&&elB===y)return HPe;elB=y;var R=iPJ(I,F);return HPe=y.feedbackV2GlobalObject?Promise.resolve(y.feedbackV2GlobalObject):new Promise(function(O,w){var v=_.kW("SCRIPT");_.Uk(v,R);v.onload=function(){y.feedbackV2GlobalObject?O(y.feedbackV2GlobalObject):w(Error("nf"))};
v.onerror=function(){w(Error("of`"+R.toString()))};
D.body.appendChild(v)})};
sO4=function(I,y,D,F,R){R=R===void 0?!0:R;var O,w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:return O=Date.now(),r.yield(bPJ(I,D,F,y),2);case 2:w=r.yieldResult;if(!(R||((P=I.initializationData)==null?0:P.useNightlyRelease)||((K=I.initializationData)==null?0:K.isLocalServer))){v=w.initializeFeedbackClient(I,O,y);r.jumpTo(3);break}return r.yield(w.initializeFeedbackClientAsync(I,O,y),4);case 4:v=r.yieldResult;case 3:return v.initiateAloha(),r.return(v)}})};
VQH=function(I,y,D,F){var R,O,w;return _.S(function(v){if(v.nextAddress==1)return R=Date.now(),v.yield(TtL(I,D,F.document,y),2);if(v.nextAddress!=3)return O=v.yieldResult,v.yield(O.initializeFeedbackClientAsync(I,R,y,F),3);w=v.yieldResult;w.initiateAloha();return v.return(w)})};
ZPB=function(I,y,D){var F=!0;F=F===void 0?!0:F;var R,O,w,v,P,K,r,N;return _.S(function(h){R=D||_.Ft;if((O=y)==null?0:(v=(w=O).getEnableAlohaBinarySplit)==null?0:v.call(w)){P=R;if(P.isFormOpened)throw new $i;P.isFormOpened=!0;I.callbacks=I.callbacks||{};K=I.callbacks.onClose||function(){};
I.callbacks.onClose=function(x){P.isFormOpened=!1;K(x)};
try{return h.return(VQH(I,y,P,R))}catch(x){throw P.isFormOpened=!1,x;}}else{r=R;if(r.isFormOpened)throw new $i;r.isFormOpened=!0;I.callbacks=I.callbacks||{};N=I.callbacks.onClose||function(){};
I.callbacks.onClose=function(x){r.isFormOpened=!1;N(x)};
try{return h.return(sO4(I,y,r,R.document,F))}catch(x){throw r.isFormOpened=!1,x;}}_.Cj(h)})};
Fge=function(I,y){return _.S(function(D){return D.return(new Promise(function(F,R){Number.isInteger(Number(I))&&Number(I)>0?(R=gFC(y!=null?y:"")+"/aloha_form_properties?productId="+I,IjL(R,function(O){O=O.target;var w=null;try{var v=JSON,P=v.stringify;if(O.JSC$10072_xhr_){var K=O.JSC$10072_xhr_.responseText;K.indexOf(")]}'\n")==0&&(K=K.substring(5));var r=_.b5(K)}else r=void 0;w=vQo(ywJ,P.call(v,r))}catch(N){P=new ywJ,r=DH5(),r=_.Hx(r,13,!1),r=_.Hx(r,14,!0),r=_.Hx(r,15,!0),r=_.Hx(r,20,!1),w=_.mH(P,
1,r)}F(w)},"GET","",{},2E3,!0)):R(Error("pf`"+I))}))})};
gFC=function(I){return cK4(I)?I:"https://www.google.com/tools/feedback"};
JwS=function(I){I=I.match(new RegExp(RRq,"gi"))||[];I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;a:{var D=_.J(Ohq);for(var F=D.next();!F.done;F=D.next())if(F.value.test(y)){D=!1;break a}D=!0}if(!D)a:{D=_.J(Lgq);for(F=D.next();!F.done;F=D.next())if(F.value.test(y)){D=!0;break a}D=!1}if(D)return!0}return!1};
wco=function(I,y){var D={},F=Object.keys(I);F=_.J(F);for(var R=F.next();!R.done;R=F.next())R=R.value,D[R]=y(R,I[R]);return D};
v6J=function(I){switch(I){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"}};
tJJ=function(I){if(window.crypto&&window.crypto.getRandomValues)try{var y=Array(I),D=new Uint8Array(I);window.crypto.getRandomValues(D);for(var F=0;F<y.length;F++)y[F]=D[F];return y}catch(O){}y=Array(I);for(D=0;D<I;D++){F=Date.now();for(var R=0;R<F%23;R++)y[D]=Math.random();y[D]=Math.floor(Math.random()*256)}if(S2e)for(D=1,F=0;F<S2e.length;F++)y[D%I]^=y[(D-1)%I]/4^S2e.charCodeAt(F),D++;return y};
eC=function(I){I=tJJ(I);for(var y=[],D=0;D<I.length;D++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(I[D]&63));return y.join("")};
PE5=function(){var I=_.Ft.ytLoggingDocDocumentNonce_;I||(I=eC(16),_.fv("ytLoggingDocDocumentNonce_",I));return I};
UH4=function(I){I&&_.Jq("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Kg_,clientScreenNonce:I})};
rwo=function(I){return _.Pi("client-screen-nonce-store",{})[I===void 0?0:I]};
j7B=function(I,y){y=y===void 0?0:y;var D=_.Pi("client-screen-nonce-store");D||(D={},_.tG("client-screen-nonce-store",D));D[y]=I};
o6q=function(I){I=I===void 0?0:I;return I===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+I};
Nbe=function(I){return _.Pi(o6q(I===void 0?0:I))};
_.s_=function(I){return(I=Nbe(I===void 0?0:I))?new _.TG({veType:I,youtubeData:void 0,jspbYoutubeData:void 0}):null};
hRB=function(){var I=_.Pi("csn-to-ctt-auth-info");I||(I={},_.tG("csn-to-ctt-auth-info",I));return I};
xH4=function(){return Object.values(_.Pi("client-screen-nonce-store",{})).filter(function(I){return I!==void 0})};
_.VO=function(I){I=rwo(I===void 0?0:I);if(!I&&!_.KR("USE_CSN_FALLBACK",!0))return null;I||(I="UNDEFINED_CSN");return I?I:null};
ulo=function(I){for(var y=_.J(Object.values(ljt)),D=y.next();!D.done;D=y.next())if(_.VO(D.value)===I)return!0;return!1};
q2o=function(I,y,D){var F=hRB();(D=_.VO(D))&&delete F[D];y&&(F[I]=y)};
Z_=function(I){return hRB()[I]};
_.gU=function(I,y,D,F){D=D===void 0?0:D;if(I!==rwo(D)||y!==_.Pi(o6q(D)))if(q2o(I,F,D),j7B(I,D),_.tG(o6q(D),y),y=function(){setTimeout(function(){UH4(I)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(y)}catch(R){y()}else y()};
E6L=function(I,y){y=y===void 0?"":y;var D=[],F;for(F in I)if(I.hasOwnProperty(F)){var R=y!==""?y+"."+F:F;typeof I[F]==="object"?D.push.apply(D,_.Td(E6L(I[F],R))):D.push([R,I[F]])}D.sort();return D};
_.y_=function(I){var y=_.go.apply(1,arguments);if(!I1(I)||y.some(function(F){return!I1(F)}))throw Error("qf");
y=_.J(y);for(var D=y.next();!D.done;D=y.next())GhS(I,D.value)};
GhS=function(I,y){for(var D in y)if(I1(y[D])){if(D in I&&!I1(I[D]))throw Error("rf");D in I||(I[D]={});GhS(I[D],y[D])}else if(Xc4(y[D])){if(D in I&&!Xc4(I[D]))throw Error("sf");D in I||(I[D]=[]);Q7A(I[D],y[D])}else I[D]=y[D];return I};
Q7A=function(I,y){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,I1(D)?I.push(GhS({},D)):Xc4(D)?I.push(Q7A([],D)):I.push(D);return I};
I1=function(I){return typeof I==="object"&&!Array.isArray(I)};
Xc4=function(I){return typeof I==="object"&&Array.isArray(I)};
fjt=function(I){for(var y=_.J(Object.entries(Y2J)),D=y.next();!D.done;D=y.next())if(D=_.J(D.value),D.next(),D=D.next().value,D==="SLI_STATUS_"+I)return D;return"SLI_STATUS_UNKNOWN"};
_.DL=function(I,y,D,F){return n6t(I,y,function(){return new _.pcq(I,y,D,F)})};
_.mHC=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
MJS=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Fs=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
zRA=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
khJ=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
dHB=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
WgA=function(I){I&&(I.dataset?I.dataset[aj4()]="true":_.jY([_.ll(cwH)],I,"data-loaded","true".toString()))};
CE4=function(I){return I?I.dataset?I.dataset[aj4()]:I.getAttribute("data-loaded"):null};
aj4=function(){return Bbt.loaded||(Bbt.loaded="loaded".replace(/\-([a-z])/g,function(I,y){return y.toUpperCase()}))};
_.R1=function(I,y,D){iho(I,y,D===void 0?null:D)};
_.$H5=function(I,y){I&&y&&(I=""+_.HH(y),(I=AwW[I])&&_.EYC(I))};
iho=function(I,y,D){D=D===void 0?null:D;var F=_.bhC(typeof I==="string"?I:I.toString()),R=document.getElementById(F),O=R&&CE4(R),w=R&&!O;O?y&&y():(y&&(O=_.ar(F,y),y=""+_.HH(y),AwW[y]=O),w||(R=Hhq(I,F,function(){CE4(R)||(WgA(R),_.GJS(F),_.Wi(function(){_.QuB(F)},0))},D)))};
Hhq=function(I,y,D,F){F=F===void 0?null:F;var R=_.kW("SCRIPT");R.id=y;R.onload=function(){D&&setTimeout(D,0)};
R.onreadystatechange=function(){switch(R.readyState){case "loaded":case "complete":R.onload()}};
F&&R.setAttribute("nonce",F);_.Uk(R,typeof I==="string"?_.Ve(I):I);I=document.getElementsByTagName("head")[0]||document.body;I.insertBefore(R,I.firstChild);return R};
_.bhC=function(I){var y=document.createElement("a");yr(y,I);return"js-"+O$(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
eRH=function(I){var y=_.Pi("INNERTUBE_HOST_OVERRIDE");y&&(I=String(y)+String(_.LE(I)));return I};
TbS=function(I){var y={};_.l("json_condensed_response")&&(y.prettyPrint="false");return I=e3q(I,y)};
_.J9=function(I){return QV(I)?"same-origin":"include"};
_.we=function(I){return QV(I)?"same-origin":"cors"};
vg=function(I,y,D){D=D===void 0?{}:D;I={method:y===void 0?"POST":y,mode:_.we(I),credentials:_.J9(I)};y={};for(var F=_.J(Object.keys(D)),R=F.next();!R.done;R=F.next())R=R.value,D[R]&&(y[R]=D[R]);Object.keys(y).length>0&&(I.headers=y);return I};
_.Sk=function(I,y){y=y===void 0?{}:y;return"service:"+I+"/"+Object.keys(y).sort().map(function(D){return D+":"+y[D]}).join("/")};
s7q=function(I){var y,D,F,R;I=(y=_.u(I,_.t9))==null?void 0:(D=y.watchEndpointSupportedOnesieConfig)==null?void 0:(F=D.html5PlaybackOnesieConfig)==null?void 0:(R=F.commonConfig)==null?void 0:R.url;if(!I)return[];y=new _.Pg(I);return y.JSC$10308_domain_?["https://"+y.JSC$10308_domain_+"/generate_204"]:[]};
_.g6W=function(){return VJS()||gK5()||Zh5&&P1("version/")?!0:_.Pi("EOM_VISITOR_DATA")?!1:!0};
IfW=function(I){var y=I.docid||I.video_id||I.videoId||I.id;if(y)return y;y=I.raw_player_response;y||(I=I.player_response)&&(y=JSON.parse(I));return y&&y.videoDetails&&y.videoDetails.videoId||null};
yze=function(I){return I.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
KE=function(I){return!isNaN(Number(I))&&!_.wq(I)};
_.re=function(I,y,D,F){F=F===void 0?!0:F;var R=_.Pi("VALID_SESSION_TEMPDATA_DOMAINS",[]),O=_.GP(window.location.href);O&&R.push(O);O=_.GP(I);if(_.kA(R,O)||!O&&_.Oq(I,"/"))if(R=document.createElement("a"),yr(R,I),I=R.href)if(I=_.LE(I),I=_.U$(I))F&&!y.csn&&(y.itct||y.ved)&&(y=Object.assign({csn:_.VO()},y)),D?(D=parseInt(D,10),isFinite(D)&&D>0&&DE_(I,y,D)):DE_(I,y)};
Ret=function(I){var y=_.Pi("VALID_SESSION_TEMPDATA_DOMAINS",[]),D=_.GP(window.location.href);D&&y.push(D);D=_.GP(I);if(!(_.kA(y,D)||!D&&_.Oq(I,"/")))return null;I=_.LE(I);(I=_.U$(I))?(I=F7S(I),I=(I=_.eF.get(I,void 0)||null)?_.xf(I):{}):I=null;return I};
DE_=function(I,y,D){I=F7S(I);y=y?_.$f(y):"";D=D||5;_.g6W()&&_.TP(I,y,D)};
F7S=function(I){for(var y=_.J(ObC),D=y.next();!D.done;D=y.next())I=_.jk(I,D.value);return"ST-"+O$(I).toString(36)};
_.L7L=function(I){if(I.requestFullscreen)I=I.requestFullscreen(void 0);else if(I.webkitRequestFullscreen)I=I.webkitRequestFullscreen();else if(I.mozRequestFullScreen)I=I.mozRequestFullScreen();else if(I.msRequestFullscreen)I=I.msRequestFullscreen();else if(I.webkitEnterFullscreen)I=I.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return I instanceof Promise?I:Promise.resolve()};
_.Nr=function(I){var y;_.tpe(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.o1()==I&&(y=document):y=I;if(y&&(I=_.tpe(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],y))){I.call(y)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.o1=function(){var I=I===void 0?!1:I;var y=_.tpe(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(I)for(;y&&y.shadowRoot;)y=y.shadowRoot.fullscreenElement;return y?y:null};
_.h9=function(I,y){y=y===void 0?!0:y;I.addEventListener("wheel",Jzo);I.overscrollConfig={cooldown:y}};
_.xI=function(I){I.overscrollConfig=void 0;I.removeEventListener("wheel",Jzo)};
Jzo=function(I){var y=I.deltaY,D=I.target,F=null;if(window.Polymer&&window.Polymer.Element){if(D=I.path||I.composedPath&&I.composedPath()){D=_.J(D);for(var R=D.next();!R.done&&(R=R.value,!w0e(R,y));R=D.next())if(R.overscrollConfig){F=R;break}}}else for(;D&&!w0e(D,y);){if(D.overscrollConfig){F=D;break}D=D.parentElement}F&&(y=F.overscrollConfig,y.cooldown?(F=I.deltaY,D=y.lastDeltaY||0,y.lastDeltaY=F,R=y.lastStopped||0,D&&R&&D>0==F>0?Math.abs(D)>=Math.abs(F)?(F=R+1200,D=!1):(F=R+600,D=!0):(F=Date.now()+
600,D=!0),F>Date.now()&&(I.preventDefault(),D&&(y.lastStopped=Date.now()))):I.preventDefault())};
w0e=function(I,y){return y<0&&I.scrollTop>0||y>0&&I.scrollTop<I.scrollHeight-I.clientHeight-1?(I=getComputedStyle(I).overflowY,I=="auto"||I=="scroll"):!1};
_.lj=function(I,y,D,F){F||(F={bubbles:!0,cancelable:!1,composed:!0});D!==null&&D!==void 0&&(F.detail=D);var R=new CustomEvent(y,F);_.l("untrack_fire_custom_event_killswitch")?I.dispatchEvent(R):_.iS(function(){return void I.dispatchEvent(R)});
return R};
vjq=function(I){var y=window,D=function(F){y.removeEventListener("yt-navigate-start",D);return I.call(y,F)};
y.addEventListener("yt-navigate-start",D,void 0)};
_.uj=function(I,y,D,F){y=new SZq(y,!(F===void 0||!F),D);_.lj(I,"yt-action",y);return y.returnValue};
_.qr=function(I,y,D){return _.uj(I,y,D,!0)};
_.GC=function(I,y,D,F){y&&y.length&&y.forEach(function(R){var O=JU4(R);O&&(_.l("handle_service_request_actions")&&R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.sendPost?_.E$(D?D:I,[R]):_.qr(I,O,[R,D,F]))})};
_.E$=function(I,y){var D=[I];y&&D.push.apply(D,y);y=_.uj(I,"yt-service-request",D);return y.length>0&&(y=y[0],_.lj(I,"yt-service-request-sent",y),y&&y.ajaxPromise)?(y.ajaxPromise.then(function(F){_.lj(I,"yt-service-request-completed",F)},function(F){_.lj(I,"yt-service-request-error",{error:F,
params:D})},I),y.ajaxPromise):_.Xs()};
_.YI=function(I,y){if(_.l("handle_service_request_actions"))_.GC(y,I,y);else{I=_.J(I);for(var D=I.next();!D.done;D=I.next()){D=D.value;var F=void 0;((F=_.u(D,_.Q_))==null?0:F.commands)?_.YI(_.u(D,_.Q_).commands,y):(F=void 0,((F=_.u(D,_.fE))==null?0:F.actions)?_.YI(_.u(D,_.fE).actions,y):(F=void 0,((F=_.u(D.commandMetadata,_.nE))==null?0:F.sendPost)?_.E$(y,[D]):_.GC(y,[D],y)))}}};
_.PWC=function(I,y,D){y=y===void 0?{}:y;typeof y==="function"&&(y={callback:y});D||y._c&&y._c.jsl&&y._c.jsl.h||_.e$.extend(y,{_c:{jsl:{h:_.Pi("GAPI_HINT_PARAMS")}}});(y.gapiHintOverride||_.Pi("GAPI_HINT_OVERRIDE"))&&(D=_.lP(document.location.href).gapi_jsh)&&_.e$.extend(y,{_c:{jsl:{h:D}}});t1W(I,y)};
_.zC=function(I,y,D){y=y===void 0?{}:y;I=(I=I in pE?pE[I]:D)||"";D={};for(var F in y){D={key$jscomp$844:D.key$jscomp$844};D.key$jscomp$844=F;var R=function(O){return function(){return String(y[O.key$jscomp$844])}}(D);
I=I.replace(new RegExp("\\$\\{"+D.key$jscomp$844+"\\}","gi"),R);I=I.replace(new RegExp("\\$"+D.key$jscomp$844,"gi"),R)}return I};
_.kI=function(I,y){return K7S(I in pE?pE[I]:{},y)};
K7S=function(I,y){var D=_.Pi("I18N_PLURAL_RULES");D||(D=function(F){return F==1?"one":"other"});
return(I=I["case"+y]||I[D(y)])?I.replace("#",y.toString()):y+""};
jj_=function(I){var y=UEq(I),D=document.getElementById(y),F=D&&CE4(D);F||D&&!F||(D=rzq(I,y,function(){if(!CE4(D)){WgA(D);_.GJS(y);var R=_.de(_.QuB,y);_.Wi(R,0)}}))};
rzq=function(I,y,D){var F=document.createElement("link");F.id=y;F.onload=function(){D&&setTimeout(D,0)};
I=_.Ve(I);_.oB(F,I,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(F);return F};
UEq=function(I){var y=_.kW("A");yr(y,ia(I));return"css-"+O$(y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.N7J=function(I){var y=ojq();I!==y&&(y=_.a1(),!_.l("web_autonav_allow_off_by_default")&&I||_.cg(0,141,!0),_.cg(0,140,!I),y.save())};
ojq=function(){var I=_.a1();return _.l("web_autonav_allow_off_by_default")&&!I.getFlag(141)&&_.Pi("AUTONAV_OFF_BY_DEFAULT")?!1:!I.getFlag(140)};
heo=function(I,y){var D,F;I=((D=I.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(F=D.videoAuthorizationToken)==null?void 0:F.credentialTransferTokens)||[];for(D=0;D<I.length;++D)if(I[D].scope===y)return I[D].token||void 0};
xEq=function(I){for(var y=0,D=0;D<I.length;D++)y=y*31+I.charCodeAt(D),D<I.length-1&&(y%=0x800000000000);return y%1E5};
_.Wg=function(I){return _.jF("ytcsi."+(I||"")+"data_")||lfA(I)};
_.u4e=function(I){I=_.Wg(I);I.metadata||(I.metadata={});return I.metadata};
_.qZ5=function(I){I=_.Wg(I);I.tick||(I.tick={});return I.tick};
_.CE=function(I){I=_.Wg(I);if(I.gel){var y=I.gel;y.gelInfos||(y.gelInfos={});y.gelTicks||(y.gelTicks={})}else I.gel={gelTicks:{},gelInfos:{}};return I.gel};
_.EjH=function(I){I=_.CE(I);I.gelInfos||(I.gelInfos={});return I.gelInfos};
GVS=function(I){var y=_.Wg(I).nonce;y||(y=eC(16),_.Wg(I).nonce=y);return y};
lfA=function(I){var y={tick:{},info:{}};_.fv("ytcsi."+(I||"")+"data_",y);return y};
X05=function(){var I=_.jF("ytcsi.debug");I||(I=[],_.fv("ytcsi.debug",I),_.fv("ytcsi.reference",{}));return I};
_.Bg=function(I){I=I||"";var y=QjH();if(y[I])return y[I];var D=X05(),F={timerName:I,info:{},tick:{},span:{},jspbInfo:[]};D.push(F);return y[I]=F};
YZC=function(I){I=I||"";var y=QjH();y[I]&&delete y[I];var D=X05(),F={timerName:I,info:{},tick:{},span:{},jspbInfo:[]};D.push(F);y[I]=F};
QjH=function(){var I=_.jF("ytcsi.reference");if(I)return I;X05();return _.jF("ytcsi.reference")};
_.njC=function(I){return ffW[I]||"LATENCY_ACTION_UNKNOWN"};
ze_=function(I,y,D){D=D===void 0?{}:D;var F=!1;_.KR("ytLoggingEventsDefaultDisabled",!1)&&(F=!0);F=F?null:LT;D=D===void 0?{}:D;var R=Math.round(D.timestamp||(0,_.m_)());_.g2(y,1,R<Number.MAX_SAFE_INTEGER?R:0);R=new p0e;if(D.lact)_.g2(R,1,isFinite(D.lact)?D.lact:-1);else if(D.timestamp)_.g2(R,1,-1);else{var O=_.m$();_.g2(R,1,isFinite(O)?O:-1)}if(D.sequenceGroup&&!_.l("web_gel_sequence_info_killswitch")){O=D.sequenceGroup;var w=kj4(O),v=new mEq;_.g2(v,2,w);_.BB(v,1,O);_.mH(R,3,v);D.endOfSequence&&delete M1e[D.sequenceGroup]}_.mH(y,
33,R);(D.sendIsolatedPayload?AfJ:$KA)(I,{endpoint:"log_event",payload:y,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},F)};
_.kVt=function(I,y){_.ij("_start",I,y)};
_.A9=function(I,y){if(!_.l("web_csi_action_sampling_enabled")||!_.Wg(y).actionDisabled){var D=_.Bg(y||"");_.y_(D.info,I);I.loadType&&(D=I.loadType,_.u4e(y).loadType=D);_.y_(_.EjH(y),I);D=GVS(y);y=_.Wg(y).cttAuthInfo;dEA().info(I,D,y)}};
af5=function(){var I,y,D,F;return((F=_.nR().resolve(_.fR(DM))==null?void 0:(I=FS())==null?void 0:(y=I.loggingHotConfig)==null?void 0:(D=y.csiConfig)==null?void 0:D.debugTicks)!=null?F:[]).map(function(R){return Object.values(R)[0]})};
_.ij=function(I,y,D){if(!_.l("web_csi_action_sampling_enabled")||!_.Wg(D).actionDisabled){var F=GVS(D),R;if(R=_.l("web_csi_debug_sample_enabled")&&F){(_.nR().resolve(_.fR(DM))==null?0:FS())&&!cz_&&(cz_=!0,_.ij("gcfl",(0,_.m_)(),D));var O,w,v;R=(_.nR().resolve(_.fR(DM))==null?void 0:(O=FS())==null?void 0:(w=O.loggingHotConfig)==null?void 0:(v=w.csiConfig)==null?void 0:v.debugSampleWeight)||0;if(O=R!==0)b:{O=af5();if(O.length>0)for(w=0;w<O.length;w++)if(I===O[w]){O=!0;break b}O=!1}O?(R=xEq(F)%R!==0,
_.Wg(D).debugTicksExcludedLogged||(O={},O.debugTicksExcluded=R,_.A9(O,D)),_.Wg(D).debugTicksExcludedLogged=!0):R=!1}if(!R){I[0]!=="_"&&W7W(I,D,y);R=_.Bg(D||"");R.tick[I]=y||(0,_.m_)();if(R.callback&&R.callback[I])for(R=_.J(R.callback[I]),O=R.next();!O.done;O=R.next())O=O.value,O();R=_.CE(D);R.gelTicks&&(R.gelTicks[I]=!0);O=_.qZ5(D);R=y||(0,_.m_)();O[I]=R;O=_.Wg(D).cttAuthInfo;I==="_start"?dEA().baseline(F,y,O):dEA().tick(I,F,y,O);_.CWL(D);return R}}};
W7W=function(I,y,D){if(_.$I.mark)if(I.startsWith("mark_")||(I="mark_"+I),y&&(I+=" ("+y+")"),D===void 0||_.l("web_csi_disable_alt_time_performance_mark"))_.$I.mark(I);else{D=_.l("csi_use_performance_navigation_timing")?D-_.$I.timeOrigin:D-(_.$I.timeOrigin||_.$I.timing.navigationStart);try{_.$I.mark(I,{startTime:D})}catch(F){}}};
B7e=function(){var I,y=(I=_.$I.getEntriesByType)==null?void 0:I.call(_.$I,"mark");y&&y.forEach(function(D){if(D.name.startsWith("mark_")){var F;(F=_.$I.clearMarks)==null||F.call(_.$I,D.name)}})};
_.ibW=function(I){var y={},D=function(O,w,v){w=w.match("_rid")?w.split("_rid")[0]:w;typeof v==="number"&&(v=JSON.stringify(v));O.requestIds?O.requestIds.push({endpoint:w,id:v}):O.requestIds=[{endpoint:w,id:v}]};
I=_.J(Object.entries(I));for(var F=I.next();!F.done;F=I.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;switch(F){case "GetBrowse_rid":D(y,F,R);break;case "GetGuide_rid":D(y,F,R);break;case "GetHome_rid":D(y,F,R);break;case "GetPlayer_rid":D(y,F,R);break;case "GetSearch_rid":D(y,F,R);break;case "GetSettings_rid":D(y,F,R);break;case "GetTrending_rid":D(y,F,R);break;case "GetWatchNext_rid":D(y,F,R);break;case "yt_red":y.isRedSubscriber=!!R;break;case "yt_ad":y.isMonetized=!!R}}return y};
_.AzJ=function(I){var y=_.bj("aft",I);if(y)return y;y=_.Pi((I||"")+"TIMING_AFT_KEYS",["ol"]);for(var D=y.length,F=0;F<D;F++){var R=_.bj(y[F],I);if(R)return R}return NaN};
_.$E5=function(I,y){_.fv("ytglobal.timing"+(y||"")+"ready_",I)};
_.bj=function(I,y){if(I=_.qZ5(y)[I])return typeof I==="number"?I:I[I.length-1]};
_.CWL=function(I){var y=_.bj("_start",I),D=_.AzJ(I),F=!bbH;y&&D&&F&&(aNH(HbJ,new eeo(Math.round(D-y),I)),bbH=!0)};
sjJ=function(I){lfA(I);T7e();B7e();I||(_.Pi("TIMING_ACTION")&&_.tG("PREVIOUS_ACTION",_.Pi("TIMING_ACTION")),_.tG("TIMING_ACTION",""))};
_.V1W=function(I){I=I===void 0?{}:I;_.r6(function(){Hg();YZC();sjJ();_.$E5(!1);I.cttAuthInfo&&(_.Wg().cttAuthInfo=I.cttAuthInfo);_.tG("TIMING_AFT_KEYS",[]);I.isHot?_.ek({loadType:"hot"}):_.ek({loadType:"warm"});_.tG("TIMING_ACTION","");delete _.Pi("TIMING_INFO",{}).yt_lt;_.r6(_.kVt)(I.startTime,void 0)})()};
_.s$=function(I,y,D,F){y=y===void 0?{}:y;_.r6(function(){var R=D?D:I;TC(R);var O=y.sampleRate;if(!_.l("web_csi_action_sampling_enabled")||O===void 0||O<=1)O=!1;else{var w=GVS(R);O=xEq(w)%O!==0}O&&(_.Wg(R).actionDisabled=!0);_.Bg(R||"").info.actionType=I;y.cttAuthInfo&&(_.Wg(R).cttAuthInfo=y.cttAuthInfo);_.tG(R+"TIMING_ACTION",I);_.r6(_.kVt)(y.startTime,R);O={actionType:F||_.njC(I)};y.logPreviousAction&&(O.previousAction=_.njC(_.Pi("TIMING_ACTION")));(w=_.VO())&&w!=="UNDEFINED_CSN"&&(O.clientScreenNonce=
w);_.ek(O,R);_.$E5(!0,R)})()};
TC=function(I){_.r6(function(){Hg(I);YZC(I);sjJ(I)})()};
Zbt=function(){_.r6(function(){var I=[],y;for(y in _.jF("ytcsi.".slice(0,-1)))y.endsWith("data_")&&I.push(y.slice(0,-5));I=_.J(I);for(y=I.next();!y.done;y=I.next())TC(y.value);Hg()})()};
_.IIe=function(I){return _.r6(function(){return _.gjC("_start",I)})()};
_.ek=function(I,y,D){_.r6(_.A9)(I,y,D===void 0?!1:D)};
_.V_=function(I,y,D){return _.r6(_.ij)(I,y,D)};
_.gjC=function(I,y){return _.r6(function(){var D=_.qZ5(y);return I in D})()};
DF_=function(I){if(!_.l("universal_csi_network_ticks"))return"";I=_.iP(I)||"";for(var y=Object.keys(yxt),D=0;D<y.length;D++){var F=y[D];if(I.includes(F))return F}return""};
RSo=function(I){if(!_.l("universal_csi_network_ticks"))return function(){};
var y=yxt[I];return y?(_.ZL(y),function(){var D=_.l("universal_csi_network_ticks")?(D=FN_[I])?_.ZL(D):!1:!1;return D}):function(){}};
_.ZL=function(I,y,D){return _.r6(function(){if(_.gjC(I,D))return!1;_.V_(I,y,D);return!0})()};
_.ge=function(I,y,D){_.r6(function(){if(!_.IIe(D)||_.gjC(I,D))return!1;_.V_(I,y,D);return!0})()};
_.IQ=function(I){return _.r6(_.bj)(I,void 0)};
Hg=function(I){_.IIe(I)&&_.V_("aa",void 0,I)};
_.vDC=function(I,y,D,F,R,O,w,v,P,K){var r=OJA();O=new _.TG({veType:y,youtubeData:O,jspbYoutubeData:v});K=yi({automatedLogEventSource:K},r);R&&(K.cttAuthInfo=R);R={csn:r,pageVe:O.getAsJson()};_.l("expectation_logging")&&P&&P.screenCreatedLoggingExpectations&&(R.screenCreatedLoggingExpectations=P.screenCreatedLoggingExpectations);D&&D.visualElement?(R.implicitGesture={parentCsn:D.clientScreenNonce,gesturedVe:D.visualElement.getAsJson()},w&&(R.implicitGesture.gestureType=w)):D&&_.tq(new _.g6("newScreen() parent element does not have a VE - rootVe",
y));F&&(R.cloneCsn=F);I?ON("screenCreated",R,I,K):_.Jq("screenCreated",R,K);aNH($XC,new LNo(r));D5.clear();Jxe.clear();wfA.clear();return r};
Fw=function(I,y,D,F,R,O){O=O===void 0?{}:O;S3C(I,y,D,[F],R===void 0?!1:R,O)};
S3C=function(I,y,D,F,R,O){R=R===void 0?!1:R;O=O===void 0?{}:O;Object.assign(O,yi({cttAuthInfo:Z_(y)||void 0},y));for(var w=_.J(F),v=w.next();!v.done;v=w.next()){v=v.value;var P=v.getAsJson();(_.e$.isEmpty(P)||!P.trackingParams&&!P.veType)&&_.tq(Error("Cf"));if(_.l("no_client_ve_attach_unless_shown")){var K=tMt(v,y);if(P.veType&&!Jxe.has(K)&&!wfA.has(K)&&!R){if(!_.l("il_attach_cache_limit")||D5.size<1E3){D5.set(K,[I,y,D,v]);return}_.l("il_attach_cache_limit")&&D5.size>1E3&&_.tq(new _.g6("IL Attach cache exceeded limit"))}v=
tMt(D,y);D5.has(v)?P3C(D,y):wfA.set(v,!0)}}F=F.filter(function(r){r.csn!==y?(r.csn=y,r=!0):r=!1;return r});
D={csn:y,parentVe:D.getAsJson(),childVes:_.T_(F,function(r){return r.getAsJson()})};
y==="UNDEFINED_CSN"?RQ("visualElementAttached",O,D):I?ON("visualElementAttached",D,I,O):_.Jq("visualElementAttached",D,O)};
UFt=function(I,y,D,F,R,O,w){KN5(I,y,D,R,w)};
KN5=function(I,y,D,F,R){rxA(D,y);R=yi({cttAuthInfo:Z_(y)||void 0,automatedLogEventSource:R},y);D={csn:y,ve:D.getAsJson(),eventType:1};F&&(D.clientData=F);y==="UNDEFINED_CSN"?RQ("visualElementShown",R,D):I?ON("visualElementShown",D,I,R):_.Jq("visualElementShown",D,R)};
jJH=function(I,y,D,F){rxA(D,y);var R=yi({cttAuthInfo:Z_(y)||void 0,automatedLogEventSource:void 0},y);D={csn:y,ve:D.getAsJson(),eventType:4};F&&(D.clientData=F);y==="UNDEFINED_CSN"?RQ("visualElementShown",R,D):I?ON("visualElementShown",D,I,R):_.Jq("visualElementShown",D,R)};
oDe=function(I,y,D,F,R,O){var w=(F=F===void 0?!1:F)?16:8;F=yi({cttAuthInfo:Z_(y)||void 0,endOfSequence:F,automatedLogEventSource:O},y);D={csn:y,ve:D.getAsJson(),eventType:w};R&&(D.clientData=R);y==="UNDEFINED_CSN"?RQ("visualElementHidden",F,D):I?ON("visualElementHidden",D,I,F):_.Jq("visualElementHidden",D,F)};
hSC=function(I,y,D,F,R,O){NEq(I,y,D,void 0,F,R,O)};
NEq=function(I,y,D,F,R,O,w){rxA(D,y);F=F||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";O=yi({cttAuthInfo:Z_(y)||void 0,automatedLogEventSource:w},y);D={csn:y,ve:D.getAsJson(),gestureType:F};R&&(D.clientData=R);y==="UNDEFINED_CSN"?RQ("visualElementGestured",O,D):I?ON("visualElementGestured",D,I,O):_.Jq("visualElementGestured",D,O)};
xF_=function(I,y,D,F){var R=yi({cttAuthInfo:Z_(y)||void 0},y);D={csn:y,ve:D.getAsJson(),clientData:F};y==="UNDEFINED_CSN"?RQ("visualElementStateChanged",R,D):I?ON("visualElementStateChanged",D,I,R):_.Jq("visualElementStateChanged",D,R)};
lIe=function(){var I=tJJ(16);for(var y=[],D=0;D<I.length;D++)y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(I[D]&63));return y.join("")};
RQ=function(I,y,D){uD_.push({payloadName:I,payload:D,jspbPayload:void 0,options:y});q3H||(q3H=HgH())};
At4=function(I){if(uD_){for(var y=_.J(uD_),D=y.next();!D.done;D=y.next())D=D.value,D.payload&&(D.payload.csn=I.csn,_.Jq(D.payloadName,D.payload,D.options));uD_.length=0}q3H=0};
tMt=function(I,y){return""+I.getAsJson().veType+I.getAsJson().veCounter+y};
rxA=function(I,y){if(_.l("no_client_ve_attach_unless_shown")){var D=tMt(I,y);Jxe.set(D,!0);P3C(I,y)}};
P3C=function(I,y){I=tMt(I,y);D5.has(I)&&(y=D5.get(I)||[],Fw(y[0],y[1],y[2],y[3],!0),D5.delete(I))};
yi=function(I,y){_.l("log_sequence_info_on_gel_web")&&(I.sequenceGroup=y);return I};
_.Oc=function(I,y,D){_.r6(Fw)(void 0,I,y,D)};
_.LC=function(I,y,D){_.r6(S3C)(void 0,I,y,D)};
_.J_=function(I,y){_.r6(UFt)(void 0,I,y,void 0,void 0,void 0)};
_.wH=function(I,y,D){_.r6(function(){_.hG(y,function(F){jJH(void 0,I,F,D)})})()};
_.vW=function(I,y,D,F){_.r6(function(){_.hG(y,function(R){oDe(void 0,I,R,D,F)})})()};
_.SI=function(I,y,D){_.r6(hSC)(void 0,I,y,D,void 0)};
_.t_=function(I,y,D,F){_.r6(NEq)(void 0,I,y,D,F,void 0)};
_.PW=function(I,y,D){_.r6(xF_)(void 0,I,y,D,void 0)};
EDB=function(I,y){KC.set(I,y)};
GL5=function(I){Uc.initialized=!0;Uc.sessionId=I.sessionId||"";Uc.enabledSpans=I.enabledSpans;I.shouldSampleFn!=null&&(Uc.shouldSampleFn=I.shouldSampleFn)};
XfJ=function(I){Uc.processors.push(I)};
rH=function(I){return Uc.initialized?Uc.enabledSpans?Uc.enabledSpans[I]:!0:!1};
nDB=function(I,y,D){return rH(I)&&Uc.shouldSampleFn(I,y,QJq)?new Y3o(I,y,D):fI5};
jI=function(I,y,D){if(typeof D==="function"){var F=D;D=void 0}var R=nDB(I,y,D),O;if(((O=D)==null?void 0:O.endTime)!=null)return F&&_.tq(Error("Gf")),R;var w;R!==fI5&&((w=D)==null?void 0:w.active)!==!1&&Uc.stack.push(R);if(!F)return R;if(R===fI5)return F(R);try{var v=F(R);if(v instanceof Promise)return v.then(function(P){R.end();return P},function(P){R.end("SPAN_STATUS_ERROR");
throw P;});
R.end();return v}catch(P){throw R.end("SPAN_STATUS_ERROR"),P;}};
pfo=function(){UN.subscribe("handleError",function(I){try{for(var y in oQ)try{var D=oQ[y];typeof oQ[y]==="function"&&(D=D());I.params[y]=typeof oQ[y]==="object"?JSON.stringify(D):String(D)}catch(F){_.tq(F)}}catch(F){_.tq(F)}})};
mFq=function(){};
MMq=function(I,y){var D=Object.keys(I);I=new _.g6("[Command Handler] "+y,{filteredCommandNames:D,originalCommand:I});_.vu(I)};
zSA=function(I,y){MMq(I,y+" was called but not set")};
kLo=function(I){return function(){return new I}};
Nl=function(I){return function(){return _.nR().resolve(I)}};
dFB=function(I,y){var D=_.u(I,_.hq);if(D&&(D=y[D.signal]))return D();I=_.J(Object.keys(I));for(D=I.next();!D.done;D=I.next())if(D=D.value,y[D]&&(D=y[D]))return D()};
_.h_=function(I,y,D,F){return{browseEndpoint:{browseId:I},commandMetadata:{webCommandMetadata:{url:y,rootVe:D,webPageType:F===void 0?"WEB_PAGE_TYPE_BROWSE":F}}}};
aIH=function(I,y,D){var F=y=y===void 0?0:y;D=D===void 0?0:D;var R=D-F;return _.xK(I,"PPSV",void 0,void 0,(R>600?0:R<60||D<=0||F/D>.9)?0:y)};
_.xK=function(I,y,D,F,R){var O="/watch?v="+I;I={videoId:I};y&&(I.playlistId=y,O+="&list="+y);F&&(O+="&pp="+F);R&&(I.startTimeSeconds=R,O+="&t="+R+"s");y={watchEndpoint:I,commandMetadata:{webCommandMetadata:{url:O,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};D&&(y.clickTrackingParams=D);F&&(_.u(y,_.t9).playerParams=F);return y};
cx4=function(I){return{browseEndpoint:{browseId:"VL"+I},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+I,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
WNW=function(I){if(I){var y;if(I){var D=(y=_.u(I.commandMetadata,_.nE))==null?void 0:y.url;y=!(!D||D==="/service_ajax")}else y=!1;if(y)return I;var F;if(I=(F=_.u(I,_.Q_))==null?void 0:F.commands)for(F=_.J(I),I=F.next();!I.done;I=F.next())if(I=WNW(I.value))return I}};
_.lo=function(I){return{runs:[{text:I}]}};
C3q=function(I,y){return I&&y?{runs:[{text:I,navigationEndpoint:y}]}:void 0};
uo=function(I){return I?_.lo(I):void 0};
_.ql=function(I){return I?{simpleText:I}:void 0};
_.Ec=function(I){var y=I.type;I=I.payload;y={type:y};I!==void 0&&(y.payload=I);return y};
BEe=function(I,y,D){for(var F=Object.assign({},I),R=_.J(Object.keys(y)),O=R.next();!O.done;O=R.next()){O=O.value;var w=I[O],v=y[O];if(v===void 0)delete F[O];else if(w===void 0)F[O]=v;else if(Array.isArray(v)&&Array.isArray(w))F[O]=D?[].concat(_.Td(w),_.Td(v)):v;else if(!Array.isArray(v)&&_.b_(v)&&!Array.isArray(w)&&_.b_(w))F[O]=BEe(w,v,D);else if(typeof v===typeof w)F[O]=v;else return y=new _.g6("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:O,originalValue:w,updateValue:v}),
_.vu(y),I}return F};
$FA=function(I){if(!I.length)return"";try{if(iJo)return iJo.decode(I);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(I)}catch(w){}for(var y=0,D=[],F=I.length;y<F;){for(var R=0;R<1024&&y<F;){var O=I[y++];if(O<128)AxW[R++]=O;else{if(O<224)O=(O&31)<<6|I[y++]&63;else if(O<240)O=(O&15)<<12|(I[y++]&63)<<6|I[y++]&63;else{if(R+1===1024){--y;break}O=(O&7)<<18|(I[y++]&63)<<12|(I[y++]&63)<<6|I[y++]&63;O-=65536;AxW[R++]=55296|O>>10;O=56320|O&1023}AxW[R++]=O}}O=String.fromCharCode.apply(String,
AxW);R<1024&&(O=O.substring(0,R));D.push(O)}return D.join("")};
HJH=function(I,y){var D;if((D=bJB)==null?0:D.encodeInto)return y=bJB.encodeInto(I,y),y.read<I.length?I.length*4:y.written;for(var F=D=0;F<I.length;F++){var R=I.charCodeAt(F);R<128?y[D++]=R:(R<2048?y[D++]=R>>6|192:((R&64512)===55296&&F+1<I.length&&(I.charCodeAt(F+1)&64512)===56320?(R=65536+((R&1023)<<10)+(I.charCodeAt(++F)&1023),y[D++]=R>>18|240,y[D++]=R>>12&63|128):y[D++]=R>>12|224,y[D++]=R>>6&63|128),y[D++]=R&63|128)}return D};
eSB=function(I,y,D){if(y&&D&&D.buffer===y.exports.memory.buffer){var F=y.realloc(D.byteOffset,I);if(F)return new Uint8Array(y.exports.memory.buffer,F,I)}I=y?new Uint8Array(y.exports.memory.buffer,y.malloc(I),I):new Uint8Array(I);D&&I.set(D);return I};
_.Xw=function(I){I=new TEA(new sJt([_.ZC(decodeURIComponent(I))]));if(VM_(I,2)){var y=Gz(I);var D=I.pos;var F=I.arrayView;D=D===void 0?0:D;var R=y===void 0?-1:y;D=D===void 0?0:D;R=R===void 0?-1:R;if(F.totalLength&&R){R<0&&(R=F.totalLength-D);F.focus(D);if(!(D-F.arrayPos+R<=F.arrays[F.arrayIdx].length)){var O=F.arrayIdx,w=F.arrayPos;F.focus(D+R-1);w=new Uint8Array(F.arrayPos+F.arrays[F.arrayIdx].length-w);for(var v=0,P=O;P<=F.arrayIdx;P++)w.set(F.arrays[P],v),v+=F.arrays[P].length;F.arrays.splice(O,
F.arrayIdx-O+1,w);F.arrayIdx=0;F.arrayPos=0;F.focus(D)}O=F.arrays[F.arrayIdx];F=new DataView(O.buffer,O.byteOffset+D-F.arrayPos,R)}else F=new DataView(new ArrayBuffer(0));F=new Uint8Array(F.buffer,F.byteOffset,F.byteLength);I.pos+=y;y=F}else y=void 0;y=y?$FA(y):void 0;I=VM_(I,4)?Gz(I):void 0;F=ZJS[I];if(typeof F==="undefined")throw I=new _.g6("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:I}),_.vu(I),I;return{entityTypeFieldNumber:I,entityType:F,entityId:y}};
_.fC=function(I,y,D){D=D===void 0?0:D;var F=new gD_;if(bJB)I=bJB.encode(I);else{var R=new Uint8Array(Math.ceil(I.length*1.2)),O=HJH(I,R);R.length<O&&(R=new Uint8Array(O),O=HJH(I,R));R.length>O&&(R=R.subarray(0,O));I=R}I!==void 0&&(Qi(F,18),R=I.length,Qi(F,R),YK(F,R),F.buf.set(I,F.pos),F.pos+=R);I=I8B[y];if(typeof I==="undefined")throw D=new _.g6("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:y}),_.vu(D),D;I!==void 0&&(Qi(F,32),Qi(F,I));Qi(F,40);Qi(F,1);y=new Uint8Array(F.buf.buffer,
F.buf.byteOffset,F.pos);return encodeURIComponent(_.VB(y,D))};
y2e=function(I){I=I.key||I.id;if(!I)throw Error("If");return I};
Fe_=function(I,y){I=I===void 0?{}:I;return DyL(I,y)};
RQW=function(I,y,D,F){if(F===void 0)return F=Object.assign({},I[y]||{}),D=(delete F[D],F),F={},Object.assign({},I,(F[y]=D,F));var R={},O={};return Object.assign({},I,(O[y]=Object.assign({},I[y],(R[D]=F,R)),O))};
OMB=function(I,y,D,F,R){var O=I[y];if(O==null||!O[D])return I;F=BEe(O[D],F,R==="REPEATED_FIELDS_MERGE_OPTION_APPEND");R={};O={};return Object.assign({},I,(O[y]=Object.assign({},I[y],(R[D]=F,R)),O))};
_.nC=function(I,y,D){return I[y]?I[y][D]||null:null};
J2q=function(){if(LeW)return LeW();var I={};LeW=pv("PersistentEntityStoreDb",{objectStores:(I.EntityStore={addedAtVersion:1},I.EntityAssociationStore={addedAtVersion:2},I),shared:!1,upgrade:function(y,D){D(1)&&jn(r2(y,"EntityStore",{keyPath:"key"}),"entityType","entityType");D(2)&&(y=r2(y,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),jn(y,"byParentEntityKey","parentEntityKey"),jn(y,"byChildEntityKey","childEntityKey"))},
version:3});return LeW()};
wbJ=function(I){return _.qo(J2q(),I)};
pC=function(I){return window.Int32Array?new Int32Array(I):Array(I)};
SYq=function(I){return _.qo(vpB(),I)};
tro=function(I){return new md("WRONG_DATA_TYPE",{encoderVersion:I})};
PCA=function(I){return I instanceof Error?new md("UNKNOWN_ENCODE_ERROR",{originalMessage:I.message}):new md("UNKNOWN_ENCODE_ERROR")};
Keo=function(I){return I instanceof Error?new md("UNKNOWN_DECODE_ERROR",{originalMessage:I.message}):new md("UNKNOWN_DECODE_ERROR")};
Uye=function(I,y){I=I instanceof md?I:y(I);_.vu(I);throw I;};
r2_=function(I){I=(new TextEncoder).encode(I).subarray(0,16);var y=new Uint8Array(16);y.set(I);return y};
opW=function(I){var y=jmt[I];if(y)return y;_.tq(new _.g6("Entity model not found.",{entityType:I}))};
_.Ml=function(){NiJ||(NiJ=hQ_());return NiJ};
hQ_=function(){var I,y,D;return _.S(function(F){if(F.nextAddress==1)return _.nj(F,2),F.yield(_.nv(),4);if(F.nextAddress!=2){I=F.yieldResult;if(!I||!_.ZF()||typeof _.Ft.BroadcastChannel==="undefined")return F.return();y=new xyo;return F.return(new zz(I,y))}D=_.dj(F);D instanceof Error&&_.vu(D);return F.return()})};
_.kK=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1){D=I.mutations;if(!D||D.length<=0)return F.return();y&&y.dispatch(_.Ec({type:"ENTITY_LOADED",payload:D}));return F.yield(l85(D),2)}D.length=0;_.Cj(F)})};
l85=function(I){var y;return _.S(function(D){return D.nextAddress==1?D.yield(_.Ml(),2):(y=D.yieldResult)?D.yield(_.dH(y,"readwrite",function(F){for(var R={},O=_.J(I),w=O.next(),v={};!w.done;v={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},w=O.next())v.mutation$jscomp$8=w.value,v.mutation$jscomp$8.entityKey&&uNe(v.mutation$jscomp$8)&&(v.mutationEntityType$jscomp$3=(0,_.e$.getAnyKey)(v.mutation$jscomp$8.payload),w=void 0,v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(w=function(P){return function(){return _.qYJ(F,
P.mutation$jscomp$8.payload[P.mutationEntityType$jscomp$3],P.mutationEntityType$jscomp$3)}}(v)),v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(w=function(P){return function(){return Ep4(F,P.mutation$jscomp$8.entityKey)}}(v)),v.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(w=function(P){return function(){return G1J(F,P.mutation$jscomp$8.entityKey,P.mutation$jscomp$8.payload[P.mutationEntityType$jscomp$3],P.mutationEntityType$jscomp$3)}}(v)),w&&(R[v.mutation$jscomp$8.entityKey]=
R[v.mutation$jscomp$8.entityKey]?R[v.mutation$jscomp$8.entityKey].then(w):w()));
return jA.all(Object.values(R))}),0):D.return()})};
uNe=function(I){var y;I=(y=I.options)==null?void 0:y.persistenceOption;return I==="ENTITY_PERSISTENCE_OPTION_PERSIST"||I==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
YYq=function(I,y){var D,F;_.S(function(R){if(R.nextAddress==1)return R.yield(_.Ml(),2);if(R.nextAddress!=3)return(D=R.yieldResult)?R.yield(_.dH(D,"readonly",function(O){var w={},v=Object.keys(y).map(function(P){var K=y[P]?[].concat(_.Td(y[P])):[];return Xbt(O,P,K,w)});
return jA.all(v).then(function(){return w})}),3):R.return();
F=R.yieldResult;Object.keys(F).length>0&&I.dispatch(Qm4(F));_.Cj(R)})};
Xbt=function(I,y,D,F){return aQ(I,y,D).then(function(R){F[y]=f8o(D,R)})};
f8o=function(I,y){if(y.length!==I.length)throw Error("Lf");return y.reduce(function(D,F,R){D[I[R]]=F;return D},{})};
my4=function(I){var y=I.filter(function(R){var O;return(R==null?void 0:(O=R.transferEntity)==null?void 0:O.transferState)==="TRANSFER_STATE_COMPLETE"}).length,D=I.filter(function(R){var O;
return(R==null?void 0:(O=R.transferEntity)==null?void 0:O.transferState)==="TRANSFER_STATE_FAILED"}).length,F=I.filter(function(R){var O;
return(R==null?void 0:(O=R.transferEntity)==null?void 0:O.transferState)&&npA.includes(R.transferEntity.transferState)});
if(!(y||F!=null&&F.length))return 0;y=_.pb4(F)+y;I=I.length-D;return I===0?0:Math.round(y*100/I)/100};
_.pb4=function(I){var y=[];y=y.concat.apply(y,_.Td(I.filter(function(O){return O.streamEntity}).map(function(O){var w=Object.assign({},O.streamEntity),v,P=(v=O.transferEntity)==null?void 0:v.transferState;
w.streamsProgress=w.streamsProgress||[];w.streamsProgress=w.streamsProgress.map(function(K){var r=Object.assign({},K);r.numBytesDownloaded=P==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded;return r});
return w}).map(function(O){return O.streamsProgress})));
var D=I=0;y=_.J(y);for(var F=y.next();!F.done;F=y.next()){var R=F.value;F=Number(R.numBytesDownloaded);R=Number(R.numTotalBytes);D+=isNaN(F)?0:F;I+=isNaN(R)?0:R}return I===0?0:Math.round(D*100/I)/100};
MrS=function(I){if(!I||!I.expirationTimestamp||!I.action)return!1;var y=(0,_.m_)()/1E3;return Number(I.expirationTimestamp)>=y};
cW=function(I){return I&&I.expirationTimestamp&&I.action?MrS(I)&&I.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.BW=function(I){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(I||"TRANSFER_STATE_UNKNOWN")};
zQJ=function(I){var y=new gD_;if(I!==void 0){var D=Math.ceil(Math.log2(I.length*4+2)/7);D=D===void 0?2:D;Qi(y,10);y.submessagePosStack.push(y.pos);y.submessagePosStack.push(D);y.pos+=D;YK(y,I.length*1.2);D=HJH(I,y.buf.subarray(y.pos));y.pos+D>y.buf.length&&(YK(y,D),D=HJH(I,y.buf.subarray(y.pos)));y.pos+=D;I=y.submessagePosStack.pop();D=y.submessagePosStack.pop();for(var F=y.pos-D-I;I--;){var R=I?128:0;y.view.setUint8(D++,F&127|R);F>>=7}}y=new Uint8Array(y.buf.buffer,y.buf.byteOffset,y.pos);return(new TextDecoder("utf-8")).decode(y)};
_.io=function(I){var y=0;I=_.J(I);for(var D=I.next(),F={};!D.done;F={transferState$jscomp$3:void 0},D=I.next()){var R=D.value,O=void 0;D=(O=R.streamEntity)!=null?O:{};O=void 0;F.transferState$jscomp$3=(O=R.transferEntity)==null?void 0:O.transferState;O=R=void 0;((R=D)==null?0:(O=R.streamsProgress)==null?0:O.length)&&D.streamsProgress.forEach(function(w){return function(v){v=Number(w.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?v.numTotalBytes:v.numBytesDownloaded);isFinite(v)&&(y+=v)}}(F))}return y};
k1L=function(I){return I.some(function(y){var D;if(!(y==null?0:(D=y.transferEntity)==null?0:D.transferState)){var F;return!(y==null?0:(F=y.policyEntity)==null?0:F.action)||y.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return npA.includes(y.transferEntity.transferState)})};
dyS=function(I,y){if(!y)return!1;if(_.l("of_pb_en_po_ks"))return!0;var D;I=(D=_.nC(I,"offlineVideoPolicy",_.fC(y,"offlineVideoPolicy")))!=null?D:void 0;return!!I&&cW(I)};
_.c2W=function(I){var y=["TRANSFER_STATE_COMPLETE"];y=y===void 0?a8A:y;return I.filter(function(D){var F,R;return y.includes((R=(F=D.transferEntity)==null?void 0:F.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN")})};
WeC=function(I,y){if(y){var D,F=(D=_.nC(I,"playbackData",_.fC(y,"playbackData")))!=null?D:null,R;D=(R=_.nC(I,"transfer",_.fC(y,"transfer")))!=null?R:null;var O;R=(O=_.nC(I,"offlineVideoStreams",_.fC(y,"offlineVideoStreams")))!=null?O:null;var w;I=(w=_.nC(I,"offlineVideoPolicy",_.fC(y,"offlineVideoPolicy")))!=null?w:null;if(F||D||R||I)return{playbackDataEntity:F,transferEntity:D,streamEntity:R,policyEntity:I}}};
_.A_=function(I){var y=I.playbackData;if(!y)return[];var D=[];y=_.J(Object.keys(y));for(var F=y.next();!F.done;F=y.next()){var R=F.value;if(!CC4(I,_.Xw(R).entityId)&&(F=WeC(I,_.Xw(R).entityId))){var O=void 0,w=void 0;R=(w=Number((O=_.nC(I,"playbackData",R))==null?void 0:O.streamDownloadTimestampSeconds))!=null?w:(0,_.m_)();D.push({entity:F,streamDownloadTimestamp:R})}}return D.sort(function(v,P){var K=v.streamDownloadTimestamp,r=P.streamDownloadTimestamp;return r===K?v.entity.streamEntity&&!P.entity.streamEntity?
1:-1:r-K}).map(function(v){return v.entity})};
Biq=function(I){return _.c2W(_.A_(I))};
_.iM_=function(I){return _.A_(I).filter(function(y){var D;if(((D=y.policyEntity)==null?0:D.action)&&y.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var F;if((F=y.transferEntity)==null?0:F.transferState){var R;return npA.includes((R=y.transferEntity)==null?void 0:R.transferState)}return!0})};
CC4=function(I,y){var D;return((D=_.nC(I,"downloadStatusEntity",_.fC(y,"downloadStatusEntity")))==null?void 0:D.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
A2q=function(I){var y;if(I==null?0:(y=I.playbackDataEntity)==null?0:y.key)return _.Xw(I.playbackDataEntity.key).entityId;var D;if(I==null?0:(D=I.transferEntity)==null?0:D.key)return _.Xw(I.transferEntity.key).entityId;var F;if(I==null?0:(F=I.streamEntity)==null?0:F.key)return _.Xw(I.streamEntity.key).entityId;var R;if(I==null?0:(R=I.policyEntity)==null?0:R.key)return _.Xw(I.policyEntity.key).entityId};
bMq=function(I){var y=new Set,D;I=(D=I.mainDownloadsListEntity)==null?void 0:D[$yJ];var F;if(!(I==null?0:(F=I.downloads)==null?0:F.length))return y;var R;I==null||(R=I.downloads)==null||R.forEach(function(O){(O==null?0:O.videoItem)&&y.add(O.videoItem)});
return y};
$K=function(I,y){if(y){var D=_.nC(I,"mainVideoEntity",_.fC(y,"mainVideoEntity")),F=_.nC(I,"downloadStatusEntity",_.fC(y,"downloadStatusEntity")),R=_.nC(I,"ytMainChannelEntity",_.fC(y,"ytMainChannelEntity")),O={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};I=WeC(I,y);F=(F==null?void 0:F.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.l("woffle_render_failed_download_state_ks")&&(F==null?void 0:F.downloadState)==="DOWNLOAD_STATE_FAILED";!I&&F&&(I=O);if(I&&D&&
R)return Object.assign({},{videoEntity:D,channelEntity:R},I)}};
eQB=function(I,y){return HM5(I,y)==="TRANSFER_STATE_COMPLETE"&&dyS(I,y)};
TiA=function(I,y){if(!y)return!1;var D;I=(D=_.nC(I,"playbackData",_.fC(y,"playbackData")))!=null?D:void 0;return!!I&&!!I.playerResponseJson};
HM5=function(I,y){if(!y)return"TRANSFER_STATE_UNKNOWN";var D=_.nC(I,"transfer",_.fC(y,"transfer"));if(D){var F;return(F=D.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN"}D=_.nC(I,"offlineOrchestrationActionWrapperEntity",_.fC(y,"offlineOrchestrationActionWrapperEntity"));I=_.nC(I,"mainVideoEntity",_.fC(y,"mainVideoEntity"));return D||I?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
sm_=function(I,y){if(!y)return"TRANSFER_STATE_UNKNOWN";if(I=_.nC(I,"transfer",_.fC(y,"transfer"))){var D;return(D=I.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
VrJ=function(I,y){return y&&(I=_.nC(I,"videoPlaybackPositionEntity",_.fC(y,"videoPlaybackPositionEntity")),I==null?0:I.lastPlaybackPositionSeconds)?Number(I.lastPlaybackPositionSeconds):0};
gpq=function(I,y){return ZMB(I).some(function(D){var F;return(D==null?void 0:(F=D.mainPlaylistEntity)==null?void 0:F.playlistId)===y})};
ymS=function(I,y,D){var F=IgC(I,y);if(!F.length)return[];y=[];F=_.J(F);for(var R=F.next();!R.done;R=F.next()){R=R.value;var O=$K(I,R);D&&HM5(I,R)!=="TRANSFER_STATE_COMPLETE"||O&&y.push(O)}return y};
IgC=function(I,y){if(!y)return[];var D=_.fC(y,"mainPlaylistEntity"),F;y=(F=I.mainPlaylistEntity)==null?void 0:F[D];F=[];if(y==null||!y.videos)return F;y=_.J(y.videos);for(D=y.next();!D.done;D=y.next()){D=D.value;var R=void 0,O=void 0,w=void 0,v=(R=I)==null?void 0:(O=R.mainPlaylistVideoEntity)==null?void 0:(w=O[D])==null?void 0:w.video;v&&(D=_.Xw(v).entityId)&&F.push(D)}return F};
DTA=function(I,y){if(y){var D=_.nC(I,"mainPlaylistEntity",_.fC(y,"mainPlaylistEntity")),F=_.nC(I,"mainPlaylistDownloadStateEntity",_.fC(y,"mainPlaylistDownloadStateEntity"));I=_.nC(I,"ytMainChannelEntity",_.fC(y,"ytMainChannelEntity"));if(F&&D)return Object.assign({},{mainPlaylistEntity:D,mainPlaylistDownloadStateEntity:F},!!I&&{channelEntity:I})}};
ZMB=function(I){return FkB(I).sort(function(y,D){return D.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedPlaylistEntities})};
FkB=function(I){var y=I.mainPlaylistDownloadStateEntity,D=[];if(!y)return D;for(var F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next()){var O=R.value;R=DTA(I,_.Xw(O).entityId);var w=void 0;O=Number((w=y[O])==null?void 0:w.addedTimestampMillis);w=isNaN(O)?(0,_.m_)():O;R!==void 0&&D.push({downloadedPlaylistEntities:R,addedTimestampMillis:w})}return D};
RJo=function(I){var y,D=(y=I.mainPlaylistVideoEntity)!=null?y:{};return new Set(ZMB(I).reduce(function(F,R){F=F===void 0?[]:F;var O,w;R==null||(O=R.mainPlaylistEntity)==null||(w=O.videos)==null||w.forEach(function(v){var P;(v=(P=D[v])==null?void 0:P.video)&&F.push(v)});
return F},[]))};
OYB=function(I){return"downloadedMusicPlaylistEntities"in I};
Lko=function(I){return"mainPlaylistEntity"in I&&"mainPlaylistDownloadStateEntity"in I};
Jm_=function(I){return"videoEntity"in I&&"channelEntity"in I};
w9B=function(I){var y=I.musicPlaylistDownloadMetadataEntity,D=[];if(!y)return D;for(var F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next()){R=R.value;a:{var O=I,w=_.Xw(R).entityId;if(w){var v=_.nC(O,"musicPlaylist",_.fC(w,"musicPlaylist"));O=_.nC(O,"musicPlaylistDownloadMetadataEntity",_.fC(w,"musicPlaylistDownloadMetadataEntity"));if(v&&O){v={musicPlaylistEntity:v,musicPlaylistDownloadStateEntity:O};break a}}v=void 0}O=void 0;R=Number((O=y[R])==null?void 0:O.addedTimestampMillis);R=isNaN(R)?(0,_.m_)():
R;v!==void 0&&D.push({downloadedMusicPlaylistEntities:v,addedTimestampMillis:R})}return D};
v3L=function(I){var y=new Set;I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,"musicPlaylistEntity"in D&&"musicPlaylistDownloadStateEntity"in D){D=_.J(D.musicPlaylistEntity.tracks);for(var F=D.next();!F.done;F=D.next())y.add(F.value)}return y};
Syq=function(I,y){if(y){var D=_.nC(I,"musicTrack",_.fC(y,"musicTrack")),F=_.nC(I,"musicArtist",_.fC(y,"musicArtist"))||{};if((I=WeC(I,y))&&D&&F)return Object.assign({},{musicTrackEntity:D,musicArtistEntity:F},I)}};
txB=function(I){var y=I.musicTrackDownloadMetadataEntity,D=[];if(!y)return[];y=_.J(Object.keys(y));for(var F=y.next();!F.done;F=y.next()){var R=F.value;F=Syq(I,_.Xw(R).entityId);var O=void 0;R=Number((O=_.nC(I,"musicTrackDownloadMetadataEntity",R))==null?void 0:O.addedTimestampMillis);O=isNaN(R)?(0,_.m_)():R;F!==void 0&&D.push({downloadedMusicEntities:F,addedTimestampMillis:O})}return D};
UTq=function(I,y){if(!y)return[];if(Object.values(Pqt).includes(y))return KkL(I,y);y=_.fC(y,"musicPlaylist");var D;I=(D=I.musicPlaylist)==null?void 0:D[y];D=[];if(I==null||!I.tracks)return D;I=_.J(I.tracks);for(y=I.next();!y.done;y=I.next())(y=_.Xw(y.value).entityId)&&D.push(y);return D};
KkL=function(I,y){var D=new Set,F=w9B(I).map(function(O){return O.downloadedMusicPlaylistEntities});
F=v3L(F);F=_.J(F);for(var R=F.next();!R.done;R=F.next())(R=_.Xw(R.value).entityId)&&D.add(R);return rm4(I).downloadedMusicEntities.filter(function(O){var w;if((w=O.musicTrackEntity)!=null&&w.videoId){O=O.musicTrackEntity;if(w=y==="PPOM"?!0:!D.has(O.videoId))b:switch(O=O.musicVideoType,y){case "PPSE":w=O==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:w=O!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}O=w}else O=!1;return O}).map(function(O){var w;
return(w=O.musicTrackEntity)==null?void 0:w.videoId})};
rm4=function(I){var y=txB(I).sort(function(D,F){return F.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:OYB(D)?D.downloadedMusicPlaylistEntities:{}});
I=w9B(I).sort(function(D,F){return F.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:OYB(D)?D.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:y,downloadedMusicPlaylistEntities:I}};
o3e=function(I,y){y=_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?UTq(I,y):IgC(I,y);if(!y.length)return"TRANSFER_STATE_UNKNOWN";y=y.map(function(D){return sm_(I,D)});
return jtS(y)};
jtS=function(I){var y=new Set(I);if(y.has("TRANSFER_STATE_FAILED")&&y.size===1)return"TRANSFER_STATE_FAILED";y.delete("TRANSFER_STATE_FAILED");if(y.has("TRANSFER_STATE_UNKNOWN")&&y.size===1)return"TRANSFER_STATE_PRE_TRANSFER";y.delete("TRANSFER_STATE_UNKNOWN");if(y.has("TRANSFER_STATE_PRE_TRANSFER")&&y.size===1||y.size===0)return"TRANSFER_STATE_PRE_TRANSFER";I=y.has("TRANSFER_STATE_TRANSFERRING");y=y.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return I||y?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
bo=function(I){var y=I.mainVideoDownloadStateEntity,D=[];if(!y)return[];y=_.J(Object.keys(y));for(var F=y.next();!F.done;F=y.next()){var R=F.value;if(!CC4(I,_.Xw(R).entityId)){F=$K(I,_.Xw(R).entityId);var O=void 0,w=void 0;R=(w=Number((O=_.nC(I,"mainVideoDownloadStateEntity",R))==null?void 0:O.addedTimestampMillis))!=null?w:(0,_.m_)();F!==void 0&&D.push({downloadedVideoEntities:F,addedTimestampMillis:R})}}return D};
NQL=function(I){return bo(I).sort(function(y,D){return D.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities})};
_.xTq=function(I){var y=RJo(I),D=_.HW(I),F=bMq(I),R=bo(I).filter(function(w){var v,P;if((w==null?void 0:(v=w.downloadedVideoEntities)==null?void 0:(P=v.transferEntity)==null?void 0:P.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var K,r;w=w==null?void 0:(K=w.downloadedVideoEntities)==null?void 0:(r=K.videoEntity)==null?void 0:r.key;return _.l("kevlar_use_library_entity")?w&&(F.has(w)||D[w]):w&&!y.has(w)}),O=FkB(I).filter(function(w){return o3e(I,w.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Td(R),_.Td(O)).sort(function(w,v){return v.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return hJ5(w)})};
lge=function(I,y){if(y&&dyS(I,y)){var D,F,R=(F=(D=_.nC(I,"playbackData",_.fC(y,"playbackData")))!=null?D:void 0)==null?void 0:F.playerResponseJson;if(R){try{var O=JSON.parse(R);var w=_.nC(I,"transfer",_.fC(y,"transfer")),v=VrJ(I,y);v&&(O=Object.assign({},O,{playerConfig:Object.assign({},O.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+v*1E3}}})}));O.cotn=w==null?void 0:w.cotn}catch(P){}return O}}};
_.qyB=function(I){var y,D,F;I=(F=(D=((y=I.downloadsPageViewConfigurationEntity)!=null?y:{})[_.eI])==null?void 0:D.smartDownloadsOptInBannerVisibility)!=null?F:{};var R;return(R=_.u(I,uXe))!=null?R:{}};
_.HW=function(I){var y,D,F;I=(F=(D=((y=I.mainDownloadsListEntity)!=null?y:{})[_.E35])==null?void 0:D.downloads)!=null?F:[];y={};D=_.J(I);for(F=D.next();!F.done;F=D.next())I=void 0,y[(I=F.value.videoItem)!=null?I:""]=!0;return y};
G2C=function(I){var y=_.HW(I);if(Object.keys(y).length===0)return!1;var D=I.mainVideoEntity;if(!D)return!0;D=_.J(Object.keys(D));for(var F=D.next();!F.done;F=D.next()){F=F.value;var R=_.Xw(F).entityId;if(y[F]&&!CC4(I,R))return!1}return!0};
_.Tz=function(I){var y=_.HW(I);return bo(I).sort(function(D,F){return D.addedTimestampMillis-F.addedTimestampMillis}).map(function(D){return D.downloadedVideoEntities}).filter(function(D){var F;
return(D=D==null?void 0:(F=D.videoEntity)==null?void 0:F.key)&&!!y[D]})};
_.Qte=function(I){var y,D,F;I=(F=(D=((y=I.downloadsPageViewConfigurationEntity)!=null?y:{})[_.eI])==null?void 0:D.downloadsUpsellBannerVisibility)!=null?F:{};var R;return(R=_.u(I,X9W))!=null?R:{}};
hJ5=function(I){return"downloadedVideoEntities"in I?I.downloadedVideoEntities:"downloadedPlaylistEntities"in I?I.downloadedPlaylistEntities:{}};
YyS=function(I){var y=_.HW(I),D=RJo(I),F=bo(I).filter(function(R){var O,w;return(R=R==null?void 0:(O=R.downloadedVideoEntities)==null?void 0:(w=O.videoEntity)==null?void 0:w.key)&&!y[R]&&!D.has(R)});
I=FkB(I);return[].concat(_.Td(F),_.Td(I)).sort(function(R,O){return O.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return hJ5(R)})};
_.sc=function(I){if(!_.l("kevlar_use_library_entity"))return YyS(I);var y=bo(I).filter(function(F){var R,O;if(R=F=F==null?void 0:(R=F.downloadedVideoEntities)==null?void 0:(O=R.videoEntity)==null?void 0:O.key){var w,v,P;R=((v=(w=I.mainDownloadsListEntity)==null?void 0:w[$yJ])==null?0:(P=v.downloads)==null?0:P.length)?bMq(I).has(F):!1}return R}),D=FkB(I);
return[].concat(_.Td(y),_.Td(D)).sort(function(F,R){return R.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return hJ5(F)})};
fgH=function(I){var y=_.HW(I),D=RJo(I);return NQL(I).filter(function(F){var R;return(F=F==null?void 0:(R=F.videoEntity)==null?void 0:R.key)&&!y[F]&&!D.has(F)})};
n3A=function(I){if(!_.l("kevlar_use_library_entity"))return fgH(I);var y=_.HW(I),D=bMq(I);return NQL(I).filter(function(F){var R;return(F=F==null?void 0:(R=F.videoEntity)==null?void 0:R.key)&&!y[F]&&D.has(F)})};
p9_=function(I,y){y=_.fC(y,"settingEntity");var D,F,R;return!!((R=(F=((D=I.settingEntity)!=null?D:{})[y])==null?void 0:F.settingOptionValue)!=null?R:{}).boolValue};
_.Vi=function(I){var y=_.Tz(I);if(k1L(y))return 0;var D=[];y=_.J(y);for(var F=y.next();!F.done;F=y.next()){F=F.value;var R=void 0,O=void 0;if((R=F)==null?0:(O=R.videoEntity)==null?0:O.key)R=_.Xw(F.videoEntity.key).entityId,F=I,R=_.fC(R,"mainVideoDownloadStateEntity"),F=_.nC(F,"mainVideoDownloadStateEntity",R),(F=Number(F==null?void 0:F.addedTimestampMillis))&&D.push(F)}return Math.max.apply(Math,_.Td(D))};
_.Z5=function(I){return I.ui.richGridMiniMode};
_.gH=function(I){return I.ui.richGridItemsPerRow};
_.mTo=function(I){return I.ui.richGridSlimItemsPerRow};
_.MxJ=function(I){return I.ui.guideIsExpanded};
_.Iq=function(I){return I.ui.miniplayerIsActive};
zJe=function(I){return I.ui.singleOptionSurveyIsActive};
_.yp=function(I){var y;return((y=I.ui)==null?void 0:y.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.k2q=function(I){return _.yp(I)==="WEB_PAGE_TYPE_WATCH"};
_.dT_=function(I){return _.yp(I)==="WEB_PAGE_TYPE_SHORTS"};
_.agA=function(I){return I.ui.inlinePreviewIsActive};
_.cme=function(I){return I.ui.inlinePreviewIsEnabled};
_.Wk5=function(I){return I.ui.miniplayerPlaybackState};
_.D7=function(I){return I.ui.isOnline};
_.Cqt=function(I){return I.ui.frostedGlassMode};
_.FM=function(I,y){return HM5(I.entities,y)};
_.Rq=function(I,y){return o3e(I.entities,y)};
BQq=function(I,y){var D;if(y){var F;I=(F=_.nC(I.entities,"offlineVideoPolicy",_.fC(y,"offlineVideoPolicy")))==null?void 0:F.action}else I=void 0;return(D=I)!=null?D:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iYH=function(I,y){var D;y?(I=_.nC(I.entities,"offlineVideoPolicy",_.fC(y,"offlineVideoPolicy")),I=Number(I==null?void 0:I.expirationTimestamp)):I=void 0;return(D=I)!=null?D:0};
_.Am5=function(I){return _.A_(I.entities).length};
$Te=function(I,y){return $K(I.entities,y)};
bYq=function(I,y){return DTA(I.entities,y)};
Og=function(I,y){return(I=$K(I.entities,y))?_.pb4([I]):0};
_.HY_=function(I,y){var D=_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(D){var F=I.entities;var R=UTq(F,y);if(R.length){var O=[];R=_.J(R);for(var w=R.next();!w.done;w=R.next())(w=Syq(F,w.value))&&O.push(w);F=O}else F=[]}else F=ymS(I.entities,y);var v;if(D){var P=I.entities;y?(y=_.fC(y,"musicPlaylist"),P=(v=P.musicPlaylist)==null?void 0:v[y],v=P!=null&&P.tracks?P.tracks.length:0):v=0}else v=I.entities,y?(y=_.fC(y,"mainPlaylistEntity"),v=(P=v.mainPlaylistEntity)==null?void 0:P[y],v=v!=null&&v.videos?
v.videos.length:0):v=0;return F.length!==v?0:F?my4(F):0};
_.eJt=function(I){return I.download.isLeaderTab};
_.TQ4=function(I,y,D){if(!y&&D){var F=I.entities;if(D){var R=zQJ(D),O,w;y=(w=(O=_.nC(F,"offlineabilityEntity",_.fC(R,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else O=I.entities,y?(w=zQJ(y),y=(R=(F=_.nC(O,"offlineabilityEntity",_.fC(w,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return y};
st_=function(I,y){I=I.entities;if(y){y=zQJ(y);var D,F;y=(F=(D=_.nC(I,"offlineabilityEntity",_.fC(y,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?F:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else y="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return y};
_.Vxe=function(I){var y=I.entities;I=_.D7(I);var D=p9_(y,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.l("kevlar_modern_downloads_page")&&D)var F=!1;else{var R,O;y=(O=(R=((F=y.downloadsPageViewConfigurationEntity)!=null?F:{})[_.eI])==null?void 0:R.smartDownloadsOptInBannerVisibility)!=null?O:{};F=I?!!y.visibleWithConnection:!!y.visibleWithoutConnection}return F};
_.ZYo=function(I){return p9_(I.entities,"SMART_DOWNLOADS_ENABLED")};
_.g3W=function(I){return G2C(I.entities)};
IWC=function(I){return _.Tz(I.entities).every(function(y){var D;return(y==null?void 0:(D=y.transferEntity)==null?void 0:D.transferState)&&!npA.includes(y.transferEntity.transferState)})};
_.ylL=function(I){var y,D,F,R=(F=(D=((y=I.entities.downloadsPageViewConfigurationEntity)!=null?y:{})[_.eI])==null?void 0:D.downloadsUpsellBannerVisibility)!=null?F:{};return _.D7(I)?!!R.visibleWithConnection:!!R.visibleWithoutConnection};
_.DGJ=function(I,y){return CC4(I.entities,y)};
Ffo=function(I,y){if(y){var D,F;I=(F=(D=_.nC(I.entities,"downloadStatusEntity",_.fC(y,"downloadStatusEntity")))==null?void 0:D.downloadState)!=null?F:"DOWNLOAD_STATE_UNKNOWN"}else I="DOWNLOAD_STATE_UNKNOWN";return I};
L0=function(I,y){return VrJ(I.entities,y)};
Jlo=function(I){I=R95(I);var y=I.hours===void 0?0:I.hours,D=I.minutes===void 0?0:I.minutes,F=I.seconds===void 0?0:I.seconds,R=y>0;I=[];R&&(y=ONW(y),I.push(y));y=R;y=y===void 0?!1:y;D=(["af","be","lt"].includes(JS)||y)&&D<10?Lf_().format(D):(new Intl.NumberFormat("en-u-nu-latn")).format(D);I.push(D);D=Lf_().format(F);I.push(D);D=":";"da fi id si sr sr-Latn".split(" ").includes(JS)&&(D=".");return I.join(D)};
_.dG5=function(I){I=R95(I);var y=I.hours===void 0?0:I.hours,D=I.minutes===void 0?0:I.minutes,F=I.seconds===void 0?0:I.seconds;I=[];if(y>0){var R=wyt().format({hours:y});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(JS)||y>9999)R=R.replace(y.toString(),ONW(y)),JS==="km"&&(R=R.replace(".",","));I.push(R)}D>0&&I.push(wyt().format({minutes:D}));F>0&&I.push(wyt().format({seconds:F}));y="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");D=JS=="am"?"{0}\u1363 ":JS=="fa"?"{0}\u060c\u200f ":
JS=="my"?"{0} - ":JS=="ne"?"{0},":JS=="th"?"{0} ":JS=="ur"?"{0}\u060c ":JS=="ar"||JS=="ar-XB"?"{0} \u0648":JS=="ja"||JS=="zh-CN"||JS=="zh-HK"||JS=="zh-TW"?"{0}\u3001":"{0}, ";F=JS=="am"?"\u1363 ":JS=="fa"?"\u060c\u200f ":JS=="my"?" - ":JS=="th"?" ":JS=="ur"?"\u060c ":JS=="ar"||JS=="ar-XB"?" \u0648":JS=="ja"||JS=="zh-CN"||JS=="zh-HK"||JS=="zh-TW"?"\u3001":", ";R=JS=="am"?" \u12a5\u1293 {0}":JS=="as"?" \u0986\u09f0\u09c1 {0}":JS=="az"?" v\u0259 {0}":JS=="bn"?" \u098f\u09ac\u0982 {0}":JS=="cs"?" a\u00a0{0}":
JS=="de"?" und {0}":JS=="el"?" \u03ba\u03b1\u03b9 {0}":JS=="eu"?" eta {0}":JS=="fa"?"\u060c \u0648 {0}":JS=="fil"?", at {0}":JS=="gu"?" \u0a85\u0aa8\u0ac7 {0}":JS=="hi"?", \u0914\u0930 {0}":JS=="hu"?" \u00e9s {0}":JS=="hy"?" \u0587 {0}":JS=="id"?", dan {0}":JS=="iw"?" \u05d5-{0}":JS=="ja"?"\u3001{0}":JS=="ka"?" \u10d3\u10d0 {0}":JS=="km"?" \u1793\u17b7\u1784 {0}":JS=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":JS=="ko"?" \ubc0f {0}":JS=="ky"?" \u0436\u0430\u043d\u0430 {0}":JS=="lt"?" ir {0}":JS==
"lv"?" un {0}":JS=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":JS=="mr"?" \u0906\u0923\u093f {0}":JS=="ms"?" dan {0}":JS=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":JS=="ne"?" \u0930 {0}":JS=="or"?", \u0b13 {0}":JS=="pa"?" \u0a05\u0a24\u0a47 {0}":JS=="ro"?" \u0219i {0}":JS=="si"?", \u0dc3\u0dc4 {0}":JS=="sk"?" a {0}":JS=="sl"?" in {0}":JS=="sq"?" dhe {0}":JS=="sv"?" och {0}":JS=="sw"?" na {0}":JS=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":JS=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
JS=="th"?" \u0e41\u0e25\u0e30{0}":JS=="tr"?" ve {0}":JS=="ur"?"\u060c \u0627\u0648\u0631 {0}":JS=="uz"?" va {0}":JS=="vi"?" v\u00e0 {0}":JS=="zh-HK"?"\u53ca{0}":JS=="zu"?", ne-{0}":JS=="af"||JS=="nl"?" en {0}":JS=="ar"||JS=="ar-XB"?" \u0648{0}":JS=="be"||JS=="uk"?" \u0456 {0}":JS=="en-GB"||JS=="en-IN"?" and {0}":JS=="en"||JS=="en-XA"?", and {0}":JS=="et"||JS=="fi"?" ja {0}":JS=="fr"||JS=="fr-CA"?" et {0}":JS=="zh-CN"||JS=="zh-TW"?"\u548c{0}":JS=="da"||JS=="is"||JS=="no"?" og {0}":JS=="es"||JS=="es-419"||
JS=="es-US"?" y {0}":JS=="kk"||JS=="lo"||JS=="mn"?", {0}":JS=="bg"||JS=="mk"||JS=="ru"||JS=="sr"?" \u0438 {0}":JS=="gl"||JS=="it"||JS=="pt-BR"||JS=="pt-PT"?" e {0}":" i {0}";var O=JS=="am"?"{0} \u12a5\u1293 {1}":JS=="as"?"{0} \u0986\u09f0\u09c1 {1}":JS=="az"?"{0} v\u0259 {1}":JS=="bn"?"{0} \u098f\u09ac\u0982 {1}":JS=="de"?"{0} und {1}":JS=="el"?"{0} \u03ba\u03b1\u03b9 {1}":JS=="eu"?"{0} eta {1}":JS=="fa"?"{0} \u0648 {1}":JS=="fil"?"{0} at {1}":JS=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":JS=="hi"?"{0} \u0914\u0930 {1}":
JS=="hu"?"{0} \u00e9s {1}":JS=="hy"?"{0} \u0587 {1}":JS=="iw"?"{0} \u05d5-{1}":JS=="ja"?"{0}\u3001{1}":JS=="ka"?"{0} \u10d3\u10d0 {1}":JS=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":JS=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":JS=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":JS=="ko"?"{0} \ubc0f {1}":JS=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":JS=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":JS=="lt"?"{0} ir {1}":JS=="lv"?"{0} un {1}":JS=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":JS=="mn"?"{0}, {1}":JS==
"mr"?"{0} \u0906\u0923\u093f {1}":JS=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":JS=="ne"?"{0} \u0930 {1}":JS=="or"?"{0} \u0b13 {1}":JS=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":JS=="ro"?"{0} \u0219i {1}":JS=="si"?"{0} \u0dc3\u0dc4 {1}":JS=="sl"?"{0} in {1}":JS=="sq"?"{0} dhe {1}":JS=="sv"?"{0} och {1}":JS=="sw"?"{0} na {1}":JS=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":JS=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":JS=="th"?"{0}\u0e41\u0e25\u0e30{1}":JS=="tr"?"{0} ve {1}":JS=="ur"?
"{0} \u0627\u0648\u0631 {1}":JS=="uz"?"{0} va {1}":JS=="vi"?"{0} v\u00e0 {1}":JS=="zh-HK"?"{0}\u53ca{1}":JS=="zu"?"{0} ne-{1}":JS=="af"||JS=="nl"?"{0} en {1}":JS=="ar"||JS=="ar-XB"?"{0} \u0648{1}":JS=="be"||JS=="uk"?"{0} \u0456 {1}":JS=="cs"||JS=="sk"?"{0} a\u00a0{1}":JS=="et"||JS=="fi"?"{0} ja {1}":JS=="fr"||JS=="fr-CA"?"{0} et {1}":JS=="id"||JS=="ms"?"{0} dan {1}":JS=="zh-CN"||JS=="zh-TW"?"{0}\u548c{1}":JS=="da"||JS=="is"||JS=="no"?"{0} og {1}":JS=="es"||JS=="es-419"||JS=="es-US"?"{0} y {1}":JS==
"bg"||JS=="mk"||JS=="ru"||JS=="sr"?"{0} \u0438 {1}":JS=="en"||JS=="en-GB"||JS=="en-IN"||JS=="en-XA"?"{0} and {1}":JS=="gl"||JS=="it"||JS=="pt-BR"||JS=="pt-PT"?"{0} e {1}":"{0} i {1}";JS==="sq"?(R=R.replace("dhe","e"),O=O.replace("dhe","e")):JS==="th"?(F=F.replace("{0}"," {0}"),O=O.replace("{0}","{0} "),O=O.replace("{1}"," {1}")):JS==="ne"?F=",":JS==="zh-CN"?F="":y.includes(JS)&&(F=" ");return I.length<2?I.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(JS)?
I.length===2?O.replace("{0}",I[0]).replace("{1}",I[1]):D.replace("{0}",I[0])+I.slice(1,-1).join(F)+R.replace("{0}",I[I.length-1]):I.join(F)};
R95=function(I){var y=I.hours||0,D=I.minutes||0,F=I.seconds||0;y=F+D*60+y*3600+(I.days||0)*86400+(I.weeks||0)*604800+(I.months||0)*2629800+(I.years||0)*31557600;if(y<=0)return{hours:0,minutes:0,seconds:0};I=y;y=Math.floor(I/3600);I%=3600;D=Math.floor(I/60);F=Math.floor(I%60);return{hours:y,minutes:D,seconds:F}};
ONW=function(I){I=(new Intl.NumberFormat("en-u-nu-latn")).format(I);var y=["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(JS)?I.replace(",","\u00a0"):y.includes(JS)?I.replace(",","\u202f"):D.includes(JS)?I.replace(",","."):I};
Lf_=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
wyt=function(){aWq||(wY=clB,aWq=new WfJ);return aWq};
CLS=function(I){try{return(new _.vF(5)).format(I)}catch(y){}};
S7=function(I){return{thumbnailOverlayDownloadingRenderer:{state:I}}};
Bp5=function(){var I=_.zC("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.lo(I),icon:{iconType:"PLAY_ALL"}}}};
iN_=function(I){I=_.tS(I,2);return JS!=="ru"&&JS!=="es_419"&&JS!=="es-419"&&JS!=="es"&&JS!=="es_US"&&JS!=="es-US"&&JS!=="fr"&&JS!=="pl"&&JS!=="it"&&JS!=="nl"&&JS!=="uk"&&JS!=="fr_CA"&&JS!=="fr-CA"||I===""?I:I[0].toLocaleUpperCase()+I.substring(1)};
$GC=function(I){return function(y){var D=I(),F=_.tS(y,D.dateFormat);y=_.tS(y,D.timeFormat);var R=AlH.DATETIMEFORMATS[D.joinerStyle];R=R.replace(/'(?!')/g,"");R=R.replace("{0}",y);R=R.replace("{1}",F);return D.capitalize(R)}};
bNW=function(I){return I?typeof I.seconds==="string"&&(I.nanos===void 0||typeof I.nanos==="number"):!1};
HNH=function(I){return new Date(Number(I.seconds)*1E3+(I.nanos||0)*1E-6)};
_.tS=function(I,y){if(typeof I.getTime==="function")I={date:I};else if(bNW(I))I={date:HNH(I)};else if(typeof bNW(I.timestamp)&&typeof I.i18nInternalSecondsEastOfUtc==="number")I={date:HNH(I.timestamp),timeZone:PF(-I.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(I));var D=I;I=D.date;D=D.timeZone;y=e95(y).format(I,D);JS==="zh-TW"&&(I=D?Number(e95("H").format(I,D)):I.getHours(),y=I<5?y.replace("\u4e0a\u5348","\u51cc\u6668"):I<8?y.replace("\u4e0a\u5348","\u65e9\u4e0a"):I<12?
y.replace("\u4e0a\u5348","\u4e0a\u5348"):I<13?y.replace("\u4e0b\u5348","\u4e2d\u5348"):I<19?y.replace("\u4e0b\u5348","\u4e0b\u5348"):y.replace("\u4e0b\u5348","\u665a\u4e0a"));return y};
e95=function(I){if(Tpe.has(I))return Tpe.get(I);var y=sKL(I);y=VoJ(y);ZNW!==!0&&(ZNW=!0);ggC=!0;ggC=!1;y=new K0(y,AlH);Tpe.set(I,y);return y};
sKL=function(I){return(new K0(I,AlH)).patternParts_.map(function(y){return y.type===0?"'"+y.text+"'":y.text}).join("")};
VoJ=function(I){return JS==="en"||JS==="es_US"||JS==="es-US"?I:I.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(y,D,F){return"H".repeat(D.length)+F})};
LnS=function(I,y){IPA||(wY=clB,IPA=new y55);var D=IPA;a:if(I=Di_(I),y=Di_(y||new Date),I>y)D=I.getTime()-y.getTime()>6048E5?_.tS(I,1):FnH(I);else{for(var F=0;RHL(I,12*(F+1))<y;)++F;if(F>0)D=D.format(-F,0);else{for(F=0;RHL(I,F+1)<y;)++F;if(F>0)D=D.format(-F,2);else{I=y.getTime()-I.getTime();y=_.J(Oce);for(F=y.next();!F.done;F=y.next()){F=F.value;var R=F.unit,O=Math.floor(I/F.unitDuration);if(O>=(F.threshold===void 0?1:F.threshold)){D=D.format(-O,R);break a}}D=D.format(-0,7)}}}return D};
Di_=function(I){if(typeof I.getTime==="function")return I;if(bNW(I))return HNH(I);throw Error("Nf`"+JSON.stringify(I));};
RHL=function(I,y){for(var D=0,F;;++D)if(F=new Date(I.getFullYear(),I.getMonth()+y,I.getDate()-D,I.getHours(),I.getMinutes(),I.getSeconds()),F.getMonth()===(I.getMonth()+y)%12)return F};
_.Ug=function(I){return{runs:[{text:I}]}};
_.rY=function(I){if(I&&I.simpleText)return I.simpleText;var y="";if(I&&I.runs)for(var D=0;D<I.runs.length;D++)I.runs[D].text&&(y+=I.runs[D].text);return y};
wQq=function(I,y,D,F){return I.videoEntity&&!I.policyEntity&&D!=="DOWNLOAD_STATE_FAILED"?[S7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:cW(I.policyEntity)&&y!=="TRANSFER_STATE_FAILED"&&y!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?y==="TRANSFER_STATE_PAUSED_BY_USER"?[S7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.BW(y)?[S7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:I.videoEntity.lengthSeconds?J5e(I.videoEntity.lengthSeconds,F):[]:
[S7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
J5e=function(I,y){var D=[{thumbnailOverlayTimeStatusRenderer:{text:_.lo(Jlo({seconds:I})),style:"DEFAULT"}}];y&&(I=y<=0||I<=0?0:y>=I?100:Math.ceil(y*100/I),I>0&&D.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:I}}));return D};
vS5=function(I,y,D,F,R){if(y==="TRANSFER_STATE_UNKNOWN"||!I)return{};if(_.BW(y)||y==="TRANSFER_STATE_PRE_TRANSFER")var O=[S7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var w,v;if(y==="TRANSFER_STATE_COMPLETE"&&((w=I.mainPlaylistEntity)==null?0:(v=w.videos)==null?0:v.length)){var P;I=(O=I.mainPlaylistEntity)==null?void 0:(P=O.videos)==null?void 0:P.length;O=(O=CLS(I))?{thumbnailOverlayBottomPanelRenderer:{text:_.lo(O),icon:{iconType:"PLAYLISTS"}}}:void 0;O=[Bp5(),Object.assign({},
O!=null?O:{})]}else O=[]}a:if(y==="TRANSFER_STATE_PRE_TRANSFER")D=uo(_.zC("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE")D=uo(_.zC("WAITING_TO_DOWNLOAD"));else if(_.BW(y))D=Math.floor(D*100).toString(),D=uo(_.zC("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%"));else{if(F&&(_.l("playlist_is_offline_selector_killswitch")&&(R=_.nR().resolve(_.x7).isNetworkAvailable()),R)){D=C3q(_.zC("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
cx4(F));break a}D=void 0}y=y==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.zC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},O.length?{thumbnailOverlays:O}:{},D?{viewPlaylistText:D}:{viewPlaylistText:_.Ug("")},y.length?{badges:y}:{})};
SGC=function(I,y,D,F,R,O){if(y==="TRANSFER_STATE_UNKNOWN"||!I)return{};if(F==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var w=wQq(I,y,F);if(I.videoEntity&&!I.policyEntity&&F!=="DOWNLOAD_STATE_FAILED"){var v=_.zC("WAITING_TO_DOWNLOAD");if(v)return{shortViewCountText:_.Ug(v),publishedTimeText:void 0,thumbnailOverlays:w}}if(!cW(I.policyEntity)){O=I.policyEntity&&!MrS(I.policyEntity)?_.zC("DOWNLOAD_EXPIRED",{},"Download expired"):
_.zC("TRANSFER_FAILED",{},"Download failed");var P;if((P=I.policyEntity)==null?0:P.shortMessageForDisabledAction)O=I.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:uo(O),publishedTimeText:void 0,thumbnailOverlays:w}}if(y==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Ug(_.zC("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:w};if(y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Ug(_.zC("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:w};if(y==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(P=_.zC("WAITING_TO_DOWNLOAD"),F==="DOWNLOAD_STATE_PAUSED"&&(P=_.zC("DOWNLOAD_PAUSED",{},"Download paused")),P))return{shortViewCountText:_.Ug(P),publishedTimeText:void 0,thumbnailOverlays:w};if(_.BW(y))return I=Math.floor(D*100).toString(),{shortViewCountText:_.Ug(_.zC("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%")),publishedTimeText:void 0,thumbnailOverlays:w};y=void 0;I.videoEntity.publishedTimestampMillis&&
(y=new Date,R&&(y=new Date(R)),y=uo(LnS(new Date(Number(I.videoEntity.publishedTimestampMillis)),y)));R=[];_.l("kevlar_woffle_badge_killswitch")||(R=[{metadataBadgeRenderer:{label:_.zC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var K;I=uo((K=I.videoEntity.localizedStrings)==null?void 0:K.viewCount);return Object.assign({},O?{shortViewCountText:void 0}:{shortViewCountText:I},O?{}:{publishedTimeText:y},{badges:R,thumbnailOverlays:w})};
PzJ=function(I,y){I=I===void 0?tD4:I;switch(y.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:y.payload.playlistId,inviteLinkURL:y.payload.inviteLinkUrl};default:return I}};
Uiq=function(I,y){I=I===void 0?Kn5:I;switch(y.type){case "SET_CURRENT_FORM_ID":return y=y.payload.formId,I.currentFormId===y?I:{currentFormId:y,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var D=y.payload;y=D.groupId;D=D.command;if(I.currentFormId){var F=Object.assign({},I.commandsMap);F[y]=D;I=Object.assign({},I,{commandsMap:F})}return I;case "RESET_COMMAND_MAP":return Object.assign({},I,{commandsMap:{}});default:return I}};
j_W=function(I,y){I=I===void 0?r5_:I;switch(y.type){case "UPDATE_CANVAS_MODE":return Object.assign({},I,{currentMode:y.payload.currentMode});default:return I}};
NK_=function(I,y){I=I===void 0?oSt:I;switch(y.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},I,{guideIsExpanded:y.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},I,{scrollAtTop:y.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},I,{guideIsVisibleButNotPersistent:y.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},I,{miniplayerIsActive:y.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},I,{singleOptionSurveyIsActive:y.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},I,{slimlineSurveyRatingSelectedIndex:y.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},I,{richGridMiniMode:y.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},I,{richGridItemsPerRow:y.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},I,{richGridSlimItemsPerRow:y.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},I,{richGridContainerWidth:y.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},I,{richGridStyle:y.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},I,{currentPageType:y.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},I,{inlinePreviewIsActive:y.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},I,{inlinePreviewIsEnabled:y.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},I,{darkModeIsEnabled:y.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
I,{miniplayerPlaybackState:y.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},I,{tabGesturesIsActive:y.payload});case "SET_ONLINE_STATUS":return Object.assign({},I,{isOnline:y.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},I,{chipBarIsSticky:y.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},I,{frostedGlassMode:y.payload});default:return I}};
hHJ=function(){return _.l("kevlar_disable_theater_mode_persistence")?!1:_.KR("START_IN_THEATER_MODE")};
lPo=function(I,y){I=I===void 0?xi4:I;switch(y.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},I,{transcription:y.payload});case "SET_OVERLAY_STATE":return Object.assign({},I,{overlay:y.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return I}};
pQB=function(){return RV(Object.assign({},{continuation:uue,download:qGW,canvas:j_W,reportChannelAbuse:ESB,share:Gi4,talkToRecs:XQ_,ui:NK_,voiceSearch:lPo,watch:Q_C,ypc:YGA,shorts:fP4,radioButtonGroup:Uiq,collabInviteLink:PzJ},nSq))};
zHL=function(){return _.l("web_player_entities_middleware")?new j7(pQB(),[miC,MDB]):new j7(pQB(),[miC])};
_.oq=function(){kiq||(kiq=zHL());return kiq};
diW=function(I,y,D){if(I.length)return{titleText:_.lo(y!=null?y:_.zC("DOWNLOADS",void 0,"Downloads")),contents:I.map(function(F){var R=F.videoEntity;F={videoId:R.videoId,title:uo(R.title),shortBylineText:uo(F.channelEntity.title),thumbnail:R.thumbnail};var O=R.videoId?L0(_.oq().getState(),R.videoId):0;R.videoId&&D?F.navigationEndpoint=_.xK(R.videoId,D,void 0,void 0,O):R.videoId&&(F.navigationEndpoint=aIH(R.videoId,O,R.lengthSeconds));R.lengthSeconds&&(F.thumbnailOverlays=J5e(R.lengthSeconds,O));return{playlistPanelVideoRenderer:F}}),
totalVideos:I.length}};
aPL=function(I){return(I=(0,_.e$.getValueByKeys)(I,"playlistId"))?{playlistId:I}:null};
c5H=function(){return{}};
Wnq=function(I,y){return new _.AO(function(D,F){I.then(function(R){if(R){if(R=y(R))return D(R);F()}},F)})};
CzH=function(I){var y,D,F,R=(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.autoplay)==null?void 0:F.autoplay,O,w,v;y=(O=I.contents)==null?void 0:(w=O.twoColumnWatchNextResults)==null?void 0:(v=w.playlist)==null?void 0:v.playlist;return R&&y&&y.playlistId?{rawResponse:I,autoplayRenderer:R,playlistPanelRenderer:y,playlistId:y.playlistId}:null};
icq=function(I){var y=y===void 0?"UNKNOWN_INTERFACE":y;if(I.length===1)return I[0];var D=BKo[y];if(D){D=new RegExp(D);for(var F=_.J(I),R=F.next();!R.done;R=F.next())if(R=R.value,D.exec(R))return R}var O=[];Object.entries(BKo).forEach(function(w){var v=_.J(w);w=v.next().value;v=v.next().value;y!==w&&O.push(v)});
D=new RegExp(O.join("|"));I.sort(function(w,v){return w.length-v.length});
F=_.J(I);for(R=F.next();!R.done;R=F.next())if(R=R.value,!D.exec(R))return R;return I[0]};
_.NP=function(I){return"/youtubei/v1/"+icq(I)};
_.hS=function(I,y){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:I}}},y!==void 0?{durationHintMs:y}:{})}};
_.xc=function(I,y){return _.hS(_.Ug(I),y)};
A5_=function(I,y){var D={mode:"NORMAL"};I&&(D.autoplayVideo=I.navigationEndpoint,D.nextButtonVideo=I.navigationEndpoint);y&&(D.previousButtonVideo=y.navigationEndpoint);return D};
Hc5=function(I,y,D){if(!D||!D.sets)return{sets:[A5_(I,y)]};var F=D.sets.find(function(w){return w.mode==="NORMAL"}),R=(0,_.e$.unsafeClone)(D);
if(!F)return R.sets.push(A5_(I,y)),R;if(!I)return D;F=_.e$.getValueByKeys.apply(null,[F].concat(_.Td($i_)));var O=_.e$.getValueByKeys.apply(null,[I].concat(_.Td(bcJ)));if(F===O)return D;R.sets=R.sets.filter(function(w){return w.mode!=="NORMAL"});
R.sets.push(A5_(I,y));return R};
eHt=function(I){return!!I.playlistPanelVideoRenderer&&!I.playlistPanelVideoRenderer.unplayableText};
TKq=function(I){return!!I.playlistPanelVideoRenderer&&!!I.playlistPanelVideoRenderer.title};
s_A=function(I,y){if(y.contents&&!(I>=y.contents.length)&&(I=y.contents.slice(I).find(eHt)))return I.playlistPanelVideoRenderer};
VD4=function(I,y){if(y.contents)return(y=y.contents.find(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===I}))?y.playlistPanelVideoRenderer:void 0};
Zcq=function(I,y){return y.contents?y.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===I}):-1};
gSq=function(I,y){return y.contents?y.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.playlistSetVideoId===I}):-1};
IkA=function(I,y){I.contents&&y!==-1&&I.contents.splice(y,1).length===1&&I.totalVideos!==void 0&&(--I.totalVideos,delete I.videoCountText)};
_.yhL=function(I){var y=[];if(!I||!I.contents)return y;I=_.J(I.contents);for(var D=I.next();!D.done;D=I.next())D=D.value,D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId&&y.push(D.playlistPanelVideoRenderer.videoId);return y};
_.D15=function(I){if(I&&I.contents)return(I=I.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&!!y.playlistPanelVideoRenderer.selected})||I.contents[I.currentIndex])?I.playlistPanelVideoRenderer:void 0};
FFS=function(I,y,D,F,R,O,w){R=R===void 0?!1:R;O=O===void 0?!1:O;w=w===void 0?!1:w;if(I.contents&&I.contents.length!==0){F&&(I.contents=I.contents.filter(F));F=I.contents.length;for(var v=0;v<F;v++){var P=I.contents[v].playlistPanelVideoRenderer;P&&(v===y?(O&&delete P.menu,P.indexText=_.Ug("\u25b6")):R||I.isInfinite||P.indexText===void 0?delete P.indexText:P.indexText=_.Ug((v+1+D).toString()))}I.currentIndex=y+D;w&&(delete I.videoCountText,I.totalVideos=F)}};
_.lX=function(I){I=Bqq(I);if(I){var y=I.length;var D=-45%y;D<0&&(D=y+D);I=I.slice(y-D)+I.slice(0,y-D)}else I="";D="";for(y=0;y<I.length&&I[y]!==RGW;y++)D+=I[y];return D};
_.OFo=function(I,y){var D=document.body;y=y===void 0?function(v){return v}:y;
var F,R=null;I=_.J(I);for(F=I.next();!F.done;F=I.next()){var O=F.value;F="div";O[2]&&(F=y(O[2]));F=document.createElement(F);R||(R=F);var w=O[0];O=O[1];w&&(F.id=y(w));if(O)for(O=_.J(O),w=O.next();!w.done;w=O.next())F.classList.add(y(w.value));D.appendChild(F);D=F}return[R,D]};
LFS=function(I,y){for(var D="",F=0;F<y;F++)D+=I.charAt(Math.floor(Math.random()*I.length));return D};
uX=function(I){return LFS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",I)};
qP=function(I){return LFS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",I)};
Eg=function(I){return LFS("0123456789",I)};
Jhq=function(){var I=performance.now(),y=new Date;var D="2."+y.getFullYear()+String(y.getMonth()+1).padStart(2,"0")+String(y.getDate()).padStart(2,"0");for(var F,R=Math.floor(Math.random()*11)+15,O=[],w=0;w<R;w++)O.push(Math.floor(Math.random()*26476865)+24547720);F=O.join(",");var v=uX(10),P=uX(100),K=uX(102),r=uX(106),N=uX(108),h=uX(11),x=uX(1140),q=uX(123),X=uX(14),f=uX(16),m=uX(1900),z=uX(23),B=uX(26),C=uX(34),H=uX(397),e=uX(44),T=uX(5),L5=uX(72),vH=uX(74),u_=uX(75),jW=uX(88),xA=uX(91),dq="rr3---sn-q4flrnee rr3---sn-q4fl6nd6 rr3---sn-q4fl6nsk rr3---sn-hgn7rnls rr1---sn-5hne6nsr rr4---sn-q4flrnek rr2---sn-t0a7lnee rr2---sn-aigl6ney rr4---sn-q4fl6nsl rr3---sn-hgn7rn7k rr5---sn-q4flrnsl rr2---sn-q4fl6n6y rr4---sn-q4fzene7 rr1---sn-t0a7lnee rr5---sn-aigl6nzk rr2---sn-q4fl6nd7 rr4---sn-q4fl6n66 rr3---sn-q4fl6ndz rr2---sn-ntq7yney rr4---sn-t0a7ln7d".split(" ");
var $A=dq[Math.floor(Math.random()*dq.length)];var BH=(new Date("2010-01-01")).getTime();var jf=(new Date(BH+Math.random()*((new Date).getTime()-BH))).toISOString().split("T")[0];for(var yg,eW=[],oe=0;oe<4;oe++)eW.push(Math.floor(Math.random()*100));yg=eW.join(".");var xP=Number(Eg(5)),XW=Number(Eg(6)),zo=Number(Eg(7)),Ub=Number(Eg(9)),rq=Eg(1),ao=Eg(10),rc=Eg(16),Ta=Eg(19),f_=Eg(2),mM=Eg(20),M_=Eg(21),ZR=Eg(3),rG=Eg(4),$P=Eg(5),HC=Eg(6),vG=Eg(7),jg=Eg(8),UO=Eg(9);var HG=LFS("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var cG=[qP(5),qP(5),qP(5)].join("%2C"),vC=[Eg(3),Eg(5),Eg(5)].join("%2C"),AV=qP(0),AM=qP(1),oT=qP(10),ZQ=qP(108),Ox=qP(11),qa=qP(12),aB=qP(13),mE=qP(14),Eu=qP(15),cd=qP(16),G8=qP(17),YA=qP(18),cH=qP(19),Te=qP(2),lu=qP(20),uR=qP(22),QA=qP(23),Yy=qP(24),Ga=qP(266),qz=qP(3),iR=qP(30),JV=qP(34),Nz=qP(35),z_=qP(36),gM=qP(4),$s=qP(40),jT=qP(43),DT=qP(47),fZ=qP(5),ye=qP(6),xE=qP(7),CJ=qP(75),Xg=qP(8),ib=qP(80),nZ=qP(9),Ek="https://www."+qP(12)+".com",lV={},B_={},i9={},Bf={},cn={},AP={},$R={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:F}]},{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"+qP(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:F}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:M_+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+qP(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:$s,ypcGetOfflineUpsellEndpoint:{params:ib}},trackingParams:Nz+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&cnr="+f_+"&ratebypass=yes&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&c=WEB&txp="+vG+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:XW,width:640,height:360,lastModified:rc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vG,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+vC+"&mn="+
cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&cnr="+f_+"&ratebypass=yes&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&c=WEB&txp="+vG+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+ZQ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:XW,width:1280,
height:720,lastModified:rc,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vG,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+cG+"&ms="+
cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:zo,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:zo,approxDurationMs:vG},{itag:248,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+cG+"&ms="+cG+"&mv="+
AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'video/webm; codecs="vp9"',bitrate:zo,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:zo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:399,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:zo,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:zo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:136,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:zo,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:XW,approxDurationMs:vG},{itag:247,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+
cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:zo,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:398,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+UO+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:zo,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:UO,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:135,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:XW,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:XW,approxDurationMs:vG},{itag:244,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+
cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+ZQ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:XW,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:397,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:XW,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:134,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:XW,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:XW,highReplication:!0,approxDurationMs:vG},{itag:243,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'video/webm; codecs="vp9"',bitrate:XW,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:396,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:XW,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:133,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:XW,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:XW,approxDurationMs:vG},{itag:242,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+
cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:XW,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:395,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:XW,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:XW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:160,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:XW,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:xP,approxDurationMs:vG},{itag:278,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+vC+"&mn="+
cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:XW,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:xP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:394,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&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="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=video%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:xP,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:xP,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vG},{itag:140,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=audio%2Fmp4&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:XW,
initRange:{start:"0",end:"631"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:XW,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vG,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+
f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=audio%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+vG+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'audio/webm; codecs="opus"',bitrate:xP,initRange:{start:"0",end:"265"},indexRange:{start:ZR,
end:rG},lastModified:rc,contentLength:vG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xP,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vG,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=audio%2Fwebm&ns="+
Yy+"&gir="+qz+"&clen="+vG+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+vG+"&n="+cd+"&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="+N,mimeType:'audio/webm; codecs="opus"',bitrate:xP,initRange:{start:"0",end:"265"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:vG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xP,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vG,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+$A+".googlevideo.com/videoplayback?expire="+ao+"&ei="+z+"&ip="+yg+"&id=o-AF"+jT+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+vC+"&mn="+cG+"&ms="+cG+"&mv="+AM+"&mvi="+rq+"&pl="+f_+"&initcwndbps="+vG+"&siu="+rq+"&spc="+e+"&vprv="+rq+"&svpuc="+rq+"&mime=audio%2Fwebm&ns="+Yy+"&gir="+qz+"&clen="+jg+"&dur="+jg+"&lmt="+rc+"&mt="+ao+"&fvip=3&keepalive="+qz+"&c=WEB&txp="+
vG+"&n="+cd+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'audio/webm; codecs="opus"',bitrate:XW,initRange:{start:"0",end:"265"},indexRange:{start:ZR,end:rG},lastModified:rc,contentLength:jg,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:XW,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vG,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="+UO+"&docid="+h+"&ei="+z+"&feature="+v+"&fexp="+AV+"&ns="+Te+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AM+"&el="+oT+"&len="+rG+"&of="+uR+
"&uga="+f_+"&vm="+Ga},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+UO+"&docid="+h+"&ei="+z+"&feature="+v+"&fexp="+AV+"&ns="+Te+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AM+"&el="+oT+"&len="+rG+"&of="+uR+"&uga="+f_+"&vm="+Ga},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+UO+"&docid="+h+"&ei="+z+"&feature="+v+"&fexp="+AV+"&ns="+Te+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
AM+"&el="+oT+"&len="+rG+"&of="+uR+"&uga="+f_+"&vm="+Ga},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+z+"&m="+jW+"&oid="+uR+"&plid="+f+"&pltype="+xE+"&ptchn="+uR+"&ptk="+X+"&video_id="+h},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+UO+"&docid="+h+"&ei="+z+"&event="+mE+"&feature="+v+"&fexp="+AV+"&ns="+Te+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+AM},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
cd+"&ver=2&cmt=1."+ZR+"&fmt="+ZR+"&fs=0&rt="+$P+"&euri&lact="+ZR+"&cl="+UO+"&mos="+rq+"&volume=100&cbrand="+fZ+"&cbr="+ye+"&cbrver="+yg+"&c=WEB&cver="+D+"&cplayer=UNIPLAYER&cos="+nZ+"&cosver="+vG+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+f_+"&len="+jg+"&fexp="+cG+"&feature=g-high-rec&afmt="+ZR+"&muted=0&conn=1&docid="+h+"&ei="+z+"&plid="+f+"&vm="+qP(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
h+"&caps="+qz+"&opi="+UO+"&xoaf="+rq+"&hl="+Te+"&ip="+yg+"&ipbits="+rq+"&expire="+ao+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yg+"&key="+qz+"&lang="+T,name:{simpleText:xE},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+qz+"&opi="+UO+"&xoaf="+rq+"&hl="+Te+"&ip="+yg+"&ipbits="+rq+"&expire="+ao+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yg+"&key="+qz+"&kind="+qz+"&lang="+Te,name:{simpleText:xE},
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:Ox,title:G8,lengthSeconds:"1155",keywords:[oT,cH,mE,mE],channelId:Yy,isOwnerViewing:!1,shortDescription:Eu,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+JV,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+
"G&rs="+JV,width:196,height:110},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+C,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+C,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:vG,author:aB,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:vG,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
uR+"/featured_channel.jpg?v="+Xg,width:40,height:40}]},trackingParams:Nz+"=",navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"/channel/"+Yy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Yy}},channelName:aB,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:nZ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Yy,showPreferences:!1,subscribedButtonText:{runs:[{text:fZ}]},unsubscribedButtonText:{runs:[{text:lu}]},
trackingParams:Nz+"=",unsubscribeButtonText:{runs:[{text:YA}]},serviceEndpoints:[{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Yy],params:Xg}},{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$s,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Nz+"=",dialogMessages:[{runs:[{text:fZ},
{text:mE},{text:G8}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:mE}]},serviceEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Yy],params:Xg}},accessibility:{label:ye},trackingParams:Nz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:xE}]},accessibility:{label:Xg},
trackingParams:Nz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:aB}},unsubscribeAccessibility:{accessibilityData:{label:gM}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:jg},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Yy],
params:Xg}},unsubscribeCommand:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Yy],params:Xg}},addToWatchLaterCommand:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Ox,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Ox}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+h+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+z_+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Ox,width:1280,
height:720},title:{simpleText:Ox},description:{simpleText:ye},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+aB,externalChannelId:Yy,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:vG,category:"Travel & Events",publishDate:jf,ownerChannelName:aB,uploadDate:jf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Ox},trackingParams:Nz+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:$s,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Nz+"="}}],headerText:{simpleText:nZ},icon:{infoCardIconRenderer:{trackingParams:Nz+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Nz+"="}},trackingParams:Nz+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Nz+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Ox+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:HG,interpreterSafeUrl:(lV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+iR+".js",lV),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:aB},{text:aB,bold:!0}]},endpoint:{clickTrackingParams:$s,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:Nz+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:nZ}]},actionButton:{buttonRenderer:{text:{runs:[{text:mE}]},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+h,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
h,target:"TARGET_NEW_WINDOW"}},trackingParams:Nz+"="}},trackingParams:Nz+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+L5+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+L5+"=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:vG,endMs:vG,title:{accessibility:{accessibilityData:{label:Ox}},simpleText:YA},metadata:{simpleText:oT},callToAction:{simpleText:ye},dismiss:{simpleText:nZ},endpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"/channel/"+Yy,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Yy}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:lu}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Yy,showPreferences:!1,
subscribedButtonText:{runs:[{text:aB}]},unsubscribedButtonText:{runs:[{text:YA}]},trackingParams:Nz+"=",unsubscribeButtonText:{runs:[{text:Ox}]},serviceEndpoints:[{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Yy],params:Xg}},{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:$s,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Nz+
"=",dialogMessages:[{runs:[{text:Xg},{text:G8},{text:gM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nZ}]},serviceEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Yy],params:Xg}},accessibility:{label:ye},trackingParams:Nz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:YA}]},
accessibility:{label:Xg},trackingParams:Nz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:nZ}},unsubscribeAccessibility:{accessibilityData:{label:YA}}}},trackingParams:Nz+"=",isSubscribe:!0,id:mM}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+C,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+JV,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+C,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+z_+"G&rs="+C,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:vG,endMs:vG,title:{accessibility:{accessibilityData:{label:cd}},simpleText:xE},metadata:{simpleText:mE},endpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Ox,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Ox,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+$A+".googlevideo.com/videoplayback?source=youtube&oeis="+rq+"&c=WEB&oad="+rG+"&ovd="+rG+"&oaad="+$P+"&oavd="+$P+"&ocs="+ZR+"&oewis="+rq+"&oputc="+rq+"&ofpcc="+rq+"&siu="+rq+"&msp="+rq+"&odepv="+rq+
"&id=o-AF"+jT+"&ip="+yg+"&initcwndbps="+vG+"&mt="+ao+"&oweuc="+AV}}}}},trackingParams:Nz+"=",id:mM,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:aB}},simpleText:xE},style:"DEFAULT"}}]}}],startMs:vG,trackingParams:Nz+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:rq,offsetEndMilliseconds:$P},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";ord="+ao+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+ZR+";dc_sk="+rq+";dc_ctype="+f_+";dc_ref=http://www.youtube.com/video/"+Ox+";dc_pubid="+rq+";dc_btype=23?gclid="+xA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+rq+"&ns="+rq+"&event="+rq+"&device="+rq+"&content_v="+h+"&el="+oT+"&ei="+z+"&devicever="+D+"&bti="+vG+"&format="+HC+"&break_type="+rq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+rq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yg+"&slot_pos="+rq+"&slot_len="+rq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+vC+"&ad_len="+$P+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Ox+"&aqi="+z+"&ad_rmp="+rq+"&sli="+rq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+
";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+vG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&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"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&ctype="+ZR+"&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"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_engaged_view&ctype="+ZR+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+Ta+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&dc_pubid="+rq+"&dc_exteid="+mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+rq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&avm="+rq+"&dc_pubid="+rq+"&dc_exteid="+
mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&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="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
K+"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+rq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&dc_pubid="+rq+"&dc_exteid="+mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$s,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+
ZR+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Nz+"="},trackingParams:Nz+
"=",templatedCountdown:{templatedAdText:{text:qa,isTemplated:!0,trackingParams:Nz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:qa,isTemplated:!1,trackingParams:Nz+"="},trackingParams:Nz+"="}},trackingParams:Nz+"=",skipOffsetMilliseconds:5E3}},trackingParams:Nz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ye},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:YA,isTemplated:!1,trackingParams:Nz+"="},trackingParams:Nz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:G8,isTemplated:!0,trackingParams:Nz+"="}},trackingParams:Nz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$s,openPopupAction:{popup:{aboutThisAdRenderer:{url:(B_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+m+"&hl="+Te+"&origin=www.youtube.com&ata_theme="+gM,B_),trackingParams:Nz+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Nz+"="}},hoverText:{runs:[{text:Xg}]},trackingParams:Nz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+DT+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nz+"="},headline:{text:lu,isTemplated:!1,trackingParams:Nz+"="},description:{text:gM,
trackingParams:Nz+"="},actionButton:{buttonRenderer:{text:{simpleText:Eu},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"="}},startMs:rq,trackingParams:Nz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oT},elementId:cd}},elementId:qa,trackingParams:Nz+"=",legacyInfoCardVastExtension:oT,sodarExtensionData:{siub:G8,bgub:oT,scs:cH,bgp:xE},externalVideoId:Ox,adLayoutLoggingData:{serializedAdServingDataEntry:mE},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+DT+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nz+"="},
headline:{text:cd,isTemplated:!1,trackingParams:Nz+"="},description:{text:gM,isTemplated:!1,trackingParams:Nz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ye},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+
mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+
rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Nz+"="}},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+
UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+
q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Nz+"="},abandonCommands:{commands:[{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&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="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+
rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$s,commandExecutorCommand:{commands:[{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:cd,isTemplated:!1,trackingParams:Nz+
"="},trackingParams:Nz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:cH},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+vG+";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="+UO+";dc_trk_cid="+UO+";ord="+ao+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+ZR+";dc_sk="+rq+";dc_ctype="+f_+";dc_ref=http://www.youtube.com/video/"+Ox+";dc_pubid="+rq+";dc_btype=23?gclid="+xA+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+rq+"&ns="+rq+"&event="+rq+"&device="+rq+"&content_v="+h+"&el="+oT+"&ei="+z+"&devicever="+D+"&bti="+vG+"&format="+HC+"&break_type="+rq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+rq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yg+"&slot_pos="+rq+"&slot_len="+rq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
vC+"&ad_len="+$P+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Ox+"&aqi="+z+"&ad_rmp="+rq+"&sli="+rq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+
B+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+vG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&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"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&ctype="+ZR+"&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"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_engaged_view&ctype="+ZR+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+
ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&dc_pubid="+rq+"&dc_exteid="+mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+
"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+rq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&avm="+rq+"&dc_pubid="+rq+"&dc_exteid="+mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&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="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+QA+"&ad_cpn=[AD_CPN]&id="+ye+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+rq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ye+"&dc_pubid="+rq+"&dc_exteid="+mM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+HC+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+
ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Nz+"="},trackingParams:Nz+"=",templatedCountdown:{templatedAdText:{text:Eu,isTemplated:!0,trackingParams:Nz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Ox,isTemplated:!1,trackingParams:Nz+"="},trackingParams:Nz+"="}},
trackingParams:Nz+"=",skipOffsetMilliseconds:5E3}},trackingParams:Nz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Eu},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ye,isTemplated:!1,trackingParams:Nz+"="},trackingParams:Nz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Eu,
isTemplated:!0,trackingParams:Nz+"="}},trackingParams:Nz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:$s,openPopupAction:{popup:{aboutThisAdRenderer:{url:(i9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+m+"&hl="+Te+"&origin=www.youtube.com&ata_theme="+gM,i9),trackingParams:Nz+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Nz+"="}},hoverText:{runs:[{text:Ox}]},trackingParams:Nz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nz+"="},headline:{text:Xg,isTemplated:!1,trackingParams:Nz+"="},description:{text:qa,trackingParams:Nz+"="},actionButton:{buttonRenderer:{text:{simpleText:qa},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"="}},startMs:rq,trackingParams:Nz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gM},elementId:ye}},elementId:gM,trackingParams:Nz+"=",legacyInfoCardVastExtension:cH,sodarExtensionData:{siub:cd,bgub:lu,scs:cH,bgp:aB},externalVideoId:Ox,adLayoutLoggingData:{serializedAdServingDataEntry:cd},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vH+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Nz+"="},headline:{text:fZ,
isTemplated:!1,trackingParams:Nz+"="},description:{text:Eu,isTemplated:!1,trackingParams:Nz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nZ},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Nz+"="}},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+
rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Nz+"="},abandonCommands:{commands:[{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&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="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+f_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:$s,commandExecutorCommand:{commands:[{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:fZ,isTemplated:!1,trackingParams:Nz+"="},trackingParams:Nz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:aB},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+rq+";dc_exteid="+mM+";met="+rq+";ecn"+rq+"="+rq+";etm1="+rq+";eid1="+
vG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:gM}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:G8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$P,offsetEndMilliseconds:HC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+f_+"&token=ALHj"+H+"&index="+rq+"&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="+$P}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ye}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:HC,offsetEndMilliseconds:HC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+ZR+"&token=ALHj"+H+"&index="+rq+"&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="+HC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ye}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HC,offsetEndMilliseconds:HC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+ZR+"&token=ALHj"+H+"&index="+rq+"&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="+HC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qa}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HC,offsetEndMilliseconds:HC},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+ZR+"&token=ALHj"+H+"&index="+rq+"&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="+HC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HC,offsetEndMilliseconds:f_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+ZR+"&token=ALHj"+H+"&index="+rq+"&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="+HC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ye}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:f_,offsetEndMilliseconds:f_},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+z+"&m_pos="+f_+"&token=ALHj"+H+"&index="+rq+"&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="+f_}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:qa,isTemplated:!1,trackingParams:Nz+"="},description:{text:cH,isTemplated:!1,trackingParams:Nz+"="},actionButton:{buttonRenderer:{text:{simpleText:lu},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+DT+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Nz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+u_+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nz+"="},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+
";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$s,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Bf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+m+"&hl="+Te+"&origin=www.youtube.com&ata_theme="+gM,Bf),trackingParams:Nz+"="}},popupType:"DIALOG"}},trackingParams:Nz+"="}},hoverText:{runs:[{text:cH}]},trackingParams:Nz+"="}},adVideoId:Ox,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aB},associatedCompositePlayerBytesLayoutId:cd}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Ox}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:xE,isTemplated:!1,trackingParams:Nz+"="},description:{text:gM,isTemplated:!1,trackingParams:Nz+"="},actionButton:{buttonRenderer:{text:{simpleText:gM},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+
q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+vH+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Nz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+CJ+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nz+"="},navigationEndpoint:{clickTrackingParams:$s,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+
rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$s,openPopupAction:{popup:{aboutThisAdRenderer:{url:(cn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+m+"&hl="+Te+"&origin=www.youtube.com&ata_theme="+gM,cn),trackingParams:Nz+"="}},popupType:"DIALOG"}},trackingParams:Nz+"="}},
hoverText:{runs:[{text:Ox}]},trackingParams:Nz+"="}},adVideoId:Ox,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+Ox+"&cid="+B+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Eu},associatedCompositePlayerBytesLayoutId:cd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:nZ,
isTemplated:!1,trackingParams:Nz+"="},description:{text:G8,isTemplated:!1,trackingParams:Nz+"="},actionButton:{buttonRenderer:{text:{simpleText:lu},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+
f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+
C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Nz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+DT+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Nz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+u_+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Nz+
"="},navigationEndpoint:{clickTrackingParams:$s,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+UO+";dc_trk_cid="+UO+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+rq+";ord="+UO+";dc_rui="+rq+";dc_exteid="+mM+";dc_av="+rq+";dc_sk="+rq+";dc_ctype="+f_+";dc_pubid="+rq+";dc_btype=3?gclid="+xA+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+q+"AxAA&ase=2&num="+rq+"&cid="+B+"&ad_cpn=%5BAD_CPN%5D&sig="+C+"&adurl="+Ek+"&label=video_click_to_advertiser_site&ctype="+ZR+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Nz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:$s,openPopupAction:{popup:{aboutThisAdRenderer:{url:(AP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+m+"&hl="+Te+"&origin=www.youtube.com&ata_theme="+gM,AP),trackingParams:Nz+"="}},popupType:"DIALOG"}},trackingParams:Nz+
"="}},hoverText:{runs:[{text:ye}]},trackingParams:Nz+"="}},adVideoId:Ox,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+q+"AxAA&sigh="+h+"&cid="+B+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:lu},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:cd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aB}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:iR,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:iR,command:{innertubeCommand:{clickTrackingParams:$s,ypcGetOfflineUpsellEndpoint:{params:ib}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Nz+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:ao,nanos:Ub}}}},V9=JSON.stringify($R),bb=performance.now()-I;return{objectRepresentation:$R,jsonRepresentation:V9,generationTime:bb}};
w7q=function(I,y){if(I===y)return!0;if(!I||!y||typeof I!==typeof y)return!1;if(I instanceof Array&&y instanceof Array){if(I.length!==y.length)return!1;for(var D=0;D<I.length;D++)if(!w7q(I[D],y[D]))return!1;return!0}if(typeof I==="object"&&typeof y==="object"&&I&&y){for(D in I)if(!(D in y&&w7q(I[D],y[D])))return!1;for(var F in y)if(!(F in I))return!1;return!0}return!1};
_.XM=function(){if(!GF){GF=new m5(new vZ4);var I=_.kf("client_streamz_web_flush_count",-1);I!==-1&&(GF.invocationLimit=I)}return GF};
Qp=function(I,y,D,F){if(I===y)return!0;if(Array.isArray(I)&&Array.isArray(y)){if(I.length!==y.length)return!1;for(var R=0;R<I.length;R++)if(!Qp(I[R],y[R],D,F))return!1;return!0}if(I instanceof Set||y instanceof Set){if(I instanceof Set&&y instanceof Set){if(I.size!==y.size)return!1;F=_.J(I.values());for(R=F.next();!R.done;R=F.next())if(!y.has(R.value))return!1;return!0}return!1}if(I instanceof Function){if(F)return!0;I.name===""&&_.vu(Error("Rf"),"ERROR");return!1}if(I instanceof Date&&y instanceof
Date)return I.getTime()===y.getTime();if(I instanceof Object&&y instanceof Object){if(SHS(I)&&SHS(y))try{return I.equals(y)}catch(w){_.vu(Error("Sf`"+w),"ERROR")}R=Object.getOwnPropertyNames(I).filter(function(w){return D?I[w]!==void 0:!0});
var O=Object.getOwnPropertyNames(y).filter(function(w){return D?y[w]!==void 0:!0});
if(R.length!==O.length)return!1;R=_.J(R);for(O=R.next();!O.done;O=R.next())if(O=O.value,!Qp(I[O],y[O],D,F))return!1;return!0}return!1};
SHS=function(I){I=Object.getPrototypeOf(I).equals;return I instanceof Function&&I.length===1};
_.KFq=function(){return _.S(function(I){if(I.nextAddress==1)return t9t!==2?I.jumpTo(2):I.yield(P1_(),3);I.nextAddress!=2&&(t9t=I.yieldResult);return I.return(t9t)})};
_.j2H=function(){return _.S(function(I){if(I.nextAddress==1)return _.l("ab_pl_man")?U1S!==2?I.jumpTo(2):I.yield(rh4(),3):I.return(1);I.nextAddress!=2&&(U1S=I.yieldResult);return I.return(U1S)})};
hGq=function(){return _.S(function(I){if(I.nextAddress==1)return _.l("ab_fk_sk_cl")?oZt!==2?I.jumpTo(2):I.yield(Nm5(),3):I.return(1);I.nextAddress!=2&&(oZt=I.yieldResult);return I.return(oZt)})};
_.uLA=function(){return _.S(function(I){if(I.nextAddress==1)return _.l("ab_det_apb_b")?x1W!==2?I.jumpTo(2):I.yield(lkA(),3):I.return(1);I.nextAddress!=2&&(x1W=I.yieldResult);return I.return(x1W)})};
GRo=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(Promise.all([_.KFq(),_.uLA(),_.j2H(),hGq()]),2);if(y.nextAddress!=3)return qHC()?y.return(!0):y.yield(_.EZB(),3);I=y.yieldResult;return y.return(I===0)})};
qHC=function(){var I=!1,y=function(D,F){X7J.increment(F,D);D===0&&(I=!0)};
y(_.Q2L(),"j.s_");y(t9t,"f.i_");y(x1W,"a.b_");y(U1S,"p.m_");y(oZt,"i.f_");YHS===2&&(YHS=_.fkq(nZt));y(YHS,"e.h_");_.l("ks_det_gpbl")||y(_.p7A(),"p.i_");_.l("ks_get_o_pp")||y(_.m1W(),"g.o_");_.l("ab_deg_unex_thr")||y(_.M9e(),"a.o_");y(zGH,"s.t_");_.l("ab_det_sc_inj_enf")&&y(_.kRJ(),"s.i_");y(d1A,"d.p_");y(_.akq(_.Yc),"o.p_");y(_.chL()===0?0:_.WFJ(),"o.a_");return _.l("debug_sk_em_precheck")?!0:I};
BmB=function(){var I=[].concat(_.Td(C1H));try{var y=Jhq();I.push({jsonRepresentation:y.jsonRepresentation,objectRepresentation:y.objectRepresentation})}catch(D){I=[].concat(_.Td(C1H))}return I};
iFW=function(){var I=["adPlacements","adSlots"];try{return I.filter(function(){return!0}).length!==I.length?0:1}catch(y){return 0}};
_.m1W=function(){if(iFW()===0)return 0;var I=Jhq(),y=I.objectRepresentation,D=(0,_.e$.unsafeClone)(y),F=[];if(y&&typeof y==="object")for(var R in y)F.push(R);else return 4;I=I.objectRepresentation.adPlacements;if(!(I&&I.length>0))return 4;try{if(!w7q(F,Object.getOwnPropertyNames(y)))return 0}catch(O){return 0}return w7q(D,y)?1:0};
_.akq=function(I){if(!I||!I.length||typeof I==="string")return 0;for(var y=Object.getOwnPropertyNames(Object.prototype),D=0;D<I.length;D++)for(var F=_.lX(I[D]),R=_.J(y),O=R.next();!O.done;O=R.next())if(F===O.value)return 0;return 1};
AhB=function(I){var y=_.lX(I[1]);if(I[0]===null)return y;I=I[0];for(var D={},F=0;F<I.length;F++){var R=_.lX(I[F]);if(F===0)D[R]=y;else{var O={};O[R]=D;D=O}}return D};
_.chL=function(){for(var I=_.f0,y=0;y<I.length;y++){var D=AhB(I[y]),F=[];F.push(D);if(F.length===0)return 0}return 1};
_.WFJ=function(){for(var I=_.f0,y={},D=0;D<I.length;y={gIK:void 0},D++){var F=[AhB(I[D])];y.gIK=[];F.forEach(function(R){return function(O){R.gIK[R.gIK.length]=O}}(y));
if(y.gIK.length===0)return 0}return 1};
_.Q2L=function(){for(var I=_.J(BmB()),y=I.next();!y.done;y=I.next()){var D=y.value;y=D.jsonRepresentation;D=D.objectRepresentation;try{var F=JSON.parse(y);if(!Qp(F,D,!1,!1))return 0}catch(R){return 0}}return 1};
_.kRJ=function(){try{var I=_.a8("ab_det_sc_inj_val");I.length===1&&I[0]===""&&(I=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var y=document.querySelectorAll("script"),D=_.J(y),F=D.next();!F.done;F=D.next())for(var R=F.value,O=_.J(I),w=O.next();!w.done;w=O.next()){var v=w.value;y=void 0;if((y=R.textContent)==null?0:y.includes(v))return 0}}catch(P){return 4}return 1};
_.EZB=function(){var I,y,D,F,R,O,w;return _.S(function(v){switch(v.nextAddress){case 1:_.nj(v,2),I=_.J(C1H),y=I.next();case 4:if(y.done)return v.return(1);F=D=y.value;R=F.jsonRepresentation;O=F.objectRepresentation;return v.yield((new Response(R,{status:200})).json(),7);case 7:w=v.yieldResult;if(!Qp(w,O,!1,!1))return v.return(0);y=I.next();v.jumpTo(4);break;case 2:return _.dj(v),v.return(4)}})};
_.M9e=function(){try{btoa("abc")}catch(I){return 0}return 1};
P1_=function(){var I,y,D,F,R,O,w,v,P,K,r;return _.S(function(N){switch(N.nextAddress){case 1:_.nj(N,2),I=_.J(BmB()),y=I.next();case 4:if(y.done)return N.return(1);F=D=y.value;R=F.jsonRepresentation;O=F.objectRepresentation;w=btoa(R);v="data:application/json;base64,"+w;P=new Request(v);Object.defineProperty(P,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(P,"method",{get:function(){return"POST"}});
Object.defineProperty(P,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(P,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(P,"body",{get:function(){return new ReadableStream}});
return N.yield(fetch(P),7);case 7:return K=N.yieldResult,N.yield(K.json(),8);case 8:r=N.yieldResult;if(!Qp(r,O,!1,!1))return N.return(0);y=I.next();N.jumpTo(4);break;case 2:return _.dj(N),N.return(4)}})};
_.fkq=function(I){if(!I||!I.length||typeof I==="string")return 0;for(var y=function(R){return _.lX(R)},D=2,F=0;F<I.length&&(D=_.$1o(_.OFo(I[F],y)),D!==0);F++);
return D};
_.$1o=function(I){var y=_.J(I);I=y.next().value;y=y.next().value;try{var D=document.createElement("div");document.body.appendChild(D);var F=getComputedStyle(D).display;document.body.removeChild(D);if(F==="none")return 4;var R=getComputedStyle(y).display==="none"?0:1;document.body.removeChild(I);return R}catch(O){return 4}};
Nm5=function(){var I,y,D;return _.S(function(F){I=new _.n0;y=document.createElement("button");y.classList.add("ytp-ad-skip-button");y.style.opacity="0";y.style.height="0px";y.style.width="0px";y.style.padding="0px";y.style.border="none";D=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.onclick=function(){I.resolve(0);D()};
document.body.appendChild(y);setTimeout(function(){D();I.resolve(1)},50);
return F.return(I.promise)})};
rh4=function(){var I,y,D,F,R,O,w;return _.S(function(v){I=new _.n0;y=document.createElement("ytd-player");try{document.body.prepend(y)}catch(P){return v.return(4)}D=function(){y.parentElement&&y.parentElement.removeChild(y)};
y.getElementsByTagName("div").length>0?F=y.getElementsByTagName("div")[0]:(F=document.createElement("div"),y.appendChild(F));R=document.createElement("div");F.appendChild(R);O=document.createElement("video");w=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"});O.src=_.H$(_.Z0(w));O.ontimeupdate=function(){D();I.resolve(0)};
R.appendChild(O);O.classList.add("html5-main-video");setTimeout(function(){R.classList.add("ad-interrupting")},200);
setTimeout(function(){D();I.resolve(1)},5E3);
return v.return(I.promise)})};
bFB=function(I){var y=Jhq().objectRepresentation.playbackTracking;if(y){var D=[],F;D.push(y==null?void 0:(F=y.videostatsPlaybackUrl)==null?void 0:F.baseUrl);var R;D.push(y==null?void 0:(R=y.videostatsDelayplayUrl)==null?void 0:R.baseUrl);var O;D.push(y==null?void 0:(O=y.videostatsWatchtimeUrl)==null?void 0:O.baseUrl);var w;D.push(y==null?void 0:(w=y.ptrackingUrl)==null?void 0:w.baseUrl);var v;D.push(y==null?void 0:(v=y.qoeUrl)==null?void 0:v.baseUrl);var P;D.push(y==null?void 0:(P=y.atrUrl)==null?
void 0:P.baseUrl);y=_.J(D);for(D=y.next();!D.done;D=y.next())if((D=D.value)&&I.test(D))return D.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
HFH=function(I,y){var D,F;return _.S(function(R){switch(R.nextAddress){case 1:D=[],F=0;case 2:if(!(F<3)){R.jumpTo(4);break}return R.yield(fetch(I,{cache:"no-store",method:y}).then(function(O){D.push(O.status)}).catch(function(){D.push(-1)}),3);
case 3:F++;R.jumpTo(2);break;case 4:return R.return(D)}})};
eG_=function(I){return I.domainLookupStart===0&&I.domainLookupEnd===0&&I.connectStart===0&&I.connectEnd===0||I.duration===0};
Tmq=function(I,y,D){D=D===void 0?"GET":D;var F,R,O,w,v,P,K,r,N,h;return _.S(function(x){if(x.nextAddress==1)return x.yield(Promise.all([HFH(I,D),HFH(y,D)]),2);F=x.yieldResult;R=_.J(F);O=R.next().value;w=R.next().value;v=O;P=w;if(Math.min.apply(Math,_.Td(P))!==Math.max.apply(Math,_.Td(P))||Math.min.apply(Math,_.Td(v))!==Math.max.apply(Math,_.Td(v)))return x.return(2);if(Math.min.apply(Math,_.Td(P))===Math.min.apply(Math,_.Td(v)))return x.return(1);r=(K=performance.getEntriesByName(I))==null?void 0:
K[0];h=(N=performance.getEntriesByName(y))==null?void 0:N[0];return r&&h?eG_(h)?x.return(1):eG_(r)?x.return(0):x.return(1):x.return(2)})};
lkA=function(){var I;return _.S(function(y){var D=[];var F;var R,O,w;(R=F=(R=Jhq().objectRepresentation.streamingData)==null?void 0:(O=R.formats)==null?void 0:(w=O[0])==null?void 0:w.url)&&R&&!F.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(R=R.replace("initcwndbps","ctier=L&initcwndbps"),R=R.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),F={testUrl:R,baseUrl:F,method:"GET"}):F=void 0;F&&D.push(F);_.l("ab_net_tp_e")&&D.push({testUrl:_.Ft.location.origin+"/ad_companion",baseUrl:_.Ft.location.origin+
"/generate_204",method:"OPTIONS"});_.l("ab_fix_creator_view_cnt")&&(D.length=0,(F=bFB(/api\/stats\/atr/))&&D.push({testUrl:_.Ft.location.origin+F,baseUrl:_.Ft.location.origin+"/generate_204",method:"POST"}));_.l("ad_net_pb_pbp")&&(F=bFB(/api\/stats\/qoe/))&&D.push({testUrl:_.Ft.location.origin+F,baseUrl:_.Ft.location.origin+"/feed/download",method:"GET"});D=D.length!==0?D[Math.floor(Math.random()*D.length)]:void 0;return(I=D)?y.return(Tmq(I.testUrl,I.baseUrl,I.method)):y.return(4)})};
_.p7A=function(){if(_.Ft.xpy===void 0||_.Ft.xpy===null||typeof _.Ft.xpy!=="function")return 2;try{return _.Ft.xpy()===!0?0:1}catch(I){return 0}};
s2q=function(I){switch(I){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.ya(I,"unknown result type")}};
_.V9L=function(I,y){var D=Number(_.Pi("CATSTAT",0));if(y.qQt===void 0)return D;y=y.qQt;I=s2q(I);return D&~(3<<y)|I<<y};
ZF5=function(I){var y,D;if((I=(y=I.auxiliaryUi)==null?void 0:(D=y.messageRenderers)==null?void 0:D.bkaEnforcementMessageViewModel)&&I.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return I};
IVq=function(){for(var I=_.J(Object.values(_.gZq)),y=I.next();!y.done;y=I.next())y=y.value,y.evP&&y.qQt&&_.tG("CATSTAT",_.V9L(2,y))};
_.MP=function(I,y){I=_.p0("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",I);(y===void 0?0:y)?_.yaB(I,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.mX().logFlowEvent(I,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Fce=function(){if(!DDH){if(Polymer.Base){var I=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{I.apply(this,arguments)}catch(N){_.UJ(N)}};
var y=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{y.apply(this,arguments)}catch(N){_.UJ(N)}};
var D=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{D.apply(this,arguments)}catch(N){_.UJ(N)}};
var F=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{F.apply(this,arguments)}catch(N){_.UJ(N)}};
var R=Polymer.Base._listen,O=new WeakMap;Polymer.Base._listen=function(N,h,x){var q=function(){try{x.apply(this,arguments)}catch(X){_.UJ(X)}};
O.set(x,q);R.call(this,N,h,q)};
var w=Polymer.Base._unlisten;Polymer.Base._unlisten=function(N,h,x){w.call(this,N,h,O.get(x))}}if(Polymer.Async){var v=Polymer.Async,P=v._atEndOfMicrotask;
v._atEndOfMicrotask=function(){try{P.apply(v,arguments)}catch(N){_.UJ(N)}}}if(Polymer.RenderStatus){var K=Polymer.RenderStatus,r=K.afterNextRender;
K.afterNextRender=function(N,h,x){r.call(K,N,function(){try{h.apply(this,arguments)}catch(q){_.UJ(q)}},x)}}DDH=!0}};
_.OpS=function(I){var y=I?_.iP(I):"";if(y){if(y.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(y.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(y.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(y.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(y.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.l("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";y=y.toLowerCase();if(y==="/")return"home";if(y==="/channel_memberships")return"channel-memberships-shopfront";if(y.indexOf("/feed/trending")===0)return"trending";if(y.indexOf("/feed/explore")===0)return"explore";if(y.indexOf("/live")===0)return"live";if(y.indexOf("/results")===0)return"search";if(y.indexOf("/sports")===0)return"sports";if(y.indexOf("/fashion")===0||y.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(y))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(y))return _.l("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(y.indexOf("/channel/")===0||y.indexOf("/user/")===0||y.indexOf("/gaming")===0||y.indexOf("/post/")===0)return"channel";if(RoJ(I))return"show";if(y==="/playlist"||y.indexOf("/playlist/")===0||y==="/view_play_list"||y.indexOf("/view_play_list/")===0||y.indexOf("/show/")===0)return"playlist";if(y==="/companion_canvas")return"companion-canvas";if(y==="/feed/history"||
y.indexOf("/feed/history/")===0)return"history";if(y==="/new")return"labs";if(y==="/feed/subscriptions")return"subscriptions";if(y.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(y==="/history_controls")return"standalone";if(y.indexOf("/account")===0||y==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(y.indexOf("/paid_memberships")===0||y.indexOf("/refund")===0||y.indexOf("/purchases")===0||y.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(y.indexOf("/product")===
0)return"yts-products";if(y.indexOf("/premium")===0||y.indexOf("/musicpremium")===0)return y.indexOf("/premium/offers")===0||y.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(y==="/cart/checkout"||y==="/cart")return"ypc-checkout";if(y.indexOf("/reporthistory")===0)return _.l("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(y.indexOf("/feed/downloads")===0||y.indexOf("/redeem")===0)return"browse";if(y.indexOf("/hashtag")===0)return"hashtag-landing-page";if(y.indexOf("/handle")===
0)return"handle";if(y.indexOf("/source")===0)return"audio-pivot";if(y.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(y.indexOf("/playables")===0)return"playables";if(y.indexOf("/create/live/join")===0)return"open-in-app";if(y.indexOf("/shorts")===0)return"shorts";if(y.indexOf("/feed/channels")===0)return"subscriptions-channels";var D=I?_.iP(I):"";D&&D.indexOf("/watch")===0&&_.l("web_watch_enable_learning_journey")?(I=_.lP(I),I=!!I.list&&I.list.indexOf("LJPP")===0):I=!1;if(I)return"learning_journey_watch";
if(_.l("enable_new_page_subtypes_for_ai_companion")&&y==="/feed/courses")return"your-courses"}};
_.zF=function(I){var y,D;(I=(D=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:D.url)&&(y=_.OpS(I));return y};
RoJ=function(I){var y=I?_.iP(I):"";if(!y)return!1;y=y.toLowerCase();return y.indexOf("/show/")===0||y.indexOf("/playlist")===0&&(I=_.lP(I),I.list&&I.list.indexOf("EL")===0)?!0:!1};
aq=function(I){var y="unknown",D;var F=((D=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:D.webPageType)||"";F?(D=F.toLowerCase(),D.startsWith("web_page_type_")&&(D=D.slice(14))):D=F;D&&Lc5[D.toUpperCase()]?y=Lc5[D.toUpperCase()]:_.u(I,_.kc)||_.u(I,JaL)?y="browse":_.u(I,_.dY)?y="search":_.u(I,_.t9)&&(y="watch");y==="watch"&&_.zF(I||null)==="learning_journey_watch"&&(y="learning_journey_watch");y==="unknown"&&_.tq(Error("Uf`"+JSON.stringify({clickTrackingParams:I==null?void 0:I.clickTrackingParams,
commandMetadata:I==null?void 0:I.commandMetadata,allEndpointKeys:Object.keys(I||[])})));return y};
_.cF=function(I){if(!_.wj4||I)_.wj4=_.cB();return _.wj4};
_.vx_=function(I){return!!_.u(I,_.t9)||!!_.u(I,_.WF)&&_.l("kevlar_enable_shorts_prefetch")};
_.SKo=function(I,y){I=_.u(I,_.t9)||_.u(I,_.WF);return"v"+I.videoId+(I.playlistId?"-pl"+I.playlistId:"")+(y?"-an1":"")+(I.params?"-pr"+I.params:"")};
_.tw4=function(I){var y=new C0(_.Pi("ONE_PICK_URL",""));y.urlParamMap_.set("hostId",I);(I=_.Pi("GAPI_LOCALE"))&&y.urlParamMap_.set("hl",I);(I=_.Pi("SESSION_INDEX"))&&y.urlParamMap_.set("authuser",I);(I=_.Pi("DELEGATED_SESSION_ID"))&&y.urlParamMap_.set("groupId",I);return y};
Kct=function(){var I=_.nR(),y=I.resolve(_.BF);I=I.resolve(_.iX);return new PQq(y,I)};
raW=function(I){if(window.IntersectionObserver)return new UDA(I,400);throw new TypeError("Wf");};
oxt=function(){var I=Hammer.TouchAction,y=I.prototype.preventDefaults;I.prototype.preventDefaults=function(D){var F=this.actions.indexOf("pan-down")>-1;if(!F)return y.call(this,D);if(!jF4){var R=D.srcEvent;D=D.direction;var O;if((O=this.manager)==null?0:O.session.prevented)R.preventDefault();else if(F&&D&Hammer.DIRECTION_DOWN)return this.preventSrc(R)}}};
NOA=function(I){if(!I||I.size===0)return Hammer.DIRECTION_ALL;if(I.size===2){if(I.has("up")&&I.has("down"))return Hammer.DIRECTION_VERTICAL;if(I.has("right")&&I.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(I.size===1){if(I.has("up"))return Hammer.DIRECTION_UP;if(I.has("down"))return Hammer.DIRECTION_DOWN;if(I.has("right"))return Hammer.DIRECTION_RIGHT;if(I.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.$c=function(I,y,D){var F=D&&D>0?D:0;D=F?Date.now()+F*1E3:0;if((F=F?_.AS.getLocalStorage():_.AS.getSessionStorage())&&window.JSON){typeof y!=="string"&&(y=JSON.stringify(y,void 0));try{F.set(I,y,D)}catch(R){F.remove(I)}}};
_.bX=function(I){var y=_.AS.getSessionStorage(),D=_.AS.getLocalStorage();if(!y&&!D||!window.JSON)return null;try{var F=y.get(I)}catch(R){}if(typeof F!=="string")try{F=D.get(I)}catch(R){}if(typeof F!=="string")return null;try{F=JSON.parse(F,void 0)}catch(R){}return F};
_.HF=function(I){try{var y=_.AS.getSessionStorage(),D=_.AS.getLocalStorage();y&&y.remove(I);D&&D.remove(I)}catch(F){}};
xDH=function(I){var y=hoe(),D;return _.S(function(F){switch(F.nextAddress){case 1:return _.nj(F,2),F.yield(I.match(y,{cacheName:"yt-appshell-assets"}),4);case 4:D=F.yieldResult;_.lZ(F,3);break;case 2:_.dj(F);case 3:return F.return(D)}})};
hoe=function(){var I=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?lVq.registration.scope:uA5;I.endsWith("/")&&(I=I.slice(0,-1));return I+"/app_shell_home"};
qKq=function(I){I.map(function(y){return y.source}).join("|")};
_.ExL=function(I){return _.S(function(y){return y.return(xDH(I))})};
G3o=function(){var I=window.caches,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(_.ExL(I),2);y=D.yieldResult;return D.return(!!y)})};
mDt=function(){_.S(function(I){if(I.nextAddress==1){if(Xj_)return I.jumpTo(0);Xj_=!0;if(_.l("enable_system_health_primes_monitoring"))return _.CR(QFq,3E4),YKB(),I.return();if(!(Math.random()<_.kf("web_system_health_fraction")))return I.jumpTo(0);fV4={heightPixels:screen.height,widthPixels:screen.width};e7&&!isNaN(e7.jsHeapSizeLimit)&&(fV4.memoryTotalKbytes=String(Math.round(e7.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(fV4.devicePixelRatio=window.devicePixelRatio);return I.yield(nxS(),4)}_.CR(QFq,
3E4);return I.yield(pjH(),0)})};
nxS=function(){return _.S(function(I){if(I.nextAddress==1)return TF.intersectionObserverPresent="IntersectionObserver"in window,TF.serviceWorkerPresent="serviceWorker"in navigator,TF.webSharePresent="share"in navigator,TF.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,TF.cacheStoragePresent="caches"in window,TF.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,TF.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
TF.webkitTemporaryStoragePresent="webkitTemporaryStorage"in sg&&sg.webkitTemporaryStorage&&"queryUsageAndQuota"in sg.webkitTemporaryStorage,TF.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",I.yield(NYA(),2);TF.indexedDbPresent=I.yieldResult;TF.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;TF.broadcastChannelPresent="BroadcastChannel"in window;TF.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(TF.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,TF.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Cj(I)})};
QFq=function(){var I=9E4+Math.random()*2E3;_.m$()>I||(_.l("enable_system_health_primes_monitoring")?YKB():pjH())};
pjH=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(Mwt(),2);I=y.yieldResult;_.Jq("systemHealthCaptured",I);_.Cj(y)})};
YKB=function(){var I={metric:{}},y=zoW();y.networkEvents.length&&(I.metric.networkEvents=k3q(y));_.Jq("systemHealthCaptured",I)};
Mwt=function(){var I,y,D,F,R,O,w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:I={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)};y=window.screen;_.l("enable_is_extended_monitoring")&&y&&"isExtended"in y&&(I.isExtended=!!y.isExtended);D={metric:{staticContext:fV4,dynamicContext:I,webMetric:dDe,webApiSupport:TF}};
if(F=_.VO())D.csn=F;e7&&(D.metric.webMetric.currentHeapKbytes=Math.round(e7.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 sg&&typeof sg.getBattery==="function")){r.jumpTo(2);break}return r.yield(sg.getBattery(),3);case 3:if(R=
r.yieldResult)D.metric.dynamicContext.chargingStatus=R.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(D.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(TF.storageEstimatePresent)return r.yield(navigator.storage.estimate(),8);if(!TF.webkitTemporaryStoragePresent){r.jumpTo(5);break}return r.yield(aV4(),7);case 7:O=r.yieldResult;r.jumpTo(5);break;case 8:O=r.yieldResult;case 5:return D.metric.dynamicContext.deviceStorageQuotaMbytes=((w=O)==null?0:w.quota)?String(Math.round(O.quota/
1048576/10)*10):"-1",D.metric.dynamicContext.deviceStorageUsageMbytes=((v=O)==null?0:v.usage)?String(Math.round(O.usage/1048576/10)*10):"-1",P=D.metric.dynamicContext,r.yield(G3o(),9);case 9:return P.hasAppShell=r.yieldResult,K=zoW(),K.networkEvents.length&&(D.metric.networkEvents=k3q(K)),r.return(D)}})};
aV4=function(){return new Promise(function(I){var y;TF.webkitTemporaryStoragePresent&&(y=sg.webkitTemporaryStorage)!=null&&y.queryUsageAndQuota?sg.webkitTemporaryStorage.queryUsageAndQuota(function(D,F){I({usage:D,quota:F})}):I(void 0)})};
_.Vp=function(I){I&=16777215;I=[(I&16711680)>>16,(I&65280)>>8,I&255];return ca5(I[0],I[1],I[2])};
_.Z7=function(I){I=[(I&16711680)>>>16,(I&65280)>>>8,I&255,(I&4278190080)>>>24];if(!_.Wcq(I,function(y){return y===(y&255)}))throw Error("Xf`"+I.join(","));
return"rgba("+I[0]+","+I[1]+","+I[2]+","+(I[3]/255).toFixed(3)+")"};
_.CQo=function(I){return[(I&16711680)>>>16,(I&65280)>>>8,I&255]};
_.BOq=function(I){I=I.map(function(y){y/=255;return y<=.03928?y/12.92:Math.pow((y+.05)/1.05,2.4)});
return I[0]*.2126+I[1]*.7152+I[2]*.0722};
gY=function(I,y){I=_.CQo(I);return"rgba("+I[0]+", "+I[1]+", "+I[2]+", "+y+")"};
I0=function(I){return(I&4278190080)>>>24===0?gY(I,"1"):_.Z7(I)};
_.ipq=function(){try{return!!self.localStorage}catch(I){return!1}};
HpL=function(){if(AaA())_.tq(Error("Yf"));else{var I=document.createElement("iframe");I.style.display="none";var y=y===void 0?window.location.href:y;var D=_.vP(_.Pi("PERSIST_IDENTITY_IFRAME_URL"));y=D?D:(new URL(y)).host.indexOf("studio")===0?_.Et($DC,"persist_identity"):_.Et(bp4,"persist_identity");_.JW(I,1,y);I.id="persist_identity";var F;(F=document.body)==null||F.appendChild(I)}};
AaA=function(){var I=eoC;I||(I=document.querySelector("#persist_identity"));return I};
TOq=function(){var I=!1;try{I=!!window.sessionStorage.getItem("session_logininfo")}catch(y){I=!0}return(_.Pi("INNERTUBE_CLIENT_NAME")==="WEB"||_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&I};
sF4=function(I,y){if(!TOq())return!1;y||(y=_.Pi("LOGIN_INFO"));return y?(I.session_logininfo=y,!0):!1};
Zp5=function(I,y){I=I===void 0?!1:I;if((y===void 0||!y)&&Vw4!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.KR("LOG_STICKINESS",!1)){y=_.VO();var D=_.s_(),F={identityStickinessData:{initialState:Vw4}};y&&D&&_.PW(y,D,F)}if(y=AaA())if(D=y.src?(new URL(y.src)).origin:"*",I){var R;(R=y.contentWindow)==null||R.postMessage({action:"clear"},D)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(I=window.sessionStorage.getItem("session_logininfo"))){var O;(O=y.contentWindow)==null||O.postMessage({loginInfo:I},D)}};
_.yU=function(I){I=I===void 0?!0:I;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.tG("LOGIN_INFO",""),I&&window.sessionStorage.setItem("from_switch_account","1"),Zp5(!0,I)}catch(y){}};
gx5=function(I){I&&(I.startsWith("https://accounts.google.com/AddSession")?_.yU():I.startsWith("https://accounts.google.com/ServiceLogin")?_.yU():I.startsWith("https://myaccount.google.com")&&_.ob(I).getPath().endsWith("/youtubeoptions")&&_.yU())};
DN=function(I,y){gx5(I);if(_.KR("LOGGED_IN",!0)&&TOq()){var D=Ret(I);D==null&&(D={});sF4(D,y)&&_.re(I,D)}};
Ino=function(){function I(y){for(y=y.target;y&&y.nodeName!=="A";)if(y=y.parentNode,!(y&&y instanceof HTMLElement))return;if(y&&!y.hasAttribute("download")&&y.getAttribute("rel")!=="external"&&y.href)return y.href}
document.addEventListener("mousedown",function(y){y.button!==0&&(y=I(y))&&DN(y)});
document.addEventListener("click",function(y){(y=I(y))&&DN(y)})};
Fst=function(){var I=new yi5;try{if(_.KR("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(v){I.increment(5,!1);return}if(_.Pi("LOGIN_INFO")){var y=DcC?DcC:window.location;_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&HpL();var D=Ret(y.href);D==null&&(D={});var F=D.session_logininfo,R=Number(window.sessionStorage.getItem("stickiness_reload")),O=F===_.Pi("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
R>=2||O)R>=2?I.increment(2,O):O?I.increment(7,O):window.sessionStorage.getItem("session_logininfo")||(I.increment(3,O),Vw4="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Pi("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Pi("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))I.increment(4,O),window.sessionStorage.removeItem("stickiness_reload");
else if(R<2){window.sessionStorage.setItem("stickiness_reload",String(R+1));var w=y.href;w=_.jk(w,"sttick");DN(w,window.sessionStorage.getItem("session_logininfo"));w=_.uP(w,{sttick:R});I.increment(R,O);_.m_L(y,w)}}else I.increment(6,!1)}else _.yU(!1)}catch(v){}};
_.FB=function(I,y,D,F,R){y=y===void 0?{}:y;D=D===void 0?"":D;F=F===void 0?window:F;I=_.qC(I,y);DN(I);D=_.VA(I+D,R);_.m_L(F.location,D)};
RyL=function(I){if(I.urlEndpoint){if(I=_.lP(I.urlEndpoint.url),I.adurl)return Yf(I.adurl)}else if(I.watchEndpoint)return"//www.youtube.com/watch?v="+I.watchEndpoint.videoId;return null};
O1L=function(I){if(!I||!I.reportingPings)return null;var y={};I.reportingPings.forEach(function(D){D.pingType in y?y[D.pingType].push(D.url):y[D.pingType]=[D.url]});
return{adpings:bEC(y)}};
_.Jt=function(I){I=I===void 0?!1:I;var y=_.a1(),D="USER_INTERFACE_THEME_LIGHT";y.getFlag(165)?D="USER_INTERFACE_THEME_DARK":y.getFlag(174)?D="USER_INTERFACE_THEME_LIGHT":_.Lg()&&(D="USER_INTERFACE_THEME_DARK");return I?D:Lst()||D};
_.JiH=function(){return!_.l("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Lg=function(){return _.JiH()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.w4=function(){var I=_.a1();return _.JiH()&&!I.getFlag(165)&&!I.getFlag(174)};
Lst=function(){var I=I===void 0?window.location.href:I;if(_.l("kevlar_disable_theme_param"))return null;var y=_.iP(I);if(_.woq(y))return"USER_INTERFACE_THEME_DARK";try{var D=_.lP(I).theme;return vbL.get(D)||null}catch(F){}return null};
_.woq=function(I){return _.l("enable_dark_theme_only_on_shorts")?!(I==null||!I.startsWith("/shorts/")):!1};
_.P$o=function(I,y,D,F,R){y=y===void 0?!1:y;D=D===void 0?!1:D;var O=_.Pi("INNERTUBE_CONTEXT");if(!O)return _.vu(Error("bg")),{};O=(0,_.e$.unsafeClone)(O);_.l("web_no_tracking_params_in_shell_killswitch")||delete O.clickTracking;O.client||(O.client={});var w=O.client;w.clientName==="MWEB"&&w.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(w.clientFormFactor=_.Pi("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");w.screenWidthPoints=window.innerWidth;w.screenHeightPoints=window.innerHeight;w.screenPixelDensity=
Math.round(window.devicePixelRatio||1);w.screenDensityFloat=window.devicePixelRatio||1;w.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());w.userInterfaceTheme=_.Jt();if(!y){var v=_.BHt();v&&(w.connectionType=v);_.l("web_log_effective_connection_type")&&(v=A_q())&&(O.client.effectiveConnectionType=v)}var P;if(_.l("web_log_memory_total_kbytes")&&((P=_.Ft.navigator)==null?0:P.deviceMemory)){var K;P=(K=_.Ft.navigator)==null?void 0:K.deviceMemory;O.client.memoryTotalKbytes=""+P*1E6}y&&F&&!_.l("web_it_context_set_original_url_ks")&&
(w.originalUrl=Sdq(_.Ft.location.href,F).toString());_.l("web_gcf_hashes_innertube")&&(v=gc5())&&(K=v.coldConfigData,P=v.coldHashData,v=v.hotHashData,O.client.configInfo=O.client.configInfo||{},K&&(O.client.configInfo.coldConfigData=K),P&&(O.client.configInfo.coldHashData=P),v&&(O.client.configInfo.hotHashData=v));K=_.lP(_.Ft.location.href);!_.l("web_populate_internal_geo_killswitch")&&K.internalcountrycode&&(w.internalGeo=K.internalcountrycode);!_.l("web_populate_client_screen_killswitch")&&R&&(w.clientScreen=
R);w.clientName==="MWEB"||w.clientName==="WEB"?(w.mainAppWebInfo||(w.mainAppWebInfo={}),w.mainAppWebInfo.graftUrl=F||_.Ft.location.href,_.l("kevlar_woffle")&&_.vp.instance&&(F=_.vp.instance,w.mainAppWebInfo.pwaInstallabilityStatus=!F.appInstalledEventFired&&F.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),w.mainAppWebInfo.webDisplayMode=$Pq(),w.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):w.clientName==="TVHTML5"&&
(!_.l("web_lr_app_quality_killswitch")&&(F=_.Pi("LIVING_ROOM_APP_QUALITY"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{appQuality:F})),F=_.Pi("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{certificationScope:F}));!_.l("web_populate_time_zone_itc_killswitch")&&(F=WdL())&&(w.timeZone=F);(F=Ld_())?w.experimentsToken=F:delete w.experimentsToken;w=J_A();F=_.t44();F=(0,_.e$.getValues)(F.tokenJars);O.request=Object.assign({},O.request,{internalExperimentFlags:w,consistencyTokenJars:F});
!_.l("web_prequest_context_killswitch")&&(w=_.Pi("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(O.request.externalPrequestContext=w);F=_.a1();w=F.getFlag(58);F=F.get("gsml","");O.user=Object.assign({},O.user);w&&(O.user.enableSafetyMode=w);F&&(O.user.lockedSafetyMode=!0);_.l("warm_op_csn_cleanup")?D&&(y=_.VO())&&(O.clientScreenNonce=y):!y&&(y=_.VO())&&(O.clientScreenNonce=y);I&&(O.clickTracking={clickTrackingParams:I});if(I=_.jF("yt.mdx.remote.remoteClient_"))O.remoteClient=I;_.Sv.getInstance().setLocationOnInnerTubeContext(O);
try{var r=oKS(),N=r.bid;delete r.bid;O.adSignalsInfo={params:[],bid:N};for(var h=_.J(Object.entries(r)),x=h.next();!x.done;x=h.next()){var q=_.J(x.value),X=q.next().value,f=q.next().value;r=X;N=f;I=void 0;(I=O.adSignalsInfo.params)==null||I.push({key:r,value:""+N})}var m,z;if(((m=O.client)==null?void 0:m.clientName)==="TVHTML5"||((z=O.client)==null?void 0:z.clientName)==="TVHTML5_UNPLUGGED"){var B=_.Pi("INNERTUBE_CONTEXT");B.adSignalsInfo&&(O.adSignalsInfo.advertisingId=B.adSignalsInfo.advertisingId,
O.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",O.adSignalsInfo.limitAdTracking=B.adSignalsInfo.limitAdTracking)}}catch(C){_.vu(C)}return O};
_.tt=function(){return{isShellLoad:_.KR("IS_SHELL_LOAD",!1)}};
UcL=function(){navigator.serviceWorker.getRegistrations().then(function(I){I.forEach(Kse)})};
Kse=function(I){I&&_.rie(jl5,I.scope)};
_.rie=function(I,y){y={scope:y||_.d6("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.W$(I),y)};
Pp=function(I,y,D,F){if(y&&y.serializedYpcCujLoggingParams){if(D){var R={};R.transactionErrorType=D;F&&(R.errorMessage=F);y.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:R}}}D={};D.ypcCujContext=y;I=_.p0("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",I,D);_.mX().logFlowEvent(I,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ob_=function(I,y,D,F){var R={};R.serializedTransactionFlowLoggingParams=y;D&&(R.errorType=D);F&&(R.errorMessage=F);_.Jq(I,R);_.wI()};
_.Nlt=function(I){I&&_.ob_("transactionFlowStarted",I)};
_.hyL=function(I){I&&_.ob_("transactionFlowCancelled",I)};
_.Kg=function(I,y,D){y&&_.ob_("transactionFlowFailed",y,I,D)};
xce=function(I){var y=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");y&&(y.inert=I)};
_.UM=function(){this.megabloxUrl_=null};
_.r4=function(I){try{var y=ln5==null?void 0:ln5.composedPath(I)}catch(D){y=I.composedPath?I.composedPath():[]}return y&&y.length>0?y:I.composedPath?I.composedPath():[]};
_.jv=function(I){return _.r4(I)[0]};
o0=function(I){return I instanceof ShadowRoot?ShadowRoot:I instanceof DocumentFragment?DocumentFragment:I instanceof Document?Document:HTMLElement};
uJq=function(I){if(I instanceof Element)return Element.prototype;if(I instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+I);};
qdo=function(I,y){return _.l("sunnydom_native_scoped_query_selectors")?uJq(I).querySelector.call(I,y):o0(I).prototype.querySelector.call(I,y)};
EbA=function(I,y){return _.l("sunnydom_native_scoped_query_selectors")?uJq(I).querySelectorAll.call(I,y):o0(I).prototype.querySelectorAll.call(I,y)};
G7W=function(I){var y,D,F;return(F=(D=(y=I.parentElement)!=null?y:I.__shady_native_parentElement)!=null?D:I.__shady_parentElement)!=null?F:null};
Xoe=function(I){var y,D,F;return(F=(D=(y=I.parentNode)!=null?y:I.__shady_native_parentNode)!=null?D:I.__shady_parentNode)!=null?F:null};
Qlq=function(I){var y,D,F;return(F=(D=(y=I.nextSibling)!=null?y:I.__shady_native_nextSibling)!=null?D:I.__shady_nextSibling)!=null?F:null};
Ydq=function(I){var y,D,F;return(F=(D=(y=I.previousSibling)!=null?y:I.__shady_native_previousSibling)!=null?D:I.__shady_previousSibling)!=null?F:null};
fnB=function(I){var y,D,F;return(F=(D=(y=I.nextElementSibling)!=null?y:I.__shady_native_nextElementSibling)!=null?D:I.__shady_nextElementSibling)!=null?F:null};
nb_=function(I){var y,D,F;return(F=(D=(y=I.previousElementSibling)!=null?y:I.__shady_native_previousElementSibling)!=null?D:I.__shady_previousElementSibling)!=null?F:null};
poS=function(I){var y,D,F;return new Set([].concat(_.Td((y=I.children)!=null?y:[]),_.Td((D=I.__shady_native_children)!=null?D:[]),_.Td((F=I.__shady_children)!=null?F:[])))};
mcq=function(I){var y,D,F;return new Set([].concat(_.Td((y=I.childNodes)!=null?y:[]),_.Td((D=I.__shady_native_childNodes)!=null?D:[]),_.Td((F=I.__shady_childNodes)!=null?F:[])))};
_.NX=function(I){if(!(I instanceof Element))return null;I=I.classList?Array.from(I.classList):void 0;if(!I)return null;var y=I.indexOf("style-scope");return y>-1&&y+1<I.length?I[y+1]:null};
ht=function(I){if(!(I instanceof HTMLElement))return null;var y=I&&(I.$$||I.polymerController)?I.tagName.toLowerCase():null;return y?y:_.NX(I)};
M4J=function(I,y){return _.l("sunnydom_native_scoped_query_selectors")?I+".style-scope."+y:I.replace(/[^a-z]*[^\s]+/g,function(D){return D+".style-scope."+y})};
zyC=function(I,y){return y?I.split(",").map(function(D){return M4J(D.trim(),y)}).join(", "):I};
_.xe=function(I){var y,D,F,R;return(R=(F=(D=(y=I.root)!=null?y:I.shadowRoot)!=null?D:I.__shady_native_shadowRoot)!=null?F:I.__shady_shadowRoot)!=null?R:I};
k7q=function(I){var y,D,F;return(F=(D=(y=I.__shady_parentNode)!=null?y:I.__shady_native_parentNode)!=null?D:I.parentNode)!=null?F:null};
dc5=function(I){var y,D;return(D=(y=Xoe(I))!=null?y:I.host)!=null?D:null};
anS=function(I){for(;I&&!(I instanceof HTMLElement);)I=dc5(I);return I};
ciW=function(I){var y=anS(I);return I===y?_.NX(I):y?ht(y):null};
WsJ=function(I){return(I=anS(I))?ht(I):null};
C$q=function(I){if(I instanceof Comment)return!1;if(I instanceof Text){var y,D;if(((D=(y=I.textContent)==null?void 0:y.trim())!=null?D:"")==="")return!1}return!0};
lI=function(I,y,D){var F=y(I);for(D=D===void 0?WsJ(I):D;F&&(ciW(F)!==D||!C$q(F));)I=F,F=y(I);return F};
BlC=function(I,y,D){if(!y)return null;I=WsJ(I);return ciW(y)===I&&C$q(y)?y:lI(y,D,I)};
i1L=function(I){return lI(I,k7q,_.NX(I))};
Aiq=function(I){return lI(I,fnB)};
$c_=function(I){return lI(I,Qlq)};
b1e=function(I){return lI(I,nb_)};
H1o=function(I){return lI(I,Ydq)};
eyB=function(I){return BlC(I,I.firstChild||null,Qlq)};
TlL=function(I){var y,D,F;var R=(F=(D=(y=I.firstElementChild)!=null?y:I.__shady_native_firstElementChild)!=null?D:I.__shady_firstElementChild)!=null?F:null;return BlC(I,R,fnB)};
slA=function(I){var y,D,F;var R=(F=(D=(y=I.lastChild)!=null?y:I.__shady_native_lastChild)!=null?D:I.__shady_lastChild)!=null?F:null;return BlC(I,R,Ydq)};
V4S=function(I){var y,D,F;var R=(F=(D=(y=I.lastElementChild)!=null?y:I.__shady_native_lastElementChild)!=null?D:I.__shady_lastElementChild)!=null?F:null;return BlC(I,R,nb_)};
Z1B=function(I){var y=WsJ(I);return Array.from(mcq(I)).filter(function(D){return ciW(D)===y})};
gbW=function(I){var y=ht(I);return Array.from(poS(I)).filter(function(D){return _.NX(D)===y})};
Ipo=function(I){if(!I)return null;var y=_.NX(I);if(!y){var D;return(D=Node.prototype.getRootNode)==null?void 0:D.call(I)}y=y.toUpperCase();for(I=G7W(I);I&&I.tagName!==y;)I=G7W(I);return I?_.xe(I):null};
_.uI=function(I){var y=_.l(I);oQ["counterfactuals."+I]=String(y);return y};
_.qX=function(I,y,D){if(I instanceof HTMLElement&&_.NX(I)===D){var F=Array.from(I.classList).indexOf("style-scope");if(F===-1)I.classList.add("style-scope"),I.classList.add(y);else if(!(F+1>=I.classList.length)){F=I.classList[F+1];var R,O;I==null||(R=I.classList)==null||(O=R.replace)==null||O.call(R,F,y)}}if(I instanceof HTMLElement||I instanceof DocumentFragment)for(R=_.J(poS(I)),O=R.next();!O.done;O=R.next())_.qX(O.value,y,D);return I};
EM=function(I,y){if(I instanceof HTMLElement&&_.NX(I)===y){var D=Array.from(I.classList).indexOf("style-scope");D===-1||D+1>=I.classList.length||I.classList.remove("style-scope",I.classList[D+1])}if(I instanceof HTMLElement||I instanceof DocumentFragment){D=_.J(I.children);for(var F=D.next();!F.done;F=D.next())EM(F.value,y)}return I};
_.ykq=function(I,y){return o0(I).prototype.appendChild.call(I,y)};
DkH=function(I,y){if(I===y)return!0;I=mcq(I);return Array.from(I).some(function(D){return DkH(D,y)})};
_.XB=function(I,y){if(I instanceof G4)return I;(y==null?0:y.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(I,"ownerDocument")&&Object.defineProperty(I,"ownerDocument",{get:function(){return window.document}});
return new G4(I)};
Rs_=function(){var I=G4.prototype,y=[].concat(_.Td(FBW?[]:["getRootNode"]),["setAttribute","removeAttribute"]);y=_.J(y);for(var D=y.next(),F={};!D.done;F={method$jscomp$53:void 0},D=y.next())F.method$jscomp$53=D.value,I[F.method$jscomp$53]=function(R){return function(){return this.host[R.method$jscomp$53].apply(this.host,arguments)}}(F)};
LBW=function(){var I=G4.prototype,y=[].concat(_.Td(FBW?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Td(Of5?[]:["querySelector","querySelectorAll"]));y=_.J(y);for(var D=y.next(),F={};!D.done;F={method$jscomp$54:void 0},D=y.next())F.method$jscomp$54=D.value,I[F.method$jscomp$54]=function(R){return function(){return this.root[R.method$jscomp$54].apply(this.root,arguments)}}(F)};
vu4=function(){var I=G4.prototype,y=[].concat(_.Td(Jko?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Td(wJ_?[]:["parentNode"]));y=_.J(y);for(var D=y.next(),F={};!D.done;F={prop$jscomp$67:void 0},D=y.next())F.prop$jscomp$67=D.value,Object.defineProperty(I,F.prop$jscomp$67,{get:function(R){return function(){return this.host[R.prop$jscomp$67]}}(F),
configurable:!0})};
PG_=function(){var I=G4.prototype,y=["activeElement"].concat(_.Td(Jko?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Td(S0q?[]:["children"]),_.Td(ttq?[]:["lastChild"]));y=_.J(y);for(var D=y.next(),F={};!D.done;F={prop$jscomp$68:void 0},D=y.next())F.prop$jscomp$68=D.value,Object.defineProperty(I,F.prop$jscomp$68,{get:function(R){return function(){return this.root[R.prop$jscomp$68]}}(F),
configurable:!0})};
KB4=function(){for(var I=G4.prototype,y=_.J(["innerHTML","textContent"]),D=y.next(),F={};!D.done;F={prop$jscomp$69:void 0},D=y.next())F.prop$jscomp$69=D.value,Object.defineProperty(I,F.prop$jscomp$69,{get:function(R){return function(){return this.root[R.prop$jscomp$69]}}(F),
set:function(R){return function(O){this.root[R.prop$jscomp$69]=O}}(F),
configurable:!0})};
Ukq=function(I){var y=G4.prototype;I=_.J(Object.entries(I));for(var D=I.next(),F={};!D.done;F={fn$jscomp$402:void 0},D=I.next()){var R=_.J(D.value);D=R.next().value;R=R.next().value;F.fn$jscomp$402=R;y[D]=function(O){return function(){return O.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.Td(arguments)))}}(F)}};
jYC=function(){for(var I=G4.prototype,y=_.J(Object.entries(rkB)),D=y.next(),F={};!D.done;F={fn$jscomp$403:void 0},D=y.next()){var R=_.J(D.value);D=R.next().value;R=R.next().value;F.fn$jscomp$403=R;Object.defineProperty(I,D,{get:function(O){return function(){return O.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.Td(arguments)))}}(F),
configurable:!0})}};
_.QU=function(I){return I instanceof ouA||I instanceof Document?I:new ouA(I)};
N5o=function(){for(var I=ouA.prototype,y=_.J("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),D=y.next(),F={};!D.done;F={method$jscomp$55:void 0},D=y.next())F.method$jscomp$55=D.value,I[F.method$jscomp$55]=function(R){return function(){return HTMLElement.prototype[R.method$jscomp$55].call.apply(HTMLElement.prototype[R.method$jscomp$55],[this.node].concat(_.Td(arguments)))}}(F)};
hsq=function(){for(var I=ouA.prototype,y=_.J("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),D=y.next(),F={};!D.done;F={prop$jscomp$70:void 0},D=y.next())F.prop$jscomp$70=D.value,Object.defineProperty(I,F.prop$jscomp$70,{get:function(R){return function(){var O;return(O=this.node["__shady_native_"+R.prop$jscomp$70])!=null?O:this.node[R.prop$jscomp$70]}}(F),
configurable:!0})};
_.Ye=function(I,y,D){D===void 0&&(D=!I.classList.contains(y));D?I.classList.add(y):I.classList.remove(y)};
_.fg=function(I,y,D){D===void 0&&(D=!I.hasAttribute(y));if(y==="class")throw Error("gg");D?_.QU(I).setAttribute(y,""):_.QU(I).removeAttribute(y)};
xk5=function(I){return(I.localName!=="slot"?[]:(0,_.ng)(I).assignedNodes({flatten:!0})).filter(function(y){return y.nodeType===Node.ELEMENT_NODE})};
_.lpA=function(I){return(I=_.XB(I).querySelector("slot"))&&I.localName==="slot"?xk5(I):[]};
_.pg=function(I,y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(I,y)};
mh=function(I,y){var D=y.bind(I);return function(F){D(F,F.detail)}};
_.MX=function(I,y){var D=uKL.get(I);D||(D=new WeakMap,uKL.set(I,D));if(D.has(y))return D.get(y);if(_.l("web_fi_listen_disable_bound_fn_helper")){var F=y.bind(I);I=function(R){F(R,R==null?void 0:R.detail)}}else I=mh(I,y);
D.set(y,I);return I};
Gnq=function(I,y){q0e(I);I.created[Eu5].push(y)};
q0e=function(I){if(!I.created||!I.created[Eu5]){var y=I.created,D=y?[y]:[];I.created=function(){for(var F=_.J(D),R=F.next();!R.done;R=F.next())R.value.apply(this)};
I.created[Eu5]=D}};
XJL=function(I){return function(){var y=_.go.apply(0,arguments);return function(D,F,R){I.apply(null,_.Td(y))(D,F,R)}}};
QY4=function(){return function(){var I=_.go.apply(0,arguments);return function(y,D,F){w2A.apply(null,_.Td(I))(y,D,F)}}};
_.Q=function(I){return QY4()(I)};
_.Y=function(){return XJL(PbW).apply(null,_.Td(_.go.apply(0,arguments)))};
_.z4=function(I){return _.l("pbcm_fi_listen_decorators")?Y0W(I):XJL(S5A)(I)};
Y0W=function(I){return function(y,D){Gnq(y,function(){var F=this[D],R=_.l("web_fi_listen_disable_bound_fn_helper")?function(O){F(O,O.detail)}.bind(this):mh(this,F);
fpL.has(I)?tp(this.hostElement,I,R):this.hostElement.addEventListener(I,R)})}};
_.ke=function(){return XJL(teH).apply(null,_.Td(_.go.apply(0,arguments)))};
_.M=function(I){I=I===void 0?{}:I;return XJL(vRq)(I)};
_.d4=function(I){if(I.hostElement&&I!==I.hostElement){var y=_.Bx(I.hostElement);y=I.renderIdom?y:y.shadowRoot}y||(I=I.root,y=I instanceof Node?_.Bx(I):null);return y};
_.a0=function(I){return nuC?pJe(I):function(y,D){Object.defineProperty(y,D,{get:function(){var F;return(F=_.d4(this))==null?void 0:F.querySelector(I)},
enumerable:!0,configurable:!0})}};
pJe=function(I){return function(y,D){Object.defineProperty(y,D,{get:function(){var F,R=(F=_.XB(this.hostElement))==null?void 0:F.querySelector(I);if(R)return R;var O;return(O=_.d4(this))==null?void 0:O.querySelector(I)},
enumerable:!0,configurable:!0})}};
_.cp=function(I){return nuC?mkt(I):function(y,D){Object.defineProperty(y,D,{get:function(){var F;return(F=_.d4(this))==null?void 0:F.querySelectorAll(I)},
enumerable:!0,configurable:!0})}};
mkt=function(I){return function(y,D){Object.defineProperty(y,D,{get:function(){var F,R=(F=_.XB(this.hostElement))==null?void 0:F.querySelectorAll(I);if(R==null?0:R.length)return R;var O;return(O=_.d4(this))==null?void 0:O.querySelectorAll(I)},
enumerable:!0,configurable:!0})}};
MtC=function(I){return function(y){if(![_.MQ,_.k].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("hg");Iw_(Object.assign({},typeof I!=="string"?I:{is:I,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(y)}};
_.Cg=function(){var I=I===void 0?{}:I;return function(y){if(![zt,_.Wp].includes(Object.getPrototypeOf(y.prototype).constructor))throw Error("ig");yPB(Object.assign({},I,{disableInheritanceCheck:!0}))(y)}};
knq=function(I,y){zsC[I]!=null||(zsC[I]=new Set);zsC[I].add(y)};
_.Bp=function(){var I=_.ke.apply(null,_.Td(_.go.apply(0,arguments)));return function(y,D){knq(y.is,D);I(y,D)}};
$e=function(I,y,D){if(iI(I)&&!dk5.has(y)){y=y.replace(/^JSC\$[\d]+_/,"");y=y.replace(/\.\d+(\.|$)/g,function(O,w){return".#"+w});
At[I]!=null||(At[I]={});var F,R;(F=At[I])[R=y]!=null||(F[R]=new Set);At[I][y].has(D)||(At[I][y].add(D),_.Jq("polymerPropertyAccessEvent",{componentName:I,propertyName:y,accessType:D}))}};
ap_=function(){return _.l("polymer_property_access_logging_debug")||_.l("polymer_enable_property_access_logging")};
iI=function(I){if(_.l("polymer_property_access_logging_debug"))return!0;if(!_.l("polymer_enable_property_access_logging"))return!1;ckB||(ckB=Date.now());return(O$(I)+ckB)%100<_.kf("polymer_property_access_logging_percent")};
WBB=function(I,y){return iI(y)&&I.hostElement.loggingStatus?new Proxy(I,{get:function(D,F,R){if(D.hostElement.loggingStatus.bypassProxyController)return D[F];D.hostElement.loggingStatus.isExternalGet=!0;var O=D[F];D.hostElement.loggingStatus.isExternalGet=!1;if(O instanceof Function)return function(){var w=_.go.apply(0,arguments);try{return D.hostElement.loggingStatus.currentExternalCall=F,$e(y,F,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),O.apply(this===R?D:this,w)}finally{D.hostElement.loggingStatus.currentExternalCall=
void 0}};
$e(y,F,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return O},
set:function(D,F,R){if(D.hostElement.loggingStatus.bypassProxyController)return D[F]=R,!0;D.hostElement.loggingStatus.isRendererStamper?$e(y,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):D.hostElement.loggingStatus.isDeclarativeExternal||$e(y,F,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{D.hostElement.loggingStatus.currentExternalSet=F,D[F]=R}finally{D.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):I};
CGe=function(I,y){I&&I.loggingStatus&&!I.loggingStatus.isDeclarativeExternal&&!I.loggingStatus.isExternalGet&&I.loggingStatus.currentExternalSet!==y&&$e(I.tagName.toLowerCase(),y,"PROPERTY_ACCESS_GET_INTERNAL")};
bI=function(I,y,D){I&&(D||I.loggingStatus&&!I.loggingStatus.isInitializing&&!I.loggingStatus.isDefiningPropertyAccessor&&I.loggingStatus.currentExternalSet!==y)&&$e(I.tagName.toLowerCase(),y,"PROPERTY_ACCESS_SET_INTERNAL")};
B5J=function(){return{_definePropertyAccessor:function(I,y){var D=this,F=D.hostElement.loggingStatus;F&&(F.isDefiningPropertyAccessor=!0);var R=D[I];R!==void 0&&(D.__data?D._setPendingProperty(I,R):(D.__dataProto!=null||(D.__dataProto={}),D.__dataProto[I]=R));F&&(F.isDefiningPropertyAccessor=!1);Object.defineProperty(this,I,{get:function(){CGe(D.hostElement,I);return this.__data[I]},
set:function(O){y||this._setPendingProperty(I,O,!0)&&this._invalidateProperties()}})},
created:function(){var I=this._setPendingProperty.bind(this);this._setPendingProperty=function(y,D,F){bI(this.hostElement,y);return I.apply(this,[y,D,F])}}}};
ifo=function(I){ap_()&&_.Q(Hp.prototype)(I.prototype,"__templateBindingLoggingBehavior")};
Ak4=function(I,y){if(y.resolvedFactories.length!==I.resolvedFactories.length)return!0;y=_.J(y.resolvedFactories.entries());for(var D=y.next();!D.done;D=y.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;if(F.providerClass){if(F.providerClass!==I.resolvedFactories[D].providerClass)return!0}else if(F.providerValue){if(F.providerValue!==I.resolvedFactories[D].providerValue)return!0}else if(F.factory!==I.resolvedFactories[D].factory)return!0}return!1};
$ke=function(I,y){I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.constructor===Array)$ke(D,y);else{var F=y;F.has(D)||(D.inject&&F.add(D),D.behaviors&&$ke(D.behaviors,F))}};
ev=function(I,y){var D=I[y];I[y]=function(){var F=_.go.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(D)return D.apply(this,F)}};
T5B=function(){_.T4.Class=function(D,F){D=bf_(D,F);ev(D.prototype,"created");return D};
ev(sM.prototype,"_initializeProperties");ev(_.VU.prototype,"_initializeProperties");if(Hf_)ev(esB,"created");else{var I=function(){ev(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))I();else{var y=customElements.define;customElements.define=function(D,F,R){y.call(customElements,D,F,R);D==="tp-yt-iron-list"&&(I(),customElements.define=y)}}}};
VtS=function(I,y){I.prototype.behaviors=I.prototype.behaviors||[];I.prototype.behaviors.unshift(sYW.InjectBehavior);I.prototype.provide=y};
_.I6=function(I){return function(y){if(!I.disableElementRegistration){I.noInjection||VtS(y,I.providers);var D=y.prototype;D.__templateHelpers||w2A(ZN.prototype)(D,"__templateHelpers");D=I.is;Zfq||(Zfq=Date.now());(O$(D)+Zfq)%100<_.kf("polymer_log_prop_change_observer_percent")&&w2A(g4.prototype)(y.prototype,"__propertyObserverObserver");y.prototype.behaviors=y.prototype.behaviors||[];y.prototype.behaviors.unshift(_.guo.YtHostElementBehavior);ifo(y);MtC({is:I.is,notifyObserversOnUndefined:I.notifyObserversOnUndefined!==
!1,fastInit:I.fastInit,template:I.template,disableEnforceFastDefaultValuesCheck:!0})(y)}}};
_.yd=function(I){return _.I6({is:I.is,template:I.template,disableElementRegistration:I.disableElementRegistration,cssBuildOptOut:I.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
DZo=function(I,y){if(IxA){I=new I;for(var D=_.J(Object.getOwnPropertyNames(I)),F=D.next();!F.done;F=D.next())F=F.value,y[F]=I[F];for(D=y;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){F=_.J(Object.getOwnPropertyNames(D));for(var R=F.next();!R.done;R=F.next())R=R.value,I.hasOwnProperty(R)||Object.defineProperty(I,R,ybq(y,R))}}else I.apply(y)};
ybq=function(I,y){return{get:function(){var D=I[y];return D instanceof Function?D.bind(I):D},
set:function(D){I[y]=D}}};
RxB=function(I,y){for(var D=I._noAccessors,F=_.J(Object.getOwnPropertyNames(I)),R=F.next();!R.done;R=F.next())if(R=R.value,!Fbe.has(R))if(D)y[R]=I[R];else{var O=Object.getOwnPropertyDescriptor(I,R);O&&(O.configurable=!0,Object.defineProperty(y,R,O))}};
Ooo=function(I,y,D){return function(F){if(D){var R=D();F.model=R}if(I[y])I[y](F,F.detail)}};
Dd=function(I){var y=[];if(typeof I==="string")I.length>0&&y.push.apply(y,_.Td(I.split(".")));else{I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,typeof D==="string"?y.push.apply(y,_.Td(D.split("."))):y.push(D)}return y};
Lbq=function(I,y){if(y[y.length-1]!=="*"&&y[y.length-1]!=="splices"){for(var D=0;D<y.length;D++){if(!I)return;I=I[y[D]]}return I}};
Jb_=function(I,y){if(I.length>y.length)return!1;for(var D=0;D<I.length;D++)if(I[D]!==y[D])return!1;return!0};
vaA=function(I,y,D){if(y.type==="compute"){var F=y.getter.bind(D);var R=y.args}else F=function(){return D[y.method.methodName].apply(D,_.Td(_.go.apply(0,arguments)))},R=y.method.args;
wAS(I,y.propertyKey,F,R,y.value)};
tHt=function(I,y){if(y.readOnly){var D=Object.getOwnPropertyDescriptor(I.model,y.propertyKey);Object.defineProperty(I.model,y.propertyKey,{get:D.get,set:function(){}});
I.model[SVC(y.propertyKey)]=D.set}};
PA4=function(I,y,D){if(D){var F=y.propertyKey,R=y.selector;y=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Td(y.selectorArgs.map(function(O){return{type:"path",path:O}})));
wAS(I,F,function(O){var w=_.go.apply(1,arguments);return R.apply(null,[D.getState()].concat(_.Td(w)))},y)}};
UZo=function(I,y,D){var F=_.mQ(y.propertyKey)+"-changed";Kbq(I,function(R){var O={value:R.value,queueProperty:!0};R.path.split(".").length>1&&(O.path=R.path);D.dispatchEvent(new CustomEvent(F,{detail:O}))},[{type:"wildcard",
path:y.propertyKey}])};
rbS=function(I,y,D){Kbq(I,function(){D[y.method.methodName].apply(D,_.Td(_.go.apply(0,arguments)))},y.method.args)};
SVC=function(I){return"_set"+(I.charAt(0).toUpperCase()+I.slice(1))};
jpL=function(){var I,y=PV(function(D){I=D},!1);
return[I,y]};
lxB=function(I){I=I.trim().replace(oa5,",").replace(Nx_,"$1");var y=I[0];y==="-"&&(y=I[1]);if(y>="0"&&y<="9")return{type:"literal",value:Number(I)};if(y==="'"||y==='"')return{type:"literal",value:I.slice(1,-1)};if(y=I.match(hxq)){y=y[1];var D=xZB[y];if(D)return{type:D,path:I.slice(0,-(y.length+1))}}return{type:"path",path:I}};
GSq=function(I){var y=I.match(uZe);if(y)return I={methodName:y[1],args:qVH},y[2].trim()&&(y=y[2].replace(Ea5,"&comma;").split(","),I.args=y.map(lxB)),I};
XA4=function(I,y,D,F){F=F===void 0?!1:F;y=_.mQ(y);var R=ZM;R&&(D=R(D,y,"attribute",I));Ff(I,D,y,F)};
Ff=function(I,y,D,F){y=QpW(y,F===void 0?!1:F);y===void 0?I.removeAttribute(D):I.setAttribute(D,y)};
QpW=function(I,y){switch(typeof I){case "object":case "function":if(I instanceof Date)return I.toString();if(I){if((y===void 0?0:y)&&!_.l("polymer_reflect_objects_as_boolean_killswitch"))return I?"":void 0;y=window.trustedTypes?window.trustedTypes.isHTML(I)||window.trustedTypes.isScript(I)||window.trustedTypes.isScriptURL(I):void 0;if(y)return I;try{return JSON.stringify(I)}catch(D){_.tq(Error("Eg`"+I))}}break;case "boolean":return I?"":void 0;default:return I!==null&&I!==void 0?I.toString():void 0}};
YVJ=function(I){if(I===void 0)throw Error("Fg");return I};
MHH=function(I,y,D,F){var R=fxt(F);if(R.length){F=D;var O="property";naB.test(D)?O="attribute":D[D.length-1]==="$"&&(D=D.slice(0,-1),O="attribute");var w=pA5(R);w&&O==="attribute"&&(D==="class"&&I.hasAttribute("class")&&(w+=" "+I.getAttribute(D)),Ff(I,w,D));O==="attribute"&&F==="disable-upgrade$"&&I.setAttribute("disable-upgrade","");I.localName==="input"&&F==="value"&&I.setAttribute("value","");I.removeAttribute(F);O==="property"&&(D=_.zG(D));y=YVJ(y);mZe(y,O,D,R);return!0}return D.slice(0,3)===
"on-"?(I.removeAttribute(D),(O=y).events!=null||(O.events=[]),y.events.push({name:D.slice(3),value:F}),!0):D==="id"?(y.id=F,!0):!1};
fxt=function(I){for(var y=[],D=0,F;(F=zxJ.exec(I))!==null;){F.index>D&&y.push({type:"literal",value:I.slice(D,F.index)});var R=F[1][0];D=!!F[2];F=F[3].trim();if(R==="{")throw Error("Gg");(R=GSq(F))?y.push({type:"method",negate:D,signature:R}):y.push({type:"path",negate:D,path:F});D=zxJ.lastIndex}D&&D<I.length&&(I=I.substring(D))&&y.push({type:"literal",value:I});return y};
pA5=function(I){for(var y="",D=0;D<I.length;D++){var F=I[D];F.type==="literal"&&(y+=F.value)}return y};
mZe=function(I,y,D,F){I.bindings!=null||(I.bindings=[]);I.bindings.push({kind:y,target:D,parts:F})};
Wb4=function(I,y,D){var F=!1;if(I.localName==="template"){F=D;var R=y.stripWhitespace;R=kSB(I,R===void 0?!1:R);var O=I.content.ownerDocument.createDocumentFragment();R.content=O;O.appendChild(I.content);F&&(F.templateInfo=R);F=!0}else I.localName==="slot"&&(y.hasInsertionPoint=!0);if(I.firstChild&&(R=D,I.localName!=="script"&&I.localName!=="style")){O=0;for(var w=I.firstChild;w;){var v=w;if(v.localName==="template"){var P=v.getAttribute("is");if((w=P==="dom-if")||P==="dom-repeat"){v.removeAttribute("is");
P=v.ownerDocument.createElement("ps-"+P);v.parentNode.replaceChild(P,v);P.appendChild(v);var K=Array.from(v.attributes);K=_.J(K);for(var r=K.next();!r.done;r=K.next())r=r.value,w?dZC.has(r.name)&&Ff(P,r.value,r.name):axB.has(r.name)?Ff(P,r.value,r.name):cbH.has(r.name),v.removeAttribute(r.name);w=P}else w=v}if(w.nodeType===Node.TEXT_NODE){v=void 0;P=I;for(K=w;((v=K.nextSibling)==null?void 0:v.nodeType)===Node.TEXT_NODE;)r=void 0,(r=K).textContent!=null||(r.textContent=""),K.nextSibling.textContent&&
(K.textContent+=K.nextSibling.textContent),P.removeChild(K.nextSibling);if(y.stripWhitespace&&w.textContent&&!w.textContent.trim()){I.removeChild(w);w=w.nextSibling;continue}}Wb4(w,y,{parentIndex:O,parentInfo:R});w.parentNode&&O++;w=w.nextSibling}}var N;if((N=I.hasAttributes)==null?0:N.call(I)){N=D=YVJ(D);R=!1;O=Array.from(I.attributes);O=_.J(O);for(v=O.next();!v.done;v=O.next())v=v.value,R=MHH(I,N,v.name,v.value)||R;F=R||F}I.nodeType===Node.TEXT_NODE&&(N=fxt(I.textContent),N.length&&(I.textContent=
pA5(N)||" ",D=YVJ(D),mZe(D,"text","textContent",N),F=!0));D&&F&&(D.infoIndex=y.nodeInfoList.push(D)-1)};
kSB=function(I,y){y={nodeInfoList:[],stripWhitespace:(y===void 0?!1:y)||I.hasAttribute("strip-whitespace")};Wb4(I.content,y);return y};
CAe=function(I){Object.assign(I,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
io4=function(I,y,D){y.signalCache!=null||(y.signalCache={});var F=y.signalCache[D];if(!F){var R=D.split(".");F=!BxW(I,R[0]);if(R.length>1&&F){var O=I.getPathMutationSignal(R);F=function(){var w=Uf(I.owner,function(){return I.getWithPath([R[0]])}),v,P=(v=O())==null?void 0:v.value;
return{rootWasDefined:w!==void 0,value:P}}}else F=function(){var w=I.getWithPath(R);
return{rootWasDefined:w!==void 0,value:w}};
y.signalCache[D]=F}return F()};
$Z4=function(I,y,D,F,R){y=y.parts.map(function(w,v){if(w.type==="literal"){D.partWasDefined!=null||(D.partWasDefined=[]);var P;(P=D.partWasDefined)[v]||(P[v]=w.value!==void 0);return w.value}var K;if(w.type==="method"){var r,N=(r=(K=D.partWasDefined)==null?void 0:K[v])!=null?r:!1;N||(N=w.signature.args.every(function(q){return q.type==="literal"}));
var h=!1,x=!0;K=w.signature.args.map(function(q){if(q.type==="literal")return q.value;if(q.type!=="path")throw Error("Hg`"+q.type);var X=io4(I,D,q.path);q=X.value;X=X.rootWasDefined;h||(h=X);x&&(x=X);return q});
N||(N=R===1?x:h);D.partWasDefined!=null||(D.partWasDefined={});D.partWasDefined[v]=N;if(!N)return;K=(v=io4(I,D,w.signature.methodName).value)&&typeof v==="function"?v.apply(F,K):void 0}else r=io4(I,D,w.path),K=r.value,D.partWasDefined!=null||(D.partWasDefined={}),(N=D.partWasDefined)[v]||(N[v]=K!==void 0||r.rootWasDefined);w.negate&&(K=!K);return K});
if(y.length===1){var O;return((O=D.partWasDefined)==null?0:O[0])?y[0]:AbJ}return y.join("")};
bot=function(I){return typeof I==="object"&&!!I&&"notifyPath"in I&&"canNotifyPath"in I};
HoJ=function(I){return typeof I==="object"&&!!I&&"notifyPath"in I};
ex_=function(I){return"polymerController"in I};
Tx5=function(I,y){y=""+Dd(y)[0];if(bot(I))return I.canNotifyPath(y);if(ex_(I)&&bot(I.polymerController))return I.polymerController.canNotifyPath(y);if(HoJ(I)){var D;return!((D=I.properties)==null||!D[y])}if(ex_(I)&&HoJ(I.polymerController)){var F;return!((F=I.polymerController.properties)==null||!F[y])}return!1};
spW=function(I,y,D){bot(I)||HoJ(I)?I.notifyPath(y,D):ex_(I)&&(bot(I.polymerController)||HoJ(I.polymerController))&&I.polymerController.notifyPath(y,D)};
Zot=function(I,y,D){if(D!==AbJ){I.kind==="attribute"||I.target!=="textContent"&&(I.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(D=D===void 0?"":D);var F,R=(F=VH_.Polymer)==null?void 0:F.sanitizeDOMValue;R&&(D=R(D,I.target,I.kind,y));if(I.kind==="attribute"){I=I.target;if(I==="class"||I==="name"||I==="slot")y=(0,_.ng)(y);Ff(y,D,I)}else if(I=I.target,D!==y[I]||typeof D==="object")y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!0,$e(y.localName,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
y[I]=D,y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!1)}};
gaA=function(I,y,D,F){var R=y.parts[0];if(y.parts.length!==1||R.type!=="path"||!Tx5(D,y.target))return!1;var O=_.J(R.path.split(".")),w=O.next().value,v=GO(O);if(BxW(I,w))return!1;F.signalCache!=null||(F.signalCache={});O=F.signalCache[R.path];var P;O=(P=O)==null?void 0:P().value;if((O==null?void 0:O.path)!==void 0){F=Dd(O.path);var K=Dd(R.path);F=[y.target].concat(_.Td(F.slice(K.length-1)));spW(D,F,R.negate?!O.value:O.value);return!0}var r=R6(I,w);var N=r.getChangeRecordSignal(v),h=!1;O=function(){if(!h){var q=
Uf(I.owner,function(){return r.getWithPath([])});
h||(h=q!==void 0)}return{value:N(),rootWasDefined:h}};
F.signalCache[R.path]=O;F.partWasDefined!=null||(F.partWasDefined={});O=O();(K=F.partWasDefined)[0]||(K[0]=O.rootWasDefined);var x=Uf(I.owner,function(){return r.getWithPath(v)});
F.partWasDefined[0]&&Uf(I.owner,function(){return void Zot(y,D,R.negate?!x:x)});
return!0};
IHL=function(I,y,D,F,R,O){if(!gaA(I,y,D,F)){var w=$Z4(I,y,F,R,O);Uf(I.owner,function(){return void Zot(y,D,w)})}};
yHq=function(I,y,D,F,R,O){D=_.J(D);for(var w=D.next(),v={};!w.done;v={infoIndex:void 0},w=D.next()){w=w.value;var P=w.bindings;v.infoIndex=w.infoIndex;w=w.parentInfo;if(P){P=_.J(P);for(var K=P.next(),r={};!K.done;r={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},K=P.next()){r.b$jscomp$257=K.value;if(v.infoIndex===void 0)throw Error("Ig");r.bindingCtx$jscomp$4={};I.effect(function(N,h){return function(){R&&!R()||IHL(I,N.b$jscomp$257,y[h.infoIndex],N.bindingCtx$jscomp$4,F,O)}}(r,v))}}w&&yHq(I,y,[w],
F,R,O)}};
D7S=function(I,y){I=(y.parentInfo?D7S(I,y.parentInfo):I).firstChild;for(var D=0;I;I=I.nextSibling)if(y.parentIndex===D++)return I;throw Error("Jg");};
Rh4=function(I,y,D,F){I=document.importNode(I.content,!0);I.__noInsertionPoint=!(F==null?0:F.hasInsertionPoint);for(var R=Array(y.length),O={},w=0;w<y.length;w++){var v=y[w],P=D7S(I,v);R[w]=P;v.id&&(O[v.id]=P);if(v.templateInfo){var K=P.parentElement;K&&(K.templateInfo=v.templateInfo,K.parentSignalProxy=D,K.eventListenerHost=F.eventListenerHost,K.stampingEnabled=F.enabledSignal)}K=void 0;if((K=v.events)==null?0:K.length)for(K=0;K<v.events.length;K++){var r=v.events[K];FiB(F.eventListenerHost,P,r.name,
r.value,F.getModel)}}yHq(D,R,y,F.thisCtx,F.enabledSignal,F.methodInvocationRequirement);return{root:I,nodes:R,nodesById:O}};
LiW=function(I,y){I=I();var D;(D=Oq_.ShadyCSS)==null||D.prepareTemplate(I,y);y=kSB(I);return{template:I,nodeInfoList:y.nodeInfoList,hasInsertionPoint:y.hasInsertionPoint}};
vJo=function(){JHq=!1;for(var I=Ov.length,y=0;y<I;y++){var D=Ov[y];if(D)try{D()}catch(F){Promise.resolve().then(function(){throw F;})}}Ov.splice(0,I);
w3S+=I};
KiB=function(I){JHq||(JHq=!0,ShW.textContent=(tcL++).toString());Ov.push(I);return PNW++};
_.wy=function(I,y,D){LQ++;I=y?new U7J(LQ,I,y,D):new rHL(LQ,I);JC.set(LQ,I);return LQ};
jxJ=function(I){(I=JC.get(I))&&I.cancel()};
N_t=function(I,y){I=oJW.get(I);return I?(y=I.get(y))?y:null:null};
_.v4=function(I,y,D,F){var R=N_t(I,y);if(!R){R=new hhe;var O=oJW.get(I);O||(O=new Map,oJW.set(I,O));O.set(y,R)}I=D.bind(I);R.run(I,F,void 0)};
_.x75=function(I,y){var D;(D=N_t(I,y))==null||D.cancel()};
lHt=function(I){var y;(y=N_t(I,"doRender"))==null||y.flush()};
SE=function(I){var y;return(y=I.hostElement)!=null?y:I};
uFA=function(I){var y=I.indexOf(".");return y===-1?I:I.slice(0,y)};
qhJ=function(I,y,D,F,R,O){O=(R=(F=O?uFA(y):y)?y:null)?I.get(R):I.__data[y];R&&O===void 0&&(O=D[y]);_.lj(I.hostElement,yze(F)+"-changed",{value:O,queueProperty:!0,path:R!=null?R:void 0},{bubbles:!1,composed:!1})};
EJ4=function(I,y){I.__isReflecting=!0;XA4(I.hostElement,y,I.__data[y]);I.__isReflecting=!1};
Gl5=function(I){if(I._onIronRequestResizeNotifications){var y=I._onIronRequestResizeNotifications.bind(I);I._onIronRequestResizeNotifications=function(D){_.jv(D)!==I.hostElement&&y(D)}}I._ariaActiveAttributeChanged&&(I._ariaActiveAttributeChanged=I._ariaActiveAttributeChanged.bind(I.hostElement));
I._activeChanged&&(I._activeChanged=function(D){I.toggles?Ff(I.hostElement,D?"true":"false",I.ariaActiveAttribute):I.hostElement.removeAttribute(I.ariaActiveAttribute);I._changedButtonState()});
I._asyncClick&&(I._asyncClick=function(){_.wy(function(){I.hostElement.click()},1)});
!I.keyEventTarget||I.keyEventTarget instanceof EventTarget||(I.keyEventTarget=SE(I.keyEventTarget));I._disabledChanged&&(I._disabledChanged=I._disabledChanged.bind(I.hostElement));I._observeItems&&(I._observeItems=function(D){var F=SE(D);return _.Bx(F).observeNodes(function(R){I._updateItems();I._updateSelected();_.lj(F,"iron-items-changed",R,{bubbles:!1,cancelable:!1})})});
I._updateItems&&I._updateItems===_.tC._updateItems&&(I._updateItems=function(){var D=_.Bx(I.hostElement).queryDistributedElements(I.selectable||"*");D=Array.prototype.filter.call(D,I._bindFilterItem);I._setItems(D)});
I._computeKeyboardClass&&(I._computeKeyboardClass=function(D){_.Ye(I.hostElement,"keyboard-focus",D)});
I.ensureRipple&&(I.ensureRipple=function(D){if(I.hasRipple&&!I.hasRipple()){if(!I._createRipple)return;I._ripple=I._createRipple();I._ripple.noink=I.noink;var F=I._rippleContainer||I.hostElement;F&&_.XB(F).appendChild(I._ripple)}var R;if(D&&((R=I._ripple)==null?0:R.uiDownAction)){F=_.XB(I._rippleContainer||I.hostElement);var O;R=(O=D.composedPath())==null?void 0:O[0];F.contains(R)&&I._ripple.uiDownAction(D)}});
I._updateMultiselectable&&(I._updateMultiselectable=function(D){D?I.hostElement.setAttribute("aria-multiselectable","true"):I.hostElement.removeAttribute("aria-multiselectable")})};
X3J=function(I,y,D){D=_.J(D);for(var F=D.next();!F.done;F=D.next())DZo(F.value.constructor,I);DZo(y.constructor,I)};
YhS=function(I,y){I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.type==="signal"){var F=D.propertyKey;if(y.hasOwnProperty(F)&&y[F]!=null&&D.attributeType===Object){a:{F=y[F].constructor;for(var R=_.J(Qx4),O=R.next();!O.done;O=R.next())if(O=O.value,F===O){F=O;break a}F=Object}D.attributeType=F}}};
fHe=function(){};
nJL=function(I){var y;return(y=I.hostElement)!=null?y:I};
p34=function(){throw Error("Ng");};
m7o=function(I,y){I.constructor.prototype.useSignals=!0;var D=new I.constructor;X3J(D,I,y.behaviors);YhS(y.reactiveSchemas,D);D={};for(var F=_.J(y.reactiveSchemas),R=F.next();!R.done;R=F.next())R=R.value,R.type==="signal"&&(D[R.propertyKey]=R.attributeType);var O={copyPropertiesToProto:p34,didRegister:!1,typesForSignals:D},w=["disable-upgrade"].concat(_.Td(y.observedAttributes)),v=function(P){P4.call(this,I,y,O,P)};
_.E(v,P4);_.mD.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w}}});
O.copyPropertiesToProto=function(){for(var P=0;P<y.behaviors.length;P++)RxB(y.behaviors[P],v.prototype);RxB(I,v.prototype)};
y.legacyOptimizations||O.copyPropertiesToProto();v.prototype.is=I.is;return v};
Mco=function(I,y){if(Object.getPrototypeOf(y.prototype).constructor!==_.k)throw Error("Og");y.prototype.is=I.is;return m7o(y.prototype,I)};
zhL=function(I){return I.type==="compute"||I.type==="computeWithMethod"};
kle=function(I){for(var y=I.reactiveSchemas.filter(zhL),D=new Map,F=new Map,R=new Map,O=_.J(y),w=O.next();!w.done;w=O.next())w=w.value,D.set(w.propertyKey,w),F.set(w.propertyKey,[]),R.set(w.propertyKey,0);O=0;y=_.J(y);for(w=y.next();!w.done;w=y.next()){w=w.value;for(var v=_.J(w.type==="computeWithMethod"?w.method.args:w.args),P=v.next();!P.done;P=v.next())P=P.value,P.type!=="literal"&&(P=P.path.split(".")[0],F.has(P)&&(F.get(P).push(w.propertyKey),R.set(w.propertyKey,R.get(w.propertyKey)+1),O++))}w=
[].concat(_.Td(F.keys())).filter(function(K){return R.get(K)===0});
for(y=[];w.length;)for(v=w.shift(),y.push(D.get(v)),v=_.J(F.get(v)),P=v.next();!P.done;P=v.next())P=P.value,R.set(P,R.get(P)-1),O--,R.get(P)===0&&w.push(P);D=I.reactiveSchemas.filter(function(K){return!zhL(K)});
I.reactiveSchemas=[].concat(_.Td(D),_.Td(y))};
d7_=function(I,y){if(y.properties)for(var D=_.J(Object.entries(y.properties)),F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;I.properties[F]=typeof R==="function"?{type:R}:R}y.observers&&I.observers.push.apply(I.observers,_.Td(y.observers));y.disabledPolySiReactions&&I.disabledPolySiReactions.push.apply(I.disabledPolySiReactions,_.Td(y.disabledPolySiReactions))};
aHW=function(I,y){for(var D=y.length-1;D>=0;D--){var F=y[D];Array.isArray(F)?aHW(I,F):I.indexOf(F)<0&&I.unshift(F)}};
cHB=function(I,y){I.reactiveSchemas=I.reactiveSchemas.filter(function(D){return D.type==="observe"&&y.includes(D.method.methodName)||zhL(D)&&y.includes(D.propertyKey)?!1:!0})};
CN_=function(I,y){var D=y.prototype,F,R,O={is:I.is,reactiveSchemas:[],observedAttributes:[],behaviors:[sYW.InjectBehavior,ZN.prototype],disableElementRegistration:I.disableElementRegistration,provide:(F=I.providers)!=null?F:[],reactivityMode:I.reactivityMode,signalProperties:(R=D.signalProperties)!=null?R:[]};"template"in y?O.templateGetter=function(){return y.template}:I.getTemplate&&(O.templateGetter=I.getTemplate);
D.behaviors&&aHW(O.behaviors,D.behaviors);WiH(O,y);return O};
WiH=function(I,y){for(var D=y.prototype,F={properties:{},observers:[],disabledPolySiReactions:[]},R=_.J(I.behaviors),O=R.next();!O.done;O=R.next())d7_(F,O.value);d7_(F,D);if(I.signalProperties)for(D=_.J(I.signalProperties),R=D.next();!R.done;R=D.next())delete F.properties[R.value];D=_.J(Object.entries(F.properties));for(R=D.next();!R.done;R=D.next()){O=_.J(R.value);R=O.next().value;O=O.next().value;var w=void 0;if((w=I.signalProperties)==null||!w.includes(R)){w=void 0;var v=I,P=O.type;if(!P)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{P=Reflect.getMetadata("design:type",y,R);for(var K=_.J(B_o),r=K.next();!r.done;r=K.next())if(r=r.value,P===r){P=r;break a}P=Object}else P=String;O.computed||O.selector||(v.reactiveSchemas.push({type:"signal",propertyKey:R,value:O.value,attributeType:P,readOnly:O.readOnly}),v.observedAttributes.push(_.mQ(R)));O.reflectToAttribute&&v.reactiveSchemas.push({type:"reflect",propertyKey:R});if(O.computed){P=GSq(O.computed);if(!P)throw Error("Pg");v.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:R,method:P,value:O.value})}O.observer&&v.reactiveSchemas.push({type:"observe",method:{methodName:O.observer,args:[{type:"path",path:R}]}});O.notify&&v.reactiveSchemas.push({type:"notify",propertyKey:R});O.selector&&v.reactiveSchemas.push({type:"redux",propertyKey:R,selector:O.selector,selectorArgs:(w=O.selectorArgs)!=null?w:[]})}}iq5&&kle(I);y=_.J(F.observers);for(R=y.next();!R.done;R=y.next())D=I,R=R.value,(O=GSq(R))?D.reactiveSchemas.push({type:"observe",method:O}):console.log('Warning: unable to parse observe declaration: "'+
R+'"');cHB(I,F.disabledPolySiReactions)};
AHJ=function(I,y){for(var D=0;D<y.length;D++){var F=y[D],R=void 0;(R=F).showHideApi!=null||(R.showHideApi={});R=void 0;!!I!==!((R=F.showHideApi)==null||!R.hideTemplateChildren)&&(F.nodeType===Node.TEXT_NODE?I?(F.showHideApi.polymerTextContent=F.textContent,F.textContent=""):(R=void 0,F.textContent=(R=F.showHideApi.polymerTextContent)!=null?R:null):F instanceof Element&&F.localName==="slot"?I?(F.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.ng)((0,_.ng)(F).parentNode).replaceChild(F.showHideApi.polymerReplaced,
F)):(R=F.showHideApi.polymerReplaced)&&(0,_.ng)((0,_.ng)(R).parentNode).replaceChild(F,R):F instanceof HTMLElement&&F.style&&(I?(F.showHideApi.polymerDisplay=F.style.display,F.style.display="none"):F.style.display=F.showHideApi.polymerDisplay));F.showHideApi.hideTemplateChildren=I;F.showHideChildren&&F.showHideChildren(I)}};
bqW=function(){if(!$7S){var I=document.createElement("style");I.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(I);$7S=!0}};
KQ=function(){return _.l("disable_hidden_dom_if_using_stamper")};
Hqt=function(I,y){var D=_.Uv().getState();return y?I.apply(null,[D].concat(_.Td(y))):I(D)};
sxq=function(){if(ehS)return ehS;var I=_.J(_.$M(0,void 0,"MB1Hb")),y=I.next().value;I.next();var D=I.next().value;_.Uv().subscribe(function(){T_o(D)});
return ehS=y};
T_o=function(I){VcC||(VcC=!0,Promise.resolve().then(function(){I(function(y){return y+1});
VcC=!1}))};
_.Uv=function(){return ZqJ.getAppStore()};
gJC=function(I,y){return ZqJ.getSelectFn()(I,y)};
_.ry=function(I){ZqJ.getDispatchFn()(I)};
IcL=function(I,y){var D={},F;for(F in I)D[F]=y(I[F],F);return D};
_.jE=function(I,y){return function(){var D;return(D=_.Ki(I))!=null?D:y}};
_.o6=function(I,y){var D=Object.assign({},I),F;for(F in y)y.hasOwnProperty(F)&&(D[F]=_.jE(I[F],y[F]));return D};
yo5=function(I,y,D,F){I instanceof Element&&(D.debugName||(D.debugName="<"+I.tagName.toLowerCase()+(I.tagName.includes("-")?">":"."+I.className+">")),_.l("ytwiz_enable_debug_component_props")&&(I.debugProps||(I.debugProps=IcL(y,function(R){return function(){return R()}})),y.data===void 0||"data"in I&&!I.isWebComponentWrapper||Object.defineProperty(I.debugProps,"data",{get:function(){return _.Ki(y.data)},
set:function(R){var O;F==null||(O=F.data)==null||O.call(F,R)},
enumerable:!0,configurable:!0})))};
_.N4=function(I,y){if(I.length===0&&(y==null||!y.initial))return rp5(I,{debugName:y==null?void 0:y.debugName},"l");var D=_.J(rp5({source:function(){return I()},
computation:function(O,w){return(w==null?0:w.value)?I(w.value):(y==null?0:y.initial)?I(y.initial):O}},{debugName:y==null?void 0:y.debugName},"m")),F=D.next().value,R=D.next().value;
D=D.next().value;return[F,R,D]};
_.d=function(I,y){var D=function(F){return jI("ytComponent",{},function(R){var O=DdJ={};var w;if(((w=D)==null?0:w.idomCompat)&&F.renderedFromIdom){var v;w=typeof D.idomCompat==="object"?(v=D)==null?void 0:v.idomCompat.callbacks:{};w=_.J(Fo_(F,w));v=w.next().value;var P=w.next().value;w=w.next().value;var K=RI4(I,v);O.privateValue=K;DdJ=void 0;yo5(K,v,D,P);R.addAttributes({debugName:D.debugName});R=S_H(K);R=Array.isArray(R)?R[0]:R;R[Ci]||(R[Ci]={});R[Ci].updateSignalsFromIdomProps=w;OXA(v,K);return K}w=
IcL(F,LoJ);v=RI4(I,w);yo5(v,w,D);O.privateValue=v;DdJ=void 0;R.addAttributes({debugName:D.debugName});OXA(w,v);return v})};
D.debugName=y===void 0?"":y;return D};
RI4=function(I,y){I=I(y);return $4(I)};
JoC=function(I,y){I[y]||(I=new _.g6("IDOM interop setter undefined. Key:",y),_.vu(I))};
LoJ=function(I,y){return y==="children"||y==="ref"||typeof I==="function"||I===void 0?I:function(){return _.Ki(I)}};
Fo_=function(I,y){var D={},F={},R={},O={},w;for(w in I){O={key$jscomp$952:O.key$jscomp$952};O.key$jscomp$952=w;var v=I[O.key$jscomp$952];if(O.key$jscomp$952==="children"||O.key$jscomp$952==="ref")D[O.key$jscomp$952]=v;else if(typeof v==="function")if(O.key$jscomp$952 in y||v.length>0)R[O.key$jscomp$952]=v,D[O.key$jscomp$952]=function(K){return function(){return R[K.key$jscomp$952].apply(R,_.Td(_.go.apply(0,arguments)))}}(O);
else if(O.key$jscomp$952==="data"){var P=_.J(_.N4(v,{debugName:O.key$jscomp$952+":cwis"}));v=P.next().value;P=P.next().value;D[O.key$jscomp$952]=v;F[O.key$jscomp$952]=P}else D[O.key$jscomp$952]=v;else I[O.key$jscomp$952]===void 0&&O.key$jscomp$952 in y||(P=_.J(_.$M(I[O.key$jscomp$952],{debugName:O.key$jscomp$952+":cwis"},"HQMSk")),v=P.next().value,P=P.next().value,D[O.key$jscomp$952]=v,F[O.key$jscomp$952]=P)}return[D,F,function(K){var r={},N;for(N in K)r={key$jscomp$951:r.key$jscomp$951,val$jscomp$122:void 0},
r.key$jscomp$951=N,r.val$jscomp$122=K[r.key$jscomp$951],r.key$jscomp$951!=="children"&&r.key$jscomp$951!=="ref"&&(typeof r.val$jscomp$122==="function"?r.key$jscomp$951 in y?R[r.key$jscomp$951]=r.val$jscomp$122:r.val$jscomp$122.length>0&&(R[r.key$jscomp$951]=r.val$jscomp$122,_.tq(new _.g6("Callback detected that was not set in the idomCompat callbacks map. Key:",r.key$jscomp$951))):r.key$jscomp$951 in y&&r.val$jscomp$122===void 0||(JoC(F,r.key$jscomp$951),V2(function(h){return function(){F[h.key$jscomp$951](h.val$jscomp$122)}}(r))))}]};
SFC=function(I,y,D){var F=shH(I.prototype,wNA,I.prototype.behaviors);F.prototype.is=y;F.prototype.localName=y;D&&vHe(F,D);return function(R){R&&(F.prototype.hostElement=R);var O=new F;O.root=O;O.hostElement=R;return O}};
vHe=function(I,y){var D;Object.defineProperty(I.prototype,"_template",{get:function(){D===void 0&&(D=y());return D},
set:function(F){D=F},
configurable:!0,enumerable:!0})};
roq=function(I,y,D,F){function R(){if(!x){for(var q=new Set,X=_.J(r),f=X.next();!f.done;f=X.next()){f=f.value;for(var m=_.J(Object.getOwnPropertyNames(f)),z=m.next();!z.done;z=m.next()){z=z.value;var B=void 0,C=(B=Object.getOwnPropertyDescriptor(f,z))==null?void 0:B.value;C&&C instanceof Function&&!hC(z)&&(!v[z]||_.l("polymer_forward_method_killswitch"))&&q.add(z)}}X=_.J(Object.entries(Object.getOwnPropertyDescriptors(I.prototype)));for(f=X.next();!f.done;f=X.next())m=_.J(f.value),f=m.next().value,
m=m.next().value,m.value instanceof Function&&!hC(f)&&q.add(f);x=q}return x}
t8t(I,y,F==null?void 0:F.providers);Vq4(I.prototype,I,!0);var O=SFC(I,y,D),w,v=(w=I.prototype.properties)!=null?w:{},P,K,r=(K=(P=I.prototype.behaviors)==null?void 0:P.flat(Infinity))!=null?K:[];D=_.J(r);for(w=D.next();!w.done;w=D.next())v=Object.assign({},w.value.properties,v);var N=[].concat(_.Td(PBJ),_.Td(Object.keys(v).map(function(q){return _.mQ(q)}))),h=!1,x;
return{ctor:function(q,X){var f=O(q),m,z;q=[].concat(_.Td((m=F==null?void 0:F.allowedProps)!=null?m:[]),_.Td((z=F==null?void 0:F.allowedPropsFromBehaviors)!=null?z:[]));f.allowedProps=q.length>0?q:void 0;m={};z=_.J(N);for(q=z.next();!q.done;q=z.next())q=q.value,m[q]=_.zG(q);f.__dataAttributes=m;var B=f.ready.bind(f);f.ready=function(){X.beforeReady();B();if(iI(y)&&!h){var C=f.__templateInfo;if(C==null?0:C.hostProps){C=_.J(Object.keys(C.hostProps));for(var H=C.next();!H.done;H=C.next())$e(y,H.value,
"PROPERTY_ACCESS_GET_INTERNAL")}h=!0}};
f._overrideLegacyUndefined=!0;return f},
props:v,observedAttributes:N,getInitialMethods:R,getPropsToForwardBeforeRegister:function(){for(var q=[],X=new Set,f=_.J(Object.keys(v)),m=f.next();!m.done;m=f.next())m=m.value,q.push([m,v[m].readOnly]),X.add(m);f=R();m=_.J(Object.keys(Object.getOwnPropertyDescriptors(I.prototype)));for(var z=m.next();!z.done;z=m.next())z=z.value,!KoW(z)||f.has(z)||X.has(z)||(q.push([z,!1]),X.add(z));X=_.J(Udo);for(f=X.next();!f.done;f=X.next())q.push([f.value,!0]);return q},
getPropsToForwardBeforeReady:function(q){for(var X=[],f=_.J(Object.entries(q)),m=f.next();!m.done;m=f.next()){var z=_.J(m.value);m=z.next().value;z=z.next().value;if(KoW(m)&&!(z instanceof Function)&&(X.push([m,!1]),iI(y))){var B=z=void 0;(B=(z=q)._createPropertyAccessor)==null||B.call(z,m)}}return X},
shouldForwardProp:KoW,shouldLog:iI}};
t8t=function(I,y,D){VtS(I,D);I.prototype.behaviors.unshift(jWJ);if(ap_()){if(iI(y)){var F;(F=I.prototype).behaviors!=null||(F.behaviors=[]);I.prototype.behaviors.unshift(B5J())}ifo(I)}_.Q(ZN.prototype)(I.prototype,"__templateHelpers")};
hC=function(I){return oHH.has(I)||I.startsWith("__compute__")};
KoW=function(I){return!hC(I)&&!I.startsWith("_")&&!I.endsWith("_")};
uxo=function(I,y){function D(){var h=P();h=_.J(h);for(var x=h.next();!x.done;x=h.next()){var q=_.J(x.value);x=q.next().value;q=q.next().value;NfL(N.prototype,x,q)}F=!0}
var F=!1,R=I.ctor,O=I.getInitialMethods,w=I.observedAttributes,v=I.getPropsToForwardBeforeReady,P=I.getPropsToForwardBeforeRegister,K=I.shouldForwardProp,r=I.shouldLog,N=function(){var h=HTMLElement.call(this)||this;h.didForwardDynamicProps=!1;h.loggingStatus={};F||D();h.inst=R(h,{beforeReady:function(){h.didForwardDynamicProps||(h.forwardDynamicProps(),h.didForwardDynamicProps=!0)}});
h.controllerProxy=WBB(h.inst,y);h.forwardMethods();return h};
_.E(N,HTMLElement);N.prototype.forwardMethods=function(){for(var h=this,x=_.J(this.inst.getExtraMethodsToForward()),q=x.next(),X={};!q.done;X={method$jscomp$65:void 0},q=x.next()){var f=_.J(q.value);q=f.next().value;f=f.next().value;X.method$jscomp$65=f;this[q]=function(m){return function(){return m.method$jscomp$65.call.apply(m.method$jscomp$65,[h.inst].concat(_.Td(_.go.apply(0,arguments))))}}(X)}x=_.J(O());
for(X=x.next();!X.done;X=x.next())X=X.value,K(X)&&hI_(this,X),r(y)&&!hC(X)&&xdt(this.inst,X)};
N.prototype.forwardDynamicProps=function(){var h=v(this.inst);h=_.J(h);for(var x=h.next();!x.done;x=h.next()){var q=_.J(x.value);x=q.next().value;q=q.next().value;NfL(this,x,q);r(y)&&!hC(x)&&lcq(this.inst,x)}};
N.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
N.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
N.prototype.attributeChangedCallback=function(h,x,q){this.inst.attributeChangedCallbackWrapper(h,x,q)};
_.mD.Object.defineProperties(N.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return y}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.mD.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w}}});
customElements.define(y,N)};
NfL=function(I,y,D){I.hasOwnProperty(y)||Object.defineProperty(I,y,{get:function(){var F,R=((F=I.is)!=null?F:I.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||$e(R,y,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,F=this.polymerController[y],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,F},
set:function(F){if(!D){var R,O=((R=I.is)!=null?R:I.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||$e(O,y,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=y,this.loggingStatus.bypassProxyController=!0,this.polymerController[y]!==F&&(R={},this.polymerController.setProperties((R[y]=F,R)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
hI_=function(I,y,D){var F=I.polymerController;I[y]=function(){var R=_.go.apply(0,arguments);I.loggingStatus.currentExternalCall=y;I.loggingStatus.bypassProxyController=!0;var O,w=((O=I.is)!=null?O:I.tagName).toLowerCase();$e(w,y,"PROPERTY_ACCESS_CALL_EXTERNAL");var v;O=(v=D!=null?D:F[y])==null?void 0:v.call.apply(v,[F].concat(_.Td(R)));I.loggingStatus.currentExternalCall=void 0;I.loggingStatus.bypassProxyController=!1;return O}};
xdt=function(I,y){var D=I.hostElement,F=I[y];I[y]=function(){var R=_.go.apply(0,arguments);if(D.loggingStatus.currentExternalCall!==y){var O,w=((O=D.is)!=null?O:D.tagName).toLowerCase();$e(w,y,"PROPERTY_ACCESS_CALL_INTERNAL")}return F==null?void 0:F.apply(I,R)}};
lcq=function(I,y){var D=Object.getOwnPropertyDescriptor(I,y);D&&!D.get&&Object.defineProperty(I,y,{get:function(){CGe(I.hostElement,y);return D.value},
set:function(F){bI(I.hostElement,y);D.value=F}})};
qFS=function(I){return _.l("poly_si_dom_repeat_detached_fix_killswitch")||I.tagName!=="PS-DOM-REPEAT"?I.tagName==="DOM-REPEAT":!0};
Gx5=function(I,y){var D=EHt(I);I instanceof Element&&D.unshift(I);I=_.J(D.filter(qFS));for(var F=I.next();!F.done;F=I.next()){var R=void 0;F=_.J((R=F.value.__instances)!=null?R:[]);for(R=F.next();!R.done;R=F.next())if(R=R.value,R.root){R=Array.from(R.root.children);R=_.J(R);for(var O=R.next();!O.done;O=R.next())D.push.apply(D,_.Td(Gx5(O.value,y)))}}return D.filter(function(w){return w.usePatchedLifecycles&&w.lifecycleIsConnected===y})};
EHt=function(I){var y=null;I instanceof Element?y=Element.prototype.querySelectorAll:I instanceof DocumentFragment&&(y=DocumentFragment.prototype.querySelectorAll);return y?Array.from(y.call(I,"*")):[]};
uV=function(I){_.iS(function(){for(var y=_.J(Gx5(I,!1)),D=y.next();!D.done;D=y.next()){D=D.value;D.lifecycleIsConnected=!0;try{var F=void 0,R=void 0,O=void 0,w=void 0;(F=(w=D.polymerController)!=null?w:D)==null||(O=(R=F).connectedCallback)==null||O.call(R)}catch(v){_.vu(v)}}})};
q4=function(I){_.iS(function(){for(var y=_.J(Gx5(I,!0)),D=y.next();!D.done;D=y.next()){D=D.value;D.lifecycleIsConnected=!1;try{var F=void 0,R=void 0,O=void 0,w=void 0;(F=(w=D.polymerController)!=null?w:D)==null||(O=(R=F).disconnectedCallback)==null||O.call(R)}catch(v){_.vu(v)}}})};
mdq=function(){if(!XNL){XNL=!0;var I=[Node];Ev&&I.push(Ev.Wrapper);var y=Node.prototype.insertBefore,D=Node.prototype.removeChild;I=_.J(I);for(var F=I.next(),R={};!F.done;R={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},F=I.next())F=F.value,R.nativeInsertBefore=F.prototype.insertBefore,F.prototype.insertBefore=function(w){return function(v,P){if(v instanceof DocumentFragment){var K=Array.from(v.children);v=w.nativeInsertBefore.call(this,v,P);
if(this.isConnected&&w.nativeInsertBefore===y)for(P=_.J(K),K=P.next();!K.done;K=P.next())uV(K.value);return v}K=v instanceof Element&&v.isConnected;P=w.nativeInsertBefore.call(this,v,P);K&&q4(v);this.isConnected&&uV(v);return P}}(R),R.nativeAppendChild=F.prototype.appendChild,F.prototype.appendChild=function(w){return function(v){if(v instanceof DocumentFragment){var P=Array.from(v.children);
v=w.nativeAppendChild.call(this,v);if(this.isConnected){P=_.J(P);for(var K=P.next();!K.done;K=P.next())uV(K.value)}return v}P=v instanceof Element&&v.isConnected;K=w.nativeAppendChild.call(this,v);P&&q4(v);this.isConnected&&uV(v);return K}}(R),R.nativeRemoveChild=F.prototype.removeChild,F.prototype.removeChild=function(w){return function(v){var P=v instanceof Element&&v.isConnected,K=w.nativeRemoveChild.call(this,v);
P&&D===w.nativeRemoveChild&&q4(v);return K}}(R),R.nativeReplaceChild=F.prototype.replaceChild,F.prototype.replaceChild=function(w){return function(v,P){if(v instanceof DocumentFragment){var K=Array.from(v.children);
v=w.nativeReplaceChild.call(this,v,P);if(this.isConnected)for(q4(P),P=_.J(K),K=P.next();!K.done;K=P.next())uV(K.value);return v}K=v instanceof Element&&v.isConnected;var r=this.isConnected,N=w.nativeReplaceChild.call(this,v,P);r&&q4(P);K&&q4(v);r&&uV(v);return N}}(R);
I=[Element];Ev&&I.push(Ev.Wrapper);I=_.J(I);F=I.next();for(R={};!F.done;R={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},F=I.next())F=F.value,F.prototype.before=QW4(F.prototype.before),F.prototype.after=QW4(F.prototype.after),R.nativeReplaceWith=F.prototype.replaceWith,F.prototype.replaceWith=function(w){return function(){var v=_.go.apply(0,arguments),P=_.J(YFW(v)),K=P.next().value,
r=P.next().value;P=this.isConnected;w.nativeReplaceWith.apply(this,v);v=_.J(r);for(r=v.next();!r.done;r=v.next())q4(r.value);if(P)for(q4(this),K=_.J(K),P=K.next();!P.done;P=K.next())P=P.value,P instanceof Element&&uV(P)}}(R),R.nativeRemove=F.prototype.remove,F.prototype.remove=function(w){return function(){var v=this.isConnected;
w.nativeRemove.call(this);v&&q4(this)}}(R),R.nativeInsertAdjacentElement=F.prototype.insertAdjacentElement,F.prototype.insertAdjacentElement=function(w){return function(v,P){var K=P.isConnected;
v=w.nativeInsertAdjacentElement.call(this,v,P);K&&q4(P);v.isConnected&&uV(v);return v}}(R),R.nativeSetAttribute=F.prototype.setAttribute,F.prototype.setAttribute=function(w){return function(v,P){var K=fc5(this);
if(!K.usePatchedLifecycles)return w.nativeSetAttribute.call(this,v,P);var r=this.getAttribute(v);w.nativeSetAttribute.call(this,v,P);P=this.getAttribute(v);nH_(K,v,r,P)}}(R),R.nativeRemoveAttribute=F.prototype.removeAttribute,F.prototype.removeAttribute=function(w){return function(v){var P=fc5(this);
if(!P.usePatchedLifecycles)return w.nativeRemoveAttribute.call(this,v);var K=this.getAttribute(v);w.nativeRemoveAttribute.call(this,v);K!==null&&nH_(P,v,K,null)}}(R),R.nativeToggleAttribute=F.prototype.toggleAttribute,F.prototype.toggleAttribute=function(w){return function(v,P){var K=fc5(this);
if(!this.usePatchedLifecycles)return w.nativeToggleAttribute.call(this,v,P);var r=this.getAttribute(v),N=r!==null;P=w.nativeToggleAttribute.call(this,v,P);P!==N&&nH_(K,v,r,P?"":null);return P}}(R);
I=[Document,DocumentFragment,Element,ShadowRoot];Ev&&I.push(Ev.Wrapper);I=_.J(I);for(R=I.next();!R.done;R=I.next())R=R.value,R.prototype.prepend=QW4(R.prototype.prepend),R.prototype.append=QW4(R.prototype.append);(Ev==null?void 0:Ev.noPatch)===!0&&pN5();document.readyState==="complete"?uV(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&uV(document.body)});
var O=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");O&&O.get&&O.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:O.enumerable,configurable:!0,get:O.get,set:function(w){w||q4(this);O.set.call(this,w);return w}})}};
QW4=function(I){return function(){var y=_.go.apply(0,arguments),D=_.J(YFW(y)),F=D.next().value;D=D.next().value;I.apply(this,y);y=_.J(D);for(D=y.next();!D.done;D=y.next())q4(D.value);if(this.isConnected)for(F=_.J(F),y=F.next();!y.done;y=F.next())y=y.value,y instanceof Element&&uV(y)}};
pN5=function(){for(var I=_.J(M8q),y=I.next();!y.done;y=I.next()){y=y.value.prototype;for(var D=_.J(zIS),F=D.next();!F.done;F=D.next()){F=F.value;var R=Object.getOwnPropertyDescriptor(y,F);R&&Object.defineProperty(y,"__shady_native_"+F,R)}}};
nH_=function(I,y,D,F){var R,O;if((R=I.polymerController)==null?0:(O=R.observedAttributes)==null?0:O.includes(y))if(I=I.polymerController,I.attributeChangedCallbackWrapper)I.attributeChangedCallbackWrapper.call(I,y,D,F);else{var w;(w=I.attributeChangedCallback)==null||w.call(I,y,D,F)}};
YFW=function(I){var y=[],D=[];I=_.J(I);for(var F=I.next();!F.done;F=I.next())F=F.value,F instanceof Element&&F.isConnected&&D.push(F),F instanceof DocumentFragment?y.push.apply(y,_.Td(Array.from(F.children))):y.push(F);return[y,D]};
fc5=function(I){return!(I instanceof Element)&&I.node instanceof Element?I.node:I};
kxt=function(I,y){var D=y?["children"].concat(_.Td(y)):["children"];y=[];D=_.J(D);for(var F=D.next();!F.done;F=D.next()){var R=F.value;if(I.hasOwnProperty(R)){F=I[R];F=typeof F==="function"?F():F;F=Array.isArray(F)?F:[F];F=$4(F).flat();if(R!=="children"){R=yze(R);for(var O=_.J(F),w=O.next();!w.done;w=O.next())w=w.value,w instanceof Element&&w.setAttribute("slot",R)}y.push(F)}}y.length===0?I=[]:(I=$4(_.t("div",null,y)),I=Array.from(I.childNodes));return I};
aco=function(I,y,D){var F={};_.JI(function(){var R={},O;for(O in y)if(y.hasOwnProperty(O)){var w=void 0,v=void 0;if(!(((w=D.slotProps)==null?0:w.includes(O))||O==="children"||((v=D.callbackProps)==null?0:v.includes(O))||O==="ref")&&(w=_.Ki(y[O]),F[O]!==w)){F[O]=w;v=void 0;var P=(v=I.hostElement)!=null?v:I;!D.skipHostForwardedProps&&ddJ.has(O)&&(P[O]=w);R[O]=w}}V2(function(){if(I.setProperties)I.setProperties(R);else for(var K=_.J(Object.entries(R)),r=K.next();!r.done;r=K.next()){var N=_.J(r.value);
r=N.next().value;N=N.next().value;I[r]=N}})},"n")};
Wot=function(I,y,D,F){var R=kxt(D,F.slotProps),O=(0,_.ng)(I);R=_.J(R);for(var w=R.next();!w.done;w=R.next())O.appendChild(w.value);aco(y,D,F);F=_.J(F.callbackProps||[]);R=F.next();for(O={};!R.done;O={kebabEventName:void 0,eventListener:void 0},R=F.next())w=R=R.value,String(R).substring(0,2)==="on"&&D[w]?(O.kebabEventName=yze(String(R).substring(2)),O.eventListener=D[w],I.addEventListener(O.kebabEventName,O.eventListener),_.tI(function(r){return function(){I.removeEventListener(r.kebabEventName,r.eventListener)}}(O))):
y[w]=D[w];
if(D.ref){D=_.J(coH(D.ref));var v=D.next().value,P=D.next().value,K=y.attached.bind(y);y.attached=function(){v(I);K()};
_.tI(function(){P()})}};
coH=function(I){if(typeof I==="function"){var y;return[function(D){y=I(D)},
function(){var D;(D=y)==null||D()}]}if(!I.onRender||!I.onUnmount)throw Error("Tg");
return[I.onRender,I.onUnmount]};
CBJ=function(I,y){y=y===void 0?{}:y;var D=function(F){var R=document.createElement(I),O;var w=(O=R.polymerController)!=null?O:R;Wot(R,w,F,y);return R};
D.debugName=I;return D};
$dA=function(I,y,D,F,R){F=F===void 0?{}:F;var O=BfA,w=!1;O?(w=!0,BfA=void 0):(iXJ=y,O=document.createElement(y),iXJ=void 0);var v=O;v.usePatchedLifecycles=!0;v.lifecycleIsConnected=!1;O.loggingStatus={};var P=Ao5(I,y,O,F,R);_.tI(function(){v.lifecycleIsConnected&&(v.lifecycleIsConnected=!1,P.disconnectedCallback())});
w||(O.__noInsertionPoint=!0,Wot(O,P,D,F));return O};
Ao5=function(I,y,D,F,R){R=R===void 0?roq:R;bX5[y]!=null||(bX5[y]=R(I,y,F==null?void 0:F.getTemplate,F));var O=bX5[y],w=O.ctor;R=O.getInitialMethods;var v=O.getPropsToForwardBeforeReady;I=O.getPropsToForwardBeforeRegister;F=O.shouldForwardProp;var P=O.observedAttributes,K=O.shouldLog,r=w(D,{beforeReady:function(){var N=r;N._takeAttributes?N._takeAttributes():N.setPropertiesFromInitialAttributeValues&&N.setPropertiesFromInitialAttributeValues();N=_.J(v(D.polymerController));for(var h=N.next();!h.done;h=
N.next()){var x=_.J(h.value);h=x.next().value;x=x.next().value;NfL(D,h,x);K(y)&&!hC(h)&&lcq(D.polymerController,h)}D.polymerController=WBB(r,y)}});
D.polymerController=r;D.polymerController.observedAttributes=P;O=_.J(r.getExtraMethodsToForward());for(w=O.next();!w.done;w=O.next())P=_.J(w.value),w=P.next().value,P=P.next().value,hI_(D,w,P);R=_.J(R());for(O=R.next();!O.done;O=R.next())O=O.value,F(O)&&hI_(D,O),K(y)&&!hC(O)&&xdt(r,O);I=_.J(I());for(F=I.next();!F.done;F=I.next())R=_.J(F.value),F=R.next().value,R=R.next().value,NfL(D,F,R);return r};
HXA=function(I){var y=Gv;Gv=I;return y};
sWe=function(I){if(eI5.has(I)&&Gv&&Tfo(Gv)===I){var y;(y=Gv)._numRenders!=null||(y._numRenders=0);Gv._numRenders++;if(Gv._numRenders>1)throw Error("Ug");return Gv}};
ZXt=function(I){var y=Tfo(I);Gv!==I&&y.includes("-")&&V8J.set(I,!0)};
Tfo=function(I){var y;return(y=I==null?void 0:I.tagName.toLowerCase())!=null?y:""};
gH5=function(I,y){if(I.componentType===gR)throw Error("Vg");eI5.add(y);var D=function(){var F=HTMLElement.call(this)||this;F.is=y;if(iXJ===y)return F.isInert=!0,F;F.createElement();return F};
_.E(D,HTMLElement);D.prototype.createElement=function(){if(!this.isInert){BfA=this;var F=_.J(EIq(function(){return _.t(I,null)})).next().value;
BfA=void 0;CAe(this);return F}};
customElements.define(y,D)};
yD5=function(I,y,D,F,R){I.prototype.is=y;(F==null?0:F.useSink)?Ib5(I,y,D,F,R):(D=roq(I,y,D,F),uxo(D,y));return I};
Ib5=function(I,y,D,F,R){mdq();var O=_.d(function(w){return $dA(I,y,w,Object.assign({},F,{getTemplate:D}),R)},"o");
O.debugName=y;gH5(O,y);return O};
Fu4=function(I){return!DNC.has(I)};
LuC=function(I,y,D,F){function R(){if(!N){for(var h=new Set(R7W),x=_.J(O.behaviors),q=x.next();!q.done;q=x.next()){q=q.value;for(var X=_.J(Object.getOwnPropertyNames(q)),f=X.next();!f.done;f=X.next()){f=f.value;var m=void 0,z=(m=Object.getOwnPropertyDescriptor(q,f))==null?void 0:m.value;z&&z instanceof Function&&(!K[f]||_.l("polymer_forward_method_killswitch"))&&h.add(f)}}x=_.J(Object.entries(Object.getOwnPropertyDescriptors(I.prototype)));for(q=x.next();!q.done;q=x.next())X=_.J(q.value),q=X.next().value,
X=X.next().value,X.value instanceof Function&&h.add(q);N=h}return N}
var O=CN_({is:y,disableElementRegistration:!1,getTemplate:D,providers:F==null?void 0:F.providers,reactivityMode:F==null?void 0:F.reactivityMode},I);if((F==null?0:F.allowedProps)||(F==null?0:F.allowedPropsFromBehaviors)){var w,v;O.allowedProps=[].concat(_.Td((w=F.allowedProps)!=null?w:[]),_.Td((v=F.allowedPropsFromBehaviors)!=null?v:[]))}var P=Mco(O,I);y=P.observedAttributes;var K={};D=_.J(O.reactiveSchemas);for(F=D.next();!F.done;F=D.next())if(F=F.value,F.type==="signal")K[F.propertyKey]={readOnly:F.readOnly},
F.readOnly&&(K[SVC(F.propertyKey)]={readOnly:!0});else if(F.type==="compute"||F.type==="computeWithMethod"||F.type==="redux")K[F.propertyKey]={readOnly:!0};var r=O.reactiveSchemas.length,N;return{ctor:function(h,x){h=new P(h);h.beforeReady=x.beforeReady;return h},
props:K,observedAttributes:y,getInitialMethods:R,getPropsToForwardBeforeRegister:function(){for(var h=[],x=new Set,q=_.J(OL5),X=q.next();!X.done;X=q.next())X=X.value,h.push([X,X!=="observers"&&X!=="properties"]),x.add(X);q=_.J(Object.keys(K));for(X=q.next();!X.done;X=q.next())X=X.value,h.push([X,K[X].readOnly]),x.add(X);q=R();X=_.J(Object.keys(Object.getOwnPropertyDescriptors(I.prototype)));for(var f=X.next();!f.done;f=X.next())f=f.value,!Fu4(f)||q.has(f)||x.has(f)||(h.push([f,!1]),x.add(f));h.push(["allowedProps",
!0]);return h},
getPropsToForwardBeforeReady:function(h){var x=[];h=_.J(Object.keys(h));for(var q=h.next();!q.done;q=h.next()){q=q.value;var X=R();Fu4(q)&&!X.has(q)&&x.push([q,!1])}h=_.J(O.reactiveSchemas.slice(r));for(q=h.next();!q.done;q=h.next())q=q.value,q.type!=="compute"&&q.type!=="computeWithMethod"&&q.type!=="redux"&&q.type!=="signal"||x.push([q.propertyKey,q.type==="signal"?q.readOnly:!0]);return x},
shouldForwardProp:Fu4,shouldLog:iI}};
_.a=function(I,y,D,F){var R,O,w=(O=(R=F)==null?void 0:R.mode)!=null?O:0;F!=null||(F={});var v;(v=F).reactivityMode!=null||(v.reactivityMode=0);w===1&&_.a8("creator_poly_si_disable_list").includes(y)&&(w=2);return w===1?yD5(I,y,D,Object.assign({},F,{useSink:!0}),LuC):yD5(I,y,D,Object.assign({},F,{useSink:w===2}))};
_.Xf=function(){return function(I,y,D,F){var R,O,w=(O=(R=F)==null?void 0:R.mode)!=null?O:2;F!=null||(F={});var v;(v=F).reactivityMode!=null||(v.reactivityMode=0);if(w===0)throw Error("Wg`"+w);return Ib5(I,y,D,F,w===1?LuC:void 0)}};
_.Qd=function(I){return _.l("creator_poly_si_killswitch")?!1:_.l("force_all_poly_si_batches")&&(I==="poly_si_all_on_test_check"?0:I)||document.documentElement.hasAttribute("use-signals")?!0:!I||_.l(I+"_holdback_enabled")&&_.l("kevlar_polysi_holdback")?!1:_.l(I)};
YE=function(I){return I?I.icon?I.icon.iconType.toLowerCase():I.customThumbnail?"member":"":""};
JDW=function(I){if(!I)return"";I=_.J(I);for(var y=I.next();!y.done;y=I.next())if((y=y.value)&&y.liveChatAuthorBadgeRenderer&&(y=YE(y.liveChatAuthorBadgeRenderer))&&y!=="verified")return y;return""};
wT_=function(I,y){if(!I)return null;var D;return((D=I.find(function(F){return F&&F.liveChatAuthorBadgeRenderer?YE(F.liveChatAuthorBadgeRenderer)===y:!1}))==null?void 0:D.liveChatAuthorBadgeRenderer)||null};
_.UNt=function(I){var y=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;I=vhe(I);y=vhe(y);var D=SrJ(I.hex);y=SrJ(y.hex);var F=y[0]/255;var R=y[1]/255,O=y[2]/255,w=Math.max(F,R,O),v=Math.min(F,R,O),P=0,K=0,r=.5*(w+v);w!=v&&(w==F?P=60*(R-O)/(w-v):w==R?P=60*(O-F)/(w-v)+120:w==O&&(P=60*(F-R)/(w-v)+240),K=0<r&&r<=.5?(w-v)/(2*r):(w-v)/(2-2*r));F=[Math.round(P+360)%360,K,r];D=tSA(D,y);for(I=PhB(I.hex);D<4.5;){I=F[2]>=.5?I.darker((4.5-D)/2):I.brighter((4.5-D)/2);D=I.toString();
R=KuB(D);if(!R.length)throw Error("Yd`"+D);D=R;D=tSA(D,y)}return I.hex()};
tSA=function(I,y){I=_.BOq(I);y=_.BOq(y);return(Math.max(I,y)+.05)/(Math.min(I,y)+.05)};
_.fQ=function(I){return"#"+("000000"+(I&16777215).toString(16)).slice(-6)};
_.rDH=function(I){for(var y=0,D=0;D<I.length;D++)y=I.charCodeAt(D)+((y<<5)-y);I="#";for(D=0;D<3;D++)I+=("00"+(y>>D*8&255).toString(16)).slice(-2);return I};
jye=function(I){I=(I||"").split(":");I.length===1&&I.unshift("yt-icons");I[1]=I[1].toLowerCase();return I};
u2H=function(I,y){var D=(y=y===void 0?!1:y)?ohe:NS4,F=y?h7A:xN5;I.getIconNames().forEach(function(R){R=y?R:R.substring(R.indexOf(":")+1);I.name==="yt-icons"?lbJ.add(R):R.includes("-filled")?D.add(R):F.add(R)})};
nQ=function(I,y,D,F){D=D===void 0?!1:D;F=F===void 0?!1:F;var R,O,w;return _.S(function(v){if(v.nextAddress==1)return v.yield(qrq,2);if(F)return v.return(lbJ.has(I));R=D?ohe:NS4;O=D?h7A:xN5;return y?(w=I.includes("-filled")?I:I.concat("-filled"),v.return(R.has(w))):v.return(O.has(I))})};
_.pQ=function(I){if(Eh4(I))return I.toString();var y=Gco.get(I);if(y)return y;y=I.toLowerCase();var D="yt-icons",F=y.replace(/_/g,"-");switch(I){case "MY_CHANNEL":y="account_circle";break;case "ADD_TO_LIBRARY":y="add";break;case "ALERT_WARN_RED":y="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":y="person_music";break;case "BLOCK_USER":y="block";break;case "CAPTIONS":y="closed_caption";break;case "CLOSED_CAPTION":D="av";y="closed-caption";break;case "COLLECTION":D="maps";y="layers";break;case "CONTACT":D=
"icons";y="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="yt-studio-system-icons";y=F.split("creator-studio-")[1];break;case "DISMISSAL":y="close";break;case "DO_NOT_DISTURB":y="block";break;case "DOGFOOD":D="icons";y="pets";break;case "DRAFT":y="paper_corner_folded";
break;case "EMPTY_LIKE":y="like_outline";break;case "EXIT_APP":y="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":y=F;break;case "GAMES":D="ytg";y="my-games";break;case "GO_TO_PAGE":y="arrow-forward";break;case "GROUP":D="social";break;case "HIDE":y="not_interested";break;case "INPUT_COMPONENT":D="icons";y="settings-input-component";break;case "KIDS_BLOCK":y="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":D="ytg";y="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":D=
"ytg";y="membership-post-purchase";break;case "MULTIVIEW":y="screen_multi_view";break;case "MY_LOCATION":D="maps";y=F;break;case "NOTIFICATIONS_INBOX":y="NOTIFICATIONS";break;case "NEXT":y="chevron_right";break;case "OFFLINE":y="power-settings-new";break;case "PAUSE":D="miniplayer";break;case "PAYMENT":D="icons";break;case "PHONE_DOWNLOAD":y="phone_download";break;case "PREMIUM_STANDALONE":D="yt-logos";y="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":D="yt-logos";y="premium_standalone_cairo";
break;case "QUESTION_ANSWER":y="question_answer";break;case "REDEEM":D="icons";y="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":y="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":y="library_add";break;case "SCHOOL":D="yt-sys-icons";y="creator_academy";break;case "SETTINGS_LIGHT":y="settings_applications";break;case "SETTINGS_MATERIAL":y="settings";break;case "SEARCH_HISTORY":y="watch_history";break;case "SHOPPING_BAG":y="bag";break;case "SOCIAL":case "PEOPLE":D=
"yt-icons";y="people";break;case "STAFF_PICK":D="ytg";y="spotlight";break;case "START_DVR":y="add";break;case "STOP_DVR":D="av";y="stop";break;case "TAB_LIKED":y="like";break;case "TAB_INBOX":y="mail";break;case "TERMS_OF_SERVICE":D="icons";y="description";break;case "TRENDING":y="fire";break;case "UNBLOCK_USER":y="remove";break;case "UNPLUGGED_DARK_THEME":D="image";y="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":y="live";break;case "UNPLUGGED_SPORTS":D="ytu";y="visibility-off";break;
case "VIDEOS":D="av";y="play-circle-filled";break;case "YOUTUBE":D="yt-logos";y="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":D="yt-logos-ext";y="yt-logo-red-updated";break;case "YOUTUBE_LOGO":D="yt-logos-ext";y="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";y=F;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":D="yt-sys-icons";y="youtube_improve_tv";break;case "OUTLINE_BAG":D=
"yt-sys-icons";y="bag";break;case "QUEUE_PLAY_LAST":D="yt-sys-icons";y="list_queue_last";break;case "SLASH_CIRCLE_LEFT":y="slash_circle_left";break;case "SPEED_1_POINT_2X":y="1_point_2x";break;case "SPEED_1_POINT_5X":y="1_point_5x";break;case "SPEED_1_POINT_8X":y="1_point_8x";break;case "SPEED_POINT_2X":y="point_2x";break;case "SPEED_POINT_5X":y="point_5x";break;case "SPEED_POINT_8X":y="point_8x";break;case "SPEED_1X":y="1x";break;case "SPEED_2X":y="2x";break;case "TAB_BOOKMARK":y="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":D="yt-sys-icons";y="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":D="yt-sys-icons";y="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":D="yt-sys-icons",y="tic_tac_toe"}y=D+":"+y;Gco.set(I,y);return y};
Eh4=function(I){var y;_.l("kevlar_use_wil_icons")?y=!!_.nR().resolve(_.mZ).resolveIcon({iconName:I.toString()}):y=!1;return y};
_.zv=function(I,y,D,F){D=D===void 0?{}:D;F=F===void 0?!1:F;D===null&&(D={});var R=_.a8("kevlar_command_handler_command_banlist");R=_.J(R);for(var O=R.next();!O.done;O=R.next())if(O=I?I.hasOwnProperty(O.value):void 0,O)return!1;R=_.u(I.commandMetadata,_.nE);return F&&R!=null&&R.url?!1:!y.disableCommandHandlerOverride&&_.M4.instance?(F=_.M4.instance,D.form||(D.form={element:y}),D.form.element||(D.form.element=y),!D.clickedVisualElement&&y.visualElement&&(D.clickedVisualElement=y.visualElement),F.resolveCommand(I,
D),!0):!1};
XTA=function(I,y){I=kE(I);for(var D=_.J(I.visibilityMonitorKeys||[]),F=D.next();!F.done;F=D.next())y.unobserveByKey(F.value);I.visibilityMonitorKeys=void 0};
dy=function(I,y){if(_.VO()){if(_.l("kevlar_vimio_use_shared_monitor"))QyW(I,y.data);else if(!QyW(I,y.data))return;var D=y.data,F=Yrq(D);if(_.l("enable_client_ve_spec_logging"))XTA(I,y.observer);else{var R=kE(I);R.trackedParams&&R.trackedParams!==F&&XTA(I,y.observer)}R=kE(I);!D||R.data&&R.data===D||(R.data=D);fbq(I,y);R.trackedParams=F}};
fbq=function(I,y){var D=y.observer;if(!D&&_.l("web_skip_missing_vimio_observer")){var F,R;_.tq(new _.g6("VisibilityObserver is not defined.",I.tagName,I.trackedParams,(F=y.data)==null?void 0:F.trackingParams,(R=y.data)==null?void 0:R.loggingDirectives))}else{var O=y.layer,w=y.visibilityCallback||function(){},v=y.prescanCallback,P=kE(I);
F=[];y.showOption&&F.push(D.observe(I,function(){y.skipLogging&&y.skipLogging()||_.a6().reportShown(P,void 0,O,7);w(!0)},y.showOption));
y.hideOption&&F.push(D.observe(I,function(){_.a6().reportHidden(P,void 0,O,7);w(!1)},y.hideOption));
y.prescanOption&&v&&F.push(D.observe(I,function(){v()},y.prescanOption));
P.visibilityMonitorKeys=F}};
QyW=function(I,y){I=kE(I);if(I.visualElement&&!y)return!0;if(!y)return!1;var D=!1;if(_.l("enable_client_ve_spec_logging")){var F,R;D=!!((F=y.loggingDirectives)==null?0:(R=F.clientVeSpec)==null?0:R.uiType)}F=Yrq(y);if(!F&&!D)return!1;_.l("mweb_component_visibility_logging")&&(I.veContainer||(I.veContainer={}),I.veContainer.trackingParams=F);if(I.trackedParams&&I.trackedParams===F)return!1;var O;if(_.l("enable_client_ve_spec_logging")&&((O=I.visualElement)==null?0:O.isClientVe())){var w;O=(w=I.visualElement)==
null?void 0:w.getAsJspb();var v,P,K,r;if(_.lD(O,2)===((v=y.loggingDirectives)==null?void 0:(P=v.clientVeSpec)==null?void 0:P.uiType)&&_.lD(O,3,-1)===((K=y.loggingDirectives)==null?void 0:(r=K.clientVeSpec)==null?void 0:r.elementIndex))return!1}if(_.l("enable_client_ve_spec_logging")){var N,h;!I.visualElement&&((N=y.loggingDirectives)==null?0:(h=N.clientVeSpec)==null?0:h.uiType)&&(v=y.loggingDirectives.clientVeSpec,y=v.uiType,w=v.elementIndex,v=v.clientYoutubeData,I.visualElement=_.c4(_.W4(),{veType:y,
elementIndex:w,clientYouTubeData:v}))}return!0};
Yrq=function(I){if(I==null?0:I.rendererContext){var y=_.u(I.rendererContext,_.CQ);if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams}return(I==null?0:I.loggingDirectives)?I.loggingDirectives.trackingParams:I==null?void 0:I.trackingParams};
kE=function(I){var y;return(y=I.polymerController)!=null?y:I};
MS4=function(I){_.a6();if(_.r6(B4().JSC$13003_elementShouldLogGesture).bind(B4())(I,4)){nhW(I);var y=pTt(I);mNq.set(I,y)}};
nhW=function(I){mNq.has(I)&&(mNq.get(I).cancel("untrack hover element"),mNq.delete(I))};
pTt=function(I){var y,D=[],F=!1,R=new _.AO(function(O,w){Ib(I,"mouseenter",_.r6(function(){var v,P,K;return _.S(function(r){if(r.nextAddress==1)return y=(0,_.m_)(),v=z7W(I),D.push(v),P=kct(I,function(){F=!0;w(Error("Xg"))}),r.yield(v,2);
if(r.nextAddress!=3)return P&&iV(P),K=dNt(I),D.push(K),r.yield(K,3);O();_.Cj(r)})}))});
R.then(function(){var O=(0,_.m_)()-y;O=Math.round(O);if(!(500>O||6E5<=O)){var w=I.getScreenLayer?I.getScreenLayer():void 0;w=_.VO(w)||"";var v=abJ(_.a6(),I);_.t_(w,I.visualElement?I.visualElement:_.AC(v),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:O}})}MS4(I)},function(){$E&&($E(),$E=null);
F&&(nhW(I),MS4(I))});
return R};
z7W=function(I){var y;return(new _.AO(function(D,F){$E=function(){F(Error("Yg"))};
y=_.w2.debounce(_.r6(function(){iV(R);D()}),1,100);
var R=_.bV(I,"mousemove",y)})).thenCatch(function(){var D=_.w2.cancelDebouncedJobMap.get(y);
D&&_.w2.cancelJob(D)})};
dNt=function(I){var y;return(new _.AO(function(D,F){$E=function(){F(Error("Zg"))};
y=Ib(I,"mouseleave",_.r6(function(){D()}))})).thenCatch(function(){iV(y)})};
kct=function(I,y){return Ib(I,"mouseleave",_.r6(y))};
WuH=function(I){cDq&&_.H4.cancel(cDq);cDq=_.H4.run(function(){_.lj(I,"yt-visibility-refresh");cDq=0})};
ChC=function(I){I=Number(I);return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
iL_=function(I){if(!I)return!1;if(_.u(I,_.BSC))return!0;var y;if(I=(y=_.u(I,_.Q_))==null?void 0:y.commands)for(y=_.J(I),I=y.next();!I.done;I=y.next())if(_.u(I.value,_.BSC))return!0;return!1};
ADo=function(I){var y=!0;y=y===void 0?!0:y;if(!I.useSignals&&!I.experimentalPropertiesChanged||_.l("experimental_templating_behavior_nopatch_killswitch")){var D=I._propertiesChanged;I._propertiesChanged=function(F,R,O){y?I.debounceRender():I.doRender();D&&D.call(I,F,R,O)}}};
$NB=function(I,y){if(I.useSignals||I.experimentalPropertiesChanged)if(_.l("experimental_templating_behavior_nopatch_killswitch"))I.experimentalPropertiesChanged=function(){};
else return;var D=new Set,F=[I].concat(_.Td(I.behaviors));F=_.J(F);for(var R=F.next();!R.done;R=F.next()){R=R.value;for(var O in R.properties)D.has(O)||(I._addPropertyEffect(O,"function",y),D.add(O))}};
bLJ=function(){var I=Polymer.Element,y=I._prepareTemplate;I._prepareTemplate=function(){y.call(this);var D=this.prototype;if(D.experimentalTemplatingInUse&&D.experimentalTemplatingInUse()&&D.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.vu(Error("$g"));else{D=this.template.content.childNodes;for(var F=D.length-1;F>=0;F--){var R=D[F];R.nodeName!=="STYLE"&&R.nodeName!=="LINK"&&R.nodeName!=="SCRIPT"&&R.nodeName!=="#comment"&&R.remove()}}}};
HLq=function(I){var y=!0;y=y===void 0?!0:y;bLJ();var D=I.ready;I.ready=function(){this._template=null;D.call(this)};
$NB(I,y?I.debounceRender:I.doRender)};
TSq=function(I,y,D){if(D===null||D===void 0)return D;var F=xQq(I.tagName.toLowerCase(),y,function(){throw Error("Ub");});
if(F===null)return D;F=e7e[F];var R;if((R=F.isUnwrappable)==null?0:R.call(F,D)){if(F.unwrap)return F.unwrap(D);throw Error("ch");}return F.filterString?F.filterString(I.tagName,y,String(D)):D};
syq=function(I,y,D){var F=y[y.length-1]!=="$";D=TSq(I,y,D);F?I[y]=D:(F=D==null?null:String(D),jj(I,y.slice(0,-1),F))};
Tv=function(I){_.l("mweb_after_render_to_scheduler")?_.w2.addJob(function(){try{I()}catch(y){_.eE(y)}},8):(VSt.length===0&&requestAnimationFrame(function(){setTimeout(function(){var y=VSt.slice();
VSt.length=0;y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;try{D()}catch(F){_.eE(F)}}})}),VSt.push(I))};
ZLq=function(I){if(I){var y=I.component;if(y){var D;y==null||(D=y.events)==null||D.publish("DISCONNECTED");var F;y==null||(F=y.onDisconnected)==null||F.call(y)}var R,O;(R=I.__spec)==null||(O=R.didUnmount)==null||O.call(R);for(y=0;y<I.childNodes.length;y++)ZLq(I.childNodes[y])}};
_.sv=function(I,y,D){D===void 0?delete I[y.name]:I[y.name]=D};
_.Vd=function(I){var y={androidIncludeFontPadding:!1},D=0,F=[],R=[],O=[];if(I.simpleText)return y.content=I.simpleText,y;if(I.runs===void 0)return y.content="",y;I=_.J(I.runs);for(var w=I.next();!w.done;w=I.next()){w=w.value;var v=w.text,P=void 0,K=(P=v)==null?void 0:P.length;if(v&&K){F.push(v);if(w.bold||w.italics||w.strikethrough||w.underline||w.textColor!=null&&w.textColor!==0||w.deemphasize){v=R;P=v.push;var r={startIndex:D,length:K};w.bold&&(r.weightLabel="FONT_WEIGHT_MEDIUM");w.italics&&(r.italic=
!0);w.strikethrough&&(r.strikethrough="LINE_STYLE_SINGLE");w.underline&&(r.underline="LINE_STYLE_SINGLE");w.textColor!=null&&w.textColor!==0?document.documentElement.hasAttribute("dark")?r.fontColor=w.darkModeTextColor||w.textColor:r.fontColor=w.textColor:w.deemphasize&&(document.documentElement.hasAttribute("dark")?r.fontColor=parseInt("ff"+ghH("#aaa").substring(1),16):r.fontColor=parseInt("ff"+ghH("#606060").substring(1),16));P.call(v,r)}w.navigationEndpoint&&(v=O,P=v.push,r={startIndex:D,length:K,
onTap:{innertubeCommand:w.navigationEndpoint}},w.loggingDirectives&&_.sv(r,ISA,w.loggingDirectives),P.call(v,r));D+=K}}y.content=F.join("");y.styleRuns=R.length?R:void 0;y.commandRuns=O.length?O:void 0;return y};
Dmo=function(I){if(I==null||!I.runs)return!0;I=_.J(I.runs);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.bracket||y.errorUnderline||y.deemphasize||_.u(y,Zd)||_.u(y,yX4))return!1;return!0};
FT5=function(I,y){return function(D){var F=y.unit;if(F!==D)throw Error("fh`"+I+"`"+F+"`"+D);return y}};
gy=function(I){if(!((I==null?0:I.value)&&(I==null?0:I.unit)))return"";switch(I.unit){case "DIMENSION_UNIT_FRACTION":var y="%";break;default:y="px"}I=I.value;y==="%"&&(I*=100);return""+I+y};
RTt=function(I){try{return I()}catch(y){_.tq(y)}};
_.yz=function(I){var y=_.u(I,_.Iu);if(y)return y;if((y=_.u(I,OO5))&&y.commands)return LTe(y.commands);if((y=_.u(I,JXJ))&&y.commands)return LTe(y.commands);if((I=_.u(I,wYH))&&I.identifier&&I.command&&(v5S||(v5S=[]),!v5S.includes(I.identifier)))return v5S.push(I.identifier),_.u(I.command,_.Iu)};
LTe=function(I){if(I.length!==0){var y=[];I=_.J(I);for(var D=I.next();!D.done;D=I.next())(D=_.yz(D.value))&&y.push(D);return{commandExecutorCommand:{commands:y}}}};
_.FH=function(I){var y=I.defaultTarget,D=I.elementConfig,F=I.elementsCommand,R=I.skipOnClick,O=I.forceNewState,w=I.additionalCommandArgs,v=I.innertubeCommand||_.yz(F);if(v){I={};var P=SpB(v);F=P.navigatingCommand;P=P.href;F&&P?(I.href$=P,tBq(I,F,P,y),_.l("web_atagconfig_pointerdown")&&Pe4(I,F),O&&(I["force-new-state$"]=!0)):(I.role$="button",I.href$="javascript:void(0);");_.u(v,KTS)&&(I["aria-haspopup$"]=!0);R||(I.onclick=function(K){var r={};if(Um_(K)){var N=(w==null?void 0:w.clickedVisualElement)||
(w==null?void 0:w.getClickedVisualElement)&&w.getClickedVisualElement();N&&(r={clickedVisualElement:N});r=Object.assign({},{form:{element:K.target,event:K,createScreenConfig:r}},w);K.preventDefault();_.Do(v,r)}});
return Object.assign({},D,I)}};
rXo=function(I){if(I.length){if(I.length===1)return I[0];var y={};_.sv(y,_.Q_,{commands:I});return y}};
Ru=function(I){return I&&I.href$!=="javascript:void(0);"};
SpB=function(I){var y,D=((y=_.u(I,_.Q_))==null?void 0:y.commands)||[I];I=_.J(D);for(y=I.next();!y.done;y=I.next()){y=y.value;var F=void 0,R=void 0;D=(R=_.u((F=y)==null?void 0:F.commandMetadata,_.nE))==null?void 0:R.url;_.l("web_remove_web_navigation_endpoint_data")||(F=void 0,D=D||((F=_.u(y,j$_))==null?void 0:F.url));if(D&&D!=="/service_ajax"){if(F=_.Tq(D,o5q))return I=_.H$(F),{navigatingCommand:y,href:I};_.tq(new _.g6("AttributedString URL could not be sanitized",D))}}return{}};
Um_=function(I){return I.button!==void 0?I.button===0&&!(I.shiftKey||I.altKey||I.metaKey||I.ctrlKey):!(I.shiftKey||I.altKey||I.metaKey||I.ctrlKey)};
tBq=function(I,y,D,F){D=!QV(D);var R,O,w;if((R=_.u(y,_.kc))!=null&&R.nofollow||(O=_.u(y,_.t9))!=null&&O.nofollow||(w=_.u(y,_.lK))!=null&&w.nofollow||D)I.rel$="nofollow";var v;y=((v=_.u(y,_.lK))==null?void 0:v.target)==="TARGET_NEW_WINDOW"?"_blank":F===void 0?"":F;I.target$=y};
Pe4=function(I,y){y.clickTrackingParams&&(I.params={itct:y.clickTrackingParams});I.onpointerdown=function(D){NdJ(D)};
I._data=y};
hTJ=function(I){(I.loggingUrls||[]).forEach(function(y){hO(y.baseUrl,y.attributionSrcMode)})};
NdJ=function(I){var y=I.currentTarget;I=RTt(function(){return y.href});
var D=y.params;I&&_.re(I,D||{},8,!0)};
_.OE=function(I,y){(I=_.yz(I))&&_.Do(I,y)};
_.Do=function(I,y){RVJ(function(D){y?D.resolveCommand(I,y):D.resolveCommand(I)})};
qpo=function(I,y){var D=["yt-core-attributed-string__link"];y!=null&&y.noLinkColor||((y==null?0:y.isOverlay)?D.push("yt-core-attributed-string__link--overlay-call-to-action-color"):D.push("yt-core-attributed-string__link--call-to-action-color"),(y==null?0:y.linkInheritColor)&&D.push("yt-core-attributed-string--link-inherit-color"));D={className:D.join(" "),tabindex$:"0"};var F=I.onTap||I.onLongPress;if(!F)return D;var R=xmA(I);R&&(D["aria-label$"]=R);y=_.FH({elementsCommand:F,elementConfig:D,skipOnClick:!(y==
null||!y.skipOnClick),forceNewState:!0});I.onLongPress&&(F=new lSL(function(){var O=_.yz(I.onLongPress);O&&_.nR().resolve(_.MC).resolveCommand(O)}),y&&uCJ(F,y));
return y||D};
xmA=function(I){var y,D;return(y=I.onTapOptions)==null?void 0:(D=y.accessibilityInfo)==null?void 0:D.accessibilityLabel};
E5W=function(I){var y=I;I<=16777215&&(y+=parseInt("ff000000",16));return _.Z7(y)};
GsW=function(I){var y=I.isDarkTheme;var D=I.extension;I=I.runColor;var F=void 0;if(D=D==null?void 0:D.colorMap){y=y?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D=_.J(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,y===R.key){F=R.value;break}}F==null&&I&&(F=I);if(F)return E5W(F)};
L4=function(I){var y=I.config;var D=I.image;var F=I.imageConfig;var R=I.imageWrapperConfig;var O=I.run;var w=I.tag;var v=I.textLength;var P=I.startIndex===void 0?0:I.startIndex;I=I.length;P===void 0&&(P=0);O={run:O,startIndex:P,endIndex:I!==void 0?P+I:v,tag:w};D&&(O.image=D);F&&(O.imageConfig=F);R&&(O.imageWrapperConfig=R);y&&(O.config=y);return O};
XYt=function(I,y){if(I.weight)return I.weight;switch(I.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 y?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Q$A=function(I){switch(I){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"}};
Ypq=function(I){switch(I){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"}};
vU=function(I,y,D){var F=y;I.content&&D&&(D=I.content.indexOf("\n"),D!==-1&&(F=Math.min(y,D)));if(!I.content||I.content.length<=F)y=I;else if(I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.paragraphStyleRuns){y=Jf(I.content,F);D=F;var R=I.attachmentRuns;if(R){var O=[];R=_.J(R);for(var w=R.next();!w.done;w=R.next())w=Object.assign({},w.value),w.startIndex===void 0||w.startIndex>=D||(w.length||(w.length=0),w.length+w.startIndex>D&&(w.length=D-w.startIndex),O.push(w));D=O}else D=void 0;
O=fSC(F,I.commandRuns);R=F;var v=I.decorationRuns;if(v){w=[];v=_.J(v);for(var P=v.next();!P.done;P=v.next()){P=P.value;var K=_.u(P.textDecorator,wV);if(K&&K.startIndex!==void 0&&!(K.startIndex>=R)){P=Object.assign({},P,{textDecorator:{highlightTextDecorator:Object.assign({},K)}});K=_.u(P.textDecorator,wV);if(!K.length||K.length+K.startIndex>R)K.length=R-K.startIndex;w.push(P)}}R=w}else R=void 0;w=fSC(F,I.styleRuns);if(v=I.paragraphStyleRuns)for(I=[],v=_.J(v),P=v.next();!P.done;P=v.next()){var r=P.value;
P=Object.assign({},r);if(!(P.startIndex===void 0||P.startIndex>=F)){if(!P.length||P.length+P.startIndex>F)P.length=F-P.startIndex;K=[];var N=void 0,h=void 0;if((N=r)==null?0:(h=N.listGroup)==null?0:h.listItems)for(r=_.J(r.listGroup.listItems),N=r.next();!N.done;N=r.next())if(N=Object.assign({},N.value),!(N.startIndex===void 0||N.startIndex>=F)){if(!N.length||N.length+N.startIndex>F)N.length=F-N.startIndex;K.push(N)}K.length>0&&(P.listGroup||(P.listGroup={}),P.listGroup=Object.assign({},P.listGroup,
{listItems:K}));I.push(P)}}else I=void 0;y={content:y,attachmentRuns:D,commandRuns:O,decorationRuns:R,styleRuns:w,paragraphStyleRuns:I}}else y=Object.assign({},I,{content:Jf(I.content,F)});return y};
fSC=function(I,y){if(y){var D=[];y=_.J(y);for(var F=y.next();!F.done;F=y.next())if(F=Object.assign({},F.value),!(F.startIndex===void 0||F.startIndex>=I)){if(!F.length||F.length+F.startIndex>I)F.length=I-F.startIndex;D.push(F)}return D}};
Jf=function(I,y){var D=y,F;if(F=D>0)F=I.charCodeAt(D-1),F=F>=55296&&F<=56319;F&&(D=I.charCodeAt(D),F=D>=56320&&D<=57343);F&&--y;return I.substring(0,y)};
_.Sp=function(I){return(I==null?void 0:I.content)!==void 0};
mmW=function(I){return function(y){var D=I.run;(D.onTap!==void 0||D.onLongPress!==void 0)&&_.u(D,ISA)&&dy(y,{data:{loggingDirectives:_.u(D,ISA)},observer:_.nR().resolve(nT),hideOption:n5B,showOption:pYH,layer:y.layer})}};
MBq=function(I){return function(y){for(var D in I)(Q9[D]||Q9[oU["default"]])(y,D,I[D])}};
zTB=function(I,y,D,F){for(var R=_.J(I.parts),O=R.next();!O.done;O=R.next()){O=O.value;if(typeof O==="string")throw Error("hh");if(O.start<=y&&D<=O.end){zTB(O,y,D,F);return}}I.parts.push({data:F,parts:[],start:y,end:D})};
ksS=function(I,y){for(var D=y.parts.length;D>=0;D--){var F=y.parts[D],R=y.parts[D-1],O=D===y.parts.length?y.end:F.start;R=D===0?y.start:R.end;O!==R&&y.parts.splice(D,0,I.slice(R,O));F&&ksS(I,F)}};
dmt=function(I){I.sort(function(y,D){if(y.startIndex<D.startIndex)return-1;if(D.startIndex<y.startIndex)return 1;y=y.endIndex-y.startIndex;D=D.endIndex-D.startIndex;return y>D?-1:D>y?1:0})};
_.aS4=function(I){var y=I.thumbnails;if(y){I={sources:[]};y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F={};F.url=D.url;F.width=D.width;F.height=D.height;I.sources.push(F)}return I}};
cXo=function(I,y,D,F){if(!y)return I.length>=1?I[I.length-1]:null;if(F)for(var R=_.J(I),O=R.next();!O.done;O=R.next()){O=O.value;var w=void 0,v=(w=O.url)==null?void 0:w.indexOf(F);if(v!==void 0&&v>=0)return O}F=_.J(I);for(R=F.next();!R.done;R=F.next())if(R=R.value,R.width&&R.height&&(D&&R.width>=y||!D&&R.height>=y))return R;for(y=I.length-1;y>=0;y--)if(D&&I[y].width||!D&&I[y].height)return I[y];return I[0]};
_.WTt=function(I){var y;return(I=(y=I.sources)==null?void 0:y[0])?I.width/I.height:0};
_.CeW=function(I){if(I.sources){I=_.J(I.sources);for(var y=I.next();!y.done;y=I.next()){y=y.value;var D=void 0;if((D=y.clientResource)==null?0:D.imageName)return y}}};
iOC=function(I){var y={};I=_.u(I.processor,Bd5);var D=(I=I==null?void 0:(D=I.imageTint)==null?void 0:D.color)?_.Z7(I):void 0;D&&(y.color=D);return y};
AX_=function(I){var y;if((y=I.clientResource)!=null&&y.imageColor)return _.Z7(I.clientResource.imageColor)};
_.bOo=function(I,y,D,F,R,O,w){if(!y||y.length===0||y[0].clientResource)return null;if(D&&y[0].url)return y[0].url;F===void 0&&(F=!0);if(F){var v;I=$mC*(R||(I==null?void 0:(v=I.getBoundingClientRect())==null?void 0:v.width)||0)}else{var P;I=$mC*(O||(I==null?void 0:(P=I.getBoundingClientRect())==null?void 0:P.height)||0)}y=cXo(y,I,F,w);return(y==null?0:y.url)?y.url:(y==null?0:y.imageData)?y.imageData:null};
HOq=function(I,y,D){D=D?[D]:[];I.opacity&&D.push("opacity: "+I.opacity+";");y&&I.placeholderColor?(I=_.Z7(I.placeholderColor),D.push("background-color: "+I+";")):D.push("background-color: transparent;");return D.join(" ")};
eTt=function(I,y,D,F,R){var O=["ytCoreImageHost"];y&&O.push(y);D||O.push("ytCoreImageFillParentHeight");F||O.push("ytCoreImageFillParentWidth");switch(I.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":O.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":O.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":O.push("ytCoreImageContentModeCenter");break;default:O.push("ytCoreImageContentModeScaleToFill")}I.flipForRtlLayout&&O.push("ytCoreImageFlipRtl");
switch(R){case "TOP_START":var w;O.push(((w=document.body)==null?void 0:w.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return O.join(" ")};
s$A=function(I){var y;if(I==null?0:(y=I.clientResource)==null?0:y.imageName){var D;I=(D=I.clientResource)==null?void 0:D.imageName;a:{switch(I){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||TdB.get(I)||I}};
g5t=function(I){return _.l("mweb_wiz_skip_render")?VBB(I):ZOC(I)};
VBB=function(I){return function(y){var D=HZt("wink-root");lF=N3.lastChild;eAH();lyA(D,_.t(I,y))}};
ZOC=function(I){var y=y===void 0?!1:y;return function(D){if(!y||!_.l("mweb_skip_keto_to_c3_if_no_data")||D.data!==void 0){var F=pi(!1);try{var R=D.children;_.l("mweb_render_outside_patch_killswitch")||N3?R?XS(_.t(I,D,R)):XS(_.t(I,D)):_.tq(new _.g6("ketoToC3 called outside of a patch",{tagName:I.TAG_NAME}))}finally{pi(F)}}}};
IE4=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Dut=function(I,y){I.onViewportEntered=y;y7L.observe(I)};
FmJ=function(){var I={rootMargin:"10%",threshold:.01};_.l("mweb_enable_set_io_root_to_null_safari")?I.root=null:_.l("mweb_enable_set_io_root_to_body_safari")&&(I.root=document.body);return new IntersectionObserver(function(y,D){y.filter(function(F){return F.intersectionRect.height>0}).forEach(function(F){F=F.target;
if(!_.l("mweb_enable_only_update_image_when_connected")||F.isConnected!==!1){var R;(R=F.onViewportEntered)==null||R.call(F);D.unobserve(F)}})},I)};
RF4=function(I,y,D,F,R){function O(){if(F){var v=F.loadedClass,P=F.notifyOnUnloaded;v&&_.tf(I,v);P&&I.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function w(){var v=D(y,I);v&&I.getAttribute("src")!==v&&(_.l("mweb_enable_only_update_image_when_connected")&&I.isConnected===!1||v===I.src||(I.src=v),O())}
R=R===void 0?!0:R;I.removeAttribute("src");O();y&&(R?Dut(I,w):w())};
O84=function(I,y,D){if(!y)return!1;y=D(y,I);D=I.getAttribute("src");return y&&y===D&&I.complete};
Lm4=function(I,y){for(var D in y)D==="className"?I.className=y[D]:(Q9[D]||Q9[oU.default])(I,D,y[D])};
wl4=function(I,y,D){D=D===void 0?!1:D;var F=I.sources!==void 0?I:_.aS4(I);if(F){var R=y.onload;y.onload=function(K){var r=K.target;D&&r.naturalWidth===120||_.PU(r,"ytCoreImageLoaded");y.notifyOnLoaded&&r.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));R==null||R(K)};
y.targetWidth&&y.preserveWidth&&(y.width=y.targetWidth);y.targetHeight&&y.preserveHeight&&(y.height=y.targetHeight);var O=_.CeW(F),w=O&&s$A(O),v=iOC(F);if(w)return(I=AX_(O)||v.color)&&(y.color=I),{type:"icon",iconName:w,config:Object.assign({},y,y.alt?{}:{"aria-hidden$":"true"},{"aria-label$":y.alt,role:"img"})};if(I.sources===void 0){y.alt=I.accessibility&&I.accessibility.accessibilityData&&I.accessibility.accessibilityData.label||y.alt;y.style$=HOq(I,y.shouldShowPlaceholder,y.style$);var P;y.isPreloaded=
!((P=_.u(I,J7S))==null||!P.isPreloaded)}y.contentMode&&!F.contentMode&&(F.contentMode=y.contentMode);y.className=eTt(F,y.className,y.preserveHeight,y.preserveWidth,y.objectPosition);y.loadedClass="ytCoreImageLoaded";return{type:"image",image:F,config:y}}};
_.K4=function(){var I=_.go.apply(0,arguments);return _.Fh(vvL,function(y){var D=I.map(function(F){return F==null?void 0:F(y)});
return function(){return void D.forEach(function(F){return void(F==null?void 0:F())})}})};
S8S=function(I,y){var D=y==null?void 0:y.initial;return _.su(function(){_.Ki(!0);return D=I(D)},{equals:y==null?void 0:y.isEqual},"rSlKsc")};
t6o=function(I,y){if(I===y)return!0;if(I===void 0||y===void 0)return!1;var D,F,R,O,w,v,P,K;return I.content===y.content&&((D=I.styleRuns)==null?void 0:D.length)===((F=y.styleRuns)==null?void 0:F.length)&&((R=I.commandRuns)==null?void 0:R.length)===((O=y.commandRuns)==null?void 0:O.length)&&((w=I.attachmentRuns)==null?void 0:w.length)===((v=y.attachmentRuns)==null?void 0:v.length)&&((P=I.decorationRuns)==null?void 0:P.length)===((K=y.decorationRuns)==null?void 0:K.length)};
KmC=function(I){return I.parts.map(P44)};
P44=function(I){if(typeof I==="string")return I;var y=I.data;I=y.image!==void 0&&y.imageConfig!==void 0?_.t("span",{el:_.K4(MBq(I.data.imageWrapperConfig))},_.t(_.UE,Object.assign({},{data:I.data.image},I.data.imageConfig))):_.t(I.data.tag,{el:_.K4(mmW(I.data),MBq(I.data.config))},I.parts.map(P44));return $4(I)};
Uut=function(I,y){return I===y?!0:I===void 0||y===void 0?!1:I.noStyleRuns===y.noStyleRuns&&I.noLinkColor===y.noLinkColor&&I.noEndpoints===y.noEndpoints&&I.headerRuns===y.headerRuns&&I.isOverlay===y.isOverlay&&I.linkInheritColor===y.linkInheritColor&&I.userInput===y.userInput&&I.isHeadline===y.isHeadline};
r7t=function(I){return function(){var y,D,F,R,O,w,v,P,K,r,N,h,x,q;return{ariaLabel:(y=I.ariaLabel)==null?void 0:y.call(I),className:(D=I.className)==null?void 0:D.call(I),ellipsisTruncate:(F=I.ellipsisTruncate)==null?void 0:F.call(I),isOverlay:(R=I.isOverlay)==null?void 0:R.call(I),linkInheritColor:(O=I.linkInheritColor)==null?void 0:O.call(I),noEndpoints:(w=I.noEndpoints)==null?void 0:w.call(I),noStyleRuns:(v=I.noStyleRuns)==null?void 0:v.call(I),noLinkColor:(P=I.noLinkColor)==null?void 0:P.call(I),
noPreWrap:(K=I.noPreWrap)==null?void 0:K.call(I),noWrap:(r=I.noWrap)==null?void 0:r.call(I),skipOnClick:(N=I.skipOnClick)==null?void 0:N.call(I),userInput:(h=I.userInput)==null?void 0:h.call(I),headerRuns:(x=I.headerRuns)==null?void 0:x.call(I),isHeadline:(q=I.isHeadline)==null?void 0:q.call(I)}}};
ov5=function(I,y){I=new jGH(I,y);_.vu(I);throw I;};
Nrt=function(I,y,D){var F=HXA(I);I._numRenders=0;try{var R=EIq(function(){return _.t(y,Object.assign({},D))})}catch(w){var O=function(v){v.args||(v.args=[]);
v.args.push("Error in web component wrapper");v.args.push(I.tagName.toLowerCase());return v};
_.Sb(w instanceof Error?O(w):new jGH("Wiz rendering error",I.tagName.toLowerCase()));throw w;}finally{HXA(F)}return R};
_.NK=function(I,y,D){function F(r){var N={};r=_.J(r);for(var h=r.next();!h.done;h=r.next()){h=h.value;var x=void 0,q=void 0,X=void 0,f=_.zG((X=(q=(x=h).getAttribute)==null?void 0:q.call(x,"slot"))!=null?X:"children");if(x=N[f])x.push(h);else if(f in O||f==="children")N[f]=[h]}r=_.J(Object.keys(N));f=r.next();for(h={};!f.done;h={content$jscomp$60:void 0},f=r.next())f=f.value,f!=="children"&&(h.content$jscomp$60=N[f],N[f]=function(m){return function(){return m.content$jscomp$60}}(h));
return N}
D=D===void 0?{}:D;I.debugName=y+" (CoW)";var R,O=(R=D.props)!=null?R:{};eI5.add(y);var w=hFB();R=function(){var r=w.apply(this,arguments)||this;r.rawProps={};r.queuingRender=!1;r.dispose=function(){};
r.isWebComponentWrapper=!0;r.isReparenting=!1;r.hasRendered=!1;return r};
_.E(R,w);R.prototype.render=function(){this.hasRendered=!0;for(var r=_.J([].concat(_.Td(this.attributes))),N=r.next();!N.done;N=r.next())N=N.value,N.name!=="slot"&&N.name!=="hidden"&&this.removeAttribute(N.name);r=Object.assign({},this.componentProps,this.slotProps);N=_.J(Nrt(this,I,r));r=N.next().value;N=N.next().value;!(r[0]instanceof Element)||r.length>1?ov5("Wrapped Wiz components must return a single root element.",y):(r=r[0].tagName.toLowerCase(),r!==y&&ov5("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(r+" !== '"+y),y),this.dispose=N)};
R.prototype.setUpProps=function(){for(var r=this.rawProps,N=this.attributes,h=_.J(Object.keys(O)),x=h.next();!x.done;x=h.next()){x=x.value;var q=void 0;((q=this)==null?0:q[x])&&this[x]!==xuS&&r[x]===void 0&&(r[x]=this[x],(q=Object.getOwnPropertyDescriptor(this.constructor.prototype,x))&&Object.defineProperty(this,x,q))}h=_.J(N);for(x=h.next();!x.done;x=h.next()){q=x.value;x=_.zG(q.name);var X=x==="class"&&!N.getNamedItem("class-name");if(x in O||X)q=q.value===""||q.value==="true"?!0:q.value==="false"?
!1:isNaN(Number(q.value))?q.value:Number(q.value),x!=="class"||r.className?r[x]=q:r.className=q}N={};for(var f in O)O[f]!==_.rV&&O[f]!==lEe&&(r[f]instanceof Function&&ov5("Function props must be configured as STATIC, not SIGNAL.",y),x=_.J(_.$M(r[f],void 0,"tbseob")),h=x.next().value,x=x.next().value,N[f]=x,r[f]=h);r=_.J([r,N]);this.componentProps=r.next().value;this.setters=r.next().value;this.slotProps=F(this.childNodes)};
R.prototype.connectedCallback=function(){V8J.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in O&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
R.prototype.disconnectedCallback=function(){if(!V8J.has(this)){var r;a:{if(_.jp)for(r=this;r;){if(_.ou.has(r)){r=!0;break a}r=r.parentElement}r=!1}if(r)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){r=_.J([].concat(_.Td(this.attributes)));for(var N=r.next();!N.done;N=r.next()){N=N.value;var h=void 0;N.name==="slot"||N.name==="hidden"&&((h=D.unsafeExternallySettableAttributes)==null?0:h.has("hidden"))||this.removeAttribute(N.name)}}this.innerText="";CAe(this)}}};
R.prototype._setPendingPropertyOrPath=function(){};
R.prototype.notifyPath=function(){};
_.mD.Object.defineProperties(R.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var v=_.J(Object.keys(O)),P=v.next(),K={};!P.done;K={prop$jscomp$109:void 0},P=v.next())K.prop$jscomp$109=P.value,P=void 0,((P=D.legacyPolymer)==null?0:P.forwardHostProps)&&ddJ.has(K.prop$jscomp$109)||Object.defineProperty(R.prototype,K.prop$jscomp$109,{set:function(r){return function(N){var h=this;V8J.has(this)||(this.setters?V2(function(){var x,q;return void((q=(x=h.setters)[r.prop$jscomp$109])==null?void 0:q.call(x,N))}):(this.rawProps[r.prop$jscomp$109]=N,this.queuingRender&&r.prop$jscomp$109===
"data"&&N!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(K),
get:u$q.has(K.prop$jscomp$109)?void 0:function(){return xuS}});
customElements.define(y,R)};
_.q8o=function(I,y){return(I=_.hf(I,y))?_.H$(_.VA(I)):null};
_.xY=function(I){if(I=_.hf(I,Number.MAX_VALUE,void 0,"width"))return _.VA(I)};
_.hf=function(I,y,D,F){F=F===void 0?"width":F;if(!I||!I.length)return null;if(_.l("kevlar_tuner_should_always_use_device_pixel_ratio")){var R=window.devicePixelRatio;_.l("kevlar_tuner_should_clamp_device_pixel_ratio")?R=Math.min(R,_.kf("kevlar_tuner_clamp_device_pixel_ratio")):_.l("kevlar_tuner_should_use_thumbnail_factor")&&(R=_.kf("kevlar_tuner_thumbnail_factor"));Evo=R}else Evo||(Evo=window.devicePixelRatio);R=Evo;_.l("kevlar_tuner_should_always_use_device_pixel_ratio")?y*=R:R>1&&(y*=R);if(_.l("kevlar_tuner_min_thumbnail_quality"))return I[0].url||
null;R=I.length;if(_.l("kevlar_tuner_max_thumbnail_quality"))return I[R-1].url||null;if(D)for(var O=0;O<R;O++)if(I[O].url.indexOf(D)>=0)return I[O].url||null;for(D=0;D<R;D++)if(I[D][F]>=y)return I[D].url||null;for(y=R-1;y>0;y--)if(I[y][F])return I[y].url||null;return I[0].url||null};
QGH=function(){lO.size?setTimeout(function(){uO(GfW)},0):Xlq=0};
GfW=function(){var I=(0,_.m_)(),y=null,D=!1;lO.forEach(function(R){R.loaded=!0;R.loadTime=I;R.pendingPaint=!1;var O=Y8A.get(R);O&&O.resolve(I);y=R;D||!R.ftlEligible&&R.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(D=!0)});
var F;((F=y)==null?0:F.markDirty)&&y.markDirty();lO.clear();Xlq=0;D&&fEJ(I)};
nvA=function(I){lO.add(I);I.pendingPaint=!0;Xlq||(Xlq=_.qK(_.w2,QGH))};
plS=function(I){I.loaded=!1;I.loadTime=Infinity;var y=Y8A.get(I);y&&(y.reject(Error("nh")),Y8A.delete(I));I.pendingPaint&&(lO.delete(I),I.pendingPaint=!1)};
_.muo=function(I){var y=I.indexOf(":");return y===-1?{originalName:I}:{originalName:I.substring(0,y),datasyncId:I.substring(y+1)}};
_.zFL=function(){return _.S(function(I){if(M6W!==void 0)return I.return(M6W);M6W=new Promise(function(y){var D;return _.S(function(F){switch(F.nextAddress){case 1:return _.nj(F,2),F.yield(_.EE.open("test-only"),4);case 4:return F.yield(_.EE.delete("test-only"),5);case 5:_.lZ(F,3);break;case 2:if(D=_.dj(F),D instanceof Error&&D.name==="SecurityError")return y(!1),F.return();case 3:y("caches"in window),_.Cj(F)}})});
return I.return(M6W)})};
aEq=function(){return _.S(function(I){if(I.nextAddress==1)return I.yield(_.zFL(),2);if(!I.yieldResult)return I.return(void 0);kfq||(kfq=new du_);return I.return(kfq)})};
c7q=function(I){var y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return O.yield(aEq(),2);case 2:y=O.yieldResult;if(!y)throw Error("ph");return O.yield(y.open("yt-player-local-img"),3);case 3:return D=O.yieldResult,O.yield(D.match(I),4);case 4:F=O.yieldResult;if(!F)throw Error("qh");return O.yield(F.blob(),5);case 5:return R=O.yieldResult,O.return(R)}})};
WmJ=function(I,y){for(var D in I)if(I.hasOwnProperty(D)&&y[D])return D;return null};
C4q=function(I){return"stamp"+I.replace("-","_")+"_"};
Brt=function(I){var y=I.match(/\[\[([\w\.]+)\]\]/);if(y&&y.length>1)return y[1];_.vu(Error("sh`"+I));return null};
i8W=function(I){return I===void 0?_.KR("REUSE_COMPONENTS",!1):I||!1};
b8e=function(I,y,D){D&&(y.is?(A7_.has(y)&&(I=A7_.get(y),D=I.listener,delete y[I.property],D.type==="element"&&y.removeEventListener(D.eventName,D.handler),A7_.delete(y)),$ut(y)):y.__proto__==HTMLElement.prototype&&(y=new _.g6("Rendererstamper removed a non custom element","Stamper: "+I+" element: "+(y&&y.nodeName)),_.tq(y)))};
H8q=function(I,y,D,F){var R=y.node?y.node:y;_.XB(D).parentNode===R&&(y.removeChild(D),b8e(I,D,F));if(I=GJ.get(D))GJ.delete(D),_.w2.cancelJob(I);D.hidden=!1};
eFW=function(I,y,D,F){if(y&&y.children&&(D=y.children[D]))if(_.KR("DEFERRED_DETACH"))for(;D&&!GJ.has(D);){var R=I,O=y,w=D,v=F;w.hidden=!0;R=_.y9(_.w2,H8q.bind(null,R,O,w,v),0);GJ.set(w,R);D=D.nextElementSibling}else for(;(w=y.lastElementChild)&&(y.removeChild(w),b8e(I,w,F),w!=D););};
_.XH=function(){for(var I=_.go.apply(0,arguments),y=!0,D=_.J(I),F=D.next();!F.done;F=D.next())if(typeof F.value!=="string"){y=!1;break}return y?I.join(" ").trim()||void 0:function(){for(var R="",O=_.J(I),w=O.next();!w.done;w=O.next())if(w=w.value,typeof w==="function"&&(w=w()),w)if(typeof w==="string")R+=" "+w;else for(var v in w)if(w.hasOwnProperty(v)){var P=w[v];typeof P==="function"&&(P=P());P&&(R+=" "+v)}R=R.trim()||void 0;return _.Ki(R)}};
_.Trq=function(I,y){return _.nC(I.entities,"markersEngagementPanelSyncEntity",y)};
_.Qz=function(I,y){return _.nC(I.entities,"playerStateEntity",y)};
sGL=function(I,y){return _.nC(I.entities,"fantasyWinProbabilityEntity",y)};
V6q=function(I,y){return _.nC(I.entities,"fantasyTeamEntity",y)};
Z8C=function(I,y){return _.nC(I.entities,"fantasyPlayerEntity",y)};
gvq=function(I,y){return _.nC(I.entities,"booleanEntity",y)};
IDt=function(I,y){return _.nC(I.entities,"qrCodeEntity",y)};
yNW=function(I){return _.nC(I.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
FYo=function(I){var y;return(y=Dh_[I])!=null?y:"EVENT_SPAN_TYPE_UNKNOWN"};
REL=function(I){var y=I.nodeName;if(I.id)return y+="#"+I.id;if(I.classList)for(var D=_.J(I.classList),F=D.next();!F.done;F=D.next())y+="."+F.value;I.parentElement&&(y=REL(I.parentElement)+" > "+y);return y};
Or_=function(I){return function(y){var D=FYo(y.type);return D==="EVENT_SPAN_TYPE_UNKNOWN"?I(y):jI("event",{type:D,nodepath:y.target instanceof Element?REL(y.target):void 0},function(){return I(y)})}};
_.YY=function(I){I&&rH("event")&&(I=Or_(I));return jkt(function(y){var D,F=(D=I)==null?void 0:D(y);return typeof F==="boolean"?F:!0})};
f4=function(I){return function(){return I()?I():void 0}};
vq5=function(I){var y=_.DF("animated-rolling-character"),D=aLJ(),F=KE(I.character)||KE(I.previousCharacter),R=_.J(zbq()),O=R.next().value,w=R.next().value;_.LR(function(){if(window.ResizeObserver&&_.l("web_fix_rolling_numbers_zoom_safari")){var v=new _.n4(function(){var K,r,N=Math.round(((r=(K=y.value.querySelector("div"))==null?void 0:K.getBoundingClientRect().height)!=null?r:0)*100)/100;N&&w(N)},500),P=new ResizeObserver(function(){v.fire()});
P.observe(y.value);return function(){P.disconnect();v.dispose()}}});
Mk4(function(){var v=_.l("web_fix_rolling_numbers_zoom_safari")?O:I.marginMultiplier;if(v){var P;(P=D.value)==null||P.cancel();F?(P=I.previousCharacter?Number(I.previousCharacter)+10:I.rollUp?0:30,I.shouldAnimate||(P-=LYA(I,P))):(P=I.rollUp?0:2,I.shouldAnimate||(P-=I.rollUp?-1:1));y.value.style.marginTop="-"+P*v+"px";I.shouldAnimate?D.value=JN_(y.value,I,P,F,v):y.value.style.display=I.character?"":"none"}});
return _.t("animated-rolling-character",{el:y,class:"animatedRollingCharacterHost"},gk4(F,function(){for(var v=[],P=1;P<30;P++)v.push(_.t("div",null,P%10));return _.t(_.ni,null,_.t("div",null,"\u00a0"),v,_.t("div",null,"\u00a0"))},function(){return wDS(I.character)}))};
wDS=function(I){return _.t(_.ni,null,_.t("div",null,"\u00a0"),_.t(_.ni,null,gk4(!I||_.wq(I),function(){return _.t("div",null,"\u00a0")},function(){return _.t("div",null,I)})),_.t("div",null,"\u00a0"))};
JN_=function(I,y,D,F,R){D=new Animation(new KeyframeEffect(I,[{transform:"translateY(0px)"},{transform:"translateY("+(F?LYA(y,D):y.rollUp?-1:1)*R+"px)"}],STq),document.timeline);y.character?(I.style.display="",D.onfinish=null):D.onfinish=function(){I.style.display="none"};
D.play();return D};
LYA=function(I,y){var D=Number(I.character)+10;if(I.previousCharacter)if(I.character){var F=Number(I.character),R=Number(I.previousCharacter);I=I.rollUp?R<F?D:D+10:R<F?D-10:D}else I=I.rollUp?30:0;else I=I.character==="0"?D:I.rollUp?D-10:D+10;return y-I};
t3o=function(I){return function(y){var D={},F;for(F in y){var R=void 0,O=void 0;((R=void 0)==null?0:(O=R.callbacks)==null?0:O[F])||(D[F]=y[F])}return _.t(Bv5,null,function(){for(var w in D)y[w]=_.Ki(D[w]);y.disableReactiveLogging=!0;return _.t(I,Object.assign({},y))})}};
UhB=function(I,y,D,F,R,O,w){D=new Animation(new KeyframeEffect(I,[{transform:"translateY(0px)"},{transform:"translateY("+(O?PT_(y,D,F,R):F?-1:1)*w+"px)"}],KY_),document.timeline);y?(I.style.display="",D.onfinish=null):D.onfinish=function(){I.style.display="none"};
D.play();return D};
PT_=function(I,y,D,F){var R=Number(I)+10;y?I?(I=Number(I),y=Number(y),D=D?y<I?R:R+10:y<I?R-10:R):D=D?30:0:D=I==="0"?R:D?R-10:R+10;return F-D};
jwB=function(I){var y=aLJ(),D=aLJ();z35(function(){y.value=I.numberText;D.value=I.numberValue},[I.numberText]);
var F=I.fontSizeMultiplier?I.heightPx*I.fontSizeMultiplier:I.heightPx,R=xr5(function(){if(I.numberText){var w=I.numberText;var v=I.forceRollUp||!D.value||!I.numberValue||D.value<I.numberValue;var P=!!I.shouldAnimate,K=y.value,r=[],N=0,h=0,x=(K?K.replace(/\D/g,"").length:0)-(w?w.replace(/\D/g,"").length:0);K=K?K.split(/(\d)/).filter(Boolean):[];for(w=w.split(/(\d)/).filter(Boolean);x<0;){var q=w[h];r.push({character:q,rollUp:v,marginMultiplier:F,shouldAnimate:P});h++;KE(q)&&x++}for(;N<x;)q=K[N],r.push({previousCharacter:q,
rollUp:v,marginMultiplier:F,shouldAnimate:P}),N++,KE(q)||x++;for(;h<w.length;)x=w[h],q=K[N],KE(x)===KE(q)?(h++,N++):KE(x)?(N++,x=void 0):KE(q)&&(h++,q=void 0),r.push({character:x,previousCharacter:q,rollUp:v,marginMultiplier:F,shouldAnimate:P});v=r}else v=[];return v},[I.numberText]),O=I.numberText?["height: "+F+"px;",
"line-height: "+I.heightPx+"px;"].join(" "):"";return _.t("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:O,dir:"ltr","aria-hidden":"true"},R.map(function(w){return _.t(rN_,Object.assign({},w))}))};
oqC=function(I){switch(I){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}};
_.NwB=function(I,y){if(!I&&!y)return"medium";I=Math.max(I||0,y||0);return I>=256?"large":I>=96?"medium":"small"};
hEJ=function(I){switch(I){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
xhe=function(I){return new KeyframeEffect(I,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
lD_=function(I){return new KeyframeEffect(I,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.p4=function(I){return function(){var y="",D;for(D in I){for(var F=I[D];typeof F==="function";)F=F();F!==void 0&&F!==null&&(y+="; "+D+": "+F)}return y.length>0?_.Ki(y.slice(2)):_.Ki()}};
uz_=function(I){switch(I){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"}};
qTJ=function(I,y){if(y)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(I)switch(I){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
YTW=function(I,y,D,F,R,O,w){var v=Eqt(I),P=v.disabled,K=v.iconPosition,r=v.style,N=v.focused,h=function(){return!!X()&&K()==="icon-only"},x=function(){return!!X()&&K()==="icon-only-40"},q=function(){return!!X()&&K()==="icon-with-label"},X=function(){return!!y||!(F==null||!F())};
return{type:function(){return r()==="call-to-action-inverse"?"text":r()==="overlay-dark"&&I().type!=="filled"&&I().type!=="tonal"?"tonal":I().type},
shouldFocus:function(){return(N()||(O==null?void 0:O()))&&!P()},
hasIconLeading:function(){return!!X()&&K()==="leading"},
hasIconTrailing:function(){return!!X()&&K()==="trailing"},
hasIconLeadingTrailing:function(){return!!X()&&!!(D||R!=null&&R())&&K()==="leading-trailing"},
hasIconOnly:h,hasIconOnly40:x,hasIconWithLabel:q,iconButton:function(){return h()||x()||q()},
visiblyDisabled:function(){return(P()?"disabled":I().state)==="disabled"||P()},
overrideSmallSizeIcon:function(){return!I().ignoreIconSizeOverride&&GZ_(I(),X())},
iconToRender:y?y:function(){return _.t(_.mj,{icon:F,gradientColor:function(){var f;return(f=I().customColors)==null?void 0:f.iconGradientColor},
size:function(){return XDS(I(),!0,I().ignoreIconSizeOverride)},
active:function(){return I().toggled},
iconFilter:function(){return QwS(I())},
animateIcon:w})},
secondaryIconToRender:D?D:function(){return _.t(_.mj,{icon:R,size:function(){return XDS(I(),!0,I().ignoreIconSizeOverride)},
active:function(){return I().toggled},
iconFilter:function(){return QwS(I())}})}}};
Eqt=function(I){return{size:function(){return I().size},
style:function(){return I().style},
focused:function(){return I().focused},
disabled:function(){return I().disabled},
onTap:function(y){var D,F;return(F=(D=I()).onTap)==null?void 0:F.call(D,y)},
alignByText:function(){return I().alignByText},
aTagConfig:function(){return I().aTagConfig},
customColors:function(){return I().customColors},
segmentedPosition:function(){return I().segmentedPosition},
toggled:function(){return I().toggled},
toggleable:function(){return I().toggleable},
accessibilityLabel:function(){return I().accessibilityLabel},
onToggle:function(y){var D,F;return(F=(D=I()).onToggle)==null?void 0:F.call(D,y)},
iconPosition:function(){return I().iconPosition},
oneOffCustomTextWrap:function(){return I().oneOffCustomTextWrap},
disableTextEllipsis:function(){return I().disableTextEllipsis},
disableBackdropFilter:function(){return I().disableBackdropFilter},
tooltipText:function(){return I().tooltipText},
tooltipShape:function(){return I().tooltipShape},
ariaHidden:function(){return I().ariaHidden},
tabIndex:function(){return I().tabIndex},
buttonText:function(){return I().buttonText},
formattedButtonText:function(){return I().formattedButtonText},
animatedTextProps:function(){return I().animatedTextProps},
onClickRateLimitMs:function(){return I().onClickRateLimitMs}}};
GZ_=function(I,y){y=(I.iconPosition==="icon-only"||I.iconPosition==="icon-only-40"||I.iconPosition==="icon-with-label")&&y;return!I.segmentedPosition&&y&&I.size==="S"};
XDS=function(I,y,D){switch(I.size){case "XS":return 16;case "S":return!D&&GZ_(I,y)?24:16;default:return 24}};
fDq=function(I){switch(I){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"}};
nq4=function(I){switch(I){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"}};
pDB=function(I){switch(I){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"}};
QwS=function(I){if(I.style==="overlay-dark"&&I.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
MK=function(I){return I&&I.endsWith("px")?Number(I.slice(0,-2)):0};
zEe=function(I,y){var D=_.J(_.N4(function(){var R,O;return(O=I())!=null?O:y==null?void 0:(R=y())==null?void 0:R.text})),F=D.next().value;
return[function(R){var O=_.su(function(){var P;return Object.assign({},{location:"bottom",offset:16,delay:1},y==null?void 0:y(),{text:(P=F())!=null?P:""})},void 0,"IJU38d");
_.wZ(function(){var P=O();_.iS(function(){_.w2.addJob(function(){zJ.notify(R,P)},4)})},"WlsgZc");
var w=function(){mhq(R,O())},v=function(){M3_()};
R.addEventListener("mouseenter",w);R.addEventListener("focus",w);R.addEventListener("mouseleave",v);R.addEventListener("blur",v);R.addEventListener("tap",v);_.tI(function(){R.removeEventListener("mouseenter",w);R.removeEventListener("mouseleave",v);R.removeEventListener("focus",w);R.removeEventListener("blur",v);R.removeEventListener("tap",v);M3_()})},
D.next().value]};
dhH=function(I,y){if(!YM){var D;oCA(function(){return D=WKq(I,y)});
return D}I.parent=kZB();return WKq(I,y)};
kZB=function(){var I=ne(YM||void 0,d5q);return F$_(I)?void 0:I};
kY=function(I,y){_.Do(I,Object.assign({},y,{forceClickLogging:!0}))};
aDW=function(I){switch(I){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
WYt=function(I,y){var D=_.yz(I==null?void 0:I.onTap),F={};D&&(F.getClickedVisualElement=function(){var R;return cNe(I,D,y==null?void 0:(R=y.value)==null?void 0:R.visualElement)});
F=_.FH({elementsCommand:I.onTap,forceNewState:!0,additionalCommandArgs:F});return Ru(F)?F:void 0};
CTq=function(I,y,D,F){kY(I,Object.assign({},{form:{element:y,event:D}},F))};
Bwo=function(I,y,D,F,R){var O=void 0;return function(w){var v=_.yz(D?I==null?void 0:I.onDisabledTap:I==null?void 0:I.onTap);if(v){var P;O=(P=O)!=null?P:y==null?void 0:y.value;if(v)if(_.l("web_button_vm_click_client_ve_killswitch"))CTq(v,O,w);else{var K;P=cNe(I,v,(K=O)==null?void 0:K.visualElement);if(R){CTq(v,R,w,{clickedVisualElement:P,form:{element:R}});return}CTq(v,O,w,{clickedVisualElement:P})}}F&&F(w)}};
cNe=function(I,y,D){y=y==null?void 0:y.clickTrackingParams;var F,R;I=I==null?void 0:(F=I.loggingDirectives)==null?void 0:(R=F.clientVeSpec)==null?void 0:R.uiType;if(D&&I&&!y)return D};
irW=function(I){switch(I){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"}};
ANo=function(I){switch(I){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"}};
$ht=function(I){switch(I){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"}};
br4=function(I){switch(I){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"}};
_.dV=function(I){return _.su(function(){sxq()();return gJC(I)},{debugName:"d8B62c"},"DEXkhd")};
HrB=function(I,y){return _.nC(I.entities,"engagementToolbarStateEntityPayload",y)};
TwS=function(I){(I=_.AC(I))&&_.eES(I)};
_.eES=function(I){var y=_.VO();y&&_.J_(y,I)};
swS=function(I,y,D){_.uj(I,"yt-open-popup-action",[y,D||I])};
V3B=function(I,y){var D=_.vi(I,"endpoint"),F=_.vi(I,"action");return(D=F?F:D)&&y&&(D=y.navigationEndpointPopupMap[D])&&(I=_.jF(D,I),(D=_.vi(I,"renderer"))&&y.supportedPopups.hasOwnProperty(D))?{openPopupAction:{popupType:y.popupTypeMap[D],popup:I}}:null};
ZrJ=function(I,y,D,F){if(F){var R;D=D==null?void 0:(R=D.data)==null?void 0:R.contents;(R=D instanceof Array&&D.length?D[0]:D)&&(D=_.vi(R,"renderer"))&&F.supportedPopups.hasOwnProperty(D)&&(y.stopPropagation(),swS(I,{openPopupAction:{popupType:F.popupTypeMap[D],popup:R}}))}};
y8q=function(I,y,D,F){F=F===void 0?!1:F;var R=gqH(y);if(R){R.href&&DN(R.href);var O=y.button;O=O!==void 0?O===0&&!au(y):!au(y);R.data&&O&&I9A(I,R,y,D,F)}};
I9A=function(I,y,D,F,R){R=R===void 0?!1:R;var O=_.kf("pbj_navigate_limit",-1)===0;D6_(y);_.nR().resolve(_.fR(xn));var w=y.data;if(Object.keys(w).length!==0)if(!_.l("unplugged_web_disable_actions_for_cec_endpoint")&&_.u(w,_.Q_))_.l("endpoint_behavior_command_executor_fix_killswitch")||(D.preventDefault(),D.stopPropagation()),_.GC(I,[w],I);else if(F=V3B(w,F))w.loggingUrls&&w.loggingUrls.forEach(function(P){P.baseUrl&&_.Nw(P.baseUrl)}),D.preventDefault(),D.stopPropagation(),swS(I,F,y);
else{var v=Fpt(0,y.data,D);if(I=y.getForm)I=I(),v.tempData=v.tempData||{},v.tempData=Object.assign({},v.tempData,I);I=_.r4(D);if(F=I.find(function(P){return!!P.visualElement}))v.createScreenConfig=v.createScreenConfig||{},v.createScreenConfig.clickedVisualElement=F.visualElement;
if(!O)if(D.preventDefault(),D.stopPropagation(),_.u(w,_.RKq)&&!R&&_.M4.instance)_.M4.instance.resolveCommand(w,v);else if(_.l("kevlar_command_handler_formatted_string")&&!R&&_.M4.instance&&OIB(w))R=I.find(function(P){return!!P.is})||D.target,D={form:Object.assign({},v,{event:D,
element:R,originatingNode:y})},_.M4.instance.resolveCommand(w,D);else{w=_.r4(D);D=[];for(R=0;R<w.length;R++)(O=w[R].is)&&D.push(O);D5W({parents:D.join(","),text:y.innerText},function(){_.lj(y,"yt-navigate",v)})}}};
LpB=function(I){if(I=gqH(I))D6_(I),gx5(I.href)};
gqH=function(I){I=_.r4(I);for(var y,D=0;D<I.length;D++)if(y=I[D],y.tagName==="A"&&y.classList.contains("yt-simple-endpoint")){if(!y.data)break;return y}return null};
au=function(I){return I.shiftKey||I.altKey||I.metaKey||I.ctrlKey};
J8B=function(I,y){var D={itct:y.clickTrackingParams};_.l("kevlar_client_side_screens")&&(!_.u(y,_.WF)||_.l("kevlar_exclude_endpoint_killswitch"))&&(D.endpoint=JSON.stringify(y));_.l("enable_unknown_lact_fix_on_html5")&&_.nR().resolve(_.fR(_.cU))&&(D.lact=_.m$());sF4(D);_.re(I,D)};
D6_=function(I){I.href&&Object.keys(I.data).length!==0&&J8B(I.href,I.data)};
OIB=function(I){for(var y=_.J(wLW),D=y.next();!D.done;D=y.next())if(I[D.value])return!1;return!0};
vOA=function(){if(WU)return WU;if(window.lottie)return WU=Promise.resolve(window.lottie);var I=_.vP(_.Pi("LOTTIE_URL"));return I?WU=new Promise(function(y,D){var F=document.createElement("script");F.addEventListener("load",function(){y(lottie)});
F.addEventListener("error",function(R){var O="Lottie library failed to load.";R?R.message&&(O+=" Original description: "+R.message,_.Pu(R,O)):R=Error(O);_.tq(R);D(R)});
F.setAttribute("async","");_.Uk(F,I);document.head.appendChild(F)}):Promise.reject(Error("th"))};
SoJ=function(){return WU?WU:vOA()};
tm4=function(I){if(I)switch(I){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.l("kevlar_use_wil_icons"))return I=(I=yNW(_.oq().getState()))&&I.animationLightUrl&&I.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:I.animationLightUrl,pathDarkTheme:I.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,I?I:C4.get("LIKE");break;case "LIKE_DELHI_PLAYER":return C4.get("LIKE_DELHI_PLAYER")}};
PYW=function(I){var y=tm4(I);if(y)return y;switch(I){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return C4.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return C4.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return C4.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return C4.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return C4.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return C4.get("NOTIFICATION_BELL")}};
KpL=function(I,y){if(!I.closest)return!1;y=!!tm4(y);return _.Pi("ID_TOKEN")&&y?!!I.closest("segmented-like-dislike-button-view-model")||!!I.closest("yt-player-quick-action-buttons"):!1};
r85=function(I,y){if(!I||U6o)y=!1;else{var D;if(!(D=KpL(I,y)))if(I.closest)if(D=!_.Pi("ID_TOKEN"),I=I.closest("ytd-subscription-notification-toggle-button-renderer-next"),D||!I)D=!1;else{var F;D=((F=I.data)==null?void 0:F.targetId)==="notification-bell"&&y!=="EXPAND_MORE"}else D=!1;y=D}return y};
jgt=function(I){var y,D;return _.S(function(F){switch(F.nextAddress){case 1:return _.nj(F,2),F.yield(fetch(I),4);case 4:return y=F.yieldResult,F.yield(y.json(),5);case 5:return F.return(F.yieldResult);case 2:D=_.dj(F),_.tq(D),_.Cj(F)}})};
oO_=function(I,y){var D,F,R;return _.S(function(O){if(O.nextAddress==1)return(D=y?I.pathDarkTheme:I.path)?O.yield(Promise.all([jgt(D),vOA()]),2):O.return();F=O.yieldResult;R=F[0];BU.set(D,R);_.Cj(O)})};
hKq=function(I,y,D,F){function R(w,v){if(y.value===v&&!y.cancelled){for(;I.firstChild;)I.removeChild(I.firstChild);I.classList.add("ytSpecIconShapeHost");w(I,F)}}
var O=_.Ngq(_.nR().resolve(_.mZ),D);typeof O==="function"?(y.value=null,R(O,null)):(y.value=O,O.then(function(w){R(w,O)}))};
x6q=function(I,y){var D=document.createElement("div"),F=_.R8(D,function(){return _.t(_.U,{cond:I,then:function(R){return _.t(_.iO,{data:R,options:y})}})},"ea");
return[D,F]};
_.Af=function(I,y){if(y){var D={};l9S.forEach(function(F){F=u3_(y,F,"--yt-lightsource-");Object.assign(D,F)});
qoA.forEach(function(F){F=u3_(y,F,"--yt-basic-");Object.assign(D,F)});
_.pg(I,D)}};
u3_=function(I,y,D){var F={};F[D+_.mQ(y)]=I&&I[y]?_.Z7(I[y]):"";return F};
_.bO=function(I,y,D){$Y[I]||($Y[I]={});$Y[I][y]=D};
_.HU=function(I){$Y[I]||($Y[I]={});return $Y[I]};
EOt=function(I){if(!I)return{};var y=I.foregroundTitleColor,D=I.backgroundColor;I=I.borderColor;var F="text";I?F="outline":D&&(F="filled");return{type:F,customColors:{color:y?_.Z7(y):void 0,backgroundColor:D?_.Z7(D):void 0,borderColor:I?_.Z7(I):void 0}}};
f9L=function(I){var y=I.renderer;var D=I.element;var F=I.commandController;var R=I.onTapCallback;var O=I.skipCommandHandling;var w=I.overrides;var v=I.forceIcon;var P=I.forceModernIconButton;var K=I.forceDisabled;var r=I.isSubscribe===void 0?!1:I.isSubscribe;var N=I.isPressed===void 0?!1:I.isPressed;var h=I.useButtonSize===void 0?!1:I.useButtonSize;I=GYC(y);r&&(I.style="mono",I.type="filled");v=!y.icon||!v&&y.text?y.icon?y.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:P?"icon-only":"icon-only-40";v==="icon-only-40"&&(I.type="text");var x;P=Object;r=P.assign;h=XLJ(y,h);N=!!y.isSelected||!_.l("web_propagate_is_pressed_killswitch")&&!!N;var q=y.isSelected!==void 0;K=K===void 0?y.isDisabled:K;var X=y.text?_.Vd(y.text):void 0;var f,m,z,B=((f=y.accessibilityData)==null?void 0:(m=f.accessibilityData)==null?void 0:m.label)||((z=y.accessibility)==null?void 0:z.label);f=B?B:_.rY(y.text);D=QgS(y,D,F,R,O);F=Yoo(y);F!=null&&F.length?(F=_.FH({innertubeCommand:rXo(F),
forceNewState:!0}),F=Ru(F)?F:void 0):F=void 0;return r.call(P,{},I,h,{iconPosition:v},w,{focused:!1,toggled:N,toggleable:q,disabled:K,formattedButtonText:X,accessibilityLabel:f,onTap:D,aTagConfig:F},EOt((x=y.colorData)==null?void 0:x.basicColorPaletteData),{oneOffCustomTextWrap:y.oneOffCustomTextWrap})};
QgS=function(I,y,D,F,R){return function(O){var w=Yoo(I);F(w,O);if(!R){w=_.J(w);for(var v=w.next();!v.done;v=w.next())kY(v.value,{form:{element:y,event:O},commandController:D})}}};
Yoo=function(I){var y=[];I.command&&y.push(I.command);I.serviceEndpoint&&y.push(I.serviceEndpoint);I.navigationEndpoint&&y.push(I.navigationEndpoint);return y};
XLJ=function(I,y){if(y)switch(I.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(I.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
GYC=function(I){switch(I.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
nO4=function(I,y){return typeof I!=="object"||I===null?!1:Object.keys(y).every(function(D){return D in I})};
ep=function(I){return Object.fromEntries(Object.keys(I).map(function(y){return[y,y]}))};
pLB=function(I,y,D){return wco(D,function(F,R){return function(O){var w=_.go.apply(1,arguments);return nO4(O,I)?R.apply(null,[O[y]].concat(_.Td(w))):R.apply(null,[O].concat(_.Td(w)))}})};
TJ=function(I){return function(y,D){return pLB(I,y,D)}};
m6q=function(I,y){var D;return(D=_.nC(I,"playlistLoopStateEntity",y))!=null?D:void 0};
Mmo=function(I,y){var D;return(D=_.nC(I,"toggleMenuServiceItemEntity",y))!=null?D:void 0};
_.sE=function(I){return I!=null&&I.watch?I.watch.isTheaterMode:!1};
_.Vz=function(I){return I!=null&&I.watch?I.watch.isWatchFullscreen:!1};
_.Zo=function(I){if(_.zKe(I))return!0;I=_.kYB(I);return _.l("web_watch_enable_single_column_grid_view")?I:!1};
_.zKe=function(I){return I!=null&&I.watch?I.watch.isSwatcherooActive:!1};
_.kYB=function(I){return I.watch.isWatchNarrowWidth};
_.d6q=function(I){return _.sE(I)||_.Vz(I)||_.kYB(I)};
_.a9q=function(I){return I.watch.openEngagementPanels};
_.gV=function(I,y){return _.nC(I.entities,"likeStatusEntity",y)};
c8J=function(I,y){return _.nC(I.entities,"likeCountEntity",y)};
_.Wp_=function(I,y){return _.nC(I.entities,"stringEntity",y)};
CYL=function(I,y){return _.nC(I.entities,"dataFreshnessEntity",y)};
Bgq=function(I,y){if(!I)return!1;var D,F=(D=_.u(I,_.fE))==null?void 0:D.signal;if(F&&y.signalEndpointMap)return!!y.signalEndpointMap[F];var R;if((D=(R=_.u(I,_.IP))==null?void 0:R.request)&&y.continuationEndpointMap)return!!y.continuationEndpointMap[D];for(var O in I)if(y.commandEndpointMap[O])return!0;return!1};
iI5=function(I,y){if(y.streamingEndpointMap)for(var D in I)if(y.streamingEndpointMap[D]&&(I=y.streamingEndpointMap[D]))return I()};
A8W=function(I,y){var D,F=(D=_.u(I,_.fE))==null?void 0:D.signal;if(F&&y.signalEndpointMap&&(D=y.signalEndpointMap[F]))return D();var R;if((D=(R=_.u(I,_.IP))==null?void 0:R.request)&&y.continuationEndpointMap&&(R=y.continuationEndpointMap[D]))return R();for(var O in I)if(y.commandEndpointMap[O]&&(I=y.commandEndpointMap[O]))return I()};
$6t=function(I){var y={"Content-Type":"application/json"};_.Pi("EOM_VISITOR_DATA")?y["X-Goog-EOM-Visitor-Id"]=_.Pi("EOM_VISITOR_DATA"):_.Pi("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=_.Pi("VISITOR_DATA"));y["X-Youtube-Bootstrap-Logged-In"]=_.Pi("LOGGED_IN",!1);_.Pi("DEBUG_SETTINGS_METADATA")&&(y["X-Debug-Settings-Metadata"]=_.Pi("DEBUG_SETTINGS_METADATA"));I!=="cors"&&((I=_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(y["X-Youtube-Client-Name"]=I),(I=_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(y["X-Youtube-Client-Version"]=
I),(I=_.Pi("CHROME_CONNECTED_HEADER"))&&(y["X-Youtube-Chrome-Connected"]=I),(I=_.Pi("DOMAIN_ADMIN_STATE"))&&(y["X-Youtube-Domain-Admin-State"]=I));(I=_.Pi("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(y["X-YouTube-Lava-Device-Context"]=I);return y};
bIW=function(I,y){y.watchNextResponse||y.reelItemWatchResponse?y.watchNextResponse?I.content=y.watchNextResponse:I.content=y.reelItemWatchResponse:y.playerResponse?I.player=y.playerResponse:y.reelWatchSequenceResponse&&(I.reelSequence=y.reelWatchSequenceResponse)};
yM=function(I){return function(){return new I}};
DX=function(I){var y=_.nR();return function(){return y.resolve(I)}};
_.Fp=function(I){if(!I)return null;for(var y=[],D=0;D<I.textSegments.length;D++){var F=I.textSegments[D];F.text?y.push(F):F.emojiId&&y.push({emoji_id:F.emojiId})}return{text_segments:y}};
Vm5=function(I,y,D,F,R,O,w){O=O===void 0?[]:O;var v=new _.RP;v.endpoint=D;if(!D)return _.Sb(new _.g6("handle undefined endpoint",y.tagName)),v;var P=t5S(D);P.length&&(_.GC(I,P,y,F),v.actions=P);D.loggingUrls&&D.loggingUrls.forEach(function(r){r.baseUrl&&hO(r.baseUrl,r.attributionSrcMode)});
P=!_.l("web_skip_impression_click_killswitch")&&F&&F.impression;if(D.clickTrackingParams&&!HIJ(D)&&!eK4(y)&&!P&&(P=_.W4(),!_.OP(P,y))){var K=y.getScreenLayer&&y.getScreenLayer();K?P.clickCommand(D,null,K):P.clickCommand(D,null)}P=!1;for(K=0;K<O.length;K++)if((0,O[K])(y,D,F)){P=!0;break}!P&&TgL(D)&&(v.ajaxPromise=sgq(I,y,D,F,R,w));return v};
eK4=function(I){var y;return(I=(y=I.data)==null?void 0:y.navigationEndpoint)&&!!I.clickTrackingParams};
HIJ=function(I){var y=_.u(I,_.fE);if(y&&(y=y.signal)&&ZIH.indexOf(y)>=0)return!0;for(var D in I)if(gOo.indexOf(D)>=0)return!0;return!1};
TgL=function(I){var y;if(((y=_.u(I,_.fE))==null?void 0:y.signal)==="CLIENT_SIGNAL")return!1;for(var D in I)if(IAt.indexOf(D)>=0)return!1;I=Object.keys(I);return I.length===1&&I[0]==="loggingUrls"?!1:!0};
vN5=function(I,y,D,F,R,O,w){var v=_.Lt.instance;if(v&&_.JZ(v,F))var P=_.wP(v,F,R).then(function(r){return(r==null?0:r.data)?r:{data:r}});
else P=I.requestDataForServiceEndpoint(F,R),_.u(F,yEA)||_.u(F,D9q)||_.u(F,_.Fv_)||_.u(F,RwS)||_.tq(new _.g6("No RequestBuilder for endpoint",F));var K=_.vS();K.promise.thenCatch(function(){var r=_.vi(F,"action")||_.vi(F,"command")||_.vi(F,"endpoint");r&&(r=F[r],r.hasOwnProperty("onFailureAction")?_.GC(y,[r.onFailureAction],D):r.hasOwnProperty("onFailureCommand")&&_.GC(y,r.onFailureCommand,D));P.cancel("Resolver promise rejected")});
P.then(function(r){if(r){var N=r.error;if(N){if(O&&O.onServerError)O.onServerError(F,r);K.reject(new _.g6("Response error",F,N))}else if(r=r.data)if(N=r.error){if(O&&O.onServerError)O.onServerError(F,r);K.reject(new _.g6("Returned error",F,N))}else{OK5(y,D,r,F);Lv4(r);if(N=SAC(r))for(var h=_.J(N),x=h.next();!x.done;x=h.next()){x=x.value;var q=_.nR().resolve(_.fR(JEe))||wsL;if(!_.Lt.instance||!q.some(function(f){return!!_.u(F,f)})||_.l("kevlar_response_processor_allowlist_killswitch")){var X=q=void 0;
((X=_.u((q=x)==null?void 0:q.commandMetadata,_.nE))==null?0:X.sendPost)?_.E$(y,[x]):_.GC(y,[x],D)}}(h=_.u(r==null?void 0:r.frameworkUpdates,Sa))&&w&&w(h);if(O&&O.onSuccess)O.onSuccess(F,r);K.resolve(new _.tZ(r,N))}}else K.reject(new _.g6("Invalid service endpoint provided",F))},function(r){K.reject(r)});
return K.promise};
Lv4=function(I){var y;(I=(y=_.u(I==null?void 0:I.onResponseReceivedCommand,SBA))==null?void 0:y.continuationItems)&&(I==null?void 0:I.length)===1&&_.u(I[0],tdB)&&_.V_("so_r",void 0,"search_overview_answer")};
sgq=function(I,y,D,F,R,O){var w;return(w=y.getNetworkManager&&y.getNetworkManager()?y.getNetworkManager():_.nR().resolve(_.fR(_.BF)))?vN5(w,I,y,D,F,R,O):_.eE("No network manager.")};
OK5=function(I,y,D,F){if(D=D.trackingParams||D.loggingDirectives&&D.loggingDirectives.trackingParams){var R;(_.u(F,_.Kt)||_.u(F,Ps4)||_.u(F,Kv_))&&F.clickTrackingParams?R=_.AC(F.clickTrackingParams):_.l("web_graft_to_parent_command")&&F.clickTrackingParams&&(R=_.AC(F.clickTrackingParams));var O;F=(O=y.getScreenLayer)==null?void 0:O.call(y);y=_.W4().graftServerVe(D,R,F);_.qr(I,"yt-store-grafted-ve-action",[y])}};
_.U9J=function(I){var y=new Image;return new _.AO(function(D,F){y.addEventListener("load",function(){D()});
y.addEventListener("error",function(){F()});
y.src=I})};
rEJ=function(I){return!!I};
jXo=function(I){return!!I};
oNS=function(I,y,D){var F=I.rowIndex;F!==void 0&&_.qr(I.hostElement,"yt-section-reactive-dismissal",[F,y,D])};
_.UP=function(I,y,D){I=_.J(I);for(var F=I.next();!F.done;F=I.next()){F=F.value;if(F===y)break;for(var R=_.J(D),O=R.next();!O.done;O=R.next())if(O=O.value,F.tagName===O||!_.l("web_event_button_role_check_killswitch")&&F.role==="button"&&O==="BUTTON")return!0}return!1};
_.rP=function(I,y,D){I=_.J(I);for(var F=I.next();!F.done;F=I.next()){F=F.value;if(F===y)break;for(var R=_.J(D),O=R.next();!O.done;O=R.next())if(F.id===O.value)return!0}return!1};
_.NY=function(){var I=_.nR().resolve(_.fR(_.ja));return I?(I=I.getCurrentPage())?_.oP(I):null:null};
_.hZ=function(){var I=_.NY();if(!I){var y=_.nR().resolve(_.fR(_.ja)),D=y?typeof y:"no page manager";y=y?y.getCurrentPage():null;D=new _.g6("Player is missing when requested.",D,y?y.tagName:"no page");_.vu(D)}return I};
_.oP=function(I){return I&&I.getPlayer?I.getPlayer():null};
N9o=function(I,y){I={args:{raw_player_response:I}};y&&(I.args=Object.assign({},I.args,y));return I};
hwq=function(I){if(I.args){if(I.args.raw_player_response)return I.args.raw_player_response;if(I.args.player_response)return JSON.parse(I.args.player_response)}};
_.x9B=function(I,y){var D={url:"/watch?v="+I.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};I.playlistId&&(D.url+="&list="+I.playlistId);I.playerParams&&(D.url+="&pp="+I.playerParams);I={watchEndpoint:I,commandMetadata:{webCommandMetadata:D}};y&&(I.clickTrackingParams=y);return I};
uQt=function(){return lA5||!!_.jF("yt.player.Application")};
EN_=function(){return qBL||!!document.querySelector("link#player-css")};
XsS=function(){function I(){lA5=!0;GbL.resolve()}
var y,D;return _.S(function(F){GbL||(GbL=new _.n0,uQt()?I():(y=document.createElement("script"),y.addEventListener("load",I),D=_.Ve(_.Pi("PLAYER_JS_URL")),_.Uk(y,D),document.head.appendChild(y)));return F.return(GbL.promise)})};
YBS=function(){function I(){qBL=!0;QXJ.resolve()}
if(!QXJ)if(QXJ=new _.n0,EN_())I();else{var y=document.createElement("link");y.id="player-css";y.addEventListener("load",I);var D=_.Ve(_.Pi("PLAYER_CSS_URL"));_.oB(y,D,"stylesheet");document.head.appendChild(y)}return QXJ.promise};
fA5=function(){return uQt()&&EN_()?Promise.resolve([]):Promise.all([XsS(),YBS()])};
nNA=function(I,y,D){var F={args:{}};I&&(F.args.raw_player_response=I);y&&(F.args.raw_watch_next_response=y);D&&(F.args=Object.assign({},F.args,D));return F};
zw4=function(I,y,D){var F=!1;F=F===void 0?!0:F;I=typeof I==="string"?_.xz(document,I):I;var R=psq+"_"+_.HH(I),O=m9_[R];if(O&&F)return MdB(y,D)?O.api.loadVideoByPlayerVars(y.args||null):O.loadNewVideoConfig(y),O.api;O=new lp(I,R,y,D,void 0);m9_[R]=O;O.addOnDisposeCallback(function(){delete m9_[O.getId()]});
return O.api};
MdB=function(I,y){return y&&y.serializedExperimentFlags?y.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):I&&I.args&&I.args.fflags?I.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
kb5=function(){var I=new _.n0;I.resolved=!1;var y=I.resolve;I.resolve=function(D){I.resolved=!0;y(D)};
return I};
aAq=function(I){var y={};d95().install((y.document_disposed={callback:I},y))};
up=function(I,y){if(!I&&Math.random()<=_.kf("kevlar_unified_player_logging_threshold")){I=Error("vh`"+(y?y:"Unspecified error"));if(_.l("kevlar_unified_player_throw_errors"))throw I;_.tq(I)}};
_.cEq=function(){var I=_.jF("ytDebugData.callbacks");I||(I={},_.fv("ytDebugData.callbacks",I));return I};
Cso=function(I,y){var D=_.cEq();if(_.l("web_dd_iu")||Wvq.includes(I))D[I]=y};
B9e=function(){return _.S(function(I){return I.return({isLeader:_.eJt(_.oq().getState()),c:_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
iKW=function(){var I;_.S(function(y){if(y.nextAddress==1)return Cso("APP_STATE",B9e),y.yield(_.nR().resolve(_.qY),2);I=y.yieldResult;Cso("PI",function(){return _.S(function(D){return D.return(I.getVideoStats())})});
_.Cj(y)})};
AES=function(I){return!!I&&I.length>0&&I[0].loggingUrls!=null&&I[0].loggingUrls.length>0};
$9B=function(){var I=_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(I==null?void 0:I.length)===2?I[1]:null};
bKH=function(I){if(!I)return[];var y=[];I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.loggingUrls){D=_.J(D.loggingUrls);for(var F=D.next();!F.done;F=D.next())F=F.value,F.baseUrl&&y.push(F.baseUrl)}return y};
HKL=function(I){var y=_.U$(_.LE(_.Ft.location.href));I=_.U$(_.LE(I));return _.l("kevlar_clear_non_displayable_url_params")?y==EP(I):EP(y)==EP(I)};
EP=function(I){var y=_.ew5(I);I=I.slice(0);var D=["frags"];_.l("kevlar_hide_pp_url_param")&&D.push("pp");_.l("kevlar_hide_time_continue_url_param")&&D.push("time_continue");D=_.J(D);for(var F=D.next();!F.done;F=D.next())F=F.value,I=_.jk(_.U$(I),F);return _.U$(I)+(y?"#"+y:"")};
Gj=function(I,y){var D=D===void 0?!0:D;y=Number(y)*1E3;var F=Math.round((0,_.m_)()),R=F.toString();I={innertubeResponse:I,serverDateTimestampMs:R,lastModifiedTimestampMs:R,expireTimestampMs:(F+y).toString(),isProcessed:D};if(D=_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME"))I.clientName=D;return I};
sXq=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++T9q};
Vd5=function(I){return!isNaN(I)&&I>0};
gNq=function(){_.l("web_adaptive_repeat_ase")&&ZKH&&_.Jq("applicationStarted",ZKH)};
_.Iuo=function(){var I=_.s_(),y=_.VO();y&&I&&_.vW(y,[I],!0)};
DWe=function(I){return I&&ycA.some(function(y){return I.includes(y)})};
wMJ=function(I){var y=_.u(I,_.lK);if(!y)return!1;var D=y.url,F=y.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!D)return _.vu(Error("Ah")),!1;if(y.target==="TARGET_NEW_WINDOW"){y={};_.l("resolve_url_parent_tracking_params")&&(!_.GP(D)||Xh(window.location.href,D))&&(y={endpoint:I,itct:I.clickTrackingParams});sF4(y);I=null;try{if(F){a:{var R=D,O=y;F=F===void 0?!1:F;O&&_.re(R,O);var w=_.VA(R),v=_.H$(w);R!=v&&_.o8(Error("Zf`"+R));R=v;try{if(F){v=R;v=e0o(v);DN(v);I=_.wj(window,v,"_blank",
"attributionsrc");break a}}catch(h){_.UJ(h)}DN(R);I=_.wj(window,w,"_blank")}FxC(_.nR().resolve(RmB),I,D);return!0}}catch(h){_.vu(h)}_.re(D,y);y={target:"_blank",noopener:!1};w=window;v=ba(D)?D:_.VA(typeof D.href!="undefined"?D.href:String(D));F=self.crossOriginIsolated!==void 0;I="strict-origin-when-cross-origin";window.Request&&(I=(new Request("/")).referrerPolicy);R=y.noreferrer;if(F&&R&&I==="unsafe-url")throw Error("we");I=R&&!F;R=y.target||D.target;O=[];var P=[],K=!1;for(N in y){var r=y[N];switch(N){case "width":case "height":case "top":case "left":O.push(N+
"="+r);break;case "target":break;case "noopener":case "noreferrer":r?P.push(N):(K=!0,P.push(N+"=false"));break;case "attributionsrc":O.push(N+(r?"="+r:""));break;default:O.push(N+"="+(r?1:0))}}var N=R!==void 0&&!["_blank","_self","_top","_parent",""].includes(R);N=Ge()&&N;Owq&&F&&O.length===0&&P.length>0&&!N&&!K?(P.length===2&&(P=["noreferrer"]),_.wj(w,v,R,P[0]),I=LxS()):(N=O.join(","),_.n5()&&w.navigator&&w.navigator.standalone&&R&&R!="_self"?(N=_.kW("A"),yr(N,v),N.target=R,I&&(N.rel="noreferrer"),
((y=y.attributionsrc)||y==="")&&N.setAttribute("attributionsrc",y),y=document.createEvent("MouseEvent"),y.initMouseEvent("click",!0,!0,w,1),N.dispatchEvent(y),N=LxS()):I?(N=_.wj(w,"",R,N),w=_.H$(v),N&&(N.opener=null,w===""&&(w="javascript:''"),w='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Xp(w)+'">',w=Fy(w),(y=N.document)&&y.write&&(y.write(RB(w)),y.close()))):((N=_.wj(w,v,R,N))&&y.noopener&&(N.opener=null),N&&y.noreferrer&&(N.opener=null)),I=N);FxC(_.nR().resolve(RmB),
I,D);return!0}N=_.iP(D);N=DWe(N)||D==="https://studio.youtube.com/";if(_.GP(D)&&!Xh(window.location.href,D)||N)DN(D),Hg(),_.FB(D,void 0,void 0,window.top,Jce);else return _.tq(new _.g6("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",I)),!1;return!0};
_.tL_=function(I,y){y=y===void 0?0:y;if(!(_.u(I,voB)||_.u(I,SjW)||_.u(I,_.lK)&&_.u(I,_.lK).url))return!1;var D,F=(D=_.u(I,_.lK))==null?void 0:D.url;D=F?{externalLinkData:{url:F}}:null;return _.W4().clickCommand(I,D,y)};
KxW=function(I,y,D,F,R){R=R===void 0?{}:R;return function(O){var w,v;var P=((w=I.loggingDirectives)==null?0:(v=w.clientVeSpec)==null?0:v.uiType)?_.QM(I.loggingDirectives.clientVeSpec.uiType):void 0;R.clickedVisualElement||(R.clickedVisualElement=P);P=Pw_(I,y);D(P,O);P=_.J(P);for(w=P.next();!w.done;w=P.next()){w=w.value;v=F;var K=O,r=R;r.form?r.form.event=K:r.form={element:v,event:K};kY(w,r)}}};
Pw_=function(I,y){var D=[];y?(I.toggledCommand&&D.push(I.toggledCommand),I.toggledServiceEndpoint&&D.push(I.toggledServiceEndpoint)):(I.defaultCommand&&D.push(I.defaultCommand),I.defaultServiceEndpoint&&D.push(I.defaultServiceEndpoint),I.defaultNavigationEndpoint&&D.push(I.defaultNavigationEndpoint));return D};
UWt=function(I,y){var D=I.toggledStyle||I.style,F;switch((F=y?D:I.style)==null?void 0:F.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 _.S(function(I){return I.nextAddress==1?I.yield(_.nR().resolve(_.qY),2):I.return(_.nR().resolve(rcA)())})};
_.ft=function(){return _.nR().resolve(rcA)()};
_.nt=function(){return{lottieEl:void 0}};
j9o=function(I,y){return I.startsWith(y.uniqueId)};
oo_=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(_.Yz(),2);y=F.yieldResult;if((D=y)==null||!D.addEventListener)return pt(),F.return();y.addEventListener("onCueRangeEnter",I);_.Cj(F)})};
NFW=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(_.Yz(),2);y=F.yieldResult;if((D=y)==null||!D.removeEventListener)return pt(),F.return();y.removeEventListener("onCueRangeEnter",I);_.Cj(F)})};
hmJ=function(I){var y,D,F,R,O;_.S(function(w){if(w.nextAddress==1)return w.yield(_.Yz(),2);y=w.yieldResult;if((D=y)==null||!D.addCueRange)return pt(),w.return();F=_.J(I.timings);for(R=F.next();!R.done;R=F.next())O=R.value,y.addCueRange(I.uniqueId+"-"+O,O/1E3,(O+100)/1E3);_.Cj(w)})};
xWS=function(I){var y,D,F,R,O;_.S(function(w){if(w.nextAddress==1)return w.yield(_.Yz(),2);y=w.yieldResult;if((D=y)==null||!D.removeCueRange)return pt(),w.return();F=_.J(I.timings);for(R=F.next();!R.done;R=F.next())O=R.value,y.removeCueRange(I.uniqueId+"-"+O);_.Cj(w)})};
luC=function(){var I,y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.Yz(),2);I=F.yieldResult;if((y=I)==null||!y.getPlayerState)return pt(),F.return();D=I.getPlayerState();return F.return(D===2)})};
pt=function(){_.tq(new _.g6("Smartimation player does not exist or is corrupted"))};
uaW=function(){try{var I;return(I=window.CSS)!=null&&I.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(y){return _.tq(new _.g6("Smartimation CSS.supports threw an error")),!1}};
fuA=function(I,y,D,F,R){var O=I.playlistId?qjt:EoS;y=y();D=D();R=!!I.videoId&&R()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.BW(y))return Gg4({data:I,actionType:O,disabled:R},D);if(I.videoId&&F())return XML({data:I,actionType:O,disabled:R});switch(y){case "TRANSFER_STATE_UNKNOWN":return XML({data:I,actionType:O,disabled:R});case "TRANSFER_STATE_FAILED":return I.videoId?Q9e({data:I,actionType:O,disabled:R}):YjH({data:I,actionType:O,disabled:R});case "TRANSFER_STATE_COMPLETE":return YjH({data:I,
actionType:O,disabled:R});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Gg4({data:I,actionType:O,disabled:R},D);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return I.videoId?Q9e({data:I,actionType:O,disabled:R}):XML({data:I,actionType:O,disabled:R});default:return XML({data:I,actionType:O,disabled:R})}};
noq=function(I,y){var D=I.onTapCommand,F=_.yz(D);if(I.videoId&&_.u(F,_.mC))return _.u(F,_.mC).action=y,D;I.playlistId&&_.u(F,_.MY)&&(_.u(F,_.MY).action=y);return D};
XML=function(I){var y=I.data;var D=I.actionType;I=I.disabled;return{text:pM_,iconType:"OFFLINE_DOWNLOAD",onTap:noq(y,D.ACTION_ADD),disabled:I}};
Gg4=function(I,y){var D=I.data;var F=I.actionType;I=I.disabled;var R="OFFLINE_DOWNLOAD";y>=0&&y<=.1?R="OFFLINE_DOWNLOADING_ZERO":y>.1&&y<=.3?R="OFFLINE_DOWNLOADING_TWENTY":y>.3&&y<=.5?R="OFFLINE_DOWNLOADING_FORTY":y>.5&&y<=.7?R="OFFLINE_DOWNLOADING_SIXTY":y>.7&&y<1?R="OFFLINE_DOWNLOADING_EIGHTY":y===1&&(R="OFFLINE_PIN");return{text:mWB,iconType:R,onTap:noq(D,F.ACTION_REMOVE_WITH_PROMPT),disabled:I}};
YjH=function(I){var y=I.data;var D=I.actionType;I=I.disabled;return{text:MLe,iconType:"OFFLINE_PIN",onTap:noq(y,D.ACTION_REMOVE_WITH_PROMPT),disabled:I}};
Q9e=function(I){var y=I.data;var D=I.actionType;I=I.disabled;return{text:zmq,iconType:"OFFLINE_DOWNLOAD",onTap:noq(y,D.ACTION_RETRY),disabled:I}};
_.zj=function(I,y){var D=sxq();return _.su(function(){D();return gJC(I,[_.Ki(y)||""])},{debugName:"LUZslf"},"Z105t")};
kge=function(I){var y=_.zj(_.FM,function(){return I().videoId}),D=_.zj(_.Rq,function(){return I().playlistId});
return function(){return I().videoId?y:I().playlistId?D:_.J(_.$M("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
dW4=function(I){var y=_.zj(Og,function(){return I().videoId}),D=_.zj(_.HY_,function(){return I().playlistId});
return function(){return I().videoId?y:I().playlistId?D:_.J(_.$M(0,void 0,"K4tgOc")).next().value}};
auW=function(I){var y=_.zj(_.DGJ,function(){return I().videoId});
return function(){return I().videoId?y:_.J(_.$M(!1,void 0,"Oaxwcf")).next().value}};
ccH=function(I){var y=_.zj(st_,function(){return I().videoId});
return function(){return I().videoId?y:_.J(_.$M("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Wxt=function(){return{}};
_.$WC=function(I,y,D){return{submitForm:function(){var F,R,O,w;return _.S(function(v){if(v.nextAddress==1){F=CwW(I());if(!F)return v.return();if(F.onSubmit)return BF5(y),F.onSubmit(),BF5(D),v.return();if(!F.submitConfig||!F.formData)return v.jumpTo(0);F.disableDuringSubmission&&iwJ(I(),!0);BF5(y);return v.yield(AcH(F.submitConfig,F.formData()),3)}R=v.yieldResult;BF5(D);if(((O=R)==null?0:O.submitResult)&&((w=F)==null?0:w.onSubmitResult))F.onSubmitResult(R.submitResult);F.disableDuringSubmission&&iwJ(I(),
!1);return v.return()})},
isValid:function(){var F=CwW(I());if(F){var R;return!((R=F.isValid)==null||!R.call(F))}return!0},
isSubmitting:function(){var F,R;return!!((F=CwW(I()))==null?0:(R=F.isSubmitting)==null?0:R.call(F))}}};
_.kz=function(){if(!bwo){var I=_.J(_.$M(new Map,void 0,"Y1XnBc"));bwo=I.next().value;Hwe=I.next().value}return bwo};
_.emJ=function(I){Hwe(new Map(I))};
CwW=function(I){if(I)return _.kz()().get(I)};
AcH=function(I,y){var D;return _.S(function(F){return F.nextAddress==1?y?(D=_.nR().resolve(_.fR(TFq)))&&I.submitId?F.yield(D.submitForm(I.submitId,y,s9o,I.params,I.clickTrackingParams),2):F.return(Promise.reject(Error("Ch"))):F.return(Promise.reject(Error("Bh"))):F.return(F.yieldResult)})};
iwJ=function(I,y){if(I){var D=_.kz();D().set(I,Object.assign({},D().get(I),{isSubmitting:function(){return y}}));
_.emJ(D())}};
BF5=function(I){if(I){var y=_.nR().resolve(_.MC);y&&(I=_.yz(I()))&&y.resolveCommand(I)}};
got=function(I,y){y=y===void 0?{shouldPersist:!0}:y;return{useUpdatableData:function(D,F){var R=_.su(function(){return I(D())},void 0,"Gmrblb"),O=VL4(D,R,F,y);
_.wZ(function(){if(R()!=null){Zwe.set(R(),O);var w=R();_.tI(function(){Zwe.delete(w)})}},"j4hx9b");
return O},
getData:function(D){var F;return(F=Zwe.get(I(D)))==null?void 0:F[0]()},
updateData:function(D,F){D=I(D);D=Zwe.get(D);if(!D)return!1;var R=_.J(D);D=R.next().value;R=R.next().value;F=F(D());R(F);return!0}}};
VL4=function(I,y,D,F){F=F===void 0?{}:F;var R=_.J(_.N4(function(){var v=I(),P=y();return Ieq(v,P,D,F)})),O=R.next().value,w=R.next().value;
return[O,function(v){w(v);var P=y();if(F.shouldPersist&&P!=null){var K,r=(K=D==null?void 0:D.map(function(N){return N()}))!=null?K:[];
_.dP.set(P,[v,r])}}]};
Ieq=function(I,y,D,F){F=F===void 0?{}:F;if(y==null||!F.shouldPersist)return I;F=_.dP.get(y);if(!F)return I;var R=_.J(F);F=R.next().value;var O=R.next().value,w;R=(w=D==null?void 0:D.map(function(v){return v()}))!=null?w:[];
if((O==null?0:O.length)&&(D==null?0:D.length)&&R.some(function(v,P){return v!==O[P]}))return _.dP.remove(y),I;
(D==null?0:D.length)&&_.dP.set(y,[F,R]);return F};
yAC=function(I){var y=_.J(_.$M(!0,void 0,"bKtO6d")),D=y.next().value;y.next();return function(){var F=$4(I.children());return _.t(_.U,{cond:D,then:function(){return F},
else:I.fallback})}()};
_.aP=function(I){var y=DsB(I),D=y.data,F=y.mapping,R=y.wrapper;y=y.pendingFallback;var O=function(){return F04(_.Ki(D))},w=function(){var v=O(),P=[];
v=_.J(v);for(var K=v.next();!K.done;K=v.next()){var r=void 0;K=K.value;var N=void 0;for(r in K)if(!(!K).hasOwnProperty(r)){N=r;break}(r=N)&&P.push(r)}return P};
return I.data?_.t(yAC,{fallback:y},function(){return _.t(_.gZ,{each:w},function(v,P){var K=R?function(q){return R(function(){return F[v](q,P)},r,P)}:function(q){return F[v](q,P)};
K.debugName||(K.debugName=String(v));if(!F[String(v)])return document.createComment("");K.componentType!==gR&&RcL(String(v));var r=OdC(O,v,P);if(_.l("web_add_microtask_to_stamper")&&!L0L.has(String(v))){var N=_.J(_.$M(!1,void 0,"afb1md")),h=N.next().value,x=N.next().value;Promise.resolve().then(function(){L0L.add(String(v));x(!0)});
return _.t(_.U,{cond:h,then:function(){return _.t(K,{data:r})}})}return _.t(K,{data:r})})}):_.t(_.ni,null)};
DsB=function(I){var y=I.targetId||JAq(I.children);if(!I.data||!y)return Object.assign({},I,{mapping:I.children});var D="stamper-"+wzq++,F=function(){var v;return(v=typeof I.targetId==="function"?I.targetId(D):I.targetId)!=null?v:D};
y=_.J(vVA(function(){var v=F04(I.data());v.targetId=F;return v})).next().value;
var R=Object.assign({},(_.nR().resolve(_.fR(S9e))||{}).replaceableMapping,I.children);if(I.replacementWrapper){var O=R.notificationTextRenderer,w=R.notificationMultiActionRenderer;O&&(R.notificationTextRenderer=function(v,P){return I.replacementWrapper(O({data:v.data},P))});
w&&(R.notificationMultiActionRenderer=function(v,P){return I.replacementWrapper(w({data:v.data},P))})}return Object.assign({},I,{data:y,
mapping:R,wrapper:function(v,P,K){return dhH({targetId:F,stamperIndex:K},I.wrapper?function(){return I.wrapper(v,P,K)}:v)}})};
OdC=function(I,y,D){var F;return _.su(function(){var R=I()[D()];if(R)F=R[y];else return _.tq(new _.g6("Stamper failed to find "+String(y)+" at index "+D()+" of data array of length "+(I().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),F;return R[y]},void 0,"Su9U8")};
JAq=function(I){I=_.J(Object.keys(I));for(var y=I.next();!y.done;y=I.next())if(y=y.value,tK4.includes(y)||P25.includes(y)||K0q.includes(y))return!0;return!1};
F04=function(I){return I?Array.isArray(I)&&I instanceof Array?I:[I]:[]};
RcL=function(I){if(_.l("web_enable_renderer_logger")){var y;(y=_.nR().resolve(_.fR(UsJ)))!=null&&y.loggingEnabled&&!y.ids.has(I)&&y.ids.add(I)}};
rAe=function(){var I,y;return(y=(I=_.nR().resolve(_.fR(_.cS)))==null?void 0:I())!=null?y:!1};
oVA=function(I,y){I=I===void 0?j3q:I;switch(y.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},I,{isOpen:y.payload});default:return I}};
hce=function(I,y){I=I===void 0?NkJ:I;switch(y.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},I,{isAllowed:y.payload});default:return I}};
leJ=function(I,y){I=I===void 0?xst:I;switch(y.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},I,{errorMessage:y.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},I,{title:y.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},I,{privacy:y.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},I,{isDisabled:y.payload});default:return I}};
q9C=function(I,y){I=I===void 0?ueo:I;switch(y.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},I,{isOpen:y.payload});default:return I}};
GXW=function(I,y){I=I===void 0?EVe:I;switch(y.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},I,{isFullscreen:y.payload});case "SET_NAVIGATION_BUTTON":var D=y.payload.targetId,F=Object.assign({},I.navigationButtons);F[D]=y.payload.button;return Object.assign({},I,{navigationButtons:F});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},I,{topPanelId:y.payload});case "SET_SECONDARY_HEADER":return D=y.payload.panelId,F=Object.assign({},I.secondaryHeader),F[D]=y.payload.secondaryHeader,
Object.assign({},I,{secondaryHeader:F});default:return I}};
fee=function(){return RV(Object.assign({},{voiceSearch:lPo,engagementPanel:GXW,bottomSheet:oVA,cinematicSetting:hce,shorts:fP4,drawerLayout:q9C,createPlaylist:leJ,locationCollection:Xzt,reportChannel:Q3C,reportForm:Y9J},nSq))};
nVq=function(I,y){_.w2.addLowPriorityJob(function(){var D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return _.nj(O,2),O.yield(vOA(),4);case 4:return O.yield(fetch(I),5);case 5:return D=O.yieldResult,O.yield(D.json(),6);case 6:F=O.yieldResult;BU.set(I,F);requestAnimationFrame(function(){y(F)});
_.lZ(O,0);break;case 2:R=_.dj(O),_.tq(R),_.Cj(O)}})})};
pzt=function(I){var y={animationConfig:{},listeners:{}},D=function(){I(!0)};
y.listeners.data_failed=D;y.listeners.error=D;y.listeners.data_ready=function(){I(!1)};
return y};
zc4=function(I){var y=I.model;var D=I.subscribed;var F=I.isOverlay;var R=I.element;var O=I.commandController;var w=I.notificationState;if(D){var v,P;var K=(y==null?void 0:(v=y.buttonStyle)==null?void 0:v.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:y==null?void 0:(P=y.unsubscribeButtonContent)==null?void 0:P.buttonText}else{var r;K=y==null?void 0:(r=y.subscribeButtonContent)==null?void 0:r.buttonText}a:{var N;switch(y==null?void 0:(N=y.buttonStyle)==
null?void 0:N.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":v="S";break a;default:v="M"}}a:if(F)F="overlay";else switch(y.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":F="overlay";break a;default:F="mono"}a:if(D)var h="tonal";else switch((h=y.buttonStyle)==null?void 0:h.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":h=
"tonal";break a;default:h="filled"}return{style:F,type:h,state:y.disableSubscribeButton?"disabled":"active",size:v,focused:I.focused,toggled:D,accessibilityLabel:msH(y,D,w),buttonText:K,iconPosition:y.disableNotificationBell?"none":"leading-trailing",onTap:MKB(y,D,R,O),disableTextEllipsis:!!I.disableTextEllipsis}};
MKB=function(I,y,D,F){return function(R){if(y){var O;var w=I.disableNotificationBell?_.yz(I==null?void 0:(O=I.unsubscribeButtonContent)==null?void 0:O.onTapCommand):_.yz(I==null?void 0:I.onShowSubscriptionOptions)}else{var v;w=_.yz(I==null?void 0:(v=I.subscribeButtonContent)==null?void 0:v.onTapCommand)}w&&kY(w,{form:{element:D==null?void 0:D.value},commandController:F});R.stopPropagation()}};
msH=function(I,y,D){if(y){if(I==null?0:I.disableNotificationBell){var F;return I==null?void 0:(F=I.unsubscribeButtonContent)==null?void 0:F.accessibilityText}switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var R;return I==null?void 0:(R=I.bellAccessibilityData)==null?void 0:R.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var O;return I==null?void 0:(O=I.bellAccessibilityData)==null?void 0:O.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var w;return I==null?void 0:(w=
I.bellAccessibilityData)==null?void 0:w.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var v;return I==null?void 0:(v=I.bellAccessibilityData)==null?void 0:v.disabledLabel;default:var P;return I==null?void 0:(P=I.unsubscribeButtonContent)==null?void 0:P.accessibilityText}}else{var K;return I==null?void 0:(K=I.subscribeButtonContent)==null?void 0:K.accessibilityText}};
kXH=function(I,y){return _.nC(I.entities,"subscriptionStateEntity",y)};
dsB=function(I,y){return _.nC(I.entities,"subscriptionNotificationStateEntity",y)};
aet=function(I,y){return _.nC(I.entities,"upcomingEventReminderStateEntity",y)};
cAW=function(I,y){return _.nC(I.entities,"commentEntityPayload",y)};
W0C=function(I,y){return _.nC(I.entities,"engagementToolbarSurfaceEntityPayload",y)};
C2C=function(I,y){return _.nC(I.entities,"triStateButtonStateEntityPayload",y)};
Bkq=function(I,y){return _.nC(I.entities,"commerceCartCheckoutButtonEntity",y)};
id5=function(I,y){return _.nC(I.entities,"commandEntity",y)};
AAJ=function(I){if(I){switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":I="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":I="NOTIFICATIONS_OFF";break;default:I="NOTIFICATIONS_NONE"}return I}};
$so=function(I,y,D){D.subscribed!==y&&((D=D.key)&&_.ry(_.WS("subscriptionStateEntity",D,{key:D,subscribed:y})),I.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:y})),y||_.uj(I,"yt-unsubscribe-action"))};
Hd_=function(I){I=_.u(_.yz(I),_.Ct);var y,D,F,R;return(R=_.u(I==null?void 0:(y=I.panelLoadingStrategy)==null?void 0:(D=y.inlineContent)==null?void 0:(F=D.sheetViewModel)==null?void 0:F.content,bdB))==null?void 0:R.listItems};
ecB=function(I,y){if(I.onShowSubscriptionOptions&&y&&(I=Hd_(I.onShowSubscriptionOptions),I!=null&&I.length)){var D=AAJ(y);I.forEach(function(F){F=_.u(F,_.BS);var R,O,w,v,P=F==null?void 0:(R=F.leadingImage)==null?void 0:(O=R.sources)==null?void 0:(w=O[0])==null?void 0:(v=w.clientResource)==null?void 0:v.imageName;F&&P&&(F.isSelected=P===D)})}};
Tkq=function(I,y,D,F){y&&D?I.style.width=D+"px":!y&&F&&(I.style.width=F+"px")};
s35=function(I,y,D){var F;(F=I.lottieEl)==null||F.goToAndPlay(0);var R;(R=y.lottieEl)==null||R.goToAndPlay(0);_.ip(_.w2,function(){var O;(O=D.lottieEl)==null||O.goToAndPlay(0)},300)};
VKq=function(I){return!(I==null||!I.iconName||(I==null?0:I.title))};
Zdq=function(I,y,D,F){D&&_.w2.cancelJob(D);D=_.w2.addLowPriorityJob(function(){F(void 0)},5E3);
F(D);y&&I!==(y.likeStatus==="LIKE")&&y.key&&_.ry(_.WS("likeStatusEntity",y.key,{key:y.key,likeStatus:I?"LIKE":"INDIFFERENT",hadUserInteraction:I}))};
_.gVt=function(I,y){return _.nC(I.entities,"accountLinkStatusEntity",y)};
IqB=function(I,y){return _.nC(I.entities,"hatsSurveyEntity",y)};
yjB=function(I,y){return _.nC(I.entities,"hatsSurveyStateEntity",y)};
Dqo=function(I,y){return _.nC(I.entities,"quantityIncrementerEntity",y)};
FLW=function(I){switch(I){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
RaJ=function(I){switch(I){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}};
OkW=function(I){switch(I){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.JjA=function(I){var y=_.kf("web_generic_client_event_wait_period ",0);y||(y=3E5);var D=LLA.get(I);!_.l("enable_web_client_experiment_event_timeout_killswitch")&&D&&(0,_.m_)()-D<y||(LLA.set(I,(0,_.m_)()),_.Jq("genericClientExperimentEvent",{eventType:I}))};
_.wk5=function(I,y){var D,F,R,O;a:{var w=I.style;if(w===void 0)w=17;else switch(w){case "LIVE":w=18;break a;default:w=17}}return{type:w,text:y?Jlo({seconds:y}):_.rY(I.text),accessibilityText:(D=I.text)==null?void 0:(F=D.accessibility)==null?void 0:(R=F.accessibilityData)==null?void 0:R.label,icon:(O=I.icon)==null?void 0:O.iconType}};
v9A=function(I){switch(I){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
SnB=function(I){if(!I)return"";var y,D=(y=_.nR().resolve(_.fR(_.cS)))==null?void 0:y(),F;if(!D&&((F=I.vibrantColorPalette)==null?0:F.iconInactiveColor))return gY(I.vibrantColorPalette.iconInactiveColor,"1");var R;return D&&((R=I.darkColorPalette)==null?0:R.iconInactiveColor)?gY(I.darkColorPalette.iconInactiveColor,"1"):I.color?gY(I.color,"1"):I.sampledThumbnailColor?(I=I.sampledThumbnailColor,"rgba("+I.red+","+I.green+","+I.blue+");"):""};
_.AZ=function(I,y){if(!I.includes("DATE_PLACEHOLDER"))return I;var D=new Date(0);D.setUTCSeconds(y);return I.replace("DATE_PLACEHOLDER",tPW(D))};
PtJ=function(I,y,D){return function(F){var R=I.command;R&&(kY(R,{form:{element:D}}),y([R],F))}};
UqL=function(I,y,D,F,R){return function(O){var w=KLH(I,y);w&&kY(w,{form:{element:D},commandController:F});R&&O.stopPropagation()}};
KLH=function(I,y){if(I.signInEndpoint&&!_.l("web_subscribe_sign_in_endpoint_killswitch"))return I.signInEndpoint;if(y){if(I.serviceEndpoints)return I.serviceEndpoints[1];if(I.onUnsubscribeEndpoints)return I.onUnsubscribeEndpoints[0]}else{if(I.serviceEndpoints)return I.serviceEndpoints[0];if(I.onSubscribeEndpoints)return I.onSubscribeEndpoints[0]}};
rjB=function(I,y){var D,F,R,O;y=y&&((D=I.unsubscribeAccessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)||((R=I.subscribeAccessibility)==null?void 0:(O=R.accessibilityData)==null?void 0:O.label);return I.longSubscriberCountText?[y,_.rY(I.longSubscriberCountText)].filter(function(w){return w}).join(" "):y};
$z=function(I,y){return y||(I==null?0:I.isChannelDelegate)?"disabled":"active"};
jiW=function(I,y){var D;switch((D=I.style)==null?void 0:D.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:$z(I)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:$z(I)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:$z(I,!0)};case "OVERLAY":return y?{style:"overlay",type:"tonal",state:$z(I)}:{style:"overlay",type:"filled",state:$z(I)};default:return y?{style:"mono",type:"tonal",state:$z(I)}:{style:"mono",type:"filled",state:$z(I)}}};
_.bp=function(){for(var I=[],y=_.J(_.go.apply(0,arguments)),D=y.next();!D.done;D=y.next())if(D=D.value)if(typeof D==="string")I.push(D);else{D=_.J(Object.entries(D));for(var F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;(R=R.next().value)&&I.push(F)}}return I.join(" ")};
o9B=function(I){switch(I){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
NAA=function(I){switch(I){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
haq=function(I,y){var D=I.map(function(F){return F.toString()});
return _.YY(function(F){if(D.includes(F.key)){y&&F.preventDefault();var R;(R=F.currentTarget)==null||R.click()}})};
_.xqL=function(){return haq(["Enter"])};
_.lq5=function(){return haq(["Enter"," "],!0)};
_.HS=function(I){if(I.composedPath)return I.composedPath();if(!I.__composedPath){for(var y=[],D=I.target;D;)y.push(D),D=D.parentNode;y.push(window);I.__composedPath=y}return I.__composedPath};
_.ea=function(I,y,D){I=_.J(I);for(var F=I.next();!F.done;F=I.next()){F=F.value;if(F===y)break;for(var R=_.J(D),O=R.next();!O.done;O=R.next())if(O=O.value,F.tagName===O||F.role==="button"&&O==="BUTTON")return!0}return!1};
qnL=function(I,y){var D,F=(D=y.observer)!=null?D:_.nR().resolve(nT);if(I){D=urB(I);var R=[];y.showOption&&R.push(F.observe(I,function(){y.visibilityCallback(!0,I)},y.showOption));
y.hideOption&&R.push(F.observe(I,function(){y.visibilityCallback(!1,I)},y.hideOption));
y.prescanOption&&y.prescanCallback&&R.push(F.observe(I,function(){y.prescanCallback()},y.prescanOption));
var O;D.visibilityMonitorKeys=((O=D.visibilityMonitorKeys)!=null?O:[]).concat(R)}};
urB=function(I){var y;return(y=I.polymerController)!=null?y:I};
_.sP=function(I){return!!_.Tj(I)};
_.VM=function(I,y,D,F,R){return function(O){var w=kZB();_.wZ(function(){if(O){E9e(O,I(),R);var v=GWe(O,I(),y,D,F,w);_.tI(v)}},"lrewVd")}};
E9e=function(I,y,D){var F=Xke(y),R=QiA(y),O=F&&pYH,w=R&&n5B;(F||R)&&qnL(I,{visibilityCallback:function(v){var P=_.nR().resolve(_.MC);v&&F?(P.resolveCommand(F,{form:{element:D?I:void 0},disableClickTracking:!0}),F=Xke(y)):!v&&R&&(P.resolveCommand(R,{form:{element:D?I:void 0},disableClickTracking:!0}),R=QiA(y))},
showOption:O,hideOption:w})};
GWe=function(I,y,D,F,R,O){var w=new Map;if(y=_.Tj(y)){var v;I=(F==null?void 0:(v=F.onTap)==null?void 0:v.value)||I;D=Yn4(y,I,D==null?void 0:D.onTap,R,O);I.addEventListener("click",D);w.set("click",D)}return function(){for(var P=_.J(w),K=P.next();!K.done;K=P.next()){var r=_.J(K.value);K=r.next().value;r=r.next().value;I.removeEventListener(K,r)}}};
_.Tj=function(I){var y;return(I=(y=_.u(I,_.ZX))==null?void 0:y.onTap)&&_.yz(I)};
Xke=function(I){var y;return(I=(y=_.u(I,_.ZX))==null?void 0:y.onVisible)&&_.yz(I)};
QiA=function(I){var y;return(I=(y=_.u(I,_.ZX))==null?void 0:y.onHidden)&&_.yz(I)};
Yn4=function(I,y,D,F,R){var O=function(v){_.nR().resolve(_.MC).resolveCommand(I,v)},w=function(v){F&&_.ea(_.HS(v),y,F)||O(v.target?{form:{element:v.target,
sourceData:I,mutationContext:R}}:void 0)};
D&&(w=function(v){D(v,O)});
return w};
fqq=function(I){switch(I){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}};
n9q=function(I){var y=I.numAvatarsInCluster;switch(I.clusterSize){case "small":return y===2?22:18;case "40":return y===2?24:22;default:return y===2?24:20}};
pkt=function(I,y){return function(D){var F=Object.keys(y);_.wZ(function(){if(I!=null&&I()){for(var R=_.J(F),O=R.next();!O.done;O=R.next())O=O.value,D.addEventListener(O,y[O]);_.tI(function(){for(var w=_.J(F),v=w.next();!v.done;v=w.next())v=v.value,D.removeEventListener(v,y[v])})}},"bXZGfe")}};
mqA=function(I){switch(n9q(I)){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""}};
MPq=function(I){switch(I){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""}};
zaL=function(I){switch(n9q(I)){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""}};
kWC=function(I){switch(I){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""}};
dq5=function(I){switch(I){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}};
aqA=function(I){return I==="medium"||I==="48"||I==="large"||I==="extra-large"||I==="extra-extra-large"||I==="giant"};
cj_=function(I){return!!((I==null?0:I.includes(3))||(I==null?0:I.includes(5)))};
CtB=function(I){var y=I.data;return{size:WLq(y.avatarImageSize),type:y.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:I.onTap,decorations:I.decorations||[],badgeText:I.badgeText,accessibilityText:I.accessibilityText,avatarButtonCustomClassName:I.avatarButtonCustomClassName,clusterLayoutConfig:I.clusterLayoutConfig}};
WLq=function(I){switch(I){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"}};
BAW=function(I){switch(I){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}};
ikH=function(I){switch(I){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
Aj4=function(I){var y=I.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",D,F=I.avatars&&I.avatars.length>0?(D=_.u(I.avatars[0],_.gP))==null?void 0:D.avatarImageSize:"AVATAR_SIZE_UNKNOWN";D=BAW(F)||0;if(y){var R,O=(R=I.avatarClusterSize)!=null?R:"AVATAR_SIZE_M";y=BAW(O);var w,v,P=Math.min((v=(w=I.avatars)==null?void 0:w.length)!=null?v:0,4),K;return{avatars:((K=I.avatars)==null?void 0:K.slice(0,4))||[],avatarSizeInPx:D,avatarStackStyle:{width:y+"px",height:y+"px",position:"relative"},avatarStyle:function(N){var h=
n9q({clusterSize:WLq(O),numAvatarsInCluster:P,avatarIndex:N});var x=BAW(O);P===3&&N===2?(x=(x-h)/2,x=(_.Pi("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*x):x=void 0;return{position:"absolute",top:P===2&&N===1||P===3&&N===2||P===4&&N>=2?"0":void 0,bottom:P===2&&N===0||P>2&&N<2?"0":void 0,left:P===2&&N===1||P>2&&(N===1||N===3)?"0":void 0,right:P<=3&&N===0||P===4&&(N===0||N===2)?"0":void 0,transform:x?"translateX("+x+"px)":void 0,width:h+"px",height:h+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(N){return{clusterSize:WLq(I.avatarClusterSize),numAvatarsInCluster:P,avatarIndex:N}},
avatarButtonCustomClassName:void 0}}var r;return{avatars:((r=I.avatars)==null?void 0:r.slice())||[],avatarSizeInPx:D,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:ikH(F),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
$qW=function(I,y,D){return function(){kY(I,{form:{element:y},commandController:D})}};
bkL=function(I){switch(I){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Hko=function(I){switch(I){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
eaW=function(I){if("accessibilityText"in I)return I.accessibilityText||"";if("title"in I){var y,D,F;return((y=I.title)==null?void 0:(D=y.accessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)||""}if("accessibility"in I){var R,O;return((R=I.accessibility)==null?void 0:(O=R.accessibilityData)==null?void 0:O.label)||""}return""};
TAC=function(I){return"inlinePlayerData"in I};
Ik=function(I){return new siq(I)};
VPW=function(I){switch(I){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"}};
Zke=function(I){switch(I){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;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
g9L=function(I){switch(I){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}};
IKA=function(I){return function(y){I&&(I.thumbnailElRef=y.thumbnailElRef,I.thumbnail=y.thumbnail,I.thumbnailOverlays=y.thumbnailOverlays,I.thumbnailSize=y.thumbnailSize)}};
yJJ=function(I){switch(I){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
FG_=function(I){var y=_.J(_.$M(!1,void 0,"E6wDDe")),D=y.next().value,F=y.next().value;_.LR(function(){var R=I==null?void 0:I();if(R){var O=_.nR().resolve(_.fR(D$q));if(O){var w={triggeringElement:R,onDwellTriggeredFn:function(){F(!0)},
onDwellEndFn:function(){F(!1)}};
O.registerElement(w);_.tI(function(){_.y0(O,w)})}}});
return D};
RiW=function(I,y,D){D?D(y):_.OE(y,I.target?{form:{element:I.target}}:void 0)};
_.Dy=function(I,y,D,F){return function(R){_.wZ(function(){function O(r){r=r.composedPath();r=_.J(r);for(var N=r.next();!N.done;N=r.next()){N=N.value;if(N===R)break;if(N.className.indexOf("HostIsClickableAdComponent")>=0||N.tagName==="A".toString()||N.tagName==="BUTTON".toString())return!0}return!1}
var w=new Map,v,P=(v=I())==null?void 0:v.onTap;if(P){v=function(r){O(r)||RiW(r,P,y)};
var K=function(r){O(r)||r.key!=="Enter"||RiW(r,P,y)};
(D==null?0:D())||_.l("enable_web_home_top_landscape_image_layout_level_click")?(R.addEventListener("tap",v),w.set("tap",v)):(R.addEventListener("click",v),w.set("click",v));if(F==null?0:F())R.addEventListener("keydown",K),w.set("keydown",K)}_.tI(function(){for(var r=_.J(w),N=r.next();!N.done;N=r.next()){var h=_.J(N.value);N=h.next().value;h=h.next().value;R.removeEventListener(N,h)}})},"D7XqOc")}};
O7C=function(I,y){var D,F=(D=I.interaction)==null?void 0:D.onTap;if(I=_.FH({elementsCommand:F,forceNewState:!0,skipOnClick:!0}))return I.onclick=function(R){Um_(R)&&(R.preventDefault(),F&&RiW(R,F,y))},Ru(I)?I:void 0};
LGC=function(I){switch(I){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
JJC=function(I){switch(I){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"}};
wIC=function(I){switch(I){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"}};
_.v2o=function(I){return _.l("rich_grid_enable_dynamic_offset")&&I?Math.max((I-_.kf("rich_grid_dynamic_offset_anchor_width",1300))/100*_.kf("rich_grid_dynamic_offset_offset_per_100",10),_.kf("rich_grid_dynamic_offset_lower_bound",-60)):0};
SSt=function(I,y){switch(y){case 4:return 16;case 1:return I<528?16:I<1024?32:48;case 2:return(I>=528?16:8)/2;case 3:return(I<528?16:I<1024?32:48)+(I>=528?16:8)/2;default:return 0}};
tNB=function(I){var y=I.originalContainerWidth;var D=I.sizing;var F=I.standardUnit;if(I.isCompactList&&y<528)return 1;switch(D){case "STANDARD":return F;case "COMPACT":return F+1;case "EXTRA_COMPACT":return _.l("web_responsive_extra_compact_2x")?F*2:_.l("web_responsive_current")?F===1?2:F%2===0?F/2*3:F+2:F<4?F*2:Math.ceil(F*3/2);case "MINI":return F>1?F*2:3;default:return F}};
KG5=function(I){var y=I.containerWidth;var D=I.peek;var F=I.gutter;var R=I.numItems;I=I.ignoreMaxWidthLimit;y=D?Math.max((y-D-F*R)/R,0):Math.max((y-F*(R-1))/R,0);return I?y:Math.min(y,Pv4)};
_.FP=function(I){var y=I.containerWidth;var D=I.hasPeek;var F=I.sizing;var R=I.marginSettings;var O=I.isCompactList;var w=I.enableFullBleedForSingleCol;var v=I.standardUnitMinWidth;F=F||"STANDARD";D=!!D;I=y>=528?16:8;var P=D?y>=528?48:24:0;R=SSt(y,R);var K=Math.max(y-R*2,0);v=_.l("kevlar_disable_min_width_override")?void 0:v;v=Math.min(Math.max(Math.floor((K-P+I)/((v!=null?v:U$W)+_.v2o(y)+I)),1),6);var r=(w=!!w&&v===1)||v===1&&F!=="STANDARD";D=D||r?K:Math.min(K,(Pv4+I)*v-I);F=tNB({originalContainerWidth:y,
sizing:F,standardUnit:v,isCompactList:O});return{itemWidth:KG5({containerWidth:D,peek:P,gutter:I,numItems:F,ignoreMaxWidthLimit:r}),gutter:I,maxContainerWidth:D,numItems:F,margin:w?0:R,contentMargin:SSt(y,1),typographyBump:KG5({containerWidth:D,peek:P,gutter:I,numItems:v,ignoreMaxWidthLimit:r})>400&&!(O&&y<528),standardUnit:v}};
Rk=function(I){switch(I){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.rJe=function(I){if(I){var y;if((y=I.responsiveContainerConfiguration)==null?0:y.responsiveSize)return Rk(I.responsiveContainerConfiguration.responsiveSize);if(I.layoutSizing)switch(I.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"}}};
jE5=function(I){if(I.fullbleed)return 1;switch(I.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
lKq=function(I,y,D,F,R,O,w,v,P){a:if(I===4&&F==="LOCKUP_CONTENT_TYPE_SOURCE")var K=1;else switch(I){case 3:K=1;break a;default:K=0}var r=o2B(I,F);a:switch(I){case 4:O=!!(O&&O<100);break a;default:O=!1}a:switch(I){case 3:case 4:var N=F==="LOCKUP_CONTENT_TYPE_CHANNEL"||F==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:N=!1}return{metadataOnThumbnail:r,isOverlay:v||r,isCard:Nae(F,w),sizing:y!=null?y:"STANDARD",typographyBump:D!=null?D:!1,isTiny:O,isCentered:N,isCollection:hiq(F),arrangement:K,addMarginForFullbleed:I===
1&&F!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:I===1&&F==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:x$H(F,R,P),disableRounding:I===5||Nae(F,w)||I===1&&F==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:hiq(F)?2:0,useLegacyTypography:!(P==null||!P.useLegacyTypography),useRichGridLegacyTypography:!(P==null||!P.useRichGridLegacyTypography)&&!_.l("web_enable_typography_bump"),compactMetadata:K===0&&F==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:P==null?void 0:P.onFocusEffect,titleMaxLines:F==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
hiq=function(I){switch(I){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
Nae=function(I,y){if(y&&I==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(I){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
o2B=function(I,y){if(y==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(I){case 5:return!0;case 4:return!1;default:return!1}};
x$H=function(I,y,D){if(y&&(D==null||!D.alwaysRespectPodcastShowAspectRatio||I!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(I){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}};
_.OA=function(I){if(I){var y;return((y=_.nR().resolve(_.fR(_.cS)))==null?0:y())?I.darkThemeImage:I.image}};
E2W=function(I,y,D,F,R,O){if(R&&O&&y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:R,height:O};if(!D)return{};R=D.size;D=D.allowFullWidth;if(y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&D)return{fullWidth:!0};if(R===void 0)return{};switch(I){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:R,height:R};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:R,height:1/ukt*R};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:R*
qSq,height:R};default:return(F==null?0:F.height)&&(F==null?0:F.width)?F.width/F.height>1?{maxWidth:R*qSq}:{maxWidth:R}:{maxWidth:R}}};
GuH=function(I){var y;return I&&((y=_.OA(I.themedImage))!=null?y:I.image)};
XIH=function(I){var y;return I==null?void 0:(y=I.sources)==null?void 0:y[0]};
QEq=function(I){switch(I){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.YSe=function(I){if(I)return"content-id-"+I};
fKS=function(I){switch(I.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"}}};
n2q=function(I){var y=_.LV.currentPageSubTypeSelector(_.Uv().getState())||"";return I?I+y:""};
pIA=function(I){switch(I){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
MNS=function(I){var y=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],D=_.J(_.$M(void 0,void 0,"JrqNsb")),F=D.next().value,R=D.next().value,O=_.J(_.$M(void 0,void 0,"rWytse"));D=O.next().value;var w=O.next().value;O=_.J(_.$M(void 0,void 0,"DHRqxe"));var v=O.next().value,P=O.next().value;return{touchFeedbackEvents:{pointerUpEvent:F,pointerDownEvent:D,pointerLeaveEvent:v},touchFeedbackOnPointerUp:_.YY(function(K){m$J(_.HS(K),y)||(R(K),w(void 0),P(void 0))}),
touchFeedbackOnPointerDown:_.YY(function(K){I==null||I(K);m$J(_.HS(K),y)||(w(K),R(void 0),P(void 0))}),
touchFeedbackOnPointerLeave:_.YY(function(K){m$J(_.HS(K),y)||(P(K),w(void 0),R(void 0))})}};
m$J=function(I,y){y=y===void 0?[]:y;y=[].concat(_.Td(y),["BUTTON".toString()]);I=_.J(I);for(var D=I.next();!D.done;D=I.next()){D=D.value;for(var F=_.J(y),R=F.next();!R.done;R=F.next())if(D.tagName===R.value)return!0}return!1};
zio=function(I){switch(I){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"}};
ku_=function(I){return I.scrollHeight-I.offsetHeight>1};
d$J=function(I,y){var D;return vU(I,((D=I.content)==null?void 0:D.length)||0,!y)};
WGL=function(I,y,D,F,R,O){if(!y||aKW){var w;return vU(I,((w=I.content)==null?void 0:w.length)||0,!0)}y=F.value;if(!D.value||!y||!I.content)return I;D=0;F=I.content.length;w=0;cJH||(cJH=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var v=cJH;for(R=R*O*v;D<=F;)O=Math.floor(D+(F-D)/2),v=vU(I,O)||I,y.firstChild&&(y.firstChild.textContent=v.content),y.scrollHeight>R?F=O-1:(w=O,D=O+1);return vU(I,w)};
Cv_=function(I,y){var D,F;return(((D=I.content)==null?void 0:D.length)||0)>(((F=y.content)==null?void 0:F.length)||0)};
BaS=function(I,y,D,F,R,O){var w=_.DF("truncated-text-content"),v=_.DF("truncated-text-content"),P=_.DF("button"),K=_.DF("button"),r=_.DF("button"),N=_.nR().resolve(_.JU),h=_.J(_.N4(function(){return d$J(I(),R())})),x=h.next().value,q=h.next().value;
h=_.J(_.N4(function(){return Cv_(I(),x())}));
var X=h.next().value,f=h.next().value,m=null;_.wZ(function(){function z(){if(w.value&&P.value&&r.value){var H=O()?I():WGL(I(),R(),w,v,y(),D());q(H);requestAnimationFrame(function(){if(w.value&&P.value&&r.value){var e=ku_(w.value)||Cv_(I(),H);f(e);if(!F()){var T=ku_(w.value),L5=D(),vH=w.value,u_=P.value,jW=r.value,xA=N==="rtl";if(vH&&u_){var dq=u_.offsetLeft;xA&&(dq=vH.offsetWidth-u_.offsetWidth-u_.offsetLeft);if(e){e=u_.offsetWidth;u_=vH.offsetWidth;var $A=T?u_-e-70:dq-70;L5="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
L5+"rem,\n      #000 "+L5+"rem,\n      #000 100%), linear-gradient(\n      to "+((xA?"left":"right")+",\n      #000 0px,\n      #000 "+$A+"px,\n      transparent "+(T?u_-e:$A+70)+"px)");vH.style.setProperty("-webkit-mask-image",L5);vH.style.setProperty("mask-image",L5)}else vH.style.setProperty("-webkit-mask-image",""),vH.style.setProperty("mask-image","");T?xA?(jW.style.setProperty("left","0"),jW.style.setProperty("right","unset")):(jW.style.setProperty("left",""),jW.style.setProperty("right","0")):
xA?(jW.style.setProperty("left","unset"),jW.style.setProperty("right",dq+"px")):(jW.style.setProperty("left",dq+"px"),jW.style.setProperty("right","unset"))}}}})}}
var B,C;(B=m)==null||(C=B.stop)==null||C.call(B);B=new _.n4(z,17);z();m=B},"KjwIxd");
_.LR(function(){q(d$J(I(),R()));f(Cv_(I(),x()));var z=function(){cJH=void 0;var C,H;(C=m)==null||(H=C.fire)==null||H.call(C)};
if(window.ResizeObserver){var B=new ResizeObserver(z);B.observe(w.value);_.tI(function(){var C,H;(C=m)==null||(H=C.stop)==null||H.call(C);B.disconnect()})}else window.addEventListener("resize",z),_.tI(function(){var C,H;
(C=m)==null||(H=C.stop)==null||H.call(C);window.removeEventListener("resize",z)})});
return{isTruncated:X,displayText:x,contentRef:w,hiddenRef:v,placeholderTruncationTextRef:P,hiddenTruncationTextRef:K,truncationTextRef:r}};
i7o=function(I){return{content:I!=null?I:""}};
AJL=function(I){return _.yz(I.onTap)||_.Tj(I.rendererContext)};
$$A=function(I){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:I.overflowMenuA11yLabel,onTap:function(y){y.preventDefault();y.stopPropagation();if(I.overflowMenuOnTap){var D=_.FH({elementsCommand:I.overflowMenuOnTap,forceNewState:!0});if(D==null?0:D.onclick)D.onclick(y)}}}};
_.wv=function(I,y,D,F,R){F=F===void 0?{}:F;if(!R||Math.random()<5E-4){y=y||null;D=D||null;I=I instanceof Error?I:new _.g6(I);if(I.args)for(var O=_.J(I.args),w=O.next();!w.done;w=O.next())w=w.value,w instanceof Object&&(F=Object.assign({},w,F));F.category="H5 Ads Control Flow";y&&(F.slot=y?"slot:  "+y.slotType:"");D&&(F.layout=D?"layout:  "+D.layoutType:"",F.layoutId=D.layoutId);R&&(F.known_error_aggressively_sampled=!0);I.args=[F];_.tq(I)}};
_.b7S=function(I,y){y=_.hS(y);_.uj(I,"yt-open-popup-action",[y,I])};
_.v_=function(I,y){_.b7S(I,_.Ug(y))};
ei5=function(I){if(!I)return"";if(H7B[I])return H7B[I];S5||(S5=_.kW("A"));S5.href!==I&&yr(S5,I);var y=S5.pathname;H7B[I]=y.startsWith("/")?y:"/"+y;return H7B[I]};
Ta_=function(){var I=ei5(window.location.href);if(I==="/")return"home";if(I.startsWith("/results"))return"search";if(I.startsWith("/watch"))return"watch";if(I.startsWith("/shorts"))return"shorts";if(I.startsWith("/hashtag"))return"hashtag";if(I.startsWith("/create_channel"))return"create_channel";if(I.startsWith("/@")||I.startsWith("/user/")||I.startsWith("/channel/"))return"channel";if(I.startsWith("/experiments"))return"experiments";if(I.startsWith("/sponsor_channel"))return"sponsorship";if(I.startsWith("/select_site"))return"settings";
if(I.startsWith("/locate"))return"locate";if(I.startsWith("/redeem"))return"redeem";if(I.startsWith("/musicpremium")||I.startsWith("/premium")||I.startsWith("/red"))return"premium";if(I.startsWith("/paid_memberships"))return"paid_memberships";if(I.startsWith("/oops"))return"oops";if(I.startsWith("/clip"))return"clip";var y;return(tU==null?void 0:(y=tU.response)==null?void 0:y.page)==="404"?"404":I.startsWith("/feed/history")?"history":I.startsWith("/feed/library")?"library":I.startsWith("/feed/subscriptions")?
"subscriptions":I.startsWith("/feed/trending")?"trending":I.startsWith("/feed/news_destination")?"news":I.startsWith("/playlist")?"playlist":I.startsWith("/minor_moment")?"minor_moment":I.startsWith("/playable/")||I.match("^/playables/(?!saved).")?"mini_app":I.startsWith("/playables")?"playables":I.startsWith("/create/live/join")?"open_in_app":I.startsWith("/feed/explore")?"explore":"browse"};
_.KV=function(){var I=tU==null?void 0:tU.response,y=I==null?void 0:I.endpoint;if(!y)return(I==null?void 0:I.page)==="watch"?"watch":Ta_();var D;I=(D=_.u(y==null?void 0:y.commandMetadata,_.nE))==null?void 0:D.webPageType;D=!1;if(I&&!sEH.includes(I))switch(I){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 F;return((F=_.u(y==null?void 0:y.commandMetadata,_.nE))==null?0:F.url)&&ei5(_.u(y.commandMetadata,_.nE).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var R;return(y=(R=_.u(y,_.kc))==null?void 0:R.browseId)?VNH[y]||"browse":"browse";default:D=!0}if(_.u(y,_.P_)||_.u(y,Z7W))return"sponsorship";R=ei5(window.location.href);if(R.startsWith("/experiments"))return"experiments";if(R.startsWith("/create_channel"))return"create_channel";
if(_.u(y,_.lK)&&R.startsWith("/shorts"))return"shorts";if(_.u(y,_.lK)&&R.startsWith("/watch"))return"watch";D&&(y=new _.g6("Unsupported mWeb page type",{pathname:R,webPageType:I}),_.vu(y));return"browse"};
UA=function(I,y,D,F){return I&&y?I!==D||y!==F?(_.wv(Error("Lh"),void 0,void 0,{"stored-slot":I,"stored-layout":y,"latest-slot":D,"latest-layout":F}),!1):!0:!1};
Ire=function(I,y,D){return I({targetId:y},function(F){return D.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},F,{contents:[D.continuationItems?_.u(D.continuationItems[0],g2B):{}]}):D.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},F,{header:D.continuationItems?D.continuationItems[0]:void 0}):Object.assign({},F,{contents:D.continuationItems?D.continuationItems:[]})})};
yQC=function(I,y,D,F){if(y=y.trackingParams){var R,O=(R=D.getScreenLayer)==null?void 0:R.call(D);D=_.VO(O);R=_.s_(O);if(D&&R){var w=_.AC(y);_.l("combine_ve_grafts")?I.graftServerVe(y,R,O):_.Oc(D,R,w);F==null||F(w)}}};
F8W=function(I){var y;return((y=DbB.get(I))==null?void 0:y.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
L8A=function(I,y){var D={type:y.slotType,controlFlowManagerLayer:RUL.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y.slotEntryTrigger&&(D.entryTriggerType=y.slotEntryTrigger.triggerType);y.slotPhysicalPosition!==1&&(D.slotPhysicalPosition=y.slotPhysicalPosition);if(I){D.debugData={slotId:y.slotId};if(I=y.slotEntryTrigger)D.debugData.slotEntryTriggerData=OsL(I);I=y.slotFulfillmentTriggers;D.debugData.fulfillmentTriggerData=[];I=_.J(I);for(var F=I.next();!F.done;F=I.next())D.debugData.fulfillmentTriggerData.push(OsL(F.value));
y=y.slotExpirationTriggers;D.debugData.expirationTriggerData=[];y=_.J(y);for(I=y.next();!I.done;I=y.next())D.debugData.expirationTriggerData.push(OsL(I.value))}return D};
OsL=function(I,y){var D={type:I.triggerType};y!=null&&(D.category=y);I.triggeringSlotId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedSlotId=I.triggeringSlotId);I.triggeringLayoutId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedLayoutId=I.triggeringLayoutId);return D};
JQC=function(I,y,D,F){y={opportunityType:y};I&&(F||D)&&(F=_.T_(F||[],function(R){return L8A(I,R)}),y.debugData=Object.assign({},D&&D.length>0?{associatedSlotId:D}:{},F.length>0?{slots:F}:{}));
return y};
wX4=function(I){return rv(I.opportunityAdapterMap).concat(rv(I.triggerAdapterMap)).concat(rv(I.fulfillmentAdapterFactoryMap)).concat(rv(I.slotAdapterFactoryMap)).concat(rv(I.layoutRenderingAdapterFactoryMap))};
rv=function(I){var y=[];I=_.J(I.values());for(var D=I.next();!D.done;D=I.next())D=D.value,D.isAdsControlFlowEventListener&&y.push(D);return y};
ok=function(I){var y=I.slotId,D=I.slotType,F=I.slotPhysicalPosition;return y===void 0?new j5("Cannot construct a slot due to the missing id.",{adSlotMetadata:I}):D===void 0?new j5("Cannot construct a slot due to the missing type.",{adSlotMetadata:I}):F===void 0?new j5("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:I}):{slotId:y,slotType:D,slotPhysicalPosition:F,managerLayer:"external",adSlotLoggingData:I.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new vto}};
SQ4=function(I){var y=I.layoutId,D=I.layoutType;return y===void 0?new N5("Cannot construct a layout due to the missing id.",{adLayoutMetadata:I}):D===void 0?new N5("Cannot construct a layout due to the missing type.",{adLayoutMetadata:I}):{layoutId:y,layoutType:D,managerLayer:"external",adLayoutLoggingData:I.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new vto,interactionLoggingAdsClientData:{}}};
ts4=function(I){if(I.querySelector("img")){var y=I.querySelector("img");y.addEventListener("error",function(){c7q(y.src).then(function(D){(D=_.Z0(D).toString())?y.src=D:y.removeAttribute("src")}).catch(function(){y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
xw=function(I,y){if(y&&(PfA(y.viewableCommand)||PfA(y.endOfSessionCommand))){var D=K8q(y==null?void 0:y.viewableCommand);y=K8q(y==null?void 0:y.endOfSessionCommand);if(!hU){var F=_.kf("custom_active_view_tos_timeout_ms");hU=F>0&&F!==36E5?new UbJ(rQW(),F):new UbJ(rQW())}jHL(hU,I);ot5(hU,I,D,y)}};
l9=function(I){hU&&jHL(hU,I)};
rQW=function(){var I=_.Pi("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(I==null?void 0:I.length)===2?I[1]:null};
PfA=function(I){I=_.yz(I);return!(I==null||!I.loggingUrls)&&I.loggingUrls.length>0};
K8q=function(I){if(!I)return[];var y=[],D,F;((F=(D=_.yz(I))==null?void 0:D.loggingUrls)!=null?F:[]).forEach(function(R){R.baseUrl&&y.push(R.baseUrl)});
return y};
N3o=function(I){if(_.l("stop_av_measurement_on_detach"))return function(){l9(I)}};
hUS=function(I){return function(){_.l("stop_av_measurement_on_detach")&&l9(I)}};
xbB=function(I){if(_.l("stop_av_measurement_on_detach"))return function(){l9(I)}};
lrA=function(I){return I.shorts.isDesktopSmallWidth};
_.unW=function(I){return I.shorts.isShortsActive};
_.qQB=function(I){return I.shorts.isWatchWhileMode};
_.u9=function(I){return I.shorts.isFullscreen};
_.q5=function(I){return I.shorts.isShortsPipActive};
GwW=function(I){var y,D;if(I=(y=_.u(I.reelsAdCardButtoned,EtB))==null?void 0:(D=y.animatedRenderingConfig)==null?void 0:D.easeOutSeconds)return I+"s"};
QHt=function(I,y,D){return _.S(function(F){return F.return(new Promise(function(R){var O=new Image;O.onload=function(){R(new XXt(I,y,D,O.naturalWidth,O.naturalHeight))};
O.src=D.toString()}))})};
YQB=function(I,y){return Math.round(I/1E-5)===Math.round(y/1E-5)};
fro=function(I,y){return Math.round(I/1E-5)===Math.round(y/1E-5)};
ntA=function(I,y){return I.year===y.year&&I.month===y.month&&I.day===y.day};
pXq=function(I,y){return I.year!==y.year?I.year<y.year:I.month!==y.month?I.month<y.month:I.day<y.day};
Mso=function(I){return I.day===mb4(I.year,I.month)?I.month===11?{year:I.year+1,month:0,day:1}:{year:I.year,month:I.month+1,day:1}:{year:I.year,month:I.month,day:I.day+1}};
zUt=function(){var I=new Date,y={year:I.getFullYear(),month:I.getMonth(),day:I.getDate()};return{start:y,end:{year:I.getFullYear()+2,month:I.getMonth(),day:I.getDate()},selectedDate:Mso(y)}};
kwq=function(I){return(new K0(2)).format(new Date(I.year,I.month,I.day))};
dbJ=function(I){return{year:I.getFullYear(),month:I.getMonth(),day:I.getDate()}};
ar_=function(I,y){I=(I+(Number(y.utcOffsetSec)+(new Date(I*1E3)).getTimezoneOffset()*60))*1E3;y=dbJ(new Date(I));return{date:y,secondsSinceMidnight:Math.floor((I-(new Date(y.year,y.month,y.day)).getTime())/1E3)}};
cQt=function(I,y){y=y.months.findIndex(function(D){return D.year===I.year&&D.month===I.month});
return y>=0?y:void 0};
W8q=function(I){if(!I)return!1;try{if(I.host&&I.host.tagName==="YT-FORMATTED-STRING"&&I.host.id==="contenteditable-textarea"||I.nodeType===Node.ELEMENT_NODE&&I.tagName==="YTD-COMMENTBOX")return!0}catch(y){return!1}return W8q(I.parentNode)};
EA=function(I){return I?!(I.tagName!=="A"||!I.href||!I.classList.contains("yt-simple-endpoint")):!1};
CfC=function(I){return I?I.tagName==="IMG"&&I.classList.contains("emoji"):!1};
B3_=function(I,y,D){if(!I)return null;var F=EA(I);if(F&&D)return y=I.pathname.substring(I.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(F&&!D)return document.createTextNode("");if(CfC(I))return D=I.alt,I=I.dataset.emojiId,!I&&y&&(y=_.GE(y,D))&&y.isCustomEmoji&&(I=y.emojiId),I?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+I+">"):document.createTextNode(D);F=I.cloneNode(!1);for(var R=0;R<I.childNodes.length;++R){var O=B3_(I.childNodes[R],y,D);O&&F.appendChild(O)}return F};
XP=function(I){return I?EA(I)?I:XP(I.lastChild):null};
isH=function(I){return I?EA(I)?I:isH(I.firstChild):null};
AQL=function(I){if(!I)return null;for(var y=I.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=XP(y))?I=y:I=(I=I.parentNode)?XP(I.previousElementSibling):null;return I};
$bH=function(I){if(!I)return null;for(var y=I.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=isH(y))?y:$bH(I.parentNode)};
bs5=function(I){var y=_.Br(),D=y.JSC$11621_getStartNode();if(!W8q(D.parentNode))return null;y=y.JSC$11621_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var F=_.gB(D,EA);if(F){if(I&&y===0||!I&&y===D.length)return F}else{if(I&&y===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.Q0(D.nextElementSibling,"display")==="block"?null:isH(D.nextElementSibling);if(!I&&y===0)return D?XP(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(I){if(0<=y&&y<D.childNodes.length)return isH(D.childNodes[y])}else if(0<
y&&y<=D.childNodes.length)return XP(D.childNodes[y-1]);return null};
Hst=function(I,y,D){if(!I)return null;if(I.nodeType===Node.TEXT_NODE)if(D){var F=AQL(I);if(F&&!/^\s+\S/.test(I.wholeText.substr(0,y)))return F}else if((F=$bH(I))&&!/\S\s+/.test(I.wholeText.substr(y,I.wholeText.length)))return F;return I.nodeType===Node.ELEMENT_NODE?D?AQL(I.childNodes[y]):$bH(I.childNodes[y]):Hst(I.parentNode,y,D)};
eUW=function(I){if(I.hasChildNodes())switch(I.tagName){case "DIV":case "A":case "SPAN":var y="";for(I=I.firstChild;I;I=I.nextSibling)y+=eUW(I);return y;default:return""}else switch(I.nodeType){case 3:return I.textContent;default:return""}};
Yw=function(I,y){return I.year===y.year&&I.month===y.month&&I.day===y.day};
fV=function(I,y){return I.year!==y.year?I.year<y.year:I.month!==y.month?I.month<y.month:I.day<y.day};
T3t=function(I){return{year:I.getFullYear(),month:I.getMonth(),day:I.getDate()}};
sHt=function(I){var y=iN_;y=y===void 0?iN_:y;y(new Date(I.year,I.month,I.day))};
nV=function(I){return T3t(new Date(Number(I.seconds)*1E3))};
Vso=function(I){return I.year!==void 0&&I.month!==void 0&&I.day!==void 0};
Zsq=function(I){return I.start!==void 0&&I.end!==void 0};
gtB=function(I){return Zsq(I)?I.start:I};
I2H=function(I){return Zsq(I)?I.end:void 0};
Dpe=function(I,y){for(var D=[],F=new Date(I.start.year,I.start.month);F.getFullYear()<I.end.year||F.getFullYear()===I.end.year&&F.getMonth()<=I.end.month;){var R=D,O=R.push,w=F.getFullYear(),v=F.getMonth(),P=I,K=y,r=void 0,N=[],h=Object.freeze({extraCssClass:"invisible"}),x=new Date(w,v),q=T3t(x);x=x.getDay();for(var X=T3t(new Date);q.month===v;){x!==y3q&&r||(r=Array.from({length:7}).fill(h),N.push(r));var f={date:{year:w,month:v,day:q.day},extraCssClass:"",debugClass:""};f.extraCssClass=K(f.date,
q,X,P).trim();r[(x-y3q+7)%7]=f;q=q.day===mb4(q.year,q.month)?q.month===11?{year:q.year+1,month:0,day:1}:{year:q.year,month:q.month+1,day:1}:{year:q.year,month:q.month,day:q.day+1};x=(x+1)%7}O.call(R,{weeks:N,monthLabel:pV.SHORTMONTHS[v]+" "+w,year:w,month:v,monthLabelExtraCssClass:N[0][2]===h?"shift-down-label":""});F.setMonth(F.getMonth()+1)}return D};
Fyt=function(I,y){y=y.months.findIndex(function(D){return D.year===I.year&&D.month===I.month});
return y>=0?y:void 0};
OUt=function(I,y){a:{var D=D===void 0?[2,3]:D;D=_.J(D);for(var F=D.next();!F.done;F=D.next()){var R=new Date;if((new Rzq(F.value)).parse(y,R,{validate:!0})){R.setHours(0,0,0,0);y=R;break a}}y=null}if(!y)return{isValid:!1,value:void 0};y=T3t(y);D=I.end;return fV(y,I.start)||fV(D,y)?{isValid:!1,value:void 0}:{isValid:!0,value:y}};
Sz4=function(I){var y=LyL;y=y===void 0?J3L:y;var D=I.columnsToShow||[],F=wOH(I.columnDimensions,I.columnsToShow,I.leftFloatingColumns,y);return D.map(function(R,O){var w=I.columns[R];if(w===void 0)throw Error("Rh");var v=F?F[O]:"";var P=I.getCustomTooltip?I.getCustomTooltip(R,w.headerTooltipParagraphs):w.headerTooltipParagraphs;var K=vUC(I,R);return{type:R,index:O,style:v,classes:K,headerName:w.headerName||"",headerIcon:w.headerIcon,headerTooltipParagraphs:P||[],headerTooltipHelpContext:w.headerTooltipHelpContext,
sortOrders:w.sortOrders||[],selectionState:w.isSelectionCheckbox?I.selectionState:void 0}})};
vUC=function(I,y){var D=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],F=I.columns[y];if(F===void 0)return"";var R=D.includes("DEFAULTS")&&F.cssClass?[F.cssClass]:[];if(D.includes("SORTING")){F.sortOrders&&F.sortOrders.length&&R.push("sortable");if(I.sorting&&I.sorting.columnType===y)a:switch(I.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var O="column-sorted";break a;default:O=""}else O="";O&&R.push(O)}D.includes("FLOATING")&&(y=I.columnsToShow.indexOf(y),I.leftFloatingColumns&&y<I.leftFloatingColumns&&
R.push("floating-column"),I.leftFloatingColumns&&y===I.leftFloatingColumns-1&&R.push("last-floating-column"));D.includes("RIGHT_ALIGN")&&F.rightAlignHeader&&R.push("right-align");return R.filter(function(w){return w}).join(" ")};
wOH=function(I,y,D,F){D=D===void 0?0:D;F=F===void 0?J3L:F;if(I){var R=[],O=0;t_t(I,y,F).forEach(function(w,v){var P="min-width:"+w.minWidth+"px;padding-left:"+w.paddingLeft+"px;padding-right:"+w.paddingRight+"px;flex:"+w.flexGrow+" 0 "+w.minWidth+"px;";w.maxWidth!==Infinity&&(P=[P,"max-width:"+w.maxWidth+"px;"].join(""));O>0&&v<D&&(P=[P,"left:"+O+"px;"].join(""));R.push(P);O+=w.minWidth+w.paddingLeft+w.paddingRight});
return R}};
t_t=function(I,y,D){D=D===void 0?J3L:D;return y.map(function(F,R){F=I&&I[F]||{};var O=R===0?D.paddingLeftFirstColumn:D.padding;F.paddingLeft!==void 0&&(O=F.paddingLeft);R=R===y.length-1?D.paddingRightLastColumn:D.padding;F.paddingRight!==void 0&&(R=F.paddingRight);return{paddingLeft:O,paddingRight:R,minWidth:F.minWidth!==void 0?F.minWidth:D.minWidth,maxWidth:F.maxWidth!==void 0?F.maxWidth:D.maxWidth,flexGrow:F.flexGrow!==void 0?F.flexGrow:D.flexGrow}})};
PrL=function(I){var y=I.reduce(function(F,R){var O=R.columnId,w={};R.headerText&&(w.headerName=_.rY(R.headerText));R.rightAlignHeader&&(w.rightAlignHeader=R.rightAlignHeader);var v;if((v=R.headerIcon)==null?0:v.iconType)w.headerIcon=_.pQ(R.headerIcon.iconType);F[O]=w;return F},{}),D=I.filter(function(F){return!F.hideColumn}).map(function(F){return F.columnId});
I=I.filter(function(F){return!!F.dimensions}).reduce(function(F,R){F[R.columnId]=R.dimensions;
return F},{});
return{columns:y,columnsToShow:D,columnDimensions:I}};
_.Kyq=function(I){return I?I.simpleText?I.simpleText:I.runs?I.runs.map(function(y){return y.text}).join(""):"":""};
hzB=function(I){var y=I.data;var D=I.onTap;var F=I.isSelected;var R=I.onFocusIn;if(!y)return{};I=UpH(y);F===void 0&&(F=y==null?void 0:y.isSelected);var O;return{text:r3H(y,I),startIcon:(O=y.icon)==null?void 0:O.iconType,state:F?0:2,type:0,style:jMt(y),onTap:oUB(y,D),accessibilityLabel:N0J(y,I),onFocusIn:function(){return R==null?void 0:R()}}};
r3H=function(I,y){if(!y)return I.text?_.Kyq(I.text):void 0};
jMt=function(I){var y;switch((y=I.style)==null?void 0:y.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
oUB=function(I,y){return function(D){y==null||y(D,I)}};
UpH=function(I){I=I.style&&I.style.styleType;return!aKW&&I==="STYLE_EXPLORE_LAUNCHER_CHIP"};
N0J=function(I,y){if(y){var D,F,R;return(R=(D=I.accessibilityData)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)!=null?R:r3H(I,!1)}};
xpq=function(){var I;return[function(y,D,F){return _.lj(I,y,D,F)},
function(y){I=y}]};
l2B=function(I,y){return _.nC(I.entities,"chipEntity",y)};
qzt=function(I,y,D,F){return function(){var R=u75.has(I.displayType)&&I.selected,O=R&&I.deselectCommand?I.deselectCommand:I.tapCommand;!O||R&&F||_.OE(O,{form:{element:y==null?void 0:y.value}});D==null||D()}};
EUJ=function(I,y){y=y==null?void 0:y.stepStates;if(I&&y){var D,F;return(D=y[I])==null?void 0:(F=D.userQuery)==null?void 0:F.userQuery}};
mK=function(I){return{signalAction:{signal:I}}};
QMW=function(){return _.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?GkS:_.XOe};
YzS=function(I,y){I=I===void 0?"SOFT_RELOAD_PAGE":I;y=y===void 0?49504:y;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.lo(_.zC("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:y}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:I}}]}}}};
f2B=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lo(_.zC("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:QMW()}};
nUq=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:QMW()}};
pOS=function(I,y){var D=_.lo(_.zC("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),F=_.lo(_.zC("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),R={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lo(_.zC("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};R.serviceEndpoint=I?I:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[mK("SOFT_RELOAD_PAGE")]}};return{title:D,bodyText:F,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:R},
style:{value:y!=null?y:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
M_q=function(I){I=I===void 0?{}:I;return{title:_.lo(I.localizedZeroStateTitleText===void 0?"":I.localizedZeroStateTitleText),bodyText:_.lo(I.localizedZeroStateMessage===void 0?"":I.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lo(I.localizedZeroStateButtonText===void 0?"":I.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[mpB]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
kkq=function(I){I=I===void 0?{}:I;return{title:_.lo(I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText),titleLength:19,subtitle:_.lo(I.localizedOptInMessage===void 0?"":I.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lo(_.zC("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:_.lo(_.zC("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:[zzL]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
c3t=function(I,y){var D=y=y===void 0?{}:y;y=D.offlineTitleText===void 0?"":D.offlineTitleText;var F=D.offlineDescriptionText===void 0?"":D.offlineDescriptionText,R=D.formattedSupplementalText,O=D.actionButtonText===void 0?"":D.actionButtonText,w=D.titleText===void 0?"":D.titleText;D=D.descriptionText===void 0?"":D.descriptionText;var v={title:O,accessibilityText:O,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};I||(w=y,D=F,v={title:O,accessibilityText:O,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:_.lo(w),titleLength:w.length,overrideTitleMaxFontSize:30,subtitle:_.lo(D),supplementalText:R,primaryButton:{buttonViewModel:v},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[dpB]},darkTileImage:{thumbnails:[a2A]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.B0B=function(I,y,D,F,R,O,w,v,P,K,r){R=R===void 0?!1:R;O=O===void 0?!1:O;w=w===void 0?0:w;v=v===void 0?-Infinity:v;P=P===void 0?!1:P;K=K===void 0?!1:K;r=r===void 0?!1:r;var N=[],h=_.lo(_.zC("SMART_DOWNLOADS",void 0,"Smart downloads")),x=_.lo(WyB(w,v,I.length));v=w=void 0;K?w={statementBannerRenderer:c3t(r,F)}:R?I.length>0?v=Cre(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.l("kevlar_manual_downloads_above"),h,x):P?v={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:_.zC("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.zC("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:_.E35}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:O&&(v={backgroundPromoRenderer:{bodyText:_.lo(_.zC("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"}}}):
O&&(v={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:_.zC("TURN_ON",void 0,"Turn on"),accessibilityText:_.zC("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=_.lo(_.zC("YOUR_DOWNLOADS",void 0,"Your downloads"));F=void 0;y.length>0?(F=void 0,_.l("kevlar_display_downloads_numbers")&&(F=_.lo(_.kI("VIDEO_COUNT",y.length))),F=Cre(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,D,F)):R||I.length||
K||(F={backgroundPromoRenderer:{bodyText:_.lo(_.zC("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}}}});w?N.push({richSectionRenderer:{content:w}}):v&&!_.l("kevlar_manual_downloads_above")&&N.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
F&&N.push({richSectionRenderer:{content:F,loggingDirectives:{clientVeSpec:{uiType:51721}}}});v&&_.l("kevlar_manual_downloads_above")&&N.push({richSectionRenderer:{content:v,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(y.length>0||R&&I.length>0&&!K)&&N.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lo(_.zC("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:N}};
_.A3B=function(I){return iU5(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.$p_=function(I){return iU5(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
iU5=function(I,y){var D=[];I=Cre(I,y,!0);D.push({richSectionRenderer:{content:I}});return{contents:D}};
Cre=function(I,y,D,F,R){D=D===void 0?!1:D;var O="RESPONSIVE_SIZE_STANDARD";_.l("kevlar_standard_rich_grid_on_offline_home")&&y==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?O="RESPONSIVE_SIZE_STANDARD":_.l("kevlar_modern_downloads_compact")?O="RESPONSIVE_SIZE_COMPACT":_.l("kevlar_modern_downloads_extra_compact")?O="RESPONSIVE_SIZE_EXTRA_COMPACT":_.l("kevlar_modern_downloads_tiny")&&(O="RESPONSIVE_SIZE_TINY");I={isExpanded:D,contents:M5(I),entitySelectorType:y,responsiveContainerConfiguration:{responsiveSize:O}};
F&&(I.title=F);R&&(I.subtitle=R);D||(_.l("kevlar_smart_downloads_show_more_button")?(I.showMoreButton={buttonRenderer:{accessibility:{label:_.zC("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.lo(_.zC("SHOW_MORE",void 0,"Show more"))}},I.showLessButton={buttonRenderer:{accessibility:{label:_.zC("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.lo(_.zC("SHOW_LESS",void 0,"Show less"))}}):(I.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.zC("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}}}},I.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.zC("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}}}},I.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.zC("VIEW_ALL",void 0,"View all"),accessibilityText:_.zC("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:_.h_("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:I}};
M5=function(I){var y=[];I=_.J(I);for(var D=I.next();!D.done;D=I.next())if(D=D.value,Jm_(D)){var F=y,R=F.push;var O=void 0;if(D==null?0:(O=D.videoEntity)==null?0:O.videoId){O=L0(_.oq().getState(),D.videoEntity.videoId);var w=_.oq().getState();var v=_.fC(D.videoEntity.videoId,"mainVideoEntity");w=!!_.HW(w.entities)[v];w={videoId:D.videoEntity.videoId,title:uo(D.videoEntity.title),shortBylineText:uo(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:w&&_.l("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:aIH(D.videoEntity.videoId,O,D.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.zC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};D.videoEntity.lengthSeconds&&(w.thumbnailOverlays=J5e(D.videoEntity.lengthSeconds,O));w.isWatched=O>0;_.l("kevlar_modern_downloads_page")&&(w.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.zC("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},w.badges=void 0);D=w}else D={};R.call(F,{richItemRenderer:{content:{videoRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Lko(D)){F=y;R=F.push;var P=v=O=void 0,K=void 0,r=void 0,N=void 0,h=void 0,x=void 0,q=void 0,X=void 0,f=void 0,m=void 0;w=D.mainPlaylistEntity.playlistId;var z=D==null?void 0:(m=D.mainPlaylistEntity)==null?void 0:(f=m.thumbnailStyleData)==null?void 0:(X=f[0])==null?void 0:(q=X.value)==null?void 0:(x=q.collageThumbnail)==
null?void 0:x.coverThumbnail;if(w&&z){x=cx4(w);!_.l("enable_offline_playlist_page")&&(D==null?0:(h=D.mainPlaylistEntity)==null?0:h.videos)&&(h=D==null?void 0:(N=D.mainPlaylistEntity)==null?void 0:(r=N.videos)==null?void 0:r[0],r=_.Xw(h).entityId,r=JSON.parse(r).videoId,r!==void 0&&(x=L0(_.oq().getState(),r),x=_.xK(r,w,void 0,void 0,x)));r=[];if(D==null?0:(K=D.mainPlaylistEntity)==null?0:(P=K.videos)==null?0:P.length)P=Bp5(),K=Object,r=K.assign,N=(N=CLS(D==null?void 0:D.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.lo(N),icon:{iconType:"PLAYLISTS"}}}:void 0,r=[P,r.call(K,{},(v=N)!=null?v:{})];D={playlistId:w,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:z}},navigationEndpoint:x,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:r,title:uo(D.mainPlaylistEntity.title),shortBylineText:uo(D==null?void 0:(O=D.channelEntity)==null?void 0:O.title),badges:[{metadataBadgeRenderer:{label:_.zC("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.l("kevlar_modern_downloads_page")&&(D.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:bUW,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:w,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},D.badges=void 0)}else D=void 0;R.call(F,{richItemRenderer:{content:{playlistRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return y};
WyB=function(I,y,D){I=I?f6t(I):"";y!==void 0&&isFinite(y)?y===0?y=_.zC("UPDATING",void 0,"Updating..."):(y=LnS(new Date(y),new Date),y=_.zC("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var F="";I&&y&&(F=" \u2022 ");if(D&&_.l("kevlar_display_downloads_numbers")){D=_.kI("VIDEO_COUNT",D);if(I||y)F=" \u2022 ";return D+F+I+F+y}return I+F+y};
HUL=function(I){return ZMB(I.entities).length};
_.ezq=function(I,y,D){var F=Rk(I.responsiveSize),R;I=!((R=I.responsiveMap)==null||!R.some(function(O){return O.containerSize==="CONTAINER_SIZE_NARROW"&&O.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:D,containerWidth:y,sizing:F,enableFullBleedForSingleCol:!1,isCompactList:F==="COMPACT"&&I}};
T0W=function(I,y){return _.nC(I.entities,"votingEntity",y)};
zE=function(I){if(I){var y;return((y=_.nR().resolve(_.fR(_.cS)))==null?0:y())?I.darkTheme:I.lightTheme}};
sMA=function(I,y){if(I.simpleText)return Object.assign({},I,{simpleText:Jf(I.simpleText,y)});if(!I.runs)return I;for(var D=Object.assign({},I,{runs:[]}),F=0,R=_.J(I.runs),O=R.next();!O.done;O=R.next())if(O=O.value,O.text)if(F+O.text.length<=y)D.runs.push(O),F+=O.text.length;else return D.runs.push(Object.assign({},O,{text:Jf(O.text,y-F)})),D;return I};
V_A=function(I,y){return _.nC(I.entities,"chipBarStateEntity",y)};
ZUq=function(I){switch(I){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""}};
gUq=function(I,y){return{triggeringElement:I,onDwellTriggeredFn:function(){var D={triggeringElement:I,loadVideoPreviewEventData:y},F=document.querySelector(".video-preview");F&&F.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"))}}};
IlB=function(I){var y=_.nR().resolve(_.fR(D$q));return function(D){var F=function(){var R=I(D);return y&&R?gUq(D,R):null};
_.wZ(function(){var R=F();y&&R&&Promise.resolve().then(function(){y.registerElement(R)});
_.tI(function(){y&&R&&Promise.resolve().then(function(){_.y0(y,R)})})},"p0smCb")}};
DAC=function(I){var y=I.dataset.resizeObserverId;if(y)return y;y=""+ynq++;return I.dataset.resizeObserverId=y};
F3e=function(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var D=DAC(y.target),F=Object.assign({},{target:y.target},kw.get(D));if(F!=null&&F.contentRect?F.contentRect.width!==y.contentRect.width||F.contentRect.height!==y.contentRect.height:1)for(kw.set(D,{borderBoxSize:y.borderBoxSize,contentBoxSize:y.contentBoxSize,contentRect:y.contentRect,devicePixelContentBoxSize:y.devicePixelContentBoxSize}),D=_.J(dv.get(D)||[]),F=D.next();!F.done;F=D.next())F=F.value,F(y)}};
OyH=function(I,y){var D=DAC(I);dv.has(D)||dv.set(D,new Set);dv.get(D).add(y);kw.has(D)&&y(Object.assign({},{target:I},kw.get(D)));ak||(ak=new Ru5(F3e));y=ak;y.observe(I)};
L3_=function(I,y){var D=DAC(I);dv.has(D)&&(dv.get(D).delete(y),dv.get(D).size===0&&(dv.delete(D),kw.delete(D),ak.unobserve(I),delete I.dataset.resizeObserverId));dv.size===0&&ak&&(ak.disconnect(),ak=void 0)};
w8o=function(I,y){var D=_.nR().resolve(nT);return JnJ.map(function(F){return D.observe(I,y,F)})};
vlq=function(I){var y=_.nR().resolve(nT);I.forEach(function(D){y.unobserveByKey(D)})};
_.c_=function(I){var y=_.J(mML()),D=y.next().value,F=y.next().value,R=Object.assign({},SLB,I),O=tG5(function(w){var v=w.contentRect.height;if((w=w.contentRect.width)||v||R.canHaveZeroSize)D.width()===w&&D.height()===v||F(D,{height:v,width:w})},R.throttleMs);
return[D,function(w){var v=[];R.useVisibilityObserver&&(v=w8o(w,function(P,K){requestAnimationFrame(function(){K==="visible"?OyH(w,O):L3_(w,O)})}));
v.length||OyH(w,O);return function(){v.length&&(vlq(v),v.length=0);L3_(w,O)}}]};
K3W=function(I,y,D,F,R){I=y?I.switchOffCommand:I.switchOnCommand;if(F&&R)PmW(I,D,R);else{var O,w;(O=_.FH({elementsCommand:I}))==null||(w=O.onclick)==null||w.call(O,D)}};
PmW=function(I,y,D){I=_.FH({elementsCommand:I,additionalCommandArgs:{commandController:{onSuccess:function(){D(!1)},
onServerError:function(){D(!1)}}}});
if(I==null?0:I.onclick)I.onclick(y),D(!0)};
rnq=function(I){if(I)return _.u(I,UAt)};
jSH=function(I){if(I)switch(I){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
olq=function(I,y){if(!((I==null?0:I.entitySelectorType)&&(I==null?0:I.entityKey)))return{};switch(I.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.l("enable_web_shorts_captions_language_command")){var D;var F=(D=_.ft())==null?void 0:D.getOption("captions","track");var R,O=typeof(F==null?void 0:F.translationLanguage)==="object"&&((R=F.translationLanguage)==null?void 0:R.languageName)||(F==null?void 0:F.displayName)||"";F={data:Object.assign({},
!!O&&{selectionText:{content:O}},!!O&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof F==="undefined"})}}else F={};return F;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.l("web_shorts_audio_track_picker")){var w;R=((w=_.ft())==null?void 0:w.getAudioTrack())||void 0;D=R==null?void 0:(O=R.getLanguageInfo())==null?void 0:O.getName();R={data:Object.assign({},{selectionText:{content:D}},D&&!(R==null?0:(F=R.getLanguageInfo())==
null?0:F.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else R={};return R;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return F=I!=null&&I.entityKey?(F=_.Qz(y,I.entityKey))?{isHidden:(F==null?void 0:F.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},F;default:return{}}};
NWt=function(I,y){return function(D){var F=function(R){_.ea(_.HS(R),D,y)||I(R)};
D.addEventListener("click",F);return function(){D.removeEventListener("click",F)}}};
_.huq=function(I){return function(){return _.u(I(),_.W_)}};
xAL=function(I){switch(I){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
llq=function(I){return xAL(I==null?void 0:I.all)};
uVq=function(I){var y={};(I=I==null?void 0:I.padding)&&(y.padding=xAL(I.vertical)+"px "+xAL(I.horizontal)+"px");return y};
qLq=function(I){switch(I){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
ElL=function(I){switch(I){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
GH5=function(I){switch(I){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
X8A=function(I,y){if(y)return{containerStyles:uVq(y),itemStyles:function(D,F){var R={flex:"1"},O=y==null?void 0:y.flexDirection;b:switch(O){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":D=!!D;break b;default:D=!!F}D||(D=_.Pi("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",O==="FLEX_DIRECTION_ROW"||O==="FLEX_DIRECTION_ROW_REVERSE"?(O=llq(y==null?void 0:y.gap)+"px",D?R["margin-left"]=O:R["margin-right"]=O):R["margin-bottom"]=llq(y==null?void 0:y.gap)+"px",R.flex=
"1");return R},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(y==null?void 0:y.flexDirection)==="FLEX_DIRECTION_ROW"||(y==null?void 0:y.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
QS_=function(I){return I<528?"CONTAINER_SIZE_NARROW":I<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
YLB=function(I,y){I=_.J(I.responsiveMap||[]);for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.containerSize===y)return D.containerType};
_.flB=function(I,y){if(y){var D=y.responsiveSize;I=QS_(I);var F=YLB(y,I);if(F&&D){a:{if(F==="CONTAINER_TYPE_VERTICAL_LIST")if(D==="RESPONSIVE_SIZE_STANDARD"){if(I!=="CONTAINER_SIZE_NARROW"){var R="50%";break a}}else{R=I==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}R=void 0}return{responsiveSize:D,containerSize:I,containerType:F,force16By9ThumbnailAspectRatio:!y.enableContentSpecificAspectRatio,contentPreviewWidth:R,fullbleed:(F==="CONTAINER_TYPE_VERTICAL_LIST"||F==="CONTAINER_TYPE_GRID")&&I===
"CONTAINER_SIZE_NARROW"&&!1}}}};
nlC=function(I,y){var D={};switch(y){case "CONTAINER_TYPE_VERTICAL_LIST":D["flex-direction"]="column";D.padding="0 "+I.margin+"px";break;case "CONTAINER_TYPE_GRID":D["flex-direction"]="row";D.flex="none";D["flex-wrap"]="wrap";D.width=I.maxContainerWidth?I.maxContainerWidth+I.gutter+"px":void 0;D.padding="0 "+(I.margin-I.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":D["flex-direction"]="row",D.flex="none",D["overflow-x"]="auto",D.width=I.maxContainerWidth?I.maxContainerWidth+"px":void 0,
D.padding="0 "+I.margin+"px"}return D};
p8q=function(I,y){if(y){var D=YLB(y,QS_(I));a:switch(D){case "CONTAINER_TYPE_GRID":var F=3;break a;default:F=1}F=_.ezq(y,I,F);var R=_.FP(F);return{containerLayoutConfig:_.flB(I,y),containerStyles:nlC(R,D),itemStyles:function(O,w){O={};switch(D){case "CONTAINER_TYPE_VERTICAL_LIST":w||(O["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":O.width=R.itemWidth+"px";O["margin-right"]=R.gutter/2+"px";O["margin-left"]=R.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":O.width=R.itemWidth+
"px",O.flex="none",w||(O["margin-right"]=R.gutter+"px")}return O}}}};
dAt=function(I,y,D){if(y)return[mAJ];switch(I){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[CV];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return D?[CV]:[MGJ,CV];case "TRANSFER_STATE_PAUSED_BY_USER":return[zu_,CV];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[kHq,CV];default:return[mAJ]}};
al_=function(I,y,D,F){return dAt(I,y,F).map(function(R){var O=R.text,w=R.iconType,v=R.videoAction;R=R.playlistAction;O=O?{content:O}:void 0;w=w&&{sources:[{clientResource:{imageName:w}}]};var P=(0,_.e$.unsafeClone)(D);if(P){var K=_.u(P,_.mC),r=_.u(P,_.MY);K&&v?K.action=v:r&&R&&(r.action=R)}return{title:O,leadingImage:w,rendererContext:P&&{commandContext:{onTap:{innertubeCommand:P}}}}})};
cnA=function(I){I=_.Tj(I.rendererContext);var y;return(y=_.u(I,_.MY))==null?void 0:y.playlistId};
W3H=function(I){var y;return(y=I.listItems)==null?void 0:y.some(function(D){var F;return _.sP((F=_.u(D,_.BS))==null?void 0:F.rendererContext)})};
CmS=function(I,y){var D;(D=I[(y+1)%I.length])==null||D.focus()};
BWB=function(I,y){var D=I.length,F;(F=I[y===-1?D-1:(y-1+D)%D])==null||F.focus()};
_.AU=function(I){var y=_.nR().resolve(_.fR(_.cS));return y!=null&&y()?I.darkThemeColorPalette:I.lightThemeColorPalette};
_.b9=function(I){return{primaryTextColor:$w(I,0),secondaryTextColor:$w(I,1),optionColor:$w(I,2),backgroundColor:$w(I,3),videoBackgroundColor:$w(I,4)}};
$w=function(I,y){if(I){switch(y){case 0:I=I.primaryTitleColor;break;case 1:I=I.secondaryTitleColor;break;case 2:I=I.surgeColor;break;case 3:I=I.section2Color;break;case 4:I=I.section3Color;break;default:return}if(I)return _.Vp(I)}};
$A5=function(I){var y=I.element;var D=I.veType;var F=I.storedVisualElement===void 0?null:I.storedVisualElement;var R=I.elementIndex===void 0?0:I.elementIndex;I=I.clientYouTubeData;var O=_.VO();O!==iyS&&(AnB.clear(),iyS=O);if(y.visualElement&&AnB.has(y.visualElement))return null;if(F&&AnB.has(F))return y.visualElement=F,null;D=_.c4(_.W4(),{veType:D,elementIndex:R,clientYouTubeData:I});if(!D)return null;y.visualElement=D;AnB.add(D);return D};
_.H_=function(I,y,D,F){D=D===void 0?null:D;F=F===void 0?byH:F;var R=R===void 0?null:R;Tv(function(){if(y){D instanceof Function&&(D=D());var O=$A5({element:y,veType:I,storedVisualElement:D,clientYouTubeData:void 0});O&&(dy(y,{data:R,observer:_.nR().resolve(nT),hideOption:n5B,showOption:pYH,layer:y.layer}),F(O))}})};
HyW=function(I){return I?_.Z7(I):""};
euA=function(I){return(I==null?void 0:I.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
TWA=function(I,y){return _.nC(I.entities,"videoOverviewAsyncDataEntity",y)};
sSq=function(I,y){var D;return"linear-gradient(to bottom, "+((D=y==null?void 0:y.map(function(F){var R=I?F.darkThemeColor:F.lightThemeColor;return R?_.Z7(R)+" "+((F==null?void 0:F.startLocation)||0)*100+"%":"transparent"}))==null?void 0:D.join(", "))+")"};
VGt=function(I,y,D,F,R){if(!((F==null?0:F.height)&&(F==null?0:F.width)))return{size:0};var O=F.width;F=F.height;if(R)return y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&O>F?{size:312/qSq}:y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(D!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||I!==1&&I!==2||y!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&y!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&y!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||F===O)switch(I){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||F>O)switch(I){case 1:case 3:return{size:240*ukt};default:return{size:360*ukt}}switch(I){case 1:case 2:return{size:1/qSq*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.ZyJ=function(I){if(!("matchMedia"in window))return _.o8(Error("Sh")),function(){return!1};
var y=window.matchMedia(I);I=_.J(_.$M(y.matches,void 0,"waIHpe"));var D=I.next().value,F=I.next().value,R=function(O){F(O.matches)};
y.addEventListener?(y.addEventListener("change",R),_.tI(function(){y.removeEventListener("change",R)})):y.addListener&&(y.addListener(R),_.tI(function(){y.removeListener(R)}));
return D};
glt=function(I){return I==="IMAGE_BANNER_STYLE_INSET"||I==="IMAGE_BANNER_STYLE_UNKNOWN"};
Isq=function(){if(!("matchMedia"in window))return _.o8(Error("Sh")),function(){return 0};
var I=window.matchMedia("(max-width: 527.9px)"),y=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),D=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),F=window.matchMedia("(min-width: 1024px)"),R=_.J(_.$M(I.matches,void 0,"TmIKcb")),O=R.next().value,w=R.next().value;R=_.J(_.$M(y.matches,void 0,"Z0fTKd"));var v=R.next().value,P=R.next().value;R=_.J(_.$M(D.matches,void 0,"w4xy7b"));var K=R.next().value,r=R.next().value;R=_.J(_.$M(F.matches,void 0,"DrbNC"));var N=R.next().value,
h=R.next().value,x=function(m){w(m.matches)},q=function(m){P(m.matches)},X=function(m){r(m.matches)},f=function(m){h(m.matches)};
_.LR(function(){I.addEventListener?(I.addEventListener("change",x),y.addEventListener("change",q),D.addEventListener("change",X),F.addEventListener("change",f)):I.addListener&&(I.addListener(x),y.addListener(q),D.addListener(X),F.addListener(f));_.tI(function(){I.removeEventListener?(I.removeEventListener("change",x),y.removeEventListener("change",q),D.removeEventListener("change",X),F.removeEventListener("change",f)):I.removeListener&&(I.removeListener(x),y.removeListener(q),D.removeListener(X),
F.removeListener(f))})});
return function(){return O()?1:v()?2:K()?3:N()?4:0}};
yBB=function(I){var y=0;I=_.J([I.title,I.metadata,I.actions,I.description,I.attribution]);for(var D=I.next();!D.done;D=I.next())D.value&&y++;return y};
DxJ=function(I){return I===1||I===2?1:0};
R1H=function(I){I=(new FUB).parse(I);return(new D_).render(I).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(y){var D=y.split(":").map(Number),F=0,R=0;if(D.length===3)D=_.J(D),F=D.next().value,R=D.next().value,D=D.next().value;else if(D.length===2)D=_.J(D),R=D.next().value,D=D.next().value;else if(D.length===1)D=_.J(D).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(F*3600+R*60+D)+'" role="button">'+y+"</span>"})};
O$S=function(I){I=_.J(I.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var y=I.next(),D={};!y.done;D={clickHandler$jscomp$5:void 0},y=I.next()){y=y.value;D.clickHandler$jscomp$5=function(R){R=Number(R.target.getAttribute("data-time"));if(isNaN(R))throw Error("Uh");var O;(O=_.ft())==null||O.seekTo(R,!0)};
var F=function(R){return function(O){O.key!=="Enter"&&O.key!=="Space"||(0,R.clickHandler$jscomp$5)(O)}}(D);
y.setAttribute("tabindex","0");y.removeEventListener("click",D.clickHandler$jscomp$5);y.removeEventListener("keydown",F);y.addEventListener("click",D.clickHandler$jscomp$5);y.addEventListener("keydown",F)}};
LUq=function(){return _.t("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.t(e5,{percentWidth:100}),_.t(e5,{animationDelay:200}),_.t(e5,{animationDelay:400}),_.t(e5,{animationDelay:600}),_.t(e5,{animationDelay:800,percentWidth:60}),_.t("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.t(e5,{percentWidth:100}),_.t(e5,{animationDelay:200}),_.t(e5,{animationDelay:400}),_.t(e5,{animationDelay:600,percentWidth:50}))};
e5=function(I){return _.t("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(I.percentWidth===void 0?100:I.percentWidth)+"%"},_.t("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(I.animationDelay===void 0?0:I.animationDelay)+"ms"}))};
JB5=function(){var I=_.J(_.$M(function(){return""},void 0,"dXJHWc")),y=I.next().value;
return[function(){return y()()},
I.next().value]};
wKB=function(I,y){I=I?f6t(I):"";y!==void 0&&isFinite(y)?y===0?y=_.zC("UPDATING",void 0,"Updating..."):(y=LnS(new Date(y),new Date),y=_.zC("UPDATED_TIME",{relative_time:y},"Updated "+y)):y="";var D="";I&&y&&(D=" \u2022 ");return _.lo(I+D+y)};
tXW=function(I,y,D,F,R,O){y=y===void 0?0:y;var w=v8H[y],v=w.title,P=w.iconType,K=w.topButtonRenderer,r=w.sectionClientVE;w=w.videoClientVE;var N;if(y!==1||I.length){D=[];I=_.J(I);for(F=I.next();!F.done;F=I.next()){var h=F.value;if(Jm_(h))D.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:h.videoEntity.videoId,title:uo(h.videoEntity.title),shortBylineText:uo(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.zC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:w}}}}}});else if(Lko(h)){F=D;var x=F.push;var q=void 0,X=void 0,f=void 0,m=void 0,z=void 0,B=void 0,C=void 0,H=void 0,e=h.mainPlaylistEntity.playlistId,T=h==null?void 0:(H=h.mainPlaylistEntity)==null?void 0:(C=H.thumbnailStyleData)==null?void 0:(B=C[0])==null?void 0:(z=B.value)==null?void 0:(m=z.collageThumbnail)==null?void 0:m.coverThumbnail;m=cx4(e);if(!_.l("enable_offline_playlist_page")&&
(h==null?0:(f=h.mainPlaylistEntity)==null?0:f.videos)){b:{f=h==null?void 0:(X=h.mainPlaylistEntity)==null?void 0:X.videos;X=_.oq().getState().entities;if(f!=null&&f.length&&X)for(f=_.J(f),z=f.next();!z.done;z=f.next())if(z=_.Xw(z.value).entityId,(z=JSON.parse(z).videoId)&&sm_(X,z)==="TRANSFER_STATE_COMPLETE"){X=z;break b}X=""}X!==void 0&&(m=L0(_.oq().getState(),X),m=_.xK(X,e,void 0,void 0,m))}X=C3q(_.zC("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),cx4(e));h=e&&T&&X?{playlistId:e,navigationEndpoint:m,
viewPlaylistText:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:T}},title:uo(h.mainPlaylistEntity.title),shortBylineText:uo(h==null?void 0:(q=h.channelEntity)==null?void 0:q.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Swt,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:e,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zC("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:w}}}:
void 0;x.call(F,{gridPlaylistRenderer:h})}}w={gridRenderer:{items:D}};y===1&&(N=wKB(R,O))}else if(F){var L5=_.lo((x=D==null?void 0:D.localizedPromptMessage)!=null?x:"");w={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lo(_.zC("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.E35}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lo(_.zC("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};N=wKB(R,O)}else L5=_.lo(_.zC("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
w={};return{contents:[{shelfRenderer:{title:v,titleAnnotation:N,icon:{iconType:P},subtitle:L5,content:w,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:K}]}}}}],loggingDirectives:{clientVeSpec:{uiType:r}}}};
Pcq=function(I,y,D,F,R,O,w,v,P,K,r){D=D===void 0?{}:D;F=F===void 0?{}:F;R=R===void 0?!1:R;O=O===void 0?!1:O;w=w===void 0?!1:w;v=v===void 0?!1:v;P=P===void 0?!1:P;K=K===void 0?0:K;r=r===void 0?-Infinity:r;if(!(y.length||I.length||R||v))return O?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M_q(D)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.lo(_.zC("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 N=[];I.length&&N.push(tXW(I,0));v?N.push({contents:[{statementBannerRenderer:c3t(P,F)}]}):R?N.push(tXW(y,1,D,w,K,r)):O&&N.push({contents:[{statementBannerRenderer:kkq(D)}]});(R&&y.length||I.length)&&N.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lo(_.zC("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 N.map(function(h){return{itemSectionRenderer:h}})};
TE=function(I,y){if(typeof I!=="object")return null;I=_.J(Object.entries(I));for(var D=I.next();!D.done;D=I.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;if(D===y)return D;if(F=TE(F,y))return D+"."+F}return null};
sA=function(I){var y=I.content;return(I=I.styleRuns)&&y?{runs:I.map(function(D){var F={text:y.slice(D.startIndex,D.startIndex+D.length)};D.fontColor&&(F.textColor=D.fontColor);return F})}:{simpleText:y}};
rBq=function(I,y,D,F){var R=KUo;F&&(I.quantity=F);if(!I.quantity||!I.maxQuantity)return{};F=I.minusButton;var O=I.plusButton,w,v,P,K;return{value:I.quantity,maxValue:I.maxQuantity,onChangeCallback:function(r){R(I,r)},
minusLabel:(w=_.u(F,UxB))==null?void 0:w.label,minimumReachedLabel:(v=_.u(F,UxB))==null?void 0:v.limitReachedLabel,plusLabel:(P=_.u(O,UxB))==null?void 0:P.label,maximumReachedLabel:(K=_.u(O,UxB))==null?void 0:K.limitReachedLabel,disabled:y,onRemoveCommand:D}};
KUo=function(I,y){var D=I.quantityIncrementerEntityKey;if(D){var F={};F.quantity=y;_.ry(_.V0("quantityIncrementerEntity",D,F));I.onChangeCommand&&_.OE(I.onChangeCommand)}};
jAJ=function(I){if(I)return I===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(I).overflowY)?I:jAJ(I.parentElement)};
h1_=function(I,y){(I=o8_(I))&&((_.l("enable_mini_app_command_handler_mweb_fix")?0:y)?NL5.push({command:I,sourceData:{},commandContext:void 0}):_.nR().resolve(_.MC).resolveCommand(I))};
o8_=function(I){return _.u(I,_.Iu)};
xxB=function(){var I=window.performance.timeOrigin+window.performance.now(),y=(new _.Zy).setSeconds(I/1E9);return _.Fj(y,2,_.te(I%1E9),0)};
u_5=function(I,y){var D;I=(D=_.u(_.u(I,_.Iu),ls5))==null?void 0:D.methodName;var F,R;(D=window.youtubewebview||((F=window.webkit)==null?void 0:(R=F.messageHandlers)==null?void 0:R.youtubewebview))&&I&&(F=new gv,I=_.BB(F,1,I),I=_.VB(I.JSC$12826_serializeBinary()),y=_.VB(y),D.postMessage(I+","+y))};
Iz=function(I,y){var D=_.u(_.u(I,_.Iu),ls5);D&&(y&&(D.serializedAdditionalMetadata=_.VB(y)),h1_(I,!0))};
qw5=function(I,y,D){setTimeout(function(){_.Ok(I,y)},D)};
E8e=function(I){switch(I){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"}};
GK5=function(){return!!_.Pi("ID_TOKEN")};
YwS=function(I){return I instanceof Error&&I.cause instanceof XKA&&I.cause.rpcErrorCode!==void 0?!QAW.includes(I.cause.rpcErrorCode):!0};
n8A=function(){return _.qC(fsq,{authuser:""+(_.Pi("SESSION_INDEX")||0)})};
yo=function(I,y,D,F){D=D===void 0?"MINI_APP_SDK_API_UNSPECIFIED":D;F=F===void 0?"":F;var R=new _.g6;D={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:F,sdkApi:D};I instanceof Error&&(R.message=I.message,R.name=I.name,I.cause instanceof XKA&&I.cause.rpcErrorCode!==void 0&&(D.rpcErrorCode=I.cause.rpcErrorCode));var O;(O=y.onError)==null||O.call(y,{loggingError:R,metadata:D})};
mxB=function(I,y,D,F){switch(I){case "MINI_APP_SOURCE_GAMESNACKS":return new D3(y,D,F);default:return new pKq(y,D,F)}};
MXJ=function(I){switch(I){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"}};
z15=function(I){switch(I){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"}};
kK_=function(I){switch(I){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
dxS=function(){return Math.floor(Math.random()*4)+1};
asH=function(I,y,D,F){I=_.J(Object.entries(I));for(var R=I.next(),O={};!R.done;O={message$jscomp$995:void 0},R=I.next()){var w=_.J(R.value);R=w.next().value;w=w.next().value;O.message$jscomp$995=w;y.push(setTimeout(function(v){return function(){F(!1);D(v.message$jscomp$995.text)}}(O),O.message$jscomp$995.delayMs));
Number(R)>0&&y.push(setTimeout(function(){F(!0)},O.message$jscomp$995.delayMs-400))}};
cBS=function(I,y,D){D=D===void 0?byH:D;if(I){var F=_.nR().resolve(nT);F||_.l("mweb_no_observer_killswitch")?dy(I,{data:y,observer:F,visibilityCallback:D,hideOption:n5B,showOption:pYH,layer:I.layer}):_.tq(new _.g6("Warning: monitorVisibility called with null observer",I.tagName,y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams))}else _.tq(new _.g6("Warning: monitorVisibility called with null element",y==null?void 0:y.loggingDirectives,y==null?void 0:y.trackingParams,y==null?void 0:
y.rendererContext))};
WUH=function(I,y){var D=D===void 0?byH:D;_.l("mweb_fix_monitor_visibility_after_render")?I&&Tv(function(){cBS(I,y,D)}):Tv(function(){cBS(I,y,D)})};
Cct=function(I,y){var D=document.createElement("ytd-engagement-panel-section-list-renderer");D.data=I;var F=y!=null?y:{};I=F.isPersistentPanel;y=F.hideDelayMs;F=F.overscrollContain;I=Object.assign({},I&&{isPersistentPanel:I},y&&{hideDelayMs:y},F&&{overscrollContain:F});Object.assign(D,I);return D};
$xt=function(I){BLH||(BLH=i$J(new _.vF(1,void 0,void 0,ABe),0));var y=BLH.format(Math.floor(I));y=JS==="be"||JS==="bg"||JS==="es"||JS==="et"||JS==="hu"||JS==="ka"||JS==="lv"||JS==="pl"||JS==="pt-PT"||JS==="sq"?y.replace(new RegExp("^(\\d)"+ABe.GROUP_SEP.replace(".","\\.")+"(\\d+("+ABe.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):y;return I>=1E3&&I<=9999&&y[1]==="."&&(JS==="sl"||JS==="it")?y.replace(".",""):y};
_.e1o=function(I,y,D){return window.spf&&!_.l("web_disable_spfjs_client")?b$o(I,y,D):H$t(I,y)};
b$o=function(I,y,D){var F=null,R=(new _.AO(function(O,w){var v={};if(y){v.method=y.method;var P=y.postParams||{};xl4(I,y)&&(P[_.Pi("XSRF_FIELD_NAME")]=_.Pi("XSRF_TOKEN"));v.postData=_.$f(P);y.type&&(v.type=y.type);P=y.headers}v.headers=Ulo(I,P);_.l("debug_forward_web_query_parameters")&&(I=_.NHo(I,window.location.search));v.experimental_headers=v.headers;v.onError=function(K){K.err&&K.xhr&&(K.err.params={url:K.xhr.responseURL,response:K.xhr.responseText.substr(0,64)});w(K.err)};
v.onPartDone=function(K){D&&D.call(null,K.part)};
v.onDone=function(K){var r=TLq(K.response,"xsrf_token");Xh(window.location.href,I)&&r&&_.tG("XSRF_TOKEN",r);if(r=TLq(K.response,"service_worker_killswitch"))_.tG("SERVICE_WORKER_KILLSWITCH",r),UcL();O(K.response)};
F=spf.request(I,v)})).then(sAC);
R.thenCatch(function(O){var w=O instanceof _.F9,v=O&&O.hasOwnProperty("params")&&O.params.response?O.params.response:"";O instanceof Error&&(v?w?yUe(O):v===')]}\'\n{"reload":"now"}'?yUe(O):(VXA(O,I,v),Z$L(O,v)?_.tq(O):_.vu(O)):yUe(O));F&&F.abort()});
return R};
sAC=function(I){if(I.type==="multipart"){var y=I.timing;I=I.parts.reduce(function(D,F){Object.assign(D,F);return D},{});
I.timing=I.timing||{};Object.assign(I.timing,y);I.type="reduced"}return I};
H$t=function(I,y){y=y===void 0?{}:y;var D=null,F=new _.AO(function(R,O){y.onFinish=function(w){if(w.readyState===XMLHttpRequest.DONE)if(w.status===200){if(w.responseType!=="json"){var v=w.response;v.substring(0,5)===")]}'\n"&&(v=v.substring(5));try{var P=JSON.parse(v)}catch(K){P=K}}else P=w.response;P instanceof Error?O(P):(v=TLq(P,"xsrf_token"),Xh(window.location.href,I)&&v&&_.tG("XSRF_TOKEN",v),w=w.responseURL,window.performance&&window.performance.getEntriesByName?(v=window.performance.getEntriesByName(w).pop())?
w={responseStart:(0,_.m_)()-(v.responseEnd-v.responseStart)}:(Math.random()<.01&&(v=Error("gi"),v.params=w,_.tq(v)),w={responseStart:-1}):w={responseStart:0},P.timing=P.timing||{},Object.assign(P.timing,w),R(P))}else O(Error("fi`"+w.status))};
(D=_.AG(I,y))||O(Error("fi`"+D.status))});
F.thenCatch(function(R){R instanceof Error&&(VXA(R,I),Z$L(R)&&(R.level="WARNING"))});
_.l("cancel_pending_navs")&&F.thenCatch(function(){D.abort()});
return F};
TLq=function(I,y){var D=I[y],F=I.parts;I.type==="multipart"&&F&&(D=(I=F.find(function(R){return y in R}))&&I[y]);
return D};
VXA=function(I,y,D){var F=I.message||"";y={original:F,url:y};if(D)if(F=F.match(/position:?\s*(\d+)/)){F=F&&Number(F[1])?Number(F[1]):0;var R=Math.max(F-25,0);y.position=F;y.response=D.substring(R,F+25)}else y.response=D.substring(0,50);_.Pu(I,y);try{I.message="JSON parse error"}catch(O){}};
Z$L=function(I,y){I=I.message||"";I=!!(I.indexOf("<")>=0||I.indexOf("end of ")>=0||I.indexOf("Unterminated string")>=0||I.indexOf("Unexpected EOF"));if(!I&&y)for(var D=y.length,F=!1,R=0;R<D;R++)if(F&&y[R]==="\\")R++;else if(y[R]==='"')F=!F;else if(y[R]==="<"&&!F){I=!0;break}return I};
g8W=function(){return document.documentElement.hasAttribute("dark")};
_.Ize=function(I,y){if(I!=="GFEEDBACK"&&I!=="GUIDED_HELP")_.UJ(Error("hi`"+I));else{var D=_.nR().resolve(_.fR(_.ja));if(D&&(D=D.getCurrentPage())&&D.getServiceTrackingParams&&(D=D.getServiceTrackingParams()))for(var F=0,R;R=D[F++];)if(R.service===I){if(I=R.params)for(D=0;F=I[D++];)y[F.key]=F.value;break}}};
_.yFH=function(I){var y=_.NY();y&&(y=y.getPlayer())&&(y.pauseVideo(),I.playback_id=y.getVideoData().cpn,I.eid=y.getVideoData().eventId,Object.assign(I,y.getFeedbackProductData()))};
DIC=function(){var I={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Pi("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(I.enableAnonymousFeedback=!0);_.Pi("SESSION_INDEX")&&(I.authuser=String(_.Pi("SESSION_INDEX")));_.l("enable_pageid_for_feedback")&&_.Pi("DELEGATED_SESSION_ID")&&(I.pageId=String(_.Pi("DELEGATED_SESSION_ID")));return I};
_.Rz=function(I){_.l("enable_ypc_spinners")&&_.uj(I,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},I])};
_.OR=function(I){_.l("enable_ypc_spinners")&&_.uj(I,"yt-close-popup-action",["yt-loading-renderer"])};
Fa4=function(I){return new Promise(function(y,D){_.Do({verifyCommand:{recaptchaToken:I.recaptchaResponse}},{commandController:{onSuccess:function(F,R){R||D("ChallengeService did not return a response.");var O;y({challengeCompleted:(O=R.verified)!=null?O:!1})},
onServerError:function(F,R){D(R)}}})})};
R_4=function(I,y,D,F){y({recaptchaResponse:F}).then(function(R){R.challengeCompleted?_.sJ()?(D(3),_.nR().resolve(_.MC).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:I}})):D(2):D(4)},function(){D(4)})};
La_=function(I,y,D){_.R1(_.Et(On5,_.Pi("HL")),function(){var F;(F=window.grecaptcha)==null||F.ready(function(){var R=window.grecaptcha;R?(D(R.render(I,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:R_4.bind(null,I,Fa4,y)})),y(1)):y(4)})})};
JFH=function(I,y){return function(){switch(y()){case 0:return I().captchaLoadingMessage;case 1:return I().challengeReason;case 3:return I().captchaSuccessfulMessage;case 2:return I().captchaCookieSetFailureMessage;case 4:return I().captchaFailedMessage;default:return I().challengeReason}}()};
_.Lx=function(){if(!w65){var I=document.querySelector("#player.skeleton");I&&(_.dM(I),w65=!0)}};
_.SeC=function(){return vTH=qHC()};
KaA=function(){return _.S(function(I){return tiJ!==void 0?I.return():I.yield(P6J(),0)})};
P6J=function(){return _.S(function(I){if(I.nextAddress==1)return I.yield(GRo(),2);vTH=I.yieldResult;tiJ=_.w2.addLowPriorityJob(P6J,5E3);_.Cj(I)})};
Nse=function(I){var y=y===void 0?UIH:y;var D,F,R=(D=I.responseContext)==null?void 0:(F=D.mainAppWebResponseContext)==null?void 0:F.trackingParam;if(!R){y.increment("MISSING");var O,w,v,P,K,r;_.tq(new _.g6("282054944_a",{yeD:!!((O=I.responseContext)==null?0:(w=O.mainAppWebResponseContext)==null?0:w.loggedOut),q3z:((v=I.responseContext)==null?void 0:v.mainAppWebResponseContext)===void 0,hYz:I.responseContext===void 0,cp:(P=I.playabilityStatus)==null?void 0:P.contextParams,jOD:(((K=I.streamingData)==
null?void 0:K.formats)||[]).length>0,a2T:(((r=I.streamingData)==null?void 0:r.adaptiveFormats)||[]).length>0,os:!!I.offlineState,cotn:I.cotn}));return 2}D="";try{D=rF5(R)}catch(x){return y.increment("C_ERROR"),_.vu(x),2}try{var N=_.i5t(D);var h=jv4(N)}catch(x){return y.increment("P_ERROR"),_.vu(x),2}h=_.hv(h,oTB,1,_.xW());R=[];h=_.J(h);for(N=h.next();!N.done;N=h.next())F=N.value,N=F.getPath(),D=(0,_.e$.getValueByKeys)(I,N.split(".")),D=String(D===void 0||D===null?"":D),F=F.getValue()||"",O=/[+\-\/_]/g,
D.replace(O,"")!==F.replace(O,"")&&(y.increment("MISMATCH"),_.l("ab_mis_log_err")&&(D=new _.g6("282054944_p",{dIO:N,g:String(D),e:String(F)}),_.vu(D)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(N)||(N.match(/enforcementMessageViewModel/i)?R.push(3):R.push(2)));if(R.length>0)return Math.max.apply(Math,_.Td(R));y.increment("SUCCESS");return 1};
lze=function(I){var y=new Js;if(I.interpreterJavascript){var D=_.T4A(I.interpreterJavascript);D=Pd(D).toString();var F=new h__;_.BB(F,6,D);_.mH(y,1,F,za)}else I.interpreterUrl&&(D=_.vP(I.interpreterUrl),D=_.W$(D).toString(),F=new _.xIH,_.BB(F,4,D),_.mH(y,2,F,za));I.interpreterHash&&_.wT(y,3,I.interpreterHash,za);I.program&&_.wT(y,4,I.program,za);I.globalName&&_.wT(y,5,I.globalName,za);I.clientExperimentsStateBlob&&_.wT(y,7,I.clientExperimentsStateBlob,za);return y};
Pw=function(I){var y={};I=_.J(I.split("&"));for(var D=I.next();!D.done;D=I.next())D=D.value.split("="),D.length===2&&(y[D[0]]=D[1]);return y};
uUS=function(I){return Number(I.t)||7200};
qeS=function(){var I=I===void 0?window:I;var y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(LwH(),2);y=I;D=y.bgevmc;if(!D)throw Error("li");return F.return({pause:function(){D.p()},
resume:function(){D.r()},
checkForRefresh:function(){return D.cr()}})})};
ORW=function(){if(_.l("bg_st_hr"))return"havuokmhhs-0";var I,y=((I=globalThis.performance)==null?void 0:I.timeOrigin)||0;return"havuokmhhs-"+Math.floor(y)};
Kx=function(I){window.bgens=I};
ETB=function(){return new Promise(function(I){var y=window;y.ntpevasrs!==void 0?I(new UR(y.ntpevasrs)):(y.ntpqfbel===void 0&&(y.ntpqfbel=[]),y.ntpqfbel.push(function(D){I(new UR(D))}))})};
GAJ=function(I){if(_.l("attmusi")&&_.l("attmusi_ue")){I={s:I.dpt.bind(I),ir:I.ngU.bind(I)};var y=window;y.attmp=I;if(y.attmq!==void 0)for(var D=_.J(y.attmq),F=D.next();!F.done;F=D.next())F=F.value,F(I);y.attmq=void 0}else y=I.dpt.bind(I),_.fv("yt.aba.att",y),I=I.ngU.bind(I),_.fv("yt.aba.att2",I)};
QvL=function(I){switch(_.iP(I.input)){case _.NP(X64):var y={};return y.encryptedVideoId=I.innerTubeRequest.externalVideoId,y}return{}};
nTq=function(I){switch(_.iP(I.input)){case _.NP(X64):if(_.l("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.NP(YeL):if(_.l("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.NP(rT):if(_.l("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&I.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.NP(fzo):var y,D;if(_.l("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((D=_.u((y=I.config)==null?void 0:y.command,_.Kt))==null?0:D.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.mIe=function(I){var y;if(I.playlistVideoRenderer&&((y=I.playlistVideoRenderer)==null?0:y.engagementBar))return p64(I.playlistVideoRenderer.engagementBar);if(_.u(I,jz)){var D;if(I=(D=_.u(I,jz))==null?void 0:D.engagementBar)return p64(I)}return""};
p64=function(I){if(!I)return"";I=_.u(I,_.MiS);if(I==null||!I.actions)return"";I=_.J(I.actions);for(I=I.next();!I.done;I=I.next()){I=_.u(I.value,_.z_5);var y=void 0;if((y=I)==null||!y.itemId)break;return I.itemId}return""};
_.kAq=function(I){var y;if(I.playlistVideoRenderer&&((y=I.playlistVideoRenderer)==null?0:y.videoId))return I.playlistVideoRenderer.videoId;if(_.u(I,jz)){var D,F;if(I=(D=_.u(I,jz))==null?void 0:(F=D.playlistItemData)==null?void 0:F.videoId)return I}return""};
_.dI_=function(I){var y;if(I.playlistVideoRenderer&&((y=I.playlistVideoRenderer)==null?0:y.voteCount))return I.playlistVideoRenderer.voteCount;if(_.u(I,jz)){var D,F;if(I=(D=_.u(I,jz))==null?void 0:(F=D.playlistItemData)==null?void 0:F.voteCount)return I}return 0};
_.oz=function(I,y){return _.nC(I.entities,"flowStateEntity",y)};
cFH=function(I,y,D,F){var R=void 0;I=_.J(I[y.iconName]||[]);for(var O=I.next();!O.done;O=I.next()){O=O.value;var w=y.iconSize;var v=y.iconStyle;w=!w||w===O[2];var P=azo[O[0]];F&&F!==O[1]||!w||v&&v!==P?v=!1:R?(v=azo[O[0]],v=!!y.iconStyle||v==="youtube_outline",w=R.version<=O[1],v=(!!y.iconSize||O[2]===24)&&v&&w):v=!0;v&&(R={name:y.iconName,style:azo[O[0]],size:O[2],version:O[1],allowMirroring:!!O[3],url:D(y.iconName,O)})}return R};
Waq=function(I,y,D,F){return I+(""+azo[D[0]]+((F===void 0?0:F)?"_experimental":"")+"/"+y+"/v"+D[1]+"/")+(D[2]+"px.svg")};
C6W=function(I){return _.Pi("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.Pi("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":I};
Bs5=function(I,y){return Waq("https://fonts.gstatic.com/s/i/",I,y)};
inq=function(I,y){return Waq("https://fonts.gstatic.com/s/i/",I,y,!0)};
AFH=function(I,y){return Waq("https://www.gstatic.com/youtube/img/icons/web/",I,y)};
bnA=function(I){var y=I.enabled;var D=I.itemPlaybackModel;var F=I.thumbnailElRef;var R=I.containerElRef;var O=I.options;var w;_.wZ(function(){var v=R==null?void 0:R.value;var P,K=(P=F())==null?void 0:P.value;P=D();var r=O();if(y&&P&&v&&K&&(r==null?0:r.thumbnail)){var N={data:P,hostElement:v},h,x,q=[].concat(_.Td((h=r.thumbnailOverlays)!=null?h:[]),_.Td((x=P.overlays)!=null?x:[]));x=P.itemPlaybackOptions;h=(x==null?void 0:x.enableRoundedPlayer)||r.enableRounding;x=x==null?void 0:x.disableTimeStatusOverlay;
var X,f;v={mediaRenderer:N,lockupElement:v,thumbnailElement:K,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.yz((X=P.inlinePlayerData)==null?void 0:X.onVisible),navigationEndpoint:_.yz((f=P.inlinePlayerData)==null?void 0:f.onSelect),thumbnail:r.thumbnail,thumbnailOverlays:q,accessibilityText:r.accessibilityText||""},thumbnailSize:r.thumbnailSize,enableRounding:h,mouseleaveCallback:r.mouseleaveCallback,hideTimeDisplay:x}}}else v=void 0;if(X=v){var m;(m=w)==null||Nv(m);w=Ik(X);var z,B;
((z=D())==null?0:(B=z.inlinePlayerData)==null?0:B.forceImpAutoplay)&&$I4(w)}},"BLiQOd");
_.tI(function(){var v;(v=w)==null||Nv(v)})};
Hnq=function(I){I=atob(I);for(var y=[],D=0;D<I.length;D++)y.push(I.charCodeAt(D));return new Blob([new Uint8Array(y)],{type:"image/png"})};
Ts5=function(I,y,D,F){F=F===void 0?"INSERTION_POSITION_UNSPECIFIED":F;return I({targetId:y},function(R){var O,w=(O=R.contents)!=null?O:[];O=D!=null?D:[];var v=e_q(w);switch(F){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},R,{contents:[].concat(_.Td(w.slice(0,v)),_.Td(O),_.Td(w.slice(v+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},R,{contents:[].concat(_.Td(O),_.Td(w))});case "INSERTION_POSITION_LAST":return Object.assign({},R,{contents:[].concat(_.Td(w),_.Td(O))});
default:return R}})};
Vie=function(I,y,D,F,R){R=R===void 0?"RELATIVE_INSERTION_POSITION_AFTER":R;return I({targetId:y},function(O){var w,v=(w=O.contents)!=null?w:[];w=svA(v,D);if(w<0)return O;w=R==="RELATIVE_INSERTION_POSITION_BEFORE"?w:w+1;return Object.assign({},O,{contents:[].concat(_.Td(v.slice(0,w)),_.Td(F),_.Td(v.slice(w)))})})};
e_q=function(I){var y=I.findIndex(function(D){return _.u(D,_.hs)});
return y>=0?y:I.length};
svA=function(I,y){return I.findIndex(function(D){a:{D=_.J(Object.values(D));for(var F=D.next();!F.done;F=D.next())if((F=F.value)&&F.targetId){D=F.targetId;break a}D=""}return D===y})};
gTo=function(I,y,D){return I({targetId:y},function(F){var R,O=(R=F.contents)!=null?R:[];return Object.assign({},F,{contents:ZnS(O,D)})})};
ZnS=function(I,y){return I.filter(function(D){var F=y.includes;a:{D=_.J(Object.values(D));for(var R=D.next();!R.done;R=D.next())if((R=R.value)&&R.targetId){D=R.targetId;break a}D=""}return!F.call(y,D||"")})};
_.Ivt=function(I,y){return{engagementPanelSectionListRenderer:{panelIdentifier:I,identifier:y,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
y6H=function(I,y){I=I.getAvailableAudioTracks();if(I.length)return I==null?void 0:I.find(function(D){var F;return(D==null?void 0:(F=D.getLanguageInfo())==null?void 0:F.getId())===y})};
_.FRS=function(I){var y,D=(y=I.getOption("captions","tracklist",{includeAsr:!0}))!=null?y:[];return D=DfJ(D,I)};
ROC=function(I){return I.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
DfJ=function(I,y){y=ROC(y);if(y==null||!y.length)return I;var D=y.filter(function(w){return w});
y=I.filter(function(w){return w.languageCode.startsWith("en")});
D=_.J(D);for(var F=D.next();!F.done;F=D.next())if(F=F.value,y.length){var R=y[0],O=Object.assign({},R);R.languageCode!==F.languageCode&&(O.displayName=R.languageName+" >> "+F.languageName,O.translationLanguage=F,I.push(O))}return I};
OB4=function(I,y,D){I=_.FRS(I);if(I.length)return D?I.find(function(F){if(typeof(F==null?void 0:F.translationLanguage)==="object"){var R;return((R=F.translationLanguage)==null?void 0:R.languageCode)===y}return!1}):I==null?void 0:I.find(function(F){return F.languageCode===y})};
LRA=function(I){return I.getOption("captions","tracklist",{includeAsr:!0})};
J6q=function(I){var y=I.getAvailableAudioTracks();if(y!=null&&y.length){var D=I.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Td(y.map(function(F){return{listItemViewModel:{title:{content:F.getLanguageInfo().getName()},isSelected:F.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:F.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
wE4=function(I){return I.getOption("captions","tracklist",{includeAsr:!0})};
vLJ=function(I){var y=wE4(I);if(y==null?0:y.length)return y;I.loadModule("captions");return wE4(I)};
Sit=function(I){var y=I.getOption("captions","track");if(y)return y;I.loadModule("captions");return I.getOption("captions","track")};
PxJ=function(I){var y=vLJ(I);if(y!=null&&y.length){var D=Sit(I),F;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.zC("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(_.Td(y.map(function(R){return{listItemViewModel:{title:{content:R.displayName},
isSelected:R.displayName===(D==null?void 0:D.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.zC("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!D.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!D.translationLanguage&&{selectionText:{content:(D==null?void 0:(F=D.translationLanguage)==null?void 0:F.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[th4(I)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
th4=function(I){var y=ROC(I);if(y==null||!y.length)throw Error("Hi");var D=Sit(I);I=y.filter(function(F){return!F.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Td(I.map(function(F){var R;return{listItemViewModel:{title:{content:F.languageName},isSelected:F.languageName===(D==null?void 0:(R=D.translationLanguage)==null?void 0:R.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:F.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
j4H=function(I){return new Promise(function(y,D){if(I===void 0)_.vu(Error("Li"),"ERROR"),D(Error("Li"));else{D=new _.KRo;var F=_.UfH();D=D.init();var R=_.r6q(_.Pi("YPC_MB_URL"),!0);Promise.all([D,R]).then(function(){var O=_.x1.payments.business.integration.ClientTokenFactory.createClientToken(I,F);y(O)})}})};
hO5=function(I,y,D,F,R,O,w){var v=_.vS();D=D.replace(/-/g,"+").replace(/_/g,"/");var P=_.a1().get("hl"),K=_.l0(_.UM),r=y==null?void 0:y.element;r&&_.Rz(r);oLo(y,!0);_.NDJ(K,D,v.resolve,function(){r&&_.OR(r)},function(N){r&&_.OR(r);
v.reject(N)},P,F?function(N){F&&_.wP(I,F,{backend_analytics:N})}:void 0,v.resolve,R,O,w);
return v.promise};
oLo=function(I,y){!(I=I==null?void 0:I.element)||I.tagName!=="YT-BUTTON-RENDERER"&&I.tagName!=="YTD-BUTTON-RENDERER"||(I.disabled=y)};
xfJ=function(){var I=_.zC("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.lo(I),actionButton:{buttonRenderer:nUq()}}},popupType:"TOAST"}};
lvq=function(){var I=_.zC("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.lo(I),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
uv4=function(I){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:I}]}}};
u0=function(I,y,D,F){var R;return _.S(function(O){if(O.nextAddress==1)return _.nj(O,2),O.yield(I,4);if(O.nextAddress!=2)return(R=_.A_(y.getState().entities).length>0)?O.return({title:_.lo(_.zC("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.lo(_.zC("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:f2B()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
O.return(pOS(D,F));_.dj(O);return O.return(pOS(D,F))})};
qi_=function(I,y){return y?y==="PPSV"||gpq(I,y):!1};
ELt=function(I){I.responseContext||(I.responseContext={});I.responseContext.maxAgeSeconds=0;return I};
ER=function(I){var y;return _.S(function(D){return D.nextAddress==1?D.yield(GDe(I,"service:topbar:fallback"),2):(y=D.yieldResult)&&_.qv(y)?D.return(ELt(_.qv(y))):D.return()})};
XEe=function(I){var y;return _.S(function(D){return D.nextAddress==1?D.yield(GDe(I,"service:downloads_settings:fallback"),2):(y=D.yieldResult)&&_.qv(y)?D.return(y):D.return()})};
GDe=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)return I?F.yield(I.get(y),2):F.return();D=F.yieldResult;return!D||!_.qv(D)||!isNaN(Number(D.data.expireTimestampMs))&&D.isExpired()?F.return():F.return(D)})};
Q4q=function(I){var y=_.nR().resolve(Gr).getState().entities;return I.playlistId?qi_(y,I.playlistId):!1};
fvL=function(I){var y=_.kf("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;if(!_.u(I,_.WF))return y&&_.tq(Error("ej")),!1;var D;return _.l("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.u(I,_.WF))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:YiB(I)?!0:(y&&_.tq(Error("fj")),!1)};
YiB=function(I){var y=(_.u(I,_.t9)||_.u(I,_.WF)).videoId;if(!y||!nLL.test(y))return!1;var D;return(I=(D=_.u(I.commandMetadata,_.nE))==null?void 0:D.url)&&(I.includes(y)||I.startsWith("/clip"))?!0:!1};
_.mfJ=function(){var I=_.a1();return I.getFlag(192)?I.getFlag(190):!(_.uI("web_watch_cinematics_disabled_by_default")||_.uI("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&pEo())};
_.X9=function(I,y,D){var F={};F.currentUrl=y;F.vis=I.vis!==void 0?I.vis:0;F.splay=!1;y=_.a1();F.autoCaptionsDefaultOn=y.getFlag(66);y.getFlag(141)?y.getFlag(140)?F.autonavState="STATE_OFF":F.autonavState="STATE_ON":F.autonavState="STATE_NONE";F.html5Preference="HTML5_PREF_WANTS";isNaN(_.Pi("STS"))||(F.signatureTimestamp=_.Pi("STS"));I.autonav&&(F.autoplay=!0,F.autonav=!0);I.mutedAutoplay&&(F.autoplay=!0,F.mutedAutoplay=!0);I.inlinePlayback&&(F.autoplay=!0,F.autonav=!1,F.isInlineUnmutedPlayback=!!I.inlineUnmuted);
F.referer=D;F.lactMilliseconds=I.lact!==void 0?I.lact.toString():"-1";_.l("enable_unknown_lact_fix_on_html5")&&F.lactMilliseconds==="-1"&&_.tq(new _.g6("Unknown LACT is set in playbackContext.",{"lact in tempData":I.lact||"undefined",autonav:I.autonav||"undefined"}));I={};y.getFlag(194)&&(I.hasShownAmbientMode=!0);y.getFlag(192)&&(I.hasToggledOffAmbientMode=!0);_.mfJ()&&(I.watchAmbientModeEnabled=!0);F.watchAmbientModeContext=I;return F};
Mho=function(I){var y={},D=I.pbis||0;D&&(y.playbackBeginsInSeconds=D);I.prefetch_reason&&I.prefetch_reason==="hc_pbis"&&(y.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return y};
zOq=function(I,y){var D;if(y==null?0:(D=y.requestTemplate)==null?0:D.panelId)I.panelId=y.requestTemplate.panelId;var F;if(y==null?0:(F=y.requestTemplate)==null?0:F.params)I.params=y.requestTemplate.params};
dfA=function(){if(kDS)return kDS();var I=!_.l("idb_response_store_auth_killswitch"),y={};kDS=pv("yt-it-response-store",{objectStores:(y.ResponseStore={addedAtVersion:1},y),shared:!I,upgrade:function(D,F){F(1)&&(D=r2(D,"ResponseStore",{keyPath:["key","clientName"]}),jn(D,"byExpiration","expireTimestampMs"),jn(D,"byInterface","clientName"))},
version:1});return kDS()};
Qo=function(I){return _.qo(dfA(),I)};
c6H=function(I,y){var D;return _.S(function(F){return F.nextAddress==1?F.yield(_.nv(),2):(D=F.yieldResult)?F.return(new avH(I,y,D)):F.return()})};
WR_=function(I){var y=Object.keys(I)[0];if(y)return I.screenExit&&(y=y+";"+I.screenExit.screen),y};
Cx4=function(I){var y=new Map;I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,D!=null&&(y.has(D.taskType)||y.set(D.taskType,[]),y.get(D.taskType).push(D));return y};
BDB=function(I){I=[].concat(_.Td(I)).sort(function(D,F){return D-F});
var y=Math.floor(I.length/2);return I.length%2?I[y]:(I[y-1]+I[y])/2};
$fL=function(I,y){I=I===void 0?Cp4:I;y=y===void 0?{}:y;_.fv("yt.logging.errors.log",_.vu);cZJ();iBJ(btJ(),y);window.onerror=I;A6B=WCC;window.addEventListener("unhandledrejection",function(D){if(D.reason instanceof Error){var F=D.reason;_.Pu(F,{source:"unhandledrejection"});F.name==="AbortError"&&(F.level="WARNING")}WCC(D.reason);D.preventDefault()})};
_.bB_=function(I){var y,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq,$A,BH,jf,yg,eW,oe,xP,XW,zo,Ub,rq;return _.S(function(ao){if(ao.nextAddress==1)return ao.yield(_.dH(I,{mode:"readonly",enableRetries:!0},function(rc){return aQ(rc,"playbackData").then(function(Ta){var f_=Ta.map(function(rG){return rG.transfer}).filter(function(rG){return!!rG}),mM=Ta.map(function(rG){return rG.offlineVideoPolicy}).filter(function(rG){return!!rG}),M_=Ta.filter(function(rG){return!!rG.key}).map(function(rG){return _.fC(_.Xw(rG.key).entityId,
"downloadStatusEntity")});
f_=aQ(rc,"transfer",f_);mM=aQ(rc,"offlineVideoPolicy",mM);M_=aQ(rc,"downloadStatusEntity",M_);var ZR=f_.then(function(rG){rG=rG.reduce(function($P,HC){(HC==null?0:HC.offlineVideoStreams)&&$P.push.apply($P,_.Td(HC.offlineVideoStreams));return $P},[]).filter(function($P){return!!$P});
return aQ(rc,"offlineVideoStreams",rG)});
return jA.all([f_,mM,ZR,M_]).then(function(rG){var $P=_.J(rG);rG=$P.next().value;var HC=$P.next().value;var vG=$P.next().value;$P=$P.next().value;return[Ta,rG,HC,vG,$P]})})}),2);
if(ao.nextAddress!=3)return y=ao.yieldResult,ao.yield(_.dH(I,{mode:"readonly",enableRetries:!0},function(rc){return aQ(rc,"mainDownloadsListEntity").then(function(Ta){var f_,mM;return(mM=(f_=Ta[0])==null?void 0:f_.downloads)!=null?mM:[]})}),3);
D=ao.yieldResult;F=_.J(y);R=F.next().value;O=F.next().value;w=F.next().value;v=F.next().value;P=F.next().value;K=R;r=O;N=w;h=v;x=P;q={};X={};f={};m={};z={};B=[];C=_.J(r);for(H=C.next();!H.done;H=C.next())(e=H.value)&&(q[e.key]=e);T=_.J(N);for(L5=T.next();!L5.done;L5=T.next())(vH=L5.value)&&(X[vH.key]=vH);u_=_.J(x);for(jW=u_.next();!jW.done;jW=u_.next())(xA=jW.value)&&(f[xA.key]=xA);dq=_.J(h);for($A=dq.next();!$A.done;$A=dq.next())(BH=$A.value)&&(m[BH.key]=BH);jf=_.J(D);for(yg=jf.next();!yg.done;yg=
jf.next())eW=yg.value,oe=void 0,z[(oe=eW.videoItem)!=null?oe:""]=!0,eW.videoItem&&(XW=xP=void 0,zo=(XW=(xP=_.Xw(eW.videoItem))==null?void 0:xP.entityId)!=null?XW:"",B.push({externalVideoId:zo}));Ub=K.filter(function(rc){if(!rc||!rc.key||!rc.offlineVideoPolicy)return!1;rc=_.Xw(rc.key).entityId;rc=_.fC(rc,"downloadStatusEntity");var Ta;return!(rc&&((Ta=f[rc])==null?void 0:Ta.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
rq=Ub.map(function(rc){var Ta=q[rc.transfer],f_=[];if(Ta==null?0:Ta.offlineVideoStreams)for(var mM=_.J(Ta.offlineVideoStreams),M_=mM.next();!M_.done;M_=mM.next())(M_=m[M_.value])&&f_.push(M_);mM=X[rc.offlineVideoPolicy];M_=z;var ZR=rc==null?void 0:rc.playerResponseTimestamp,rG=_.Xw(mM.key).entityId;rc=_.fC(rG,"mainVideoEntity");if(mM.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var $P="OFFLINE_VIDEO_STATE_DISABLED";mM.expirationTimestamp&&Number(mM.expirationTimestamp)<Date.now()/1E3&&($P="OFFLINE_VIDEO_STATE_EXPIRED")}else if(mM.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")$P="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ta==null?void 0:Ta.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":$P="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":$P="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":$P="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":$P="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":$P="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":$P="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:$P="OFFLINE_VIDEO_STATE_UNKNOWN"}if($P==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ta==null?void 0:Ta.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":$P="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":$P="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":$P=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}rG={id:rG,videoState:$P};if(Ta==null?0:Ta.cotn)rG.cotn=Ta.cotn;if(Ta==null?0:Ta.maximumDownloadQuality)rG.selectedVideoQuality=Ta==null?void 0:Ta.maximumDownloadQuality;if(Ta==null?0:Ta.lastProgressTimeMs)rG.lastProgressTimeMs=Ta.lastProgressTimeMs;ZR&&(rG.playerResponseSavedTimeMs=String(Number(ZR)*1E3));Ta=String;ZR=0;f_=_.J(f_);for($P=f_.next();!$P.done;$P=f_.next())if($P=$P.value,$P.streamsProgress){$P=_.J($P.streamsProgress);for(var HC=$P.next();!HC.done;HC=
$P.next()){var vG=void 0;ZR+=Number((vG=HC.value.numBytesDownloaded)!=null?vG:0)}}rG.downloadedBytes=Ta(ZR);rG.selectedOfflineMode=M_[rc]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";mM.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(rG.offlinePlaybackDisabledReason=mM.offlinePlaybackDisabledReason);return rG});
return ao.return({offlineVideos:rq,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:B}}})})};
HBq=function(){var I;return _.S(function(y){return y.nextAddress==1?y.yield(_.Ml(),2):(I=y.yieldResult)?y.return(_.bB_(I)):y.return({state:"PES Unavailable"})})};
s45=function(){var I,y,D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(_.Ml(),2);if(R.nextAddress!=3)return(I=R.yieldResult)?R.yield(eOq(I),3):R.return({state:"PES Unavailable"});y=R.yieldResult;D={};F=y.reduce(function(O,w){O[w.key]=w;return O},D);
return R.return(TDC(F))})};
TDC=function(I){for(var y={},D=[],F=_.J(Object.keys(I)),R=F.next();!R.done;R=F.next()){var O=R.value;R=I[O];var w=void 0;if(((w=R)==null?void 0:w.entityType)==="mainVideoEntity"){delete I[O];var v=R.data;R={};if(v){var P=void 0;w=(P=v.videoId)!=null?P:"vid-"+O;O=I;R.video=v;delete R.video.formattedDescription;delete R.video.thumbnail;v.owner&&(P=O[v.owner],P==null?0:P.data)&&(delete O[P.key],R.video.owner=P.data,delete R.video.owner.avatar);if(v=v.downloadState)if(P=O[v],P==null?0:P.data)if(delete O[v],
v=P.data.playbackData)if(P=O[v],P!=null&&P.data){delete O[v];v=P.data;delete v.playerResponseJson;R.playbackData=v;if(v.transfer&&(P=O[v.transfer],P==null?0:P.data)){delete O[P.key];var K=P.data;R.transfer=K;P=[];K=_.J(K.offlineVideoStreams||[]);for(var r=K.next();!r.done;r=K.next())if(r=O[r.value])delete O[r.key],P.push(r.data);P&&(R.streams=P)}(v=v.offlineVideoPolicy)&&(v=O[v])&&v.data&&(delete O[v.key],R.offlineVideoPolicy=v.data)}y[w]=R}}else R&&R.entityType==="offlineOrchestrationActionWrapperEntity"&&
R.data&&(delete I[R.key],w=R.data,O=void 0,D.push({id:w.rootActionId,type:((O=w.actionProto)==null?void 0:O.actionType)||"",entity:R}))}y.wrapperEntities=D;Object.keys(I).length>0&&(y.unknownKeys=I);return y};
VhW=function(){var I,y,D,F,R,O,w,v,P;return _.S(function(K){if(K.nextAddress==1)return I=(new _.Ku("")).hasLocalStorage(),F=!!((y=_.Ft.crypto)==null?0:(D=y.subtle)==null?0:D.importKey),R=!!_.Ft.BroadcastChannel,O=!!_.Ft.navigator.locks,K.yield(NYA(),2);w=K.yieldResult;v=I&&F&&R&&O&&w;P={isSupported:v};if(v)return K.return(P);P.missingBrowserFeatures=[];w||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");I||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
F||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");R||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");O||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return K.return(P)})};
ZBB=function(I,y,D,F){var R=!1,O={contentId:void 0,contentType:"video"};y=_.J(Object.entries(y));for(var w=y.next();!w.done;w=y.next()){var v=_.J(w.value);w=v.next().value;v=v.next().value;I.includes(w)&&!D.has(v)?(O.contentId=v,D.add(v),R=!0):w==="contentType"?v==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(O.contentType="playlist"):typeof v==="object"&&v!==null&&ZBB(I,v,D,F)}R&&F.push(O)};
gLH=function(){var I;return!((I=Y1?Y1:null)==null||!I.window)};
_.Dto=function(I){if(_.Iie()){var y=_.y$B().mediaSession;try{y.setActionHandler("enterpictureinpicture",function(D){I(D)})}catch(D){}}};
_.Iie=function(){return!(!Y1||!Y1)&&QB()&&_.utA("Chromium")>=120};
Ftt=function(I){for(var y=[],D=_.J(document.styleSheets),F=D.next(),R={};!F.done;R={node$jscomp$778:void 0},F=D.next())R.node$jscomp$778=F.value.ownerNode,R.node$jscomp$778&&(R.node$jscomp$778 instanceof HTMLStyleElement||R.node$jscomp$778 instanceof HTMLLinkElement)&&y.push(new Promise(function(O){return function(w){var v=O.node$jscomp$778.cloneNode(!0);v.onload=function(){w()};
v.onerror=function(){_.tq(Error("wj"));w()};
I.document.head.appendChild(v)}}(R)));
return Promise.all(y)};
Kt_=function(I){var y=[_.ll(RWq),_.ll(O6_),_.ll(Ltq)];J$W(window.document.documentElement,I.document.documentElement,[_.ll(waJ),_.ll(v$t),_.ll(SUo),_.ll(t2t),_.ll(PnC)]);J$W(window.document.body,I.document.body,y)};
J$W=function(I,y,D){I=_.J(I.attributes);for(var F=I.next();!F.done;F=I.next())if(F=F.value)try{_.jY(D,y,F.name,F.value)}catch(R){}};
r$_=function(I,y){I=new _.fx(I.document.documentElement);I.start(Ut4,y);return I};
jIB=function(I){var y=I.document.documentElement;y.addEventListener("click",function(D){y8q(y,D)});
y.addEventListener("touchstart",function(D){LpB(D)});
y.addEventListener("mousedown",function(D){LpB(D)})};
Nzq=function(I,y,D,F){F=F===void 0?!1:F;y=new o$W(y||I,D||I);return{x:I.x+((F===void 0?0:F)?y.lengthX*-1:y.lengthX)*.2,y:I.y+((F===void 0?0:F)?y.lengthY*-1:y.lengthY)*.2}};
hWe=function(I){if(!I)return!1;var y=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",D,F,R,O=(R=(D=I.errorScreen)==null?void 0:D.playerLegacyDesktopYpcTrailerRenderer)!=null?R:(F=I.errorScreen)==null?void 0:F.ypcTrailerRenderer;return!!y||!!O};
_.xt4=function(I,y){if(!I)return!1;var D,F=(D=I.errorScreen)==null?void 0:D.playerLegacyDesktopYpcOfferRenderer,R;y=!!(y==null?0:(R=y.playerOverlayRenderer)==null?0:R.gatedActionsOverlayRenderer);return!!hWe(I)||!!F||!!y};
qU_=function(I){return liH(I,0,"gclid",I.search(uRq))>=0||liH(I,0,"gad_source",I.search(uRq))>=0};
E$4=function(I){var y=[],D=0;return{clear:function(){D=y.length=0},
push:function(F){y[D]=F;D=(D+1)%I},
iterate:function(){return function R(){var O,w,v,P;return _.nx(R,function(K){switch(K.nextAddress){case 1:_.zd(K,2),O=y.length,w=0;case 4:if(!(w<O)){K.jumpTo(2);break}v=D+w;P=_.px;return K.yield(y[v%O],7);case 7:P(K.yieldResult);w++;K.jumpTo(4);break;case 2:_.m4(K),_.kQ(K,0)}})}()}}};
GNt=function(I){I.eventsToIgnore||(I.eventsToIgnore=[]);var y=I.eventsToIgnore.map(FYo),D=new Set(y),F=E$4(I.bufferSize);return{flush:function(){var R=Array.from(F.iterate());F.clear();R=R.map(function(O){return{name:O.name,timestamp:O.startTime,attributes:O.attributes}});
return JSON.stringify(R)},
onSpanStart:function(R){R.name==="event"&&D.has(R.attributes.type)||F.push(R)}}};
XaJ=function(I){I=GNt(I);var y=I.flush;XfJ({onSpanStart:I.onSpanStart});UN.subscribe("handleError",function(D){try{D.params.breadcrumbs=y()}catch(F){_.vu(F,"WARNING")}})};
QIJ=function(){TC("web_tracing_action");_.s$("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
YUB=function(){TC("web_tracing_action");_.s$("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
pa4=function(I,y,D){if(y===void 0){fi_||(YUB(),setInterval(YUB,6E5),fi_=!0);var F="web_tracing_action"}else F=y;var R,O=((R=I.endTime)!=null?R:I.startTime)-I.startTime;R={};D=n$4(I.name,O,I.startTime,{webTracing:(R[I.name]=I.attributes,R)},D,F,{spanStatus:I.status});if(I.children)for(I=_.J(I.children),F=I.next();!F.done;F=I.next())pa4(F.value,y,D)};
mt_=function(I){var y=mFq.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"&&(y("Received message from extension",D),I.onMessage(D)))});
return function(D,F){D={app:"yt.telemetry",from:"app",key:D,payload:F};y("Sending message to extension",D);window.postMessage(D,"*")}};
M2J=function(){var I=I===void 0?3E3:I;var y=mt_({onMessage:function(){}}),D=[];
return{onSpanEnd:function(F){F.parentId==null&&D.push(F)===1&&setTimeout(function(){var R=[].concat(_.Td(D));D.length=0;y("spansReported",{spans:R})},I)}}};
zWC=function(I){I=I===void 0?400:I;var y=[],D=[];return{start:function(){return tlC({checkoutEveryNth:I,emit:function(F,R){R&&(y=D,D=[]);D.push(F)}})},
getRecording:function(){return[].concat(_.Td(y),_.Td(D))}}};
ai4=function(){(new kNB({sessionReplayEvents:_.kf("web_tracing_session_replay",0)})).subscribe(function(I){if(I.sessionReplayEvents>0)try{var y=zWC(I.sessionReplayEvents);y.start();if(_.l("web_tracing_session_replay_demo")){var D=console.log;window.exportSessionReplay=function(){var F=JSON.stringify(y.getRecording(),null,2);F=dtC(new Blob([F],{type:"text/plain"}));var R=document.createElement("a");R.download="session_replay.json";R.dataset.downloadurl=["application/json",R.download,R.href].join(":");
R.style.display="none";R.href=F;R.click();URL.revokeObjectURL(F);D("View replay at go/yt-session-replay-viewer")}}}catch(F){_.tq(Error("yj"))}})};
Wtq=function(){var I=window.fetch;window.fetch=function(){var y=_.go.apply(0,arguments),D=_.J(y),F=D.next().value;D=D.next().value;var R=jI("httpEvent",{method:(D===void 0?{}:D).method||"GET",path:c$5(F),type:"fetch"},{active:!1});return I.apply(null,_.Td(y)).then(function(O){R.addAttributes({statusCode:O.status,statusText:O.statusText});R.end();return O}).catch(function(O){R.end("SPAN_STATUS_ERROR");
throw O;})}};
CnS=function(){var I=XMLHttpRequest.prototype.open,y=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(D,F,R,O,w){var v=this;R=R===void 0?!0:R;this._requestData={method:D,url:F.toString()};this.addEventListener("load",function(){var P=v._span;P==null||P.addAttributes({statusCode:v.status,responseContentLength:v.responseText.length});P==null||P.end()});
this.addEventListener("error",function(){var P=v._span;P==null||P.addAttributes({statusCode:v.status,statusText:v.statusText});P==null||P.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var P=v._span;P==null||P.addAttributes({statusCode:v.status,aborted:!0});P==null||P.end()});
I.apply(this,[D,F,R,O,w])};
XMLHttpRequest.prototype.send=function(D){var F=this._requestData||{method:"N/A",url:"N/A"};this._span=jI("httpEvent",{method:F.method,path:c$5(F.url),type:"xhr"},{active:!1});y.apply(this,[D])}};
c$5=function(I){try{if(I instanceof URL)return I.pathname;I instanceof Request&&(I=I.url);return(new URL(I,"https://youtube.com")).pathname}catch(y){return"<unable to parse path>"}};
i6t=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var I=window.performance.getEntriesByType("navigation");if(I.length>0){var y=I[0],D=window.performance.timeOrigin;jI("pageLoad",{navigationType:BzL(y.type),unloadEventStart:Math.round(y.unloadEventStart),unloadEventEnd:Math.round(y.unloadEventEnd),domInteractive:Math.round(y.domInteractive),domContentLoadedEventStart:Math.round(y.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(y.domContentLoadedEventEnd),
domComplete:Math.round(y.domComplete),loadEventStart:Math.round(y.loadEventStart),loadEventEnd:Math.round(y.loadEventEnd),redirectCount:y.redirectCount},{active:!1,startTime:D+y.startTime,endTime:D+y.loadEventEnd})}}catch(F){}})};
BzL=function(I){switch(I){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
eWq=function(){for(var I=A$S.value,y={},D=_.J(I.enabledSpansArray),F=D.next();!F.done;F=D.next())y[F.value]=!0;GL5({sessionId:PE5(),enabledSpans:y,shouldSampleFn:function(R,O,w){if($t4){var v;return R==="shortToShort"||(w==null?void 0:(v=w.rootSpan())==null?void 0:v.name)==="shortToShort"}return!0}});
pfo();rH("pageLoad")&&i6t();rH("httpEvent")&&(Wtq(),CnS());I.exportToCsi&&XfJ(b6H);I.exportToDevTools&&XfJ(M2J());I.maxBreadcrumbs>0&&XaJ({eventsToIgnore:H65,bufferSize:I.maxBreadcrumbs})};
Tzq=function(I){return new Promise(function(y){window.setTimeout(y,I)})};
sI4=function(I){var y={bicf:function(O){I.r9e=O},
blc:function(){return I.getLatestChallengeResponse()},
bcr:function(O){I.ddX.push(O)}},D=window;
D.ntpevasrs=y;if(D.ntpqfbel!==void 0)for(var F=_.J(D.ntpqfbel),R=F.next();!R.done;R=F.next())R=R.value,R(y);D.ntpqfbel=void 0};
V2_=function(I){return _.S(function(y){if(y.nextAddress==1)return _.nj(y,2),y.yield(I.aik(),4);if(y.nextAddress!=2)return _.lZ(y,0);_.dj(y);_.Cj(y)})};
Z6B=function(I){var y,D;(y=I.ytcsi)==null||(D=y.tick)==null||D.call(y,"pot_ist")};
g$J=function(I){if(I instanceof Error){var y=_.jF("yt.logging.errors.log");y&&y(I,"WARNING")}};
IGq=function(I){try{var y=JSON.parse(I);if(y.bgChallenge)return y}catch(D){}};
DBS=function(){var I=window,y={networkStatusManagerPromise:_.nR().resolve(new FdH(_.x7)),initialChallengeSli:_.l("wpo_att_sli")?new _.pcq("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};I=I===void 0?window:I;var D=I.ytAtR,F;y==null||(F=y.initialChallengeSli)==null||_.mP(F);if(D){if(D=IGq(D)){var R;y==null||(R=y.initialChallengeSli)==null||_.Mv(R,"SUCCESS");y1t(D,y)}I.ytAtR=void 0}else I.ytAtRC=function(O){if(O=IGq(O)){var w;y==null||(w=y.initialChallengeSli)==null||
_.Mv(w,"SUCCESS");y1t(O,y);I.ytAtRC=void 0}}};
Ol4=function(){if(FIC)return FIC;try{var I=_.kW("IFRAME");_.Ok(I,_.Et(R$o));I.sandbox.add("allow-same-origin");I.style.display="none";document.body.appendChild(I);return FIC=I}catch(y){I=new _.g6("Failed to create sandbox iframe"),_.vu(I)}};
LIo=function(){return function(I,y){_.Pi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[I]=y}};
J1H=function(){return function(I,y){var D={};D[I]=y;I=_.r6(_.ibW)(D);Object.keys(I).length>0&&_.ek(I)}};
Sa4=function(){if(_.SEq()==="hidden")var I="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.SEq()==="visible"&&(I="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",weW=null);I&&vde(I)};
vde=function(I){if(I==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||I==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(tOH===I)return;tOH=I}var y=9E4+Math.random()*2E3;if(I!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.m$()>y)&&_.SEq()==="visible"){y=-1;weW&&(y=Math.round((0,_.m_)()-weW));var D=String;var F=_.jF("_fact",window);F=F==null||F==-1?-1:Math.max(Date.now()-F,0);_.Jq("foregroundHeartbeat",{firstActivityMs:D(F),clientDocumentNonce:Kg_,index:String(PJ4),lastEventDeltaMs:String(y),trigger:I});
_.fv("_fact",-1,window);PJ4++;weW=(0,_.m_)()}};
KIC=function(I,y,D,F,R,O){y=new Uint8Array(y);if(I.length===0)return y;var w=0;R=R!=null?R:I.length-1;for(var v=D;v<=R;v++){var P=I[v],K=v===D?F:0,r=void 0,N=v===R?(r=O)!=null?r:P.length:P.length;P=P.subarray(K,N);y.set(P,w);w+=P.length}return y};
_.UBe=function(){try{return!!self.sessionStorage}catch(I){return!1}};
r1q=function(){var I=navigator;return new Promise(function(y,D){var F;(F=I.webkitTemporaryStorage)!=null&&F.queryUsageAndQuota?I.webkitTemporaryStorage.queryUsageAndQuota(function(R,O){y({usage:R,quota:O})},function(R){D(R)}):D(Error("Hj"))})};
jNB=function(I,y){var D={errorSeverity:y.errorSeverity.toString(),wizFeatureFlags:Object.entries(y.featureFlags).join("\n")};aXo(y,D);y=y.errorSeverity;y===3?_.vu(I,"ERROR",void 0,void 0,void 0,D):y===2&&_.vu(I,"WARNING",void 0,void 0,void 0,D);_.l("cow_if_errors_in_popup")&&y===3&&I.message.indexOf("<If>")!==-1&&window.alert(I.message)};
odH=function(I,y){var D=KC.get(I)||{layerNode:y};D.layerNode=y;EDB(I,D);I.getScreenLayer=function(){return zr(D.layerNode)}};
N$q=function(I){var y;I=I.parentNode;for(var D;I&&((y=KC.get(I))==null||!y.isRenderer)&&!((D=I.polymerController)!=null?D:I).isRenderer_;)I=I.parentNode||I.host;if(y=I)return KC.get(y)};
h$J=function(I){if(I){KC.delete(I);var y=_.nR().resolve(nT);XTA(I,y)}};
lGq=function(I,y,D){if(D===void 0?0:D){if(D=I.getAttribute("client-ve-type"),y.data&&!y.disableReactiveLogging||D)_.JI(function(){xBt(I,_.Ki(y.data))},"Dg"),_.tI(function(){return void h$J(I)})}else typeof y.data!=="function"&&xBt(I,y.data)};
xBt=function(I,y){uco++;qaW(I,y)&&_.w2.addJob(function(){_.k1(_.w2,function(){if(qaW(I,y)&&I.ownerDocument.documentElement===document.documentElement&&I){var D;if(I.getAttribute("layer")){var F=D=Number(I.getAttribute("layer")),R=KC.get(I);R?R.layerNode.layer=F:odH(I,new EdL(F));(F=N$q(I))&&(R=KC.get(I))!=null&&(R.layerNode.parent=F.layerNode)}else if(D=KC.get(I))D=zr(D.layerNode);else{D=zr;F=new EdL;if(R=N$q(I))F.parent=R.layerNode;odH(I,F);D=D(F)}D!=null||(D=0);F=I.getAttribute("client-ve-type");
R=Number(F);var O=!1;F=!1;var w=KC.get(I),v;if((v=w)&&!(v=w[Gy5]!==y)&&(v=R)){var P;v=((P=KC.get(I))==null?void 0:P.clientVeType)===void 0}v&&(w[Gy5]=y,O=F=w.isRenderer=!0);KC.has(I)&&(KC.get(I).clientVeType=R);I.visualElement&&(F=!0);if(_.l("wiz_next_ld_fix_client_ve_spec")){var K;P=((K=_.u(y==null?void 0:y.rendererContext,_.CQ))==null?void 0:K.loggingDirectives)||(y==null?void 0:y.loggingDirectives)}else P=y==null?void 0:y.loggingDirectives;P&&P.clientVeSpec&&(K=XeB(_.a6(),I),K=_.QNo(_.W4(),P,K||
void 0,D))&&(I.visualElement=K);!I.visualElement&&R&&O&&(I.veType=R,K=void 0,_.l("wiz_next_client_ve_parent_fix")&&(K=XeB(_.a6(),I)),K=_.c4(_.W4(),I,K,D),I.visualElement=K);F&&(K=_.nR().resolve(nT),dy(I,{data:y,observer:K,layer:D,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
qaW=function(I,y){return(y==null?0:y.trackingParams)||(y==null?0:y.loggingDirectives)||_.u(y==null?void 0:y.rendererContext,_.CQ)||I.getAttribute("client-ve-type")?!0:!1};
YaW=function(I,y,D){I.componentType!==gR&&D instanceof HTMLElement&&y&&!_.l("cow_logging_in_component_wrapper")&&lGq(D,y,!0)};
mBe=function(){if(!fGJ){fGJ=!0;var I=_.l("enable_wiz_context_per_component")||!1;I=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.l("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:I,enableContextBasedComponentStacks:I},{handleError:jNB,enableComponentStacksInErrorMessages:!1});Object.assign(Ma,I);_.l("web_c3_idom_interop_ks")&&(eLt=nd4);peW();gi5=sWe;sVH=ZXt}};
peW=function(){_.l("cow_logging_in_component_wrapper")?(OXA=function(I,y){y instanceof HTMLElement&&lGq(y,I,!0)},dUq=function(){}):(OXA=function(){},dUq=YaW)};
MOS=function(I,y,D){y=y===void 0?{}:y;var F,R=(F=_.u(I.commandMetadata,_.nE))==null?void 0:F.url;F=y.form||{};!D||F.element||F.skipDefaultElement||(y.form=y.form||{},y.form.element=D);if(R&&R!=="/service_ajax")return{type:0,command:I,form:y.form};if(_.l("kevlar_service_command_check")){if(_.JZ(_.nR().resolve(_.iX),I))return Object.assign({},{type:1,command:I},y)}else{var O;if((O=_.u(I.commandMetadata,_.nE))==null?0:O.apiUrl)return Object.assign({},{type:1,command:I},y)}return{type:2,command:I,form:y.form}};
z$J=function(I){if(I.form){var y=I.form,D=Object.assign({},y);y=y.element;D=(delete D.element,D);if(y)return[_.E$(y,[I.command,D,I.commandController])]}return[]};
kyW=function(I){if(I.form){var y=I.form,D=Object.assign({},y);y=y.element;D=(delete D.element,D);y&&_.GC(y,[I.command],y,D)}};
aGC=function(I,y,D){var F=new dBt(I,y),R=new dT(I,y,D);I={"/youtubei/v1/browse":new az(I,y,D),"/youtubei/v1/player":F,"/youtubei/v1/navigation/resolve_url":new cw,"/youtubei/v1/next":R,"/youtubei/v1/guide":new Ww(D),"/youtubei/v1/search":new Cx(I,y,D),"/youtubei/v1/reel/reel_item_watch":new Bw(I,y,D),"/youtubei/v1/get_watch":new i0(F,R)};I["/youtubei/v1/account/account_menu"]=new As;I["/youtubei/v1/notification/get_notification_menu"]=new $1;return I};
Hw=function(){var I=_.nR().resolve(_.b0);return Promise.resolve(c1o(I,_.Ft.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
WI4=function(I){return I&&(I=_.ez(_.ew5(I)))?(new URLSearchParams(I)).get("service"):null};
Vo=function(I,y){_.qK(_.Tr(),function(){_.V_("adl")});
_.nR().resolve(CJL)(y);I=I.root;I.loadData&&I.loadData(y);(y==null?0:y.response)?_.Mv(zRA(),"SUCCESS"):_.tq(new _.g6("Lifecycle: No response in data",_.KR("IS_SHELL_LOAD"),y?y.page:"NO_PAGE",y?y.endpoint:"NO_ENDPOINT"));I.polymerController.$["page-manager"].lazyPrepareCriticalPages((y==null?void 0:y.page)||"",y.endpoint);var D,F;((F=_.u(y==null?void 0:(D=y.endpoint)==null?void 0:D.commandMetadata,_.nE))==null?0:F.webPageType)&&_.oq().dispatch(_.sR(_.u(y.endpoint.commandMetadata,_.nE).webPageType))};
B$_=function(){var I,y;return _.S(function(D){switch(D.nextAddress){case 1:I=window;if(!I.getDataPromise){D.jumpTo(2);break}_.nj(D,3);return D.yield(I.getDataPromise(),5);case 5:return D.return(D.yieldResult);case 3:return _.dj(D),D.yield(Hw(),6);case 6:return D.return(D.yieldResult);case 2:if(I.getInitialData)return y=I.getInitialData(),I.getInitialData=void 0,D.return(y);throw Error("Jj`"+_.Ft.location.href);}})};
A1C=function(){_.tG("CSI_SERVICE_NAME","youtube");_.ek({loadType:"cold"});_.l("kevlar_log_lcp")&&ilL(function(I){_.V_("lcp",I.value)})};
$BL=function(){var I=_.rR(document.location.href,"enable");I&&I.indexOf("scraper")>-1&&_.tG("ADD_SCRAPER_ATTRIBUTES",!0)};
sNH=function(I){var y=I.root;I=[blH,Hlo,_.Z3];_.l("web_feedback_endpoint_autolog_allowlist_killswitch")&&I.push(_.gT,e$_);T$e(function(D,F){return MOS(D,F,y)},function(D){if(!D.command)return[];
var F;((F=D.form)==null?0:F.element)?D.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},D.form,{endpoint:D.command})})):y.handleNavigate(D);return[]},I);
_.nR().addProvider({provide:_.MC,useValue:_.M4.instance})};
ZlL=function(){var I={},y={},D;for(D in VOq){var F=_.J(_.$M(VOq[D],void 0,"e17Ccb"));I[D]=F.next().value;y[D]=F.next().value}return[I,function(R){for(var O in R){var w=void 0;(w=y[O])==null||w(R[O])}}]};
_.yy_=function(I,y){var D=!1;D=D===void 0?!1:D;var F=_.e$.getValueByKeys(I,"contents","twoColumnWatchNextResults","results","results","contents"),R=_.e$.getValueByKeys(I,"contents","twoColumnWatchNextResults","playlist","playlist")||null;D&&(R=null);var O=D=null;if(R)D=_.e$.getValueByKeys(R,"titleText"),O=_.e$.unsafeClone(_.e$.getValueByKeys(R,"longBylineText")),F="",O&&(F=_.rY(O)),O=_.Ug(F);else if(F){F=_.J(F);for(var w=F.next();!w.done;w=F.next())w=w.value,w.videoPrimaryInfoRenderer&&(D=_.e$.getValueByKeys.apply(_.e$,
[w].concat(_.Td(gd5)))),w.videoSecondaryInfoRenderer&&(O=_.e$.getValueByKeys.apply(_.e$,[w].concat(_.Td(IYL))))}else _.o8(Error("Oj"));var v;I.currentVideoEndpoint?v=I.currentVideoEndpoint:_.o8(Error("Pj"));var P;y&&(P=_.e$.getValueByKeys(y,"playabilityStatus","miniplayer","miniplayerRenderer"));I={miniplayerTitle:D,miniplayerSubtitle:O,watchEndpoint:v,playlistData:R};P&&(I.miniplayerRenderer=P);return I};
Dee=function(I){if(I)return _.Vd(I)};
_.Fl_=function(){return{isFullscreen:function(){throw Error("Qj");},
toggleFullscreen:function(){throw Error("Rj");},
exitFullscreen:function(){throw Error("Sj");},
isAutonavEnabled:function(){throw Error("Tj");},
setAutonavEnabled:function(){throw Error("Uj");},
isAutoplaySetExplicitly:function(){throw Error("Vj");}}};
R8o=function(I){return I.videoDuration?I.numTaps>1&&I.tapDirection!==0?_.IL(I.draggedTime/I.videoDuration,0,1):_.IL((I.playedTime||0)/I.videoDuration,0,1):0};
OmA=function(I){return I.videoDuration?I.isDragging||I.numTaps>1&&I.tapDirection!==0?_.IL(I.draggedTime/I.videoDuration,0,1):_.IL((I.playedTime||0)/I.videoDuration,0,1):0};
JyS=function(I){var y,D,F;return _.u(I==null?void 0:(y=I.markersMap)==null?void 0:(D=y.find(function(R){return R.key==="HEATSEEKER"}))==null?void 0:(F=D.value)==null?void 0:F.heatmap,LlA)};
whW=function(I){var y,D;return(D=(y=JyS(I))==null?void 0:y.heatMarkersDecorations)!=null?D:[]};
vGW=function(I){if(_.l("mweb_supported_chapters_killswitch"))return!0;var y;return!!(I==null?0:(y=I.markersMap)==null?0:y.find(function(D){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(D.key)}))};
_.SXq=function(I){var y=Object,D=y.assign,F;I={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(F=I==null?void 0:I.getPlayerState())!=null?F:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return D.call(y,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},I,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
tyA=function(I){return function(y){var D=I(),F,R=(F=D.playerApi)==null?void 0:F.getPlayerState();y&&y!==D.playerState&&(y===1||y===2)&&D.setState({playerState:R})}};
KlL=function(I){return function(y){var D=I(),F=D.playerApi;F&&(y==null?void 0:y.type)==="newdata"&&(PUL&&(clearTimeout(PUL),PUL=void 0),_.l("web_shorts_use_progress_state_for_gapless")?(y=F==null?void 0:F.getProgressState(y==null?void 0:y.playertype),y=y.seekableEnd-y.seekableStart):y=F==null?void 0:F.getDuration(y==null?void 0:y.playertype),D.setState({playedTime:0,videoDuration:y}))}};
UeB=function(I){return function(y){var D=I(),F=D.playerApi;if(F){var R=F.getPresentingPlayerType();_.l("web_shorts_use_progress_state_for_gapless")?(F=F.getProgressState(R),F=F.seekableEnd-F.seekableStart):F=F.getDuration(R);D.setState({playedTime:y,videoDuration:F})}}};
jsH=function(I){_.H_(112394,I,function(){return ryo},function(y){ryo=y})};
h84=function(I,y){if(!I)return[];var D,F,R;I=((D=I.markersMap)==null?void 0:(F=D.find(function(O){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(O.key)}))==null?void 0:(R=F.value)==null?void 0:R.chapters)||[];
!oGq(I)||(y==null?0:y.ignoreStub)||(I=[N8H()].concat(_.Td(I)));return I};
N8H=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
oGq=function(I){if(I.length===0)return!1;var y;return((y=_.u(I[0],D$))==null?void 0:y.timeRangeStartMillis)!==0};
Fq=function(I){return I?I.timeRangeStartMillis||0:0};
lYt=function(I,y){if(I.isDragging&&y)return I=xeq(I,y),I===-1?N8H():h84(y)[I]};
xeq=function(I,y){return I.isDragging&&y?h84(y,{ignoreStub:!0}).findIndex(function(D,F,R){D=u05(I);return qXJ(D,R,F).scrubberHovering}):-1};
u05=function(I){return Object.assign({},I,{videoDuration:I.videoDuration*1E3,playedTime:I.playedTime*1E3,draggedTime:I.draggedTime*1E3})};
qXJ=function(I,y,D){var F=Fq(_.u(y[D],D$));y=Fq(_.u(y[D+1],D$))||I.videoDuration;D=I.isDragging;var R;if(R=I.isDragging)R=I.draggedTime,R=R!==null&&R>=F&&R<y;var O=I.playedTime;return O!==null&&O>=F&&O<y?{videoPosition:"active",isScrubbing:D,scrubberHovering:R}:I.playedTime<F?{videoPosition:"pending",isScrubbing:D,scrubberHovering:R}:{videoPosition:"seen",isScrubbing:D,scrubberHovering:R}};
EGo=function(I,y){return I.videoPosition==="seen"||(y===void 0?0:y)>0};
GTJ=function(I,y,D){y=I/y.storyboardInterval;var F=h84(D);if(!F.length)return-y*72;D=0;F=_.J(F);for(var R=F.next();!R.done;R=F.next())if(Fq(_.u(R.value,D$))/1E3<I)D++;else break;return-(y*72)-D*56};
XhJ=function(I){return I?I.width/I.columns:0};
QsJ=function(I){return I.isHovering?I.hoveredTime:I.draggedTime};
YX4=function(I,y){I=I.draggedTime*1E3;return I>=y.visibleTimeRangeStartMillis&&I<=y.visibleTimeRangeEndMillis};
_.fYt=function(I){if(I===void 0||Number.isNaN(I))return"--:--";var y=Math.abs(Math.floor(I)),D=Math.floor(y/86400),F=Math.floor(y%86400/3600),R=Math.floor(y%3600/60);y=Math.floor(y%60);var O="";D>0&&(O+=D+":",F<10&&(O+="0"));if(D>0||F>0)O+=F+":",R<10&&(O+="0");O+=R+":";y<10&&(O+="0");O+=y;return I>=0?O:"-"+O};
nGJ=function(I,y){return function(){var D=QsJ(I());var F=y();var R=I().playerApi;if(R&&R.getNumberOfStoryboardLevels()!==0){var O=R.getStoryboardFrameIndex(D,1);O!==-1?F=R.getStoryboardFrame(O,1):(D=R.getStoryboardFrameIndex(D,0),R=R.getStoryboardFrame(D,0),F&&R&&(R.height*=3,R.width*=3),F=R)}else F=null;if(!F)return null;y()&&(F.width=90*F.columns,F.height=160*F.rows);return F}};
_.RL=function(I){if(!I||I.getVideoData)return I};
ph5=function(){var I;return{playerApi:(I=_.ft())!=null?I:void 0}};
meW=function(I){var y;_.S(function(D){if(D.nextAddress==1)return D.yield(_.Yz(),2);if(y=D.yieldResult)y.unMute(!0),y.setVolume(I,!0);_.Cj(D)})};
My_=function(I,y){I&&(I.value=""+y,I.style.setProperty("--gradient-percent",y+"%"))};
z8A=function(I){var y;return(y=I==null?void 0:I.value)!=null?y:0};
kTe=function(){var I;_.S(function(y){if(y.nextAddress==1)return y.yield(_.Yz(),2);I=y.yieldResult;if(!I)return y.return();I.isMuted()?I.unMute(!0):I.mute(!0);_.Cj(y)})};
de_=function(I){var y=_.nR().resolve(_.OI).getPlayerElement();y&&I&&(I===1?y.pause():y.play())};
aY_=function(I){return!!_.u(I,_.Lz)||!!_.u(I,_.JT)};
cyH=function(I){_.qr(I,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Wl5=function(I){_.qr(I,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
B8S=function(I){return _.R8(I.document.body,function(){return _.t(CUA,null)},"nh")};
imq=function(){var I;return(I=navigator.userActivation)==null?void 0:I.isActive};
AyH=function(){var I=window.performance.getEntriesByType("navigation");return I?I.map(function(y){return y.type}).includes("reload"):!1};
$eW=function(I,y){y=y===void 0?!1:y;var D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return y||!_.l("kevlar_shorts_seedless_retry_initial_load")||(D=window,F=!(!D.getDataPromise&&!D.getInitialData),F)?w.yield(B$_(),2):(setTimeout($eW.bind(window,I,!0),1E3),w.return());if(w.nextAddress!=3)return R=w.yieldResult,w.yield(bmt(R),3);O=w.yieldResult;Vo(I,O);_.Cj(w)})};
bmt=function(I){var y;if((y=I.response)==null||!y.replacementEndpoint)return _.Xs(I);y=_.nR().resolve(_.b0);I=I.response;_.u(I.replacementEndpoint,_.WF)&&I.sequenceContinuation&&(_.u(I.replacementEndpoint,_.WF).sequenceParams=I.sequenceContinuation);return wu(y,I.replacementEndpoint,{},_.Ft.location.href,"shorts",function(){},function(){return!1})};
e8q=function(I){var y=_.nR().resolve(HmJ);I.playerResponse&&y.handleResponse(I.playerResponse);I.response&&y.handleResponse(I.response)};
T8t=function(I){var y=_.oq(),D,F=_.u((D=I.response)==null?void 0:D.frameworkUpdates,Sa),R;D=_.u((R=I.playerResponse)==null?void 0:R.frameworkUpdates,Sa);var O;I=_.u((O=I.reelWatchSequenceResponse)==null?void 0:O.frameworkUpdates,Sa);F&&_.kK(F,y);D&&_.kK(D,y);I&&_.kK(I,y)};
sso=function(I){var y;_.l("enable_redirect_linking_for_desktop_web_client")&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&I.url&&(I.url=I.url.toString()+window.location.hash)};
gGq=function(I){var y=_.nR(),D=y.resolve(_.b0);y=y.resolve(_.VyW);I.endpoint&&(D=Zmt(D,I.endpoint),D.content&&I.response&&_.vn(y,I.response,D.content),D.player&&I.playerResponse&&_.vn(y,I.playerResponse,D.player),D.reelSequence&&I.reelWatchSequenceResponse&&_.vn(y,I.reelWatchSequenceResponse,D.reelSequence))};
S0=function(I,y){e8q(y);T8t(y);var D;(y==null?0:y.url)&&((D=window.location.hash)==null?0:D.includes("redirect_state"))&&(sso(y),(D=WI4(y.url))&&_.uj(I.root,"yt-initialize-third-party",[D,y]));gGq(y);D=_.nR();var F=D.resolve(ICW);y.playerResponse&&D.resolve(yLR).handleResponse(y.playerResponse);if(y.playerResponse){D=void 0;if(_.l("ab_v_vid_sig")&&y.endpoint){var R,O=(R=_.u(y.endpoint,_.t9))!=null?R:_.u(y.endpoint,_.WF);O&&(D=O.videoId)}DSz(F,y.playerResponse,D)}y.playerResponse&&ZF5(y.playerResponse)&&
_.l("web_enable_ab_rsp_cl")?KaA().then(function(){FJO(F,y.playerResponse);Vo(I,y)}):Vo(I,y)};
O5_=function(I){if(I=I.root.data){var y=_.nR().resolve(R4z);I.endpoint&&(I.response&&y.handleResponse(I.response,void 0,document.querySelector("ytd-app")),I.playerResponse&&y.handleResponse(I.playerResponse),I.reelWatchSequenceResponse&&y.handleResponse(I.reelWatchSequenceResponse))}};
LJn=function(I){var y,D,F,R,O,w;return _.S(function(v){switch(v.nextAddress){case 1:y=window;if(!y.getDataPromise){v.jumpTo(2);break}_.nj(v,3);return v.yield(y.getDataPromise(),5);case 5:D=v.yieldResult;S0(I,D);_.lZ(v,4);break;case 3:return _.dj(v),v.yield(Hw(),6);case 6:F=v.yieldResult,Vo(I,F);case 4:return v.return();case 2:if(!_.l("sw_nav_preload_pbj")){v.jumpTo(7);break}y.fetchInitialData=function(){var P;return _.S(function(K){if(K.nextAddress==1)return K.yield(Hw(),2);P=K.yieldResult;Vo(I,P);
_.Cj(K)})};
if(y.getInitialData){y.loadInitialData=function(P){S0(I,P)};
R=y.getInitialData();y.getInitialData=void 0;S0(I,R);v.jumpTo(8);break}y.fetchInitialData=void 0;return v.yield(Hw(),9);case 9:O=v.yieldResult,Vo(I,O);case 8:return v.return();case 7:y.getInitialData?(w=y.getInitialData(),y.getInitialData=void 0,S0(I,w)):y.loadInitialData=function(P){S0(I,P)},_.Cj(v)}})};
wHe=function(){var I=new JLO;_.h5B(I);I.registerInitializationCallback(function(){DvL(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
I.registerCallback("error",function(y,D,F){_.UJ(Error("Zj`"+D+"`"+F))})};
vAg=typeof Object.create=="function"?Object.create:function(I){var y=function(){};
y.prototype=I;return new y};
Sqn=typeof Object.defineProperties=="function"?Object.defineProperty:function(I,y,D){if(I==Array.prototype||I==Object.prototype)return I;I[y]=D.value;return I};
tWO=function(I){I=["object"==typeof globalThis&&globalThis,I,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var y=0;y<I.length;++y){var D=I[y];if(D&&D.Math==Math)return D}throw Error("a");};
_.mD=tWO(this);P_M="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.mD.BigInt64Array&&(P_M.push("BigInt64"),P_M.push("BigUint64"));var USW=function(I,y){if(y)for(var D=0;D<P_M.length;D++)KJu(P_M[D]+"Array.prototype."+I,y)},tT=function(I,y){y&&KJu(I,y)},KJu=function(I,y){var D=_.mD;
I=I.split(".");for(var F=0;F<I.length-1;F++){var R=I[F];if(!(R in D))return;D=D[R]}I=I[I.length-1];F=D[I];y=y(F);y!=F&&y!=null&&Sqn(D,I,{configurable:!0,writable:!0,value:y})},rLO=function(){function I(){function D(){}
new D;Reflect.construct(D,[],function(){});
return new D instanceof D}
if(typeof Reflect!="undefined"&&Reflect.construct){if(I())return Reflect.construct;var y=Reflect.construct;return function(D,F,R){D=y(D,F);R&&Reflect.setPrototypeOf(D,R.prototype);return D}}return function(D,F,R){R===void 0&&(R=D);
R=vAg(R.prototype||Object.prototype);return Function.prototype.apply.call(D,R,F)||R}}(),joM;
if(typeof Object.setPrototypeOf=="function")joM=Object.setPrototypeOf;else{var oA_;a:{var Nqe={a:!0},h4g={};try{h4g.__proto__=Nqe;oA_=h4g.a;break a}catch(I){}oA_=!1}joM=oA_?function(I,y){I.__proto__=y;if(I.__proto__!==y)throw new TypeError("b`"+I);return I}:null}Pn=joM;
_.E=function(I,y){I.prototype=vAg(y.prototype);I.prototype.constructor=I;if(Pn)Pn(I,y);else for(var D in y)if(D!="prototype")if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(y,D);F&&Object.defineProperty(I,D,F)}else I[D]=y[D];I.superClass_=y.prototype};
xSf=function(I){var y=0;return function(){return y<I.length?{done:!1,value:I[y++]}:{done:!0}}};
_.J=function(I){var y=typeof Symbol!="undefined"&&Symbol.iterator&&I[Symbol.iterator];if(y)return y.call(I);if(typeof I.length=="number")return{next:xSf(I)};throw Error("c`"+String(I));};
GO=function(I){for(var y,D=[];!(y=I.next()).done;)D.push(y.value);return D};
_.Td=function(I){return I instanceof Array?I:GO(_.J(I))};
_.UI=function(I){return Kz(I,I)};
Kz=function(I,y){I.raw=y;Object.freeze&&(Object.freeze(I),Object.freeze(y));return I};
ru=function(I,y){return Object.prototype.hasOwnProperty.call(I,y)};
lCf=function(I){if(I==null)throw new TypeError("d");return Object(I)};
utP=typeof Object.assign=="function"?Object.assign:function(I,y){I=lCf(I);for(var D=1;D<arguments.length;D++){var F=arguments[D];if(F)for(var R in F)ru(F,R)&&(I[R]=F[R])}return I};
tT("Object.assign",function(I){return I||utP});
var j0=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},qqG=function(I){if(I.isRunning_)throw new TypeError("f");
I.isRunning_=!0};
j0.prototype.JSC$8989_next_=function(I){this.yieldResult=I};
var EAe=function(I,y){I.abruptCompletion_={exception:y,isException:!0};I.nextAddress=I.catchAddress_||I.finallyAddress_};
j0.prototype.return=function(I){this.abruptCompletion_={return:I};this.nextAddress=this.finallyAddress_};
j0.prototype.yield=function(I,y){this.nextAddress=y;return{value:I}};
j0.prototype.jumpTo=function(I){this.nextAddress=I};
_.Cj=function(I){I.nextAddress=0};
_.nj=function(I,y,D){I.catchAddress_=y;D!=void 0&&(I.finallyAddress_=D)};
_.zd=function(I,y){I.catchAddress_=0;I.finallyAddress_=y||0};
_.lZ=function(I,y,D){I.nextAddress=y;I.catchAddress_=D||0};
_.dj=function(I,y){I.catchAddress_=y||0;y=I.abruptCompletion_.exception;I.abruptCompletion_=null;return y};
_.m4=function(I,y,D,F){F?I.finallyContexts_[F]=I.abruptCompletion_:I.finallyContexts_=[I.abruptCompletion_];I.catchAddress_=y||0;I.finallyAddress_=D||0};
_.kQ=function(I,y,D){D=I.finallyContexts_.splice(D||0)[0];(D=I.abruptCompletion_=I.abruptCompletion_||D)?D.isException?I.nextAddress=I.catchAddress_||I.finallyAddress_:D.jumpTo!=void 0&&I.finallyAddress_<D.jumpTo?(I.nextAddress=D.jumpTo,I.abruptCompletion_=null):I.nextAddress=I.finallyAddress_:I.nextAddress=y};
GeP=function(I){this.JSC$8994_context_=new j0;this.program_=I};
Qon=function(I,y){qqG(I.JSC$8994_context_);var D=I.JSC$8994_context_.yieldAllIterator_;if(D)return XHO(I,"return"in D?D["return"]:function(F){return{value:F,done:!0}},y,I.JSC$8994_context_.return);
I.JSC$8994_context_.return(y);return oL(I)};
XHO=function(I,y,D,F){try{var R=y.call(I.JSC$8994_context_.yieldAllIterator_,D);if(!(R instanceof Object))throw new TypeError("e`"+R);if(!R.done)return I.JSC$8994_context_.isRunning_=!1,R;var O=R.value}catch(w){return I.JSC$8994_context_.yieldAllIterator_=null,EAe(I.JSC$8994_context_,w),oL(I)}I.JSC$8994_context_.yieldAllIterator_=null;F.call(I.JSC$8994_context_,O);return oL(I)};
oL=function(I){for(;I.JSC$8994_context_.nextAddress;)try{var y=I.program_(I.JSC$8994_context_);if(y)return I.JSC$8994_context_.isRunning_=!1,{value:y.value,done:!1}}catch(D){I.JSC$8994_context_.yieldResult=void 0,EAe(I.JSC$8994_context_,D)}I.JSC$8994_context_.isRunning_=!1;if(I.JSC$8994_context_.abruptCompletion_){y=I.JSC$8994_context_.abruptCompletion_;I.JSC$8994_context_.abruptCompletion_=null;if(y.isException)throw y.exception;return{value:y.return,done:!0}}return{value:void 0,done:!0}};
Yqg=function(I){this.next=function(y){qqG(I.JSC$8994_context_);I.JSC$8994_context_.yieldAllIterator_?y=XHO(I,I.JSC$8994_context_.yieldAllIterator_.next,y,I.JSC$8994_context_.JSC$8989_next_):(I.JSC$8994_context_.JSC$8989_next_(y),y=oL(I));return y};
this.throw=function(y){qqG(I.JSC$8994_context_);I.JSC$8994_context_.yieldAllIterator_?y=XHO(I,I.JSC$8994_context_.yieldAllIterator_["throw"],y,I.JSC$8994_context_.JSC$8989_next_):(EAe(I.JSC$8994_context_,y),y=oL(I));return y};
this.return=function(y){return Qon(I,y)};
this[Symbol.iterator]=function(){return this}};
_.nx=function(I,y){y=new Yqg(new GeP(y));Pn&&I.prototype&&Pn(y,I.prototype);return y};
fCO=function(I){function y(F){return I.next(F)}
function D(F){return I.throw(F)}
return new Promise(function(F,R){function O(w){w.done?F(w.value):Promise.resolve(w.value).then(y,D).then(O,R)}
O(I.next())})};
_.S=function(I){return fCO(new Yqg(new GeP(I)))};
tT("Symbol",function(I){if(I)return I;var y=function(O,w){this.$jscomp$symbol$id_=O;Sqn(this,"description",{configurable:!0,writable:!0,value:w})};
y.prototype.toString=function(){return this.$jscomp$symbol$id_};
var D="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",F=0,R=function(O){if(this instanceof R)throw new TypeError("g");return new y(D+(O||"")+"_"+F++,O)};
return R});
tT("Symbol.iterator",function(I){if(I)return I;I=Symbol("h");Sqn(Array.prototype,I,{configurable:!0,writable:!0,value:function(){return nAu(xSf(this))}});
return I});
tT("Symbol.asyncIterator",function(I){return I?I:Symbol("i")});
nAu=function(I){I={next:I};I[Symbol.iterator]=function(){return this};
return I};
_.pj=function(I){var y=I[Symbol.asyncIterator];return y!==void 0?y.call(I):new pHc(_.J(I))};
pHc=function(I){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return I};
this.next=function(y){return Promise.resolve(I.next(y))};
this["throw"]=function(y){return new Promise(function(D,F){var R=I["throw"];R!==void 0?D(R.call(I,y)):(D=I["return"],D!==void 0&&D.call(I),F(new TypeError("j")))})};
I["return"]!==void 0&&(this["return"]=function(y){return Promise.resolve(I["return"](y))})};
_.go=function(){for(var I=Number(this),y=[],D=I;D<arguments.length;D++)y[D-I]=arguments[D];return y};
_.px=function(I){return I};
tT("globalThis",function(I){return I||_.mD});
tT("Reflect",function(I){return I?I:{}});
tT("Reflect.construct",function(){return rLO});
tT("Reflect.setPrototypeOf",function(I){return I?I:Pn?function(y,D){try{return Pn(y,D),!0}catch(F){return!1}}:null});
tT("Promise",function(I){function y(){this.batch_=null}
function D(w){return w instanceof R?w:new R(function(v){v(w)})}
if(I&&(typeof _.mD.PromiseRejectionEvent!=="undefined"||!_.mD.Promise||_.mD.Promise.toString().indexOf("[native code]")===-1))return I;y.prototype.asyncExecute=function(w){if(this.batch_==null){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(w)};
var F=_.mD.setTimeout;y.prototype.asyncExecuteFunction=function(w){F(w,0)};
y.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var w=this.batch_;this.batch_=[];for(var v=0;v<w.length;++v){var P=w[v];w[v]=null;try{P()}catch(K){this.asyncThrow_(K)}}}this.batch_=null};
y.prototype.asyncThrow_=function(w){this.asyncExecuteFunction(function(){throw w;})};
var R=function(w){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var v=this.createResolveAndReject_();try{w(v.resolve,v.reject)}catch(P){v.reject(P)}};
R.prototype.createResolveAndReject_=function(){function w(K){return function(r){P||(P=!0,K.call(v,r))}}
var v=this,P=!1;return{resolve:w(this.resolveTo_),reject:w(this.JSC$9026_reject_)}};
R.prototype.resolveTo_=function(w){if(w===this)this.JSC$9026_reject_(new TypeError("n"));else if(w instanceof R)this.settleSameAsPromise_(w);else{a:switch(typeof w){case "object":var v=w!=null;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(w):this.fulfill_(w)}};
R.prototype.resolveToNonPromiseObj_=function(w){var v=void 0;try{v=w.then}catch(P){this.JSC$9026_reject_(P);return}typeof v=="function"?this.settleSameAsThenable_(v,w):this.fulfill_(w)};
R.prototype.JSC$9026_reject_=function(w){this.settle_(2,w)};
R.prototype.fulfill_=function(w){this.settle_(1,w)};
R.prototype.settle_=function(w,v){if(this.state_!=0)throw Error("o`"+w+"`"+v+"`"+this.state_);this.state_=w;this.result_=v;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
R.prototype.scheduleUnhandledRejectionCheck_=function(){var w=this;F(function(){if(w.notifyUnhandledRejection_()){var v=_.mD.console;typeof v!=="undefined"&&v.error(w.result_)}},1)};
R.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var w=_.mD.CustomEvent,v=_.mD.Event,P=_.mD.dispatchEvent;if(typeof P==="undefined")return!0;typeof w==="function"?w=new w("unhandledrejection",{cancelable:!0}):typeof v==="function"?w=new v("unhandledrejection",{cancelable:!0}):(w=_.mD.document.createEvent("CustomEvent"),w.initCustomEvent("unhandledrejection",!1,!0,w));w.promise=this;w.reason=this.result_;return P(w)};
R.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var w=0;w<this.onSettledCallbacks_.length;++w)O.asyncExecute(this.onSettledCallbacks_[w]);this.onSettledCallbacks_=null}};
var O=new y;R.prototype.settleSameAsPromise_=function(w){var v=this.createResolveAndReject_();w.callWhenSettled_(v.resolve,v.reject)};
R.prototype.settleSameAsThenable_=function(w,v){var P=this.createResolveAndReject_();try{w.call(v,P.resolve,P.reject)}catch(K){P.reject(K)}};
R.prototype.then=function(w,v){function P(h,x){return typeof h=="function"?function(q){try{K(h(q))}catch(X){r(X)}}:x}
var K,r,N=new R(function(h,x){K=h;r=x});
this.callWhenSettled_(P(w,K),P(v,r));return N};
R.prototype.catch=function(w){return this.then(void 0,w)};
R.prototype.callWhenSettled_=function(w,v){function P(){switch(K.state_){case 1:w(K.result_);break;case 2:v(K.result_);break;default:throw Error("p`"+K.state_);}}
var K=this;this.onSettledCallbacks_==null?O.asyncExecute(P):this.onSettledCallbacks_.push(P);this.isRejectionHandled_=!0};
R.resolve=D;R.reject=function(w){return new R(function(v,P){P(w)})};
R.race=function(w){return new R(function(v,P){for(var K=_.J(w),r=K.next();!r.done;r=K.next())D(r.value).callWhenSettled_(v,P)})};
R.all=function(w){var v=_.J(w),P=v.next();return P.done?D([]):new R(function(K,r){function N(q){return function(X){h[q]=X;x--;x==0&&K(h)}}
var h=[],x=0;do h.push(void 0),x++,D(P.value).callWhenSettled_(N(h.length-1),r),P=v.next();while(!P.done)})};
return R});
var N0=function(I,y,D){if(I==null)throw new TypeError("q`"+D);if(y instanceof RegExp)throw new TypeError("r`"+D);return I+""};
tT("String.prototype.startsWith",function(I){return I?I:function(y,D){var F=N0(this,y,"startsWith"),R=F.length,O=y.length;D=Math.max(0,Math.min(D|0,F.length));for(var w=0;w<O&&D<R;)if(F[D++]!=y[w++])return!1;return w>=O}});
tT("Object.setPrototypeOf",function(I){return I||Pn});
tT("Symbol.dispose",function(I){return I?I:Symbol("s")});
tT("SuppressedError",function(I){function y(D,F,R){if(!(this instanceof y))return new y(D,F,R);R=Error(R);"stack"in R&&(this.stack=R.stack);this.message=R.message;this.error=D;this.suppressed=F}
if(I)return I;_.E(y,Error);y.prototype.name="SuppressedError";return y});
tT("Array.from",function(I){return I?I:function(y,D,F){D=D!=null?D:function(v){return v};
var R=[],O=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(typeof O=="function"){y=O.call(y);for(var w=0;!(O=y.next()).done;)R.push(D.call(F,O.value,w++))}else for(O=y.length,w=0;w<O;w++)R.push(D.call(F,y[w],w));return R}});
var mSz=function(I,y,D){I instanceof String&&(I=String(I));for(var F=I.length,R=0;R<F;R++){var O=I[R];if(y.call(D,O,R,I))return{i:R,v:O}}return{i:-1,v:void 0}};
tT("Array.prototype.find",function(I){return I?I:function(y,D){return mSz(this,y,D).v}});
tT("WeakMap",function(I){function y(){}
function D(P){var K=typeof P;return K==="object"&&P!==null||K==="function"}
function F(P){if(!ru(P,O)){var K=new y;Sqn(P,O,{value:K})}}
function R(P){var K=Object[P];K&&(Object[P]=function(r){if(r instanceof y)return r;Object.isExtensible(r)&&F(r);return K(r)})}
if(function(){if(!I||!Object.seal)return!1;try{var P=Object.seal({}),K=Object.seal({}),r=new I([[P,2],[K,3]]);if(r.get(P)!=2||r.get(K)!=3)return!1;r.delete(P);r.set(K,4);return!r.has(P)&&r.get(K)==4}catch(N){return!1}}())return I;
var O="$jscomp_hidden_"+Math.random();R("freeze");R("preventExtensions");R("seal");var w=0,v=function(P){this.JSC$9034_id_=(w+=Math.random()+1).toString();if(P){P=_.J(P);for(var K;!(K=P.next()).done;)K=K.value,this.set(K[0],K[1])}};
v.prototype.set=function(P,K){if(!D(P))throw Error("t");F(P);if(!ru(P,O))throw Error("u`"+P);P[O][this.JSC$9034_id_]=K;return this};
v.prototype.get=function(P){return D(P)&&ru(P,O)?P[O][this.JSC$9034_id_]:void 0};
v.prototype.has=function(P){return D(P)&&ru(P,O)&&ru(P[O],this.JSC$9034_id_)};
v.prototype.delete=function(P){return D(P)&&ru(P,O)&&ru(P[O],this.JSC$9034_id_)?delete P[O][this.JSC$9034_id_]:!1};
return v});
tT("Map",function(I){if(function(){if(!I||typeof I!="function"||!I.prototype.entries||typeof Object.seal!="function")return!1;try{var v=Object.seal({x:4}),P=new I(_.J([[v,"s"]]));if(P.get(v)!="s"||P.size!=1||P.get({x:4})||P.set({x:4},"t")!=P||P.size!=2)return!1;var K=P.entries(),r=K.next();if(r.done||r.value[0]!=v||r.value[1]!="s")return!1;r=K.next();return r.done||r.value[0].x!=4||r.value[1]!="t"||!K.next().done?!1:!0}catch(N){return!1}}())return I;
var y=new WeakMap,D=function(v){this[0]={};this[1]=O();this.size=0;if(v){v=_.J(v);for(var P;!(P=v.next()).done;)P=P.value,this.set(P[0],P[1])}};
D.prototype.set=function(v,P){v=v===0?0:v;var K=F(this,v);K.list||(K.list=this[0][K.id]=[]);K.entry?K.entry.value=P:(K.entry={next:this[1],previous:this[1].previous,head:this[1],key:v,value:P},K.list.push(K.entry),this[1].previous.next=K.entry,this[1].previous=K.entry,this.size++);return this};
D.prototype.delete=function(v){v=F(this,v);return v.entry&&v.list?(v.list.splice(v.index,1),v.list.length||delete this[0][v.id],v.entry.previous.next=v.entry.next,v.entry.next.previous=v.entry.previous,v.entry.head=null,this.size--,!0):!1};
D.prototype.clear=function(){this[0]={};this[1]=this[1].previous=O();this.size=0};
D.prototype.has=function(v){return!!F(this,v).entry};
D.prototype.get=function(v){return(v=F(this,v).entry)&&v.value};
D.prototype.entries=function(){return R(this,function(v){return[v.key,v.value]})};
D.prototype.keys=function(){return R(this,function(v){return v.key})};
D.prototype.values=function(){return R(this,function(v){return v.value})};
D.prototype.forEach=function(v,P){for(var K=this.entries(),r;!(r=K.next()).done;)r=r.value,v.call(P,r[1],r[0],this)};
D.prototype[Symbol.iterator]=D.prototype.entries;var F=function(v,P){var K=P&&typeof P;K=="object"||K=="function"?y.has(P)?K=y.get(P):(K=""+ ++w,y.set(P,K)):K="p_"+P;var r=v[0][K];if(r&&ru(v[0],K))for(v=0;v<r.length;v++){var N=r[v];if(P!==P&&N.key!==N.key||P===N.key)return{id:K,list:r,index:v,entry:N}}return{id:K,list:r,index:-1,entry:void 0}},R=function(v,P){var K=v[1];
return nAu(function(){if(K){for(;K.head!=v[1];)K=K.previous;for(;K.next!=K.head;)return K=K.next,{done:!1,value:P(K)};K=null}return{done:!0,value:void 0}})},O=function(){var v={};
return v.previous=v.next=v.head=v},w=0;
return D});
tT("Set",function(I){if(function(){if(!I||typeof I!="function"||!I.prototype.entries||typeof Object.seal!="function")return!1;try{var D=Object.seal({x:4}),F=new I(_.J([D]));if(!F.has(D)||F.size!=1||F.add(D)!=F||F.size!=1||F.add({x:4})!=F||F.size!=2)return!1;var R=F.entries(),O=R.next();if(O.done||O.value[0]!=D||O.value[1]!=D)return!1;O=R.next();return O.done||O.value[0]==D||O.value[0].x!=4||O.value[1]!=O.value[0]?!1:R.next().done}catch(w){return!1}}())return I;
var y=function(D){this.JSC$9048_map_=new Map;if(D){D=_.J(D);for(var F;!(F=D.next()).done;)this.add(F.value)}this.size=this.JSC$9048_map_.size};
y.prototype.add=function(D){D=D===0?0:D;this.JSC$9048_map_.set(D,D);this.size=this.JSC$9048_map_.size;return this};
y.prototype.delete=function(D){D=this.JSC$9048_map_.delete(D);this.size=this.JSC$9048_map_.size;return D};
y.prototype.clear=function(){this.JSC$9048_map_.clear();this.size=0};
y.prototype.has=function(D){return this.JSC$9048_map_.has(D)};
y.prototype.entries=function(){return this.JSC$9048_map_.entries()};
y.prototype.values=function(){return this.JSC$9048_map_.values()};
y.prototype.keys=y.prototype.values;y.prototype[Symbol.iterator]=y.prototype.values;y.prototype.forEach=function(D,F){var R=this;this.JSC$9048_map_.forEach(function(O){return D.call(F,O,O,R)})};
return y});
tT("Math.log2",function(I){return I?I:function(y){return Math.log(y)/Math.LN2}});
tT("Object.values",function(I){return I?I:function(y){var D=[],F;for(F in y)ru(y,F)&&D.push(y[F]);return D}});
tT("Object.is",function(I){return I?I:function(y,D){return y===D?y!==0||1/y===1/D:y!==y&&D!==D}});
tT("Array.prototype.includes",function(I){return I?I:function(y,D){var F=this;F instanceof String&&(F=String(F));var R=F.length;D=D||0;for(D<0&&(D=Math.max(D+R,0));D<R;D++){var O=F[D];if(O===y||Object.is(O,y))return!0}return!1}});
tT("String.prototype.includes",function(I){return I?I:function(y,D){return N0(this,y,"includes").indexOf(y,D||0)!==-1}});
tT("Object.entries",function(I){return I?I:function(y){var D=[],F;for(F in y)ru(y,F)&&D.push([F,y[F]]);return D}});
tT("Number.isFinite",function(I){return I?I:function(y){return typeof y!=="number"?!1:!isNaN(y)&&y!==Infinity&&y!==-Infinity}});
tT("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
tT("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
tT("Number.isInteger",function(I){return I?I:function(y){return Number.isFinite(y)?y===Math.floor(y):!1}});
tT("Number.isSafeInteger",function(I){return I?I:function(y){return Number.isInteger(y)&&Math.abs(y)<=Number.MAX_SAFE_INTEGER}});
tT("String.prototype.endsWith",function(I){return I?I:function(y,D){var F=N0(this,y,"endsWith");D===void 0&&(D=F.length);D=Math.max(0,Math.min(D|0,F.length));for(var R=y.length;R>0&&D>0;)if(F[--D]!=y[--R])return!1;return R<=0}});
var MWO=function(I,y){I instanceof String&&(I+="");var D=0,F=!1,R={next:function(){if(!F&&D<I.length){var O=D++;return{value:y(O,I[O]),done:!1}}F=!0;return{done:!0,value:void 0}}};
R[Symbol.iterator]=function(){return R};
return R};
tT("Array.prototype.entries",function(I){return I?I:function(){return MWO(this,function(y,D){return[y,D]})}});
tT("Math.trunc",function(I){return I?I:function(y){y=Number(y);if(isNaN(y)||y===Infinity||y===-Infinity||y===0)return y;var D=Math.floor(Math.abs(y));return y<0?-D:D}});
tT("Number.isNaN",function(I){return I?I:function(y){return typeof y==="number"&&isNaN(y)}});
tT("Array.prototype.keys",function(I){return I?I:function(){return MWO(this,function(y){return y})}});
tT("Array.prototype.values",function(I){return I?I:function(){return MWO(this,function(y,D){return D})}});
tT("Array.prototype.fill",function(I){return I?I:function(y,D,F){var R=this.length||0;D<0&&(D=Math.max(0,R+D));if(F==null||F>R)F=R;F=Number(F);F<0&&(F=Math.max(0,R+F));for(D=Number(D||0);D<F;D++)this[D]=y;return this}});
USW("fill",function(I){return I?I:Array.prototype.fill});
tT("Object.fromEntries",function(I){return I?I:function(y){var D={};if(!(Symbol.iterator in y))throw new TypeError("v`"+y);y=y[Symbol.iterator].call(y);for(var F=y.next();!F.done;F=y.next()){F=F.value;if(Object(F)!==F)throw new TypeError("w");D[F[0]]=F[1]}return D}});
tT("String.prototype.replaceAll",function(I){return I?I:function(y,D){if(y instanceof RegExp&&!y.global)throw new TypeError("x");return y instanceof RegExp?this.replace(y,D):this.replace(new RegExp(String(y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),D)}});
tT("Object.getOwnPropertySymbols",function(I){return I?I:function(){return[]}});
tT("String.prototype.repeat",function(I){return I?I:function(y){var D=N0(this,null,"repeat");if(y<0||y>1342177279)throw new RangeError("y");y|=0;for(var F="";y;)if(y&1&&(F+=D),y>>>=1)D+=D;return F}});
tT("Array.prototype.findIndex",function(I){return I?I:function(y,D){return mSz(this,y,D).i}});
tT("Array.prototype.flatMap",function(I){return I?I:function(y,D){var F=[];Array.prototype.forEach.call(this,function(R,O){R=y.call(D,R,O,this);Array.isArray(R)?F.push.apply(F,R):F.push(R)});
return F}});
tT("String.prototype.codePointAt",function(I){return I?I:function(y){var D=N0(this,null,"codePointAt"),F=D.length;y=Number(y)||0;if(y>=0&&y<F){y|=0;var R=D.charCodeAt(y);if(R<55296||R>56319||y+1===F)return R;y=D.charCodeAt(y+1);return y<56320||y>57343?R:(R-55296)*1024+y+9216}}});
tT("String.fromCodePoint",function(I){return I?I:function(y){for(var D="",F=0;F<arguments.length;F++){var R=Number(arguments[F]);if(R<0||R>1114111||R!==Math.floor(R))throw new RangeError("z`"+R);R<=65535?D+=String.fromCharCode(R):(R-=65536,D+=String.fromCharCode(R>>>10&1023|55296),D+=String.fromCharCode(R&1023|56320))}return D}});
tT("String.prototype.trimLeft",function(I){function y(){return this.replace(/^[\s\xa0]+/,"")}
return I||y});
tT("String.prototype.trimStart",function(I){return I||String.prototype.trimLeft});
tT("String.prototype.padStart",function(I){return I?I:function(y,D){var F=N0(this,null,"padStart");y-=F.length;D=D!==void 0?String(D):" ";return(y>0&&D?D.repeat(Math.ceil(y/D.length)).substring(0,y):"")+F}});
tT("Promise.prototype.finally",function(I){return I?I:function(y){return this.then(function(D){return Promise.resolve(y()).then(function(){return D})},function(D){return Promise.resolve(y()).then(function(){throw D;
})})}});
tT("Math.imul",function(I){return I?I:function(y,D){y=Number(y);D=Number(D);var F=y&65535,R=D&65535;return F*R+((y>>>16&65535)*R+F*(D>>>16&65535)<<16>>>0)|0}});
tT("Object.hasOwn",function(I){return I?I:function(y,D){return Object.prototype.hasOwnProperty.call(y,D)}});
tT("Math.sign",function(I){return I?I:function(y){y=Number(y);return y===0||isNaN(y)?y:y>0?1:-1}});
tT("Array.prototype.flat",function(I){return I?I:function(y){y=y===void 0?1:y;var D=[];Array.prototype.forEach.call(this,function(F){Array.isArray(F)&&y>0?(F=Array.prototype.flat.call(F,y-1),D.push.apply(D,F)):D.push(F)});
return D}});
tT("String.raw",function(I){return I?I:function(y,D){y=lCf(y);for(var F=y.raw,R=F.length,O="",w=0;w<R;++w)O+=F[w],w+1<R&&w+1<arguments.length&&(O+=String(arguments[w+1]));return O}});
tT("WeakSet",function(I){if(function(){if(!I||!Object.seal)return!1;try{var D=Object.seal({}),F=Object.seal({}),R=new I([D]);if(!R.has(D)||R.has(F))return!1;R.delete(D);R.add(F);return!R.has(D)&&R.has(F)}catch(O){return!1}}())return I;
var y=function(D){this.JSC$9062_map_=new WeakMap;if(D){D=_.J(D);for(var F;!(F=D.next()).done;)this.add(F.value)}};
y.prototype.add=function(D){this.JSC$9062_map_.set(D,!0);return this};
y.prototype.has=function(D){return this.JSC$9062_map_.has(D)};
y.prototype.delete=function(D){return this.JSC$9062_map_.delete(D)};
return y});
tT("Reflect.ownKeys",function(I){return I?I:function(y){var D=[],F=Object.getOwnPropertyNames(y);y=Object.getOwnPropertySymbols(y);for(var R=0;R<F.length;R++)(F[R].substring(0,14)=="jscomp_symbol_"?y:D).push(F[R]);return D.concat(y)}});
tT("Object.getOwnPropertyDescriptors",function(I){return I?I:function(y){for(var D={},F=Reflect.ownKeys(y),R=0;R<F.length;R++)D[F[R]]=Object.getOwnPropertyDescriptor(y,F[R]);return D}});
tT("Promise.allSettled",function(I){function y(F){return{status:"fulfilled",value:F}}
function D(F){return{status:"rejected",reason:F}}
return I?I:function(F){var R=this;F=Array.from(F,function(O){return R.resolve(O).then(y,D)});
return R.all(F)}});
tT("Number.parseInt",function(I){return I||parseInt});
var z4O=function(I,y,D){I instanceof String&&(I=String(I));for(var F=I.length-1;F>=0;F--){var R=I[F];if(y.call(D,R,F,I))return{i:F,v:R}}return{i:-1,v:void 0}};
tT("Array.prototype.findLastIndex",function(I){return I?I:function(y,D){return z4O(this,y,D).i}});
USW("findLastIndex",function(I){return I?I:function(y,D){return z4O(this,y,D).i}});
_._DumpException=window._DumpException||function(I){throw I;};
window._DumpException=_._DumpException;var keu=window.ytcsi;keu&&typeof keu.tick==="function"&&keu.tick("rses_dpj");var dS_,hT,xm,ly,aCg,cLz,WJM,C_R,M8,Bqc;dS_=dS_||{};_.Ft=this||self;_.fv=function(I,y,D){I=I.split(".");D=D||_.Ft;for(var F;I.length&&(F=I.shift());)I.length||y===void 0?D[F]&&D[F]!==Object.prototype[F]?D=D[F]:D=D[F]={}:D[F]=y};
hT=function(I,y){var D=_.jF("WIZ_global_data.oxN3nb");I=D&&D[I];return I!=null?I:y};
xm=_.Ft._F_toggles_default_kevlar_base||[];ly=function(){};
ly.get=function(){return null};
_.kn=null;_.jF=function(I,y){I=I.split(".");y=y||_.Ft;for(var D=0;D<I.length;D++)if(y=y[I[D]],y==null)return null;return y};
_.uy=function(I){I.instance_=void 0;I.getInstance=function(){return I.instance_?I.instance_:I.instance_=new I}};
_.RT=function(I){var y=typeof I;return y!="object"?y:I?Array.isArray(I)?"array":y:"null"};
_.i_=function(I){var y=_.RT(I);return y=="array"||y=="object"&&typeof I.length=="number"};
_.b_=function(I){var y=typeof I;return y=="object"&&I!=null||y=="function"};
_.HH=function(I){return Object.prototype.hasOwnProperty.call(I,aCg)&&I[aCg]||(I[aCg]=++cLz)};
aCg="closure_uid_"+(Math.random()*1E9>>>0);cLz=0;WJM=function(I,y,D){return I.call.apply(I.bind,arguments)};
C_R=function(I,y,D){if(!I)throw Error();if(arguments.length>2){var F=Array.prototype.slice.call(arguments,2);return function(){var R=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(R,F);return I.apply(y,R)}}return function(){return I.apply(y,arguments)}};
_.iD=function(I,y,D){_.iD=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?WJM:C_R;return _.iD.apply(null,arguments)};
_.de=function(I,y){var D=Array.prototype.slice.call(arguments,1);return function(){var F=D.slice();F.push.apply(F,arguments);return I.apply(this,F)}};
_.q0=function(){return Date.now()};
M8=function(I){return I};
_.EI=function(I,y){function D(){}
D.prototype=y.prototype;I.superClass_=y.prototype;I.prototype=new D;I.prototype.constructor=I;I.base=function(F,R,O){for(var w=Array(arguments.length-2),v=2;v<arguments.length;v++)w[v-2]=arguments[v];return y.prototype[R].apply(F,w)}};
Bqc=function(I){return I};var i5W,ALe;_.W=function(I,y,D,F){var R=arguments.length,O=R<3?y:F===null?F=Object.getOwnPropertyDescriptor(y,D):F,w;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")O=Reflect.decorate(I,y,D,F);else for(var v=I.length-1;v>=0;v--)if(w=I[v])O=(R<3?w(O):R>3?w(y,D,O):w(y,D))||O;R>3&&O&&Object.defineProperty(y,D,O)};
_.A=function(I,y){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(I,y)};
i5W=function(I,y){if(y!==null&&y!==void 0){if(typeof y!=="object"&&typeof y!=="function")throw new TypeError("A");if(D===void 0){if(!Symbol.dispose)throw new TypeError("C");var D=y[Symbol.dispose]}if(typeof D!=="function")throw new TypeError("D");I.stack.push({value:y,dispose:D,async:!1})}return y};
ALe=function(I){function y(O){I.error=I.hasError?new SuppressedError(O,I.error,"An error was suppressed during disposal."):O;I.hasError=!0}
function D(){for(;F=I.stack.pop();)try{if(!F.async&&R===1)return R=0,I.stack.push(F),Promise.resolve().then(D);if(F.dispose){var O=F.dispose.call(F.value);if(F.async)return R|=2,Promise.resolve(O).then(D,function(w){y(w);return D()})}else R|=1}catch(w){y(w)}if(R===1)return I.hasError?Promise.reject(I.error):Promise.resolve();
if(I.hasError)throw I.error;}
var F,R=0;D()};var $Se="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(" ");ICt()&&$Se.push("details:not(:has(summary))");var DSS=$Se.join(",");_.EI(_.Io,Error);_.Io.prototype.name="CustomError";var b5_;var H5u=void 0,e4O,TqG=typeof TextDecoder!=="undefined",tWq,Sq4=typeof String.prototype.isWellFormed==="function",vAB=typeof TextEncoder!=="undefined";var soa;_.CW=function(I){for(var y=[],D=0,F=0;F<I.length;F++){var R=I.charCodeAt(F);R<128?y[D++]=R:(R<2048?y[D++]=R>>6|192:((R&64512)==55296&&F+1<I.length&&(I.charCodeAt(F+1)&64512)==56320?(R=65536+((R&1023)<<10)+(I.charCodeAt(++F)&1023),y[D++]=R>>18|240,y[D++]=R>>12&63|128):y[D++]=R>>12|224,y[D++]=R>>6&63|128),y[D++]=R&63|128)}return y};
soa=function(I){for(var y=[],D=0,F=0;D<I.length;){var R=I[D++];if(R<128)y[F++]=String.fromCharCode(R);else if(R>191&&R<224){var O=I[D++];y[F++]=String.fromCharCode((R&31)<<6|O&63)}else if(R>239&&R<365){O=I[D++];var w=I[D++],v=I[D++];R=((R&7)<<18|(O&63)<<12|(w&63)<<6|v&63)-65536;y[F++]=String.fromCharCode(55296+(R>>10));y[F++]=String.fromCharCode(56320+(R&1023))}else O=I[D++],w=I[D++],y[F++]=String.fromCharCode((R&15)<<12|(O&63)<<6|w&63)}return y.join("")};var K5=String.prototype.trim?function(I){return I.trim()}:function(I){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(I)[1]},VWu=/&/g,Z5e=/</g,gAz=/>/g,IRR=/"/g,yMM=/'/g,DzR=/\x00/g,FMO=/[\x00&<>"']/;var Gp=!!(xm[0]>>17&1),RnM=!!(xm[0]&4096),O_c=!!(xm[0]>>18&1),LMO=!!(xm[0]&8),JMP=!!(xm[0]&2),wGR=!!(xm[0]&4),vPg=!!(xm[0]&16),SOP=!!(xm[0]&256),tfz=!!(xm[0]&32);var hL,Pue,KMO,Uzu,Owq,nyq;hL=Gp?O_c:hT(610401301,!1);Pue=Gp?LMO:hT(772657768,!1);KMO=Gp?JMP:hT(513659523,!1);Uzu=Gp?RnM||!wGR:hT(568333945,!0);Owq=Gp?vPg:hT(1331761403,!1);nyq=Gp?RnM||!SOP:hT(748402147,!0);_.Xq=Gp?tfz:hT(824648567,!1);var l_,rMR=_.Ft.navigator;l_=rMR?rMR.userAgentData||null:null;var uH;_.ze=function(I,y){return Array.prototype.indexOf.call(I,y,void 0)};
_.hG=function(I,y,D){Array.prototype.forEach.call(I,y,D)};
_.Qt=function(I,y,D){return Array.prototype.filter.call(I,y,D)};
_.T_=function(I,y,D){return Array.prototype.map.call(I,y,D)};
uH=function(I,y,D){return Array.prototype.some.call(I,y,D)};
_.Wcq=function(I,y,D){return Array.prototype.every.call(I,y,D)};var Ym=function(I){Ym[" "](I);return I};
Ym[" "]=function(){};
var sdL=function(I,y){try{return Ym(I[y]),!0}catch(D){}return!1},HvC=function(I,y,D,F){F=F?F(y):y;
return Object.prototype.hasOwnProperty.call(I,F)?I[F]:I[F]=D(y)};var jeu,Qx,oPg,Ncn,xzc,lRe,Zh5,uWc,qOz,EPe,aKW,XGf,Qez,pGR,mza,Mfz;_.y$B=function(){return _.Ft.navigator||null};
jeu=rLq();_.fz=joL();Qx=qS("Edge");oPg=Qx||_.fz;_.Wr=qS("Gecko")&&!(_.PH(_.oo(),"WebKit")&&!qS("Edge"))&&!(qS("Trident")||qS("MSIE"))&&!qS("Edge");_.cr=_.PH(_.oo(),"WebKit")&&!qS("Edge");Ncn=_.cr&&qS("Mobile");_.hnf=_.GeA();xzc=_.XHq();lRe=(f5()?l_.platform==="Linux":qS("Linux"))||_.Qo4();Zh5=_.qqH();uWc=EAo();qOz=qS("iPad");EPe=qS("iPod");_.Gaf=_.n5();aKW=_.PH(_.oo(),"KaiOS");XGf=function(){var I=_.Ft.document;return I?I.documentMode:void 0};
a:{var YOu="",fRP=function(){var I=_.oo();if(_.Wr)return/rv:([^\);]+)(\)|;)/.exec(I);if(Qx)return/Edge\/([\d\.]+)/.exec(I);if(_.fz)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(I);if(_.cr)return/WebKit\/(\S+)/.exec(I);if(jeu)return/(?:Version)[ \/]?(\S+)/.exec(I)}();
fRP&&(YOu=fRP?fRP[1]:"");if(_.fz){var nPf=XGf();if(nPf!=null&&nPf>parseFloat(YOu)){Qez=String(nPf);break a}}Qez=YOu}pGR=Qez;mza={};_.nz=function(I){return HvC(mza,I,function(){return _.Uq(pGR,I)>=0})};
if(_.Ft.document&&_.fz){var zn_=XGf();Mfz=zn_?zn_:parseInt(pGR,10)||void 0}else Mfz=void 0;_.kaM=Mfz;var VIB,ZCq,dzM;_.pz=Ge();VIB=EAo()||qS("iPod");ZCq=qS("iPad");dzM=_.h4B();_.mr=QB();_.Ul=_.Nqo()&&!_.n5();var WJJ={},gq=null,NMW=_.Wr||_.cr||typeof _.Ft.btoa=="function";var DzC=typeof Uint8Array!=="undefined",b55=!_.fz&&typeof btoa==="function",H5_=/[-_.]/g,ALo={"-":"+",_:"/",".":"="},n_={};var YP,cMR;YP=function(I,y){if(y!==n_)throw Error("J");this.JSC$9096_value_=I;if(I!=null&&I.length===0)throw Error("I");};
_.p_=function(){return aRM||(aRM=new YP(null,n_))};
cMR=function(I){return new Uint8Array(gyC(I)||0)};
YP.prototype.isEmpty=function(){return this.JSC$9096_value_==null};
YP.prototype.sizeBytes=function(){var I=gyC(this);return I?I.length:0};
var gyC=function(I){if(n_!==n_)throw Error("J");var y=I.JSC$9096_value_;y==null||DzC&&y!=null&&y instanceof Uint8Array||(typeof y==="string"?y=e4q(y):(_.RT(y),y=null));return y==null?y:I.JSC$9096_value_=y},aRM;var soe=void 0;var OO=typeof Symbol==="function"&&typeof Symbol()==="symbol",WMG=Re("jas",void 0,!0),TcL=Re(void 0,"0di"),wo=Re(void 0,"1oa"),ky=Re(void 0,Symbol()),tgt=Re(void 0,"0ub"),K1W=Re(void 0,"0ubs"),kq4=Re(void 0,"0ubsb"),m85=Re(void 0,"0actk"),na=Re("m_m","messagePrototypeMarker",!0),EyA=Re(void 0,"vps"),wCL=Re();var gAS,Z5o,To,CuO;gAS={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Z5o=Object.defineProperties;_.L_=OO?WMG:"internalArrayState";CuO=[];tM(CuO,7);To=Object.freeze(CuO);var pa={},EO={},BcR=function(I,y,D){this.iterable=I;this.mapper=y;this.thisArg=D};
BcR.prototype.next=function(){var I=this.iterable.next();I.done||(I.value=this.mapper.call(this.thisArg,I.value));return I};
BcR.prototype[Symbol.iterator]=function(){return this};
var i_a=Object.freeze({}),za={};var O_q=void 0,LMq=dc(function(I){return I!==null&&I!==void 0});var tfS=dc(function(I){return typeof I==="number"}),SOA=dc(function(I){return typeof I==="string"}),KMq=dc(function(I){return typeof I==="boolean"}),AMu=dc(function(I){return I!=null&&typeof I==="object"&&typeof I.then==="function"}),F_W=dc(function(I){return typeof I==="function"}),Au=dc(function(I){return!!I&&(typeof I==="object"||typeof I==="function")});var Puo=typeof _.Ft.BigInt==="function"&&typeof _.Ft.BigInt(0)==="bigint";var i_e=dc(function(I){return Puo?I>=$zP&&I<=b_e:I[0]==="-"?Uz_(I,H_f):Uz_(I,enM)}),H_f=Number.MIN_SAFE_INTEGER.toString(),$zP=Puo?BigInt(Number.MIN_SAFE_INTEGER):void 0,enM=Number.MAX_SAFE_INTEGER.toString(),b_e=Puo?BigInt(Number.MAX_SAFE_INTEGER):void 0;var TcM=typeof Uint8Array.prototype.slice==="function",WG=0,C_=0,oPB;var N8,q8,Ob,lR,YO_;N8=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Eb=typeof BigInt==="function"?BigInt.asUintN:void 0;q8=Number.isSafeInteger;Ob=Number.isFinite;lR=Math.trunc;YO_=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Go4={};var Oa5={},seR=function(){try{var I=function(){return rLO(Map,[],this.constructor)};
_.E(I,Map);Ym(new I);return!1}catch(y){return!0}}(),M0=function(){this.JSC$9115_map_=new Map};
_.L=M0.prototype;_.L.get=function(I){return this.JSC$9115_map_.get(I)};
_.L.set=function(I,y){this.JSC$9115_map_.set(I,y);this.size=this.JSC$9115_map_.size;return this};
_.L.delete=function(I){I=this.JSC$9115_map_.delete(I);this.size=this.JSC$9115_map_.size;return I};
_.L.clear=function(){this.JSC$9115_map_.clear();this.size=this.JSC$9115_map_.size};
_.L.has=function(I){return this.JSC$9115_map_.has(I)};
_.L.entries=function(){return this.JSC$9115_map_.entries()};
_.L.keys=function(){return this.JSC$9115_map_.keys()};
_.L.values=function(){return this.JSC$9115_map_.values()};
_.L.forEach=function(I,y){return this.JSC$9115_map_.forEach(I,y)};
M0.prototype[Symbol.iterator]=function(){return this.entries()};
var zp=function(){if(seR)return Object.setPrototypeOf(M0.prototype,Map.prototype),Object.defineProperties(M0.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),M0;var I=function(){return rLO(Map,[],this.constructor)};
_.E(I,Map);return I}(),m1=function(I,y,D,F){D=D===void 0?IQC:D;
F=F===void 0?IQC:F;var R=zp.call(this)||this;R.arrayState=I[_.L_]|0;R.valueCtor=y;R.keyToApi=D;R.valueToApi=R.valueCtor?D8A:F;for(var O=0;O<I.length;O++){var w=I[O],v=D(w[0],!1,!0),P=w[1];y?P===void 0&&(P=null):P=F(w[1],!1,!0,void 0,void 0,R.arrayState);zp.prototype.set.call(R,v,P)}return R};
_.E(m1,zp);var VfM=function(I){if(I.arrayState&2)throw Error("N");},qbo=function(I,y){return K_(Array.from(zp.prototype.entries.call(I),y))};
_.L=m1.prototype;_.L.clear=function(){VfM(this);zp.prototype.clear.call(this)};
_.L.delete=function(I){VfM(this);return zp.prototype.delete.call(this,this.keyToApi(I,!0,!1))};
_.L.entries=function(){if(this.valueCtor){var I=zp.prototype.keys.call(this);I=new BcR(I,F1q,this)}else I=zp.prototype.entries.call(this);return I};
_.L.values=function(){if(this.valueCtor){var I=zp.prototype.keys.call(this);I=new BcR(I,m1.prototype.get,this)}else I=zp.prototype.values.call(this);return I};
_.L.forEach=function(I,y){this.valueCtor?zp.prototype.forEach.call(this,function(D,F,R){I.call(y,R.get(F),F,R)}):zp.prototype.forEach.call(this,I,y)};
_.L.set=function(I,y){VfM(this);I=this.keyToApi(I,!0,!1);return I==null?this:y==null?(zp.prototype.delete.call(this,I),this):zp.prototype.set.call(this,I,this.valueToApi(y,!0,!0,this.valueCtor,!1,this.arrayState))};
_.L.has=function(I){return zp.prototype.has.call(this,this.keyToApi(I,!1,!1))};
_.L.get=function(I){I=this.keyToApi(I,!1,!1);var y=zp.prototype.get.call(this,I);if(y!==void 0){var D=this.valueCtor;return D?(D=this.valueToApi(y,!1,!0,D,this.callToMutableOnAccess,this.arrayState),D!==y&&zp.prototype.set.call(this,I,D),D):y}};
m1.prototype[Symbol.iterator]=function(){return this.entries()};
m1.prototype.toJSON=void 0;var RZt;var oyt=function(){},reJ=function(I,y){for(var D in I)!isNaN(D)&&y(I,+D,I[D])},NGq=function(I){var y=new oyt;
reJ(I,function(D,F,R){y[F]=Vg(R)});
y.reviveUnknownFields=I.reviveUnknownFields;return y},vy4={reviveIntoImmutable:!0};var jTJ;var XCJ,QTt;var Z_e,yA,$7,Vq,gPu,iy,T8,IQR,yeM,Hn,D8P,e0,Vt,Z$;Z_e=_.ae(0);_.km={};_.du=function(I,y,D,F,R){y=yA(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,D,R);if(y!==null||F&&I.noLegacyNull!==EO)return y};
yA=function(I,y,D,F){if(y===-1)return null;var R=y+(D?0:-1),O=I.length-1;if(!(O<1+(D?0:-1))){if(R>=O){var w=I[O];if(w!=null&&typeof w==="object"&&w.constructor===Object){D=w[y];var v=!0}else if(R===O)D=w;else return}else D=I[R];if(F&&D!=null){F=F(D);if(F==null)return F;if(!Object.is(F,D))return v?w[y]=F:I[R]=F,F}return D}};
_.aC=function(I,y,D,F){$y(I);var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eg(R,R[_.L_]|0,y,D,F);return I};
_.aL=function(I,y,D){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return eZ5(I,I[_.L_]|0,y,D)!==void 0};
_.Wn=function(I,y,D,F){var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return eZ5(R,R[_.L_]|0,y,Vq(I,F,D))!==void 0};
_.xW=function(I){return I===i_a?2:4};
_.Cz=function(I,y){I=_.du(I,y,void 0,void 0,BG4);return I==null?_.p_():I};
$7=function(I,y,D,F){$y(I);var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=R[_.L_]|0;if(F==null){var w=$8_(R);if(baJ(w,R,O,D)===y)w.set(D,0);else return I}else O=Ha_(R,O,D,y);eg(R,O,y,F);return I};
_.Ex=function(I,y,D,F){var R=I[_.L_]|0,O=kP(R);R=Ha_(I,R,D,y,O);eg(I,R,y,F,O)};
Vq=function(I,y,D){return _.Bn(I,y)===D?D:-1};
_.Bn=function(I,y){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return baJ($8_(I),I,void 0,y,void 0)};
gPu=function(I,y,D){var F=I[_.L_]|0,R=kP(F),O=yA(I,D,R);if(O!=null&&O[na]===pa){if(!Qg(O))return Ae(O),O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var w=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(O)&&(w=O);if(w){var v=w[_.L_]|0;v&2&&(w=BC(w,v))}w=WC(w,y);w!==O&&eg(I,F,D,w,R);return w};
_.kk=function(I,y,D,F){var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=R[_.L_]|0;y=eZ5(R,O,y,D,F);if(y==null)return y;O=R[_.L_]|0;if(!Qg(I,O)){var w=yeL(y);w!==y&&(Ae(I)&&(R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=R[_.L_]|0),y=w,O=eg(R,O,D,y,F),bR(R,O))}return y};
_.hv=function(I,y,D,F){var R=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return TGt(I,R,R[_.L_]|0,y,D,F,!1,!0)};
_.mH=function(I,y,D,F){D=sTe(D);_.aC(I,y,D,F);D&&!Qg(D)&&bR(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return I};
_.Mg=function(I,y,D,F){F=sTe(F);$7(I,y,D,F);F&&!Qg(F)&&bR(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return I};
iy=function(I,y,D){$y(I);var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=F[_.L_]|0;if(D==null)return eg(F,R,y),I;for(var O=D===To?7:D[_.L_]|0,w=O,v=In(O),P=v||Object.isFrozen(D),K=!0,r=!0,N=0;N<D.length;N++){var h=D[N];v||(h=Qg(h),K&&(K=!h),r&&(r=h))}v||(O=K?13:5,O=r?O&-4097:O|4096);P&&O===w||(D=Vg(D),w=0,O=sb(O,R));O!==w&&tM(D,O);R=eg(F,R,y,D);2&O||!(4096&O||16&O)||bR(F,R);return I};
T8=function(I,y,D,F){Zaq(I,y,D,F);return I};
IQR=function(I,y,D){Zaq(I,y,AT,void 0,D,1,!0);return I};
_.$m=function(I,y,D){I=_.du(I,y,void 0,D);y=typeof I;I=I==null?I:y==="bigint"?_.ae((0,_.Eb)(64,I)):_.La(I)?y==="string"?_.BcC(I):_.WMH(I):void 0;return I};
_.by=function(I,y){var D=D===void 0?!1:D;var F;return(F=_.QeS(_.du(I,y)))!=null?F:D};
_.lD=function(I,y,D){D=D===void 0?0:D;var F;return(F=_.PC(_.du(I,y)))!=null?F:D};
yeM=function(I,y){var D=D===void 0?0:D;I=_.nPW(_.du(I,y));return I!=null?I:D};
Hn=function(I,y,D){D=D===void 0?Z_e:D;var F;return(F=_.b_o(_.du(I,y)))!=null?F:D};
D8P=function(I){var y=y===void 0?Z_e:y;var D;return(D=_.$m(I,23))!=null?D:y};
e0=function(I,y){var D=D===void 0?0:D;var F;return(F=_.du(I,y,void 0,void 0,_.FY))!=null?F:D};
_.Tp=function(I,y,D,F){D=D===void 0?"":D;var R;return(R=_.fa(_.du(I,y,F)))!=null?R:D};
_.sI=function(I,y){var D=D===void 0?0:D;var F;return(F=_.Sg(_.du(I,y)))!=null?F:D};
Vt=function(I,y){var D=D===void 0?"0":D;I=$zA(_.du(I,y),!0);return I!=null?I:D};
_.F1O=function(I,y,D){I=_.Va(I,y,_.fa,3,!0);FMq(I,D);return I[D]};
Z$=function(I,y,D){return _.Tp(I,Vq(I,D,y))};
_.gu=function(I,y,D,F){return _.kk(I,y,Vq(I,F,D),void 0)};
_.z6=function(I,y){return _.fa(_.du(I,y,void 0,_.km))};
_.Xm=function(I,y,D){return _.aC(I,y,XGW(D))};
_.Hx=function(I,y,D){return _.Fj(I,y,XGW(D),!1)};
_.Ih=function(I,y,D){return _.aC(I,y,_.te(D))};
_.g2=function(I,y,D){return _.aC(I,y,xy(D))};
_.BB=function(I,y,D){return _.aC(I,y,Qa(D))};
_.wT=function(I,y,D,F){return _.Fj(I,y,Qa(D),"",F)};
_.d1=function(I,y,D){return _.aC(I,y,D==null?D:_.Je(D))};
_.yH=function(I,y,D){return _.Fj(I,y,D==null?D:_.Je(D),0)};var v$=function(I,y,D){this.buffer=I;if(D&&!y)throw Error();this.JSC$9127_isImmutable=y};var RZW=function(I,y,D,F){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9130_start_=0;this.init(I,y,D,F)},L1a,Dh,JeR,RDB,wCM,vyn,SbR,tgW,EsH,Oa_;
_.L=RZW.prototype;_.L.init=function(I,y,D,F){var R=F===void 0?{}:F;F=R.aliasBytesFields===void 0?!1:R.aliasBytesFields;R=R.treatNewDataAsImmutable===void 0?!1:R.treatNewDataAsImmutable;this.aliasBytesFields=F;this.treatNewDataAsImmutable=R;I&&(I=I0W(I,this.treatNewDataAsImmutable),this.bytes_=I.buffer,this.bytesAreImmutable_=I.JSC$9127_isImmutable,this.JSC$9130_start_=y||0,this.end_=D!==void 0?this.JSC$9130_start_+D:this.bytes_.length,this.cursor_=this.JSC$9130_start_)};
_.L.free=function(){this.clear();Oa_.length<100&&Oa_.push(this)};
_.L.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9130_start_=0;this.aliasBytesFields=!1};
_.L.reset=function(){this.cursor_=this.JSC$9130_start_};
_.L.atEnd=function(){return this.cursor_==this.end_};
_.qg=function(I,y){var D=0,F=0,R=0,O=I.bytes_,w=I.cursor_;do{var v=O[w++];D|=(v&127)<<R;R+=7}while(R<32&&v&128);if(R>32)for(F|=(v&127)>>4,R=3;R<32&&v&128;R+=7)v=O[w++],F|=(v&127)<<R;Dh(I,w);if(!(v&128))return y(D>>>0,F>>>0);throw Error();};
L1a=function(I){return _.qg(I,function(y,D){return qOS(y,D,lRo)})};
Dh=function(I,y){I.cursor_=y;if(y>I.end_)throw Error();};
_.Fd=function(I){var y=I.bytes_,D=I.cursor_,F=y[D++],R=F&127;if(F&128&&(F=y[D++],R|=(F&127)<<7,F&128&&(F=y[D++],R|=(F&127)<<14,F&128&&(F=y[D++],R|=(F&127)<<21,F&128&&(F=y[D++],R|=F<<28,F&128&&y[D++]&128&&y[D++]&128&&y[D++]&128&&y[D++]&128&&y[D++]&128)))))throw Error();Dh(I,D);return R};
_.Rh=function(I){var y=I.bytes_,D=I.cursor_,F=y[D],R=y[D+1],O=y[D+2];y=y[D+3];Dh(I,I.cursor_+4);return(F<<0|R<<8|O<<16|y<<24)>>>0};
JeR=function(I){var y=_.Rh(I);I=_.Rh(I);return hnW(y,I)};
RDB=function(I){var y=_.Rh(I);I=_.Rh(I);return xzq(y,I)};
wCM=function(I){var y=_.Rh(I);I=(y>>31)*2+1;var D=y>>>23&255;y&=8388607;return D==255?y?NaN:I*Infinity:D==0?I*1.401298464324817E-45*y:I*Math.pow(2,D-150)*(y+8388608)};
vyn=function(I){var y=_.Rh(I),D=_.Rh(I);I=(D>>31)*2+1;var F=D>>>20&2047;y=4294967296*(D&1048575)+y;return F==2047?y?NaN:I*Infinity:F==0?I*4.9E-324*y:I*Math.pow(2,F-1075)*(y+4503599627370496)};
SbR=function(I){for(var y=0,D=I.cursor_,F=D+10,R=I.bytes_;D<F;){var O=R[D++];y|=O;if((O&128)===0)return Dh(I,D),!!(y&127)}throw Error();};
tgW=function(I,y){if(y<0)throw Error();var D=I.cursor_;y=D+y;if(y>I.end_)throw Error();I.cursor_=y;return D};
EsH=function(I,y){if(y==0)return _.p_();var D=tgW(I,y);I.aliasBytesFields&&I.bytesAreImmutable_?D=I.bytes_.subarray(D,D+y):(I=I.bytes_,y=D+y,D=D===y?new Uint8Array(0):TcM?I.slice(D,y):new Uint8Array(I.subarray(D,y)));return D.length==0?_.p_():new YP(D,n_)};
Oa_=[];var K1f=function(I,y,D,F){if(Oa_.length){var R=Oa_.pop();R.init(I,y,D,F);I=R}else I=new RZW(I,y,D,F);this.decoder_=I;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;PRa(this,F)},PRa=function(I,y){y=y===void 0?{}:y;
I.discardUnknownFields=y.discardUnknownFields===void 0?!1:y.discardUnknownFields},Qnt=function(I,y,D,F){if(U8G.length){var R=U8G.pop();
PRa(R,F);R.decoder_.init(I,y,D,F);return R}return new K1f(I,y,D,F)},l0t,qxt,Om,reM,U8G;
K1f.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;U8G.length<100&&U8G.push(this)};
K1f.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
l0t=function(I){if(I.decoder_.atEnd())return!1;I.fieldCursor_=I.decoder_.cursor_;var y=_.Fd(I.decoder_)>>>0,D=y>>>3;y&=7;if(!(y>=0&&y<=5))throw Error();if(D<1)throw Error();I.nextField_=D;I.nextWireType_=y;return!0};
qxt=function(I){switch(I.nextWireType_){case 0:I.nextWireType_!=0?qxt(I):SbR(I.decoder_);break;case 1:I=I.decoder_;Dh(I,I.cursor_+8);break;case 2:if(I.nextWireType_!=2)qxt(I);else{var y=_.Fd(I.decoder_)>>>0;I=I.decoder_;Dh(I,I.cursor_+y)}break;case 5:I=I.decoder_;Dh(I,I.cursor_+4);break;case 3:y=I.nextField_;do{if(!l0t(I))throw Error();if(I.nextWireType_==4){if(I.nextField_!=y)throw Error();break}qxt(I)}while(1);break;default:throw Error();}};
Om=function(I,y,D){var F=I.decoder_.end_,R=_.Fd(I.decoder_)>>>0;R=I.decoder_.cursor_+R;var O=R-F;O<=0&&(I.decoder_.end_=R,D(y,I,void 0,void 0,void 0),O=R-I.decoder_.cursor_);if(O)throw Error();I.decoder_.cursor_=R;I.decoder_.end_=F;return y};
reM=function(I){var y=_.Fd(I.decoder_)>>>0;I=I.decoder_;var D=tgW(I,y);I=I.bytes_;if(TqG){var F=I,R;(R=e4O)||(R=e4O=new TextDecoder("utf-8",{fatal:!0}));y=D+y;F=D===0&&y===F.length?F:F.subarray(D,y);try{var O=R.decode(F)}catch(K){if(H5u===void 0){try{R.decode(new Uint8Array([128]))}catch(r){}try{R.decode(new Uint8Array([97])),H5u=!0}catch(r){H5u=!1}}!H5u&&(e4O=void 0);throw K;}}else{O=D;y=O+y;D=[];for(var w=null,v,P;O<y;)v=I[O++],v<128?D.push(v):v<224?O>=y?yB():(P=I[O++],v<194||(P&192)!==128?(O--,
yB()):D.push((v&31)<<6|P&63)):v<240?O>=y-1?yB():(P=I[O++],(P&192)!==128||v===224&&P<160||v===237&&P>=160||((R=I[O++])&192)!==128?(O--,yB()):D.push((v&15)<<12|(P&63)<<6|R&63)):v<=244?O>=y-2?yB():(P=I[O++],(P&192)!==128||(v<<28)+(P-144)>>30!==0||((R=I[O++])&192)!==128||((F=I[O++])&192)!==128?(O--,yB()):(v=(v&7)<<18|(P&63)<<12|(R&63)<<6|F&63,v-=65536,D.push((v>>10&1023)+55296,(v&1023)+56320))):yB(),D.length>=8192&&(w=wHo(w,D),D.length=0);O=wHo(w,D)}return O};
_.jTM=function(I){var y=_.Fd(I.decoder_)>>>0;return EsH(I.decoder_,y)};
_.oyW=function(I,y,D){var F=_.Fd(I.decoder_)>>>0;for(F=I.decoder_.cursor_+F;I.decoder_.cursor_<F;)D.push(y(I.decoder_))};
U8G=[];var NGO=function(I,y){this.JSC$9137_lo=I>>>0;this.JSC$9137_hi=y>>>0},Bo5=function(I){I=BigInt.asUintN(64,I);
return new NGO(Number(I&BigInt(4294967295)),Number(I>>BigInt(32)))},FHq=function(I){if(!I)return hZc||(hZc=new NGO(0,0));
if(!/^\d+$/.test(I))return null;sO(I);return new NGO(WG,C_)},hZc,CaW=function(I,y){this.JSC$9139_lo=I>>>0;
this.JSC$9139_hi=y>>>0},yV5=function(I){if(!I)return x8g||(x8g=new CaW(0,0));
if(!/^-?\d+$/.test(I))return null;sO(I);return new CaW(WG,C_)},x8g;var wJ=function(){this.JSC$9141_buffer_=[]},xs,ua,lQW;
wJ.prototype.length=function(){return this.JSC$9141_buffer_.length};
wJ.prototype.end=function(){var I=this.JSC$9141_buffer_;this.JSC$9141_buffer_=[];return I};
xs=function(I,y,D){for(;D>0||y>127;)I.JSC$9141_buffer_.push(y&127|128),y=(y>>>7|D<<25)>>>0,D>>>=7;I.JSC$9141_buffer_.push(y)};
ua=function(I,y){for(;y>127;)I.JSC$9141_buffer_.push(y&127|128),y>>>=7;I.JSC$9141_buffer_.push(y)};
_.AVe=function(I,y){if(y>=0)ua(I,y);else{for(var D=0;D<9;D++)I.JSC$9141_buffer_.push(y&127|128),y>>=7;I.JSC$9141_buffer_.push(1)}};
lQW=function(I,y){sO(y);uWq(function(D,F){xs(I,D>>>0,F>>>0)})};
wJ.prototype.writeUint8=function(I){this.JSC$9141_buffer_.push(I>>>0&255)};
_.hV=function(I,y){I.JSC$9141_buffer_.push(y>>>0&255);I.JSC$9141_buffer_.push(y>>>8&255);I.JSC$9141_buffer_.push(y>>>16&255);I.JSC$9141_buffer_.push(y>>>24&255)};
wJ.prototype.writeInt8=function(I){this.JSC$9141_buffer_.push(I>>>0&255)};var uYu,ro,bSJ,ToL,JVq;uYu=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new wJ};
ro=function(I,y){y.length!==0&&(I.blocks_.push(y),I.totalLength_+=y.length)};
_.qbe=function(I,y){_.Ng(I,y,2);y=I.encoder_.end();ro(I,y);y.push(I.totalLength_);return y};
_.EyP=function(I,y){var D=y.pop();for(D=I.totalLength_+I.encoder_.length()-D;D>127;)y.push(D&127|128),D>>>=7,I.totalLength_++;y.push(D);I.totalLength_++};
_.Ng=function(I,y,D){ua(I.encoder_,y*8+D)};
bSJ=function(I,y,D){if(D!=null)switch(RCW(D),_.Ng(I,y,1),typeof D){case "number":I=I.encoder_;rMC(D);_.hV(I,WG);_.hV(I,C_);break;case "bigint":D=Bo5(D);I=I.encoder_;y=D.JSC$9137_hi;_.hV(I,D.JSC$9137_lo);_.hV(I,y);break;default:D=FHq(D),I=I.encoder_,y=D.JSC$9137_hi,_.hV(I,D.JSC$9137_lo),_.hV(I,y)}};
ToL=function(I,y,D){_.Ng(I,y,2);ua(I.encoder_,D.length);ro(I,I.encoder_.end());ro(I,D)};
JVq=function(I,y,D,F){D!=null&&(y=_.qbe(I,y),F(D,I),_.EyP(I,y))};var OSq,Gon,XCM,QTW,YbP,nyO,pCa,Mgn,zZg;OSq=SZ();Gon=SZ();XCM=SZ();QTW=SZ();YbP=SZ();_.fQW=SZ();_.vq=SZ();nyO=SZ();pCa=SZ();_.m8_=SZ();Mgn=SZ();zZg=SZ();_.koc=SZ();_.d8M=SZ();_.KS=function(I,y,D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,y,D)};
_.KS.prototype.toJSON=function(){return cC(this)};
_.KS.prototype.serialize=function(I){return JSON.stringify(cC(this,I))};
var vQo=function(I,y){if(y==null||y=="")return new I;y=JSON.parse(y);if(!Array.isArray(y))throw Error("V");return new I(yMJ(y))};
_.KS.prototype.getExtension=function(I){PRe(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I.fieldIndex);SbC(this,I.fieldIndex);return I.ctor?I.isRepeated?I.getExtensionFn(this,I.ctor,I.fieldIndex,_.xW(),I.JSC$9152_hasMessageId):I.getExtensionFn(this,I.ctor,I.fieldIndex,I.JSC$9152_hasMessageId):I.isRepeated?I.getExtensionFn(this,I.fieldIndex,_.xW(),I.JSC$9152_hasMessageId):I.getExtensionFn(this,I.fieldIndex,I.defaultValue,I.JSC$9152_hasMessageId)};
_.KS.prototype.clone=function(){var I=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=I[_.L_]|0;return aQJ(this,I,y)?d8L(this,I,!0):new this.constructor(BC(I,y,!1))};
_.KS.prototype[na]=pa;_.KS.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var tV=function(I,y,D){this.$$binaryReaderFn=I;this.$$binaryWriterFn=y;I=M8(OSq);this.$$isMsg=!!I&&D===I||!1},KHJ=LHq(function(I,y,D,F,R){if(I.nextWireType_!==2)return!1;
Om(I,gPu(y,F,D),R);return!0},vsB),UgA=LHq(function(I,y,D,F,R){if(I.nextWireType_!==2)return!1;
Om(I,gPu(y,F,D),R);return!0},vsB),f04=Symbol(),osL=Symbol(),xgH=Symbol(),mgt=Symbol(),Gq4=Symbol(),SxS,tZ4;var aQM,L4H,cea,Sq,W1M,CRM,BGn,iac,Pq,$8u,baM,Hau,eZ_,TGW,Vgz,Zac,gyR,I0f,yV_,Dge;aQM=_.ae(0);L4H=function(I,y){var D=new uYu;MZC(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D,P$(f04,Yxq,nse,y));ro(D,D.encoder_.end());I=new Uint8Array(D.totalLength_);y=D.blocks_;for(var F=y.length,R=0,O=0;O<F;O++){var w=y[O];I.set(w,R);R+=w.length}D.blocks_=[I];return I};
cea=LHq(function(I,y,D,F,R){if(I.nextWireType_!==2)return!1;I=Om(I,WC([void 0,void 0],F),R);I=Vg(I);F=y[_.L_]|0;R=kP(F);if(F&2)throw Error();var O=yA(y,D,R);if(O instanceof m1)(O.arrayState&2)!=0?(O=qbo(O),O.push(I),eg(y,F,D,O,R)):(y=O,D=y.keyToApi(I[0],!1,!0),I=I[1],I=y.valueCtor?I===void 0?null:I:y.valueToApi(I,!1,!0,void 0,!1,y.arrayState),zp.prototype.set.call(y,D,I));else if(Array.isArray(O)){var w=O[_.L_]|0;w&8192||tM(O,w|=8192);w&2&&(O=iaq(O),eg(y,F,D,O,R));O.push(I)}else eg(y,F,D,K_([I]),
R);return!0},function(I,y,D,F,R){if(y instanceof m1)y.forEach(function(v,P){JVq(I,D,WC([P,
v],F),R)});
else if(Array.isArray(y)){for(var O=0;O<y.length;O++){var w=y[O];Array.isArray(w)&&JVq(I,D,WC(w,F),R)}K_(y)}});
Sq=_.jZ(function(I,y,D){if(I.nextWireType_!==1)return!1;_.on(y,D,vyn(I.decoder_));return!0},cVq,zZg);
W1M=_.jZ(function(I,y,D,F){if(I.nextWireType_!==1)return!1;_.Ex(y,D,F,vyn(I.decoder_));return!0},cVq,zZg);
CRM=_.jZ(function(I,y,D){if(I.nextWireType_!==5)return!1;_.on(y,D,wCM(I.decoder_));return!0},WHJ,Mgn);
BGn=_.a0q(function(I,y,D){if(I.nextWireType_!==5&&I.nextWireType_!==2)return!1;y=_.LS(y,y[_.L_]|0,D);I.nextWireType_==2?_.oyW(I,wCM,y):y.push(wCM(I.decoder_));return!0},function(I,y,D){y=_.dgq(_.FY,y,!0);
if(y!=null&&y.length)for(_.Ng(I,D,2),ua(I.encoder_,y.length*4),D=0;D<y.length;D++){var F=I.encoder_;Nc4(y[D]);_.hV(F,WG)}},Mgn);
iac=_.jZ(function(I,y,D,F){if(I.nextWireType_!==5)return!1;_.Ex(y,D,F,wCM(I.decoder_));return!0},WHJ,Mgn);
_.Ae_=_.jZ(function(I,y,D){if(_.Xq)return yW4(I,y,D);if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,_.ef));return!0},_.la,_.vq);
_.t4=_.jZ(function(I,y,D){if(_.Xq)return yW4(I,y,D);if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,bu));return!0},_.la,_.vq);
Pq=_.jZ(function(I,y,D){if(_.Xq)return I.nextWireType_!==0?y=!1:(I=_.qg(I.decoder_,lRo),_.on(y,D,I===aQM?void 0:I),y=!0),y;if(I.nextWireType_!==0)return!1;I=_.qg(I.decoder_,bu);_.on(y,D,I===0?void 0:I);return!0},_.la,_.vq);
$8u=_.jZ(function(I,y,D,F){if(_.Xq)return _.D_q(I,y,D,F);if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,_.qg(I.decoder_,bu));return!0},_.la,_.vq);
baM=_.jZ(function(I,y,D){if(_.Xq)return F4e(I,y,D);if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,_.iu));return!0},iSL,nyO);
_.K2=_.jZ(function(I,y,D){if(_.Xq)return F4e(I,y,D);if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,hnW));return!0},iSL,nyO);
_.Um=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,_.Fd(I.decoder_));return!0},$go,QTW);
Hau=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;I=_.Fd(I.decoder_);_.on(y,D,I===0?void 0:I);return!0},$go,QTW);
eZ_=_.jZ(function(I,y,D,F){if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,_.Fd(I.decoder_));return!0},$go,QTW);
TGW=_.jZ(function(I,y,D){if(_.Xq)return _.OjL(I,y,D);if(I.nextWireType_!==1)return!1;_.on(y,D,JeR(I.decoder_));return!0},_.HSo,_.m8_);
_.sTa=_.a0q(function(I,y,D){if(_.Xq)return I.nextWireType_!==1&&I.nextWireType_!==2?I=!1:(y=_.LS(y,y[_.L_]|0,D),I.nextWireType_==2?_.oyW(I,RDB,y):y.push(RDB(I.decoder_)),I=!0),I;if(I.nextWireType_!==1&&I.nextWireType_!==2)return!1;y=_.LS(y,y[_.L_]|0,D);I.nextWireType_==2?_.oyW(I,JeR,y):y.push(JeR(I.decoder_));return!0},function(I,y,D){y=_.dgq(enL,y,!1);
if(y!=null)for(var F=0;F<y.length;F++)bSJ(I,D,y[F])},_.m8_);
_.rJ=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,SbR(I.decoder_));return!0},eCW,Gon);
_.jq=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;I=SbR(I.decoder_);_.on(y,D,I===!1?void 0:I);return!0},eCW,Gon);
Vgz=_.jZ(function(I,y,D,F){if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,SbR(I.decoder_));return!0},eCW,Gon);
_.oh=_.jZ(function(I,y,D){if(I.nextWireType_!==2)return!1;_.on(y,D,reM(I));return!0},sno,XCM);
_.NV=_.jZ(function(I,y,D){if(I.nextWireType_!==2)return!1;I=reM(I);_.on(y,D,I===""?void 0:I);return!0},sno,XCM);
_.h4=_.jZ(function(I,y,D,F){if(I.nextWireType_!==2)return!1;_.Ex(y,D,F,reM(I));return!0},sno,XCM);
Zac=_.a0q(function(I,y,D){if(I.nextWireType_!==2)return!1;I=reM(I);_.LS(y,y[_.L_]|0,D).push(I);return!0},function(I,y,D){y=_.dgq(_.fa,y,!0);
if(y!=null)for(var F=0;F<y.length;F++){var R=I,O=D,w=y[F];w!=null&&ToL(R,O,P_L(w))}},XCM);
gyR=void 0;gyR=gyR===void 0?OSq:gyR;_.xX=new tV(function(I,y,D,F,R){if(I.nextWireType_!==2)return!1;F=WC(void 0,F);_.LS(y,y[_.L_]|0,D).push(F);Om(I,F,R);return!0},function(I,y,D,F,R){if(Array.isArray(y)){for(var O=0;O<y.length;O++)VZL(I,y[O],D,F,R);
I=y[_.L_]|0;I&1||tM(y,I|1)}},gyR);
_.l7=LHq(function(I,y,D,F,R,O){if(I.nextWireType_!==2)return!1;var w=y[_.L_]|0;Ha_(y,w,O,D,kP(w));y=gPu(y,F,D);Om(I,y,R);return!0},VZL);
_.u7=_.jZ(function(I,y,D){if(I.nextWireType_!==2)return!1;_.on(y,D,_.jTM(I));return!0},_.ZSe,_.koc);
I0f=_.jZ(function(I,y,D,F){if(I.nextWireType_!==2)return!1;_.Ex(y,D,F,_.jTM(I));return!0},_.ZSe,_.koc);
_.qV=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,_.Fd(I.decoder_)>>>0);return!0},gsJ,YbP);
yV_=_.jZ(function(I,y,D,F){if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,_.Fd(I.decoder_)>>>0);return!0},gsJ,YbP);
_.Em=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;_.on(y,D,_.Fd(I.decoder_));return!0},_.ItS,_.d8M);
_.GQ=_.jZ(function(I,y,D){if(I.nextWireType_!==0)return!1;I=_.Fd(I.decoder_);_.on(y,D,I===0?void 0:I);return!0},_.ItS,_.d8M);
Dge=_.jZ(function(I,y,D){if(_.Xq)return I.nextWireType_!==0?I=!1:(_.on(y,D,L1a(I.decoder_)),I=!0),I;if(I.nextWireType_!==0)return!1;_.on(y,D,_.qg(I.decoder_,EPo));return!0},function(I,y,D){y=H_W(y);
if(y!=null&&(Dgo(y),y!=null))switch(_.Ng(I,D,0),typeof y){case "number":I=I.encoder_;D=y;y=D<0;D=Math.abs(D)*2;rMC(D);D=WG;var F=C_;y&&(D==0?F==0?F=D=4294967295:(F--,D=4294967295):D--);WG=D;C_=F;xs(I,WG,C_);break;case "bigint":I=I.encoder_;y=y<<BigInt(1)^y>>BigInt(63);WG=Number(BigInt.asUintN(32,y));C_=Number(BigInt.asUintN(32,y>>BigInt(32)));xs(I,WG,C_);break;default:lQW(I.encoder_,y)}},pCa);var OSO=function(){var I=FHO,y=RCf;this.fieldIndex=175237375;this.ctor=y;this.isRepeated=0;this.getExtensionFn=_.kk;this.defaultValue=void 0;this.JSC$9152_hasMessageId=I.messageId!=null?za:void 0};
OSO.prototype.register=function(){Ym(this)};var LHc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(LHc,_.KS);var JVO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(JVO,_.KS);var PiC=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(PiC,_.KS);var w$a=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(w$a,_.KS);var vsg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(vsg,_.KS);var Sxz=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Sxz,_.KS);var tZn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(tZn,_.KS);tZn.prototype.getData=function(){return _.Cz(this,2)};var Pau=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Pau,_.KS);var KHM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(KHM,_.KS);KHM.prototype.getStyle=function(){return _.kk(this,LHc,1)};var pS=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(pS,_.KS);pS.prototype.getPayloadCase=function(){return _.Bn(this,zq)};
pS.prototype.getStyle=function(){return _.gu(this,KHM,6,zq)};
var UgP=function(){var I=new pS,y=new vsg;return _.Mg(I,7,zq,y)},rVO=function(){var I=new pS,y=new Sxz;
return _.Mg(I,8,zq,y)},zq=[1,
2,3,4,5,6,7,8];var jnc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(jnc,_.KS);var osM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(osM,_.KS);var Noe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Noe,_.KS);var hCu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(hCu,_.KS);var xgG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(xgG,_.KS);var l0W=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(l0W,_.KS);var uju=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(uju,_.KS);var qxW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(qxW,_.KS);qxW.prototype.getData=function(){return _.Cz(this,2)};var EsG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(EsG,_.KS);var tYL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(tYL,_.KS);tYL.prototype.getPayloadCase=function(){return _.Bn(this,Xd)};
var Xd=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var QH=function(I,y){I=Error.call(this,I);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=y===void 0?2:y};
_.E(QH,Error);var Gqn=Promise;var X$P=function(I){this.channelPromise=I};
X$P.prototype.send=function(I,y,D){this.channelPromise.then(function(F){F.send(I,y,D)})};var QnW=function(I,y){this.data=I;this.channel=y};
QnW.prototype.reply=function(I,y,D){this.channel.send(I,y,D)};var Yxc=function(I){this.JSC$9218_port_=I};
Yxc.prototype.send=function(I,y,D){D=D===void 0?[]:D;var F=new MessageChannel;f0n(F.port1,y);this.JSC$9218_port_.postMessage(I,[F.port2].concat(D))};
var nsa=function(I,y){f0n(I,y);return new Yxc(I)},f0n=function(I,y){y&&(I.onmessage=function(D){y(new QnW(D.data,nsa(D.ports[0])))})};var p$f=function(I){this.verifier_=I};
p$f.prototype.verify=function(I){return this.verifier_(I)};
var mgW=function(I){var y=Object.create(null);(typeof I==="string"?[I]:I).forEach(function(D){if(D==="null")throw Error("X");y[D]=!0});
return function(D){return y[D]===!0}};_.MZR=function(){if(!_.Ft.addEventListener||!Object.defineProperty)return!1;var I=!1,y=Object.defineProperty({},"passive",{get:function(){I=!0}});
try{var D=function(){};
_.Ft.addEventListener("test",D,y);_.Ft.removeEventListener("test",D,y)}catch(F){}return I}();var zCO;_.YX=function(I){var y=I.destination;var D=I.iframe;var F=I.origin;var R=I.channelName===void 0?"ZNWN1d":I.channelName;var O=I.onMessage===void 0?void 0:I.onMessage;I=I.onEstablished===void 0?void 0:I.onEstablished;return zCO({destination:y,getSource:function(){return D.contentWindow},
originVerifier:F instanceof p$f?F:typeof F==="function"?new p$f(F):new p$f(mgW(F)),channelName:R,onMessage:O,onEstablished:I})};
zCO=function(I){var y=I.destination;var D=I.getSource;var F=I.originVerifier;var R=I.token===void 0?void 0:I.token;var O=I.channelName;var w=I.onMessage===void 0?void 0:I.onMessage;var v=I.onEstablished===void 0?void 0:I.onEstablished;return new X$P(new Gqn(function(P,K){var r=function(N){N.source&&N.source===D()&&F.verify(N.origin)&&(N.data.n||N.data)===O&&(y.removeEventListener("message",r,!1),R&&N.data.t!==R?K(Error("Y`"+O+"`"+R+"`"+N.data.t)):(P(nsa(N.ports[0],w)),v&&v(N)))};
y.addEventListener("message",r,!1)}))};var kqn=function(I){try{I()}catch(y){Ro(y)}};var a0O=function(I){var y=this;var D=I.getMessageType;var F=I.onUnregisteredMessage===void 0?function(){}:I.onUnregisteredMessage;
var R=I.onBeforeRegisteredMessage===void 0?function(){}:I.onBeforeRegisteredMessage;
I=I.onAfterRegisteredMessage===void 0?function(){}:I.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=D;this.onUnregisteredMessage_=F;this.onBeforeRegisteredMessage_=R;this.onAfterRegisteredMessage_=I;this.onMessage=function(O){return dgO(y,O)}};
a0O.prototype.register=function(I,y){this.registry_.set(I,y);return this};
var dgO=function(I,y){var D=I.getMessageType_(y.data),F=I.registry_.get(D);F?(kqn(function(){return I.onBeforeRegisteredMessage_(y,D)}),kqn(function(){return F(y)}),kqn(function(){return I.onAfterRegisteredMessage_(y,D)})):kqn(function(){return I.onUnregisteredMessage_(y,D)})};var cVc=function(I){this.JSC$9235_channel_=I},Caf,Bo_;
cVc.prototype.send=function(I,y,D){this.JSC$9235_channel_.send(cC(I),y,D)};
_.WHM=function(I,y){return function(D){var F=new I(D.data);return y(new QnW(F,D.channel))}};
Caf=function(I){return function(y){return I(new QnW(y.data,new cVc(y.channel)))}};
Bo_=function(I,y){return Caf(_.WHM(I,y))};var iSM=function(I,y,D,F){this.registry=I;this.delegate=y;this.receiveMessageConstructor=D;this.createInitMessage=F;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Sk5=function(I){var y=new a0O({getMessageType:I.getPayloadCase});
return new iSM(y,new cVc(_.YX({iframe:I.child,destination:window,origin:I.origin,channelName:I.channelName,onMessage:Bo_(I.receiveMessageConstructor,y.onMessage)})),I.receiveMessageConstructor,I.createInitMessage)},AVa=function(I,y){I.createInitMessage=y};
iSM.prototype.send=function(I){if(!this.initialised)throw new QH("Attempted to send a message before initialisation.");this.delegate.send(I)};
var $ge=function(I,y){return _.S(function(D){if(!I.initialised)throw new QH("Attempted to send a message before initialisation.");return D.return(new Promise(function(F){I.delegate.send(y,Bo_(I.receiveMessageConstructor,F))}))})};
iSM.prototype.init=function(){var I=this;return _.S(function(y){if(I.initialised)throw new QH("Attempted to initialise twice. The SDK can only be initialised once.");if(I.createInitMessage!==void 0){var D=I.delegate,F=D.send,R=I.createInitMessage;var O=new JVO;var w=[].concat(_.Td(I.features));O=_.D0(O,1,w,_.Je);F.call(D,R.call(I,O))}I.initialised=!0;_.Cj(y)})};
var f2=function(I,y){if(I.initialised)throw new QH('Attempted to set up API "'+y+'" after initialisation. All APIs must be set up before initialising the SDK.');I.features.add(y);return I.registry};
_.mD.Object.defineProperties(iSM.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var bSM=function(I){this.channel=I;this.registered=!1};
bSM.prototype.update=function(I){if(this.channel.isInitialised){if(!this.registered)throw new QH("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var y=new pS;var D=new w$a;D=_.Xm(D,1,I);y=_.Mg(y,2,zq,D);this.channel.send(y)}else this.register();this.JSC$9249_audioEnabled=I};
bSM.prototype.register=function(){f2(this.channel,1);this.registered=!0};
bSM.prototype.isAudioEnabled=function(){return this.JSC$9249_audioEnabled};var HSe=function(I){this.channel=I};
_.L=HSe.prototype;_.L.onFirstFrameReady=function(I){f2(this.channel,2).register(11,function(y){y=_.gu(y.data,jnc,11,Xd);if(!y)throw new QH("Unexpectedly nonexistent GameFirstFrameReadyEvent");I(_.Tp(y,1))})};
_.L.onReady=function(I){f2(this.channel,2).register(4,function(y){y=_.gu(y.data,Noe,4,Xd);if(!y)throw new QH("Unexpectedly nonexistent GameReadyEvent");I(_.Tp(y,1))})};
_.L.onLevelComplete=function(I){f2(this.channel,2).register(5,function(y){y=_.gu(y.data,hCu,5,Xd);if(!y)throw new QH("Unexpectedly nonexistent LevelCompleteEvent");I(_.Tp(y,1),_.lD(y,2))})};
_.L.onGameOver=function(I){f2(this.channel,2).register(6,function(y){y=_.gu(y.data,osM,6,Xd);if(!y)throw new QH("Unexpectedly nonexistent GameOverEvent");I(_.Tp(y,1))})};
_.L.pause=function(){var I=this;if(!this.channel.isInitialised)return f2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new QH("Using unregistered Game Feature: pause.");var y=UgP();return new Promise(function(D){return _.S(function(F){if(F.nextAddress==1)return F.yield($ge(I.channel,y),2);D();_.Cj(F)})})};
_.L.resume=function(){var I=this;if(!this.channel.isInitialised)return f2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new QH("Using unregistered Game Feature: resume.");var y=rVO();return new Promise(function(D){return _.S(function(F){if(F.nextAddress==1)return F.yield($ge(I.channel,y),2);D();_.Cj(F)})})};var eCf=function(I){this.channel=I};
eCf.prototype.onReady=function(I){f2(this.channel,5).register(8,function(y){if(!_.gu(y.data,xgG,8,Xd))throw new QH("Unexpectedly nonexistent PageReadyEvent");I()})};var ToM=function(I){this.channel=I};
ToM.prototype.onChange=function(I){f2(this.channel,3).register(7,function(y){y=_.gu(y.data,l0W,7,Xd);if(!y)throw new QH("Unexpectedly nonexistent ScoreEvent");I(_.Tp(y,1),_.lD(y,2))})};var sne={load:function(){throw new QH("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new QH("Storage used, but storage.onSave() listener not set!");}},VZM=function(I){this.channel=I;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ZSa=function(I){f2(I.channel,4).register(2,sne.load).register(3,sne.save);
I.initialSetupDone=!0};
VZM.prototype.onLoad=function(I){this.initialSetupDone||ZSa(this);this.loadRegistered||(this.loadRegistered=!0,f2(this.channel,4).register(2,function(y){var D,F,R;return _.S(function(O){if(O.nextAddress==1){D=_.gu(y.data,uju,2,Xd);if(!D)throw new QH("Unexpectedly nonexistent StorageLoad");F=_.Tp(D,1);return O.yield(I(F),2)}R=O.yieldResult;var w=y.reply,v=new pS;var P=new tZn;P=_.BB(P,1,F);P=_.aC(P,2,_.Mz(R,!1));v=_.Mg(v,3,zq,P);w.call(y,v);_.Cj(O)})}))};
VZM.prototype.onSave=function(I){this.initialSetupDone||ZSa(this);this.saveRegistered||(this.saveRegistered=!0,f2(this.channel,4).register(3,function(y){var D,F,R;return _.S(function(O){if(O.nextAddress==1){D=_.gu(y.data,qxW,3,Xd);if(!D)throw new QH("Unexpectedly nonexistent StorageSave");F=_.Tp(D,1);R=cMR(D.getData());return O.yield(I(F,R),2)}var w=y.reply,v=new pS;var P=new Pau;P=_.BB(P,1,F);v=_.Mg(v,4,zq,P);w.call(y,v);_.Cj(O)})}))};var gsM=function(I){this.channel=I};
gsM.prototype.update=function(I){if(!this.channel.features.has(6))throw new QH("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var y=new pS,D=new KHM;I=_.mH(D,1,I);y=_.Mg(y,6,zq,I);this.channel.send(y)};
gsM.prototype.register=function(){f2(this.channel,6)};var Itz=function(I){this.channel=I;this.userActivityLoggingIntervalMs=0};
Itz.prototype.onUserActivity=function(I,y){this.userActivityLoggingIntervalMs=y;f2(this.channel,7).register(9,function(D){if(!_.gu(D.data,EsG,9,Xd))throw new QH("Unexpectedly nonexistent ClickEvent");I()})};var yWn=function(I){var y=this;this.channel=I;this.init=this.channel.init.bind(this.channel);this.page=new eCf(this.channel);this.game=new HSe(this.channel);this.audio=new bSM(this.channel);this.score=new ToM(this.channel);this.storage=new VZM(this.channel);this.style=new gsM(this.channel);this.userActivity=new Itz(this.channel);AVa(this.channel,function(D){var F=new PiC;D=_.mH(F,1,D);D=_.Ih(D,3,y.userActivity.userActivityLoggingIntervalMs);F=y.audio.isAudioEnabled();F!==void 0&&_.Xm(D,2,F);F=new pS;
return _.Mg(F,5,zq,D)})};var D_O=function(){this.timedFunctionContext=0};
D_O.prototype.timeExecution=function(I,y){var D=this;return function(){var F=_.go.apply(0,arguments);D.timedFunctionContext=I;return y.apply(null,_.Td(F))}};var F4a=function(){var I={};this.priorityTasks=(I[3]=[],I[2]=[],I[1]=[],I);this.isFlushing=!1},MR=function(I,y,D){var F=RDg(I,D);
I.priorityTasks[D].push(y);F&&I.priorityTasks[D].length===1&&I.flush()},RDg=function(I,y){return Object.keys(I.priorityTasks).map(function(D){return Number(D)}).filter(function(D){return!isNaN(D)&&D>y}).every(function(D){return I.priorityTasks[D].length===0})};
F4a.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(I){return I.length>0});)OjM(this,3),OjM(this,2),OjM(this,1)}catch(I){throw Object.values(this.priorityTasks).forEach(function(y){return void y.splice(0,y.length)}),I;
}finally{this.isFlushing=!1}}};
var OjM=function(I,y){for(;RDg(I,y)&&I.priorityTasks[y].length>0;)I.priorityTasks[y][0](),I.priorityTasks[y].shift()};
_.mD.Object.defineProperties(F4a.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(I){return I.length>0})}}});var hDC={};var L4G=globalThis.trustedTypes,U__=L4G,jBL;var an=function(I){this.privateDoNotAccessOrElseWrappedResourceUrl=I};
an.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var JWz,wdR,vQe,Sk_,tYM,PiR,K4M,U_u;JWz=_.UI([""]);wdR=Kz(["\x00"],["\\0"]);vQe=Kz(["\n"],["\\n"]);Sk_=Kz(["\x00"],["\\u0000"]);tYM=_.UI([""]);PiR=Kz(["\x00"],["\\0"]);K4M=Kz(["\n"],["\\n"]);U_u=Kz(["\x00"],["\\u0000"]);_.rWM=Nj5(function(I){return I(JWz)})||Nj5(function(I){return I(wdR)})||Nj5(function(I){return I(vQe)})||Nj5(function(I){return I(Sk_)});
_.jBM=_.CS(tYM)&&_.CS(PiR)&&_.CS(K4M)&&_.CS(U_u);var sx;_.B$=function(I,y){this.privateDoNotAccessOrElseWrappedUrl=y};
_.B$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oQP=ia("about:blank");sx=ia("about:invalid#zClosurez");var x_o=function(I){this.isValid=I},Nj_=new x_o(function(I){return/^[^:]*([/?#]|$)/.test(I)}),hDR=eZ("data"),x_e=eZ("http"),lta=eZ("https"),uyz=eZ("ftp"),qkc=eZ("mailto"),EQn=eZ("intent"),GdG=eZ("vnd.youtube"),lte=[hDR,
x_e,lta,qkc,uyz,Nj_],qkq=ks(function(){return typeof URL==="function"}),XdP=["data:",
"http:","https:","mailto:","ftp:"],GdH=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Dt=function(I){this.privateDoNotAccessOrElseWrappedHtml=I};
Dt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var ivC=ks(function(){return new Dt(L4G?L4G.emptyHTML:"")});var QBc={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"},QBq=function(I,y){var D=Error.call(this,I+" cannot be used with intent "+QBc[y]);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.type=I;this.intent=y;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.E(QBq,Error);_.SY=function(I){this.privateDoNotAccessOrElseWrappedScript=I};
_.SY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ftH=function(I){this.privateDoNotAccessOrElseWrappedAttributePrefix=I};
ftH.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var nQq="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var N_=function(I){this.privateDoNotAccessOrElseWrappedStyleSheet=I};
N_.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var $YB=function(I){var y=_.jF("window.location.href");I==null&&(I='Unknown Error of type "null/undefined"');if(typeof I==="string")return{message:I,name:"Unknown error",lineNumber:"Not available",fileName:y,stack:"Not available"};var D=!1;try{var F=I.lineNumber||I.line||"Not available"}catch(w){F="Not available",D=!0}try{var R=I.fileName||I.filename||I.sourceURL||_.Ft.$googDebugFname||y}catch(w){R="Not available",D=!0}y=YkM(I);if(!(!D&&I.lineNumber&&I.fileName&&I.stack&&I.message&&I.name)){D=I.message;
if(D==null){if(I.constructor&&I.constructor instanceof Function){if(I.constructor.name)D=I.constructor.name;else if(D=I.constructor,n2[D])D=n2[D];else{D=String(D);if(!n2[D]){var O=/function\s+([^\(]+)/m.exec(D);n2[D]=O?O[1]:"[Anonymous]"}D=n2[D]}D='Unknown Error of type "'+D+'"'}else D="Unknown Error of unknown type";typeof I.toString==="function"&&Object.prototype.toString!==I.toString&&(D+=": "+I.toString())}return{message:D,name:I.name||"UnknownError",lineNumber:F,fileName:R,stack:y||"Not available"}}return{message:I.message,
name:I.name,lineNumber:I.lineNumber,fileName:I.fileName,stack:y}},YkM=function(I,y){y||(y={});
y[ftG(I)]=!0;var D=I.stack||"",F=I.cause;F&&!y[ftG(F)]&&(D+="\nCaused by: ",F.stack&&F.stack.indexOf(F.toString())==0||(D+=typeof F==="string"?F:F.message+"\n"),D+=YkM(F,y));I=I.errors;if(Array.isArray(I)){F=1;var R;for(R=0;R<I.length&&!(F>4);R++)y[ftG(I[R])]||(D+="\nInner error "+F++ +": ",I[R].stack&&I[R].stack.indexOf(I[R].toString())==0||(D+=typeof I[R]==="string"?I[R]:I[R].message+"\n"),D+=YkM(I[R],y));R<I.length&&(D+="\n... "+(I.length-R)+" more inner errors")}return D},ftG=function(I){var y=
"";
typeof I.toString==="function"&&(y=""+I);return y+I.stack},n2={};var nQO,Yf,Xp,m_M,MYn,pdO,jR,O$,kdf;nQO=function(I,y){for(var D=I.split("%s"),F="",R=Array.prototype.slice.call(arguments,1);R.length&&D.length>1;)F+=D.shift()+R.shift();return F+D.join("%s")};
_.NC=function(I){return encodeURIComponent(String(I))};
Yf=function(I){return decodeURIComponent(I.replace(/\+/g," "))};
Xp=function(I){FMO.test(I)&&(I.indexOf("&")!=-1&&(I=I.replace(VWu,"&amp;")),I.indexOf("<")!=-1&&(I=I.replace(Z5e,"&lt;")),I.indexOf(">")!=-1&&(I=I.replace(gAz,"&gt;")),I.indexOf('"')!=-1&&(I=I.replace(IRR,"&quot;")),I.indexOf("'")!=-1&&(I=I.replace(yMM,"&#39;")),I.indexOf("\x00")!=-1&&(I=I.replace(DzR,"&#0;")));return I};
m_M=function(I){var y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var D=_.Ft.document.createElement("div");return I.replace(pdO,function(F,R){var O=y[F];if(O)return O;R.charAt(0)=="#"&&(R=Number("0"+R.slice(1)),isNaN(R)||(O=String.fromCharCode(R)));O||(_.rj(D,Fy(F+" ")),O=D.firstChild.nodeValue.slice(0,-1));return y[F]=O})};
MYn=function(I){return I.replace(/&([^;]+);/g,function(y,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))?y:String.fromCharCode(D)}})};
pdO=/&([^;\s<&]+);?/g;_.k0B=function(I){return String(I).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.zDG=String.prototype.repeat?function(I,y){return I.repeat(y)}:function(I,y){return Array(y+1).join(I)};
_.p2=function(I,y){if(!Number.isFinite(I))return String(I);I=String(I);var D=I.indexOf(".");D===-1&&(D=I.length);var F=I[0]==="-"?"-":"";F&&(I=I.substring(1));return F+(0,_.zDG)("0",Math.max(0,y-D))+I};
jR=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.q0()).toString(36)};
O$=function(I){for(var y=0,D=0;D<I.length;++D)y=31*y+I.charCodeAt(D)>>>0;return y};
_.zG=function(I){return String(I).replace(/\-([a-z])/g,function(y,D){return D.toUpperCase()})};
_.mQ=function(I){return String(I).replace(/([A-Z])/g,"-$1").toLowerCase()};
kdf=function(I){return I.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(y,D,F){return D+F.toUpperCase()})};var d_n=function(){this.names=new Map};
d_n.prototype.getName=function(I){var y=this.names.get(I);if(y)return y;var D;y=(D=I.description)!=null?D:jR();this.names.set(I,y);return y};var at_=function(I){var y=Error.call(this,I?I.length+" errors occurred during unsubscription:\n"+I.map(function(D,F){return F+1+") "+D.toString()}).join("\n  "):"");
this.message=y.message;"stack"in y&&(this.stack=y.stack);this.errors=I;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.E(at_,Error);var xQ=function(I){this.initialTeardown=I;this.closed=!1;this._teardowns=this._parentage=null};
_.L=xQ.prototype;
_.L.unsubscribe=function(){if(!this.closed){this.closed=!0;var I=this._parentage;if(Array.isArray(I))for(var y=_.J(I),D=y.next();!D.done;D=y.next())D.value.remove(this);else I==null||I.remove(this);y=this.initialTeardown;if(hW(y))try{y()}catch(O){var F=O instanceof at_?O.errors:[O]}var R=this._teardowns;if(R)for(this._teardowns=null,y=_.J(R),D=y.next();!D.done;D=y.next()){D=D.value;try{hW(D)?D():D.unsubscribe()}catch(O){D=void 0,F=(D=F)!=null?D:[],O instanceof at_?F=[].concat(_.Td(F),_.Td(O.errors)):
F.push(O)}}if(F)throw new at_(F);}};
_.L.add=function(I){if(I&&I!==this)if(this.closed)hW(I)?I():I.unsubscribe();else{if(I instanceof xQ){if(I.closed||I._hasParent(this))return;I._addParent(this)}var y;(this._teardowns=(y=this._teardowns)!=null?y:[]).push(I)}};
_.L._hasParent=function(I){var y=this._parentage;return y===I||Array.isArray(y)&&y.includes(I)};
_.L._addParent=function(I){var y=this._parentage;this._parentage=Array.isArray(y)?(y.push(I),y):y?[y,I]:I};
_.L._removeParent=function(I){var y=this._parentage;y===I?this._parentage=null:Array.isArray(y)&&kdW(y,I)};
_.L.remove=function(I){var y=this._teardowns;y&&kdW(y,I);I instanceof xQ&&I._removeParent(this)};
var cWg=new xQ;cWg.closed=!0;xQ.JSC$9345_EMPTY=cWg;var at5=function(){setTimeout.apply(null,_.Td(_.go.apply(0,arguments)))};var mV=function(I){xQ.call(this);this.JSC$9350_isStopped=!1;this.destination=I instanceof mV?I:new MV(!I||hW(I)?{next:I!=null?I:void 0}:I);d_4(I)&&I.add(this)};
_.E(mV,xQ);mV.JSC$9345_EMPTY=xQ.JSC$9345_EMPTY;mV.create=function(I,y,D){return new zQ(I,y,D)};
_.L=mV.prototype;_.L.next=function(I){this.JSC$9350_isStopped||this._next(I)};
_.L.error=function(I){this.JSC$9350_isStopped||(this.JSC$9350_isStopped=!0,this._error(I))};
_.L.complete=function(){this.JSC$9350_isStopped||(this.JSC$9350_isStopped=!0,this._complete())};
_.L.unsubscribe=function(){this.closed||(this.JSC$9350_isStopped=!0,xQ.prototype.unsubscribe.call(this))};
_.L._next=function(I){this.destination.next(I)};
_.L._error=function(I){this.destination.error(I);this.unsubscribe()};
_.L._complete=function(){this.destination.complete();this.unsubscribe()};
var MV=function(I){this.partialObserver=I};
MV.prototype.next=function(I){var y=this.partialObserver;if(y.next)try{y.next(I)}catch(D){ui(D)}};
MV.prototype.error=function(I){var y=this.partialObserver;if(y.error)try{y.error(I)}catch(D){ui(D)}else ui(I)};
MV.prototype.complete=function(){var I=this.partialObserver;if(I.complete)try{I.complete()}catch(y){ui(y)}};
var zQ=function(I,y,D){mV.call(this);var F;hW(I)||!I?F={next:I!=null?I:void 0,error:y!=null?y:void 0,complete:D!=null?D:void 0}:F=I;this.destination=new MV(F)};
_.E(zQ,mV);zQ.JSC$9345_EMPTY=mV.JSC$9345_EMPTY;zQ.create=mV.create;var Qr=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Xy=function(I){I&&(this._subscribe=I)};
_.L=Xy.prototype;_.L.lift=function(I){var y=new Xy;y.source=this;y.operator=I;return y};
_.L.subscribe=function(I,y,D){I=I&&I instanceof mV||I&&hW(I.next)&&hW(I.error)&&hW(I.complete)&&d_4(I)?I:new zQ(I,y,D);y=this.operator;D=this.source;I.add(y?y.call(I,D):D?this._subscribe(I):this._trySubscribe(I));return I};
_.L._trySubscribe=function(I){try{return this._subscribe(I)}catch(y){I.error(y)}};
_.L.forEach=function(I,y){var D=this;y=W4W(y);return new y(function(F,R){var O=D.subscribe(function(w){try{I(w)}catch(v){R(v),O==null||O.unsubscribe()}},R,F)})};
_.L._subscribe=function(I){var y;return(y=this.source)==null?void 0:y.subscribe(I)};
Xy.prototype[Qr]=function(){return this};
Xy.prototype.pipe=function(){var I=_.go.apply(0,arguments);return I.length?cWB(I)(this):this};
Xy.create=function(I){return new Xy(I)};var W4f=function(){var I=Error.call(this,"object unsubscribed");this.message=I.message;"stack"in I&&(this.stack=I.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.E(W4f,Error);var nG=function(){this.observers=[];this.hasError=this.JSC$9366_isStopped=this.closed=!1;this.thrownError=null};
_.E(nG,Xy);_.L=nG.prototype;_.L.lift=function(I){var y=new kX(this,this);y.operator=I;return y};
_.L._throwIfClosed=function(){if(this.closed)throw new W4f;};
_.L.next=function(I){this._throwIfClosed();if(!this.JSC$9366_isStopped){var y=this.observers.slice();y=_.J(y);for(var D=y.next();!D.done;D=y.next())D.value.next(I)}};
_.L.error=function(I){this._throwIfClosed();if(!this.JSC$9366_isStopped){this.hasError=this.JSC$9366_isStopped=!0;this.thrownError=I;for(var y=this.observers;y.length;)y.shift().error(I)}};
_.L.complete=function(){this._throwIfClosed();if(!this.JSC$9366_isStopped){this.JSC$9366_isStopped=!0;for(var I=this.observers;I.length;)I.shift().complete()}};
_.L.unsubscribe=function(){this.JSC$9366_isStopped=this.closed=!0;this.observers=null};
_.L._trySubscribe=function(I){this._throwIfClosed();return Xy.prototype._trySubscribe.call(this,I)};
_.L._subscribe=function(I){this._throwIfClosed();this._checkFinalizedStatuses(I);return this._innerSubscribe(I)};
_.L._innerSubscribe=function(I){var y=this,D=this.JSC$9366_isStopped,F=this.observers;return this.hasError||D?xQ.JSC$9345_EMPTY:(F.push(I),new xQ(function(){return kdW(y.observers,I)}))};
_.L._checkFinalizedStatuses=function(I){var y=this.thrownError,D=this.JSC$9366_isStopped;this.hasError?I.error(y):D&&I.complete()};
nG.create=function(I,y){return new kX(I,y)};
var kX=function(I,y){nG.call(this);this.destination=I;this.source=y};
_.E(kX,nG);kX.create=nG.create;kX.prototype.next=function(I){var y,D;(y=this.destination)==null||(D=y.next)==null||D.call(y,I)};
kX.prototype.error=function(I){var y,D;(y=this.destination)==null||(D=y.error)==null||D.call(y,I)};
kX.prototype.complete=function(){var I,y;(I=this.destination)==null||(y=I.complete)==null||y.call(I)};
kX.prototype._subscribe=function(I){var y,D;return(D=(y=this.source)==null?void 0:y.subscribe(I))!=null?D:xQ.JSC$9345_EMPTY};var OW=function(I){nG.call(this);this._value=I};
_.E(OW,nG);OW.create=nG.create;OW.prototype._subscribe=function(I){var y=nG.prototype._subscribe.call(this,I);!y.closed&&I.next(this._value);return y};
OW.prototype.getValue=function(){var I=this.thrownError,y=this._value;if(this.hasError)throw I;this._throwIfClosed();return y};
OW.prototype.next=function(I){nG.prototype.next.call(this,this._value=I)};
_.mD.Object.defineProperties(OW.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var yE=new Xy(function(I){return I.complete()});var AWt=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Tjo=function(I){return I&&typeof I.length==="number"&&typeof I!=="function"};var Cia={now:function(){return(Cia.delegate||Date).now()},
delegate:void 0};var rB=function(I,y,D){I=I===void 0?Infinity:I;y=y===void 0?Infinity:y;D=D===void 0?Cia:D;nG.call(this);this.bufferSize=I;this.windowTime=y;this.timestampProvider=D;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=y===Infinity;this.bufferSize=Math.max(1,I);this.windowTime=Math.max(1,y)};
_.E(rB,nG);rB.create=nG.create;rB.prototype.next=function(I){var y=this.buffer,D=this.infiniteTimeWindow,F=this.timestampProvider,R=this.windowTime;this.JSC$9366_isStopped||(y.push(I),!D&&y.push(F.now()+R));Bjf(this);nG.prototype.next.call(this,I)};
rB.prototype._subscribe=function(I){this._throwIfClosed();Bjf(this);for(var y=this._innerSubscribe(I),D=this.infiniteTimeWindow,F=this.buffer.slice(),R=0;R<F.length&&!I.closed;R+=D?1:2)I.next(F[R]);this._checkFinalizedStatuses(I);return y};
var Bjf=function(I){var y=I.bufferSize,D=I.timestampProvider,F=I.buffer;I=I.infiniteTimeWindow;var R=(I?1:2)*y;y<Infinity&&R<F.length&&F.splice(0,F.length-R);if(!I){y=D.now();D=0;for(I=1;I<F.length&&F[I]<=y;I+=2)D=I;D&&F.splice(0,D+1)}};var AWW=function(I,y){y=y===void 0?ije:y;this.schedulerActionCtor=I;this.now=y};
AWW.prototype.schedule=function(I,y,D){y=y===void 0?0:y;return(new this.schedulerActionCtor(this,I)).schedule(D,y)};
var ije=Cia.now;var ClC=function(){var I=Error.call(this,"no elements in sequence");this.message=I.message;"stack"in I&&(this.stack=I.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.E(ClC,Error);var bi=function(I,y,D,F,R){mV.call(this,I);this.onUnsubscribe=R;y&&(this._next=function(O){try{y(O)}catch(w){this.destination.error(w)}});
D&&(this._error=function(O){try{D(O)}catch(w){this.destination.error(w)}this.unsubscribe()});
F&&(this._complete=function(){try{F()}catch(O){this.destination.error(O)}this.unsubscribe()})};
_.E(bi,mV);bi.JSC$9345_EMPTY=mV.JSC$9345_EMPTY;bi.create=mV.create;bi.prototype.unsubscribe=function(){var I;this.closed||(I=this.onUnsubscribe)!=null&&I.call(this);mV.prototype.unsubscribe.call(this)};var KG=function(I,y){this.source=I;this.subjectFactory=y;this._subject=null;this._refCount=0;this._connection=null};
_.E(KG,Xy);KG.create=Xy.create;KG.prototype._subscribe=function(I){return $_n(this).subscribe(I)};
var $_n=function(I){var y=I._subject;if(!y||y.JSC$9366_isStopped)I._subject=I.subjectFactory();return I._subject};
KG.prototype._teardown=function(){this._refCount=0;var I=this._connection;this._subject=this._connection=null;I==null||I.unsubscribe()};
KG.prototype.connect=function(){var I=this,y=this._connection;if(!y){y=this._connection=new xQ;var D=$_n(this);y.add(this.source.subscribe(new bi(D,void 0,function(F){I._teardown();D.error(F)},function(){I._teardown();
D.complete()},function(){return I._teardown()})));
y.closed&&(this._connection=null,y=xQ.JSC$9345_EMPTY)}return y};var JYe=Array.isArray;var vBA=Array.isArray,bjc=Object,St4=bjc.getPrototypeOf,t$e=bjc.prototype,Ple=bjc.keys;var Vr=function(I,y,D){mV.call(this,I);this._next=y;this.shouldComplete=D};
_.E(Vr,mV);Vr.JSC$9345_EMPTY=mV.JSC$9345_EMPTY;Vr.create=mV.create;Vr.prototype._complete=function(){this.shouldComplete()?mV.prototype._complete.call(this):this.unsubscribe()};var lO4=["addListener","removeListener"],xRJ=["addEventListener","removeEventListener"],qte=["on","off"];var dJ=function(){xQ.call(this)};
_.E(dJ,xQ);dJ.JSC$9345_EMPTY=xQ.JSC$9345_EMPTY;dJ.prototype.schedule=function(){return this};var HjM=function(I,y){return setInterval.apply(null,[I,y].concat(_.Td(_.go.apply(2,arguments))))};var ah=function(I,y){xQ.call(this);this.scheduler=I;this.work=y;this.pending=!1};
_.E(ah,dJ);ah.JSC$9345_EMPTY=dJ.JSC$9345_EMPTY;ah.prototype.schedule=function(I,y){y=y===void 0?0:y;if(this.closed)return this;this.state=I;I=this.id;var D=this.scheduler;I!=null&&(this.id=eDa(this,I,y));this.pending=!0;this.delay=y;this.id=this.id||this.requestAsyncId(D,this.id,y);return this};
ah.prototype.requestAsyncId=function(I,y,D){D=D===void 0?0:D;return HjM(I.flush.bind(I,this),D)};
var eDa=function(I,y,D){D=D===void 0?0:D;if(D!=null&&I.delay===D&&I.pending===!1)return y;clearInterval(y)};
ah.prototype.execute=function(I,y){if(this.closed)return Error("ha");this.pending=!1;if(I=this._execute(I,y))return I;this.pending===!1&&this.id!=null&&(this.id=eDa(this,this.id,null))};
ah.prototype._execute=function(I){var y=!1;try{this.work(I)}catch(F){y=!0;var D=!!F&&F||Error(F)}if(y)return this.unsubscribe(),D};
ah.prototype.unsubscribe=function(){if(!this.closed){var I=this.id,y=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;kdW(y,this);I!=null&&(this.id=eDa(this,I,null));this.delay=null;dJ.prototype.unsubscribe.call(this)}};var Tje=function(I,y){y=y===void 0?ije:y;AWW.call(this,I,y);this.actions=[];this.active=!1;this.scheduled=void 0};
_.E(Tje,AWW);Tje.prototype.flush=function(I){var y=this.actions;if(this.active)y.push(I);else{var D;this.active=!0;do if(D=I.execute(I.state,I.delay))break;while(I=y.shift());this.active=!1;if(D){for(;I=y.shift();)I.unsubscribe();throw D;}}};var $B=new Xy(li);var EBo=Array.isArray;var cq=function(I,y){ah.call(this,I,y);this.scheduler=I;this.work=y};
_.E(cq,ah);cq.JSC$9345_EMPTY=ah.JSC$9345_EMPTY;cq.prototype.schedule=function(I,y){y=y===void 0?0:y;if(y>0)return ah.prototype.schedule.call(this,I,y);this.delay=y;this.state=I;this.scheduler.flush(this);return this};
cq.prototype.execute=function(I,y){return y>0||this.closed?ah.prototype.execute.call(this,I,y):this._execute(I,y)};
cq.prototype.requestAsyncId=function(I,y,D){D=D===void 0?0:D;return D!=null&&D>0||D==null&&this.delay>0?ah.prototype.requestAsyncId.call(this,I,y,D):I.flush(this)};var sBu=function(){Tje.apply(this,arguments)};
_.E(sBu,Tje);var OG_=new sBu(cq);var VYu=function(){this.performanceMonitor=new D_O;this.queue=new F4a;this.internalSymbol=Symbol();this.debugNames=new d_n};
VYu.prototype.getOnBackgrounded=function(){return $B};
_.mD.Object.defineProperties(VYu.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Wq=function(I,y){y=Error.call(this,y?I+": "+y:String(I));this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=I;this.__proto__=Wq.prototype;this.name=String(I)};
_.E(Wq,Error);var bl=function(I){Wq.call(this,1E3,'sfr:"'+I+'"');this.measurementStrategyFailureReason=I;this.__proto__=bl.prototype};
_.E(bl,Wq);var HB=function(){Wq.call(this,1003);this.__proto__=HB.prototype};
_.E(HB,Wq);var C2=function(){Wq.call(this,1009);this.__proto__=C2.prototype};
_.E(C2,Wq);var ZjW=function(){Wq.call(this,1011);this.__proto__=ZjW.prototype};
_.E(ZjW,Wq);var gQO=function(){Wq.call(this,1007);this.__proto__=HB.prototype};
_.E(gQO,Wq);var il=function(I){Wq.call(this,1004,String(I));this.inputObservableIndex=I;this.__proto__=il.prototype};
_.E(il,Wq);var vMJ=function(I){Wq.call(this,1010,I);this.__proto__=Su_.prototype};
_.E(vMJ,Wq);var Su_=function(I){Wq.call(this,1005,I);this.__proto__=Su_.prototype};
_.E(Su_,Wq);var IOO=function(I){var y=_.go.apply(1,arguments),D=this;this.orderedFactories=[];this.orderedFactories.push(I);y.forEach(function(F){D.orderedFactories.push(F)})};
IOO.prototype.isSupported=function(I){return this.orderedFactories.some(function(y){return y.isSupported(I)})};
IOO.prototype.makeBeacon=function(I,y){for(var D=0;D<this.orderedFactories.length;D++)if(this.orderedFactories[D].isSupported(y))return this.orderedFactories[D].makeBeacon(I,y);throw new C2;};var Zeq=Symbol("ia"),yYR=Symbol("ja"),Ot=function(I,y){this.value=I;this.timeline=y},Rd=function(I,y){if(y.timeline!==I.timeline)throw new gQO;
return I.value-y.value};
_.L=Ot.prototype;_.L.equals=function(I){return Rd(this,I)===0};
_.L.maximum=function(I){if(I.timeline!==this.timeline)throw new gQO;return this.value>=I.value?this:I};
_.L.round=function(){return new Ot(Math.round(this.value),this.timeline)};
_.L.add=function(I){return new Ot(this.value+I,this.timeline)};
_.L.toString=function(){return String(this.value)};var Bq=function(I,y){this.context=I;this.JSC$9472_pinger=y};
Bq.prototype.isSupported=function(I){return this.JSC$9472_pinger.isSupported(I)};
Bq.prototype.makeBeacon=function(I,y){if(!this.isSupported(y))throw new C2;return new i7(this.context,this.JSC$9472_pinger,y!=null?y:void 0,I)};
var i7=function(I,y,D,F){var R=this;this.JSC$9478_pinger=y;this.properties=D;this.url=F;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var O;this.method=(O=D==null?void 0:D.beaconMethod)!=null?O:"GET";this.backgroundedSubscription=I.getOnBackgrounded().subscribe(function(){R.sendNow()})};
i7.prototype.deactivate=function(){this.internalIsPending=!1};
i7.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9478_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var I,y;this.JSC$9478_pinger.pingWithHeadersAndBody((I=this.properties)!=null?I:{},this.customHeaders,(y=this.body)!=null?y:"",this.url)}else this.JSC$9478_pinger.ping(this.url);this.internalIsPending=!1}catch(D){}else this.internalIsPending=!1};
i7.prototype.setHeader=function(I,y){this.customHeaders.set(I,y)};
_.mD.Object.defineProperties(i7.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var F2G=function(){for(var I=_.J(_.go.apply(0,arguments)),y=I.next();!y.done;y=I.next())if(y=y.value,y.available()){this.timeProvider=y;return}this.timeProvider=new DRG};
_.L=F2G.prototype;_.L.available=function(){return this.timeProvider.available()};
_.L.now=function(){return this.timeProvider.now()};
_.L.setTimeout=function(I,y){return this.timeProvider.setTimeout(I,y)};
_.L.clearTimeout=function(I){this.timeProvider.clearTimeout(I)};
_.L.interval=function(I,y){var D=this.intervalObservable(I).subscribe(y);return function(){return void D.unsubscribe()}};
_.L.intervalObservable=function(I){return this.timeProvider.intervalObservable(I)};
_.mD.Object.defineProperties(F2G.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var DRG=function(){this.timeline=Symbol()};
_.L=DRG.prototype;_.L.available=function(){return!1};
_.L.now=function(){return new Ot(0,this.timeline)};
_.L.setTimeout=function(){return 0};
_.L.clearTimeout=function(){};
_.L.interval=function(){return function(){}};
_.L.intervalObservable=function(){return $B};var A4=function(I,y){this.intrinsicFunctionNamespace=I;this.performanceMonitor=y};
_.L=A4.prototype;_.L.setTimeout=function(I,y){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,I),y)};
_.L.clearTimeout=function(I){this.intrinsicFunctionNamespace.clearTimeout(I)};
_.L.interval=function(I,y){var D=this.intervalObservable(I).subscribe(y);return function(){return void D.unsubscribe()}};
_.L.intervalObservable=function(I){var y=this;return new Xy(function(D){var F=0,R=y.intrinsicFunctionNamespace.setInterval(function(){D.next(F++)},I);
return function(){y.intrinsicFunctionNamespace.clearInterval(R)}})};
_.L.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var RqP=function(I,y){A4.call(this,I,y);this.timeline=yYR};
_.E(RqP,A4);RqP.prototype.now=function(){return new Ot(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
RqP.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&A4.prototype.available.call(this)};var OGu=function(I,y){A4.call(this,I,y);this.timeline=Zeq};
_.E(OGu,A4);OGu.prototype.now=function(){return new Ot(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
OGu.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&A4.prototype.available.call(this)};var JYa=function(I){this.context=I;if(L2n===void 0)a:{var y,D,F=(y=I.global)==null?void 0:(D=y.document)==null?void 0:D.createElement("meta");if(F)try{F.httpEquiv="origin-trial";F.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";I.global.document.head.append(F);L2n=F;break a}catch(R){}L2n=void 0}},
L2n;
JYa.prototype.isSupported=function(I){return zqq(this.context)!==void 0&&!(I==null||!I.endOfSession)&&!$X(this.context)&&!(I==null?0:I.attributionEnabled)&&!(I==null?0:I.customHeaders)&&!(I==null?0:I.customBody)};
JYa.prototype.makeBeacon=function(I,y){if(!this.isSupported(y))throw new C2;return new b7(this.context,I,y)};
var b7=function(I,y,D){this.context=I;this.properties=D;this.JSC$9505_urlWithoutToken=y;var F;this.beaconMethod=(F=D==null?void 0:D.beaconMethod)!=null?F:"GET";I=zqq(this.context);if(I===void 0)throw Error();this.fetchLater=I;wBu(this,vBP(this))},wBu=function(I,y){I.beaconResult&&I.beaconResult.activated||(I.beaconAbort=new AbortController,I.beaconResult=I.fetchLater(y,{method:I.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:I.beaconAbort.signal,activateAfter:96E4}))},vBP=function(I){I=I.JSC$9505_urlWithoutToken;
return(I.slice(-1)[0]==="&"?I:I+"&")+"flapi=1"};
b7.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
b7.prototype.sendNow=function(){};
b7.prototype.setHeader=function(){};
_.mD.Object.defineProperties(b7.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9505_urlWithoutToken},
set:function(I){this.JSC$9505_urlWithoutToken=I;I=vBP(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);wBu(this,I)}},
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 Stn=function(I){this.context=I};
Stn.prototype.isSupported=function(){return!$X(this.context)&&!!this.context.global.fetch};
Stn.prototype.ping=function(){var I=this;return DO.apply(null,_.Td(_.go.apply(0,arguments).map(function(y){return fj(I.context.global.fetch(y,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(eY(function(D){return D.status===200}))}))).pipe(BB5(function(y){return y}),AY_())};
Stn.prototype.pingWithHeadersAndBody=function(I,y,D){for(var F=_.go.apply(3,arguments),R=this,O=new Headers,w=_.J(y.entries()),v=w.next();!v.done;v=w.next()){var P=_.J(v.value);v=P.next().value;P=P.next().value;O.set(v,P)}var K,r=(K=I.keepAlive)!=null?K:!1;DO.apply(null,_.Td(F.map(function(N){return fj(R.context.global.fetch(N,Object.assign({},{method:String(I.beaconMethod),cache:"no-cache"},r?{keepalive:!0}:{},{mode:"no-cors",headers:O,body:D}))).pipe(eY(function(h){return h.status===200}))}))).pipe(BB5(function(N){return N}),
AY_())};var t$a,tG5,Pla;_.Hq=function(){};
_.mJ=function(I){return I};
t$a=function(I){var y=y||0;return function(){return I.apply(this,Array.prototype.slice.call(arguments,0,y))}};
_.eq=function(I){var y=!1,D;return function(){y||(D=I(),y=!0);return D}};
_.TQ=function(I,y){var D=0;return function(F){_.Ft.clearTimeout(D);var R=arguments;D=_.Ft.setTimeout(function(){I.apply(void 0,R)},y)}};
tG5=function(I,y){var D=0,F=!1,R=[],O=function(){D=0;F&&(F=!1,w())},w=function(){D=_.Ft.setTimeout(O,y);
var v=R;R=[];I.apply(void 0,v)};
return function(v){R=arguments;D?F=!0:w()}};
Pla=function(I,y){var D=0,F=function(){D=0};
return function(R){D||(D=_.Ft.setTimeout(F,y),I.apply(void 0,arguments))}};var sm=function(I,y,D,F,R){this.allowedElements=I;this.elementPolicies=y;this.allowedGlobalAttributes=D;this.globalAttributePolicies=F;this.globallyAllowedAttributePrefixes=R},K2f=function(I,y,D){D=I.elementPolicies.get(D);
return(D==null?0:D.has(y))?D.get(y):I.allowedGlobalAttributes.has(y)?{policyAction:1}:(D=I.globalAttributePolicies.get(y))?D:I.globallyAllowedAttributePrefixes&&[].concat(_.Td(I.globallyAllowedAttributePrefixes)).some(function(F){return y.indexOf(F)===0})?{policyAction:1}:{policyAction:0}};var URG="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(" "),
rYc=[["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}]])]],jdu="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(" "),
oBc=[["dir",{policyAction:3,conditions:ks(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ks(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ks(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ks(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],NBW=new sm(new Set(URG),new Map(rYc),new Set(jdu),new Map(oBc)),hqW=new sm(new Set(URG.concat(["BUTTON",
"INPUT"])),new Map(rYc),new Set(ks(function(){return jdu.concat(["class","id","name"])})),new Map(ks(function(){return oBc.concat([["style",
{policyAction:1}]])})));var xRM,lOn,qta;xRM=function(I,y,D,F,R){this.JSC$9562_sanitizerTable=I;this.styleElementSanitizer=y;this.styleAttributeSanitizer=D;this.JSC$9562_resourceUrlPolicy=F;this.JSC$9562_navigationUrlPolicy=R;this.changes=[]};
_.uOP=function(I,y){var D=document.implementation.createHTMLDocument("");I=lOn(I,y,D);D=D.body;D.appendChild(I);D=(new XMLSerializer).serializeToString(D);D=D.slice(D.indexOf(">")+1,D.lastIndexOf("</"));return Fy(D)};
lOn=function(I,y,D){y=DJq(y,D);y=document.createTreeWalker(y,5,function(v){if(v.nodeType===3)v=1;else if(RBe(v))if(v=F5L(v),v===null)v=2;else{var P=I.JSC$9562_sanitizerTable;v=v!=="FORM"&&(P.allowedElements.has(v)||P.elementPolicies.has(v))?1:2}else v=2;return v});
for(var F=y.nextNode(),R=D.createDocumentFragment(),O=R;F!==null;){var w=void 0;if(F.nodeType===3)I.styleElementSanitizer&&O.nodeName==="STYLE"?(F=I.styleElementSanitizer(F.data),w=I.createTextNode(F)):w=I.createTextNode(F.data);else if(RBe(F))w=qta(I,F,D);else throw Error("Z");O.appendChild(w);if(F=y.firstChild())O=w;else for(;!(F=y.nextSibling())&&(F=y.parentNode());)O=O.parentNode}return R};
xRM.prototype.createTextNode=function(I){return document.createTextNode(I)};
qta=function(I,y,D){var F,R=F5L(y);D=D.createElement(R);y=y.attributes;for(var O=_.J(y),w=O.next();!w.done;w=O.next()){var v=w.value;w=v.name;v=v.value;var P=K2f(I.JSC$9562_sanitizerTable,w,R);a:{if(F=P.conditions){F=_.J(F);for(var K=F.next();!K.done;K=F.next()){var r=_.J(K.value);K=r.next().value;r=r.next().value;var N=void 0;if((K=(N=y.getNamedItem(K))==null?void 0:N.value)&&!r.has(K)){F=!1;break a}}}F=!0}if(F)switch(P.policyAction){case 1:qR(D,w,v);break;case 2:throw Error();case 3:qR(D,w,v.toLowerCase());
break;case 4:I.styleAttributeSanitizer?(v=I.styleAttributeSanitizer(v),qR(D,w,v)):qR(D,w,v);break;case 5:I.JSC$9562_resourceUrlPolicy?(P={type:2,attributeName:w,elementName:R},v=yvJ(v),(v=I.JSC$9562_resourceUrlPolicy(v,P))&&qR(D,w,v.toString())):qR(D,w,v);break;case 6:if(I.JSC$9562_resourceUrlPolicy){P={type:2,attributeName:w,elementName:R};F=[];v=_.J(v.split(","));for(K=v.next();!K.done;K=v.next())r=_.J(K.value.trim().split(/\s+/,2)),K=r.next().value,r=r.next().value,F.push({url:K,descriptor:r});
v={parts:[]};F=_.J(F);for(K=F.next();!K.done;K=F.next())K=K.value,r=yvJ(K.url),(r=I.JSC$9562_resourceUrlPolicy(r,P))&&v.parts.push({url:r.toString(),descriptor:K.descriptor});qR(D,w,OW5(v))}else qR(D,w,v);break;case 7:P=v;if(I.JSC$9562_navigationUrlPolicy){P={type:2,attributeName:w,elementName:R};v=yvJ(v);v=I.JSC$9562_navigationUrlPolicy(v,P);if(v===null)break;P=v.toString()}v=P;P=_.EQ4(v);P=P!==void 0&&XdP.indexOf(P.toLowerCase())!==-1?v:"about:invalid#zClosurez";qR(D,w,P)}}return D};
_.EBe=ks(function(){return new xRM(NBW)});
_.G_c=ks(function(){return new xRM(hqW)});var XBO=function(){this.calledBuild=!1;this.JSC$9574_sanitizerTable=NBW},QdM=function(){XBO.apply(this,arguments)};
_.E(QdM,XBO);QdM.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new xRM(this.JSC$9574_sanitizerTable,void 0,void 0,this.JSC$9574_resourceUrlPolicy,this.JSC$9574_navigationUrlPolicy)};var Ytc=/[^#]*/;var HG5={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"},fOP=_.eq(function(){return TB_()}),
pBu=function(){var I=nBe("IFRAME"),y={};
_.hG(fOP(),function(D){I.sandbox&&I.sandbox.supports&&I.sandbox.supports(D)&&(y[D]=!0)});
return y},nBe=function(I,y){y=y===void 0?document:y;
return y.createElement(String(I).toLowerCase())};var VH;_.IL=function(I,y,D){return Math.min(Math.max(I,y),D)};
VH=function(I,y,D){return I+D*(y-I)};_.L=_.XO.prototype;_.L.clone=function(){return new _.XO(this.x,this.y)};
_.L.equals=function(I){return I instanceof _.XO&&(this==I?!0:this&&I?this.x==I.x&&this.y==I.y:!1)};
_.L.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.L.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.L.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.L.translate=function(I,y){I instanceof _.XO?(this.x+=I.x,this.y+=I.y):(this.x+=Number(I),typeof y==="number"&&(this.y+=y));return this};
_.L.scale=function(I,y){this.x*=I;this.y*=typeof y==="number"?y:I;return this};_.ad=function(I,y){this.width=I;this.height=y};
_.L=_.ad.prototype;_.L.clone=function(){return new _.ad(this.width,this.height)};
_.L.area=function(){return this.width*this.height};
_.L.aspectRatio=function(){return this.width/this.height};
_.L.isEmpty=function(){return!this.area()};
_.L.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.L.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.L.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.L.scale=function(I,y){this.width*=I;this.height*=typeof y==="number"?y:I;return this};var mRc;_.e$={};mRc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.e$.add=function(I,y,D){if(I!==null&&y in I)throw Error("na`"+y);I[y]=D};
_.e$.clear=function(I){for(var y in I)delete I[y]};
_.e$.clone=function(I){var y={},D;for(D in I)y[D]=I[D];return y};
_.e$.contains=function(I,y){return SWt(I,y)};
_.e$.containsKey=function(I,y){return I!==null&&y in I};
_.e$.containsValue=SWt;_.e$.create=K5W;_.e$.createImmutableView=function(I){var y=I;Object.isFrozen&&!Object.isFrozen(I)&&(y=Object.create(I),Object.freeze(y));return y};
_.e$.createSet=UJS;_.e$.equals=function(I,y){for(var D in I)if(!(D in y)||I[D]!==y[D])return!1;for(var F in y)if(!(F in I))return!1;return!0};
_.e$.every=function(I,y,D){for(var F in I)if(!y.call(D,I[F],F,I))return!1;return!0};
_.e$.extend=function(I,y){for(var D,F,R=1;R<arguments.length;R++){F=arguments[R];for(D in F)I[D]=F[D];for(var O=0;O<mRc.length;O++)D=mRc[O],Object.prototype.hasOwnProperty.call(F,D)&&(I[D]=F[D])}};
_.e$.filter=function(I,y,D){var F={},R;for(R in I)y.call(D,I[R],R,I)&&(F[R]=I[R]);return F};
_.e$.findKey=tTq;_.e$.findValue=function(I,y,D){return(y=tTq(I,y,D))&&I[y]};
_.e$.forEach=function(I,y,D){for(var F in I)y.call(D,I[F],F,I)};
_.e$.get=function(I,y,D){return I!==null&&y in I?I[y]:D};
_.e$.getAllPropertyNames=function(I,y,D){if(!I)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return vWC(I);for(var F={};I&&(I!==Object.prototype||y)&&(I!==Function.prototype||D);){for(var R=Object.getOwnPropertyNames(I),O=0;O<R.length;O++)F[R[O]]=!0;I=Object.getPrototypeOf(I)}return vWC(F)};
_.e$.getAnyKey=function(I){for(var y in I)return y};
_.e$.getAnyValue=function(I){for(var y in I)return I[y]};
_.e$.getCount=function(I){var y=0,D;for(D in I)y++;return y};
_.e$.getKeys=vWC;_.e$.getSuperClass=function(I){return(I=Object.getPrototypeOf(I.prototype))&&I.constructor};
_.e$.getValueByKeys=function(I,y){var D=_.i_(y),F=D?y:arguments;for(D=D?0:1;D<F.length;D++){if(I==null)return;I=I[F[D]]}return I};
_.e$.getValues=function(I){var y=[],D=0,F;for(F in I)y[D++]=I[F];return y};
_.e$.isEmpty=function(I){for(var y in I)return!1;return!0};
_.e$.isImmutableView=function(I){return!!Object.isFrozen&&Object.isFrozen(I)};
_.e$.map=function(I,y,D){var F={},R;for(R in I)F[R]=y.call(D,I[R],R,I);return F};
_.e$.remove=function(I,y){var D;(D=y in I)&&delete I[y];return D};
_.e$.set=function(I,y,D){I[y]=D};
_.e$.setIfUndefined=function(I,y,D){return y in I?I[y]:I[y]=D};
_.e$.setWithReturnValueIfNotSet=function(I,y,D){if(y in I)return I[y];D=D();return I[y]=D};
_.e$.some=function(I,y,D){for(var F in I)if(y.call(D,I[F],F,I))return!0;return!1};
_.e$.transpose=function(I){var y={},D;for(D in I)y[I[D]]=D;return y};
_.e$.unsafeClone=PDS;var KT=function(I,y){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=I===e2_&&y||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=M$G};
KT.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var zqO=function(I){return I instanceof KT&&I.constructor===KT&&I.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===M$G?I.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},M$G={},e2_={};
new KT(e2_,"");var CG,aD,gJ,k_M,cYz,aOR,st,ClR,iGg,BB_,F6,AYu,hrA,sdM,TBu,V$g,ZGG,gBc,IZa,KjS,yvM,F5M,RBa,DJO,Zh;CG=function(I){return I?new Zh(_.VE(I)):b5_||(b5_=new Zh)};
_.xz=function(I,y){return typeof y==="string"?I.getElementById(y):y};
aD=function(I,y){return(y||document).getElementsByTagName(String(I))};
_.dRg=function(I){return k_M("yt-formatted-string","paper-input-input",I)};
gJ=function(I,y,D,F){I=F||I;return(y=y&&y!="*"?String(y).toUpperCase():"")||D?I.querySelectorAll(y+(D?"."+D:"")):I.getElementsByTagName("*")};
k_M=function(I,y,D){var F=document,R=I&&I!="*"?String(I).toUpperCase():"";return R||y?(D||F).querySelector(R+(y?"."+y:"")):gJ(F,I,y,D)[0]||null};
cYz=function(I,y){_.e$.forEach(y,function(D,F){F=="style"?I.style.cssText=D:F=="class"?I.className=D:F=="for"?I.htmlFor=D:aOR.hasOwnProperty(F)?I.setAttribute(aOR[F],D):_.Oq(F,"aria-")||_.Oq(F,"data-")?I.setAttribute(F,D):I[F]=D})};
aOR={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"};_.cB=function(I){I=(I||window).document;I=I.compatMode=="CSS1Compat"?I.documentElement:I.body;return new _.ad(I.clientWidth,I.clientHeight)};
_.W2O=function(I){var y=_.IR(I);I=I.defaultView;return new _.XO((I==null?void 0:I.pageXOffset)||y.scrollLeft,(I==null?void 0:I.pageYOffset)||y.scrollTop)};
_.IR=function(I){return I.scrollingElement?I.scrollingElement:_.cr||I.compatMode!="CSS1Compat"?I.body||I.documentElement:I.documentElement};
st=function(I){return I?I.defaultView:window};
_.y1=function(I,y,D){return ClR(document,arguments)};
ClR=function(I,y){var D=y[1],F=BB_(I,String(y[0]));D&&(typeof D==="string"?F.className=D:Array.isArray(D)?F.className=D.join(" "):cYz(F,D));y.length>2&&iGg(I,F,y,2);return F};
iGg=function(I,y,D,F){function R(v){v&&y.appendChild(typeof v==="string"?I.createTextNode(v):v)}
for(;F<D.length;F++){var O=D[F];if(!_.i_(O)||_.b_(O)&&O.nodeType>0)R(O);else{a:{if(O&&typeof O.length=="number"){if(_.b_(O)){var w=typeof O.item=="function"||typeof O.item=="string";break a}if(typeof O==="function"){w=typeof O.item=="function";break a}}w=!1}_.hG(w?_.C5(O):O,R)}}};
_.kW=function(I){return BB_(document,I)};
BB_=function(I,y){y=String(y);I.contentType==="application/xhtml+xml"&&(y=y.toLowerCase());return I.createElement(y)};
_.Dw=function(){return document.createTextNode("\n")};
F6=function(I){if(I.nodeType!=1)return!1;switch(I.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};
AYu=function(I,y){iGg(_.VE(I),I,arguments,1)};
_.RR=function(I){for(var y;y=I.firstChild;)I.removeChild(y)};
_.O5=function(I,y){y.parentNode&&y.parentNode.insertBefore(I,y)};
_.LA=function(I,y){y.parentNode&&y.parentNode.insertBefore(I,y.nextSibling)};
_.dM=function(I){return I&&I.parentNode?I.parentNode.removeChild(I):null};
_.$RM=function(I,y){var D=y.parentNode;D&&D.replaceChild(I,y)};
_.bGe=function(I){var y,D=I.parentNode;if(D&&D.nodeType!=11)if(I.removeNode)I.removeNode(!1);else{for(;y=I.firstChild;)D.insertBefore(y,I);_.dM(I)}};
_.JP=function(I){return I.children!=void 0?I.children:Array.prototype.filter.call(I.childNodes,function(y){return y.nodeType==1})};
_.eqR=function(I){return I.nextElementSibling!==void 0?I.nextElementSibling:_.HG_(I.nextSibling,!0)};
_.HG_=function(I,y){for(;I&&I.nodeType!=1;)I=y?I.nextSibling:I.previousSibling;return I};
_.Q2=function(I){return _.b_(I)&&I.nodeType==1};
_.Uu=function(I,y){if(!I||!y)return!1;if(I.contains&&y.nodeType==1)return I==y||I.contains(y);if(typeof I.compareDocumentPosition!="undefined")return I==y||!!(I.compareDocumentPosition(y)&16);for(;y&&I!=y;)y=y.parentNode;return y==I};
hrA=function(I,y){if(I==y)return 0;if(I.compareDocumentPosition)return I.compareDocumentPosition(y)&2?1:-1;if("sourceIndex"in I||I.parentNode&&"sourceIndex"in I.parentNode){var D=I.nodeType==1,F=y.nodeType==1;if(D&&F)return I.sourceIndex-y.sourceIndex;var R=I.parentNode,O=y.parentNode;return R==O?TBu(I,y):!D&&_.Uu(R,y)?-1*sdM(I,y):!F&&_.Uu(O,I)?sdM(y,I):(D?I.sourceIndex:R.sourceIndex)-(F?y.sourceIndex:O.sourceIndex)}F=_.VE(I);D=F.createRange();D.selectNode(I);D.collapse(!0);I=F.createRange();I.selectNode(y);
I.collapse(!0);return D.compareBoundaryPoints(_.Ft.Range.START_TO_END,I)};
sdM=function(I,y){var D=I.parentNode;if(D==y)return-1;for(;y.parentNode!=D;)y=y.parentNode;return TBu(y,I)};
TBu=function(I,y){for(;y=y.previousSibling;)if(y==I)return-1;return 1};
V$g=function(I){var y,D=arguments.length;if(!D)return null;if(D==1)return arguments[0];var F=[],R=Infinity;for(y=0;y<D;y++){for(var O=[],w=arguments[y];w;)O.unshift(w),w=w.parentNode;F.push(O);R=Math.min(R,O.length)}O=null;for(y=0;y<R;y++){w=F[0][y];for(var v=1;v<D;v++)if(w!=F[v][y])return O;O=w}return O};
_.VE=function(I){return I.nodeType==9?I:I.ownerDocument||I.document};
ZGG=function(I){return I.contentDocument||I.contentWindow.document};
_.wC=function(I,y){if("textContent"in I)I.textContent=y;else if(I.nodeType==3)I.data=String(y);else if(I.firstChild&&I.firstChild.nodeType==3){for(;I.lastChild!=I.firstChild;)I.removeChild(I.lastChild);I.firstChild.data=String(y)}else _.RR(I),I.appendChild(_.VE(I).createTextNode(String(y)))};
gBc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};IZa={IMG:" ",BR:"\n"};KjS=function(I){var y;I.tagName=="A"&&I.hasAttribute("href")||I.tagName=="INPUT"||I.tagName=="TEXTAREA"||I.tagName=="SELECT"||I.tagName=="BUTTON"?y=!I.disabled&&(!I.hasAttribute("tabindex")||yvM(I)):y=I.hasAttribute("tabindex")&&yvM(I);return y};
yvM=function(I){I=I.tabIndex;return typeof I==="number"&&I>=0&&I<32768};
F5M=function(I){var y=[];DJO(I,y,!0);I=y.join("");I=I.replace(/ \xAD /g," ").replace(/\xAD/g,"");I=I.replace(/\u200B/g,"");I=I.replace(/ +/g," ");I!=" "&&(I=I.replace(/^\s*/,""));return I};
RBa=function(I){var y=[];DJO(I,y,!1);return y.join("")};
DJO=function(I,y,D){if(!(I.nodeName in gBc))if(I.nodeType==3)D?y.push(String(I.nodeValue).replace(/(\r\n|\r|\n)/g,"")):y.push(I.nodeValue);else if(I.nodeName in IZa)y.push(IZa[I.nodeName]);else for(I=I.firstChild;I;)DJO(I,y,D),I=I.nextSibling};
_.OW_=function(I,y,D){if(!y&&!D)return null;var F=y?String(y).toUpperCase():null;return _.gB(I,function(R){return(!F||R.nodeName==F)&&(!D||typeof R.className==="string"&&_.kA(R.className.split(/\s+/),D))},!0)};
_.gB=function(I,y,D){I&&!D&&(I=I.parentNode);for(D=0;I;){if(y(I))return I;I=I.parentNode;D++}return null};
Zh=function(I){this.JSC$9602_document_=I||_.Ft.document||document};
_.L=Zh.prototype;_.L.getElement=function(I){return _.xz(this.JSC$9602_document_,I)};
_.L.$=Zh.prototype.getElement;_.L.getElementsByTagName=function(I,y){return(y||this.JSC$9602_document_).getElementsByTagName(String(I))};
_.L.getElementsByTagNameAndClass=function(I,y,D){return gJ(this.JSC$9602_document_,I,y,D)};
_.L.$$=Zh.prototype.getElementsByTagNameAndClass;_.L.setProperties=cYz;_.L.JSC$9604_createDom=function(I,y,D){return ClR(this.JSC$9602_document_,arguments)};
_.L.createElement=function(I){return BB_(this.JSC$9602_document_,I)};
_.L.createTextNode=function(I){return this.JSC$9602_document_.createTextNode(String(I))};
_.L.getWindow=function(){return this.JSC$9602_document_.defaultView};
var WB=function(I){return _.W2O(I.JSC$9602_document_)};
_.L=Zh.prototype;_.L.appendChild=function(I,y){I.appendChild(y)};
_.L.append=AYu;_.L.canHaveChildren=F6;_.L.removeNode=_.dM;_.L.getChildren=_.JP;_.L.contains=_.Uu;_.L.isFocusable=KjS;_.L=QE.prototype;_.L.getWidth=function(){return this.right-this.left};
_.L.getHeight=function(){return this.bottom-this.top};
_.L.clone=function(){return new QE(this.top,this.right,this.bottom,this.left)};
_.L.contains=function(I){return this&&I?I instanceof QE?I.left>=this.left&&I.right<=this.right&&I.top>=this.top&&I.bottom<=this.bottom:I.x>=this.left&&I.x<=this.right&&I.y>=this.top&&I.y<=this.bottom:!1};
_.L.expand=function(I,y,D,F){_.b_(I)?(this.top-=I.top,this.right+=I.right,this.bottom+=I.bottom,this.left-=I.left):(this.top-=I,this.right+=Number(y),this.bottom+=Number(D),this.left-=Number(F));return this};
_.L.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};
_.L.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};
_.L.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};
_.L.translate=function(I,y){I instanceof _.XO?(this.left+=I.x,this.right+=I.x,this.top+=I.y,this.bottom+=I.y):(this.left+=I,this.right+=I,typeof y==="number"&&(this.top+=y,this.bottom+=y));return this};
_.L.scale=function(I,y){y=typeof y==="number"?y:I;this.left*=I;this.right*=I;this.top*=y;this.bottom*=y;return this};_.L=YB.prototype;_.L.clone=function(){return new YB(this.left,this.top,this.width,this.height)};
_.L.boundingRect=function(I){var y=Math.max(this.left+this.width,I.left+I.width),D=Math.max(this.top+this.height,I.top+I.height);this.left=Math.min(this.left,I.left);this.top=Math.min(this.top,I.top);this.width=y-this.left;this.height=D-this.top};
_.L.contains=function(I){return I instanceof _.XO?I.x>=this.left&&I.x<=this.left+this.width&&I.y>=this.top&&I.y<=this.top+this.height:this.left<=I.left&&this.left+this.width>=I.left+I.width&&this.top<=I.top&&this.top+this.height>=I.top+I.height};
_.L.distance=function(I){var y=I.x<this.left?this.left-I.x:Math.max(I.x-(this.left+this.width),0);I=I.y<this.top?this.top-I.y:Math.max(I.y-(this.top+this.height),0);return Math.sqrt(y*y+I*I)};
_.L.getSize=function(){return new _.ad(this.width,this.height)};
_.L.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};
_.L.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};
_.L.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};
_.L.translate=function(I,y){I instanceof _.XO?(this.left+=I.x,this.top+=I.y):(this.left+=I,typeof y==="number"&&(this.top+=y));return this};
_.L.scale=function(I,y){y=typeof y==="number"?y:I;this.left*=I;this.width*=I;this.top*=y;this.height*=y;return this};var JvG,tP,WO4,Se,tTO,SWW,PDz,xOL,K5f,rvW;_.v2=function(I,y,D){if(typeof y==="string")(y=_.L5M(I,y))&&(I.style[y]=D);else for(var F in y){D=I;var R=y[F],O=_.L5M(D,F);O&&(D.style[O]=R)}};
JvG={};_.L5M=function(I,y){var D=JvG[y];if(!D){var F=_.zG(y);D=F;I.style[F]===void 0&&(F=(_.cr?"Webkit":_.Wr?"Moz":null)+kdf(F),I.style[F]!==void 0&&(D=F));JvG[y]=D}return D};
_.Q0=function(I,y){var D=_.VE(I);return D.defaultView&&D.defaultView.getComputedStyle&&(I=D.defaultView.getComputedStyle(I,null))?I[y]||I.getPropertyValue(y)||"":""};
_.Ke=function(I,y){return _.Q0(I,y)||(I.currentStyle?I.currentStyle[y]:null)||I.style&&I.style[y]};
_.w5M=function(I){return _.Ke(I,"position")};
tP=function(I,y,D){if(y instanceof _.XO){var F=y.x;y=y.y}else F=y,y=D;I.style.left=Se(F,!1);I.style.top=Se(y,!1)};
WO4=function(I){try{return I.getBoundingClientRect()}catch(y){return{left:0,top:0,right:0,bottom:0}}};
_.ZO=function(I){var y=_.VE(I),D=new _.XO(0,0);if(I==(y?_.VE(y):document).documentElement)return D;I=WO4(I);y=WB(CG(y));D.x=I.left+y.x;D.y=I.top+y.y;return D};
_.vWR=function(I,y,D){if(y instanceof _.ad)D=y.height,y=y.width;else if(D==void 0)throw Error("oa");I.style.width=Se(y,!0);I.style.height=Se(D,!0)};
Se=function(I,y){typeof I=="number"&&(I=(y?Math.round(I):I)+"px");return I};
tTO=function(I){return SWW(I)};
SWW=function(I){var y=PDz;if(_.Ke(I,"display")!="none")return y(I);var D=I.style,F=D.display,R=D.visibility,O=D.position;D.visibility="hidden";D.position="absolute";D.display="inline";I=y(I);D.display=F;D.position=O;D.visibility=R;return I};
PDz=function(I){var y=I.offsetWidth,D=I.offsetHeight,F=_.cr&&!y&&!D;return(y===void 0||F)&&I.getBoundingClientRect?(I=WO4(I),new _.ad(I.right-I.left,I.bottom-I.top)):new _.ad(y,D)};
xOL=function(I){var y=_.ZO(I);I=SWW(I);return new YB(y.x,y.y,I.width,I.height)};
K5f=function(I,y){I=I.style;"opacity"in I?I.opacity=y:"MozOpacity"in I?I.MozOpacity=y:"filter"in I&&(I.filter=y===""?"":"alpha(opacity="+Number(y)*100+")")};
_.xM=function(I,y){I.style.display=y?"":"none"};
_.UJz=function(I){return"rtl"==_.Ke(I,"direction")};
rvW=function(I){var y=_.Q0(I,"marginLeft"),D=_.Q0(I,"marginRight"),F=_.Q0(I,"marginTop");I=_.Q0(I,"marginBottom");return new QE(parseFloat(F),parseFloat(D),parseFloat(I),parseFloat(y))};
_.jDP=function(I){var y=_.Q0(I,"borderLeftWidth"),D=_.Q0(I,"borderRightWidth"),F=_.Q0(I,"borderTopWidth");I=_.Q0(I,"borderBottomWidth");return new QE(parseFloat(F),parseFloat(D),parseFloat(I),parseFloat(y))};var P2=function(I){this.context=I};
P2.prototype.isSupported=function(I){return(I==null?0:I.attributionEnabled)||(I==null?void 0:I.beaconMethod)==="POST"||(I==null?0:I.customHeaders)||(I==null?0:I.customBody)||(I==null?0:I.keepAlive)?!1:!$X(this.context)};
P2.prototype.ping=function(){var I=this;return ii(_.go.apply(0,arguments).map(function(y){try{var D=I.context.global,F=!1;F=F===void 0?!1:F;D.google_image_requests||(D.google_image_requests=[]);var R=nBe("IMG",D.document);F&&(R.attributionSrc="");R.src=y;D.google_image_requests.push(R);return!0}catch(O){return!1}}).every(function(y){return y}))};
P2.prototype.pingWithHeadersAndBody=function(I,y,D){this.ping.apply(this,_.Td(_.go.apply(3,arguments)))};var oWP=function(I){this.context=I};
oWP.prototype.isSupported=function(I){return NMf&&!$X(this.context)&&rvt(this.context)!==void 0&&!(I==null?0:I.attributionEnabled)&&(I==null?void 0:I.beaconMethod)!=="POST"&&!(I==null?0:I.customHeaders)&&!(I==null?0:I.customBody)};
oWP.prototype.makeBeacon=function(I,y){if(!this.isSupported(y))throw new C2;return new KA(this.context,I)};
var NMf=!1,KA=function(I,y){this.context=I;this.JSC$9623_urlWithoutToken=y;I=rvt(this.context);if(I===void 0)throw Error();this.wrappedBeacon=new I(hBM(this),{})},hBM=function(I){I=I.JSC$9623_urlWithoutToken;
return(I.slice(-1)[0]==="&"?I:I+"&")+"pbapi=1"};
KA.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
KA.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
KA.prototype.setHeader=function(){};
_.mD.Object.defineProperties(KA.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9623_urlWithoutToken},
set:function(I){this.JSC$9623_urlWithoutToken=I;this.wrappedBeacon.setURL(hBM(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(I){if(I!=="GET")throw new C2;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var xJa=function(I){this.context=I};
xJa.prototype.isSupported=function(I){if((I==null?0:I.attributionEnabled)||(I==null?void 0:I.beaconMethod)==="GET"||(I==null?0:I.customHeaders)||(I==null?0:I.customBody)||(I==null?0:I.keepAlive))return!1;var y;return!$X(this.context)&&((y=this.context.global.navigator)==null?void 0:y.sendBeacon)!==void 0};
xJa.prototype.ping=function(){var I=this;return ii(_.go.apply(0,arguments).map(function(y){var D;return(D=I.context.global.navigator)==null?void 0:D.sendBeacon(y)}).every(function(y){return y}))};
xJa.prototype.pingWithHeadersAndBody=function(I,y,D){this.ping.apply(this,_.Td(_.go.apply(3,arguments)))};var kB=function(I){this.value=I},tv=function(I,y){return ii(I.value).pipe(m2(y))},KW=new kB(!1),Zi_=new kB(!0);var ID=function(I){this.value=I;this.releasedSubject=new nG};
ID.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.mD.Object.defineProperties(ID.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9636_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var YWo=["FRAME","IMG","IFRAME"],um5=/^[01](px)?$/,QDJ=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},X5t=function(){var I=new QDJ;
I.crossDomainLoadedDefault=!0;I.pendingImagesBlockLoad=!0;return I};var lZM=function(I,y){var D=k6q(I);if(D)if(D.onCreativeLoad)D.onCreativeLoad(y);else{var F=y?[y]:[],R=function(O){for(var w=0;w<F.length;++w)try{F[w](1,O)}catch(v){}F={push:function(v){v(1,O)}}};
D.onCreativeLoad=function(O){F.push(O)};
D.setAttribute("data-creative-load-listener","");D.addEventListener("creativeLoad",function(O){R(O.detail)});
_.Ft.addEventListener("message",function(O){zB5(D,R,O)})}};var U5=function(I,y){var D=this;this.global=I;this.parentContext=y;this.JSC$9647_onVisibilityChange=this.document?DO(ii(!0),Id(this.document,"visibilitychange")).pipe(LG(this.parentContext.performanceMonitor,748),eY(function(){return D.getVisibilityState()}),tY()):ii("visible");
this.document?Id(this.document,"DOMContentLoaded").pipe(LG(this.parentContext.performanceMonitor,739),S$(1)):ii(xJe("DOMContentLoaded"))},Vj5=function(I){return I.document!==null&&I.document.visibilityState!==void 0};
U5.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
U5.prototype.querySelector=function(I){return this.document?this.document.querySelector(I):null};
U5.prototype.querySelectorAll=function(I){return this.document?_.C5(this.document.querySelectorAll(I)):[]};
U5.prototype.elementFromPoint=function(I,y){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;I=this.document.elementFromPoint(I,y);return I===null?null:new ID(I)};
var WES=function(I,y,D){D=D===void 0?!1:D;if(y.ref===void 0||!I.document)return ii(y).pipe(LG(I.parentContext.performanceMonitor,749));var F=new rB(1),R=function(){F.next(y)};
D||lZM(y.ref,R);fZe(y.ref,R);return F.pipe(LG(I.parentContext.performanceMonitor,749),S$(1))};
_.mD.Object.defineProperties(U5.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return sdL(this.global,"document")?this.global.document||null:null}}});var dJW=_.UI(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),aZ_=_.UI(["./reach_worklet.js"]),cvt=_.UI(["./reach_worklet.js"]),um_=_.UI(["./reach_worklet.html"]),qWf=_.UI(["./reach_worklet.js"]),EWG=_.UI(["./reach_worklet.js"]);_.Et(um_);_.Et(qWf);_.Et(EWG);var LW={left:0,top:0,width:0,height:0};var G6P,X5W,QDM,tAo,Xh,fZa,nWP,p5O,liH,uRq,zB_,k6O;G6P=function(I,y,D,F,R,O,w){var v="";I&&(v+=I+":");D&&(v+="//",y&&(v+=y+"@"),v+=D,F&&(v+=":"+F));R&&(v+=R);O&&(v+="?"+O);w&&(v+="#"+w);return v};
X5W=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.EJ=function(I){return I.match(X5W)};
_.ez=function(I,y){return I?y?decodeURI(I):decodeURIComponent(I):I};
QDM=function(I){I=_.EJ(I)[1]||null;!I&&_.Ft.self&&_.Ft.self.location&&(I=_.Ft.self.location.protocol.slice(0,-1));return I?I.toLowerCase():""};
_.GP=function(I){return _.ez(_.EJ(I)[3]||null,!0)};
_.iP=function(I){return _.ez(_.EJ(I)[5]||null,!0)};
_.ew5=function(I){var y=I.indexOf("#");return y<0?null:I.slice(y+1)};
tAo=function(I){I=_.EJ(I);return G6P(I[1],I[2],I[3],I[4])};
_.YWe=function(I){I=_.EJ(I);return G6P(I[1],null,I[3],I[4])};
_.LE=function(I){I=_.EJ(I);return G6P(null,null,null,null,I[5],I[6],I[7])};
_.U$=function(I){var y=I.indexOf("#");return y<0?I:I.slice(0,y)};
Xh=function(I,y){I=_.EJ(I);y=_.EJ(y);return I[3]==y[3]&&I[1]==y[1]&&I[4]==y[4]};
fZa=function(I,y){if(I){I=I.split("&");for(var D=0;D<I.length;D++){var F=I[D].indexOf("="),R=null;if(F>=0){var O=I[D].substring(0,F);R=I[D].substring(F+1)}else O=I[D];y(O,R?Yf(R):"")}}};
nWP=function(I){var y=I.indexOf("#");y<0&&(y=I.length);var D=I.indexOf("?");if(D<0||D>y){D=y;var F=""}else F=I.substring(D+1,y);return[I.slice(0,D),F,I.slice(y)]};
p5O=function(I,y){return y?I?I+"&"+y:y:I};
_.mJa=function(I,y){if(!y)return I;I=nWP(I);I[1]=p5O(I[1],y);return I[0]+(I[1]?"?"+I[1]:"")+I[2]};
_.MTu=function(I,y,D){if(Array.isArray(y))for(var F=0;F<y.length;F++)_.MTu(I,String(y[F]),D);else y!=null&&D.push(I+(y===""?"":"="+_.NC(y)))};
_.$f=function(I){var y=[],D;for(D in I)_.MTu(D,I[D],y);return y.join("&")};
_.qC=function(I,y){y=_.$f(y);return _.mJa(I,y)};
_.rC=function(I,y,D){D=D!=null?"="+_.NC(D):"";return _.mJa(I,y+D)};
liH=function(I,y,D,F){for(var R=D.length;(y=I.indexOf(D,y))>=0&&y<F;){var O=I.charCodeAt(y-1);if(O==38||O==63)if(O=I.charCodeAt(y+R),!O||O==61||O==38||O==35)return y;y+=R+1}return-1};
uRq=/#|$/;_.rR=function(I,y){var D=I.search(uRq),F=liH(I,0,y,D);if(F<0)return null;var R=I.indexOf("&",F);if(R<0||R>D)R=D;F+=y.length+1;return Yf(I.slice(F,R!==-1?R:0))};
zB_=/[?&]($|#)/;_.jk=function(I,y){for(var D=I.search(uRq),F=0,R,O=[];(R=liH(I,F,y,D))>=0;)O.push(I.substring(F,R)),F=Math.min(I.indexOf("&",R)+1||D,D);O.push(I.slice(F));return O.join("").replace(zB_,"$1")};
_.rI=function(I,y,D){return _.rC(_.jk(I,y),y,D)};
k6O=function(I){var y=nWP(window.location.href),D=y[1],F=[];D&&D.split("&").forEach(function(R){var O=R.indexOf("=");O=O>=0?R.slice(0,O):R;I.hasOwnProperty(O)||F.push(R)});
y[1]=p5O(F.join("&"),_.$f(I));return y[0]+(y[1]?"?"+y[1]:"")+y[2]};var OeS=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(OeS,_.KS);var RkH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(RkH,_.KS);var ZWJ=function(I,y){return _.BB(I,2,y)},FO5=function(I,y){return _.BB(I,3,y)};
RkH.prototype.getModel=function(){return _.Tp(this,4)};
var IaA=function(I,y){return _.BB(I,4,y)},VTo=function(I,y){return _.BB(I,5,y)},Daq=function(I,y){return _.BB(I,9,y)},sDL=function(I,y){return iy(I,10,y)},TMo=function(I,y){return _.Xm(I,11,y)},gW5=function(I,y){return _.BB(I,1,y)},yuL=function(I,y){return _.Xm(I,7,y)};var HW5="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var P5=function(I,y,D,F){I=I===void 0?window:I;y=y===void 0?null:y;D=D===void 0?new D_O:D;F=F===void 0?W5C():F;VYu.call(this);var R=this;this.global=I;this.debugChannel=y;this.performanceMonitor=D;this.onPageHide=hqt(function(){return Id(R.global,"pagehide")}).pipe(LG(this.performanceMonitor,941));
this.onLoad=hqt(function(){return Id(R.global,"load")}).pipe(LG(this.performanceMonitor,738),S$(1));
this.onResize=hqt(function(){return Id(R.global,"resize")}).pipe(LG(this.performanceMonitor,741));
this.onMessage=hqt(function(){return Id(R.global,"message")}).pipe(LG(this.performanceMonitor,740));
this.document=new U5(this.global,this);this.timeProvider=new F2G(new OGu(this.intrinsicFunctionNamespace,this.performanceMonitor),new RqP(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new IOO(new JYa(this),new oWP(this),new Bq(this,new Stn(this)),new Bq(this,new xJa(this)),new Bq(this,new P2(this)))};
_.E(P5,VYu);P5.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(I){return I}};
var $X=function(I){var y=I.global;return!!I.global.HTMLFencedFrameElement&&!!y.fence&&typeof y.fence.reportEvent==="function"};
_.L=P5.prototype;_.L.reportFencedFrameEvent=function(I){$X(this)&&this.global.fence.reportEvent(I)};
_.L.getOnBackgrounded=function(){return this.onPageHide.pipe(LG(this.performanceMonitor,942),m2(this.queue),eY(function(){}))};
_.L.postMessage=function(I,y,D){D=D===void 0?[]:D;this.global.postMessage(I,y,D)};
_.L.getWidth=function(){return V$B(this.global)?this.global.width:0};
_.L.getHeight=function(){return V$B(this.global)?this.global.height:0};
_.L.isMobile=function(){return ZGH()||gBq()};
var Fm=function(I,y){try{var D=AvB(y,I.global,I.isMobile());return{left:D.left,top:D.top,width:D.getWidth(),height:D.getHeight()}}catch(F){return LW}};
P5.prototype.validate=function(){var I=this.beaconFactory.isSupported()||$X(this);return this.global&&this.timeProvider.available()&&I};
var oWA=function(I){return(I=Ju_(I.global))?fj(I):null};
_.mD.Object.defineProperties(P5.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(I){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(I){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!V$B(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}}});_.dJf=!_.fz&&!_.Nqo();var g4B=function(I){return I};var yGo=function(I){return I.pipe(FO(function(y){var D=y.endOfSessionReason;var F;return((F=y.viewable)==null?void 0:F.extrapolateToNow().value)||D!=void 0}),S$(1),wB())};var Uat=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},ruS=function(I){var y=I.sequenceNumber.toString(10).padStart(2,"0");
y=""+I.startTime+y;I.sequenceNumber<99&&I.sequenceNumber++;return y};var sUJ=Gd(xB(function(I){return I.endOfSessionReason===void 0}),eY(function(I){return Object.assign({},I,{timestamps:AY(I)})}),FO(function(I){var y=I.viewable;
I=I.timestamps;var D;return(D=y==null?void 0:y.extrapolateUsingTimestampMap(I).value)!=null?D:!1}),eY(function(I){var y=I.beaconFactory;
var D=I.timestampedExposureHistory;var F=I.timeOnScreen;var R=I.binaryContext;I=I.timestamps;if(y===void 0||D===void 0||F===void 0||R===void 0)return!1;if(F.extrapolateUsingTimestampMap(I).value.every(function(O){return O>=0}))return!0;
D=D.map(function(O){return O.timestamp+":"+O.value}).join(",");
F=jbA({bin:R,tos:F},I);y.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+F+("&eh="+D)).sendNow();return!0}),xB(function(I){return!I}),wB());var NRC=function(I){return{id:I.pingId,mcvt:I.maxConsecutiveViewTime,p:I.creativePosition,asp:I.adSpeedPosition,tm:I.totalMeasurementTime,tu:I.totalUnviewedTime,mtos:I.maxTimeOnScreen,tos:I.timeOnScreen,v:I.binaryVersion,bin:I.binaryContext,avms:I.measurementStrategy,bs:I.browserSize,mc:I.maximumExposure,"if":I.crossDomainIframeState,vu:I.delayedImpressionJsState,app:I.inApp,mse:I.mraidError,mtop:I.mraidSituation,itpl:I.injectedTemplateId,adk:I.adKey,exk:I.awbidKey,rs:I.requestSource,la:I.isLargeAd,
cr:I.isContentRecommendationAd,uach:I.userAgentClientHints,vs:I.viewState,r:I.reasonCode,pay:I.hasCpmavUrl,co:I.clientPingOrderCounter,rst:I.adRenderStartTime,rpt:I.adRenderPeriodTime,isd:I.initialScrollDepth,lsd:I.loadedScrollDepth,context:I.errorContext,msg:I.errorMessage,stack:I.errorStack,name:I.errorName,ec:I.hasElementChanged,sfr:I.strategyFailureReasons,met:I.creativeSearchResult,wmsd:I.webMeasurementStartDiagnostic,pv:I.pageVisible,epv:I.eosPageVisible,pbe:I.inStatefulBeaconExperiment,fle:I.inFetchLaterBeaconExperiment,
vae:I.inViewableAttributionExperiment,spb:I.supportsPendingBeacon,sfl:I.supportsFetchLater,ffslot:I.isFencedFrameSlotTurtlex,reach:I.sharedStorageReachMode,io2:I.v2VisibilityBitVector,rxdbg:I.rxDebugger,omida:I.omidAppId,omidp:I.omidPartner,omidpv:I.omidPartnerVersion,omidor:I.omidOcclusionReasons,omidv:I.omidVersion,omids:I.omidSessionType,omidam:I.omidAccessMode,omidct:I.omidCreativeType,omidia:I.omidInApp,omiddc:I.omidDeviceCategory,omidlat:I.omidLastActivity,omiddit:I.omidDeviceIdleTime,qid:I.errorEscapedQueryId}};var IFq=function(I){var y=[];return I.pipe(eY(function(D){var F=D.beaconFactory,R=D.fetchBeaconFactory,O=D.timeOnScreen,w=D.timeOnScreenUrlPrefixes,v=D.payloadMapper,P=D.timeOnScreenPingId,K=D.timeOnScreenReason,r=D.urlSerializer,N=D.viewable,h=D.hasImpressionFired,x=D.inStatefulBeaconExperiment,q=D.supportsPendingBeacon,X=D.supportsFetchLater,f=D.turtlexReportEventData;if(!D.geometryMeasurable||!h||D.maxTimeOnScreen===void 0||O===void 0||w===void 0||v===void 0||P===void 0||r===void 0||F===void 0)return!1;
if(D.isTurtlex){if(K===void 0)return!1;w=D.reportFencedFrameEvent;if(!w)return!1;w({eventType:"active-view-time-on-screen",eventData:f!=null?f:"",destination:["buyer"]});return!0}if(!(x||X||K))return!1;f=AY(D);var m;N=(m=N==null?void 0:N.extrapolateUsingTimestampMap(f).value)!=null?m:!1;m=r(Object.assign({},D,{pingId:P,viewState:N?4:3,reasonCode:K!=null?K:"u",payloadMapper:v,urlPrefixes:w}),f);if(x){for(;y.length>w.length;)D=void 0,(D=y.shift())==null||D.deactivate();m.forEach(function(B,C){C>=y.length?
y.push(F.makeBeacon(B)):y[C].url=B});
return q&&R&&K!==void 0?(m.forEach(function(B){R.makeBeacon(B).sendNow()}),!0):K!==void 0}if(q&&R&&K!==void 0)return m.forEach(function(B){R.makeBeacon(B).sendNow()}),!0;
if(X&&R){for(;y.length>w.length;)q=void 0,(q=y.shift())==null||q.deactivate();var z=r(Object.assign({},D,{pingId:P,viewState:N?4:3,reasonCode:K!=null?K:"u",payloadMapper:v,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),f)[0];m.forEach(function(B,C){C>=y.length?y.push(F.makeBeacon(z,{endOfSession:!0})):y[C].url=z});
return K!==void 0?(m.forEach(function(B){R.makeBeacon(B).sendNow()}),!0):K!==void 0}return K!==void 0?(m.forEach(function(B){F.makeBeacon(B).sendNow()}),!0):!1}),xB(function(D){return!D}),wB())};var DCt=Gd(FO(function(I){return I.immediateUrlPrefixes!==void 0&&I.payloadMapper!==void 0&&I.urlSerializer!==void 0&&I.inferredPingId!==void 0&&I.beaconFactory!==void 0}),FO(function(I){return Xm5(I)!==null}),EM4(function(I){return I.activeViewUnmeasurableEvent},function(I){return I.emit}),eY(function(I){if(I.isTurtlex){var y=I.reportFencedFrameEvent;
if(y){var D;y({eventType:"active-view-unmeasurable",eventData:(D=I.turtlexReportEventData)!=null?D:"",destination:["buyer"]})}}else{D=void 0;var F=Xm5(I);if(F==="x"){var R,O=(R=I.geometricMeasurementErrors)!=null?R:I.contextValidationErrors;O&&(y=O.stack,D=O.message)}I.urlSerializer(Object.assign({},I,{urlPrefixes:I.immediateUrlPrefixes,payloadMapper:I.payloadMapper,pingId:I.inferredPingId,viewState:2,reasonCode:F,errorMessage:D,errorStack:y}),AY(I)).forEach(function(w){I.beaconFactory.makeBeacon(w).sendNow()})}}),
S$(1),wB());var Qbq=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var TZB=Gd(FO(function(I){return I.payloadMapper!==void 0&&I.immediateUrlPrefixes!==void 0&&I.urlSerializer!==void 0&&I.inferredPingId!==void 0&&I.beaconFactory!==void 0}),eY(function(I){return Object.assign({},I,{timestamps:AY(I)})}),FO(function(I){var y=I.viewable;
var D=I.hasImpressionFired;I=I.timestamps;var F;return!!D&&((F=y==null?void 0:y.extrapolateUsingTimestampMap(I).value)!=null?F:!1)}),EM4(function(I){return I.activeViewViewableEvent},function(I){return I.emit}),eY(function(I){var y=I.beaconFactory,D=I.turtlexReportEventData;
if(I.isTurtlex){var F=I.reportFencedFrameEvent;if(!F)return!1;F({eventType:"active-view-viewable",eventData:D!=null?D:"",destination:["buyer"]});return!0}D=I.urlSerializer(Object.assign({},I,{urlPrefixes:I.immediateUrlPrefixes,payloadMapper:I.payloadMapper,pingId:I.inferredPingId,viewState:4,reasonCode:"v"}),I.timestamps);(F=I.cpmavUrls)&&F.length>0&&I.viewUrlSerializer&&I.viewUrlSerializer(F,I).forEach(function(R){y.makeBeacon(R).sendNow()});
(F=I.viewableRelayUrls)&&F.length>0&&I.viewUrlSerializer&&I.viewUrlSerializer(F,I).forEach(function(R){y.makeBeacon(R).sendNow()});
D.forEach(function(R){y.makeBeacon(R,{attributionEnabled:I.isViewableAttributionEnabled}).sendNow()});
return!0}),xB(function(I){return!I}),wB());var NZL=eY(function(I){return[I.value.topWindowViewportExternalGeometry.width,I.value.topWindowViewportExternalGeometry.height]});var RD=function(I,y){this.callback=I;this.options=y;this.intersectionObserverV2=this.intersectionObserverV1=null},I4J=function(I,y){y?I.intersectionObserverV2||(y=Object.assign({},I.options,{delay:100,
trackVisibility:!0}),I.intersectionObserverV2=new IntersectionObserver(I.callback,y)):I.intersectionObserverV1||(I.intersectionObserverV1=new IntersectionObserver(I.callback,I.options))},aZu=function(I,y){I=y?I.intersectionObserverV2:I.intersectionObserverV1;
if(!I)throw new ZjW;return I};
RD.prototype.observe=function(I,y){aZu(this,I).observe(y)};
RD.prototype.unobserve=function(I,y){aZu(this,I).unobserve(y)};
RD.prototype.disconnect=function(I){aZu(this,I).disconnect()};
RD.prototype.takeRecords=function(I){return aZu(this,I).takeRecords()};var BRS={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:LW,topWindowViewportExternalGeometry:LW,measurementRequests:new nG,elementGeometrySourceName:"ns",elementGeometry:LW,intersectionGeometry:LW,viewportLocalAppOffset:{x:0,y:0}};var JIe=Jv(Gd(eY(function(I){var y;return(y=I.exposureOverride)!=null?y:D3C(I)}),eY(function(I){return isFinite(I)?I:0}))),U35=Jv(Gd(eY(function(I){var y;
return(y=I.exposureOverride)!=null?y:D3C(I)}),eY(function(I){return isFinite(I)?I:-1})));var je=function(I,y){this.a=I;this.b=y;if(I.clock.timeline!==y.clock.timeline)throw Error();};
je.prototype.equivalentTo=function(I){return I instanceof je?this.a.equivalentTo(I.a)&&this.b.equivalentTo(I.b):!1};
je.prototype.extrapolateToTime=function(I){var y=this.a.extrapolateToTime(I).value,D=this.b.extrapolateToTime(I).value;return{timestamp:I,value:[y,D]}};
_.mD.Object.defineProperties(je.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 I=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),y=this.a.lastMeasurement.timestamp.equals(I)?this.a.lastMeasurement.value:this.a.extrapolateToTime(I).value,D=this.b.lastMeasurement.timestamp.equals(I)?this.b.lastMeasurement.value:this.b.extrapolateToTime(I).value;return{timestamp:I,value:[y,D]}}}});var oR=function(I,y){this.input=I;this.mapFunction=y;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
oR.prototype.equivalentTo=function(I){return I instanceof oR?this.input.equivalentTo(I.input)&&this.mapFunction===I.mapFunction:!1};
oR.prototype.extrapolateToTime=function(I){I=this.input.extrapolateToTime(I);return{timestamp:I.timestamp,value:this.mapFunction(I.value)}};
_.mD.Object.defineProperties(oR.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var NO=function(){};
NO.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
NO.prototype.extrapolateUsingTimestampMap=function(I){var y=this.clock.timeline,D,F=(D=I.get(y))!=null?D:this.clock.now();I.set(y,F);return this.extrapolateToTime(F)};
NO.prototype.map=function(I){return new cvW(this,I)};
NO.prototype.joinWith=function(I){return new W5R(this,I)};
var W5R=function(){je.apply(this,arguments);this.map=NO.prototype.map;this.joinWith=NO.prototype.joinWith;this.extrapolateToNow=NO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NO.prototype.extrapolateUsingTimestampMap};
_.E(W5R,je);var cvW=function(){oR.apply(this,arguments);this.map=NO.prototype.map;this.joinWith=NO.prototype.joinWith;this.extrapolateToNow=NO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NO.prototype.extrapolateUsingTimestampMap};
_.E(cvW,oR);var v5=function(I,y){this.lastMeasurement=y;this.extrapolateToNow=NO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=NO.prototype.extrapolateUsingTimestampMap;this.map=NO.prototype.map;this.joinWith=NO.prototype.joinWith;this.clock=I};
v5.prototype.equivalentTo=function(I){return I.active};
v5.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.mD.Object.defineProperties(v5.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var o4J=eY(function(I){if(I.value.viewportGeometrySourceName==="omid"){if(I.value.elementGeometrySourceName==="nio")return"omio";if(I.value.elementGeometrySourceName==="geo")return"omgeo"}return I.value.elementGeometrySourceName==="geo"||I.value.elementGeometrySourceName==="nio"?I.value.viewportGeometrySourceName:I.value.elementGeometrySourceName});var RYq=Gd(FO(function(I){return!isNaN(I)}),od(function(I,y){return isNaN(I)?y:Math.min(I,y)},NaN),tY());var wVH=Jv(Gd(eY(function(I){return I.intersectionGeometry.width*I.intersectionGeometry.height/(I.exposedViewportLocalGeometry.width*I.exposedViewportLocalGeometry.height)}),eY(function(I){return isFinite(I)?Math.min(1,I):0})));var jUW=Gd(Jv(eY(function(I){I=I.exposureOverride?I.elementGeometry.width*I.elementGeometry.height*I.exposureOverride/(I.topWindowViewportExternalGeometry.width*I.topWindowViewportExternalGeometry.height):I.intersectionGeometry.width*I.intersectionGeometry.height/(I.topWindowViewportExternalGeometry.width*I.topWindowViewportExternalGeometry.height);return isFinite(I)?I:0})));var l4B=function(I,y){var D=this;this.timeProvider=I;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=y.pipe(tY()).subscribe(function(F){qfJ(D);D.measurementRequestObserver=F})},E4e=function(I,y){qfJ(I);
I.lastMeasurementRequest=I.timeProvider.setTimeout(function(){var D;return void((D=I.measurementRequestObserver)==null?void 0:D.next())},y)},qfJ=function(I){I.lastMeasurementRequest!==null&&I.timeProvider.clearTimeout(I.lastMeasurementRequest);
I.lastMeasurementRequest=null};
l4B.prototype.dispose=function(){qfJ(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var CDc=function(){};var biW=function(I,y){this.context=I;this.strategies=y};
_.E(biW,CDc);biW.prototype.buildGeometrySource=function(I,y){var D=this.strategies.map(function(O){return O.buildGeometrySource(I,y)}),F=f4A(D.map(function(O){return O.geometrySource})),R=F.capturedErrors.pipe(BMG());
return{geometrySource:F.chain.pipe(m2(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:R,strategyErrors:F.capturedErrors}].concat(_.Td(D.map(function(O){return O.additionalOutputs}))))}};
var BMG=function(){return od(function(I,y){y instanceof bl?I.push(y.measurementStrategyFailureReason):I.push(-1);return I},[])};var eYS=function(I,y){this.context=I;this.poller=y};
_.E(eYS,CDc);eYS.prototype.buildGeometrySource=function(I,y){var D=n45(m3q(this.context,this.poller),ieS(this.context,y.requestSource));return{geometrySource:YfL(I.measurableCreative.pipe(D),y.inApp),additionalOutputs:{}}};var Hiq=function(I,y,D){D=D===void 0?TR5(I,y):D;this.context=I;this.intersectionObserverStrategy=D};
_.E(Hiq,CDc);Hiq.prototype.buildGeometrySource=function(I,y){var D=this.intersectionObserverStrategy(y.useV2);return{geometrySource:YfL(I.measurableCreative.pipe(D,sbq(this.context)),y.inApp),additionalOutputs:{}}};var iWM=function(I,y,D){var F=F===void 0?Symbol():F;this.element=I;this.immediateUrls=y;this.timeOnScreenUrls=D;this.symbol=F};var x3e=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),a4B=Object.freeze([1,.75,x3e.exposureThreshold,x3e.largeAdExposureThreshold,0]);var UbJ=function(I,y){y=y===void 0?36E5:y;var D=D===void 0?!0:D;this.creatives=new nG;this.elementsToUnregister=new nG;this.elementMap=new Map;var F=new P5(window,null);F.beaconFactory=new Bq(F,new P2(F));$3_(F,this.creatives,this.elementsToUnregister,I,y,D).subscribe()},ot5=function(I,y,D,F){if(!I.elementMap.has(y)){var R=new ID(y);
I.elementMap.set(y,R);I.creatives.next(new iWM(R,D,F))}},jHL=function(I,y){I.elementsToUnregister.next(y);
var D=I.elementMap.get(y);D!==void 0&&(D.release(),I.elementMap.delete(y))};var iQA=function(I){var y=I.url;I=I.uaDataValues;this.JSC$9752_url_=y;this.uaDataValues_=I;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var D=/[?&]([^&=]+)=([^&]*)/g;I=D.exec(y);)this.urlParamValues_[I[1]]=I[2]},ACW=function(I){I=I.uaDataValues_;
if(!I)return"";var y=UW("uap",I.platform)+UW("uapv",I.platformVersion)+UW("uafv",I.uaFullVersion)+UW("uaa",I.architecture)+UW("uam",I.model)+UW("uab",I.bitness);I.fullVersionList&&(y+="&uafvl="+encodeURIComponent(I.fullVersionList.map(function(D){return encodeURIComponent(D.brand)+";"+encodeURIComponent(D.version)}).join("|")));
I.wow64!=null&&(y+="&uaw="+Number(I.wow64));return y.slice(1)};var Avg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Avg,_.KS);Avg.prototype.getId=function(){return _.Tp(this,1)};var hP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(hP,_.KS);hP.prototype.getSeconds=function(){return Hn(this,1)};
hP.prototype.setSeconds=function(I){return _.Fj(this,1,xy(I),"0")};_.Zy=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(_.Zy,_.KS);_.Zy.prototype.getSeconds=function(){return Hn(this,1)};
_.Zy.prototype.setSeconds=function(I){return _.Fj(this,1,xy(I),"0")};
_.$JM=function(I){var y=Number(Vt(I,1));I=_.lD(I,2);return new Date(y*1E3+I/1E6)};var xR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(xR,_.KS);xR.prototype.getUrl=function(){return _.Tp(this,1)};
xR.prototype.setUrl=function(I){return _.wT(this,1,I)};
xR.prototype.getHeight=function(){return _.lD(this,2)};
xR.prototype.getWidth=function(){return _.lD(this,3)};var lb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(lb,_.KS);lb.prototype.getAspectRatio=function(){return e0(this,1)};
lb.prototype.getDuration=function(){return _.kk(this,hP,2)};var bWG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(bWG,_.KS);var HW_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(HW_,_.KS);var eB_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(eB_,_.KS);var TMe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(TMe,_.KS);var sDM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(sDM,_.KS);var VTe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(VTe,_.KS);var ZWM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ZWM,_.KS);var gW_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(gW_,_.KS);var IaP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(IaP,_.KS);var ub=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ub,_.KS);var qO=[2,4,5,6,7];var yuM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(yuM,_.KS);var AT=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(AT,_.KS);_.L=AT.prototype;_.L.getId=function(){return _.kk(this,Avg,1)};
_.L.getName=function(){return _.Tp(this,2)};
_.L.setDescription=function(I){return _.wT(this,3,I)};
_.L.getUrl=function(){return _.Tp(this,8)};
_.L.setUrl=function(I){return _.wT(this,8,I)};
var E5=function(I){return _.hv(I,xR,10,_.xW())};
AT.prototype.getOwner=function(I){return _.F1O(this,40,I)};
var GI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(GI,_.KS);_.X6=[0,Pq,Hau];_.Q1=[0,Pq,Hau];var Dac=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Dac,_.KS);var YR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(YR,_.KS);YR.prototype.getStatus=function(){return _.sI(this,1)};
YR.prototype.removeItem=function(I){return IQR(this,2,I)};var FO_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(FO_,_.KS);FO_.prototype.getName=function(){return _.Tp(this,8)};var fA=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(fA,_.KS);fA.prototype.getCommand=function(){return _.sI(this,1)};
fA.prototype.getSource=function(){return _.kk(this,FO_,2)};
fA.prototype.setVisible=function(I){return _.Hx(this,5,I)};
fA.prototype.removeItem=function(I){return IQR(this,7,I)};var RkG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(RkG,_.KS);RkG.prototype.getCommand=function(){return _.sI(this,1)};
RkG.prototype.removeItem=function(I){return IQR(this,4,I)};
var Oez=_.nS(RkG);var nA=function(I,y,D){D=D===void 0?Error():D;var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=I;y+=":";D instanceof Error?(this.message=y+D.message,this.stack=D.stack||""):(this.message=y+String(D),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(nA,Error);_.B5=function(){this.JSC$9810_disposed_=this.JSC$9810_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.B5.prototype.JSC$9810_disposed_=!1;_.B5.prototype.isDisposed=function(){return this.JSC$9810_disposed_};
_.B5.prototype.dispose=function(){this.JSC$9810_disposed_||(this.JSC$9810_disposed_=!0,this.disposeInternal())};
_.B5.prototype[Symbol.dispose]=function(){this.dispose()};
_.pW=function(I,y){I.addOnDisposeCallback(_.de(_.rM,y))};
_.B5.prototype.addOnDisposeCallback=function(I,y){this.JSC$9810_disposed_?y!==void 0?I.call(y):I():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),y&&(I=I.bind(y)),this.onDisposeCallbacks_.push(I))};
_.B5.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var pA=function(I){_.B5.call(this);this.wpc=I};
_.E(pA,_.B5);pA.prototype.aik=function(){return this.wpc.f()};
pA.prototype.b1j=function(I){return this.wpc.c(I)};
pA.prototype.fJ=function(I){return this.wpc.m(JG_(I))};
pA.prototype.xBp=function(I){return this.wpc.mws(JG_(I))};
var NJ=function(I){_.B5.call(this);var y=this;this.vm=I;this.qRz="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.oAH=void 0;this.oTt=this.vm.p;this.uiu=this.uLK.bind(this);this.addOnDisposeCallback(function(){return void LOf(y)})};
_.E(NJ,_.B5);var Juu=function(I){var y;return _.S(function(D){if(D.nextAddress==1){if(!I.vm.wpc)throw new nA(30,"NWA");return I.lau?D.return(I.lau):D.yield(I.vm.wpc(),2)}y=D.yieldResult;I.lau=new pA(y);return D.return(I.lau)})};
NJ.prototype.snapshot=function(I){return this.vm.s(Object.assign({},I.jH&&{c:I.jH},I.klc&&{s:I.klc},I.bYs!==void 0&&{p:I.bYs}))};
NJ.prototype.uLK=function(I){this.vm.e(I)};
NJ.prototype.vnf=function(I,y){return this.vm.c(I,y,!1)};
var LOf=function(I){I.oAH!==void 0&&(I.qRz.forEach(function(y){var D;(D=I.oAH)==null||D.removeEventListener(y,I.uiu)}),I.oAH=void 0)};
NJ.prototype.nDt=function(){return this.vm.l()};var mW=function(){_.B5.apply(this,arguments);this.oYm=1};
_.E(mW,_.B5);mW.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.oYm++;return this};
mW.prototype.dispose=function(){--this.oYm||_.B5.prototype.dispose.call(this)};var wmc=function(I){this.hLY=I;I.addNewEventMetric("/client_streamz/bg/frs",_.EW("mk"))};
wmc.prototype.record=function(I,y){this.hLY.record("/client_streamz/bg/frs",I,y)};
var vMM=function(I){this.wsK=I;I.addNewEventMetric("/client_streamz/bg/wrl",_.EW("mn"),qJ("ac"),qJ("sc"),_.EW("rk"),_.EW("mk"))};
vMM.prototype.record=function(I,y,D,F,R,O){this.wsK.record("/client_streamz/bg/wrl",I,y,D,F,R,O)};
var Suu=function(I){this.oVf=I;I.addNewCounter("/client_streamz/bg/ec",_.EW("en"),_.EW("mk"))};
Suu.prototype.increment=function(I,y){this.oVf.JSC$10063_incrementCounter("/client_streamz/bg/ec",I,y)};
var tRa=function(I){this.aPK=I;I.addNewEventMetric("/client_streamz/bg/el",_.EW("en"),_.EW("mk"))};
tRa.prototype.record=function(I,y,D){this.aPK.record("/client_streamz/bg/el",I,y,D)};
var PSP=function(I){this.jxX=I;I.addNewCounter("/client_streamz/bg/cec",qJ("ec"),_.EW("mk"))};
PSP.prototype.increment=function(I,y){this.jxX.JSC$10063_incrementCounter("/client_streamz/bg/cec",I,y)};
var KOG=function(I){this.fAP=I;I.addNewCounter("/client_streamz/bg/po/csc",qJ("cs"),_.EW("mk"))};
KOG.prototype.increment=function(I,y){this.fAP.JSC$10063_incrementCounter("/client_streamz/bg/po/csc",I,y)};
var UaW=function(I){this.eQu=I;I.addNewCounter("/client_streamz/bg/po/ctav",_.EW("av"),_.EW("mk"))};
UaW.prototype.increment=function(I,y){this.eQu.JSC$10063_incrementCounter("/client_streamz/bg/po/ctav",I,y)};
var ruz=function(I){this.un2=I;I.addNewCounter("/client_streamz/bg/po/cwsc",_.EW("su"),_.EW("mk"))};
ruz.prototype.increment=function(I,y){this.un2.JSC$10063_incrementCounter("/client_streamz/bg/po/cwsc",I,y)};var kPq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(kPq,_.KS);var zXt=function(I,y){return _.D0(I,3,y,fRA)};var jbP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(jbP,_.KS);var oMW=[1,2,3];var NRR=[0,oMW,_.h4,eZ_,Vgz];var hkP=[0,_.xX,[0,Sq,_.t4]];var xaM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(xaM,_.KS);var laM=[1,2,3];var u5_=[0,laM,$8u,W1M,_.l7,hkP];var qug=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(qug,_.KS);var EMn=[0,_.xX,NRR,u5_];var GOa=[0,_.oh];var Xm_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Xm_,_.KS);var QbO=[0,_.oh,-1,_.rJ];var YuW=[0,_.oh,-1,_.Um,_.rJ];var faM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(faM,_.KS);var nMO=[1,2,3];var pmW=[0,nMO,_.l7,QbO,_.l7,YuW,_.l7,GOa];var maf=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(maf,_.KS);maf.prototype.JSC$9883_serializeBinary=JWS([0,_.oh,pmW,Zac,_.xX,EMn,TGW,_.sTa]);var MR_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(MR_,_.KS);var da_=function(I){var y=new maf;y=_.BB(y,1,I.JSC$9999_metricName);var D=zkf(I);y=_.D0(y,3,D,_.Go);D=[];for(var F=[],R=_.J(I.cellMap.keys()),O=R.next();!O.done;O=R.next())F.push(O.value.split(","));for(R=0;R<F.length;R++){O=F[R];for(var w=I.cellType,v=I.getCells(O)||[],P=[],K=0;K<v.length;K++){var r=v[K],N=r&&r.cellValue;r=new xaM;switch(w){case 3:N=Number(N);Number.isFinite(N)&&$7(r,1,laM,xy(N));break;case 2:$7(r,2,laM,_.DQ(Number(N)))}P.push(r)}w=P;for(v=0;v<w.length;v++){P=w[v];K=new qug;P=_.mH(K,
2,P);K=[];r=kOz(I);for(N=0;N<r.length;N++){var h=r[N],x=O[N],q=new jbP;switch(h){case 3:$7(q,1,oMW,Qa(String(x)));break;case 2:h=Number(x);Number.isFinite(h)&&$7(q,2,oMW,_.te(h));break;case 1:$7(q,3,oMW,XGW(x==="true"))}K.push(q)}iy(P,1,K);D.push(P)}}iy(y,4,D);return y};var aau=function(I){if(!I)return"";if(/^about:(?:blank|srcdoc)$/.test(I))return window.origin||"";I.indexOf("blob:")===0&&(I=I.substring(5));I=I.split("#")[0].split("?")[0];I=I.toLowerCase();I.indexOf("//")==0&&(I=window.location.protocol+I);/^[\w\-]*:\/\//.test(I)||(I=window.location.href);var y=I.substring(I.indexOf("://")+3),D=y.indexOf("/");D!=-1&&(y=y.substring(0,D));D=I.substring(0,I.indexOf("://"));if(!D)throw Error("qa`"+I);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);I="";var F=y.indexOf(":");if(F!=-1){var R=y.substring(F+1);y=y.substring(0,F);if(D==="http"&&R!=="80"||D==="https"&&R!=="443")I=":"+R}return D+"://"+y+I};var WOn=function(I,y,D){var F=String(_.Ft.location.href);return F&&I&&y?[y,cuu(aau(F),I,D||null)].join(" "):null},cuu=function(I,y,D){var F=[],R=[];
if((Array.isArray(D)?2:1)==1)return R=[y,I],_.hG(F,function(v){R.push(v)}),CSg(R.join(" "));
var O=[],w=[];_.hG(D,function(v){w.push(v.key);O.push(v.value)});
D=Math.floor((new Date).getTime()/1E3);R=O.length==0?[D,y,I]:[O.join(":"),D,y,I];_.hG(F,function(v){R.push(v)});
I=CSg(R.join(" "));I=[D,I];w.length==0||I.push(w.join(""));return I.join("_")},CSg=function(I){var y=rGA();
y.update(I);return y.digestString().toLowerCase()};var BRz;_.L=G6.prototype;_.L.isEnabled=function(){if(!_.Ft.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};
_.L.set=function(I,y,D){var F=!1;if(typeof D==="object"){var R=D.sameSite;F=D.secure||!1;var O=D.domain||void 0;var w=D.path||void 0;var v=D.maxAge}if(/[;=\s]/.test(I))throw Error("sa`"+I);if(/[;\r\n]/.test(y))throw Error("ta`"+y);v===void 0&&(v=-1);D=O?";domain="+O:"";w=w?";path="+w:"";F=F?";secure":"";v=v<0?"":v==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+v*1E3)).toUTCString();this.JSC$9894_document_.cookie=I+"="+y+D+w+v+F+(R!=null?";samesite="+R:"")};
_.L.get=function(I,y){for(var D=I+"=",F=(this.JSC$9894_document_.cookie||"").split(";"),R=0,O;R<F.length;R++){O=K5(F[R]);if(O.lastIndexOf(D,0)==0)return O.slice(D.length);if(O==I)return""}return y};
_.L.remove=function(I,y,D){var F=this.containsKey(I);this.set(I,"",{maxAge:0,path:y,domain:D});return F};
_.L.getKeys=function(){return BRz(this).keys};
_.L.getValues=function(){return BRz(this).values};
_.L.isEmpty=function(){return!this.JSC$9894_document_.cookie};
_.L.getCount=function(){return this.JSC$9894_document_.cookie?(this.JSC$9894_document_.cookie||"").split(";").length:0};
_.L.containsKey=function(I){return this.get(I)!==void 0};
_.L.containsValue=function(I){for(var y=BRz(this).values,D=0;D<y.length;D++)if(y[D]==I)return!0;return!1};
_.L.clear=function(){for(var I=BRz(this).keys,y=I.length-1;y>=0;y--)this.remove(I[y])};
BRz=function(I){I=(I.JSC$9894_document_.cookie||"").split(";");for(var y=[],D=[],F,R,O=0;O<I.length;O++)R=K5(I[O]),F=R.indexOf("="),F==-1?(y.push(""),D.push(R)):(y.push(R.substring(0,F)),D.push(R.substring(F+1)));return{keys:y,values:D}};
_.eF=new G6(typeof document=="undefined"?null:document);var VJS,iez;VJS=function(){var I=_.Ft.__SAPISID||_.Ft.__APISID||_.Ft.__3PSAPISID||_.Ft.__1PSAPISID||_.Ft.__OVERRIDE_SID;if(I)return!0;typeof document!=="undefined"&&(I=new G6(document),I=I.get("SAPISID")||I.get("APISID")||I.get("__Secure-3PAPISID")||I.get("__Secure-1PAPISID"));return!!I};
iez=function(I,y,D,F){(I=_.Ft[I])||typeof document==="undefined"||(I=(new G6(document)).get(y));return I?WOn(I,D,F):null};
_.NyC=function(I){var y=aau(_.Ft==null?void 0:_.Ft.location.href),D=[];if(VJS()){y=y.indexOf("https:")==0||y.indexOf("chrome-extension:")==0||y.indexOf("chrome-untrusted://new-tab-page")==0||y.indexOf("moz-extension:")==0;var F=y?_.Ft.__SAPISID:_.Ft.__APISID;F||typeof document==="undefined"||(F=new G6(document),F=F.get(y?"SAPISID":"APISID")||F.get("__Secure-3PAPISID"));(F=F?WOn(F,y?"SAPISIDHASH":"APISIDHASH",I):null)&&D.push(F);y&&((y=iez("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",I))&&D.push(y),
(I=iez("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",I))&&D.push(I))}return D.length==0?null:D.join(" ")};var AuM=function(){this.minSize=1024};
AuM.prototype.compress=function(I){var y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return y=new CompressionStream("gzip"),D=(new Response(y.readable)).arrayBuffer(),F=y.writable.getWriter(),O.yield(F.write((new TextEncoder).encode(I)),2);case 2:return O.yield(F.close(),3);case 3:return R=Uint8Array,O.yield(D,4);case 4:return O.return(new R(O.yieldResult))}})};
AuM.prototype.isSupported=function(I){return I<this.minSize?!1:typeof CompressionStream!=="undefined"};var $ac=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E($ac,_.KS);var MO=function(I,y){this.intervalMs=I;this.callback=y;this.enabled=!1;this.nowFn=function(){return _.q0()};
this.lastTimeMs=this.nowFn()};
MO.prototype.setInterval=function(I){this.intervalMs=I;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
MO.prototype.start=function(){var I=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){I.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
MO.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
MO.prototype.tick=function(){var I=this;if(this.enabled){var y=Math.max(this.nowFn()-this.lastTimeMs,0);y<this.intervalMs*.8?this.timer=setTimeout(function(){I.tick()},this.intervalMs-y):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var bec=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(bec,_.KS);var Hef=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Hef,_.KS);var ek_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ek_,_.KS);ek_.prototype.getTransmissionType=function(){return _.sI(this,1)};
ek_.prototype.getRetryCount=function(){return _.lD(this,3)};var hXq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(hXq,_.KS);var zI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(zI,_.KS);var N6q=function(I){iy(xC_,1,I)};
zI.prototype.getModel=function(){return _.Tp(this,6)};
var TR_=_.nS(zI);var sbc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(sbc,_.KS);var j8A=["platform","platformVersion","architecture","model","uaFullVersion"],xC_=new zI,ofJ=null;var kR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(kR,_.KS);var VRg=function(I){return _.d1(I,1,1)};var ZeO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,4)};
_.E(ZeO,_.KS);_.dC=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,36)};
_.E(_.dC,_.KS);_.dC.prototype.getExperimentIds=function(){return _.kk(this,$ac,16)};var gMu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,19)};
_.E(gMu,_.KS);gMu.prototype.setLogSource=function(I){return _.d1(this,2,I)};
gMu.prototype.setScheduler=function(I){return _.d1(this,10,I)};var yIc=function(I,y){this.isServiceWorkerScope=y=y===void 0?!1:y;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new gMu;Number.isInteger(I)&&this.logRequest.setLogSource(I);y||(this.locale=document.documentElement.getAttribute("lang"));I4M(this,new kR)};
yIc.prototype.setLogSource=function(I){this.logRequest.setLogSource(I);return this};
var I4M=function(I,y){_.mH(I.logRequest,1,y);_.sI(y,1)||VRg(y);I.isServiceWorkerScope||(y=aR(I),_.Tp(y,5)||_.BB(y,5,I.locale));I.uach&&(y=aR(I),_.kk(y,zI,9)||_.mH(y,9,I.uach))},D3R=function(I,y){I.transmissionType=y},FEG=function(I){var y=y===void 0?j8A:y;
var D=I.isServiceWorkerScope?void 0:st();D?lFB(D,y).then(function(F){I.uach=TR_(F!=null?F:"[]");F=aR(I);_.mH(F,9,I.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},aR=function(I){var y=_.kk(I.logRequest,kR,1);
y||(y=new kR,I4M(I,y));I=y;y=_.kk(I,sbc,11);y||(y=new sbc,_.mH(I,11,y));return y};
yIc.prototype.build=function(I,y,D,F,R,O){y=y===void 0?0:y;D=D===void 0?0:D;F=F===void 0?null:F;R=R===void 0?0:R;O=O===void 0?0:O;if(!this.isServiceWorkerScope){var w=aR(this);var v=new ek_;v=_.d1(v,1,this.transmissionType);v=_.Xm(v,2,this.isFinal);D=_.Ih(v,3,D>0?D:void 0);D=_.Ih(D,4,R>0?R:void 0);D=_.Ih(D,5,O>0?O:void 0);R=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O=R[_.L_]|0;D=Qg(D,O)?D:aQJ(D,R,O)?d8L(D,R):new D.constructor(BC(R,O,!0));_.mH(w,10,D)}w=this.logRequest.clone();D=Date.now().toString();
w=_.aC(w,4,xy(D));I=I.slice();I=iy(w,3,I);F&&(w=new bec,F=_.Ih(w,13,F),w=new Hef,F=_.mH(w,2,F),w=new ZeO,F=_.mH(w,1,F),F=_.d1(F,2,9),_.mH(I,18,F));y&&_.g2(I,14,y);return I};Qe.prototype.currBackoffCount_=0;Qe.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Qe.prototype.getValue=function(){return this.currValue_};
var RYO=function(I){I.currBaseValue_=Math.min(I.maxValue_,I.currBaseValue_*I.backoffFactor_);I.currValue_=Math.min(I.maxValue_,I.currBaseValue_+(I.randomFactor_?Math.round(I.randomFactor_*(Math.random()-.5)*2*I.currBaseValue_):0));I.currBackoffCount_++};var FHO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,8)};
_.E(FHO,_.KS);var Oiu=_.nS(FHO);var RCf=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(RCf,_.KS);var c2;c2=new OSO;var W2=function(I){_.B5.call(this);var y=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9972_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$9972_sendBeaconApiEnabled=!1;this.logSource=I.logSource;this.getAuthHeaderValue=
I.getAuthHeaderValue||function(){};
this.logRequestBuilder=new yIc(I.logSource,I.isServiceWorkerScope);this.network=I.network||null;this.productID=I.productID||null;this.bufferSize=1E3;this.clearcutUrl=I.urlOverride||null;this.sessionIndex=I.sessionIndex||null;this.disableAutomaticFlush=I.disableAutomaticFlush||!1;this.withCredentials=!I.disableWithCredentials;this.isServiceWorkerScope=I.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!st()&&!!st().navigator&&st().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(LEc())).searchParams&&!!(new URL(LEc())).searchParams.set;var D=VRg(new kR);I4M(this.logRequestBuilder,D);this.flushBackoff=new Qe(1E4,3E5,.1);I=JIa(this,I.backgroundJobDeferrer);this.JSC$9972_flushTimer=new MO(this.flushBackoff.getValue(),I);this.backupTimer=new MO(6E5,I);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){wVG(y);
var F;(F=y.metalogService)==null||F.flush()}}),document.addEventListener("pagehide",function(){wVG(y);
var F;(F=y.metalogService)==null||F.flush()}))};
_.E(W2,_.B5);var JIa=function(I,y){return I.isBrowserSupported?y?function(){y().then(function(){I.flush()})}:function(){I.flush()}:function(){}};
W2.prototype.disposeInternal=function(){wVG(this);this.JSC$9972_flushTimer.stop();this.backupTimer.stop();_.B5.prototype.disposeInternal.call(this)};
var v4u=function(I){I.clearcutUrl||(I.clearcutUrl=LEc());try{return(new URL(I.clearcutUrl)).toString()}catch(y){return(new URL(I.clearcutUrl,st().location.origin)).toString()}};
W2.prototype.dispatch=function(I){if(I instanceof _.dC)this.log(I);else try{var y=new _.dC,D=I.serialize();var F=_.BB(y,8,D);this.log(F)}catch(R){CA(this,4,1)}};
var CA=function(I,y,D){I.metalogService&&I.metalogService.increment(y,D)};
W2.prototype.log=function(I){CA(this,2,1);if(this.isBrowserSupported){I=I.clone();var y=this.sequencePosition++;I=_.g2(I,21,y);this.componentId&&_.BB(I,26,this.componentId);y=I;if($zA(_.du(y,1))==null){var D=Date.now();D=Number.isFinite(D)?D.toString():"0";_.aC(y,1,xy(D))}_.AM_(_.du(y,15))!=null||_.g2(y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(D=this.experimentIds.clone(),_.mH(y,16,D));CA(this,1,1);y=this.pendingEvents.length-this.bufferSize+1;y>0&&(this.pendingEvents.splice(0,y),
this.numLogsDroppedSinceLastFlush+=y,CA(this,3,y));this.pendingEvents.push(I);this.disableAutomaticFlush||this.JSC$9972_flushTimer.enabled||this.JSC$9972_flushTimer.start()}};
W2.prototype.flush=function(I,y){var D=this;if(this.pendingEvents.length===0)I&&I();else if(this.JSC$9972_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Sfg(this);else{var F=Date.now();if(this.noFlushUntilMs>F&&this.startWaitingMs<F)y&&y("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?D3R(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var R=this.pendingEvents.length,
O=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),w=this.getAuthHeaderValue();if(w&&this.lastFailedAuth===w)y&&y("stale-auth-token");else{this.pendingEvents=[];this.JSC$9972_flushTimer.enabled&&this.JSC$9972_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;F=O.serialize();var v;this.JSC$9972_compressor&&this.JSC$9972_compressor.isSupported(F.length)&&
(v=this.JSC$9972_compressor.compress(F));var P=tjf(this,F,w),K=function(h){D.flushBackoff.reset();D.JSC$9972_flushTimer.setInterval(D.flushBackoff.getValue());if(h){var x=null;try{var q=JSON.stringify(JSON.parse(h.replace(")]}'\n","")));x=Oiu(q)}catch(X){}x&&(h=Number(Hn(x,1,_.ae("-1"))),h>0&&(D.startWaitingMs=Date.now(),D.noFlushUntilMs=D.startWaitingMs+h),PRe(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c2.fieldIndex),SbC(x,c2.fieldIndex),x=c2.ctor?c2.getExtensionFn(x,c2.ctor,c2.fieldIndex,
c2.JSC$9152_hasMessageId):c2.getExtensionFn(x,c2.fieldIndex,null,c2.JSC$9152_hasMessageId),x=x===null?void 0:x)&&(x=_.lD(x,1,-1),x!==-1&&(D.flushBackoff=new Qe(x<1?1:x,3E5,.1),D.JSC$9972_flushTimer.setInterval(D.flushBackoff.getValue())))}I&&I();D.numRetriesSinceLastSuccessfulFlush=0},r=function(h,x){var q=_.hv(O,_.dC,3,_.xW());
var X=Number(Hn(O,14));RYO(D.flushBackoff);D.JSC$9972_flushTimer.setInterval(D.flushBackoff.getValue());h===401&&w&&(D.lastFailedAuth=w);X&&(D.numLogsDroppedSinceLastFlush+=X);x===void 0&&(x=D.isRetryable(h));x&&(D.pendingEvents=q.concat(D.pendingEvents),D.disableAutomaticFlush||D.JSC$9972_flushTimer.enabled||D.JSC$9972_flushTimer.start());CA(D,7,1);y&&y("net-send-failed",h);++D.numRetriesSinceLastSuccessfulFlush},N=function(){D.network&&D.network.send(P,K,r)};
v?v.then(function(h){CA(D,5,R);P.requestHeaders["Content-Encoding"]="gzip";P.requestHeaders["Content-Type"]="application/binary";P.body=h;P.bodyType=2;N()},function(){CA(D,6,R);
N()}):N()}}}};
var tjf=function(I,y,D){D=D===void 0?null:D;var F=F===void 0?I.withCredentials:F;var R={},O=new URL(v4u(I));D&&(R.Authorization=D);I.sessionIndex&&(R["X-Goog-AuthUser"]=I.sessionIndex,O.searchParams.set("authuser",I.sessionIndex));I.pageId&&(Object.defineProperty(R,"X-Goog-PageId",{value:I.pageId}),O.searchParams.set("pageId",I.pageId));return{url:O.toString(),body:y,bodyType:1,requestHeaders:R,requestType:"POST",withCredentials:F,timeoutMillis:I.timeoutMillis}},wVG=function(I){I.logRequestBuilder.isFinal=
!0;
I.flush();I.logRequestBuilder.isFinal=!1},Sfg=function(I){PFW(I,function(y,D){y=new URL(y);
y.searchParams.set("format","json");var F=!1;try{F=st().navigator.sendBeacon(y.toString(),D.serialize())}catch(R){}F||(I.isSendBeaconSupported=!1);return F})},PFW=function(I,y){if(I.pendingEvents.length!==0){var D=new URL(v4u(I));
D.searchParams.delete("format");var F=I.getAuthHeaderValue();F&&D.searchParams.set("auth",F);D.searchParams.set("authuser",I.sessionIndex||"0");for(F=0;F<10&&I.pendingEvents.length;++F){var R=I.pendingEvents.slice(0,32),O=I.logRequestBuilder.build(R,I.numLogsDroppedSinceLastFlush,I.numRetriesSinceLastSuccessfulFlush,I.productID,I.persistedLogRecoveredCount,I.persistedLogExpiredCount);if(!y(D.toString(),O)){++I.numRetriesSinceLastSuccessfulFlush;break}I.numLogsDroppedSinceLastFlush=0;I.numRetriesSinceLastSuccessfulFlush=
0;I.persistedLogRecoveredCount=0;I.persistedLogExpiredCount=0;I.pendingEvents=I.pendingEvents.slice(R.length)}I.JSC$9972_flushTimer.enabled&&I.JSC$9972_flushTimer.stop()}};
W2.prototype.isRetryable=function(I){return 500<=I&&I<600||I===401||I===0};
var LEc=function(){return"https://play.google.com/log?format=json&hasfast=true"};var KEW=function(){this.abortSupported=typeof AbortController!=="undefined"};
KEW.prototype.send=function(I,y,D){var F=this,R,O,w,v,P,K,r,N,h,x;return _.S(function(q){switch(q.nextAddress){case 1:return O=(R=F.abortSupported?new AbortController:void 0)?setTimeout(function(){R.abort()},I.timeoutMillis):void 0,_.nj(q,2,3),w=Object.assign({},{method:I.requestType,
headers:Object.assign({},I.requestHeaders)},I.body&&{body:I.body},I.withCredentials&&{credentials:"include"},{signal:I.timeoutMillis&&R?R.signal:null}),q.yield(fetch(I.url,w),5);case 5:v=q.yieldResult;if(v.status!==200){(P=D)==null||P(v.status);q.jumpTo(3);break}if((K=y)==null){q.jumpTo(7);break}return q.yield(v.text(),8);case 8:K(q.yieldResult);case 7:case 3:_.m4(q);clearTimeout(O);_.kQ(q,0);break;case 2:r=_.dj(q);switch((N=r)==null?void 0:N.name){case "AbortError":(h=D)==null||h(408);break;default:(x=
D)==null||x(400)}q.jumpTo(3)}})};
KEW.prototype.getTransmissionType=function(){return 4};_.nW=function(I,y){y=y===void 0?"0":y;_.B5.call(this);this.logSource=I;this.sessionIndex=y;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9990_clearExperimentIds=this.productID=null;this.JSC$9990_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.E(_.nW,_.B5);var piH=function(I,y){I.buildLabel=y;return I},nf_=function(I,y){I.network=y;
return I},MF_=function(I,y){I.JSC$9990_clearExperimentIds=y},fFS=function(I){I.JSC$9990_sendBeaconApiEnabled=!0;
return I};
_.nW.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.nW.prototype.build=function(){this.network||(this.network=new KEW);var I=new W2({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.NyC,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.pW(this,I);if(this.buildLabel){var y=this.buildLabel,D=
aR(I.logRequestBuilder);_.BB(D,7,y)}I.JSC$9972_compressor=new AuM;this.componentId&&(I.componentId=this.componentId);this.productID&&(I.productID=this.productID);this.pageId&&(I.pageId=this.pageId);this.JSC$9990_clearExperimentIds&&((D=this.JSC$9990_clearExperimentIds)?(I.experimentIds||(I.experimentIds=new $ac),y=I.experimentIds,D=D.serialize(),_.BB(y,4,D)):I.experimentIds&&_.aC(I.experimentIds,4));this.JSC$9990_sendBeaconApiEnabled&&(I.JSC$9972_sendBeaconApiEnabled=I.isSendBeaconSupported);FEG(I.logRequestBuilder);
this.bufferSize&&(I.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(I);return I};var dCo=function(I,y,D,F,R,O,w){I=I===void 0?-1:I;y=y===void 0?"":y;D=D===void 0?"":D;F=F===void 0?!1:F;R=R===void 0?"":R;_.B5.call(this);this.logSource=I;this.componentId=y;O?y=O:(I=new _.nW(I,"0"),I.componentId=y,_.pW(this,I),D!==""&&(I.destinationUrl=D),F&&(I.serviceWorkerScopeEnabled=!0),R&&piH(I,R),w&&nf_(I,w),y=I.build());this.JSC$9994_transport=y};
_.E(dCo,_.B5);dCo.prototype.flush=function(I){I=I||[];if(I.length){for(var y=new MR_,D=[],F=0;F<I.length;F++){var R=I[F],O=da_(R);D.push(O);R.clear()}iy(y,1,D);this.JSC$9994_transport.dispatch(y);this.JSC$9994_transport.flush()}};var U3_=function(I){this.cellValue=I};var B2=function(I,y,D){this.JSC$9999_metricName=I;this.cellType=y;this.fields=D||[];this.cellMap=new Map},kOz=function(I){return I.fields.map(function(y){return y.fieldType})},zkf=function(I){return I.fields.map(function(y){return y.fieldName})};
_.L=B2.prototype;_.L.addCell=function(I){var y=_.go.apply(1,arguments),D=this.getCells(y);D?D.push(new U3_(I)):this.JSC$9999_setCell(I,y)};
_.L.JSC$9999_setCell=function(I){var y=this.JSC$9999_getKey(_.go.apply(1,arguments));this.cellMap.set(y,[new U3_(I)])};
_.L.getCells=function(){var I=this.JSC$9999_getKey(_.go.apply(0,arguments));return this.cellMap.has(I)?this.cellMap.get(I):void 0};
_.L.getCell=function(){var I=this.getCells(_.go.apply(0,arguments));return I&&I.length?I[0]:void 0};
_.L.clear=function(){this.cellMap.clear()};
_.L.JSC$9999_getKey=function(){var I=_.go.apply(0,arguments);return I?I.join(","):"key"};var rIR=function(I,y){B2.call(this,I,3,y)};
_.E(rIR,B2);rIR.prototype.JSC$10002_incrementCounterBy=function(I){var y=_.go.apply(1,arguments),D=0,F=this.getCell(y);F&&(D=F.cellValue);this.JSC$9999_setCell(D+I,y)};var jUf=function(I,y){B2.call(this,I,2,y)};
_.E(jUf,B2);jUf.prototype.record=function(I){this.addCell(I,_.go.apply(1,arguments))};_.H2=function(I){this.id=I};
_.H2.prototype.toString=function(){return this.id};_.uS=function(I,y){this.type=I instanceof _.H2?String(I):I;this.currentTarget=this.target=y;this.defaultPrevented=this.propagationStopped_=!1};
_.uS.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.uS.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ee=function(I,y){_.uS.call(this,I?I.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;I&&this.init(I,y)};
_.EI(_.ee,_.uS);
_.ee.prototype.init=function(I,y){var D=this.type=I.type,F=I.changedTouches&&I.changedTouches.length?I.changedTouches[0]:null;this.target=I.target||I.srcElement;this.currentTarget=y;y=I.relatedTarget;y||(D=="mouseover"?y=I.fromElement:D=="mouseout"&&(y=I.toElement));this.relatedTarget=y;F?(this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY=F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0):(this.offsetX=_.cr||I.offsetX!==void 0?I.offsetX:I.layerX,
this.offsetY=_.cr||I.offsetY!==void 0?I.offsetY:I.layerY,this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0);this.button=I.button;this.keyCode=I.keyCode||0;this.key=I.key||"";this.charCode=I.charCode||(D=="keypress"?I.keyCode:0);this.ctrlKey=I.ctrlKey;this.altKey=I.altKey;this.shiftKey=I.shiftKey;this.metaKey=I.metaKey;this.pointerId=I.pointerId||0;this.pointerType=I.pointerType;this.state=I.state;
this.timeStamp=I.timeStamp;this.event_=I;I.defaultPrevented&&_.ee.superClass_.preventDefault.call(this)};
_.ee.prototype.isButton=function(I){return this.event_.button==I};
_.ee.prototype.stopPropagation=function(){_.ee.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ee.prototype.preventDefault=function(){_.ee.superClass_.preventDefault.call(this);var I=this.event_;I.preventDefault?I.preventDefault():I.returnValue=!1};var o4M="closure_listenable_"+(Math.random()*1E6|0),TI=function(I){return!(!I||!I[o4M])};var NZM=0;var hYG=function(I,y,D,F,R){this.listener=I;this.proxy=null;this.src=y;this.type=D;this.capture=!!F;this.handler=R;this.key=++NZM;this.removed=this.callOnce=!1},x3a=function(I){I.removed=!0;
I.listener=null;I.proxy=null;I.src=null;I.handler=null};fW.prototype.add=function(I,y,D,F,R){var O=I.toString();I=this.listeners[O];I||(I=this.listeners[O]=[],this.typeCount_++);var w=l4g(I,y,F,R);w>-1?(y=I[w],D||(y.callOnce=!1)):(y=new hYG(y,this.src,O,!!F,R),y.callOnce=D,I.push(y));return y};
fW.prototype.remove=function(I,y,D,F){I=I.toString();if(!(I in this.listeners))return!1;var R=this.listeners[I];y=l4g(R,y,D,F);return y>-1?(x3a(R[y]),_.nA_(R,y),R.length==0&&(delete this.listeners[I],this.typeCount_--),!0):!1};
var u8a=function(I,y){var D=y.type;if(!(D in I.listeners))return!1;var F=_.WH(I.listeners[D],y);F&&(x3a(y),I.listeners[D].length==0&&(delete I.listeners[D],I.typeCount_--));return F};
fW.prototype.removeAll=function(I){I=I&&I.toString();var y=0,D;for(D in this.listeners)if(!I||D==I){for(var F=this.listeners[D],R=0;R<F.length;R++)++y,x3a(F[R]);delete this.listeners[D];this.typeCount_--}return y};
fW.prototype.getListener=function(I,y,D,F){I=this.listeners[I.toString()];var R=-1;I&&(R=l4g(I,y,D,F));return R>-1?I[R]:null};
fW.prototype.hasListener=function(I,y){var D=I!==void 0,F=D?I.toString():"",R=y!==void 0;return _.e$.some(this.listeners,function(O){for(var w=0;w<O.length;++w)if(!(D&&O[w].type!=F||R&&O[w].capture!=y))return!0;return!1})};
var l4g=function(I,y,D,F){for(var R=0;R<I.length;++R){var O=I[R];if(!O.removed&&O.listener==y&&O.capture==!!D&&O.handler==F)return R}return-1};var qfM,E4a,GBa,QUG,YfM,Ib,iV,PZt,f4P,n4_,s5,pVn,XVR;qfM="closure_lm_"+(Math.random()*1E6|0);E4a={};GBa=0;_.bV=function(I,y,D,F,R){if(F&&F.once)return Ib(I,y,D,F,R);if(Array.isArray(y)){for(var O=0;O<y.length;O++)_.bV(I,y[O],D,F,R);return null}D=XVR(D);return TI(I)?I.listen(y,D,_.b_(F)?!!F.capture:!!F,R):QUG(I,y,D,!1,F,R)};
QUG=function(I,y,D,F,R,O){if(!y)throw Error("va");var w=_.b_(R)?!!R.capture:!!R,v=s5(I);v||(I[qfM]=v=new fW(I));D=v.add(y,D,F,w,O);if(D.proxy)return D;F=YfM();D.proxy=F;F.src=I;F.listener=D;if(I.addEventListener)_.MZR||(R=w),R===void 0&&(R=!1),I.addEventListener(y.toString(),F,R);else if(I.attachEvent)I.attachEvent(f4P(y.toString()),F);else if(I.addListener&&I.removeListener)I.addListener(F);else throw Error("wa");GBa++;return D};
YfM=function(){var I=n4_,y=function(D){return I.call(y.src,y.listener,D)};
return y};
Ib=function(I,y,D,F,R){if(Array.isArray(y)){for(var O=0;O<y.length;O++)Ib(I,y[O],D,F,R);return null}D=XVR(D);return TI(I)?I.listenOnce(y,D,_.b_(F)?!!F.capture:!!F,R):QUG(I,y,D,!0,F,R)};
_.V1=function(I,y,D,F,R){if(Array.isArray(y))for(var O=0;O<y.length;O++)_.V1(I,y[O],D,F,R);else F=_.b_(F)?!!F.capture:!!F,D=XVR(D),TI(I)?I.unlisten(y,D,F,R):I&&(I=s5(I))&&(y=I.getListener(y,D,F,R))&&iV(y)};
iV=function(I){if(typeof I==="number"||!I||I.removed)return!1;var y=I.src;if(TI(y))return u8a(y.eventTargetListeners_,I);var D=I.type,F=I.proxy;y.removeEventListener?y.removeEventListener(D,F,I.capture):y.detachEvent?y.detachEvent(f4P(D),F):y.addListener&&y.removeListener&&y.removeListener(F);GBa--;(D=s5(y))?(u8a(D,I),D.typeCount_==0&&(D.src=null,y[qfM]=null)):x3a(I);return!0};
PZt=function(I,y,D,F,R){D=XVR(D);F=!!F;return TI(I)?I.getListener(y,D,F,R):I?(I=s5(I))?I.getListener(y,D,F,R):null:null};
f4P=function(I){return I in E4a?E4a[I]:E4a[I]="on"+I};
n4_=function(I,y){if(I.removed)I=!0;else{y=new _.ee(y,this);var D=I.listener,F=I.handler||I.src;I.callOnce&&iV(I);I=D.call(F,y)}return I};
s5=function(I){I=I[qfM];return I instanceof fW?I:null};
pVn="__closure_events_fn_"+(Math.random()*1E9>>>0);XVR=function(I){if(typeof I==="function")return I;I[pVn]||(I[pVn]=function(y){return I.handleEvent(y)});
return I[pVn]};_.Zw=function(){_.B5.call(this);this.eventTargetListeners_=new fW(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.EI(_.Zw,_.B5);_.Zw.prototype[o4M]=!0;_.L=_.Zw.prototype;_.L.setParentEventTarget=function(I){this.parentEventTarget_=I};
_.L.addEventListener=function(I,y,D,F){_.bV(this,I,y,D,F)};
_.L.removeEventListener=function(I,y,D,F){_.V1(this,I,y,D,F)};
_.L.dispatchEvent=function(I){var y,D=this.parentEventTarget_;if(D)for(y=[];D;D=D.parentEventTarget_)y.push(D);D=this.actualEventTarget_;var F=I.type||I;if(typeof I==="string")I=new _.uS(I,D);else if(I instanceof _.uS)I.target=I.target||D;else{var R=I;I=new _.uS(F,D);_.e$.extend(I,R)}R=!0;var O;if(y)for(O=y.length-1;!I.propagationStopped_&&O>=0;O--){var w=I.currentTarget=y[O];R=m3O(w,F,!0,I)&&R}I.propagationStopped_||(w=I.currentTarget=D,R=m3O(w,F,!0,I)&&R,I.propagationStopped_||(R=m3O(w,F,!1,I)&&
R));if(y)for(O=0;!I.propagationStopped_&&O<y.length;O++)w=I.currentTarget=y[O],R=m3O(w,F,!1,I)&&R;return R};
_.L.disposeInternal=function(){_.Zw.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.L.listen=function(I,y,D,F){return this.eventTargetListeners_.add(String(I),y,!1,D,F)};
_.L.listenOnce=function(I,y,D,F){return this.eventTargetListeners_.add(String(I),y,!0,D,F)};
_.L.unlisten=function(I,y,D,F){return this.eventTargetListeners_.remove(String(I),y,D,F)};
_.L.removeAllListeners=function(I){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(I):0};
var m3O=function(I,y,D,F){y=I.eventTargetListeners_.listeners[String(y)];if(!y)return!0;y=y.concat();for(var R=!0,O=0;O<y.length;++O){var w=y[O];if(w&&!w.removed&&w.capture==D){var v=w.listener,P=w.handler||w.src;w.callOnce&&u8a(I.eventTargetListeners_,w);R=v.call(P,F)!==!1&&R}}return R&&!F.defaultPrevented};
_.Zw.prototype.getListener=function(I,y,D,F){return this.eventTargetListeners_.getListener(String(I),y,D,F)};
_.Zw.prototype.hasListener=function(I,y){return this.eventTargetListeners_.hasListener(I!==void 0?String(I):void 0,y)};var gC=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(I){return I&&AsyncContext.Snapshot.wrap(I)}:function(I){return I};var MjG=function(I,y){this.create_=I;this.reset_=y;this.occupants_=0;this.JSC$10034_head_=null};
MjG.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var I=this.JSC$10034_head_;this.JSC$10034_head_=I.next;I.next=null}else I=this.create_();return I};
MjG.prototype.put=function(I){this.reset_(I);this.occupants_<100&&(this.occupants_++,I.next=this.JSC$10034_head_,this.JSC$10034_head_=I)};var zYM=function(){this.workTail_=this.workHead_=null};
zYM.prototype.add=function(I,y){var D=qJA.get();D.set(I,y);this.workTail_?this.workTail_.next=D:this.workHead_=D;this.workTail_=D};
zYM.prototype.remove=function(){var I=null;this.workHead_&&(I=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),I.next=null);return I};
var qJA=new MjG(function(){return new kBW},function(I){return I.reset()}),kBW=function(){this.next=this.scope=this.fn=null};
kBW.prototype.set=function(I,y){this.fn=I;this.scope=y;this.next=null};
kBW.prototype.reset=function(){this.next=this.scope=this.fn=null};var d3g,Efq,uht,a4g;Efq=!1;uht=new zYM;_.Ia=function(I,y){d3g||a4g();Efq||(d3g(),Efq=!0);uht.add(I,y)};
a4g=function(){var I=Promise.resolve(void 0);d3g=function(){I.then(GP4)}};var cIg=function(I){I.prototype.$goog_Thenable=!0},WEz=function(I){if(!I)return!1;
try{return!!I.$goog_Thenable}catch(y){return!1}};var CFG,BZW,iiu,$3u,bif,HiO,Vj_,IFO,RXc,DCW,A6B;_.AO=function(I,y){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(I!=_.Hq)try{var D=this;I.call(y,function(F){D.resolve_(2,F)},function(F){D.resolve_(3,F)})}catch(F){this.resolve_(3,F)}};
CFG=function(){this.next=this.context=this.JSC$10045_onRejected=this.JSC$10045_onFulfilled=this.child=null;this.always=!1};
CFG.prototype.reset=function(){this.context=this.JSC$10045_onRejected=this.JSC$10045_onFulfilled=this.child=null;this.always=!1};
BZW=new MjG(function(){return new CFG},function(I){I.reset()});
iiu=function(I,y,D){var F=BZW.get();F.JSC$10045_onFulfilled=I;F.JSC$10045_onRejected=y;F.context=D;return F};
_.Xs=function(I){if(I instanceof _.AO)return I;var y=new _.AO(_.Hq);y.resolve_(2,I);return y};
_.eE=function(I){return new _.AO(function(y,D){D(I)})};
$3u=function(I,y,D){AIn(I,y,D,null)||_.Ia(_.de(y,I))};
_.yL=function(I){return new _.AO(function(y,D){var F=I.length,R=[];if(F)for(var O=function(K,r){F--;R[K]=r;F==0&&y(R)},w=function(K){D(K)},v,P=0;P<I.length;P++)v=I[P],$3u(v,_.de(O,P),w);
else y(R)})};
bif=function(I){return new _.AO(function(y){var D=I.length,F=[];if(D)for(var R=function(v,P,K){D--;F[v]=P?{fulfilled:!0,value:K}:{fulfilled:!1,reason:K};D==0&&y(F)},O,w=0;w<I.length;w++)O=I[w],$3u(O,_.de(R,w,!0),_.de(R,w,!1));
else y(F)})};
HiO=function(I){return new _.AO(function(y,D){var F=I.length,R=[];if(F)for(var O=function(K){y(K)},w=function(K,r){F--;
R[K]=r;F==0&&D(R)},v,P=0;P<I.length;P++)v=I[P],$3u(v,O,_.de(w,P));
else y(void 0)})};
_.vS=function(){var I,y,D=new _.AO(function(F,R){I=F;y=R});
return new eYz(D,I,y)};
_.AO.prototype.then=function(I,y,D){return TZg(this,gC(typeof I==="function"?I:null),gC(typeof y==="function"?y:null),D)};
cIg(_.AO);Vj_=function(I,y,D,F){sUM(I,iiu(y||_.Hq,D||null,F))};
_.D1=function(I,y){y=gC(y);y=iiu(y,y);y.always=!0;sUM(I,y);return I};
_.AO.prototype.finally=function(I){var y=this;I=gC(I);return new _.AO(function(D,F){Vj_(y,function(R){I();D(R)},function(R){I();
F(R)})})};
_.AO.prototype.thenCatch=function(I,y){return TZg(this,null,gC(I),y)};
_.AO.prototype.catch=_.AO.prototype.thenCatch;_.AO.prototype.cancel=function(I){if(this.state_==0){var y=new _.F9(I);_.Ia(function(){Ziu(this,y)},this)}};
var Ziu=function(I,y){if(I.state_==0)if(I.parent_){var D=I.parent_;if(D.callbackEntries_){for(var F=0,R=null,O=null,w=D.callbackEntries_;w&&(w.always||(F++,w.child==I&&(R=w),!(R&&F>1)));w=w.next)R||(O=w);R&&(D.state_==0&&F==1?Ziu(D,y):(O?(F=O,F.next==D.callbackEntriesTail_&&(D.callbackEntriesTail_=F),F.next=F.next.next):g4g(D),IFO(D,R,3,y)))}I.parent_=null}else I.resolve_(3,y)},sUM=function(I,y){I.callbackEntries_||I.state_!=2&&I.state_!=3||yGe(I);
I.callbackEntriesTail_?I.callbackEntriesTail_.next=y:I.callbackEntries_=y;I.callbackEntriesTail_=y},TZg=function(I,y,D,F){var R=iiu(null,null,null);
R.child=new _.AO(function(O,w){R.JSC$10045_onFulfilled=y?function(v){try{var P=y.call(F,v);O(P)}catch(K){w(K)}}:O;
R.JSC$10045_onRejected=D?function(v){try{var P=D.call(F,v);P===void 0&&v instanceof _.F9?w(v):O(P)}catch(K){w(K)}}:w});
R.child.parent_=I;sUM(I,R);return R.child};
_.AO.prototype.unblockAndFulfill_=function(I){this.state_=0;this.resolve_(2,I)};
_.AO.prototype.unblockAndReject_=function(I){this.state_=0;this.resolve_(3,I)};
_.AO.prototype.resolve_=function(I,y){this.state_==0&&(this===y&&(I=3,y=new TypeError("xa")),this.state_=1,AIn(y,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=y,this.state_=I,this.parent_=null,yGe(this),I!=3||y instanceof _.F9||DCW(this,y)))};
var AIn=function(I,y,D,F){if(I instanceof _.AO)return Vj_(I,y,D,F),!0;if(WEz(I))return I.then(y,D,F),!0;if(_.b_(I))try{var R=I.then;if(typeof R==="function")return Fwf(I,R,y,D,F),!0}catch(O){return D.call(F,O),!0}return!1},Fwf=function(I,y,D,F,R){var O=!1,w=function(P){O||(O=!0,D.call(R,P))},v=function(P){O||(O=!0,F.call(R,P))};
try{y.call(I,w,v)}catch(P){v(P)}},yGe=function(I){I.executing_||(I.executing_=!0,_.Ia(I.executeCallbacks_,I))},g4g=function(I){var y=null;
I.callbackEntries_&&(y=I.callbackEntries_,I.callbackEntries_=y.next,y.next=null);I.callbackEntries_||(I.callbackEntriesTail_=null);return y};
_.AO.prototype.executeCallbacks_=function(){for(var I;I=g4g(this);)IFO(this,I,this.state_,this.result_);this.executing_=!1};
IFO=function(I,y,D,F){if(D==3&&y.JSC$10045_onRejected&&!y.always)for(;I&&I.hadUnhandledRejection_;I=I.parent_)I.hadUnhandledRejection_=!1;if(y.child)y.child.parent_=null,RXc(y,D,F);else try{y.always?y.JSC$10045_onFulfilled.call(y.context):RXc(y,D,F)}catch(R){A6B.call(null,R)}BZW.put(y)};
RXc=function(I,y,D){y==2?I.JSC$10045_onFulfilled.call(I.context,D):I.JSC$10045_onRejected&&I.JSC$10045_onRejected.call(I.context,D)};
DCW=function(I,y){I.hadUnhandledRejection_=!0;_.Ia(function(){I.hadUnhandledRejection_&&A6B.call(null,y)})};
A6B=Ro;_.F9=function(I){_.Io.call(this,I)};
_.EI(_.F9,_.Io);_.F9.prototype.name="cancel";var eYz=function(I,y,D){this.promise=I;this.resolve=y;this.reject=D};var FI;_.eT=function(I,y){_.Zw.call(this);this.JSC$10057_interval_=I||1;this.timerObject_=y||_.Ft;this.boundTick_=(0,_.iD)(this.tick_,this);this.last_=_.q0()};
_.EI(_.eT,_.Zw);_.L=_.eT.prototype;_.L.enabled=!1;_.L.JSC$10059_timer_=null;_.L.setInterval=function(I){this.JSC$10057_interval_=I;this.JSC$10059_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10059_timer_&&this.stop()};
_.L.tick_=function(){if(this.enabled){var I=_.q0()-this.last_;I>0&&I<this.JSC$10057_interval_*.8?this.JSC$10059_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10057_interval_-I):(this.JSC$10059_timer_&&(this.timerObject_.clearTimeout(this.JSC$10059_timer_),this.JSC$10059_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.L.start=function(){this.enabled=!0;this.JSC$10059_timer_||(this.JSC$10059_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10057_interval_),this.last_=_.q0())};
_.L.stop=function(){this.enabled=!1;this.JSC$10059_timer_&&(this.timerObject_.clearTimeout(this.JSC$10059_timer_),this.JSC$10059_timer_=null)};
_.L.disposeInternal=function(){_.eT.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
FI=function(I,y,D){if(typeof I==="function")D&&(I=(0,_.iD)(I,D));else if(I&&typeof I.handleEvent=="function")I=(0,_.iD)(I.handleEvent,I);else throw Error("ya");return Number(y)>2147483647?-1:_.Ft.setTimeout(I,y||0)};
_.ORf=function(I){var y=null;return(new _.AO(function(D,F){y=FI(function(){D(void 0)},I);
y==-1&&F(Error("za"))})).thenCatch(function(D){_.Ft.clearTimeout(y);
throw D;})};var m5=function(I){_.B5.call(this);this.streamzLogger=I;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10063_flushTimer=new _.eT(this.flushInterval);this.JSC$10063_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.pW(this,this.JSC$10063_flushTimer)};
_.E(m5,_.B5);m5.prototype.sendIsolatedPayload=function(I){this.shouldSendIsolatedPayload=I;this.invocationLimit=1};
var LwG=function(I){I.JSC$10063_flushTimer.enabled||I.JSC$10063_flushTimer.start();I.invocationCount++;I.invocationCount>=I.invocationLimit&&I.snapshotAndFlush()};
m5.prototype.snapshotAndFlush=function(){var I=this.metricMap.values();I=[].concat(_.Td(I)).filter(function(y){return y.cellMap.size});
I.length&&this.streamzLogger.flush(I,this.shouldSendIsolatedPayload);JGu(I);this.invocationCount=0;this.JSC$10063_flushTimer.enabled&&this.JSC$10063_flushTimer.stop()};
m5.prototype.addNewCounter=function(I){var y=_.go.apply(1,arguments);this.metricMap.has(I)||this.metricMap.set(I,new rIR(I,y))};
m5.prototype.addNewEventMetric=function(I){var y=_.go.apply(1,arguments);this.metricMap.has(I)||this.metricMap.set(I,new jUf(I,y))};
var wiP=function(I,y){return I.disabledMetrics.has(y)?void 0:I.metricMap.get(y)};
m5.prototype.JSC$10063_incrementCounter=function(I){this.JSC$10063_incrementCounterBy(I,1,_.go.apply(1,arguments))};
m5.prototype.JSC$10063_incrementCounterBy=function(I,y){var D=_.go.apply(2,arguments),F=wiP(this,I);F&&F instanceof rIR&&(F.JSC$10002_incrementCounterBy(y,D),LwG(this))};
m5.prototype.record=function(I,y){var D=_.go.apply(2,arguments),F=wiP(this,I);F&&F instanceof jUf&&(F.record(y,D),LwG(this))};
var JGu=function(I){for(var y=0;y<I.length;y++)I[y].clear()};_.Ra=function(I,y,D){D=D===void 0?{}:D;y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=I;this.metadata=D;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(_.Ra,Error);_.Ra.prototype.toString=function(){var I="RpcError("+(Q8_(this.code)||String(this.code))+")";this.message&&(I+=": "+this.message);return I};_.vf_=_.Ft.JSON.parse;_.O7=_.Ft.JSON.stringify;_.b5=_.Ft.JSON.parse;_.SJG=function(I){switch(I){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 tFu=function(I){switch(I){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var PPR,KwO=function(){};
_.EI(KwO,_.YJe);KwO.prototype.createInstance=function(){return new XMLHttpRequest};
PPR=new KwO;_.L9=function(I){_.Zw.call(this);this.headers=new Map;this.JSC$10072_xmlHttpFactory_=I||null;this.JSC$10072_active_=!1;this.JSC$10072_xhr_=null;this.JSC$10072_lastUri_="";this.JSC$10072_lastErrorCode_=0;this.JSC$10072_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10072_timeoutId_=null;this.responseType_="";this.JSC$10072_withCredentials_=!1};
_.EI(_.L9,_.Zw);var UC_=/^https?$/i,rGP=["POST","PUT"],j8P=[],IjL=function(I,y,D,F,R,O,w){var v=new _.L9;j8P.push(v);y&&v.listen("complete",y);v.listenOnce("ready",v.cleanupSend_);O&&(v.timeoutInterval_=Math.max(0,O));w&&(v.JSC$10072_withCredentials_=w);v.send(I,D,F,R)};
_.L9.prototype.cleanupSend_=function(){this.dispose();_.WH(j8P,this)};
_.L9.prototype.send=function(I,y,D,F){if(this.JSC$10072_xhr_)throw Error("Aa`"+this.JSC$10072_lastUri_+"`"+I);y=y?y.toUpperCase():"GET";this.JSC$10072_lastUri_=I;this.JSC$10072_lastError_="";this.JSC$10072_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10072_active_=!0;this.JSC$10072_xhr_=this.createXhr();this.JSC$10072_xhr_.onreadystatechange=gC((0,_.iD)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10072_xhr_.open(y,String(I),!0),this.inOpen_=!1}catch(w){ofM(this,w);return}I=
D||"";D=new Map(this.headers);if(F)if(Object.getPrototypeOf(F)===Object.prototype)for(var R in F)D.set(R,F[R]);else if(typeof F.keys==="function"&&typeof F.get==="function"){R=_.J(F.keys());for(var O=R.next();!O.done;O=R.next())O=O.value,D.set(O,F.get(O))}else throw Error("Ba`"+String(F));F=Array.from(D.keys()).find(function(w){return"content-type"==w.toLowerCase()});
R=_.Ft.FormData&&I instanceof _.Ft.FormData;!_.kA(rGP,y)||F||R||D.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");y=_.J(D);for(F=y.next();!F.done;F=y.next())D=_.J(F.value),F=D.next().value,D=D.next().value,this.JSC$10072_xhr_.setRequestHeader(F,D);this.responseType_&&(this.JSC$10072_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10072_xhr_&&this.JSC$10072_xhr_.withCredentials!==this.JSC$10072_withCredentials_&&(this.JSC$10072_xhr_.withCredentials=this.JSC$10072_withCredentials_);
try{this.JSC$10072_timeoutId_&&(clearTimeout(this.JSC$10072_timeoutId_),this.JSC$10072_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10072_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10072_xhr_.send(I),this.inSend_=!1}catch(w){ofM(this,w)}};
_.L9.prototype.createXhr=function(){return this.JSC$10072_xmlHttpFactory_?this.JSC$10072_xmlHttpFactory_.createInstance():PPR.createInstance()};
_.L9.prototype.timeout_=function(){typeof dS_!="undefined"&&this.JSC$10072_xhr_&&(this.JSC$10072_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10072_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var ofM=function(I,y){I.JSC$10072_active_=!1;I.JSC$10072_xhr_&&(I.inAbort_=!0,I.JSC$10072_xhr_.abort(),I.inAbort_=!1);I.JSC$10072_lastError_=y;I.JSC$10072_lastErrorCode_=5;N6O(I);hXO(I)},N6O=function(I){I.errorDispatched_||(I.errorDispatched_=!0,I.dispatchEvent("complete"),I.dispatchEvent("error"))};
_.L9.prototype.abort=function(I){this.JSC$10072_xhr_&&this.JSC$10072_active_&&(this.JSC$10072_active_=!1,this.inAbort_=!0,this.JSC$10072_xhr_.abort(),this.inAbort_=!1,this.JSC$10072_lastErrorCode_=I||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),hXO(this))};
_.L9.prototype.disposeInternal=function(){this.JSC$10072_xhr_&&(this.JSC$10072_active_&&(this.JSC$10072_active_=!1,this.inAbort_=!0,this.JSC$10072_xhr_.abort(),this.inAbort_=!1),hXO(this,!0));_.L9.superClass_.disposeInternal.call(this)};
_.L9.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)xCu(this);else this.onReadyStateChangeEntryPoint_()};
_.L9.prototype.onReadyStateChangeEntryPoint_=function(){xCu(this)};
var xCu=function(I){if(I.JSC$10072_active_&&typeof dS_!="undefined")if(I.inSend_&&_.Jd(I)==4)setTimeout(I.onReadyStateChange_.bind(I),0);else if(I.dispatchEvent("readystatechange"),I.isComplete()){I.JSC$10072_active_=!1;try{if(I.isSuccess())I.dispatchEvent("complete"),I.dispatchEvent("success");else{I.JSC$10072_lastErrorCode_=6;try{var y=_.Jd(I)>2?I.JSC$10072_xhr_.statusText:""}catch(D){y=""}I.JSC$10072_lastError_=y+" ["+I.getStatus()+"]";N6O(I)}}finally{hXO(I)}}},hXO=function(I,y){if(I.JSC$10072_xhr_){I.JSC$10072_timeoutId_&&
(clearTimeout(I.JSC$10072_timeoutId_),I.JSC$10072_timeoutId_=null);
var D=I.JSC$10072_xhr_;I.JSC$10072_xhr_=null;y||I.dispatchEvent("ready");try{D.onreadystatechange=null}catch(F){}}};
_.L9.prototype.isActive=function(){return!!this.JSC$10072_xhr_};
_.L9.prototype.isComplete=function(){return _.Jd(this)==4};
_.L9.prototype.isSuccess=function(){var I=this.getStatus(),y;if(!(y=tFu(I))){if(I=I===0)I=QDM(String(this.JSC$10072_lastUri_)),I=!UC_.test(I);y=I}return y};
_.Jd=function(I){return I.JSC$10072_xhr_?I.JSC$10072_xhr_.readyState:0};
_.L=_.L9.prototype;_.L.getStatus=function(){try{return _.Jd(this)>2?this.JSC$10072_xhr_.status:-1}catch(I){return-1}};
_.L.getResponseText=function(){try{return this.JSC$10072_xhr_?this.JSC$10072_xhr_.responseText:""}catch(I){return""}};
_.L.getResponse=function(){try{if(!this.JSC$10072_xhr_)return null;if("response"in this.JSC$10072_xhr_)return this.JSC$10072_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10072_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10072_xhr_)return this.JSC$10072_xhr_.mozResponseArrayBuffer}return null}catch(I){return null}};
_.L.getAllResponseHeaders=function(){return this.JSC$10072_xhr_&&_.Jd(this)>=2?this.JSC$10072_xhr_.getAllResponseHeaders()||"":""};
_.L.getLastError=function(){return typeof this.JSC$10072_lastError_==="string"?this.JSC$10072_lastError_:String(this.JSC$10072_lastError_)};var mCS=function(){};
mCS.prototype.send=function(I,y,D){y=y===void 0?function(){}:y;
D=D===void 0?function(){}:D;
IjL(I.url,function(F){F=F.target;F.isSuccess()?y(F.getResponseText()):D(F.getStatus())},I.requestType,I.body,I.requestHeaders,I.timeoutMillis,I.withCredentials)};
mCS.prototype.getTransmissionType=function(){return 1};var lFg=function(I,y){this.jQ9=I;this.event=y;this.startTime=MJ()},cG4;
lFg.prototype.done=function(){this.jQ9.vH(this.event,MJ()-this.startTime)};
var wn=function(){mW.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.E(wn,mW);_.vv=function(I,y,D){var F=MJ();y=y();I.vH(D,MJ()-F);return y};
cG4=function(){wn.apply(this,arguments)};
_.E(cG4,wn);_.L=cG4.prototype;_.L.xlf=function(){};
_.L.j0=function(){};
_.L.vH=function(){};
_.L.logError=function(){};
_.L.oB=function(){};
_.L.vUM=function(){};
_.L.cac=function(){};
_.L.gUt=function(){};
var uhW=function(I){wn.call(this);var y=this;this.kG=I;this.TEST_ONLY={vM5:function(){return y.kG},
getExperimentIds:function(){return y.kG.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void y.kG.dispose()})};
_.E(uhW,wn);_.L=uhW.prototype;_.L.update=function(I){this.kG.dispose();this.kG=I};
_.L.j0=function(I){this.kG.j0(I)};
_.L.vH=function(I,y){this.kG.vH(I,y)};
_.L.logError=function(I){this.kG.logError(I)};
_.L.oB=function(){this.kG.oB()};
_.L.vUM=function(I){this.kG.vUM(I)};
_.L.cac=function(I){this.kG.cac(I)};
_.L.gUt=function(I){this.kG.gUt(I)};
_.L.xlf=function(I){this.kG.xlf(I)};
var qJP=function(I,y){_.B5.call(this);var D=this;this.callback=I;this.hm5=y;this.nks=-y;this.addOnDisposeCallback(function(){return void clearTimeout(D.timer)})};
_.E(qJP,_.B5);var EfO=function(I){if(I.timer===void 0){var y=Math.max(0,I.nks+I.hm5-MJ());I.timer=setTimeout(function(){try{I.callback()}finally{I.nks=MJ(),I.timer=void 0}},y)}},GPn=function(I,y){wn.call(this);
this.metrics=I;this.uR=y};
_.E(GPn,wn);_.L=GPn.prototype;_.L.xlf=function(I){this.metrics.zBb.record(I,this.uR)};
_.L.j0=function(I){this.metrics.eventCount.increment(I,this.uR)};
_.L.vH=function(I,y){this.metrics.zZu.record(y,I,this.uR)};
_.L.logError=function(I){this.metrics.errorCount.increment(I,this.uR)};
_.L.vUM=function(I){this.metrics.hg5.increment(I,this.uR)};
_.L.cac=function(I){this.metrics.sGK.increment(I,this.uR)};
_.L.gUt=function(I){this.metrics.iIb.increment(I,this.uR)};
var WwC=function(I,y){y=y===void 0?[]:y;var D={uR:I.uR||"_",acv:I.acv||[],eEv:I.eEv|0,destinationUrl:I.destinationUrl,rIM:I.rIM||function(){},
k0t:I.k0t||function(O,w){return aFe(O,w,D.rIM,D.destinationUrl)}},F=D.k0t("52",D.acv.concat(y));
GPn.call(this,{zBb:new wmc(F),errorCount:new PSP(F),eventCount:new Suu(F),zZu:new tRa(F),bf7:new vMM(F),hg5:new KOG(F),sGK:new UaW(F),iIb:new ruz(F)},D.uR);var R=this;this.TEST_ONLY={getExperimentIds:function(){return R.options.acv.concat(R.mLf).sort(function(O,w){return O-w})}};
this.options=D;this.service=F;this.vRS=!I.k0t;this.flushDebouncer=new qJP(function(){return void R.service.snapshotAndFlush()},D.eEv);
this.addOnDisposeCallback(function(){R.flushDebouncer.dispose();R.vRS&&R.service.dispose()});
(this.mLf=y.slice()).sort(_.z4q)};
_.E(WwC,GPn);WwC.prototype.oB=function(){EfO(this.flushDebouncer)};var h__=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(h__,_.KS);_.xIH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(_.xIH,_.KS);var Js=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,0,Js.messageId)};
_.E(Js,_.KS);var XiM=_.wdC(Js);Js.messageId="bfkj";var tF_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(tF_,_.KS);var Q8u=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Q8u,_.KS);var YJa=_.nS(Q8u);_.n0=function(){var I=this;this.promise=new Promise(function(y,D){I.resolve=y;I.reject=D})};_.SU=function(I){_.B5.call(this);var y=this;this.liS=Math.floor(Math.random()*200);this.mDp=new Q8u;if("challenge"in I&&XiM(I.challenge)){var D=_.Tp(I.challenge,4,void 0,za);var F=_.Tp(I.challenge,5,void 0,za);_.Tp(I.challenge,7,void 0,za)&&(this.mDp=YJa(_.Tp(I.challenge,7,void 0,za)))}else D=I.program,F=I.globalName;this.addOnDisposeCallback(function(){var q,X,f;return _.S(function(m){if(m.nextAddress==1)return m.yield(y.rWu,2);q=m.yieldResult;X=q.gGC;(f=X)==null||f();_.Cj(m)})});
this.dW=CPq(I.rKt||{},this.mDp);_.pW(this,this.dW);var R=new _.n0;this.rWu=R.promise;this.dW.j0("t");var O=this.dW.share(),w=new lFg(O,"t"),v=function(q,X,f,m){if(!y.dW.isDisposed()){var z="k";X?z="h":f&&(z="u");z!=="k"?m!==0&&(y.dW.j0(z),y.dW.vH(z,q)):y.liS<=0?(y.dW.j0(z),y.dW.vH(z,q),y.liS=Math.floor(Math.random()*200)):y.liS--}},P=function(q,X,f,m){Promise.resolve().then(function(){w.done();
O.oB();O.dispose();R.resolve({zcm:q,gGC:X,l8b:f,kd2:m})})};
if(!_.Ft[F])throw this.dW.logError(25),Error("Ca");if(!_.Ft[F].a)throw this.dW.logError(26),Error("Da");try{var K=_.Ft[F].a;F=[];for(var r=[],N=PPC(this.mDp),h=0;h<N.length;h++)F.push(N[h]),r.push(1);var x=Kwq(this.mDp);for(N=0;N<x.length;N++)F.push(x[N]),r.push(2);this.u2z=_.J(K(D,P,!0,I.y07,v,[F,r],_.Tp(this.mDp,5),!1)).next().value;this.oTt=R.promise.then(function(){})}catch(q){throw this.dW.logError(28),q;
}};
_.E(_.SU,_.B5);_.SU.prototype.snapshot=function(I){if(this.isDisposed())throw Error("Ea");this.dW.j0("n");var y=this.dW.share();return this.rWu.then(function(D){var F=D.zcm;return new Promise(function(R){var O=new lFg(y,"n");F(function(w){O.done();y.xlf(w.length);y.oB();y.dispose();R(w)},[I.jH,
I.klc,I.udY,I.bYs])})})};
_.SU.prototype.uLK=function(I){this.rWu.then(function(y){var D;(D=y.l8b)==null||D(I)})};
_.SU.prototype.vnf=function(I,y){return this.rWu.then(function(D){var F;return(F=D.kd2)==null?void 0:F(I,y,!1)})};
_.SU.prototype.nDt=function(){return this.dW.share()};var fFz=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(fFz,_.KS);var UUe=_.wdC(fFz);var nfu=function(){this.promises={};this.vNH=null},piG=function(){nfu.instance||(nfu.instance=new nfu);
return nfu.instance},MFu=function(I,y){return mCz(I,_.kk(y,h__,1,za),_.kk(y,_.xIH,2,za),_.Tp(y,3,void 0,za))},mCz=function(I,y,D,F){if(!y&&!D)return Promise.resolve();
if(!F)return bRq(y,D);var R;(R=I.promises)[F]||(R[F]=new Promise(function(O,w){bRq(y,D).then(function(){I.vNH=F;O()},function(v){delete I.promises[F];
w(v)})}));
return I.promises[F]};var zXW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(zXW,_.KS);var kPc=function(I,y){return _.wT(I,1,y)},dCe=function(I,y){return _.wT(I,2,y)};var td=function(I){_.B5.call(this);var y=this;this.options=I;this.uzg=new _.n0;this.oTt=this.uzg.promise;this.lzc=new _.n0;this.efK=1;this.t2p=new _.n0;this.wqg=[];this.isPaused=!1;this.d0c=I.d0c||function(){};
this.lIc=new uhW(CPq(I.rKt||{}));aFa(this,I.fW,I.nP2,I.wYj,I.nso,Object.assign({},cGn,I.guv||{}));this.addOnDisposeCallback(function(){return void WwR(y)})};
_.E(td,_.B5);td.prototype.snapshot=function(I){var y=this;return _.S(function(D){switch(D.nextAddress){case 1:if(y.isDisposed())throw Error("Ea");if(y.fL||y.clc){D.jumpTo(2);break}return D.yield(y.lzc.promise,2);case 2:if(!y.fL){D.jumpTo(4);break}return D.yield(y.fL.snapshot(I),5);case 5:return D.return(D.yieldResult);case 4:throw y.clc;}})};
td.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.uG&&this.uG.pause())};
td.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.uG&&this.uG.resume())};
td.prototype.checkForRefresh=function(){var I=this;return _.S(function(y){if(I.isDisposed())throw Error("Ea");var D;if(D=I.uG)D=I.uG,D.isExpired()?(CPO(D),D.resolver(0),D=!0):D=!1,D=!D;return D?y.jumpTo(0):y.yield(I.t2p.promise,0)})};
var iRG=function(I){var y;return _.S(function(D){if(I.isDisposed())throw Error("Ea");(y=I.uG)==null||B6W(y);return D.yield(I.t2p.promise,0)})},WwR=function(I){I.clc=Error("Ga");
I.lzc.resolve();UC5(I.uzg.promise);I.uzg.reject(Error("Ga"));I.lIc.dispose();Promise.all(I.wqg).then(function(){var D;return _.S(function(F){(D=I.fL)==null||D.dispose();I.fL=void 0;_.Cj(F)})});
I.wqg=[];var y;(y=I.uG)==null||B6W(y);UC5(I.t2p.promise);I.t2p.reject(Error("Ga"))};
td.prototype.uLK=function(I){var y,D;(y=this.fL)==null||(D=y.uLK)==null||D.call(y,I)};
td.prototype.vnf=function(I,y){var D,F,R;return(R=(D=this.fL)==null?void 0:(F=D.vnf)==null?void 0:F.call(D,I,y))!=null?R:Promise.resolve()};
var AGW=function(I,y){var D=I.d0c;I.d0c=function(){D();y()}},$CM=function(I,y){I.isDisposed()||(I.fL=y,I.lIc.update(y.nDt()),I.lzc.resolve(),I.uzg.resolve(void 0),I.d0c())};
td.prototype.handleError=function(I){if(!this.isDisposed()){this.clc=I;this.lzc.resolve();var y,D;(D=(y=this.options).re5)==null||D.call(y,I)}};
var bRO=function(I,y){y&&(Promise.all(I.wqg).then(function(){return void y.dispose()}),I.wqg=[])},Pv=function(I,y){I.efK=y;
var D,F;(F=(D=I.options).fM6)==null||F.call(D,y)},HRc=function(I){I.isDisposed()||(I.t2p.resolve(),I.t2p=new _.n0)},aFa=function(I,y,D,F,R,O){F=F===void 0?piG():F;
R=R===void 0?Promise.resolve(void 0):R;var w,v,P,K,r,N,h,x,q,X,f,m;_.S(function(z){switch(z.nextAddress){case 1:return z.yield(0,3);case 3:v=null;if(!w){z.jumpTo(6);break}Pv(I,7);_.nj(z,7);return z.yield(c5(w.snapshot({}),O.gaf,function(){return Promise.resolve("E:CTO")}),9);
case 9:v=z.yieldResult;_.lZ(z,6);break;case 7:_.dj(z),v="E:UCE";case 6:P=void 0,K=w?O.vW2:O.lY7,r=new Qe(K,O.r6S,O.xfX,O.gWP),N=1;case 10:if(!(N<=O.maxAttempts)){z.jumpTo(12);break}if(N===1){z.jumpTo(13);break}Pv(I,0);I.uG=new K9(r.getValue(),O.mHM,O.yGO);return z.yield(I.uG.promise,14);case 14:h=z.yieldResult,I.uG=void 0,h===1?(N=1,r.reset()):RYO(r);case 13:_.nj(z,15);x=void 0;if(D){x=D;z.jumpTo(17);break}Pv(I,5);q=F.vNH;return z.yield(c5(eXG(y,q,v),O.xHm,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:x=z.yieldResult;case 17:return Pv(I,3),z.yield(c5(MFu(F,x),O.tvo,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return Pv(I,8),z.yield(R,20);case 20:return X=new _.SU({challenge:x,rKt:I.options.rKt,y07:I.options.y07}),z.yield(c5(X.oTt,O.wxz,function(){return Promise.reject(Error("Ja"))}),21);
case 21:P=X;z.jumpTo(12);break;case 15:f=_.dj(z),I.handleError(f),HRc(I);case 11:N++;z.jumpTo(10);break;case 12:if(I.isDisposed()){z.jumpTo(5);break}P&&(D=void 0,bRO(I,w),w=P,$CM(I,P),HRc(I));Pv(I,2);I.uG=new K9(O.fQ7,O.mHM,O.yGO);I.isPaused&&I.uG.pause();return z.yield(I.uG.promise,22);case 22:I.uG=void 0;if(I.isDisposed()){z.jumpTo(5);break}z.jumpTo(3);break;case 5:(m=w)==null||m.dispose(),_.Cj(z)}})};
td.prototype.nDt=function(){return this.lIc.share()};
var cGn={fQ7:432E5,mHM:3E5,yGO:10,gaf:1E4,xHm:3E4,tvo:3E4,wxz:6E4,lY7:1E3,vW2:6E4,r6S:6E5,xfX:.25,gWP:2,maxAttempts:10},K9=function(I,y,D){var F=this;this.endTimeMs=0;this.uwf=null;this.isPaused=!1;this.tick=function(){if(!F.isPaused){var R=F.endTimeMs-Date.now();R<=F.tys?(F.uwf=null,F.resolver(0)):F.uwf=setTimeout(F.tick,Math.min(R,F.mHM))}};
this.mHM=y;this.tys=D;this.promise=new Promise(function(R){F.resolver=R});
T6R(this,I)},T6R=function(I,y){I.endTimeMs=Date.now()+y;
I.tick()};
K9.prototype.pause=function(){this.isPaused||(this.isPaused=!0,CPO(this))};
K9.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var B6W=function(I){CPO(I);I.endTimeMs=0;I.isPaused=!1;I.resolver(1)},CPO=function(I){I.uwf&&(clearTimeout(I.uwf),I.uwf=null)};
K9.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var s8c,T6C=(s8c=Math.imul)!=null?s8c:function(I,y){return I*y|0},W5=[196,
200,224,18],U7=function(I,y,D){D=D===void 0?[]:D;this.maxItems=I;this.sF=y===void 0?0:y;this.ak=D},VFM=function(I){var y=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!y)return new U7(I);var D=y.split(",");if(D.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new U7(I);y=D.slice(1);y.length===1&&y[0]===""&&(y=[]);D=Number(D[0]);return isNaN(D)||D<0||D>y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new U7(I)):new U7(I,D,y)};
U7.prototype.serialize=function(){return String(this.sF)+","+this.ak.join()};
U7.prototype.insert=function(I,y){var D=void 0;if(this.ak[this.sF]!==I){var F=this.ak.indexOf(I);F!==-1?(this.ak.splice(F,1),F<this.sF&&this.sF--,this.ak.splice(this.sF,0,I)):(D=this.ak[this.sF],this.ak[this.sF]=I)}this.sF=(this.sF+1)%this.maxItems;I=HRq("iU5q-!O9@$",this.serialize());D&&I&&y(D);return I};
var ZRu=function(I,y){this.qhu=y;try{var D=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(F){D=!1}D&&(this.index=VFM(I))},gfG=function(I,y,D,F,R){var O=I.index?_.vv(I.qhu,function(){return gfH(I.index,VFJ(y),D,F,R)},"W"):"u";
I.qhu.gUt(O)},IT_=function(I,y,D){var F=_.J(I.index?_.vv(I.qhu,function(){return IT5(VFJ(y),D)},"R"):["u"]),R=F.next().value;
F=F.next().value;I.qhu.cac(R);return F};var y0W={toString:function(I){var y=[],D=0;I-=-2147483648;y[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(I%52);for(I=Math.floor(I/52);I>0;)y[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(I%62),I=Math.floor(I/62);return y.join("")}};var R5g=function(I){I=DoP(I);for(var y=2654435769,D=2654435769,F=314159265,R=I.length,O=R,w=0,v=function(){y-=D;y-=F;y^=F>>>13;D-=F;D-=y;D^=y<<8;F-=y;F-=D;F^=D>>>13;y-=D;y-=F;y^=F>>>12;D-=F;D-=y;D^=y<<16;F-=y;F-=D;F^=D>>>5;y-=D;y-=F;y^=F>>>3;D-=F;D-=y;D^=y<<10;F-=y;F-=D;F^=D>>>15};O>=12;O-=12,w+=12)y+=F_f(I,w),D+=F_f(I,w+4),F+=F_f(I,w+8),v();
F+=R;switch(O){case 11:F+=I[w+10]<<24;case 10:F+=I[w+9]<<16;case 9:F+=I[w+8]<<8;case 8:D+=I[w+7]<<24;case 7:D+=I[w+6]<<16;case 6:D+=I[w+5]<<8;case 5:D+=I[w+4];case 4:y+=I[w+3]<<24;case 3:y+=I[w+2]<<16;case 2:y+=I[w+1]<<8;case 1:y+=I[w]}v();return y0W.toString(F)},DoP=function(I){for(var y=[],D=0;D<I.length;D++)y.push(I.charCodeAt(D));
return y},F_f=function(I,y){return I[y]+(I[y+1]<<8)+(I[y+2]<<16)+(I[y+3]<<24)};var rn=function(I){_.B5.call(this);this.eQ=I;this.asS=new _.n0};
_.E(rn,_.B5);var Ovg=function(I,y){var D=setTimeout(function(){I.asS.resolve()},y);
I.addOnDisposeCallback(function(){return void clearTimeout(D)})};
rn.prototype.xBp=function(I,y){var D=this.fJ(I);y==null||y(D);return _.vv(this.eQ,function(){return _.VB(D,2)},this.v6u)};
var L_z=function(I,y,D,F){return _.vv(I.eQ,function(){return D?I.xBp(y,F):I.fJ(y,F)},I.yKv)},J0e=function(I,y,D,F){rn.call(this,I);
this.a2s=y;this.f0X=D;this.yKv="m";this.v6u="x";this.jOo=0;Ovg(this,F)};
_.E(J0e,rn);J0e.prototype.fJ=function(I,y){var D=this;this.eQ.j0(this.yKv);++this.jOo>=this.f0X&&this.asS.resolve();var F=I();I=_.vv(this.eQ,function(){return D.a2s(F)},"C");
if(I===void 0)throw new nA(17,"YNJ:Undefined");if(!(I instanceof Uint8Array))throw new nA(18,"ODM:Invalid");y==null||y(I);return I};
var w1M=function(I,y,D){rn.call(this,I);this.vH9=y;this.yKv="f";this.v6u="z";Ovg(this,D)};
_.E(w1M,rn);w1M.prototype.fJ=function(){return this.vH9};
var vkO=function(I,y,D){rn.call(this,I);this.gLY=y;this.yKv="w";this.v6u="z";Ovg(this,D)};
_.E(vkO,rn);vkO.prototype.fJ=function(){var I=this;return _.vv(this.eQ,function(){return _.ZC(I.gLY)},"d")};
vkO.prototype.xBp=function(){return this.gLY};
var Sln=function(I,y){rn.call(this,I);this.error=y;this.yKv="e";this.v6u="y"};
_.E(Sln,rn);var tAe=function(I,y){var D=(y(I.error.message)+":"+y(I.error.stack)).substring(0,2048);y=D.length+1;D=y0t(D);var F=new Uint8Array(4+D.length);F.set([42,y&127|128,y>>7,I.error.code]);F.set(D,4);return F};
Sln.prototype.fJ=function(){if(this.xAm)return this.xAm;this.xAm=tAe(this,function(I){return"_"+R5g(I)});
return tAe(this,function(I){return I})};
var PZW=function(I,y,D){rn.call(this,I);this.hPu=y;this.clientState=D;this.yKv="S";this.v6u="q"};
_.E(PZW,rn);PZW.prototype.fJ=function(){var I=Math.floor(Date.now()/1E3),y=[Math.random()*255,Math.random()*255],D=y.concat([this.hPu&255,this.clientState],[I>>24&255,I>>16&255,I>>8&255,I&255]);I=new Uint8Array(2+D.length);I[0]=34;I[1]=D.length;I.set(D,2);D=I.subarray(2);for(var F=y=y.length;F<D.length;++F)D[F]^=D[F%y];this.eQ.vUM(this.clientState);return I};var K_P={yx7:3E4,mUB:2E4},jU=function(I){_.B5.call(this);var y=this;this.cDx=new _.n0;this.a2C=0;this.eq=void 0;this.state=2;this.vm=I.vm;this.fW=I.fW;this.guv=Object.assign({},K_P,I.guv||{});this.d2=I.vm.nDt();var D;this.onError=(D=I.onError)!=null?D:function(){};
this.vFk=I.vFk||!1;if(Uoz(I)){var F=this.vm;this.oo0=function(){return iRG(F).catch(function(w){w=y.reportError(new nA(y.nN?20:32,"TRG:Disposed",w));y.eq=w;var v;(v=y.nN)==null||v.dispose();y.nN=void 0;y.cDx.reject(w)})};
AGW(F,function(){return void r0P(y)});
F.efK===2&&r0P(this)}else this.oo0=I.wZm,r0P(this);var R=this.d2.share();R.j0("o");var O=new lFg(R,"o");this.cDx.promise.then(function(){O.done();R.oB();R.dispose()},function(){return void R.dispose()});
this.addOnDisposeCallback(function(){y.nN?(y.nN.dispose(),y.nN=void 0):y.eq?y.d2.oB():(y.eq=y.reportError(new nA(32,"TNP:Disposed")),y.d2.oB(),y.cDx.reject(y.eq))});
_.pW(this,this.d2)};
_.E(jU,_.B5);jU.prototype.aik=function(){return this.cDx.promise};
var jCW=function(I,y){if(!(y instanceof nA))if(y instanceof _.Ra){var D=Error(y.toString());D.stack=y.stack;y=new nA(11,"EBH:Error",D)}else y=new nA(12,"BSO:Unknown",y);return I.reportError(y)},r0P=function(I){var y,D,F,R,O,w,v,P,K,r,N,h,x,q,X;
return _.S(function(f){switch(f.nextAddress){case 1:y=void 0;I.a2C++;D=new _.n0;I.vm instanceof td&&I.vm.wqg.push(D.promise);if(!I.vFk){f.jumpTo(2);break}F=new _.n0;setTimeout(function(){return void F.resolve()});
return f.yield(F.promise,2);case 2:return R=I.d2.share(),_.nj(f,4,5),I.state=5,O={},w=[],f.yield(c5(I.vm.snapshot({jH:O,udY:w}),I.guv.mUB,function(){return Promise.reject(new nA(15,"MDA:Timeout"))}),7);
case 7:v=f.yieldResult;if(I.isDisposed())throw new nA(I.nN?20:32,"MDA:Disposed");P=w[0];I.state=6;return f.yield(c5(okP(I.fW,v),I.guv.yx7,function(){return Promise.reject(new nA(10,"BWB:Timeout"))}),8);
case 8:K=f.yieldResult;if(I.isDisposed())throw new nA(I.nN?20:32,"BWB:Disposed");I.state=7;y=_.vv(R,function(){var z=N1a(I,K,D,P);z.asS.promise.then(function(){return void I.oo0()});
return z},"i");
case 5:_.m4(f);R.dispose();_.kQ(f,6);break;case 4:r=_.dj(f);(N=y)==null||N.dispose();if(!I.eq){h=jCW(I,r);D.resolve();var m;if(m=I.vm instanceof td&&I.a2C<2)a:if(r instanceof nA)m=r.code!==32&&r.code!==20&&r.code!==10;else{if(r instanceof _.Ra)switch(r.code){case 2:case 13:case 14:case 4:break;default:m=!1;break a}m=!0}if(m)return x=(1+Math.random()*.25)*(I.nN?6E4:1E3),q=setTimeout(function(){return void I.oo0()},x),I.addOnDisposeCallback(function(){return void clearTimeout(q)}),f.return();
I.eq=h}R.logError(I.nN?13:14);I.cDx.reject(I.eq);return f.return();case 6:I.state=8,I.a2C=0,(X=I.nN)==null||X.dispose(),I.nN=y,I.cDx.resolve(),_.Cj(f)}})},N1a=function(I,y,D,F){var R=yeM(y,2)*1E3;
if(R<=0)throw new nA(31,"TTM:Invalid");if(_.Tp(y,4))return new vkO(I.d2,_.Tp(y,4),R);if(!yeM(y,3))return new w1M(I.d2,cMR(_.Cz(y,1)),R);if(!F)throw new nA(4,"PMD:Undefined");F=F(cMR(_.Cz(y,1)));if(!(F instanceof Function))throw new nA(16,"APF:Failed");I.xLP=Math.floor((Date.now()+R)/1E3);I=new J0e(I.d2,F,yeM(y,3),R);I.addOnDisposeCallback(function(){return void D.resolve()});
return I};
jU.prototype.fJ=function(I){return h5g(this,Object.assign({},I),!1)};
jU.prototype.xBp=function(I){return h5g(this,Object.assign({},I),!0)};
jU.prototype.b1j=function(I){if(I>150)return!1;try{return this.cache=new ZRu(I,this.d2),!0}catch(y){return this.reportError(new nA(22,"GBJ:init",y)),!1}};
jU.prototype.reportError=function(I){this.d2.logError(I.code);this.onError(I);return I};
var xoM=function(I,y){y=y instanceof nA?y:new nA(5,"TVD:error",y);return I.reportError(y)},h5g=function(I,y,D){try{if(I.isDisposed())throw new nA(21,"BNT:disposed");
if(!I.nN&&I.eq)throw I.eq;var F,R;return(R=(F=lTg(I,y,D))!=null?F:uGa(I,y,D))!=null?R:qlW(I,y,D)}catch(O){if(!y.kam)throw xoM(I,O);return Ek_(I,D,O)}},lTg=function(I,y,D){var F;
return(F=I.nN)==null?void 0:L_z(F,function(){return Gmg(I,y)},D,function(R){var O;
if(I.nN instanceof J0e&&((O=y.so)==null?0:O.o2u))try{var w;(w=I.cache)==null||gfG(w,Gmg(I,y),R,y.so.gKH,I.xLP-120)}catch(v){I.reportError(new nA(24,"ELX:write",v))}})},uGa=function(I,y,D){var F;
if((F=y.so)!=null&&F.lbe)try{var R,O=(R=I.cache)==null?void 0:IT_(R,Gmg(I,y),y.so.gKH);return O?D?_.vv(I.d2,function(){return _.VB(O,2)},"a"):O:void 0}catch(w){I.reportError(new nA(23,"RXO:read",w))}},qlW=function(I,y,D){var F={stack:[],
error:void 0,hasError:!1};try{if(!y.y2j)throw new nA(29,"SDF:notready");return L_z(i5W(F,new PZW(I.d2,0,I.state)),function(){return Gmg(I,y)},D)}catch(R){F.error=R,F.hasError=!0}finally{ALe(F)}},Ek_=function(I,y,D){var F={stack:[],
error:void 0,hasError:!1};try{var R=xoM(I,D);return L_z(i5W(F,new Sln(I.d2,R)),function(){return[]},y)}catch(O){F.error=O,F.hasError=!0}finally{ALe(F)}},Gmg=function(I,y){return y.tnt?y.tnt:y.jH?_.vv(I.d2,function(){return y.tnt=y0t(y.jH)},"c"):[]},Uoz=function(I){return dc(function(y){if(!Au(y))return!1;
for(var D=_.J(Object.entries(I)),F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;if(!(F in y)){if(R.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!R(y[F]))return!1}return!0})}({vm:function(I){return dc(function(y){return y instanceof I})}(td)},"");var X1z=function(){var I=_.XM();this.JSC$10190_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",uD("cookie_enabled"),uD("cookie_3p_enabled"),_.EW("browser"))};
X1z.prototype.increment=function(I,y,D){this.JSC$10190_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",I,y,D)};
var yi5=function(){var I=_.XM();this.JSC$10214_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",qJ("tick"),uD("from_st_cookie"))};
yi5.prototype.increment=function(I,y){this.JSC$10214_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",I,y)};
var QCz=function(){var I=_.XM();this.JSC$10220_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.EW("status"))};
QCz.prototype.increment=function(I){this.JSC$10220_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",I)};
var YlO=function(){var I=_.XM();this.JSC$10223_streamzService=I;I.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.EW("stage"),uD("is_using_ytd_player"),uD("has_expandable_tiles"))};
YlO.prototype.increment=function(I,y,D){this.JSC$10223_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",I,y,D)};
var fT_=function(){var I=_.XM();this.JSC$10226_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/response_signature",_.EW("check_status"))};
fT_.prototype.increment=function(I){this.JSC$10226_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/response_signature",I)};
var nkc=function(){var I=_.XM();this.JSC$10229_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.EW("sig"),qJ("de"))};
nkc.prototype.increment=function(I,y){this.JSC$10229_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/e_sig_log",I,y)};
var p1z=function(){var I=_.XM();this.JSC$10232_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.EW("sig"),qJ("de"))};
p1z.prototype.increment=function(I,y){this.JSC$10232_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/e_sig_en",I,y)};
_.moe=function(){var I=_.XM();this.JSC$10235_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.EW("action"))};
_.moe.prototype.increment=function(I){this.JSC$10235_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/enforcement_intent",I)};var oa=window;var MAn=(new Date).getTime();_.e$.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.e$.createSet("action","cite","data","formaction","href","manifest","poster","src");var z5P=function(I){this.servicePromise_=I;I.then((0,_.iD)(function(){},this),function(){},this)},kmg=function(I,y,D){I.servicePromise_.then(function(F){var R=F[y];
if(!R)throw Error("Ka`"+y);return R.apply(F,D)})},c0a=function(I,y,D){for(var F=Array(arguments.length-2),R=2;R<arguments.length;R++)F[R-2]=arguments[R];
R=doa(I,y).then(function(O){return O.apply(null,F)},function(O){O=Error("La`"+y+"`"+I+"`"+O,{cause:O});
delete aTP[y];return _.eE(O)});
return new z5P(R)},aTP={},doa=function(I,y){var D=aTP[y];
if(D)return D;D=(D=_.jF(y))?_.Xs(D):(new _.AO(function(F,R){var O=(new Zh(document)).createElement("SCRIPT");O.async=!0;_.Uk(O,_.c$(zqO(I)));O.onload=O.onreadystatechange=function(){O.readyState&&O.readyState!="loaded"&&O.readyState!="complete"||F()};
O.onerror=function(w){R(Error("Ma`"+y+"`"+I,{cause:w}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(O)})).then(function(){var F=_.jF(y);
if(!F)throw Error("Na`"+y+"`"+I);return F});
return aTP[y]=D};var W_e={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},B1P=function(){var I=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=DoA(function(){return _.S(function(y){if(y.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?y.return(Promise.resolve()):y.yield(CZW(I),2);I.rsaForList.length>
0&&document.addEventListener("click",I.requestAccessForHelpPanel);_.Cj(y)})});
this.requestAccessForHelpPanel=function(){if(!(I.rsaForPromises.length>0)){for(var y=_.J(I.rsaForList),D=y.next();!D.done;D=y.next()){D=D.value;try{I.rsaForPromises.push(document.requestStorageAccessFor(D))}catch(F){}}Promise.all(I.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){I.reset()})}}};
B1P.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var CZW=function(I){var y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:y=_.J(Object.values(W_e)),D=y.next();case 2:if(D.done){O.jumpTo(0);break}F=D.value;_.nj(O,5);return O.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:F}),7);case 7:R=O.yieldResult;R.state!=="granted"&&I.rsaForList.push(F);_.lZ(O,3);break;case 5:_.dj(O);O.jumpTo(0);break;case 3:D=y.next(),O.jumpTo(2)}})};(new B1P).initialize();var ivR=function(I){this.JSC$10249_loader_=I};
ivR.prototype.startHelp=function(I){kmg(this.JSC$10249_loader_,"startHelp",arguments)};
ivR.prototype.JSC$10251_loadChatSupport=function(I){kmg(this.JSC$10249_loader_,"loadChatSupport",arguments)};
var $o_=function(I,y){y=y||{};I=c0a(A0g,"help.service.Lazy.create",I,{apiKey:y.apiKey||y.apiKey,asxUiUri:y.asxUiUri||y.asxUiUri,environment:y.environment||y.environment,flow:y.flow||y.flow,frdProductData:y.frdProductData||y.frdProductData,frdProductDataSerializedJspb:y.frdProductDataSerializedJspb||y.frdProductDataSerializedJspb,helpCenterPath:y.helpCenterPath||y.helpCenterPath,locale:y.locale||y.locale||"en-US".replace(/-/g,"_"),nonce:y.nonce||y.nonce,productData:y.productData||y.productData,receiverUri:y.receiverUri||
y.receiverUri,renderApiUri:y.renderApiUri||y.renderApiUri,theme:y.theme||y.theme,window:y.window||y.window});return new ivR(I)},A0g=new KT(e2_,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var bvg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(bvg,_.KS);var HvR=_.nS(bvg);var e5e=[0,_.NV,Pq,Hau];_.T1G=new function(I,y,D,F){this.configType=I;this.flagName=D;this.defaultValue=F;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 VAM=function(){this.retriever=_.nR().resolve(sCW)};_.x1={get payments(){return window.payments}};R5B(Node);R5B(Element);var ZvW=R5B(HTMLElement);R5B(SVGElement);var gkn,IJf,xr,yOG;gkn=function(I){return typeof I.className=="string"?I.className:I.getAttribute&&I.getAttribute("class")||""};
IJf=function(I){return I.classList?I.classList:gkn(I).match(/\S+/g)||[]};
_.N2=function(I,y){typeof I.className=="string"?I.className=y:I.setAttribute&&I.setAttribute("class",y)};
_.hd=function(I,y){return I.classList?I.classList.contains(y):_.kA(IJf(I),y)};
_.PU=function(I,y){if(I.classList)I.classList.add(y);else if(!_.hd(I,y)){var D=gkn(I);_.N2(I,D+(D.length>0?" "+y:y))}};
xr=function(I,y){if(I.classList)Array.prototype.forEach.call(y,function(R){_.PU(I,R)});
else{var D={};Array.prototype.forEach.call(IJf(I),function(R){D[R]=!0});
Array.prototype.forEach.call(y,function(R){D[R]=!0});
y="";for(var F in D)y+=y.length>0?" "+F:F;_.N2(I,y)}};
_.tf=function(I,y){I.classList?I.classList.remove(y):_.hd(I,y)&&_.N2(I,Array.prototype.filter.call(IJf(I),function(D){return D!=y}).join(" "))};
yOG=function(I,y){I.classList?Array.prototype.forEach.call(y,function(D){_.tf(I,D)}):_.N2(I,Array.prototype.filter.call(IJf(I),function(D){return!_.kA(y,D)}).join(" "))};var Dwf=function(I){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=I.document},Ouc=function(I,y){F$u(I);
var D=document.createElement("div"),F;(F=y.parentNode)==null||F.insertBefore(D,y);D.tabIndex=0;D.id="fc-focus-trap-pre-div";D=document.createElement("div");var R;(R=y.parentNode)==null||R.insertBefore(D,y.nextSibling);D.tabIndex=0;D.id="fc-focus-trap-post-div";var O=Rfe(I,y),w=Rfe(I,y,!0);O&&w&&(I.focusChangeHandler=function(){var v=I.document.activeElement;if(v)if(_.Uu(y,v))I.previouslyFocusedElement=v;else if(v===I.document.activeElement)switch(I.previouslyFocusedElement){case O:w.focus();I.previouslyFocusedElement=
w;break;default:O.focus(),I.previouslyFocusedElement=O}},I.document.addEventListener("focus",I.focusChangeHandler,!0),I.document.addEventListener("focusin",I.focusChangeHandler))},F$u=function(I){I.focusChangeHandler&&(document.removeEventListener("focus",I.focusChangeHandler,!0),document.removeEventListener("focusin",I.focusChangeHandler),I.focusChangeHandler=null);
var y;(y=document.getElementById("fc-focus-trap-pre-div"))==null||y.remove();var D;(D=document.getElementById("fc-focus-trap-post-div"))==null||D.remove()},L$P=function(I,y,D,F,R){D=D===void 0?!0:D;
var O;R=(O=R===void 0?null:R)!=null?O:Rfe(I,y,F===void 0?!1:F);R!==null&&(R.focus(),D&&Ouc(I,y))};
Dwf.prototype.disableButton=function(I,y){y=y===void 0?null:y;I.disabled=!0;y&&_.PU(I,y)};
var Rfe=function(I,y,D){D=D===void 0?!1:D;if(KjS(y)&&!D)return y;var F=D?[].slice.call(y.children,0).reverse():y.children;F=_.J(F);for(var R=F.next();!R.done;R=F.next())if(R=R.value,ZvW(R)&&(R=Rfe(I,R,D)))return R;return KjS(y)&&D?y:null};var JOO=function(I){this.originalBodyOverflow="";this.JSC$10276_domHelper=CG(I);var y;this.isScrollingEnabled=((y=this.JSC$10276_domHelper.JSC$9602_document_.body)==null?void 0:y.style.overflow)!=="hidden"};
JOO.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.EI(_.Av,_.B5);_.L=_.Av.prototype;_.L.JSC$10279_id_=0;_.L.disposeInternal=function(){_.Av.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10277_listener_;delete this.handler_};
_.L.start=function(I){this.stop();this.JSC$10279_id_=FI(this.callback_,I!==void 0?I:this.JSC$10277_interval_)};
_.L.stop=function(){this.isActive()&&_.Ft.clearTimeout(this.JSC$10279_id_);this.JSC$10279_id_=0};
_.L.fire=function(){this.stop();this.JSC$10279_doAction_()};
_.L.isActive=function(){return this.JSC$10279_id_!=0};
_.L.JSC$10279_doAction_=function(){this.JSC$10279_id_=0;this.JSC$10277_listener_&&this.JSC$10277_listener_.call(this.handler_)};_.H5=function(I){_.B5.call(this);this.handler_=I;this.JSC$10280_keys_={}};
_.EI(_.H5,_.B5);var wPR=[];_.H5.prototype.listen=function(I,y,D,F){Array.isArray(y)||(y&&(wPR[0]=y.toString()),y=wPR);for(var R=0;R<y.length;R++){var O=_.bV(I,y[R],D||this.handleEvent,F||!1,this.handler_||this);if(!O)break;this.JSC$10280_keys_[O.key]=O}return this};
_.H5.prototype.listenOnce=function(I,y,D,F){return v7f(this,I,y,D,F)};
var v7f=function(I,y,D,F,R,O){if(Array.isArray(D))for(var w=0;w<D.length;w++)v7f(I,y,D[w],F,R,O);else{y=Ib(y,D,F||I.handleEvent,R,O||I.handler_||I);if(!y)return I;I.JSC$10280_keys_[y.key]=y}return I};
_.H5.prototype.unlisten=function(I,y,D,F,R){if(Array.isArray(y))for(var O=0;O<y.length;O++)this.unlisten(I,y[O],D,F,R);else if(I=PZt(I,y,D||this.handleEvent,_.b_(F)?!!F.capture:!!F,R||this.handler_||this))iV(I),delete this.JSC$10280_keys_[I.key];return this};
_.H5.prototype.removeAll=function(){_.e$.forEach(this.JSC$10280_keys_,function(I,y){this.JSC$10280_keys_.hasOwnProperty(y)&&iV(I)},this);
this.JSC$10280_keys_={}};
_.H5.prototype.disposeInternal=function(){_.H5.superClass_.disposeInternal.call(this);this.removeAll()};
_.H5.prototype.handleEvent=function(){throw Error("Oa");};_.EI($W,_.B5);$W.prototype.connect=function(I){I&&I()};
$W.prototype.isConnected=function(){return!0};
$W.prototype.registerService=function(I,y,D){this.services_[I]={callback:y,objectPayload:!!D}};
$W.prototype.getService=function(I,y){var D=this.services_[I];return D?D:this.defaultService_?{callback:_.de(this.defaultService_,I),objectPayload:_.b_(y)}:null};
var S6f=function(I,y){if(y&&typeof I==="string")try{return JSON.parse(I)}catch(D){return null}else if(!y&&typeof I!=="string")return(0,_.O7)(I);return I};
$W.prototype.disposeInternal=function(){$W.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 T6=function(I,y){this.sequence_=[];this.onCancelFunction_=I;this.defaultScope_=y||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};
T6.prototype.cancel=function(I){if(this.fired_)this.result_ instanceof T6&&this.result_.cancel();else{if(this.parent_){var y=this.parent_;delete this.parent_;I?y.cancel(I):(y.branches_--,y.branches_<=0&&y.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new ld(this))}};
T6.prototype.continue_=function(I,y){this.blocked_=!1;tnc(this,I,y)};
var tnc=function(I,y,D){I.fired_=!0;I.result_=D;I.hadError_=!y;PHg(I)},Uwa=function(I){if(I.fired_){if(!I.silentlyCanceled_)throw new K$g(I);
I.silentlyCanceled_=!1}};
T6.prototype.callback=function(I){Uwa(this);tnc(this,!0,I)};
T6.prototype.errback=function(I){Uwa(this);tnc(this,!1,I)};
var w1J=function(I,y,D){ud(I,y,null,D)};
T6.prototype.finally=function(I){var y=this;return rOW(new Promise(function(D,F){ud(y,function(R){I();D(R)},function(R){I();
F(R)})}))};
var ud=function(I,y,D,F){var R=I.fired_;R||(y===D?y=D=gC(y):(y=gC(y),D=gC(D)));I.sequence_.push([y,D,F]);R&&PHg(I)};
T6.prototype.then=function(I,y,D){var F,R,O=new _.AO(function(w,v){R=w;F=v});
ud(this,R,function(w){w instanceof ld?O.cancel():F(w);return jrP},this);
return O.then(I,y,D)};
cIg(T6);var J0o=function(I,y){y instanceof T6?w1J(I,(0,_.iD)(y.branch,y)):w1J(I,function(){return y})};
T6.prototype.branch=function(I){var y=new T6;ud(this,y.callback,y.errback,y);I&&(y.parent_=this,this.branches_++);return y};
T6.prototype.isError=function(I){return I instanceof Error};
var o7W=function(I){return uH(I.sequence_,function(y){return typeof y[1]==="function"})},jrP={},PHg=function(I){if(I.unhandledErrorId_&&I.fired_&&o7W(I)){var y=I.unhandledErrorId_,D=N2M[y];
D&&(_.Ft.clearTimeout(D.JSC$10297_id_),delete N2M[y]);I.unhandledErrorId_=0}I.parent_&&(I.parent_.branches_--,delete I.parent_);y=I.result_;for(var F=D=!1;I.sequence_.length&&!I.blocked_;){var R=I.sequence_.shift(),O=R[0],w=R[1];R=R[2];if(O=I.hadError_?w:O)try{var v=O.call(R||I.defaultScope_,y);v===jrP&&(v=void 0);v!==void 0&&(I.hadError_=I.hadError_&&(v==y||I.isError(v)),I.result_=y=v);if(WEz(y)||typeof _.Ft.Promise==="function"&&y instanceof _.Ft.Promise)F=!0,I.blocked_=!0}catch(P){y=P,I.hadError_=
!0,o7W(I)||(D=!0)}}I.result_=y;F&&(v=(0,_.iD)(I.continue_,I,!0),F=(0,_.iD)(I.continue_,I,!1),y instanceof T6?(ud(y,v,F),y.blocking_=!0):y.then(v,F));D&&(y=new hfe(y),N2M[y.JSC$10297_id_]=y,I.unhandledErrorId_=y.JSC$10297_id_)},rOW=function(I){var y=new T6;
I.then(function(D){y.callback(D)},function(D){y.errback(D)});
return y},K$g=function(){_.Io.call(this)};
_.EI(K$g,_.Io);K$g.prototype.message="Deferred has already fired";K$g.prototype.name="AlreadyCalledError";var ld=function(){_.Io.call(this)};
_.EI(ld,_.Io);ld.prototype.message="Deferred was canceled";ld.prototype.name="CanceledError";var hfe=function(I){this.JSC$10297_id_=_.Ft.setTimeout((0,_.iD)(this.throwError,this),0);this.JSC$10297_error_=I};
hfe.prototype.throwError=function(){delete N2M[this.JSC$10297_id_];throw this.JSC$10297_error_;};
var N2M={};var xwP={1:"NativeMessagingTransport"},Sl4=["pu","lru","pru","lpu","ppu"],OvB=function(){for(var I=10,y=lJP,D=y.length,F="";I-- >0;)F+=y.charAt(Math.floor(Math.random()*D));return F},lJP="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var bD=function(I){_.B5.call(this);this.JSC$10300_domHelper_=I||CG()};
_.EI(bD,_.B5);bD.prototype.transportType=0;bD.prototype.getWindow=function(){return this.JSC$10300_domHelper_.getWindow()};
bD.prototype.getName=function(){return xwP[String(this.transportType)]||""};_.EI(sW,bD);sW.prototype.peerProtocolVersion_=null;sW.prototype.initialized_=!1;sW.prototype.transportType=1;var ugn={};sW.prototype.sendTimerId_=0;
var G8W=function(I){var y=I.event_.data;if(typeof y!=="string")return!1;var D=y.indexOf("|"),F=y.indexOf(":");if(D==-1||F==-1)return!1;var R=y.substring(0,D);D=y.substring(D+1,F);y=y.substring(F+1);if(F=ZZ[R])return F.xpcDeliver(D,y,I.event_.origin),!0;F=q6u(y)[0];for(var O in ZZ){var w=ZZ[O];if(L_S(w)==1&&!w.isConnected()&&D=="tp"&&(F=="SETUP"||F=="SETUP_NTPV2")&&E7e(w,I.event_.origin))return delete ZZ[w.name],w.name=R,ZZ[R]=w,w.xpcDeliver(D,y),!0}return!1},XPM=function(I){I.protocolVersion_!=2||
I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=2||I.send("tp","SETUP_NTPV2,"+I.endpointId_);
I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=1||I.send("tp","SETUP")},QrW=function(I,y){if(I.protocolVersion_!=2||I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=2||y!=2){if(I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=1||y!=1)return;
I.send("tp","SETUP_ACK")}else I.send("tp","SETUP_ACK_NTPV2");I.setupAckSent_.fired_||I.setupAckSent_.callback(!0)},Y6P=function(I,y){y>I.peerProtocolVersion_&&(I.peerProtocolVersion_=y);
I.peerProtocolVersion_==1&&(I.setupAckSent_.fired_||I.oneSidedHandshake_||I.setupAckSent_.callback(!0),I.peerEndpointId_=null)};
_.L=sW.prototype;_.L.connect=function(){var I=this.getWindow(),y=_.HH(I),D=ugn[y];typeof D!=="number"&&(D=0);D==0&&_.bV(I.postMessage?I:I.document,"message",G8W,!1,sW);ugn[y]=D+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.L.maybeAttemptToConnect_=function(){var I=L_S(this.JSC$10303_channel_)==0;this.oneSidedHandshake_&&I||this.JSC$10303_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),XPM(this))};
_.L.send=function(I,y){var D=this.JSC$10303_channel_.peerWindowObject_;D&&(this.send=function(F,R){var O=this,w=this.JSC$10303_channel_.name;this.sendTimerId_=FI(function(){O.sendTimerId_=0;try{var v=D.postMessage?D:D.document;v.postMessage&&v.postMessage(w+"|"+F+":"+R,O.peerHostname_)}catch(P){}},0)},this.send(I,y))};
_.L.notifyConnected_=function(){var I=this.JSC$10303_channel_,y=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;I.isConnected()||I.connectionDelay_&&I.connectionDelay_.isActive()||(I.state_=2,_.rM(I.connectionDelay_),y!==void 0?(I.connectionDelay_=new _.Av(I.connectCb_,y),I.connectionDelay_.start()):(I.connectionDelay_=null,I.connectCb_()))};
_.L.disposeInternal=function(){if(this.initialized_){var I=this.getWindow(),y=_.HH(I),D=ugn[y];ugn[y]=D-1;D==1&&_.V1(I.postMessage?I:I.document,"message",G8W,!1,sW)}this.sendTimerId_&&(_.Ft.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.rM(this.JSC$10303_eventHandler_);delete this.JSC$10303_eventHandler_;_.rM(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10303_connected_.cancel();delete this.JSC$10303_connected_;delete this.send;sW.superClass_.disposeInternal.call(this)};
var q6u=function(I){I=I.split(",");I[1]=I[1]||null;return I};var n7M;_.q2=function(I){if(I.getValues&&typeof I.getValues=="function")return I.getValues();if(typeof Map!=="undefined"&&I instanceof Map||typeof Set!=="undefined"&&I instanceof Set)return Array.from(I.values());if(typeof I==="string")return I.split("");if(_.i_(I)){for(var y=[],D=I.length,F=0;F<D;F++)y.push(I[F]);return y}return _.e$.getValues(I)};
_.fJf=function(I){if(I.getKeys&&typeof I.getKeys=="function")return I.getKeys();if(!I.getValues||typeof I.getValues!="function"){if(typeof Map!=="undefined"&&I instanceof Map)return Array.from(I.keys());if(!(typeof Set!=="undefined"&&I instanceof Set)){if(_.i_(I)||typeof I==="string"){var y=[];I=I.length;for(var D=0;D<I;D++)y.push(D);return y}return _.e$.getKeys(I)}}};
n7M=function(I,y,D){if(I.forEach&&typeof I.forEach=="function")I.forEach(y,D);else if(_.i_(I)||typeof I==="string")Array.prototype.forEach.call(I,y,D);else for(var F=_.fJf(I),R=_.q2(I),O=R.length,w=0;w<O;w++)y.call(D,R[w],F&&F[w],I)};var Sdq,n9,mq,aJO,pPg,MnW,mwc,dw_,zfM;
_.Pg=function(I,y){this.JSC$10308_domain_=this.userInfo_=this.scheme_="";this.JSC$10308_port_=null;this.fragment_=this.JSC$10308_path_="";this.JSC$10308_ignoreCase_=!1;var D;I instanceof _.Pg?(this.JSC$10308_ignoreCase_=y!==void 0?y:I.JSC$10308_ignoreCase_,_.E7(this,I.scheme_),this.userInfo_=I.userInfo_,_.GM(this,I.JSC$10308_domain_),_.XI(this,I.JSC$10308_port_),_.QL(this,I.getPath()),_.Yr(this,I.JSC$10308_queryData_.clone()),_.f9(this,I.fragment_)):I&&(D=_.EJ(String(I)))?(this.JSC$10308_ignoreCase_=
!!y,_.E7(this,D[1]||"",!0),this.userInfo_=n9(D[2]||""),_.GM(this,D[3]||"",!0),_.XI(this,D[4]),_.QL(this,D[5]||"",!0),_.Yr(this,D[6]||"",!0),_.f9(this,D[7]||"",!0)):(this.JSC$10308_ignoreCase_=!!y,this.JSC$10308_queryData_=new _.p9(null,this.JSC$10308_ignoreCase_))};
_.Pg.prototype.toString=function(){var I=[],y=this.scheme_;y&&I.push(mq(y,pPg,!0),":");var D=this.JSC$10308_domain_;if(D||y=="file")I.push("//"),(y=this.userInfo_)&&I.push(mq(y,pPg,!0),"@"),I.push(_.NC(D).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D=this.JSC$10308_port_,D!=null&&I.push(":",String(D));if(D=this.getPath())this.JSC$10308_domain_&&D.charAt(0)!="/"&&I.push("/"),I.push(mq(D,D.charAt(0)=="/"?mwc:MnW,!0));(D=this.JSC$10308_queryData_.toString())&&I.push("?",D);(D=this.fragment_)&&I.push("#",
mq(D,zfM));return I.join("")};
_.Pg.prototype.resolve=function(I){var y=this.clone(),D=!!I.scheme_;D?_.E7(y,I.scheme_):D=!!I.userInfo_;D?y.userInfo_=I.userInfo_:D=!!I.JSC$10308_domain_;D?_.GM(y,I.JSC$10308_domain_):D=I.JSC$10308_port_!=null;var F=I.getPath();if(D)_.XI(y,I.JSC$10308_port_);else if(D=!!I.JSC$10308_path_){if(F.charAt(0)!="/")if(this.JSC$10308_domain_&&!this.JSC$10308_path_)F="/"+F;else{var R=y.getPath().lastIndexOf("/");R!=-1&&(F=y.getPath().slice(0,R+1)+F)}R=F;if(R==".."||R==".")F="";else if(_.SW(R,"./")||_.SW(R,
"/.")){F=_.Oq(R,"/");R=R.split("/");for(var O=[],w=0;w<R.length;){var v=R[w++];v=="."?F&&w==R.length&&O.push(""):v==".."?((O.length>1||O.length==1&&O[0]!="")&&O.pop(),F&&w==R.length&&O.push("")):(O.push(v),F=!0)}F=O.join("/")}else F=R}D?_.QL(y,F):D=I.JSC$10308_queryData_.toString()!=="";D?_.Yr(y,I.JSC$10308_queryData_.clone()):D=!!I.fragment_;D&&_.f9(y,I.fragment_);return y};
_.Pg.prototype.clone=function(){return new _.Pg(this)};
_.E7=function(I,y,D){I.scheme_=D?n9(y,!0):y;I.scheme_&&(I.scheme_=I.scheme_.replace(/:$/,""));return I};
_.GM=function(I,y,D){I.JSC$10308_domain_=D?n9(y,!0):y;return I};
_.XI=function(I,y){if(y){y=Number(y);if(isNaN(y)||y<0)throw Error("Pa`"+y);I.JSC$10308_port_=y}else I.JSC$10308_port_=null;return I};
_.Pg.prototype.getPath=function(){return this.JSC$10308_path_};
_.QL=function(I,y,D){I.JSC$10308_path_=D?n9(y,!0):y;return I};
_.Yr=function(I,y,D){y instanceof _.p9?(I.JSC$10308_queryData_=y,k8z(I.JSC$10308_queryData_,I.JSC$10308_ignoreCase_)):(D||(y=mq(y,dw_)),I.JSC$10308_queryData_=new _.p9(y,I.JSC$10308_ignoreCase_));return I};
_.hu=function(I,y,D){I.JSC$10308_queryData_.set(y,D);return I};
_.Na=function(I,y){return I.JSC$10308_queryData_.get(y)};
_.f9=function(I,y,D){I.fragment_=D?n9(y):y;return I};
_.M2=function(I){_.hu(I,"zx",jR());return I};
_.ob=function(I,y){return I instanceof _.Pg?I.clone():new _.Pg(I,y)};
Sdq=function(I,y){I instanceof _.Pg||(I=_.ob(I));y instanceof _.Pg||(y=_.ob(y));return I.resolve(y)};
n9=function(I,y){return I?y?decodeURI(I.replace(/%25/g,"%2525")):decodeURIComponent(I):""};
mq=function(I,y,D){return typeof I==="string"?(I=encodeURI(I).replace(y,aJO),D&&(I=I.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I):null};
aJO=function(I){I=I.charCodeAt(0);return"%"+(I>>4&15).toString(16)+(I&15).toString(16)};
pPg=/[#\/\?@]/g;MnW=/[#\?:]/g;mwc=/[#\?]/g;dw_=/[#\?@]/g;zfM=/#/g;_.p9=function(I,y){this.count_=this.keyMap_=null;this.encodedQuery_=I||null;this.JSC$10309_ignoreCase_=!!y};
_.zM=function(I){I.keyMap_||(I.keyMap_=new Map,I.count_=0,I.encodedQuery_&&fZa(I.encodedQuery_,function(y,D){I.add(Yf(y),D)}))};
_.L=_.p9.prototype;_.L.getCount=function(){_.zM(this);return this.count_};
_.L.add=function(I,y){_.zM(this);this.encodedQuery_=null;I=kr(this,I);var D=this.keyMap_.get(I);D||this.keyMap_.set(I,D=[]);D.push(y);this.count_+=1;return this};
_.L.remove=function(I){_.zM(this);I=kr(this,I);return this.keyMap_.has(I)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(I).length,this.keyMap_.delete(I)):!1};
_.L.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.L.isEmpty=function(){_.zM(this);return this.count_==0};
_.L.containsKey=function(I){_.zM(this);I=kr(this,I);return this.keyMap_.has(I)};
_.L.containsValue=function(I){var y=this.getValues();return _.kA(y,I)};
_.L.forEach=function(I,y){_.zM(this);this.keyMap_.forEach(function(D,F){D.forEach(function(R){I.call(y,R,F,this)},this)},this)};
_.L.getKeys=function(){_.zM(this);for(var I=Array.from(this.keyMap_.values()),y=Array.from(this.keyMap_.keys()),D=[],F=0;F<y.length;F++)for(var R=I[F],O=0;O<R.length;O++)D.push(y[F]);return D};
_.L.getValues=function(I){_.zM(this);var y=[];if(typeof I==="string")this.containsKey(I)&&(y=y.concat(this.keyMap_.get(kr(this,I))));else{I=Array.from(this.keyMap_.values());for(var D=0;D<I.length;D++)y=y.concat(I[D])}return y};
_.L.set=function(I,y){_.zM(this);this.encodedQuery_=null;I=kr(this,I);this.containsKey(I)&&(this.count_-=this.keyMap_.get(I).length);this.keyMap_.set(I,[y]);this.count_+=1;return this};
_.L.get=function(I,y){if(!I)return y;I=this.getValues(I);return I.length>0?String(I[0]):y};
_.cOO=function(I,y,D){I.remove(y);D.length>0&&(I.encodedQuery_=null,I.keyMap_.set(kr(I,y),_.C5(D)),I.count_+=D.length)};
_.p9.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var I=[],y=Array.from(this.keyMap_.keys()),D=0;D<y.length;D++){var F=y[D],R=_.NC(F);F=this.getValues(F);for(var O=0;O<F.length;O++){var w=R;F[O]!==""&&(w+="="+_.NC(F[O]));I.push(w)}}return this.encodedQuery_=I.join("&")};
_.p9.prototype.clone=function(){var I=new _.p9;I.encodedQuery_=this.encodedQuery_;this.keyMap_&&(I.keyMap_=new Map(this.keyMap_),I.count_=this.count_);return I};
var kr=function(I,y){y=String(y);I.JSC$10309_ignoreCase_&&(y=y.toLowerCase());return y},k8z=function(I,y){y&&!I.JSC$10309_ignoreCase_&&(_.zM(I),I.encodedQuery_=null,I.keyMap_.forEach(function(D,F){var R=F.toLowerCase();
F!=R&&(this.remove(F),_.cOO(this,R,D))},I));
I.JSC$10309_ignoreCase_=y};
_.p9.prototype.extend=function(I){for(var y=0;y<arguments.length;y++)n7M(arguments[y],function(D,F){this.add(F,D)},this)};_.EI(Da,$W);var W$g=RegExp("^%*tp$"),CHW=RegExp("^%+tp$");_.L=Da.prototype;_.L.connectionDelay_=null;_.L.peerWindowDeferred_=null;_.L.transport_=null;_.L.state_=1;_.L.isConnected=function(){return this.state_==2};
_.L.peerWindowObject_=null;_.L.iframeElement_=null;_.L.getConfig=function(){return this.cfg_};
_.L.connect=function(I){this.connectCb_=I||_.Hq;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?w1J(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.L.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10304_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var I=this.iframeElement_.contentWindow;I||(I=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=I}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$10304_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new sW(this,this.cfg_.ph,this.JSC$10304_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()()};
_.L.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.rM(this.transport_);this.connectCb_=this.transport_=null;_.rM(this.connectionDelay_);this.connectionDelay_=null};
_.L.send=function(I,y){if(this.isConnected()){try{var D=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(R){D=!1}if(D){_.b_(y)&&(y=(0,_.O7)(y));D=this.transport_;var F=D.send;W$g.test(I)&&(I="%"+I);I=I.replace(/[%:|]/g,encodeURIComponent);F.call(D,I,y)}else this.close()}};
_.L.xpcDeliver=function(I,y,D){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.iD)(this.xpcDeliver,this,I,y,D));else if(E7e(this,D)&&!this.isDisposed()&&this.state_!=3)if(I&&I!="tp")this.isConnected()&&(I=I.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),I=CHW.test(I)?I.substring(1):I,I=this.getService(I,y))&&(y=S6f(y,I.objectPayload),y!=null&&I.callback(y));else switch(I=this.transport_,D=q6u(y),y=D[1],D[0]){case "SETUP_ACK":Y6P(I,1);I.setupAckReceived_.fired_||I.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":I.protocolVersion_==2&&(Y6P(I,2),I.setupAckReceived_.fired_||I.setupAckReceived_.callback(!0));break;case "SETUP":Y6P(I,1);QrW(I,1);break;case "SETUP_NTPV2":I.protocolVersion_==2&&(D=I.peerProtocolVersion_,Y6P(I,2),QrW(I,2),D!=1&&I.peerEndpointId_==null||I.peerEndpointId_==y||XPM(I),I.peerEndpointId_=y)}};
var L_S=function(I){var y=I.cfg_.role;return typeof y==="number"?y:window.parent==I.peerWindowObject_?1:0},E7e=function(I,y){var D=I.cfg_.ph;
return _.wq(y==null?"":String(y))||_.wq(D==null?"":String(D))||y==I.cfg_.ph};
Da.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete ZZ[this.name];_.rM(this.peerLoadHandler_);delete this.peerLoadHandler_;Da.superClass_.disposeInternal.call(this)};
var K_A=function(){for(var I in ZZ)_.rM(ZZ[I])},ZZ={};var iua=function(I,y){this.win=I;this.allowAdsHttpEndpoint=y;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10318_domHelper=CG(I);this.scrollManager=new JOO(I);this.accessibilityManager=new Dwf(I);B2g(this)},B2g=function(I){var y=function(){I.allowAdsPopup&&I.allowAdsPopup.style.setProperty("display","none","important");
I.wallElement.style.setProperty("display","","important");F$u(I.accessibilityManager);L$P(I.accessibilityManager,I.wallElement.querySelector(".fc-dialog-container"),!1,!1,I.wallElement.querySelector(".fc-button-whitelist"));I.scrollManager.enableScrolling()};
I.allowAdsPopup=I.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-whitelist-root"});I.allowAdsPopup.style.setProperty("display","none","important");I.JSC$10318_domHelper.appendChild(I.JSC$10318_domHelper.JSC$9602_document_.body,I.allowAdsPopup);var D=I.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-dialog-overlay"});I.JSC$10318_domHelper.appendChild(I.allowAdsPopup,D);var F=I.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:y});I.JSC$10318_domHelper.appendChild(I.allowAdsPopup,
F);D=I.JSC$10318_domHelper.JSC$9604_createDom("IFRAME");D.className="fc-whitelist-dialog";D.frameBorder="0";D.id="fc-whitelist-iframe";D.tabIndex="0";_.Ok(D,I.allowAdsHttpEndpoint);I.JSC$10318_domHelper.appendChild(F,D);F={};F.pu=_.W$(I.allowAdsHttpEndpoint).toString();F.tp=1;F.cn="fc-whitelist-channel";F.ifrid=D.id;F.osh=!0;I.allowAdsCrossPageChannel=new Da(F);I.allowAdsCrossPageChannel.registerService("close",y);I.allowAdsCrossPageChannel.registerService("refresh",function(){I.win.location.reload()});
I.allowAdsCrossPageChannel.registerService("resize",function(R){if(R){var O=I.allowAdsPopup.querySelector(".fc-whitelist-dialog");R.width&&O.style.setProperty("width",R.width,"important");R.height&&O.style.setProperty("height",R.height,"important")}},!0);
I.allowAdsCrossPageChannel.connect()};
iua.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10318_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var dn=window,aa=document,AOn=dn.location,$wg=function(){},bug=/\[native code\]/,cv=function(I,y,D){return I[y]=I[y]||D},Hua=function(I){I=I.sort();
for(var y=[],D=void 0,F=0;F<I.length;F++){var R=I[F];R!=D&&y.push(R);D=R}return y},Wv=function(){var I;
if((I=Object.create)&&bug.test(I))I=I(null);else{I={};for(var y in I)I[y]=void 0}return I},C9=cv(dn,"gapi",{});var Bv={};Bv=cv(dn,"___jsl",Wv());cv(Bv,"I",0);cv(Bv,"hel",10);var efM=function(){var I=AOn.href;if(Bv.dpo)var y=Bv.h;else{y=Bv.h;var D=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),F=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(I=I&&(D.exec(I)||F.exec(I)))try{y=decodeURIComponent(I[2])}catch(R){}}return y},T2c=function(I){var y=cv(Bv,"PQ",[]);
Bv.PQ=[];var D=y.length;if(D===0)I();else for(var F=0,R=function(){++F===D&&I()},O=0;O<D;O++)y[O](R)},srP=function(I){return cv(cv(Bv,"H",Wv()),I,Wv())};var id=function(I){this.JSC$10320_obj_=I};
id.prototype.value=function(){return this.JSC$10320_obj_};
id.prototype.getWidth=function(){return this.JSC$10320_obj_.width};
id.prototype.getHeight=function(){return this.JSC$10320_obj_.height};
id.prototype.getStyle=function(){return this.JSC$10320_obj_.style};var Vnz=function(I){this.JSC$10323_obj_=I||{}};
_.L=Vnz.prototype;_.L.value=function(){return this.JSC$10323_obj_};
_.L.setUrl=function(I){this.JSC$10323_obj_.url=I;return this};
_.L.getUrl=function(){return this.JSC$10323_obj_.url};
_.L.getStyle=function(){return this.JSC$10323_obj_.style};
_.L.getId=function(){return this.JSC$10323_obj_.id};
_.L.getContext=function(){return this.JSC$10323_obj_.context};
var Zu_=function(I){I.JSC$10323_obj_.attributes=I.JSC$10323_obj_.attributes||{};return new id(I.JSC$10323_obj_.attributes)};var g7u=function(){Vnz.apply(this,arguments)};
_.E(g7u,Vnz);var IMP=cv(Bv,"perf",Wv());cv(IMP,"g",Wv());var yqR=cv(IMP,"i",Wv());cv(IMP,"r",[]);Wv();Wv();var FAO=function(I,y,D){y&&y.length>0&&(y=DMc(y),D&&D.length>0&&(y+="___"+DMc(D)),y.length>28&&(y=y.substr(0,28)+(y.length-28)),D=y,y=cv(yqR,"_p",Wv()),cv(y,D,Wv())[I]=(new Date).getTime(),y=IMP.r,typeof y==="function"?y(I,"_p",D):y.push([I,"_p",D]))},DMc=function(I){return I.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var RNa=Wv(),OTa=[],Ad=function(I){throw Error("Ua`"+I);};
OTa.push(["jsl",function(I){for(var y in I)if(Object.prototype.hasOwnProperty.call(I,y)){var D=I[y];typeof D=="object"?Bv[y]=cv(Bv,y,[]).concat(D):cv(Bv,y,D)}if(y=I.u)I=cv(Bv,"us",[]),I.push(y),(y=/^https:(.*)$/.exec(y))&&I.push("http:"+y[1])}]);
var LAG=/^(\/[a-zA-Z0-9_\-]+)+$/,JqG=[/\/amp\//,/\/amp$/,/^\/amp$/],wuu=/^[a-zA-Z0-9\-_\.,!]+$/,vnn=/^gapi\.loaded_[0-9]+$/,SNu=/^[a-zA-Z0-9,._-]+$/,UMO=function(I,y,D,F,R){var O=I.split(";"),w=O.shift(),v=RNa[w],P=null;v?P=v(O,y,D,F):Ad("no hint processor for: "+w);P||Ad("failed to generate load url");y=P;D=y.match(tbG);(F=y.match(PKP))&&F.length===1&&KAz.test(y)&&D&&D.length===1||Ad("failed sanity: "+I);try{I="?";if(R&&R.length>0){MWq(R);var K=R.join(",");P=P+"?le="+K;I="&"}if(Bv.rol){var r=Bv.ol;
r&&r.length&&(P=""+P+I+"ol="+r.length)}}catch(N){}return P},onc=function(I,y,D,F){I=rqG(I);
vnn.test(D)||Ad("invalid_callback");y=jfO(y);F=F&&F.length?jfO(F):null;var R=function(O){return encodeURIComponent(O).replace(/%2C/g,",")};
return[encodeURIComponent(I.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",R(I.version),"/m=",R(y),F?"/exm="+R(F):"","/rt=j/sv=1/d=1/ed=1",I.activeMods?"/am="+R(I.activeMods):"",I.resourceSig?"/rs="+R(I.resourceSig):"",I.zcms?"/t="+R(I.zcms):"","/cb=",R(D)].join("")},rqG=function(I){I.charAt(0)!=="/"&&Ad("relative path");
for(var y=I.substring(1).split("/"),D=[];y.length;){I=y.shift();if(!I.length||I.indexOf(".")==0)Ad("empty/relative directory");else if(I.indexOf("=")>0){y.unshift(I);break}D.push(I)}I={};for(var F=0,R=y.length;F<R;++F){var O=y[F].split("="),w=decodeURIComponent(O[0]),v=decodeURIComponent(O[1]);O.length==2&&w&&v&&(I[w]=I[w]||v)}y="/"+D.join("/");LAG.test(y)||Ad("invalid_prefix");D=0;for(F=JqG.length;D<F;++D)JqG[D].test(y)&&Ad("invalid_prefix");D=NIg(I,"k",!0);F=NIg(I,"am");R=NIg(I,"rs");I=NIg(I,"t");
return{pathPrefix:y,version:D,activeMods:F,resourceSig:R,zcms:I}},jfO=function(I){for(var y=[],D=0,F=I.length;D<F;++D){var R=I[D].replace(/\./g,"_").replace(/-/g,"_");
SNu.test(R)&&y.push(R)}return y.join(",")},NIg=function(I,y,D){I=I[y];
!I&&D&&Ad("missing: "+y);if(I){if(wuu.test(I))return I;Ad("invalid: "+y)}return null},KAz=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,PKP=/\/cb=/g,tbG=/\/\//g;
RNa.m=function(I,y,D,F){(I=I[0])||Ad("missing_hint");return"https://apis.google.com"+onc(I,y,D,F)};
var hN_=decodeURI("%73cript"),xMf=/^[-+_0-9\/A-Za-z]+={0,2}$/,lMf=function(I,y){for(var D=[],F=0;F<I.length;++F){var R=I[F],O;if(O=R){a:{for(O=0;O<y.length;O++)if(y[O]===R)break a;O=-1}O=O<0}O&&D.push(R)}return D},uS_=function(){var I=Bv.nonce;
return I!==void 0?I&&I===String(I)&&I.match(xMf)?I:Bv.nonce=null:aa.querySelector?(I=aa.querySelector("script[nonce]"))?(I=I.nonce||I.getAttribute("nonce")||"",I&&I===String(I)&&I.match(xMf)?Bv.nonce=I:Bv.nonce=null):null:null},GUR=function(I){if(aa.readyState!="loading")qNG(I);
else{var y=uS_(),D="";y!==null&&(D=' nonce="'+y+'"');I="<"+hN_+' src="'+encodeURI(I)+'"'+D+"></"+hN_+">";aa.write(EnP?EnP.createHTML(I):I)}},qNG=function(I){var y=aa.createElement(hN_);
y.setAttribute("src",EnP?EnP.createScriptURL(I):I);I=uS_();I!==null&&y.setAttribute("nonce",I);y.async="true";(I=aa.getElementsByTagName(hN_)[0])?I.parentNode.insertBefore(y,I):(aa.head||aa.body||aa.documentElement).appendChild(y)},QfR=function(I,y,D){Xug(function(){var F=y===efM()?cv(C9,"_",Wv()):Wv();
F=cv(srP(y),"_",F);I(F)},D)},t1W=function(I,y){var D=y||{};
typeof y=="function"&&(D={},D.callback=y);var F=(y=D)&&y._c;if(F)for(var R=0;R<OTa.length;R++){var O=OTa[R][0],w=OTa[R][1];w&&Object.prototype.hasOwnProperty.call(F,O)&&w(F[O],I,y)}y=[];I?y=I.split(":"):D.features&&(y=D.features);if(!(I=D.h)&&(I=efM(),!I))throw Error("Va");YNG(y||[],D,I)},YNG=function(I,y,D){I=Hua(I)||[];
var F=y.callback,R=y.config,O=y.timeout,w=y.ontimeout,v=y.onerror,P=void 0;typeof v=="function"&&(P=v);var K=null,r=!1;if(O&&!w||!O&&w)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";v=cv(srP(D),"r",[]).sort();var N=cv(srP(D),"L",[]).sort(),h=Bv.le||[],x=[].concat(v),q=function(B,C){if(r)return 0;dn.clearTimeout(K);N.push.apply(N,X);var H=((C9||{}).config||{}).update;H?H(R):R&&cv(Bv,"cu",[]).push(R);if(C){FAO("me0",B,x);try{QfR(C,D,P)}finally{FAO("me1",B,x)}}return 1};
O>0&&(K=dn.setTimeout(function(){r=!0;w()},O));
var X=lMf(I,N);if(X.length){X=lMf(I,v);var f=cv(Bv,"CP",[]),m=f.length;f[m]=function(B){if(!B)return 0;FAO("ml1",X,x);var C=function(e){f[m]=null;q(X,B)&&T2c(function(){F&&F();e()})},H=function(){var e=f[m+1];
e&&e()};
m>0&&f[m-1]?f[m]=function(){C(H)}:C(H)};
if(X.length){var z="loaded_"+Bv.I++;C9[z]=function(B){f[m](B);C9[z]=null};
I=UMO(D,X,"gapi."+z,v,h);v.push.apply(v,X);FAO("ml0",X,x);y.sync||dn.___gapisync?GUR(I):qNG(I)}else f[m]($wg)}else q(X)&&F&&F()},fMR;
var nnR=null,pug=_.Ft.trustedTypes;if(pug&&pug.createPolicy){try{nnR=pug.createPolicy("goog#gapi",{createHTML:Bqc,createScript:Bqc,createScriptURL:Bqc})}catch(I){_.Ft.console&&_.Ft.console.error(I.message)}fMR=nnR}else fMR=nnR;var EnP=fMR,Xug=function(I,y){if(Bv.hee&&Bv.hel>0)try{return I()}catch(D){y&&y(D),Bv.hel--,t1W("debug_error",function(){try{window.___jsl.hefn(D)}catch(F){throw D;}})}else try{return I()}catch(D){throw y&&y(D),D;
}},mMM=C9.load;
mMM&&cv(Bv,"ol",[]).push(mMM);C9.load=function(I,y){return Xug(function(){return t1W(I,y)})};var okA;var kUM=function(){var I=Mbf;var y=y||[];this.moduleId_=I||null;this.dependencies_=[];zNa(this,y)};
kUM.prototype.toString=function(){return"MpJwZc"};
kUM.prototype.getModuleId=function(){return this.moduleId_};
var zNa=function(I,y){var D=!1;D=D===void 0?!1:D;I.dependencies_=I.dependencies_.concat(y);if(D){if(!I.moduleId_)throw Error("Wa`MpJwZc");y.map(function(F){return F.getModuleId()}).forEach(function(F){N1e(function(R){R.addExtraEdge(I.moduleId_,F)})})}};var Mbf;Mbf="MpJwZc";var f__=new kUM;var Xgt=new _.H2("a"),pxS=new _.H2("c"),ni5=function(I,y,D){_.uS.call(this,I,y);this.node=y;this.kind=D};
_.E(ni5,_.uS);var dM_=function(){this.JSC$10336_keys_={};this.urlPrefix_="";this.JSC$10336_queryData_={}};
dM_.prototype.toString=function(){var I=this.urlPrefix_+aMf(this),y=_.$f(this.JSC$10336_queryData_),D="";y!=""&&(D="?"+y);return I+D};
var cqu=function(I){I=$r(I,"md");return!!I&&I!=="0"},aMf=function(I){var y=[],D=function(F){I.JSC$10336_keys_[F]!==void 0&&y.push(F+"="+I.JSC$10336_keys_[F])};
cqu(I)?(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("amc"),D("rt"),"d"in I.JSC$10336_keys_||bd(I,"d","0"),D("d"),D("exm"),D("excm"),(I.JSC$10336_keys_.excm||I.JSC$10336_keys_.exm)&&y.push("ed=1"),D("im"),D("dg"),D("sm"),$r(I,"br")!="1"&&$r(I,"br")!="0"||D("br"),D("br-d"),$r(I,"rb")=="1"&&D("rb"),$r(I,"zs")!=="0"&&D("zs"),WAa(I)!==""&&D("wt"),D("gssmodulesetproto"),D("ujg"),D("sp"),D("rs"),D("cb"),D("ee"),D("slk"),D("dti"),D("m"));
return y.join("/")},$r=function(I,y){return I.JSC$10336_keys_[y]?I.JSC$10336_keys_[y]:null},bd=function(I,y,D){D?I.JSC$10336_keys_[y]=D:delete I.JSC$10336_keys_[y]},CKf=function(I,y){I.urlPrefix_=y},BIg=function(I,y){y&&y.length>0?(y.sort(),bd(I,"exm",y.join(","))):bd(I,"exm",null)},iTu=function(I,y){y&&y.length>0?(y.sort(),bd(I,"excm",y.join(","))):bd(I,"excm",null)},AqR=function(I){return(I=$r(I,"m"))?I.split(","):[]},WAa=function(I){switch($r(I,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},$Ma=function(I,y){var D=Object.keys(y).filter(function(F){return!!Object.keys(y[F]).length}).map(function(F){var R=Object.keys(y[F]);
R.length>1&&R.sort();return F+":"+R.join(",")});
D.sort();bd(I,"ee",D.join(";"))},G8t=function(I){var y=$r(I,"ee");
if(!y)return{};I={};y=_.J(y.split(";"));for(var D=y.next();!D.done;D=y.next()){var F=_.J(D.value.split(":"));D=F.next().value;F=F.next().value;I[D]={};F=_.J(F.split(","));for(var R=F.next();!R.done;R=F.next())I[D][R.value]=!0}return I},bTO=function(I){delete I.JSC$10336_keys_.m;
delete I.JSC$10336_keys_.exm;delete I.JSC$10336_keys_.ed};
dM_.prototype.clone=function(){var I=new dM_;I.JSC$10336_keys_=Object.assign({},this.JSC$10336_keys_);I.urlPrefix_=this.urlPrefix_;I.JSC$10336_queryData_=Object.assign({},this.JSC$10336_queryData_);return I};
var XPL=function(I,y){y=y===void 0?!0:y;var D=HTG(I),F=new dM_,R=_.EJ(D)[5];_.e$.forEach(eN_,function(w){var v=R.match("/"+w+"=([^/]+)");v&&bd(F,w,v[1])});
var O="";O=I.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";CKf(F,I.substr(0,I.indexOf(O)+O.length));if(!y)return F;(I=_.EJ(D)[6]||null)&&fZa(I,function(w,v){F.JSC$10336_queryData_[w]=v});
return F},ug4=function(I){I=_.iP(HTG(I));
return I===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(I)?/\/k=/.test(I):!1},HTG=function(I){return I.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?I.substr(65):I},eN_={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",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"},TIW=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.Hv=function(I){this.JSC$10348_id_=I;this.opts={}};
_.Hv.prototype.JSC$10350_setLabel=function(I){this.label_=I||void 0;return this};
_.Hv.prototype.addUploadMetadata=function(I,y){var D=this.opts.data||{};D[I]=y;this.opts.data=D;return this};
var sfP=function(I){var y=_.e$.filter(I.opts,function(D){return D!==null});
y=_.e$.isEmpty(y)?null:y;I=[I.JSC$10348_id_,I.label_,y];y=YqB(I);return I=I.slice(0,y+1)};
_.Hv.prototype.toString=function(){var I=sfP(this);return"("+_.T_(I,function(y){return JSON.stringify(y)}).join(",")+")"};
_.Hv.prototype.getId=function(){return this.JSC$10348_id_};
_.Hv.prototype.getOptions=function(){return _.e$.clone(this.opts)};var eU=function(){_.Hv.call(this,"image-search")};
_.E(eU,_.Hv);eU.prototype.setSize=function(I){this.opts.imgsz=I;return this};
eU.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
eU.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};var TM=function(){_.Hv.call(this,"maps")};
_.E(TM,_.Hv);TM.prototype.setZoom=function(I){this.opts.zoom=I;return this};
TM.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
TM.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};_.s7=function(){_.Hv.call(this,"photos")};
_.E(_.s7,_.Hv);_.s7.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
_.s7.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};var VL=function(){_.Hv.call(this,"url")};
_.E(VL,_.Hv);var VbW=function(){var I=new VL;I.opts.type="video";I.opts.site="youtube.com";return I};
VL.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
VL.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};var Z1=function(){_.Hv.call(this,"video-search")};
_.E(Z1,_.Hv);var ZTf=function(){var I=new Z1;I.opts.site="youtube.com";return I};
Z1.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
Z1.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};var gnG=function(){_.Hv.call(this,"web")};
_.E(gnG,_.Hv);gnG.prototype.JSC$10350_setLabel=function(I){_.Hv.prototype.JSC$10350_setLabel.call(this,I);return this};
gnG.prototype.addUploadMetadata=function(I,y){_.Hv.prototype.addUploadMetadata.call(this,I,y);return this};var gn=function(){this.items_=[];this.opts={}},I6G=function(I){switch(I){case "image-search":return new eU;
case "maps":return new TM;case "photos":return new _.s7;case "url":return new VL;case "video-search":return new Z1;case "web":return new gnG}return new _.Hv(I)};
gn.prototype.addView=function(I){this.items_.push(typeof I==="string"?I6G(I):I);return this};
var ypa=function(I){return"("+_.T_(I.items_,function(y){return y.toString()}).join(",")+")"};
gn.prototype.toString=function(){return ypa(this)};
gn.prototype.getViews=function(I,y){y=y===void 0?[]:y;for(var D=this.items_,F=0;F<D.length;F++){var R=D[F];R instanceof gn?R.getViews(I,y):R.getId()==I&&y.push(R)}return y};
gn.prototype.getOptions=function(){return _.e$.clone(this.opts)};var tu=function(I){this.basePickerUrl_=I||"https://docs.google.com/picker";this.nav_=new gn};
tu.prototype.nav_=null;tu.prototype.addView=function(I){this.nav_.addView(I);return this};
tu.prototype.getBaseUrl=function(){return this.basePickerUrl_};
tu.prototype.getViews=function(I){return this.nav_.getViews(I)};
_.DQn=function(I,y){I.callback_=y;return I};var FDa=new Map;FDa.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");FDa.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");FDa.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var RAM=new Set;RAM.add("application/vnd.google-apps.kix");RAM.add("application/vnd.google-apps.ritz");RAM.add("application/vnd.google-apps.punch");var j5z=function(I,y,D){var F=D&&_.Tp(D,1);D=OZg(D);var R=I[0].getId();switch(_.sI(R,2)){case 13:return LDG(I,y,F,D);case 3:return Jpf(I,y,F,D);case 10:return wrM(I,y,F,D);case 27:return wrM(I,y,F,D);case 12:return vCM(I,y);case 2:return S1n(I,y,F,D);case 5:return tuR(I,y,F,D);case 9:return Pgu(I,y,F,D);case 6:return KDR(I,y,F,D);case 25:return UQz(I,y,F,D);case 1:return _.aL(I[0],bWG,26)?rp_(I,y,F,D):wrM(I,y,F,D);default:return{}}},KDR=function(I,y,D,F){I=I.map(function(R){return{id:R.getId().getId(),
serviceId:"youtube",name:R.getName(),description:_.Tp(R,3),type:Ic(R),lastEditedUtc:_.$JM(_.kk(R,_.Zy,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:R.getUrl(),embedUrl:_.Tp(R,13),thumbnails:yy(E5(R))}});
return{action:y,docs:I,viewToken:F,view:D||"youtube",v2Translated:!0}},S1n=function(I,y,D,F){var R=I.map(function(O){var w=O.getId().getId(),v=_.Tp(O,7),P=O.getName(),K=Ic(O),r=_.$JM(_.kk(O,_.Zy,12)).getTime(),N=O.getUrl(),h=Number(D8P(O)),x=_.Tp(O,3),q=_.Tp(O,11),X=yy(E5(O));
var f=_.kk(O,GI,21);f=_.by(f,1);var m=_.kk(O,GI,21);m=_.Tp(m,10);var z=_.Tp(O,13);var B=_.kk(O,GI,21);B=_.by(B,9);var C=_.kk(O,GI,21);C=_.Tp(C,11);w={id:w,serviceId:"docs",mimeType:v,name:P,type:K,lastEditedUtc:r,url:N,sizeBytes:h,description:x,iconUrl:q,thumbnails:X,isShared:f,downloadUrl:m,embedUrl:z,copyable:B,resourceKey:C};v=_.kk(O,GI,21);_.by(v,12)&&(w.uploadState="success",w.isNew=!0);v=_.kk(O,GI,21);_.aL(v,lb,3)&&(O=_.kk(O,GI,21),O=_.kk(O,lb,3),_.aL(O,hP,2)&&(v=Le(O.getDuration().getSeconds()),
P=O.getDuration(),P=_.lD(P,2),w.duration=v+P/1E9),w.aspectRatio=O.getAspectRatio());return w});
return{action:y,docs:R,viewToken:F,view:D||"all",extraUserInputs:oCP(I),v2Translated:!0}},tuR=function(I,y,D,F){I=I.map(function(R){var O=_.kk(R,yuM,15);
O=_.kk(O,xR,1);T8(R,10,xR,O);return{id:R.getId().getId(),serviceId:"web",mimeType:_.Tp(R,7),name:R.getName(),type:Ic(R),url:R.getUrl(),description:_.Tp(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(R))}});
return{action:y,docs:I,viewToken:F,view:D||"image-search",v2Translated:!0}},Pgu=function(I,y,D,F){I=I.map(function(R){return{serviceId:"url",
name:E5(R)[0].getUrl().split("/").pop(),type:Ic(R),mimeType:_.Tp(R,7),url:R.getUrl(),description:_.Tp(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(R))}});
return{action:y,docs:I,viewToken:F,view:D||"url",v2Translated:!0}},rp_=function(I,y,D,F){I=I.map(function(R){return{id:R.getId().getId(),
serviceId:"picasa",name:R.getName(),type:Ic(R),description:_.Tp(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(R))}});
return{action:y,docs:I,viewToken:F,view:D||"webcam",v2Translated:!0}},wrM=function(I,y,D,F){return{action:y,
docs:I.map(NNO),viewToken:F,view:hAz(D||"upload",I),extraUserInputs:oCP(I),v2Translated:!0}},hAz=function(I,y){return y.some(function(D){var F;
return((F=_.kk(D,ub,30))==null?void 0:_.sI(F,3))===9})?I+"/gmailphotos":I},Jpf=function(I,y,D,F){var R=I.map(function(O){var w={id:O.getId().getId(),
serviceId:"picasa",mimeType:_.Tp(O,7),name:O.getName(),type:Ic(O),lastEditedUtc:_.$JM(_.kk(O,_.Zy,12)).getTime(),url:O.getUrl(),sizeBytes:Number(D8P(O)),description:_.Tp(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(O)),mediaKey:O.getId().getId(),parentId:_.Tp(O,4)},v,P=(v=_.kk(O,TMe,18))==null?void 0:_.kk(v,eB_,3);P&&(w.latitude=e0(P,1),w.longitude=e0(P,2));var K;O=(K=_.kk(O,TMe,18))==null?void 0:Hn(K,6);K=O!=null?Le(O):void 0;K&&(w.version=
K);return w});
return{action:y,docs:R,viewToken:F,view:D||"photos",extraUserInputs:oCP(I),v2Translated:!0}},LDG=function(I,y,D,F){I=I.map(function(R){return{id:R.getId().getId(),
serviceId:"et",name:E5(R)[0].getUrl().split("/").pop(),description:_.Tp(R,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(R),"etjpg")}});
return{action:y,docs:I,viewToken:F,view:D||"et",v2Translated:!0}},UQz=function(I,y,D,F){I=I.map(function(R){var O=R.getId().getId(),w=F["2"];
return{id:O,serviceId:w.type!=="gmail_themes"&&w.parent==="6226252643674576769"?"picasa":"static_themes",name:R.getName(),mimeType:_.Tp(R,7),type:Ic(R),description:_.Tp(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:R.getUrl(),embedUrl:R.getUrl(),thumbnails:yy(E5(R))}});
return{action:y,docs:I,viewToken:F,view:D||"photos",v2Translated:!0}},vCM=function(I,y){I=I.map(function(D){var F=_.kk(D,HW_,27);
F=_.Va(F,1,_.fa,_.xW())[0];return{id:D.getId().getId(),serviceId:"contacts",mimeType:_.Tp(D,7),name:D.getName(),description:_.Tp(D,3),url:"mailto:"+F,thumbnail:[{url:_.Tp(D,11)}],email:F}});
return{action:y,docs:I,view:"contacts",v2Translated:!0}},OZg=function(I){if(!I)return{};
var y=_.Tp(I,3);y=y&&JSON.parse(y)||{};return{0:_.Tp(I,1),1:_.Tp(I,2),2:y}},yy=function(I,y){y=y===void 0?"":y;
if(!I.length)return null;y=="etjpg"&&(I=I.filter(function(D){return D.getUrl().includes("w1200-h300")}));
return I.map(function(D){return{url:D.getUrl(),height:D.getHeight(),width:D.getWidth(),type:y}})},oCP=function(I){return{isAttachment:I.some(function(y){return _.by(y,31)})}},NNO=function(I){var y,D={id:(y=I.getId())==null?void 0:y.getId(),
serviceId:xQO(I),mimeType:_.Tp(I,7),name:I.getName(),type:Ic(I),sizeBytes:Number(D8P(I)),description:_.Tp(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yy(E5(I)),isNew:!0};if(y=_.kk(I,ub,30)){D.dataUrl=_.Tp(y,1)||null;a:{var F=_.kk(I,ub,30);switch(_.sI(F,3)){case 9:F=_.gu(F,gW_,2,qO);F={remoteRefs:F&&_.Tp(F,1)};break a;case 10:case 15:F=_.gu(F,ZWM,4,qO);var R=E5(I);F={photo_id:F&&_.Tp(F,1),media_key:I.getId().getId(),media_type:_.sI(I,6)===1?1:2,image_url:R&&
R[0].getUrl(),width:R&&String(R[0].getWidth()),height:R&&String(R[0].getHeight())};break a}F=null}D.uploadMetadata=F;D.uploadId=_.Tp(y,9)||null;D.uploadState=l6e(y)||null}(F=y&&_.gu(y,ZWM,4,qO))&&(D.id=_.Tp(F,1));(F=y&&_.gu(y,IaP,5,qO))&&(D.contentId=_.Tp(F,1));(F=y&&_.gu(y,sDM,7,qO))&&(D.contentId=_.Tp(F,1));(F=y&&_.gu(y,VTe,6,qO))&&(D.contentId=_.Tp(F,1));(y==null?void 0:_.sI(y,3))===1&&(D.mediaKey=I.getId().getId());return D},xQO=function(I){var y;
switch(((y=_.kk(I,ub,30))==null?void 0:_.sI(y,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},Ic=function(I){switch(_.sI(I,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 _.Tp(I,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},l6e=function(I){switch(I==null?void 0:_.sI(I,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 Gtz,uTM,q1f,ECu;_.Xre=function(I,y){var D=y||{};y=D.document||document;var F=_.W$(I).toString(),R=(new Zh(y)).createElement("SCRIPT"),O={script_:R,timeout_:void 0},w=new T6(uTM,O),v=null,P=D.timeout!=null?D.timeout:5E3;P>0&&(v=window.setTimeout(function(){q1f(R,!0);w.errback(new ECu(1,"Timeout reached for loading script "+F))},P),O.timeout_=v);
R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(q1f(R,D.cleanupWhenDone||!1,v),w.callback(null))};
R.onerror=function(){q1f(R,!0,v);w.errback(new ECu(0,"Error while loading script "+F))};
O=D.attributes||{};_.e$.extend(O,{type:"text/javascript",charset:"UTF-8"});cYz(R,O);_.Uk(R,I);Gtz(y).appendChild(R);return w};
Gtz=function(I){var y=aD("HEAD",I);return y&&y.length!==0?y[0]:I.documentElement};
uTM=function(){if(this&&this.script_){var I=this.script_;I&&I.tagName=="SCRIPT"&&q1f(I,!0,this.timeout_)}};
q1f=function(I,y,D){D!=null&&_.Ft.clearTimeout(D);I.onload=function(){};
I.onerror=function(){};
I.onreadystatechange=function(){};
y&&window.setTimeout(function(){_.dM(I)},0)};
ECu=function(I,y){var D="Jsloader error (code #"+I+")";y&&(D+=": "+y);_.Io.call(this,D);this.code=I};
_.EI(ECu,_.Io);var Q5c=_.UI(["https://apis.google.com/js/api.js"]),Y1f=_.Et(Q5c),mQM=function(I,y,D){D=D===void 0?{}:D;var F=!1,R=f6W(I,y,D).then(function(w){F=!0;return w}),O=_.ORf(5E3).then(function(){return F?f6W(I,y,D):nCO(y,D).then(function(w){return prf(w,I)})});
return HiO([R,O])},f6W=function(I,y,D){D=D===void 0?{}:D;
return Mue(y,D).then(function(F){return prf(F,I)})},prf=function(I,y){var D=_.Oq(y,"gapi.")?y.slice(5):y;
return I[D]?_.Xs(I[D]):new _.AO(function(F,R){var O=FI(function(){R(Error("Ya"))},3E4);
I.load(y,{callback:function(){_.Ft.clearTimeout(O);F(I[D])},
onerror:function(w){_.Ft.clearTimeout(O);R(w)}})})},Mue=function(I,y){y=y===void 0?{}:y;
return I.gapi&&I.gapi.load?_.Xs(I.gapi):nCO(I,y)},nCO=function(I,y){y=y===void 0?{}:y;
return _.Xre(Y1f,{document:I.document,attributes:y}).then(function(){return I.gapi})},zAP=function(){};
zAP.prototype.load=function(I,y,D){y=y===void 0?window:y;D=D===void 0?{}:D;var F=Date.now();return mQM(I,y,D).then(function(R){var O=Date.now();return{library:R,loadStartMs:F,loadEndMs:O}},function(R){throw R instanceof Error?R:Error(String(R));
})};var c0e=function(){_.B5.call(this);this.gapiLoader_=new zAP;this.origin_=null;this.gapiPickerIframeResolver_=_.vS();this.gapiIframesResolver_=_.vS();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.E(c0e,_.B5);var ktf=function(I,y){var D=D===void 0?{}:D;var F=_.jF("gapi.iframes",y);return F?(I=Date.now(),_.Xs({library:F,loadStartMs:I,loadEndMs:I})):I.gapiLoader_.load("gapi.iframes",y,D)},dQG=function(I,y,D,F,R,O){var w=!1;
w=w===void 0?!1:w;ktf(I,st(y.ownerDocument)).then(function(v){var P=v.library;I.gapiIframesResolver_.resolve(P);v=I.gapiPickerIframeResolver_;var K=v.resolve,r=w;r=r===void 0?!1:r;var N={};N["host-message-handler"]=D;I.hostMessageHandlerInternal_=N;var h=_.ob(F);h=_.ob(h);h=_.XI(_.GM(_.E7(new _.Pg,h.scheme_),h.JSC$10308_domain_),h.JSC$10308_port_).toString();I.origin_=h;h=(new g7u).setUrl(F);h.JSC$10323_obj_.where=y;h.JSC$10323_obj_.allowPost=r;h.JSC$10323_obj_.messageHandlers=N;r=_.jF("makeWhiteListIframesFilter",
P)([I.origin_]);h.JSC$10323_obj_.messageHandlersFilter=r;R!=null&&(h.JSC$10323_obj_.id=R);O!=null&&(h.JSC$10323_obj_.rpctoken=O);r=Zu_(h);r.JSC$10320_obj_.style={display:"block","min-width":"100%",width:"1px"};r.JSC$10320_obj_.height="100%";Zu_(h).value().allow="camera 'src' "+I.origin_;P=P.getContext().openChild(h.value());K.call(v,P)},function(v){I.gapiIframesResolver_.reject(v);
I.gapiPickerIframeResolver_.reject(v)});
return I.gapiPickerIframeResolver_.promise},a6O=function(I,y){return _.yL([I.gapiIframesResolver_.promise,
I.gapiPickerIframeResolver_.promise]).then(function(D){var F=_.J(D);D=F.next().value;return(F=F.next().value)?F.send("picker-message-handler",y,void 0,_.jF("makeWhiteListIframesFilter",D)([I.origin_])):_.eE(Error("Za"))})};
c0e.prototype.disposeInternal=function(){cp_(this);_.B5.prototype.disposeInternal.call(this)};
var cp_=function(I){I.gapiPickerIframeResolver_.promise.then(function(y){y&&(y.unregister("host-message-handler"),delete I.hostMessageHandlerInternal_["host-message-handler"])})};var WDe=function(){this.nextId=0};var BNa=function(I,y){switch(I.action){case "select-contacts":I=Cg_(I.contacts);break;case "visibility":I=I.visible;var D=new fA;I=_.yH(D,1,7).setVisible(I);D={};D["iframe-command"]=I.serialize();I=D;break;default:I=null}return I?a6O(y,I):_.Xs()},Cg_=function(I){if(!I||I.length==0)return null;
var y=new fA;_.yH(y,1,11);var D=new WDe;I.forEach(function(F){if(F.email){var R=new AT;R=_.wT(R,2,F.name?F.name:F.email);var O=new HW_;F=_.VgS(O,1,_.Go,F.email,_.fa);F=_.mH(R,27,F);R=new Avg;O=":"+(D.nextId++).toString(36);R=_.wT(R,1,O);R=_.yH(R,2,12);F=_.mH(F,1,R)}else F=null;F&&T8(y,7,AT,F)});
I={};I["iframe-command"]=y.serialize();return I};_.iZu=function(){if(xzc){var I=/Windows NT ([0-9.]+)/;return(I=I.exec(_.oo()))?I[1]:"0"}return _.hnf?(I=/1[0|1][_.][0-9_.]+/,(I=I.exec(_.oo()))?I[0].replace(/_/g,"."):"10"):Zh5?(I=/Android\s+([^\);]+)(\)|;)/,(I=I.exec(_.oo()))?I[1]:""):uWc||qOz||EPe?(I=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(I=I.exec(_.oo()))?I[1].replace(/_/g,"."):""):""}();var Dm;Dm=function(I){return(I=I.exec(_.oo()))?I[1]:""};
_.Apg=function(){if(_.pz)return Dm(/Firefox\/([0-9.]+)/);if(_.fz||Qx||jeu)return pGR;if(_.mr){if(_.n5()||_.GeA()){var I=Dm(/CriOS\/([0-9.]+)/);if(I)return I}return Dm(/Chrome\/([0-9.]+)/)}if(_.Ul&&!_.n5())return Dm(/Version\/([0-9.]+)/);if(VIB||ZCq){if(I=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.oo()))return I[1]+"."+I[2]}else if(dzM)return(I=Dm(/Android\s+([0-9.]+)/))?I:Dm(/Version\/([0-9.]+)/);return""}();var $Qu=function(){};
_.uy($Qu);$Qu.prototype.nextId_=0;_.Fi=function(I){return":"+(I.nextId_++).toString(36)};var Ju=function(I){_.Zw.call(this);this.JSC$10418_dom_=I||CG();this.JSC$10418_id_=null;this.inDocument_=!1;this.JSC$10418_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.EI(Ju,_.Zw);Ju.prototype.idGenerator_=$Qu.getInstance();Ju.prototype.getId=function(){return this.JSC$10418_id_||(this.JSC$10418_id_=_.Fi(this.idGenerator_))};
Ju.prototype.getElement=function(){return this.JSC$10418_element_};
var Rc=function(I){I.googUiComponentHandler_||(I.googUiComponentHandler_=new _.H5(I));return I.googUiComponentHandler_},bZO=function(I,y){if(I==y)throw Error("$a");
var D;if(D=y&&I.parent_&&I.JSC$10418_id_){D=I.parent_;var F=I.JSC$10418_id_;D=D.childIndex_&&F?_.e$.get(D.childIndex_,F)||null:null}if(D&&I.parent_!=y)throw Error("$a");I.parent_=y;Ju.superClass_.setParentEventTarget.call(I,y)};
Ju.prototype.setParentEventTarget=function(I){if(this.parent_&&this.parent_!=I)throw Error("ab");Ju.superClass_.setParentEventTarget.call(this,I)};
Ju.prototype.JSC$10420_createDom=function(){this.JSC$10418_element_=this.JSC$10418_dom_.createElement("DIV")};
Ju.prototype.render=function(I){HZW(this,I)};
var HZW=function(I,y,D){if(I.inDocument_)throw Error("bb");I.JSC$10418_element_||I.JSC$10420_createDom();y?y.insertBefore(I.JSC$10418_element_,D||null):I.JSC$10418_dom_.JSC$9602_document_.body.appendChild(I.JSC$10418_element_);I.parent_&&!I.parent_.inDocument_||I.enterDocument()};
_.L=Ju.prototype;_.L.decorate=function(I){if(this.inDocument_)throw Error("bb");if(I&&this.canDecorate(I)){this.wasDecorated_=!0;var y=_.VE(I);this.JSC$10418_dom_&&this.JSC$10418_dom_.JSC$9602_document_==y||(this.JSC$10418_dom_=CG(I));this.decorateInternal(I);this.enterDocument()}else throw Error("cb");};
_.L.canDecorate=function(){return!0};
_.L.decorateInternal=function(I){this.JSC$10418_element_=I};
_.L.enterDocument=function(){this.inDocument_=!0;eAG(this,function(I){!I.inDocument_&&I.getElement()&&I.enterDocument()})};
_.L.exitDocument=function(){eAG(this,function(I){I.inDocument_&&I.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.L.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);eAG(this,function(I){I.dispose()});
!this.wasDecorated_&&this.JSC$10418_element_&&_.dM(this.JSC$10418_element_);this.parent_=this.model_=this.JSC$10418_element_=this.childIndex_=this.children_=null;Ju.superClass_.disposeInternal.call(this)};
_.L.getModel=function(){return this.model_};
_.L.addChild=function(I,y){var D=this.children_?this.children_.length:0;if(I.inDocument_&&(y||!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_=[]);I.parent_==this?(_.e$.set(this.childIndex_,I.getId(),I),_.WH(this.children_,I)):_.e$.add(this.childIndex_,I.getId(),I);bZO(I,this);_.mSS(this.children_,D,0,I);I.inDocument_&&this.inDocument_&&I.parent_==this?(y=this.getContentElement(),
(y.childNodes[D]||null)!=I.getElement()&&(I.getElement().parentElement==y&&y.removeChild(I.getElement()),D=y.childNodes[D]||null,y.insertBefore(I.getElement(),D))):y?(this.JSC$10418_element_||this.JSC$10420_createDom(),D=this.children_?this.children_[D+1]||null:null,HZW(I,this.getContentElement(),D?D.JSC$10418_element_:null)):this.inDocument_&&!I.inDocument_&&I.JSC$10418_element_&&I.JSC$10418_element_.parentNode&&I.JSC$10418_element_.parentNode.nodeType==1&&I.enterDocument()};
_.L.getContentElement=function(){return this.JSC$10418_element_};
var eAG=function(I,y){I.children_&&I.children_.forEach(y,void 0)};
Ju.prototype.removeChild=function(I,y){if(I){var D=typeof I==="string"?I:I.getId();I=this.childIndex_&&D?_.e$.get(this.childIndex_,D)||null:null;D&&I&&(_.e$.remove(this.childIndex_,D),_.WH(this.children_,I),y&&(I.exitDocument(),I.JSC$10418_element_&&_.dM(I.JSC$10418_element_)),bZO(I,null))}if(!I)throw Error("eb");return I};_.EI(lTB,xoJ);_.EI(uGe,xoJ);var TNe;_.e$.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var s5f=function(I,y){y?I.setAttribute("role",y):I.removeAttribute("role")},Os=function(I,y,D){Array.isArray(D)&&(D=D.join(" "));
var F="aria-"+y;D===""||D==void 0?(TNe||(D={},TNe=(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=TNe,y in D?I.setAttribute(F,D[y]):I.removeAttribute(F)):I.setAttribute(F,D)};var Vua;_.LH=function(I,y,D){_.Zw.call(this);this.target=I;this.handle=y||I;this.limits=D||new YB(NaN,NaN,NaN,NaN);this.JSC$10423_document_=_.VE(I);this.JSC$10423_eventHandler_=new _.H5(this);_.pW(this,this.JSC$10423_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;_.bV(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Vua};
_.EI(_.LH,_.Zw);Vua=_.Ft.document&&_.Ft.document.documentElement&&!!_.Ft.document.documentElement.setCapture&&!!_.Ft.document.releaseCapture;_.ZZc=function(I,y){I.hysteresisDistanceSquared_=Math.pow(y,2)};
_.L=_.LH.prototype;_.L.setEnabled=function(I){this.enabled_=I};
_.L.disposeInternal=function(){_.LH.superClass_.disposeInternal.call(this);_.V1(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10423_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10423_document_.releaseCapture();this.handle=this.target=null};
_.L.startDrag=function(I){var y=I.type=="mousedown";if(!this.enabled_||this.dragging_||y&&(!I.isButton(0)||_.hnf&&I.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Jr("start",this,I.clientX,I.clientY,I)))this.dragging_=!0,y&&I.preventDefault();else return;else y&&I.preventDefault();y=this.JSC$10423_document_;var D=y.documentElement,F=!this.useSetCapture_;this.JSC$10423_eventHandler_.listen(y,["touchmove","mousemove"],this.handleMove_,
{capture:F,passive:!1});this.JSC$10423_eventHandler_.listen(y,["touchend","mouseup"],this.endDrag,F);this.useSetCapture_?(D.setCapture(!1),this.JSC$10423_eventHandler_.listen(D,"losecapture",this.endDrag)):this.JSC$10423_eventHandler_.listen(st(y),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10423_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,F);this.clientX=this.startX=I.clientX;this.clientY=this.startY=I.clientY;this.screenX=I.screenX;this.screenY=I.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=WB(CG(this.JSC$10423_document_))}};
_.L.endDrag=function(I,y){this.JSC$10423_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10423_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Jr("end",this,I.clientX,I.clientY,I,gCM(this,this.deltaX),I_O(this,this.deltaY),y||I.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.L.handleMove_=function(I){if(this.enabled_){var y=I.clientX-this.clientX,D=I.clientY-this.clientY;this.clientX=I.clientX;this.clientY=I.clientY;this.screenX=I.screenX;this.screenY=I.screenY;if(!this.dragging_){var F=this.startX-this.clientX,R=this.startY-this.clientY;if(F*F+R*R>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Jr("start",this,I.clientX,I.clientY,I)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(I);return}}D=yRR(this,y,D);y=D.x;D=D.y;this.dragging_&&this.dispatchEvent(new Jr("beforedrag",
this,I.clientX,I.clientY,I,y,D))&&(DUM(this,I,y,D),I.preventDefault())}};
var yRR=function(I,y,D){var F=WB(CG(I.JSC$10423_document_));y+=F.x-I.pageScroll.x;D+=F.y-I.pageScroll.y;I.pageScroll=F;I.deltaX+=y;I.deltaY+=D;return new _.XO(gCM(I,I.deltaX),I_O(I,I.deltaY))};
_.LH.prototype.onScroll_=function(I){var y=yRR(this,0,0);I.clientX=this.clientX;I.clientY=this.clientY;DUM(this,I,y.x,y.y)};
var DUM=function(I,y,D,F){I.target.style.left=D+"px";I.target.style.top=F+"px";I.dispatchEvent(new Jr("drag",I,y.clientX,y.clientY,y,D,F))},gCM=function(I,y){var D=I.limits;
I=isNaN(D.left)?null:D.left;D=isNaN(D.width)?0:D.width;return Math.min(I!=null?I+D:Infinity,Math.max(I!=null?I:-Infinity,y))},I_O=function(I,y){var D=I.limits;
I=isNaN(D.top)?null:D.top;D=isNaN(D.height)?0:D.height;return Math.min(I!=null?I+D:Infinity,Math.max(I!=null?I:-Infinity,y))};
_.LH.prototype.isDragging=function(){return this.dragging_};
var Jr=function(I,y,D,F,R,O,w){_.uS.call(this,I);this.clientX=D;this.clientY=F;this.browserEvent=R;this.left=O!==void 0?O:y.deltaX;this.top=w!==void 0?w:y.deltaY};
_.EI(Jr,_.uS);var wX=function(I){this.JSC$10430_map_=new Map;var y=arguments.length;if(y>1){if(y%2)throw Error("ma");for(var D=0;D<y;D+=2)this.set(arguments[D],arguments[D+1])}else I&&this.addAll(I)};
_.L=wX.prototype;_.L.getCount=function(){return this.JSC$10430_map_.size};
_.L.getValues=function(){return Array.from(this.JSC$10430_map_.values())};
_.L.getKeys=function(){return Array.from(this.JSC$10430_map_.keys())};
_.L.containsKey=function(I){return this.JSC$10430_map_.has(I)};
_.L.containsValue=function(I){return this.getValues().some(function(y){return y==I})};
_.L.equals=function(I,y){var D=this;y=y===void 0?function(F,R){return F===R}:y;
return this===I?!0:this.JSC$10430_map_.size!=I.getCount()?!1:this.getKeys().every(function(F){return y(D.JSC$10430_map_.get(F),I.get(F))})};
_.L.isEmpty=function(){return this.JSC$10430_map_.size==0};
_.L.clear=function(){this.JSC$10430_map_.clear()};
_.L.remove=function(I){return this.JSC$10430_map_.delete(I)};
_.L.get=function(I,y){return this.JSC$10430_map_.has(I)?this.JSC$10430_map_.get(I):y};
_.L.set=function(I,y){this.JSC$10430_map_.set(I,y);return this};
_.L.addAll=function(I){if(I instanceof wX){I=_.J(I.JSC$10430_map_);for(var y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;this.JSC$10430_map_.set(y,D)}}else if(I)for(I=_.J(Object.entries(I)),y=I.next();!y.done;y=I.next())D=_.J(y.value),y=D.next().value,D=D.next().value,this.JSC$10430_map_.set(y,D)};
_.L.forEach=function(I,y){var D=this;y=y===void 0?this:y;this.JSC$10430_map_.forEach(function(F,R){return I.call(y,F,R,D)})};
_.L.clone=function(){return new wX(this)};(function(){for(var I=["ms","moz","webkit","o"],y,D=0;y=I[D]&&!_.Ft.requestAnimationFrame;++D)_.Ft.requestAnimationFrame=_.Ft[y+"RequestAnimationFrame"],_.Ft.cancelAnimationFrame=_.Ft[y+"CancelAnimationFrame"]||_.Ft[y+"CancelRequestAnimationFrame"];if(!_.Ft.requestAnimationFrame){var F=0;_.Ft.requestAnimationFrame=function(R){var O=(new Date).getTime(),w=Math.max(0,16-(O-F));F=O+w;return _.Ft.setTimeout(function(){R(O+w)},w)};
_.Ft.cancelAnimationFrame||(_.Ft.cancelAnimationFrame=function(R){clearTimeout(R)})}})();
var Ek5=[[],[]],GmB=0,X1S=!1,qlt=0;var FQa=_.UI(["about:blank"]),RL_=_.UI(["javascript:undefined"]),ODu=_.Et(FQa);_.W$(ODu);var LQP=_.Et(RL_);_.W$(LQP);var vR=function(I){_.Zw.call(this);this.JSC$10436_element_=I;this.listenKeyIn_=_.bV(this.JSC$10436_element_,"focus",this,!0);this.listenKeyOut_=_.bV(this.JSC$10436_element_,"blur",this,!0)};
_.EI(vR,_.Zw);vR.prototype.handleEvent=function(I){var y=new _.ee(I.event_);y.type=I.type=="focusin"||I.type=="focus"?"focusin":"focusout";this.dispatchEvent(y)};
vR.prototype.disposeInternal=function(){vR.superClass_.disposeInternal.call(this);iV(this.listenKeyIn_);iV(this.listenKeyOut_);delete this.JSC$10436_element_};_.EI(wR,Ju);_.L=wR.prototype;_.L.focusHandler_=null;_.L.visible_=!1;_.L.bgEl_=null;_.L.bgIframeEl_=null;_.L.tabCatcherElement_=null;_.L.backwardTabWrapInProgress_=!1;_.L.getCssClass=function(){return"goog-modalpopup"};
_.L.getBackgroundElement=function(){return this.bgEl_};
_.L.JSC$10420_createDom=function(){wR.superClass_.JSC$10420_createDom.call(this);var I=this.getElement(),y=K5(this.getCssClass()).split(" ");xr(I,y);I.tabIndex=0;_.xM(I,!1);JRR(this);wxG(this)};
var JRR=function(I){if(I.useIframeMask_&&!I.bgIframeEl_){var y=I.JSC$10418_dom_.JSC$9604_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Ok(y,ODu);I.bgIframeEl_=y;I.bgIframeEl_.className=I.getCssClass()+"-bg";_.xM(I.bgIframeEl_,!1);K5f(I.bgIframeEl_,0)}I.bgEl_||(I.bgEl_=I.JSC$10418_dom_.JSC$9604_createDom("DIV",I.getCssClass()+"-bg"),_.xM(I.bgEl_,!1))},wxG=function(I){I.tabCatcherElement_||(I.tabCatcherElement_=I.JSC$10418_dom_.createElement("SPAN"),_.xM(I.tabCatcherElement_,
!1),I.tabCatcherElement_.tabIndex=0,I.tabCatcherElement_.style.position="absolute")};
_.L=wR.prototype;_.L.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.L.canDecorate=function(I){return!!I&&I.tagName=="DIV"};
_.L.decorateInternal=function(I){wR.superClass_.decorateInternal.call(this,I);I=K5(this.getCssClass()).split(" ");xr(this.getElement(),I);JRR(this);wxG(this);this.getElement().tabIndex=0;_.xM(this.getElement(),!1)};
_.L.enterDocument=function(){this.bgIframeEl_&&_.O5(this.bgIframeEl_,this.getElement());_.O5(this.bgEl_,this.getElement());wR.superClass_.enterDocument.call(this);_.LA(this.tabCatcherElement_,this.getElement());this.focusHandler_=new vR(this.JSC$10418_dom_.JSC$9602_document_);Rc(this).listen(this.focusHandler_,"focusin",this.onFocus);vic(this,!1)};
_.L.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.rM(this.focusHandler_);wR.superClass_.exitDocument.call(this);_.dM(this.bgIframeEl_);_.dM(this.bgEl_);_.dM(this.tabCatcherElement_)};
_.L.setVisible=function(I){if(I!=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_&&vic(this,I),I){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10418_dom_.JSC$9602_document_.activeElement}catch(R){}this.updateModalAndBackground_();Rc(this).listen(this.JSC$10418_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10418_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);S_G(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Ib(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Rc(this).unlisten(this.JSC$10418_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10418_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Ib(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var y=this.JSC$10418_dom_,D=y.JSC$9602_document_.body,F=y.JSC$9602_document_.activeElement||D;if(!this.lastFocus_||this.lastFocus_==D){this.lastFocus_=null;break a}(F==D||y.contains(this.getElement(),F))&&this.lastFocus_.focus()}catch(R){}this.lastFocus_=
null}}};
var vic=function(I,y){I.modalAriaVisibilityHelper_||(I.modalAriaVisibilityHelper_=new fT5(I.JSC$10418_element_,I.JSC$10418_dom_));I=I.modalAriaVisibilityHelper_;if(y){I.hiddenElements_||(I.hiddenElements_=[]);y=I.JSC$10439_dom_.getChildren(I.JSC$10439_dom_.JSC$9602_document_.body);for(var D=0;D<y.length;D++){var F=y[D],R;if(R=F!=I.JSC$10439_element_)R=F.getAttribute("aria-hidden"),R=!(R==null||R==void 0?0:String(R));R&&(Os(F,"hidden",!0),I.hiddenElements_.push(F))}}else if(I.hiddenElements_){for(y=
0;y<I.hiddenElements_.length;y++)I.hiddenElements_[y].removeAttribute("aria-hidden");I.hiddenElements_=null}};
wR.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var S_G=function(I,y){I.bgIframeEl_&&_.xM(I.bgIframeEl_,y);I.bgEl_&&_.xM(I.bgEl_,y);_.xM(I.getElement(),y);_.xM(I.tabCatcherElement_,y)};
_.L=wR.prototype;_.L.onShow=function(){this.dispatchEvent("show")};
_.L.onHide=function(){S_G(this,!1);this.dispatchEvent("hide")};
_.L.isVisible=function(){return this.visible_};
_.L.focus=function(){this.focusElement_()};
_.L.resizeBackground_=function(){this.bgIframeEl_&&_.xM(this.bgIframeEl_,!1);this.bgEl_&&_.xM(this.bgEl_,!1);var I=this.JSC$10418_dom_.JSC$9602_document_;var y=_.cB(st(this.JSC$10418_dom_.JSC$9602_document_)||window);var D=Math.max(y.width,Math.max(I.body.scrollWidth,I.documentElement.scrollWidth));I=Math.max(y.height,Math.max(I.body.scrollHeight,I.documentElement.scrollHeight));this.bgIframeEl_&&(_.xM(this.bgIframeEl_,!0),_.vWR(this.bgIframeEl_,D,I));this.bgEl_&&(_.xM(this.bgEl_,!0),_.vWR(this.bgEl_,
D,I))};
_.L.reposition=function(){var I;if(_.w5M(this.getElement())=="fixed")var y=I=0;else y=WB(this.JSC$10418_dom_),I=y.x,y=y.y;var D=tTO(this.getElement());var F=_.cB(st(this.JSC$10418_dom_.JSC$9602_document_)||window);I=Math.max(I+F.width/2-D.width/2,0);y=Math.max(y+F.height/2-D.height/2,0);tP(this.getElement(),I,y);tP(this.tabCatcherElement_,I,y)};
_.L.onFocus=function(I){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():I.target==this.tabCatcherElement_&&FI(this.focusElement_,0,this)};
_.L.focusElement_=function(){try{this.getElement().focus()}catch(I){}};
_.L.disposeInternal=function(){_.rM(this.popupShowTransition_);this.popupShowTransition_=null;_.rM(this.popupHideTransition_);this.popupHideTransition_=null;_.rM(this.bgShowTransition_);this.bgShowTransition_=null;_.rM(this.bgHideTransition_);this.bgHideTransition_=null;wR.superClass_.disposeInternal.call(this)};var SR=function(I,y,D){wR.call(this,y,D);this.JSC$10449_class_=I||"modal-dialog";this.buttons_=(new SV).addButton(tCW,!0).addButton(P5u,!1,!0)};
_.EI(SR,wR);_.L=SR.prototype;_.L.escapeToCancel_=!0;_.L.hasTitleCloseButton_=!0;_.L.modal_=!0;_.L.draggable_=!0;_.L.backgroundElementOpacity_=.5;_.L.title_="";_.L.JSC$10451_dragger_=null;_.L.JSC$10451_disposeOnHide_=!1;_.L.titleEl_=null;_.L.titleTextEl_=null;_.L.titleTextId_=null;_.L.titleCloseEl_=null;_.L.contentEl_=null;_.L.buttonEl_=null;_.L.getCssClass=function(){return this.JSC$10449_class_};
_.L.setTitle=function(I){this.title_=I;this.titleTextEl_&&_.wC(this.titleTextEl_,I)};
_.L.getTitle=function(){return this.title_};
_.L.getContent=function(){return""};
_.L.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var KQP=function(I){I.getElement()||I.render();return I.getElement()};
SR.prototype.getBackgroundElement=function(){this.getElement()||this.render();return SR.superClass_.getBackgroundElement.call(this)};
var UUa=function(I,y){I.backgroundElementOpacity_=y;I.getElement()&&(y=I.getBackgroundElement())&&K5f(y,I.backgroundElementOpacity_)};
SR.prototype.setDraggable=function(I){this.draggable_=I;rRM(this,I&&this.inDocument_)};
SR.prototype.handleDrag=function(){};
var rRM=function(I,y){var D=K5(I.JSC$10449_class_+"-title-draggable").split(" ");I.getElement()&&(y?xr(I.titleEl_,D):yOG(I.titleEl_,D));y&&!I.JSC$10451_dragger_?(y=new _.LH(I.getElement(),I.titleEl_),I.JSC$10451_dragger_=y,xr(I.titleEl_,D),_.bV(I.JSC$10451_dragger_,"start",I.setDraggerLimits_,!1,I),_.bV(I.JSC$10451_dragger_,"drag",I.handleDrag,!1,I)):!y&&I.JSC$10451_dragger_&&(I.JSC$10451_dragger_.dispose(),I.JSC$10451_dragger_=null)};
_.L=SR.prototype;
_.L.JSC$10420_createDom=function(){SR.superClass_.JSC$10420_createDom.call(this);var I=this.getElement(),y=this.JSC$10418_dom_;this.titleTextId_=this.getId();var D=this.getId()+".contentEl";this.titleEl_=y.JSC$9604_createDom("DIV",this.JSC$10449_class_+"-title",this.titleTextEl_=y.JSC$9604_createDom("SPAN",{className:this.JSC$10449_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=y.JSC$9604_createDom("SPAN",this.JSC$10449_class_+"-title-close"));AYu(I,this.titleEl_,this.contentEl_=
y.JSC$9604_createDom("DIV",{className:this.JSC$10449_class_+"-content",id:D}),this.buttonEl_=y.JSC$9604_createDom("DIV",this.JSC$10449_class_+"-buttons"));s5f(this.titleTextEl_,"heading");s5f(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Os(this.titleCloseEl_,"label","Close");s5f(I,"dialog");Os(I,"labelledby",this.titleTextId_||"");_.xM(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(I=this.buttons_,I.JSC$10452_element_=this.buttonEl_,I.render());_.xM(this.buttonEl_,!!this.buttons_);
UUa(this,this.backgroundElementOpacity_)};
_.L.decorateInternal=function(I){SR.superClass_.decorateInternal.call(this,I);I=this.getElement();var y=this.JSC$10449_class_+"-content";this.contentEl_=gJ(document,null,y,I)[0];this.contentEl_||(this.contentEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",y),I.appendChild(this.contentEl_));y=this.JSC$10449_class_+"-title";var D=this.JSC$10449_class_+"-title-text",F=this.JSC$10449_class_+"-title-close";(this.titleEl_=gJ(document,null,y,I)[0])?(this.titleTextEl_=gJ(document,null,D,this.titleEl_)[0],
this.titleCloseEl_=gJ(document,null,F,this.titleEl_)[0]):(this.titleEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",y),I.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=F5M(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.y1("SPAN",{className:D,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Os(I,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10418_dom_.JSC$9604_createDom("SPAN",F),this.titleEl_.appendChild(this.titleCloseEl_));_.xM(this.titleCloseEl_,this.hasTitleCloseButton_);y=this.JSC$10449_class_+"-buttons";(this.buttonEl_=gJ(document,null,y,I)[0])?(this.buttons_=new SV(this.JSC$10418_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",y),I.appendChild(this.buttonEl_),this.buttons_&&(I=this.buttons_,I.JSC$10452_element_=this.buttonEl_,I.render()),_.xM(this.buttonEl_,
!!this.buttons_));UUa(this,this.backgroundElementOpacity_)};
_.L.enterDocument=function(){SR.superClass_.enterDocument.call(this);Rc(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Rc(this).listen(this.buttonEl_,"click",this.onButtonClick_);rRM(this,this.draggable_);Rc(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var I=this.getElement();s5f(I,"dialog");this.titleTextEl_.id!==""&&Os(I,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){I=this.JSC$10418_dom_;
var y=this.getBackgroundElement();I.removeNode(this.bgIframeEl_);I.removeNode(y)}this.isVisible()&&vic(this,!1)}};
_.L.exitDocument=function(){this.isVisible()&&this.setVisible(!1);rRM(this,!1);SR.superClass_.exitDocument.call(this)};
_.L.setVisible=function(I){I!=this.isVisible()&&(this.inDocument_||this.render(),SR.superClass_.setVisible.call(this,I))};
_.L.onShow=function(){SR.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.L.onHide=function(){SR.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10451_disposeOnHide_&&this.dispose()};
_.L.setDraggerLimits_=function(){var I=this.JSC$10418_dom_.JSC$9602_document_,y=_.cB(st(I)||window),D=Math.max(I.body.scrollWidth,y.width);I=Math.max(I.body.scrollHeight,y.height);var F=tTO(this.getElement());_.w5M(this.getElement())=="fixed"?this.JSC$10451_dragger_.limits=new YB(0,0,Math.max(0,y.width-F.width),Math.max(0,y.height-F.height)):this.JSC$10451_dragger_.limits=new YB(0,0,D-F.width,I-F.height)};
_.L.onTitleCloseClick_=function(){jVR(this)};
var jVR=function(I){if(I.hasTitleCloseButton_){var y=I.buttons_,D=y&&y.cancelButton_;D?(y=y.get(D),I.dispatchEvent(new tr(D,y))&&I.setVisible(!1)):I.setVisible(!1)}},oiu=function(I){I.hasTitleCloseButton_=!1;
I.titleCloseEl_&&_.xM(I.titleCloseEl_,I.hasTitleCloseButton_)};
SR.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;SR.superClass_.disposeInternal.call(this)};
SR.prototype.onButtonClick_=function(I){a:{for(I=I.target;I!=null&&I!=this.buttonEl_;){if(I.tagName=="BUTTON")break a;I=I.parentNode}I=null}if(I&&!I.disabled){I=I.name;var y=this.buttons_.get(I);this.dispatchEvent(new tr(I,y))&&this.setVisible(!1)}};
SR.prototype.onKey_=function(I){var y=!1,D=!1,F=this.buttons_,R=I.target;if(I.type=="keydown")if(this.escapeToCancel_&&I.keyCode==27){var O=F&&F.cancelButton_;R=R.tagName=="SELECT"&&!R.disabled;O&&!R?(D=!0,y=F.get(O),y=this.dispatchEvent(new tr(O,y))):R||(y=!0)}else{if(I.keyCode==9&&I.shiftKey&&R==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(r){}FI(this.resetBackwardTabWrap_,0,this)}}else if(I.keyCode==13){if(R.tagName=="BUTTON"&&!R.disabled)O=R.name;
else if(R==this.titleCloseEl_)jVR(this);else if(F){var w=F.defaultButton_,v;if(v=w)a:{v=aD("BUTTON",F.JSC$10452_element_);for(var P,K=0;P=v[K];K++)if(P.name==w||P.id==w){v=P;break a}v=null}R=(R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="A")&&!R.disabled;!v||v.disabled||R||(O=w)}O&&F&&(D=!0,y=this.dispatchEvent(new tr(O,String(F.get(O)))))}else R!=this.titleCloseEl_||I.keyCode!=32&&I.key!=" "||jVR(this);if(y||D)I.stopPropagation(),I.preventDefault();y&&this.setVisible(!1)};
var tr=function(I,y){this.type="dialogselect";this.key=I;this.caption=y};
_.EI(tr,_.uS);var SV=function(I){wX.call(this);I||CG();this.cancelButton_=this.JSC$10452_element_=this.defaultButton_=null};
_.EI(SV,wX);_.L=SV.prototype;_.L.clear=function(){wX.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.L.set=function(I,y,D,F){wX.prototype.set.call(this,I,y);D&&(this.defaultButton_=I);F&&(this.cancelButton_=I);return this};
_.L.addButton=function(I,y,D){return this.set(I.key,I.caption,y,D)};
_.L.render=function(){if(this.JSC$10452_element_){_.rj(this.JSC$10452_element_,ivC);var I=CG(this.JSC$10452_element_);this.forEach(function(y,D){y=I.JSC$9604_createDom("BUTTON",{name:D},y);D==this.defaultButton_&&(y.className="goog-buttonset-default");this.JSC$10452_element_.appendChild(y)},this)}};
_.L.decorate=function(I){if(I&&I.nodeType==1){this.JSC$10452_element_=I;I=aD("BUTTON",this.JSC$10452_element_);for(var y,D,F,R=0;y=I[R];R++)if(D=y.name||y.id,F=F5M(y)||y.value,D){var O=R==0;this.set(D,F,O,y.name=="cancel");O&&_.PU(y,"goog-buttonset-default")}}};
_.L.getElement=function(){return this.JSC$10452_element_};
var tCW={key:"ok",caption:"OK"},P5u={key:"cancel",caption:"Cancel"},NUf={key:"yes",caption:"Yes"},hLG={key:"no",caption:"No"},xUg={key:"save",caption:"Save"},l_G={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new SV).addButton(tCW,!0,!0),(new SV).addButton(tCW,!0).addButton(P5u,!1,!0),(new SV).addButton(NUf,!0).addButton(hLG,!1,!0),(new SV).addButton(NUf).addButton(hLG,!0).addButton(P5u,!1,!0),(new SV).addButton(l_G).addButton(xUg).addButton(P5u,!0,!0));_.EI(nkq,SR);_.EI(p1S,tu);var u1c=_.UI(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),q_P=_.UI(["//apis.google.com/js/rpc.js"]),B1A=_.Et(u1c),CZt=_.Et(q_P),MA4=null;var Pm=function(I,y){_.Zw.call(this);this.JSC$10461_element_=I;I=_.Q2(this.JSC$10461_element_)?this.JSC$10461_element_:this.JSC$10461_element_?this.JSC$10461_element_.body:null;this.isRtl_=!!I&&_.UJz(I);this.listenKey_=_.bV(this.JSC$10461_element_,_.Wr?"DOMMouseScroll":"mousewheel",this,y)};
_.EI(Pm,_.Zw);Pm.prototype.handleEvent=function(I){var y=0,D=0,F=I.event_;F.type=="mousewheel"?(I=EiG(-F.wheelDelta),F.wheelDeltaX!==void 0?(y=EiG(-F.wheelDeltaX),D=EiG(-F.wheelDeltaY)):D=I):(I=F.detail,I>100?I=3:I<-100&&(I=-3),F.axis!==void 0&&F.axis===F.HORIZONTAL_AXIS?y=I:D=I);typeof this.maxDeltaX_==="number"&&(y=_.IL(y,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(D=_.IL(D,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(y=-y);y=new GGu(I,F,y,D);this.dispatchEvent(y)};
var EiG=function(I){return _.cr&&(_.hnf||lRe)&&I%40!=0?I:I/40};
Pm.prototype.disposeInternal=function(){Pm.superClass_.disposeInternal.call(this);iV(this.listenKey_);this.listenKey_=null};
var GGu=function(I,y,D,F){_.ee.call(this,y);this.type="mousewheel";this.detail=I;this.deltaX=D;this.deltaY=F};
_.EI(GGu,_.ee);_.l0=function(I){var y="instance_";if(I.instance_&&I.hasOwnProperty(y))return I.instance_;y=new I;return I.instance_=y};var W_o;var Xx_=_.UI(["https://about:blank"]),QVW=_.UI(['javascript:""']),Y_c=_.UI(["about:blank"]);_.EI(lS,nkq);_.L=lS.prototype;_.L.JSC$10469_url_="";_.L.JSC$10469_iframe_=null;_.L.iframeLoaded_=!1;_.L.loadedFired_=!1;_.L.callback_=function(){};
_.L.enterDocument=function(){lS.superClass_.enterDocument.call(this);doe(this.getBackgroundElement(),Rc(this))};
_.L.render=function(I){var y=this;lS.superClass_.render.call(this,I);this.useGapi_?ktf(this.iframeManager_,window).then(function(){return f_u(y)}).then(null,function(){y.callback_({action:"error"})}):ni_(this)};
var f_u=function(I){var y=I.JSC$10418_dom_.JSC$9604_createDom("div",["picker-dialog-content","picker-frame"]);_.xM(y,!1);I.getContentElement().appendChild(y);return dQG(I.iframeManager_,y,function(D){var F=Oez(D["iframe-command"]);switch(F.getCommand()){case 1:D=I.callback_;F=_.kk(F,YR,2);var R="";switch(F.getStatus()){case 2:R="cancel";break;case 1:R="picked";break;case 3:R="error"}var O=_.hv(F,AT,2,_.xW(i_a));F=O.length===0?{action:R}:j5z(O,R,_.kk(F,Dac,7));D.call(I,F);I.setVisible(!1);break;case 4:oiu(I);
I.callback_({action:"loaded"});break;case 7:case 8:D=I.callback_;a:{R=F.getCommand();O=_.kk(F,YR,2);switch(R){case 7:R="uploadScheduled";break;case 8:R="uploadStateChange";break;default:F={};break a}F=_.hv(O,AT,2,_.xW(i_a));if(F.length===0)F={action:R};else{var w=_.kk(O,Dac,7);O=w&&_.Tp(w,1);w=OZg(w);F=wrM(F,R,O,w)}}D.call(I,F)}},I.JSC$10469_url_,I.targetId_,I.rpcToken_).then(function(D){I.JSC$10469_iframe_=D.getIframeEl();
pxz(I);_.xM(I.JSC$10469_iframe_.parentElement,!0);_.PU(I.getElement(),"picker-dialog");mUO(I);return D})},ni_=function(I){I.JSC$10469_iframe_=I.JSC$10418_dom_.JSC$9604_createDom("IFRAME",{id:I.targetId_,
name:I.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Ok(I.JSC$10469_iframe_,MCa(I));_.PU(I.getElement(),"picker-dialog");I.getContentElement().appendChild(I.JSC$10469_iframe_);Rc(I).listen(I.JSC$10469_iframe_,"load",function(){return void pxz(I)});
I.JSC$10469_iframe_.src=I.JSC$10469_url_;mUO(I)},kGW=function(I){zLG(I,(0,_.iD)(function(y){y.setAuthToken(this.targetId_,this.rpcToken_)},I))},mUO=function(I){var y=_.Na(_.ob(I.JSC$10469_url_),"title");
y&&I.setTitle(y)},MCa=function(I){return _.utA("Internet Explorer")>=7&&_.Oq(I.JSC$10469_url_,"https")?_.Et(Xx_):_.fz?_.Et(QVW):_.Et(Y_c)},pxz=function(I){kGW(I);
I.iframeLoaded_=!0;I.JSC$10469_iframe_.tabIndex=0;I.isVisible()&&I.focus()};
lS.prototype.handleKeydown_=function(I){I.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),I.stopPropagation(),I.preventDefault())};
var zLG=function(I,y){var D=I.JSC$10467_gadgetsDomHelper_;z5A(function(){y(D.getWindow().gadgets.rpc)},D)};
lS.prototype.setUrl=function(I){I=_.hu(new _.Pg(I),"rpcService",this.targetId_);_.hu(I,"rpctoken",this.rpcToken_);_.f9(I,"rpctoken="+this.rpcToken_);_.E7(I,"https");this.JSC$10469_url_=I.toString();this.JSC$10469_iframe_&&(this.JSC$10469_iframe_.src=this.JSC$10469_url_)};
var dUc=function(I,y){I.callback_=y;zLG(I,(0,_.iD)(function(D){D.register(this.targetId_,(0,_.iD)(this.handlePickerAction_,this))},I))};
lS.prototype.handlePickerAction_=function(I){var y=I.action;y=="loaded"&&(this.loadedFired_=!0,a_g(this,new uGe(this.isVisible())),cRa(this),oiu(this),Rc(this).unlisten(this.JSC$10418_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10469_iframe_.tabIndex=0);y!="picked"&&y!="cancel"||this.setVisible(!1);this.callback_(I)};
var cRa=function(I){I.JSC$10469_appId_&&a_g(I,new lTB(I.JSC$10469_appId_,window.location.protocol+"//"+window.location.host))};
lS.prototype.setRelayUrl=function(I){zLG(this,(0,_.iD)(function(y){y.setRelayUrl(this.targetId_,I)},this))};
var a_g=function(I,y){I.useGapi_&&BNa(y,I.iframeManager_).then(null,function(){I.callback_({action:"error"})});
zLG(I,(0,_.iD)(function(D){D.call(this.targetId_,"picker",null,y)},I))};
lS.prototype.resizePicker_=function(){var I=st(this.JSC$10418_dom_.JSC$9602_document_)||window;if(_.Na(_.ob(this.JSC$10469_url_),"ignoreLimits")=="true")I=new _.ad(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Na(_.ob(this.JSC$10469_url_),"shadeDialog")=="true"){var y=KQP(this);y=rvW(y);var D=_.cB(I);I=D.width-80;D=D.height-40;y&&(I-=y.left?y.left:0,I-=y.right?y.right:0,D-=y.top?y.top:0,D-=y.bottom?y.bottom:0);I=new _.ad(I>0?I:0,D>0?D:0)}else(y=this.preferredDialogWidth_)?(y=Math.max(320,
Math.min(1051,y)),(D=this.preferredDialogHeight_)||(D=_.cB(I).height*.85),D=Math.max(480,Math.min(650,D))):(y=_.cB(I),D=y.width*.618,D=D<y.height?Math.round(Math.max(480,Math.min(650,D*.85))):Math.round(Math.max(480,Math.min(650,y.height*.85))),y=Math.round(D/.618)),I=_.cB(I),y=Math.min(y,Math.max(I.width,320)),D=Math.min(D,Math.max(I.height,480)),I=new _.ad(y,D);_.vWR(this.getContentElement(),I);this.reposition()};
lS.prototype.reposition=function(){if(_.Na(_.ob(this.JSC$10469_url_),"shadeDialog")=="true"){var I=tTO(this.getElement()),y=_.cB(this.JSC$10418_dom_.getWindow());I=Math.floor(y.width/2-I.width/2);y=KQP(this);if(y=rvW(y)){var D=y.left?y.left:0;D+=y.right?y.right:0;I=Math.floor(I-D/2)}I=I>0?I:0;y=WB(this.JSC$10418_dom_).y;tP(this.getElement(),I,y)}else lS.superClass_.reposition.call(this)};
lS.prototype.setVisible=function(I){if(I!=this.isVisible()&&this.autoSizeDialog_){var y=this.JSC$10418_dom_.getWindow();I?(this.resizePicker_(),Rc(this).listen(y,"resize",this.resizePicker_),this.iframeLoaded_||Rc(this).listen(y,"keydown",this.handleKeydown_)):(Rc(this).unlisten(y,"resize",this.resizePicker_),this.iframeLoaded_||Rc(this).unlisten(y,"keydown",this.handleKeydown_))}lS.superClass_.setVisible.call(this,I);a_g(this,new uGe(I))};
lS.prototype.focus=function(){lS.superClass_.focus.call(this);if(this.JSC$10469_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10469_iframe_.focus()}catch(I){}};var C0=function(I,y){y=y===void 0?lS:y;tu.call(this,I);this.pickerConstructor=y;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(I=window.location.origin)||(I=window.location.protocol+"//"+window.location.host);I&&this.urlParamMap_.set("origin",I);this.postProcessors_=[]};
_.E(C0,p1S);C0.prototype.JSC$10474_disposeOnHide_=!1;
C0.prototype.build=function(){this.JSC$10375_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10375_appId_);this.getRelayUrl()||this.setRelayUrl(_.QL(_.f9(_.Yr(_.ob(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("gb");var I=new this.pickerConstructor(WQR(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);I.JSC$10451_disposeOnHide_=this.JSC$10474_disposeOnHide_;
I.JSC$10469_appId_=this.JSC$10375_appId_;I.loadedFired_&&cRa(I);dUc(I,this.callback_);return I};
var C5c=function(I){I.urlParamMap_.set("multiselectEnabled","true");return I};
_.L=C0.prototype;_.L.getHeight=function(){return this.dialogHeight_};
_.L.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.L.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.L.getTitle=function(){return this.urlParamMap_.get("title")};
_.L.getWidth=function(){return this.dialogWidth_};
var BUc=function(I){I.JSC$10474_disposeOnHide_=void 0;return I};
C0.prototype.setRelayUrl=function(I){this.urlParamMap_.set("parent",I);return this};
var iDM=function(I,y){I.urlParamMap_.set("selectButtonLabel",y);return I};
C0.prototype.setSize=function(I,y){this.dialogWidth_=I;this.dialogHeight_=y;return this};
C0.prototype.setTitle=function(I){this.urlParamMap_.set("title",I);return this};
var WQR=function(I){I.postProcessors_.length&&I.urlParamMap_.set("pp",JSON.stringify(I.postProcessors_));I.urlParamMap_.set("nav",ypa(I.nav_));var y=new _.Pg(I.getBaseUrl());I.urlParamMap_.forEach(function(D,F){_.hu(y,F,D)});
return y};var bDe=function(I,y){I.name!==void 0?(this.name=I.name,this.code=ARn[I.name]):(this.code=I=I.code,this.name=$Un(I));_.Io.call(this,nQO("%s %s",this.name,y))};
_.EI(bDe,_.Io);var $Un=function(I){var y=_.e$.findKey(ARn,function(D){return I==D});
if(y===void 0)throw Error("ib`"+I);return y},PR={},ARn=(PR.AbortError=3,PR.EncodingError=5,PR.InvalidModificationError=9,PR.InvalidStateError=7,PR.NotFoundError=1,PR.NotReadableError=4,PR.NoModificationAllowedError=6,PR.PathExistsError=12,PR.QuotaExceededError=10,PR.SecurityError=2,PR.SyntaxError=8,PR.TypeMismatchError=11,PR);_.EI(A0B,_.uS);var HDW=function(I,y,D){D===void 0&&(D=I.size);return I.slice?I.slice(y,D):null};var bvB=new WeakMap,$o5=function(I,y){I=[I];for(var D=y.length-1;D>=0;--D)I.push(typeof y[D],y[D]);return I.join("\v")};_.e5o(function(){if(!_.Ft.Blob)return!1;var I=new Uint8Array(100);try{var y=new Blob([I])}catch(D){return!1}return y.size!=100?!1:!0});
var eLW=_.e5o(function(){if(!_.Ft.Blob)return!1;var I=new Uint8Array(100);try{var y=new Blob([I])}catch(D){return!1}return HDW(y,0,1)===null?!1:!0});_.Ft.U3bHHf!=null||(_.Ft.U3bHHf=0);_.Ft.U3bHHf++;var VAJ=new WeakMap;var sCt=new WeakMap;var IJW={};var YM=void 0;var DwW=Symbol("qb");var o7t=pe("WizInjectionContext_Dispatcher");var fi=Symbol("rb");var AI=function(){this.afterRenderCallbacks=null},JOq=Symbol("sb"),sf=function(I){this.props=I;
this.__unmounted=!1};
sf.prototype.didPatch=function(){};
sf.prototype.didMount=function(){};
sf.prototype.didUnmount=function(){};
sf.prototype.didUpdate=function(){};var L$A=pe("WizInjectionContext_RootElement");var Uwe=pe("WizInjectionContext_AppContext"),K$B=pe("WizInjectionContext_ModelRootElement"),rOt=pe("WizInjectionContext_RendererData"),jrA=pe("WizInjectionContext_InjectingConstructor"),PHB=pe("WizInjectionContext_AsyncDeps"),N2J={};var E7o=!1;var Y6A={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:KMO,enableContextPerComponent:KMO,enableLazyTsx:Uzu,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:Pue,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Ma=Object.assign({},{attributes:{},handleError:function(I){throw I;}},Y6A);var TUf=Symbol("wb"),F8=Symbol("xb"),I6H=Symbol("yb"),ZTW=Symbol("zb"),JpW=dc(function(I){return Au(I)&&TUf in I});var zO=null,dR=!1,cm=1,Bm=Symbol("Db"),TO={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 KH=Symbol("Eb"),Us=Symbol("Fb"),Ce=Symbol("Gb"),iue=Object.assign({},TO,{value:KH,dirty:!0,error:null,equal:Mnt,kind:"computed",producerMustRecompute:function(I){return I.value===KH||I.value===Us},
producerRecomputeValue:function(I){if(I.value===Us)throw Error("Z");var y=I.value;I.value=Us;var D=W$B(I),F=!1;try{var R=I.computation();kM(null);F=y!==KH&&y!==Ce&&R!==Ce&&I.equal(y,R)}catch(O){R=Ce,I.error=O}finally{kM(D),I&&B2B(I)}F?I.value=y:(I.value=R,I.version++)}});var sVG=Object.assign({},TO,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Hue=function(){throw Error();};var T2q=null,$wB=Object.assign({},TO,{equal:Mnt,value:void 0,kind:"signal"});var srA=Object.assign({},TO,{value:KH,dirty:!0,error:null,equal:Mnt,kind:"linkedSignal",producerMustRecompute:function(I){return I.value===KH||I.value===Us},
producerRecomputeValue:function(I){if(I.value===Us)throw Error("Z");var y=I.value;I.value=Us;var D=W$B(I);try{var F=I.source();var R=I.computation(F,y===KH||y===Ce?void 0:{source:I.sourceValue,value:y});I.sourceValue=F}catch(O){R=Ce,I.error=O}finally{kM(D),I&&B2B(I)}y!==KH&&R!==Ce&&I.equal(y,R)?I.value=y:(I.value=R,I.version++)}});Object.assign({},TO,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(I){I.schedule!==null&&I.schedule(I.ref)},
cleanupFn:function(){}});var FAq=Symbol("Hb"),rX={},IMA=(rX[FAq]=!0,rX.debugName="[component]",rX.getComponentStack=function(){for(var I=[],y=this;y;)RNe(y)&&I.push(y.debugName),y=y.parent;return I},rX.registerSignal=function(){},rX.registerEffect=function(){},rX);var GUC=Symbol("Ib"),bS=Symbol("Jb");var Hm=Array.isArray;var zNe;var VCP={},dM5=MbW(Object.assign({},{consumerAllowSignalWrites:!0},VCP)),bF=MbW(Object.assign({},{consumerAllowSignalWrites:!0},VCP));var gR=Symbol("Ob");var Za=null,CKW,BIB=null,iT_;var RU=0,Of=!1,jV=function(){this.queue=new Set};
jV.prototype.schedule=function(I){this.queue.add(I)};
jV.prototype.remove=function(I){this.queue.delete(I)};
jV.prototype.clear=function(){this.queue.clear()};
var eN5=Symbol("Pb"),bTq=Symbol("Qb"),oc=function(){jV.apply(this,arguments)};
_.E(oc,jV);oc.prototype.flush=function(){if(this.queue.size){Of=!0;for(var I=_.J(this.queue),y=I.next();!y.done;y=I.next()){y=y.value;this.queue.delete(y);try{y.run()}catch(D){ZDn(D)}}Of=!1}};
var gi_=function(){oc.apply(this,arguments)};
_.E(gi_,oc);var HTH=new gi_,ILz=function(){oc.apply(this,arguments)};
_.E(ILz,oc);ILz.prototype.schedule=function(I){return _.S(function(y){if(y.nextAddress==1)return y.yield(Promise.resolve(),2);I.run();_.Cj(y)})};
ILz.prototype.enqueue=function(I){this.queue.add(I)};
var TIt=new ILz,Nj=function(){jV.apply(this,arguments)};
_.E(Nj,jV);Nj.prototype.flush=function(){this.queue.size&&wrJ(this.queue)};
var y9_=function(){Nj.apply(this,arguments)};
_.E(y9_,Nj);y9_.prototype.schedule=function(I){I.version===0?I.run():this.queue.add(I)};
y9_.prototype.flush=function(){if(this.queue.size)if(Ma.flushRenderEffectsDuringRender){var I=this.queue;this.queue=new Set;wrJ(I)}else wrJ(this.queue)};
var Vbt=new y9_,DrG=function(){Nj.apply(this,arguments)};
_.E(DrG,Nj);DrG.prototype.schedule=function(I){return _.S(function(y){if(y.nextAddress==1)return y.yield(Promise.resolve(),2);I.run();_.Cj(y)})};
DrG.prototype.enqueue=function(I){this.queue.add(I)};
var ype=new DrG,F9f=function(){Nj.apply(this,arguments)};
_.E(F9f,Nj);var gnH=new F9f,FDe=[Vbt,HTH,gnH],LDH=[TIt,ype],R3a=[Vbt,gnH,ype],vCJ=[].concat(_.Td(FDe),_.Td(LDH)),OEc=[];T2q=function(){OZB();for(var I=_.J(OEc),y=I.next();!y.done;y=I.next())y=y.value,y()};
var ZDn=Ro;var hr={},L9u=Object.assign({},sVG,(hr[TUf]=!0,hr.effectType=F8,hr.isResettableContext=!0,hr.consumerMarkedDirty=DQ4,hr.run=function(){tuC(this)},hr.cleanup=function(){tnq(this)},hr.componentStack=void 0,hr.debugName="[effect]",hr.destroy=function(){if(ab(this))for(var I=this.producers;I!==void 0;)I=CHt(I);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;I=_.J(R3a);for(var y=I.next();!y.done;y=I.next())y.value.remove(this);S6W(this)},hr[Symbol.dispose]=function(){this.destroy()},hr)),J9a=Object.assign({},L9u,{version:1,
dirty:!1});var Pg_=Object.assign({},L9u,{effectType:F8});var KDC=Object.assign({},L9u,{effectType:I6H});var j5S=Symbol("Sb");var I_q=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 hAS={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},NNq=
{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}]}},QZt={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},uTL=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],l6o={"*":{async:1,dir:0,loading:2,target:3}};var wgn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,x_={},EC_=(x_[1]=null,x_[2]=function(I,y){return y instanceof Dt?RB(y):sx.toString()},x_[3]=function(I,y){return ba(y)?_.H$(y):wgn.test(String(y))?String(y):sx.toString()},x_[4]=function(I,y){return y instanceof an?_.W$(y):sx.toString()},x_[5]=function(I,y){return String(y)},x_[7]=null,x_[8]=null,x_[10]=null,x_);var Ewe=Symbol("Vb");var Y1W="Y Z E P T G M K  m u n".split(" "),Q5q={"":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};_.vIa=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 aU={};RegExp.prototype.hasOwnProperty("sticky");var DUL=function(I){I=String(I);for(var y=function(F,R,O){for(var w=Math.min(R.length-O,F.length),v=0;v<w;v++){var P=R[O+v];if(F[v]!==("A"<=P&&P<="Z"?P.toLowerCase():P))return!1}return!0},D=0;(D=I.indexOf("<",D))!=-1;){if(y("\x3c/script",I,D)||y("\x3c!--",I,D))return"zSoyz";
D+=1}return I};var oU={default:"__default"};var Muo=Object.prototype.hasOwnProperty;nCq.prototype=Object.create(null);var Q9=dQH();var GB=null;var TNo=function(I){this.created=[];this.deleted=[];this.node=I};var s5W=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var I=this,y=I;I;)y=I,I=I.parentNode;return y};var cp5=function(I,y){this._attrsArr=null;this.nameOrCtor=I;this.key=y;this.text=void 0};var x4=null,lF=null,N3=null,q3=null,$Q_=[],ApB=BNe,Ef=[],qA5=function(I){return Vue(function(y,D,F){N3=lF=y;lF=null;D(F);iZ_(null);lF=N3;N3=N3.parentNode;return y},I)}(),uPq=function(I){return Vue(function(y,D,F){var R={nextSibling:y};
lF=R;D(F);N3&&iZ_(y.nextSibling);return R===lF?null:lF},I)}();var X8=[],GEA=0;var Yn=new nCq;var S$W=dQH(),OD_=S$W[oU.default],RL5=S$W.style,yRC=["focusin","focusout"],wxH="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var eLt=function(){},dUq=function(){},gi5=function(){},sVH=function(){};var Y4=Symbol("cc");var KQA,P5_=tCt;var Ci=Symbol("dc");var ZD4=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(" ")),
VCA=new Set(["a","font","script","style","title"]);var WV={setUp:Xx5,tearDown:Xx5,log:Xx5,logNodeRange:Xx5,graft:function(I,y){y()}};var HV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ej=null,TB=function(I,y){sf.call(this,I);var D=this;this.functionComponent=y;this.hooks=[];this.hookCounter=0;this.disposeEffects=PV(function(F){D.effectContext=F;_.tI(function(){C5q(D,D.el)})},Ma.alwaysTrackContexts||!!YM)};
_.E(TB,sf);TB.prototype.render=function(I){var y=ej;ej=this;this.hookCounter=0;var D=kM(bF),F=fe(this.effectContext);try{return n7J("render",this.componentName),this.functionComponent(I)}finally{pPB("render",this.componentName),fe(F),kM(D),ej=y}};
_.mD.Object.defineProperties(TB.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return cq_(this.functionComponent)}}});var ILS=Symbol("rc"),bDo=function(I,y,D){this.afterRenderCallbacks=null;this.kind=I;this.props=y;this.children=D};
_.E(bDo,AI);bDo.prototype.render=function(){var I=$U4(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var y=_.J(this.afterRenderCallbacks),D=y.next();!D.done;D=y.next())D=D.value,I=D(I);return I};
bDo.prototype.getChildren=function(){return this.children};var DrH=[];Hue=function(I){throw Error("pb`"+I.debugName);};
(function(){var I=GB;GB=function(y){I==null||I(y);F9W(y)}})();Object.assign({},J9a,{effectType:F8,elementRef:null,attributes:null,fn:function(){var I=this.elementRef;var y;I.element!=null||(I.element=(y=I.document.getElementById(I.value))!=null?y:void 0);I=I.element;for(y=this.attributes;y;){var D=y.signal();D!==y.prevValue&&(y.prevValue=D,y.namespace===1?I[y.name]=D:I_q.has(y.name)?jj(I,y.name,D?"":null):jj(I,y.name,D));y=y.next}}});_.Vj.debugName="tbhMcf";_.Z4.debugName="zyMFzb";Object.assign({},J9a,{effectType:F8});_.U.debugName="RlDudd";var R3e={nonNullableCondIsNull:function(){return Error("vc")}};var tkC=function(){this.map=new Map};
tkC.prototype.push=function(I,y){var D=this.map;D.has(I)&&(this.multi||(this.multi=new Map),this.multi.set(y,D.get(I)));D.set(I,y)};
tkC.prototype.pop=function(I){var y=this.map,D=y.get(I),F;D!==void 0&&((F=this.multi)==null?0:F.has(D))?(y.set(I,this.multi.get(D)),this.multi.delete(D)):y.delete(I);return D};_.gZ.debugName="nsTGHd";_.I8.debugName="vI1rtf";var j1L={OUT_OF_ORDER_HOOK_CALL:function(I){return Error("wc`"+I)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(I,y){return Error("Ac`"+((y===void 0?0:y)?"IDOM":"Reactive")+"`"+(yV(I)?I.description:I))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(I,y){return Error("Bc`"+(yV(I)?I.description:I)+"`"+y)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(I){return Error("Cc`"+(yV(I)?I.description:I))},
USE_ELEMENT_NOT_ASSIGNED:function(I){return Error("Dc`"+(yV(I)?I.description:I))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(I){return Error("Ec`"+(yV(I)?I.description:I))}};var vvL=Symbol("Fc");KQA=HDt;KQA=HDt;var Q1q=Symbol("Gc");cRe({beforeRender:function(I){var y=fe(I.effectContext);try{var D;((D=I.__syncEffects)==null?0:D.length)&&dr4(I.__syncEffects)}finally{fe(y)}},
didPatch:function(I){var y=fe(I.effectContext);try{var D;((D=I.__syncEffects)==null?0:D.length)&&dr4(I.__syncEffects)}finally{fe(y)}},
didUnmount:function(I){var y;((y=I.hooks)==null?0:y.length)&&I.hooks.forEach(kC_)}});var tkR,Pjf,K9c;tkR=_.Ft.window;_.SF=(tkR==null?void 0:(Pjf=tkR.yt)==null?void 0:Pjf.config_)||(tkR==null?void 0:(K9c=tkR.ytcfg)==null?void 0:K9c.data_)||{};_.fv("yt.config_",_.SF);var UrO={},W9H=[];_.g6=function(I){var y=_.go.apply(1,arguments);var D=Error.call(this,I);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.args=[].concat(_.Td(y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(_.g6,Error);var SZq=function(I,y,D){this.actionName=I;this.optionalAction=y===void 0?!1:y;this.args=D===void 0?null:D;this.returnValue=[]};_.lk=function(I){this.name=I};_.hq=new _.lk("signalAction");var Vkq=/^[\w.]*$/,$r4={q:!0,search_query:!0},A9J=String(iEo);var mw;mw=Symbol("Hc");_.uk=function(I){this.name=I};
_.uk.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var ZEC=function(I){this.key=I},FdH=function(I){this.deferredKey=I},I5A=function(){var I=this;
this.providers=new Map;this.JSC$10767_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(I.providers)}}};
I5A.prototype.addProvider=function(I){this.providers.set(I.provide,I);var y=this.JSC$10767_deferred.get(I.provide);if(y)try{y.resolver(this.resolve(I.provide))}catch(D){y.rejector(D)}};
I5A.prototype.resolve=function(I){return I instanceof FdH?r9M(this,I):I instanceof ZEC?j1M(this,I.key,[],!0):j1M(this,I,[])};
var r9M=function(I,y){y=y.deferredKey;if(I.JSC$10767_deferred.has(y))return I.JSC$10767_deferred.get(y).promise;var D={};D.promise=new Promise(function(F,R){D.resolver=F;D.rejector=R});
I.JSC$10767_deferred.set(y,D);return D.promise},j1M=function(I,y,D,F){F=F===void 0?!1:F;
if(D.indexOf(y)>-1)throw Error("Ic`"+y);if(I.cachedValues.has(y))return I.cachedValues.get(y);if(!I.providers.has(y)){if(F)return;throw Error("Jc`"+y);}F=I.providers.get(y);D.push(y);if(F.useValue!==void 0)var R=F.useValue;else if(F.useFactory)R=F[mw]?oIu(I,F[mw],D):[],R=F.useFactory.apply(F,_.Td(R));else if(F.useClass){R=F.useClass;var O=R[mw]?oIu(I,R[mw],D):[];R=new (Function.prototype.bind.apply(R,[null].concat(_.Td(O))))}else throw Error("Kc`"+y);D.pop();F.skipCache||I.cachedValues.set(y,R);return R},
oIu=function(I,y,D){return y?y.map(function(F){return F instanceof ZEC?j1M(I,F.key,D,!0):j1M(I,F,D)}):[]};var gIA;var xn=new _.uk("ENDPOINT_HANDLER_TOKEN");_.lK=new _.lk("urlEndpoint");var NeP=function(){this.data=[];this.cachedPackedInt52=-1};
NeP.prototype.set=function(I,y){y=y===void 0?!0:y;0<=I&&I<52&&Number.isInteger(I)&&this.data[I]!==y&&(this.data[I]=y,this.cachedPackedInt52=-1)};
NeP.prototype.get=function(I){return!!this.data[I]};
var h3g=function(I){I.cachedPackedInt52===-1&&(I.cachedPackedInt52=I.data.reduce(function(y,D,F){return y+(D?Math.pow(2,F):0)},0));
return I.cachedPackedInt52};var oKS=function(I){var y=xr_;I=I===void 0?_.jF("yt.ads.biscotti.lastId_")||"":I;var D=Object,F=D.assign,R={};R.dt=MAn;R.flash="0";a:{try{var O=y.JSC$10773_win_.top.location.href}catch(T){O=2;break a}O=O?O===y.doc_.location.href?0:1:2}R=(R.frm=O,R);try{R.u_tz=-(new Date).getTimezoneOffset();try{var w=oa.history.length}catch(T){w=0}R.u_his=w;var v;R.u_h=(v=oa.screen)==null?void 0:v.height;var P;R.u_w=(P=oa.screen)==null?void 0:P.width;var K;R.u_ah=(K=oa.screen)==null?void 0:K.availHeight;var r;R.u_aw=
(r=oa.screen)==null?void 0:r.availWidth;var N;R.u_cd=(N=oa.screen)==null?void 0:N.colorDepth}catch(T){}w=y.JSC$10773_win_;try{var h=w.screenX;var x=w.screenY}catch(T){}try{var q=w.outerWidth;var X=w.outerHeight}catch(T){}try{var f=w.innerWidth;var m=w.innerHeight}catch(T){}try{var z=w.screenLeft;var B=w.screenTop}catch(T){}try{f=w.innerWidth,m=w.innerHeight}catch(T){}try{var C=w.screen.availWidth;var H=w.screen.availTop}catch(T){}h=[z,B,h,x,C,H,q,X,f,m];x=iWJ(!1,y.JSC$10773_win_.top);q={};var e=e===
void 0?_.Ft:e;X=new NeP;"SVGElement"in e&&"createElementNS"in e.document&&X.set(0);f=pBu();f["allow-top-navigation-by-user-activation"]&&X.set(1);f["allow-popups-to-escape-sandbox"]&&X.set(2);e.crypto&&e.crypto.subtle&&X.set(3);"TextDecoder"in e&&"TextEncoder"in e&&X.set(4);e=h3g(X);y=(q.bc=e,q.bih=x.height,q.biw=x.width,q.brdim=h.join(),q.vis=MjH(y.doc_),q.wgl=!!oa.WebGLRenderingContext,q);D=F.call(D,R,y);D.ca_type="image";I&&(D.bid=I);return D},xr_=new function(){var I=window.document;
this.JSC$10773_win_=window;this.doc_=I};
_.fv("yt.ads_.signals_.getAdSignalsString",function(I){return bEC(oKS(I))});_.q0();navigator.userAgent.indexOf(" (CrKey ");var wWB="XMLHttpRequest"in _.Ft?function(){return new XMLHttpRequest}:null;var lLW="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),usM=[].concat(_.Td(lLW),["client_dev_set_cookie"]);var jQe={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"},tI5="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(_.Td(lLW)),XWB=!1,KdA=_.NHo,qcW=r_B;var HtW=[{messageFn:function(I){return"Cannot read property '"+I.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(I){return"Cannot call '"+I.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(I){return I.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var q$P={messageWeights:[],callbackWeights:[{callback:nKS,weight:500},{callback:pW4,weight:500}]};var EIO=function(){this.callbackWeights=[];this.messageWeights=[]},GCP,btJ=function(){if(!GCP){var I=GCP=new EIO;
I.messageWeights.length=0;I.callbackWeights.length=0;iBJ(I,q$P)}return GCP},iBJ=function(I,y){y.messageWeights&&I.messageWeights.push.apply(I.messageWeights,y.messageWeights);
y.callbackWeights&&I.callbackWeights.push.apply(I.callbackWeights,y.callbackWeights)};_.EI(_.bP,_.B5);_.bP.prototype.subscribe=function(I,y,D){var F=this.topics_[I];F||(F=this.topics_[I]=[]);var R=this.JSC$10796_key_;this.subscriptions_[R]=I;this.subscriptions_[R+1]=y;this.subscriptions_[R+2]=D;this.JSC$10796_key_=R+3;F.push(R);return R};
var XgW=function(I){var y=UN,D=!1,F=y.subscribe("handleError",function(R){D||(D=!0,this.unsubscribeByKey(F),I.apply(void 0,arguments))},y)};
_.bP.prototype.unsubscribe=function(I,y,D){if(I=this.topics_[I]){var F=this.subscriptions_;if(I=I.find(function(R){return F[R+1]==y&&F[R+2]==D}))return this.unsubscribeByKey(I)}return!1};
_.bP.prototype.unsubscribeByKey=function(I){var y=this.subscriptions_[I];if(y){var D=this.topics_[y];this.publishDepth_!=0?(this.pendingKeys_.push(I),this.subscriptions_[I+1]=function(){}):(D&&_.WH(D,I),delete this.subscriptions_[I],delete this.subscriptions_[I+1],delete this.subscriptions_[I+2])}return!!y};
_.bP.prototype.publish=function(I,y){var D=this.topics_[I];if(D){var F=Array(arguments.length-1),R=arguments.length,O;for(O=1;O<R;O++)F[O-1]=arguments[O];if(this.async_)for(O=0;O<D.length;O++)R=D[O],Q1O(this.subscriptions_[R+1],this.subscriptions_[R+2],F);else{this.publishDepth_++;try{for(O=0,R=D.length;O<R&&!this.isDisposed();O++){var w=D[O];this.subscriptions_[w+1].apply(this.subscriptions_[w+2],F)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;D=this.pendingKeys_.pop();)this.unsubscribeByKey(D)}}return O!=
0}return!1};
var Q1O=function(I,y,D){_.Ia(function(){I.apply(y,D)})};
_.bP.prototype.clear=function(I){if(I){var y=this.topics_[I];y&&(y.forEach(this.unsubscribeByKey,this),delete this.topics_[I])}else this.subscriptions_.length=0,this.topics_={}};
_.bP.prototype.getCount=function(I){if(I){var y=this.topics_[I];return y?y.length:0}I=0;for(y in this.topics_)I+=this.getCount(y);return I};
_.bP.prototype.disposeInternal=function(){_.bP.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var UN=new _.bP;var c1=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(c1,_.KS);c1.prototype.getColdHashData=function(){return _.Tp(this,3)};
c1.prototype.getHotHashData=function(){return _.Tp(this,5)};
c1.prototype.setHotHashData=function(I){return _.BB(this,5,I)};var AS_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(AS_,_.KS);var oz4=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(oz4,_.KS);_.L=oz4.prototype;_.L.getDeviceId=function(){return _.Tp(this,6)};
_.L.getExperimentIds=function(I){var y=_.Va(this,9,_.PC,3,!0);FMq(y,I);return y[I]};
_.L.getPlayerType=function(){return _.sI(this,36)};
_.L.setHomeGroupInfo=function(I){return _.mH(this,81,I)};
_.L.clearLocationPlayabilityToken=function(){return _.aC(this,89)};var en=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(en,_.KS);en.prototype.setKey=function(I){return _.BB(this,1,I)};
en.prototype.getValue=function(){return Z$(this,2,h2J)};
var h2J=[2,3,4,5,6];var Y$e=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Y$e,_.KS);Y$e.prototype.setTrackingParams=function(I){return _.aC(this,1,_.Mz(I,!1))};var NPA=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(NPA,_.KS);var H0L=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(H0L,_.KS);H0L.prototype.getExperimentIds=function(I){var y=_.Va(this,5,_.nPW,3,!0);FMq(y,I);return y[I]};var ZJ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ZJ,_.KS);ZJ.prototype.getToken=function(){return _.z6(this,2)};
ZJ.prototype.setToken=function(I){return _.BB(this,2,I)};var s6=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(s6,_.KS);s6.prototype.setSafetyMode=function(I){return _.d1(this,5,I)};var HP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(HP,_.KS);HP.prototype.setClient=function(I){return _.mH(this,1,I)};var b0_={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 $Pq;_.vp=function(){var I=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Ft.addEventListener("beforeinstallprompt",function(y){y.preventDefault();I.deferredInstallPrompt=y});
_.Ft.addEventListener("appinstalled",function(){I.appInstalledEventFired=!0},{once:!0})};
$Pq=function(){if(!_.Ft.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Ft.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Ft.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Ft.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Ft.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(I){return"WEB_DISPLAY_MODE_UNKNOWN"}};var sqW=function(){this.syncHeaders=!0},V7J=function(I){var y={},D=[];
"USER_SESSION_ID"in _.SF&&D.push({key:"u",value:_.Pi("USER_SESSION_ID")});if(D=_.NyC(D))y.Authorization=D,D=I=I==null?void 0:I.sessionIndex,D===void 0&&(D=Number(_.Pi("SESSION_INDEX",0)),D=isNaN(D)?0:D),_.l("voice_search_auth_header_removal")||(y["X-Goog-AuthUser"]=D.toString()),"INNERTUBE_HOST_OVERRIDE"in _.SF||(y["X-Origin"]=window.location.origin),I===void 0&&"DELEGATED_SESSION_ID"in _.SF&&(y["X-Goog-PageId"]=_.Pi("DELEGATED_SESSION_ID"));return y};var fLn={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var qj=_.jF("ytglobal.prefsUserPrefsPrefs_")||{},nIf;_.fv("ytglobal.prefsUserPrefsPrefs_",qj);_.Es=function(){this.cookieName=_.Pi("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Pi("ALT_PREF_COOKIE_DOMAIN","youtube.com");var I=_.eF.get(this.cookieName,void 0);I&&this.parse(I)};
_.a1=function(){nIf||(nIf=new _.Es);return nIf};
_.Es.prototype.get=function(I,y){pge(I);mrg(I);I=qj[I]!==void 0?qj[I].toString():null;return I!=null?I:y?y:""};
_.Es.prototype.set=function(I,y){pge(I);mrg(I);if(y==null)throw Error("Nc");qj[I]=y.toString()};
_.Es.prototype.getFlag=function(I){return!!((Mkn("f"+(Math.floor(I/31)+1))||0)&1<<I%31)};
_.cg=function(I,y,D){I="f"+(Math.floor(y/31)+1);y=1<<y%31;var F=Mkn(I)||0;F=D?F|y:F&~y;F===0?delete qj[I]:(D=F.toString(16),qj[I]=D.toString())};
_.Es.prototype.remove=function(I){pge(I);mrg(I);delete qj[I]};
_.Es.prototype.save=function(){var I=!0;_.l("web_secure_pref_cookie_killswitch")&&(I=!1);_.TP(this.cookieName,this.dump(),63072E3,this.cookieDomain,I)};
_.Es.prototype.clear=function(){_.e$.clear(qj)};
_.Es.prototype.dump=function(){var I=[],y;for(y in qj)qj.hasOwnProperty(y)&&I.push(y+"="+encodeURIComponent(String(qj[y])));return I.join("&")};
var mrg=function(I){if(/^f([1-9][0-9]*)$/.test(I))throw Error("Oc`"+I);},pge=function(I){if(!/^\w+$/.test(I))throw Error("Pc`"+I);
},Mkn=function(I){I=qj[I]!==void 0?qj[I].toString():null;
return I!=null&&/^[A-Fa-f0-9]+$/.test(I)?parseInt(I,16):null};
_.Es.prototype.parse=function(I){I=decodeURIComponent(I).split("&");for(var y=0;y<I.length;y++){var D=I[y].split("="),F=D[0];(D=D[1])&&(qj[F]=D.toString())}};var CoL={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"},ejq={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},TYL={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},iCq={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var uO;_.G9=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.y9=function(I,y,D){return I.addJob(y,0,D)};
_.G9.prototype.addLowPriorityJob=function(I,y){return this.addJob(I,1,y)};
_.ip=function(I,y,D){return I.addJob(y,2,D)};
_.k1=function(I,y,D){return I.addJob(y,3,D)};
_.qK=function(I,y,D){return I.addJob(y,4,D)};
uO=function(I){var y=_.jF("yt.scheduler.instance.addImmediateJob");y?y(I):I()};
_.G9.prototype.debounce=function(I,y,D){var F=this,R=0,O=function(){R&&F.cancelJob(R);R=F.addJob(I,y,D);F.cancelDebouncedJobMap.set(O,R)};
return O};
_.G9.prototype.cancelThrottle=function(I){(I=this.cancelThrottledJobMap.get(I))&&I()};var Xi=function(){_.G9.apply(this,arguments)},z3_;
_.E(Xi,_.G9);_.Tr=function(){Xi.instance||(Xi.instance=new Xi);return Xi.instance};
Xi.prototype.addJob=function(I,y,D){D!==void 0&&Number.isNaN(Number(D))&&(D=void 0);var F=_.jF("yt.scheduler.instance.addJob");return F?F(I,y,D):D===void 0?(I(),NaN):_.Wi(I,D||0)};
Xi.prototype.cancelJob=function(I){if(I===void 0||!Number.isNaN(Number(I))){var y=_.jF("yt.scheduler.instance.cancelJob");y?y(I):_.Bi(I)}};
Xi.prototype.start=function(){var I=_.jF("yt.scheduler.instance.start");I&&I()};
Xi.prototype.pause=function(){var I=_.jF("yt.scheduler.instance.pause");I&&I()};
z3_=function(){_.Tr();var I=_.jF("yt.scheduler.instance.setPriorityThreshold");I&&I(4)};
_.w2=_.Tr();_.IC.prototype.set=function(I,y){y===void 0?this.mechanism.remove(I):this.mechanism.set(I,(0,_.O7)(y))};
_.IC.prototype.get=function(I){try{var y=this.mechanism.get(I)}catch(D){return}if(y!==null)try{return JSON.parse(y)}catch(D){throw"Storage: Invalid value was encountered";}};
_.IC.prototype.remove=function(I){this.mechanism.remove(I)};var Qy=function(I){this.mechanism=I};
_.EI(Qy,_.IC);var kCu=function(I){this.data=I},drn=function(I){return I===void 0||I instanceof kCu?I:new kCu(I)};
Qy.prototype.set=function(I,y){Qy.superClass_.set.call(this,I,drn(y))};
Qy.prototype.getWrapper=function(I){I=Qy.superClass_.get.call(this,I);if(I===void 0||I instanceof Object)return I;throw"Storage: Invalid value was encountered";};
Qy.prototype.get=function(I){if(I=this.getWrapper(I)){if(I=I.data,I===void 0)throw"Storage: Invalid value was encountered";}else I=void 0;return I};_.EI(yx,Qy);_.aLM=function(I){var y=I.creation;I=I.expiration;return!!I&&I<_.q0()||!!y&&y>_.q0()};
yx.prototype.set=function(I,y,D){if(y=drn(y)){if(D){if(D<_.q0()){yx.prototype.remove.call(this,I);return}y.expiration=D}y.creation=_.q0()}yx.superClass_.set.call(this,I,y)};
yx.prototype.getWrapper=function(I,y){var D=yx.superClass_.getWrapper.call(this,I);if(D)if(!y&&_.aLM(D))yx.prototype.remove.call(this,I);else return D};var Y_=function(){};
Y_.prototype.next=function(){return fH};
var fH={done:!0,value:void 0},nH=function(I){return{value:I,done:!1}};
Y_.prototype.__iterator__=function(){return this};
_.c9n=function(I){if(I instanceof Y_)return I;if(typeof I.__iterator__=="function")return I.__iterator__(!1);if(_.i_(I)){var y=0,D=new Y_;D.next=function(){for(;;){if(y>=I.length)return fH;if(y in I)return nH(I[y++]);y++}};
return D}throw Error("Qc");};var W9G=function(I){if(I instanceof pH||I instanceof mS||I instanceof Mj)return I;if(typeof I.next=="function")return new pH(function(){return I});
if(typeof I[Symbol.iterator]=="function")return new pH(function(){return I[Symbol.iterator]()});
if(typeof I.__iterator__=="function")return new pH(function(){return I.__iterator__()});
throw Error("Rc");},pH=function(I){this.func_=I};
pH.prototype.__iterator__=function(){return new mS(this.func_())};
pH.prototype[Symbol.iterator]=function(){return new Mj(this.func_())};
pH.prototype.toEs6=function(){return new Mj(this.func_())};
var mS=function(I){this.JSC$10881_iter_=I};
_.E(mS,Y_);mS.prototype.next=function(){return this.JSC$10881_iter_.next()};
mS.prototype[Symbol.iterator]=function(){return new Mj(this.JSC$10881_iter_)};
mS.prototype.toEs6=function(){return new Mj(this.JSC$10881_iter_)};
var Mj=function(I){pH.call(this,function(){return I});
this.JSC$10884_iter_=I};
_.E(Mj,pH);Mj.prototype.next=function(){return this.JSC$10884_iter_.next()};var CjP=function(){};var z9=function(){};
_.EI(z9,CjP);z9.prototype.getCount=function(){for(var I=0,y=_.J(this),D=y.next();!D.done;D=y.next())I++;return I};
z9.prototype[Symbol.iterator]=function(){return W9G(this.__iterator__(!0)).toEs6()};
z9.prototype.clear=function(){var I=Array.from(this);I=_.J(I);for(var y=I.next();!y.done;y=I.next())this.remove(y.value)};_.EI(FG,z9);_.L=FG.prototype;_.L.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var I=this.storage_;if(I)try{I.setItem("__sak","1");I.removeItem("__sak");var y=!0}catch(D){y=D instanceof DOMException&&(D.name==="QuotaExceededError"||D.code===22||D.code===1014||D.name==="NS_ERROR_DOM_QUOTA_REACHED")&&I&&I.length!==0}else y=!1;this.cachedIsStorageAvailable_=y}return this.cachedIsStorageAvailable_};
_.L.set=function(I,y){k_(this);try{this.storage_.setItem(I,y)}catch(D){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.L.get=function(I){k_(this);I=this.storage_.getItem(I);if(typeof I!=="string"&&I!==null)throw"Storage mechanism: Invalid value was encountered";return I};
_.L.remove=function(I){k_(this);this.storage_.removeItem(I)};
_.L.getCount=function(){k_(this);return this.storage_.length};
_.L.__iterator__=function(I){k_(this);var y=0,D=this.storage_,F=new Y_;F.next=function(){if(y>=D.length)return fH;var R=D.key(y++);if(I)return nH(R);R=D.getItem(R);if(typeof R!=="string")throw"Storage mechanism: Invalid value was encountered";return nH(R)};
return F};
_.L.clear=function(){k_(this);this.storage_.clear()};
_.L.key=function(I){k_(this);return this.storage_.key(I)};
var k_=function(I){if(I.storage_==null)throw Error("Sc");I.isAvailable()||Ro(Error("Sc"))};_.EI($lB,FG);_.EI(bCS,FG);_.EI(RC,z9);RC.prototype.set=function(I,y){this.mechanism_.set(this.JSC$10899_prefix_+I,y)};
RC.prototype.get=function(I){return this.mechanism_.get(this.JSC$10899_prefix_+I)};
RC.prototype.remove=function(I){this.mechanism_.remove(this.JSC$10899_prefix_+I)};
RC.prototype.__iterator__=function(I){var y=this.mechanism_[Symbol.iterator](),D=this,F=new Y_;F.next=function(){var R=y.next();if(R.done)return R;for(R=R.value;R.slice(0,D.JSC$10899_prefix_.length)!=D.JSC$10899_prefix_;){R=y.next();if(R.done)return R;R=R.value}return nH(I?R.slice(D.JSC$10899_prefix_.length):D.mechanism_.get(R))};
return F};_.Ku=function(I){this.expiringStorage_=(I=_.Ol(I))?new yx(I):null;this.JSC$10903_domain_=document.domain||window.location.hostname};
_.L=_.Ku.prototype;_.L.hasLocalStorage=function(){return!!this.expiringStorage_};
_.L.set=function(I,y,D,F){D=D||31104E3;this.remove(I);if(this.hasLocalStorage())try{this.expiringStorage_.set(I,y,Date.now()+D*1E3);return}catch(O){}var R="";if(F)try{R=escape((0,_.O7)(y))}catch(O){return}else R=escape(y);_.TP(I,R,D,this.JSC$10903_domain_)};
_.L.get=function(I,y){var D=void 0,F=!this.hasLocalStorage();if(!F)try{D=this.expiringStorage_.get(I)}catch(R){F=!0}if(F&&(D=_.eF.get(I,void 0))&&(D=unescape(D),y))try{D=JSON.parse(D)}catch(R){this.remove(I),D=void 0}return D};
_.L.remove=function(I){this.hasLocalStorage()&&this.expiringStorage_.remove(I);_.a5q(I,"/",this.JSC$10903_domain_)};
_.L.getCreationTime=function(I){return this.hasLocalStorage()&&(I=(this.expiringStorage_.getWrapper(I)||{}).creation,typeof I==="number")?I:null};var eVW=function(){var I;return function(){I||(I=new _.Ku("ytidb"));return I}}();var sQ4;_.J0=[];sQ4=!1;var UPH=VIB||ZCq;var dX={},BeM=(dX.AUTH_INVALID="No user identifier specified.",dX.EXPLICIT_ABORT="Transaction was explicitly aborted.",dX.IDB_NOT_SUPPORTED="IndexedDB is not supported.",dX.MISSING_INDEX="Index not created.",dX.MISSING_OBJECT_STORES="Object stores not created.",dX.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",dX.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",dX.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",dX.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",dX.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",dX.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",dX.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",dX),ac={},iEe=(ac.AUTH_INVALID="ERROR",ac.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",ac.EXPLICIT_ABORT="IGNORED",
ac.IDB_NOT_SUPPORTED="ERROR",ac.MISSING_INDEX="WARNING",ac.MISSING_OBJECT_STORES="ERROR",ac.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",ac.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",ac.QUOTA_EXCEEDED="WARNING",ac.QUOTA_MAYBE_EXCEEDED="WARNING",ac.UNKNOWN_ABORT="WARNING",ac.INCOMPATIBLE_DB_VERSION="WARNING",ac),cR={},A9M=(cR.AUTH_INVALID=!1,cR.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,cR.EXPLICIT_ABORT=!1,cR.IDB_NOT_SUPPORTED=!1,cR.MISSING_INDEX=!1,cR.MISSING_OBJECT_STORES=!1,cR.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,cR.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,cR.QUOTA_EXCEEDED=!1,cR.QUOTA_MAYBE_EXCEEDED=!0,cR.UNKNOWN_ABORT=!0,cR.INCOMPATIBLE_DB_VERSION=!1,cR),Kv=function(I,y,D,F,R){y=y===void 0?{}:y;D=D===void 0?BeM[I]:D;F=F===void 0?iEe[I]:F;R=R===void 0?A9M[I]:R;_.g6.call(this,D,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:I},y));this.type=I;this.message=D;this.level=F;this.retryable=R;Object.setPrototypeOf(this,Kv.prototype)};
_.E(Kv,_.g6);var $rn=function(I,y){Kv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:y,foundObjectStores:I},BeM.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,$rn.prototype)};
_.E($rn,Kv);var I7A=function(I,y){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.index=I;this.objectStore=y;Object.setPrototypeOf(this,I7A.prototype)};
_.E(I7A,Error);var ySt=["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 oC=function(I){this.executor=I},jA=function(I){var y=this;
this.state={status:"PENDING"};this.JSC$10931_onFulfilled=[];this.JSC$10931_onRejected=[];I=I.executor;var D=function(R){if(y.state.status==="PENDING"){y.state={status:"FULFILLED",value:R};R=_.J(y.JSC$10931_onFulfilled);for(var O=R.next();!O.done;O=R.next())O=O.value,O()}},F=function(R){if(y.state.status==="PENDING"){y.state={status:"REJECTED",
reason:R};R=_.J(y.JSC$10931_onRejected);for(var O=R.next();!O.done;O=R.next())O=O.value,O()}};
try{I(D,F)}catch(R){F(R)}};
jA.all=function(I){return new jA(new oC(function(y,D){var F=[],R=I.length;R===0&&y(F);for(var O={i$jscomp$469:0};O.i$jscomp$469<I.length;O={i$jscomp$469:O.i$jscomp$469},++O.i$jscomp$469)jA.resolve(I[O.i$jscomp$469]).then(function(w){return function(v){F[w.i$jscomp$469]=v;R--;R===0&&y(F)}}(O)).catch(function(w){D(w)})}))};
jA.resolve=function(I){return new jA(new oC(function(y,D){I instanceof jA?I.then(y,D):y(I)}))};
jA.reject=function(I){return new jA(new oC(function(y,D){D(I)}))};
jA.prototype.then=function(I,y){var D=this,F=I!=null?I:RjW,R=y!=null?y:FXA;return new jA(new oC(function(O,w){D.state.status==="PENDING"?(D.JSC$10931_onFulfilled.push(function(){bER(D,D,F,O,w)}),D.JSC$10931_onRejected.push(function(){HEg(D,D,R,O,w)})):D.state.status==="FULFILLED"?bER(D,D,F,O,w):D.state.status==="REJECTED"&&HEg(D,D,R,O,w)}))};
jA.prototype.catch=function(I){return this.then(void 0,I)};
var bER=function(I,y,D,F,R){try{if(I.state.status!=="FULFILLED")throw Error("Vc");var O=D(I.state.value);O instanceof jA?e3c(I,y,O,F,R):F(O)}catch(w){R(w)}},HEg=function(I,y,D,F,R){try{if(I.state.status!=="REJECTED")throw Error("Wc");
var O=D(I.state.reason);O instanceof jA?e3c(I,y,O,F,R):F(O)}catch(w){R(w)}},e3c=function(I,y,D,F,R){y===D?R(new TypeError("Xc")):D.then(function(O){O instanceof jA?e3c(I,y,O,F,R):F(O)},function(O){R(O)})};var WR;WR=window;_.m_=WR.ytcsi&&WR.ytcsi.now?WR.ytcsi.now:WR.performance&&WR.performance.timing&&WR.performance.now&&WR.performance.timing.navigationStart?function(){return WR.performance.timing.navigationStart+WR.performance.now()}:function(){return(new Date).getTime()};var h0=function(I,y){this.JSC$10943_wrapped=I;this.options=y;this.transactionCount=0;this.startedMs=Math.round((0,_.m_)());this.hasUnknownAbortedTransaction=!1},CH=function(){return _.l("idb_immediate_commit")},VkO,ZER,Ar,y_c;
h0.prototype.add=function(I,y,D){return _.El(this,[I],{mode:"readwrite",enableRetries:!0,commit:CH()},function(F){return F.objectStore(I).add(y,D)})};
h0.prototype.clear=function(I){return _.El(this,[I],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(I).clear()})};
h0.prototype.close=function(){this.JSC$10943_wrapped.close();var I;((I=this.options)==null?0:I.closed)&&this.options.closed()};
h0.prototype.count=function(I,y){return _.El(this,[I],{mode:"readonly",enableRetries:!0,commit:CH()},function(D){return D.objectStore(I).count(y)})};
var r2=function(I,y,D){I=I.JSC$10943_wrapped.createObjectStore(y,D);return new BR(I)};
h0.prototype.delete=function(I,y){return _.El(this,[I],{mode:"readwrite",enableRetries:!0,commit:CH()&&!(y instanceof IDBKeyRange)},function(D){return D.objectStore(I).delete(y)})};
var Tea=function(I,y){return _.El(I,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore("ResponseStore").index("byInterface").delete(y)})};
h0.prototype.get=function(I,y){return _.El(this,[I],{mode:"readonly",enableRetries:!0,commit:CH()},function(D){return D.objectStore(I).get(y)})};
h0.prototype.getAll=function(I,y,D){return _.El(this,[I],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(I).getAll(y,D)})};
h0.prototype.put=function(I,y,D){return _.El(this,[I],{mode:"readwrite",enableRetries:!0,commit:CH()},function(F){return F.objectStore(I).put(y,D)})};
h0.prototype.objectStoreNames=function(){return Array.from(this.JSC$10943_wrapped.objectStoreNames)};
_.El=function(I,y,D,F){var R,O,w,v,P,K,r,N,h,x,q,X;return _.S(function(f){switch(f.nextAddress){case 1:var m={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof D==="string"?m.mode=D:Object.assign(m,D);R=m;I.transactionCount++;O=R.enableRetries?3:1;w=0;case 2:if(v){f.jumpTo(4);break}w++;P=Math.round((0,_.m_)());_.nj(f,5);K=I.JSC$10943_wrapped.transaction(y,R.mode);m=f.yield;var z=!!R.commit;var B=new xk(K);z=s1c(B,F,z);return m.call(f,z,7);case 7:return r=f.yieldResult,N=Math.round((0,_.m_)()),
VkO(I,P,N,w,void 0,y.join(),R),f.return(r);case 5:h=_.dj(f);x=Math.round((0,_.m_)());q=DPC(h,I.JSC$10943_wrapped.name,y.join(),I.JSC$10943_wrapped.version);if((X=q instanceof Kv&&!q.retryable)||w>=O)VkO(I,P,x,w,q,y.join(),R),v=q;f.jumpTo(2);break;case 4:return f.return(Promise.reject(v))}})};
VkO=function(I,y,D,F,R,O,w){y=D-y;R?(R instanceof Kv&&(R.type==="QUOTA_EXCEEDED"||R.type==="QUOTA_MAYBE_EXCEEDED")&&v1("QUOTA_EXCEEDED",{dbName:t0(I.JSC$10943_wrapped.name),objectStoreNames:O,transactionCount:I.transactionCount,transactionMode:w.mode}),R instanceof Kv&&R.type==="UNKNOWN_ABORT"&&(D-=I.startedMs,D<0&&D>=2147483648&&(D=0),v1("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:O,transactionDuration:y,transactionCount:I.transactionCount,dbDuration:D}),I.hasUnknownAbortedTransaction=!0),
ZER(I,!1,F,O,y,w.tag),_.w1(R)):ZER(I,!0,F,O,y,w.tag)};
ZER=function(I,y,D,F,R,O){v1("TRANSACTION_ENDED",{objectStoreNames:F,connectionHasUnknownAbortedTransaction:I.hasUnknownAbortedTransaction,duration:R,isSuccessful:y,tryCount:D,tag:O===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":O})};
h0.prototype.getName=function(){return this.JSC$10943_wrapped.name};
var BR=function(I){this.JSC$10958_wrapped=I};
BR.prototype.add=function(I,y){return No(this.JSC$10958_wrapped.add(I,y))};
BR.prototype.autoIncrement=function(){return this.JSC$10958_wrapped.autoIncrement};
BR.prototype.clear=function(){return No(this.JSC$10958_wrapped.clear()).then(function(){})};
var jn=function(I,y,D){I.JSC$10958_wrapped.createIndex(y,D,{unique:!1})};
BR.prototype.count=function(I){return No(this.JSC$10958_wrapped.count(I))};
var gIP=function(I,y){return XG(I,{query:y},function(D){return D.delete().then(function(){return D.continue()})}).then(function(){})};
BR.prototype.delete=function(I){return I instanceof IDBKeyRange?gIP(this,I):No(this.JSC$10958_wrapped.delete(I))};
BR.prototype.get=function(I){return No(this.JSC$10958_wrapped.get(I))};
BR.prototype.getAll=function(I,y){return"getAll"in IDBObjectStore.prototype?No(this.JSC$10958_wrapped.getAll(I,y)):I5P(this,I,y)};
var I5P=function(I,y,D){var F=[];return XG(I,{query:y},function(R){if(!(D!==void 0&&F.length>=D))return F.push(R.getValue()),R.continue()}).then(function(){return F})};
BR.prototype.index=function(I){try{return new ik(this.JSC$10958_wrapped.index(I))}catch(y){if(y instanceof Error&&y.name==="NotFoundError")throw new I7A(I,this.JSC$10958_wrapped.name);throw y;}};
BR.prototype.getName=function(){return this.JSC$10958_wrapped.name};
BR.prototype.keyPath=function(){return this.JSC$10958_wrapped.keyPath};
BR.prototype.put=function(I,y){return No(this.JSC$10958_wrapped.put(I,y))};
var XG=function(I,y,D){I=I.JSC$10958_wrapped.openCursor(y.query,y.direction);return y_c(I).then(function(F){return JSq(F,D)})},xk=function(I){var y=this;
this.JSC$10966_wrapped=I;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(D,F){y.JSC$10966_wrapped.addEventListener("complete",function(){D()});
y.JSC$10966_wrapped.addEventListener("error",function(R){R.currentTarget===R.target&&F(y.JSC$10966_wrapped.error)});
y.JSC$10966_wrapped.addEventListener("abort",function(){var R=y.JSC$10966_wrapped.error;if(R)F(R);else if(!y.aborted){R=Kv;for(var O=y.JSC$10966_wrapped.objectStoreNames,w=[],v=0;v<O.length;v++){var P=O.item(v);if(P===null)throw Error("Yc");w.push(P)}R=new R("UNKNOWN_ABORT",{objectStoreNames:w.join(),dbName:y.JSC$10966_wrapped.db.name,mode:y.JSC$10966_wrapped.mode});F(R)}})})},s1c=function(I,y,D){var F=new Promise(function(R,O){try{var w=y(I);
D&&I.commit();w.then(function(v){R(v)}).catch(O)}catch(v){O(v),I.abort()}});
return Promise.all([F,I.done]).then(function(R){return _.J(R).next().value})};
xk.prototype.abort=function(){this.JSC$10966_wrapped.abort();this.aborted=!0;throw new Kv("EXPLICIT_ABORT");};
xk.prototype.commit=function(){if(!this.aborted){var I,y;(y=(I=this.JSC$10966_wrapped).commit)==null||y.call(I)}};
xk.prototype.objectStore=function(I){I=this.JSC$10966_wrapped.objectStore(I);var y=this.objectStoreCache.get(I);y||(y=new BR(I),this.objectStoreCache.set(I,y));return y};
var ik=function(I){this.JSC$10968_wrapped=I};
ik.prototype.count=function(I){return No(this.JSC$10968_wrapped.count(I))};
ik.prototype.delete=function(I){return _.Mo(this,{query:I},function(y){return y.delete().then(function(){return y.continue()})})};
ik.prototype.get=function(I){return No(this.JSC$10968_wrapped.get(I))};
ik.prototype.getAll=function(I,y){return"getAll"in IDBIndex.prototype?No(this.JSC$10968_wrapped.getAll(I,y)):Dlf(this,I,y)};
var Dlf=function(I,y,D){var F=[];return _.Mo(I,{query:y},function(R){if(!(D!==void 0&&F.length>=D))return F.push(R.getValue()),R.continue()}).then(function(){return F})};
ik.prototype.keyPath=function(){return this.JSC$10968_wrapped.keyPath};
ik.prototype.unique=function(){return this.JSC$10968_wrapped.unique};
_.Mo=function(I,y,D){I=I.JSC$10968_wrapped.openCursor(y.query===void 0?null:y.query,y.direction===void 0?"next":y.direction);return y_c(I).then(function(F){return JSq(F,D)})};
Ar=function(I,y){this.request=I;this.cursor=y};
y_c=function(I){return No(I).then(function(y){return y?new Ar(I,y):null})};
Ar.prototype.continue=function(I){this.cursor.continue(I);return y_c(this.request)};
Ar.prototype.delete=function(){return No(this.cursor.delete()).then(function(){})};
Ar.prototype.getValue=function(){return this.cursor.value};
Ar.prototype.update=function(I){return No(this.cursor.update(I))};var $_=function(I,y){this.name=I;this.options=y;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},FdG;
$_.prototype.openDb=function(I,y,D){D=D===void 0?{}:D;return vcJ(I,y,D)};
$_.prototype.delete=function(I){I=I===void 0?{}:I;return _.uZ(this.name,I)};
FdG=function(I,y){return new Kv("INCOMPATIBLE_DB_VERSION",{dbName:I.name,oldVersion:I.options.version,newVersion:y})};
_.qo=function(I,y){if(!y)throw r1("openWithToken",t0(I.name));return I.open()};
$_.prototype.open=function(){var I=this;if(!this.isCompatible)throw FdG(this);if(this.connectionPromise)return this.connectionPromise;var y,D=function(){I.connectionPromise===y&&(I.connectionPromise=void 0)},F={blocking:function(O){O.close()},
closed:D,terminated:D,upgrade:this.options.upgrade},R=function(){var O,w,v,P,K,r,N,h,x,q;return _.S(function(X){switch(X.nextAddress){case 1:return w=(O=Error().stack)!=null?O:"",_.nj(X,2),X.yield(I.openDb(I.name,I.options.version,F),4);case 4:for(var f=v=X.yieldResult,m=I.options,z=[],B=_.J(Object.keys(m.objectStores)),C=B.next();!C.done;C=B.next()){C=C.value;var H=m.objectStores[C],e=H.removedAtVersion===void 0?Number.MAX_VALUE:H.removedAtVersion;!(f.JSC$10943_wrapped.version>=H.addedAtVersion)||
f.JSC$10943_wrapped.version>=e||f.JSC$10943_wrapped.objectStoreNames.contains(C)||z.push(C)}P=z;if(P.length===0){X.jumpTo(5);break}K=Object.keys(I.options.objectStores);r=v.objectStoreNames();if(I.timesReopenedToFixMissingObjectStore<_.kf("ytidb_reopen_db_retries",0))return I.timesReopenedToFixMissingObjectStore++,v.close(),_.w1(new Kv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:I.name,expectedObjectStores:K,foundObjectStores:r})),X.return(R());if(!(I.timesDeletedToFixMissingObjectStore<_.kf("ytidb_remake_db_retries",
1))){X.jumpTo(6);break}I.timesDeletedToFixMissingObjectStore++;return X.yield(I.delete(),7);case 7:return _.w1(new Kv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:I.name,expectedObjectStores:K,foundObjectStores:r})),X.return(R());case 6:throw new $rn(r,K);case 5:return X.return(v);case 2:N=_.dj(X);if(N instanceof DOMException?N.name!=="VersionError":"DOMError"in self&&N instanceof DOMError?N.name!=="VersionError":!(N instanceof Object&&"message"in N)||N.message!=="An attempt was made to open a database using a lower version than the existing version."){X.jumpTo(8);
break}return X.yield(I.openDb(I.name,void 0,Object.assign({},F,{upgrade:void 0})),9);case 9:h=X.yieldResult;x=h.JSC$10943_wrapped.version;if(I.options.version!==void 0&&x>I.options.version+1)throw h.close(),I.isCompatible=!1,FdG(I,x);return X.return(h);case 8:throw D(),N instanceof Error&&!_.l("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+w.substring(w.indexOf("\n")+1)),DPC(N,I.name,"",(q=I.options.version)!=null?q:-1);}})};
return this.connectionPromise=y=R()};var SgA=new $_("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(I,y){y(1)&&r2(I,"databases",{keyPath:"actualName"})}});var ocW,rSt=new function(){}(new function(){});new _.n0;var RVM=function(I,y){$_.call(this,I,y);this.options=y;SA(I)};
_.E(RVM,$_);var Qq4=function(I,y){var D;return function(){D||(D=new RVM(I,y));return D}};
RVM.prototype.openDb=function(I,y,D){D=D===void 0?{}:D;return(this.options.shared?uMH:l7q)(I,y,Object.assign({},D))};
RVM.prototype.delete=function(I){I=I===void 0?{}:I;return(this.options.shared?XF5:qgq)(this.name,I)};var OCn={},YgB=pv("ytGcfConfig",{objectStores:(OCn.coldConfigStore={addedAtVersion:1},OCn.hotConfigStore={addedAtVersion:1},OCn),shared:!1,upgrade:function(I,y){y(1)&&(jn(r2(I,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),jn(r2(I,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Ldu=function(){_.B5.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var I=_.jF("yt.gcf.config.hotUpdateCallbacks");I?(this.localHotConfigJobQueue=[].concat(_.Td(I)),this.sharedHotConfigJobQueue=I):(this.sharedHotConfigJobQueue=[],_.fv("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.E(Ldu,_.B5);Ldu.prototype.disposeInternal=function(){for(var I=_.J(this.localHotConfigJobQueue),y=I.next();!y.done;y=I.next()){var D=this.sharedHotConfigJobQueue;y=D.indexOf(y.value);y>=0&&D.splice(y,1)}this.localHotConfigJobQueue.length=0;_.B5.prototype.disposeInternal.call(this)};var DM=function(){var I=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Ldu;this.TEST_ONLY={initializeConfigDb:function(){I.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return I.coldGlobalConfigGroup},
setHotConfigGroup:function(y){J_P(I,y)},
setHotHashData:function(y){I.setHotHashData(y)},
setColdConfigGroup:function(y){wWg(I,y)},
getColdHashData:function(){return I.coldHashData},
getHotHashData:function(){return I.hotHashData},
getHotConfigGroup:function(){return I.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return vKa()},
getExportedHotConfigGroup:function(){return bk()},
getExportedColdHashData:function(){return _.jF("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.jF("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Sc_(I)},
resetInstance:function(){I.setHotHashData(void 0);tI_(I);delete DM.instance},
setDebounceTimer:function(y){I.debounceTimer=y},
getDebounceTimer:function(){return I.debounceTimer}}},PoW=function(){if(!DM.instance){var I=new DM;
DM.instance=I}return DM.instance},r_g=function(I){var y;
_.S(function(D){if(D.nextAddress==1)return _.l("start_client_gcf")||_.l("delete_gcf_config_db")?_.l("start_client_gcf")?D.yield(_.nv(),3):D.jumpTo(2):D.return();D.nextAddress!=2&&((y=D.yieldResult)&&_.ZF()&&!_.l("delete_gcf_config_db")?(I.isConfigDbInitialized=!0,Sc_(I)):(KdP(I),Ule(I)));return _.l("delete_gcf_config_db")?D.yield(zjC(),0):D.jumpTo(0)})},FS=function(){var I;
return(I=bk())!=null?I:_.Pi("RAW_HOT_CONFIG_GROUP")},jQa=function(I){var y,D,F,R,O,w;
return _.S(function(v){switch(v.nextAddress){case 1:if(I.hotGlobalConfigGroup)return v.return(bk());if(!I.isConfigDbInitialized)return y=r1("getHotConfig IDB not initialized"),_.o8(y),v.return(Promise.reject(y));D=Yk();F=_.Pi("TIME_CREATED_MS");if(!D){R=r1("getHotConfig token error");_.o8(R);v.jumpTo(2);break}return v.yield(M75(D),3);case 3:if((O=v.yieldResult)&&O.timestamp>F)return J_P(I,O.config),I.setHotHashData(O.hashData),v.return(bk());case 2:Ule(I);if(!(D&&I.hotGlobalConfigGroup&&I.hotHashData)){v.jumpTo(4);
break}return v.yield(ncB(I.hotGlobalConfigGroup,I.hotHashData,D,F),4);case 4:return I.hotGlobalConfigGroup?v.return(bk()):(w=new _.g6("Config not available in ytConfig"),_.o8(w),v.return(Promise.reject(w)))}})},NHe=function(I){var y,D,F,R,O,w;
return _.S(function(v){switch(v.nextAddress){case 1:if(I.coldGlobalConfigGroup)return v.return(vKa());if(!I.isConfigDbInitialized)return y=r1("getColdConfig IDB not initialized"),_.o8(y),v.return(Promise.reject(y));D=Yk();F=_.Pi("TIME_CREATED_MS");if(!D){R=r1("getColdConfig");_.o8(R);v.jumpTo(2);break}return v.yield(mPA(D),3);case 3:if((O=v.yieldResult)&&O.timestamp>F)return wWg(I,O.config),oKz(I,O.configData),tI_(I,O.hashData),v.return(vKa());case 2:KdP(I);if(!(D&&I.coldGlobalConfigGroup&&I.coldHashData&&
I.configData)){v.jumpTo(4);break}return v.yield(pFL(I.coldGlobalConfigGroup,I.coldHashData,I.configData,D,F),4);case 4:return I.coldGlobalConfigGroup?v.return(vKa()):(w=new _.g6("Config not available in ytConfig"),_.o8(w),v.return(Promise.reject(w)))}})},Sc_=function(I){if(!I.hotGlobalConfigGroup||!I.coldGlobalConfigGroup){if(!Yk()){var y=r1("scheduleGetConfigs");
_.o8(y)}I.initJob||(I.initJob=_.w2.addLowPriorityJob(function(){return _.S(function(D){switch(D.nextAddress){case 1:return _.nj(D,2),D.yield(jQa(I),4);case 4:_.lZ(D,3);break;case 2:_.dj(D);case 3:return _.nj(D,5),D.yield(NHe(I),7);case 7:_.lZ(D,6);break;case 5:_.dj(D);case 6:I.initJob&&(I.initJob=0),_.Cj(D)}})},100))}},nze=function(I,y,D){var F,R,O;
return _.S(function(w){switch(w.nextAddress){case 1:if(!_.l("start_client_gcf")){w.jumpTo(0);break}D&&J_P(I,D);I.setHotHashData(y);F=Yk();if(!F){w.jumpTo(3);break}if(D){w.jumpTo(4);break}return w.yield(M75(F),5);case 5:R=w.yieldResult,D=(O=R)==null?void 0:O.config;case 4:return w.yield(ncB(D,y,F),3);case 3:if(D)for(var v=D,P=_.J(I.configUpdateService.sharedHotConfigJobQueue),K=P.next();!K.done;K=P.next())K=K.value,K(v);_.Cj(w)}})},pSJ=function(I,y,D){var F,R,O,w;
return _.S(function(v){if(v.nextAddress==1){if(!_.l("start_client_gcf"))return v.jumpTo(0);tI_(I,y);return(F=Yk())?D?v.jumpTo(4):v.yield(mPA(F),5):v.jumpTo(0)}v.nextAddress!=4&&(R=v.yieldResult,D=(O=R)==null?void 0:O.config);if(!D)return v.jumpTo(0);w=D.configData;return v.yield(pFL(D,y,w,F),0)})},gc5=function(){var I=PoW(),y=(0,_.m_)()-I.debounceTimer;
if(!(I.debounceTimer!==0&&y<_.kf("send_config_hash_timer"))){y=_.jF("yt.gcf.config.coldConfigData");var D=_.jF("yt.gcf.config.hotHashData"),F=_.jF("yt.gcf.config.coldHashData");y&&D&&F&&(I.debounceTimer=(0,_.m_)());return{coldConfigData:y,hotHashData:D,coldHashData:F}}},KdP=function(I){wWg(I,_.Pi("RAW_COLD_CONFIG_GROUP"));
tI_(I,_.Pi("SERIALIZED_COLD_HASH_DATA"));var y;oKz(I,(y=I.coldGlobalConfigGroup)==null?void 0:y.configData)},Ule=function(I){J_P(I,_.Pi("RAW_HOT_CONFIG_GROUP"));
I.setHotHashData(_.Pi("SERIALIZED_HOT_HASH_DATA"))},J_P=function(I,y){I.hotGlobalConfigGroup=y;
_.fv("yt.gcf.config.hotConfigGroup",I.hotGlobalConfigGroup||null)},wWg=function(I,y){I.coldGlobalConfigGroup=y;
_.fv("yt.gcf.config.coldConfigGroup",I.coldGlobalConfigGroup||null)};
DM.prototype.setHotHashData=function(I){this.hotHashData=I;_.fv("yt.gcf.config.hotHashData",this.hotHashData||null)};
var tI_=function(I,y){I.coldHashData=y;_.fv("yt.gcf.config.coldHashData",I.coldHashData||null)},oKz=function(I,y){I.configData=y;
_.fv("yt.gcf.config.coldConfigData",I.configData||null)},bk=function(){return _.jF("yt.gcf.config.hotConfigGroup")},vKa=function(){return _.jF("yt.gcf.config.coldConfigGroup")};var A0={},hVe=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";A0.assign=function(I){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var D=y.shift();if(D){if(typeof D!=="object")throw new TypeError("ad`"+D);for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(I[F]=D[F])}}return I};
A0.shrinkBuf=function(I,y){if(I.length===y)return I;if(I.subarray)return I.subarray(0,y);I.length=y;return I};
var xln={arraySet:function(I,y,D,F,R){if(y.subarray&&I.subarray)I.set(y.subarray(D,D+F),R);else for(var O=0;O<F;O++)I[R+O]=y[D+O]},
flattenChunks:function(I){var y,D;var F=D=0;for(y=I.length;F<y;F++)D+=I[F].length;var R=new Uint8Array(D);F=D=0;for(y=I.length;F<y;F++){var O=I[F];R.set(O,D);D+=O.length}return R}},l5f={arraySet:function(I,y,D,F,R){for(var O=0;O<F;O++)I[R+O]=y[D+O]},
flattenChunks:function(I){return[].concat.apply([],I)}};
A0.setTyped=function(){hVe?(A0.Buf8=Uint8Array,A0.Buf16=Uint16Array,A0.Buf32=Int32Array,A0.assign(A0,xln)):(A0.Buf8=Array,A0.Buf16=Array,A0.Buf32=Array,A0.assign(A0,l5f))};
A0.setTyped();var uwn=!0;try{new Uint8Array(1)}catch(I){uwn=!1}
var MvJ=function(I){var y,D,F=I.length,R=0;for(y=0;y<F;y++){var O=I.charCodeAt(y);if((O&64512)===55296&&y+1<F){var w=I.charCodeAt(y+1);(w&64512)===56320&&(O=65536+(O-55296<<10)+(w-56320),y++)}R+=O<128?1:O<2048?2:O<65536?3:4}var v=new A0.Buf8(R);for(y=D=0;D<R;y++)O=I.charCodeAt(y),(O&64512)===55296&&y+1<F&&(w=I.charCodeAt(y+1),(w&64512)===56320&&(O=65536+(O-55296<<10)+(w-56320),y++)),O<128?v[D++]=O:(O<2048?v[D++]=192|O>>>6:(O<65536?v[D++]=224|O>>>12:(v[D++]=240|O>>>18,v[D++]=128|O>>>12&63),v[D++]=
128|O>>>6&63),v[D++]=128|O&63);return v};var xXo={};xXo=function(I,y,D,F){var R=I&65535|0;I=I>>>16&65535|0;for(var O;D!==0;){O=D>2E3?2E3:D;D-=O;do R=R+y[F++]|0,I=I+R|0;while(--O);R%=65521;I%=65521}return R|I<<16|0};for(var Fg={},HR,qcf=[],EKe=0;EKe<256;EKe++){HR=EKe;for(var GzW=0;GzW<8;GzW++)HR=HR&1?3988292384^HR>>>1:HR>>>1;qcf[EKe]=HR}Fg=function(I,y,D,F){D=F+D;for(I^=-1;F<D;F++)I=I>>>8^qcf[(I^y[F])&255];return I^-1};var eA={};eA={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 veS=[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],tvL=[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],mXe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N4t=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ZT=Array(576);W1(ZT);var g1=Array(60);W1(g1);var bZ=Array(512);W1(bZ);var $k=Array(256);W1($k);var SMJ=Array(29);W1(SMJ);var PIo=Array(30);W1(PIo);var fNA,neJ,ppJ,YM_=!1;var JO;
JO=[new Lu(0,0,0,0,function(I,y){var D=65535;for(D>I.pending_buf_size-5&&(D=I.pending_buf_size-5);;){if(I.lookahead<=1){Rr(I);if(I.lookahead===0&&y===0)return 1;if(I.lookahead===0)break}I.strstart+=I.lookahead;I.lookahead=0;var F=I.block_start+D;if(I.strstart===0||I.strstart>=F)if(I.lookahead=I.strstart-F,I.strstart=F,Ir(I,!1),I.strm.avail_out===0)return 1;if(I.strstart-I.block_start>=I.w_size-262&&(Ir(I,!1),I.strm.avail_out===0))return 1}I.insert=0;if(y===4)return Ir(I,!0),I.strm.avail_out===0?3:
4;I.strstart>I.block_start&&Ir(I,!1);return 1}),
new Lu(4,4,8,4,lN_),new Lu(4,5,16,8,lN_),new Lu(4,6,32,32,lN_),new Lu(4,4,16,16,O6),new Lu(8,16,32,32,O6),new Lu(8,16,128,128,O6),new Lu(8,32,128,256,O6),new Lu(32,128,258,1024,O6),new Lu(32,258,258,4096,O6)];var Q0J={};Q0J=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 z6q=Object.prototype.toString;
Xpt.prototype.push=function(I,y){var D=this.strm,F=this.options.chunkSize;if(this.ended)return!1;var R=y===~~y?y:y===!0?4:0;typeof I==="string"?D.input=MvJ(I):z6q.call(I)==="[object ArrayBuffer]"?D.input=new Uint8Array(I):D.input=I;D.next_in=0;D.avail_in=D.input.length;do{D.avail_out===0&&(D.output=new A0.Buf8(F),D.next_out=0,D.avail_out=F);I=G4J(D,R);if(I!==1&&I!==0)return XWg(this,I),this.ended=!0,!1;if(D.avail_out===0||D.avail_in===0&&(R===4||R===2))if(this.options.to==="string"){var O=A0.shrinkBuf(D.output,
D.next_out);y=O;O=O.length;if(O<65537&&(y.subarray&&uwn||!y.subarray))y=String.fromCharCode.apply(null,A0.shrinkBuf(y,O));else{for(var w="",v=0;v<O;v++)w+=String.fromCharCode(y[v]);y=w}this.chunks.push(y)}else y=A0.shrinkBuf(D.output,D.next_out),this.chunks.push(y)}while((D.avail_in>0||D.avail_out===0)&&I!==1);if(R===4)return(D=this.strm)&&D.state?(F=D.state.status,F!==42&&F!==69&&F!==73&&F!==91&&F!==103&&F!==113&&F!==666?I=Tm(D,-2):(D.state=null,I=F===113?Tm(D,-3):0)):I=-2,XWg(this,I),this.ended=
!0,I===0;R===2&&(XWg(this,0),D.avail_out=0);return!0};
var XWg=function(I,y){y===0&&(I.result=I.options.to==="string"?I.chunks.join(""):A0.flattenChunks(I.chunks));I.chunks=[];I.err=y;I.msg=I.strm.msg};var QQM=typeof TextEncoder!=="undefined"?new TextEncoder:null,SvH=QQM?function(I){return QQM.encode(I)}:function(I){I=_.CW(I);
for(var y=new Uint8Array(I.length),D=0;D<y.length;D++)y[D]=I[D];return y};var yxt={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},FN_={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var eV=function(I,y){this.version=I;this.args=y};
eV.prototype.serialize=function(){return{version:this.version,args:this.args}};var WhH=function(I,y){this.topic=I;this.dataClass=y};
WhH.prototype.toString=function(){return this.topic};var YcR=_.jF("ytPubsub2Pubsub2Instance")||new _.bP;_.bP.prototype.subscribe=_.bP.prototype.subscribe;_.bP.prototype.unsubscribeByKey=_.bP.prototype.unsubscribeByKey;_.bP.prototype.publish=_.bP.prototype.publish;_.bP.prototype.clear=_.bP.prototype.clear;_.fv("ytPubsub2Pubsub2Instance",YcR);var ctH=_.jF("ytPubsub2Pubsub2SubscribedKeys")||{};_.fv("ytPubsub2Pubsub2SubscribedKeys",ctH);var B4W=_.jF("ytPubsub2Pubsub2TopicToKeys")||{};_.fv("ytPubsub2Pubsub2TopicToKeys",B4W);
var CIH=_.jF("ytPubsub2Pubsub2IsAsync")||{};_.fv("ytPubsub2Pubsub2IsAsync",CIH);_.fv("ytPubsub2Pubsub2SkipSubKey",null);var Zg4=void 0,s0q=void 0;var LZe=_.kf("max_body_size_to_compress",5E5),JCt=_.kf("min_body_size_to_compress",500),Sn=!0,KZq=0,tO=0,PVq=_.kf("compression_performance_threshold_lr",250),rCJ=_.kf("slow_compressions_before_abandon_count",4),yCt=!1,D4L=new Map,vEt=1,w4q=!0;_.EI(PP,oEL);PP.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 f5u=function(I,y,D){D||(D=0);var F=I.W_;if(typeof y==="string")for(var R=0;R<16;R++)F[R]=y.charCodeAt(D)<<24|y.charCodeAt(D+1)<<16|y.charCodeAt(D+2)<<8|y.charCodeAt(D+3),D+=4;else for(R=0;R<16;R++)F[R]=y[D]<<24|y[D+1]<<16|y[D+2]<<8|y[D+3],D+=4;for(y=16;y<80;y++)D=F[y-3]^F[y-8]^F[y-14]^F[y-16],F[y]=(D<<1|D>>>31)&4294967295;y=I.chain_[0];D=I.chain_[1];R=I.chain_[2];for(var O=I.chain_[3],w=I.chain_[4],v,P,K=0;K<80;K++)K<40?K<20?(v=O^D&(R^O),P=1518500249):(v=D^R^O,P=1859775393):K<60?(v=D&R|O&(D|R),
P=2400959708):(v=D^R^O,P=3395469782),v=(y<<5|y>>>27)+v+w+P+F[K]&4294967295,w=O,O=R,R=(D<<30|D>>>2)&4294967295,D=y,y=v;I.chain_[0]=I.chain_[0]+y&4294967295;I.chain_[1]=I.chain_[1]+D&4294967295;I.chain_[2]=I.chain_[2]+R&4294967295;I.chain_[3]=I.chain_[3]+O&4294967295;I.chain_[4]=I.chain_[4]+w&4294967295};
PP.prototype.update=function(I,y){if(I!=null){y===void 0&&(y=I.length);for(var D=y-this.blockSize,F=0,R=this.buf_,O=this.inbuf_;F<y;){if(O==0)for(;F<=D;)f5u(this,I,F),F+=this.blockSize;if(typeof I==="string")for(;F<y;){if(R[O]=I.charCodeAt(F),++O,++F,O==this.blockSize){f5u(this,R);O=0;break}}else for(;F<y;)if(R[O]=I[F],++O,++F,O==this.blockSize){f5u(this,R);O=0;break}}this.inbuf_=O;this.total_+=y}};
PP.prototype.digest=function(){var I=[],y=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]=y&255,y/=256;f5u(this,this.buf_);for(D=y=0;D<5;D++)for(var F=24;F>=0;F-=8)I[y]=this.chain_[D]>>F&255,++y;return I};var x4B;var ss=function(I){var y=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){y.databaseToken=r},
triggerThrottle:function(){y.throttledSend()},
cancelThrottle:function(){y.cancelThrottledSend()},
immediateSend:function(r){return _.S(function(N){return N.yield(y.immediateSend(r),0)})},
requestWithinAgeLimit:function(r,N){return y.requestWithinAgeLimit(r,N)},
retryQueuedRequests:function(){y.retryQueuedRequests()}};
var D;this.throttleTimeout=(D=I.throttleTimeout)!=null?D:100;var F;this.retryMaxAttempts=(F=I.retryMaxAttempts)!=null?F:1;var R;this.requestAgeLimitMs=(R=I.requestAgeLimitMs)!=null?R:2592E6;var O;this.queuedRequestAgeLimitMs=(O=I.queuedRequestAgeLimitMs)!=null?O:12E4;var w;this.retryDelayMs=(w=I.retryDelayMs)!=null?w:5E3;var v;this.databaseToken=(v=I.databaseToken)!=null?v:void 0;this.enableCleaning=!!I.enableCleaning;var P;this.cleaningRate=(P=I.cleaningRate)!=null?P:.1;var K;this.potentialEsfErrorLimit=
(K=I.potentialEsfErrorLimit)!=null?K:10;I.handleError&&(this.handleError=I.handleError);I.handleWarning&&(this.handleWarning=I.handleWarning);I.disableYtIdbTransactions&&(this.disableYtIdbTransactions=I.disableYtIdbTransactions);I.bypassDbTokenDependency&&(this.bypassDbTokenDependency=I.bypassDbTokenDependency);this.getBooleanFlag=I.getBooleanFlag;this.jobManager=I.jobManager;this.logsStore=I.logsStore;this.networkManager=I.networkManager;this.sendFn=I.sendFn;this.onlineEvent=I.onlineEvent;this.offlineEvent=
I.offlineEvent;T9(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&nKz(this)},nKz=function(I){T9(I)&&!I.disableYtIdbTransactions&&(I.initialized=!0,I.enableCleaning&&Math.random()<=I.cleaningRate&&I.logsStore.cleanLogsStore(I.databaseToken),I.retryQueuedRequests(),I.networkManager.isNetworkAvailable()&&I.throttledSend(),I.networkManager.listen(I.onlineEvent,I.throttledSend.bind(I)),I.networkManager.listen(I.offlineEvent,I.cancelThrottledSend.bind(I)))};
_.L=ss.prototype;_.L.writeThenSend=function(I,y){var D=this;y=y===void 0?{}:y;if(T9(this)&&this.initialized){var F={url:I,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(F,this.databaseToken).then(function(R){F.id=R;D.networkManager.isNetworkAvailable()&&D.immediateSend(F)}).catch(function(R){D.immediateSend(F);
pWn(D,R)})}else this.sendFn(I,y)};
_.L.sendThenWrite=function(I,y,D){var F=this;y=y===void 0?{}:y;if(T9(this)&&this.initialized){var R={url:I,options:y,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(R.skipRetry=D);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!R.skipRetry){if(!R.skipRetry){var O=y.onError?y.onError:function(){};
y.onError=function(w,v){return _.S(function(P){if(P.nextAddress==1)return P.yield(F.logsStore.set(R,F.databaseToken).catch(function(K){pWn(F,K)}),2);
O(w,v);_.Cj(P)})}}this.sendFn(I,y,R.skipRetry)}else this.logsStore.set(R,this.databaseToken).catch(function(w){F.sendFn(I,y,R.skipRetry);
pWn(F,w)})}else this.sendFn(I,y,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&D)};
_.L.sendAndWrite=function(I,y){var D=this;y=y===void 0?{}:y;if(T9(this)&&this.initialized){var F={url:I,options:y,timestamp:this.now(),status:"NEW",sendCount:0},R=!1,O=y.onSuccess?y.onSuccess:function(){};
F.options.onSuccess=function(w,v){F.id!==void 0?D.logsStore.deleteRequest(F.id,D.databaseToken):R=!0;D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);O(w,v)};
this.sendFn(F.url,F.options,void 0,!0);this.logsStore.set(F,this.databaseToken).then(function(w){F.id=w;R&&D.logsStore.deleteRequest(F.id,D.databaseToken)}).catch(function(w){pWn(D,w)})}else this.sendFn(I,y,void 0,!0)};
_.L.throttledSend=function(){var I=this;if(!T9(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.logsStore.getMostRecentByStatus("NEW",I.databaseToken),2);if(D.nextAddress!=3)return y=D.yieldResult,y?D.yield(I.immediateSend(y),3):(I.cancelThrottledSend(),D.return());I.intervalJob&&(I.intervalJob=0,I.throttledSend());_.Cj(D)})},this.throttleTimeout))};
_.L.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.L.immediateSend=function(I){var y=this,D;return _.S(function(F){switch(F.nextAddress){case 1:if(!T9(y))throw Error("ed");if(I.id===void 0){F.jumpTo(2);break}return F.yield(y.logsStore.markAsQueued(I.id,y.databaseToken),3);case 3:(D=F.yieldResult)||y.handleWarning(Error("fd"));case 2:if(y.requestWithinAgeLimit(I,y.requestAgeLimitMs)){F.jumpTo(4);break}y.handleWarning(Error("gd"));if(I.id===void 0){F.jumpTo(5);break}return F.yield(y.logsStore.deleteRequest(I.id,y.databaseToken),5);case 5:return F.return();
case 4:I.skipRetry||(I=mlz(y,I));if(!I){F.jumpTo(0);break}if(!I.skipRetry||I.id===void 0){F.jumpTo(8);break}return F.yield(y.logsStore.deleteRequest(I.id,y.databaseToken),8);case 8:y.sendFn(I.url,I.options,!!I.skipRetry),_.Cj(F)}})};
var mlz=function(I,y){if(!T9(I))throw Error("hd");var D=y.options.onError?y.options.onError:function(){};
y.options.onError=function(R,O){var w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:w=GvW(O);(v=X4H(O))&&I.getBooleanFlag&&I.getBooleanFlag("web_enable_error_204")&&I.handleError(Error("id"),y.url,O);if(!(I.getBooleanFlag&&I.getBooleanFlag("nwl_consider_error_code")&&w||I.getBooleanFlag&&!I.getBooleanFlag("nwl_consider_error_code")&&I.potentialEsfErrorCounter<=I.potentialEsfErrorLimit)){r.jumpTo(2);break}if(!I.networkManager.sendNetworkCheckRequest){r.jumpTo(3);break}return r.yield(I.networkManager.sendNetworkCheckRequest(),
3);case 3:if(I.networkManager.isNetworkAvailable()){r.jumpTo(2);break}D(R,O);if(!I.getBooleanFlag||!I.getBooleanFlag("nwl_consider_error_code")||((P=y)==null?void 0:P.id)===void 0){r.jumpTo(6);break}return r.yield(I.logsStore.resetRequest(y.id,I.databaseToken,!1),6);case 6:return r.return();case 2:if(I.getBooleanFlag&&I.getBooleanFlag("nwl_consider_error_code")&&!w&&I.potentialEsfErrorCounter>I.potentialEsfErrorLimit)return r.return();I.potentialEsfErrorCounter++;if(((K=y)==null?void 0:K.id)===void 0){r.jumpTo(8);
break}return y.sendCount<I.retryMaxAttempts?r.yield(I.logsStore.resetRequest(y.id,I.databaseToken,!0,v?!1:void 0),12):r.yield(I.logsStore.deleteRequest(y.id,I.databaseToken),8);case 12:I.jobManager.addLowPriorityJob(function(){I.networkManager.isNetworkAvailable()&&I.throttledSend()},I.retryDelayMs);
case 8:D(R,O),_.Cj(r)}})};
var F=y.options.onSuccess?y.options.onSuccess:function(){};
y.options.onSuccess=function(R,O){var w;return _.S(function(v){if(v.nextAddress==1)return((w=y)==null?void 0:w.id)===void 0?v.jumpTo(2):v.yield(I.logsStore.deleteRequest(y.id,I.databaseToken),2);I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);F(R,O);_.Cj(v)})};
return y};
ss.prototype.requestWithinAgeLimit=function(I,y){I=I.timestamp;return this.now()-I>=y?!1:!0};
ss.prototype.retryQueuedRequests=function(){var I=this;if(!T9(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(y){y&&!I.requestWithinAgeLimit(y,I.queuedRequestAgeLimitMs)?I.jobManager.addLowPriorityJob(function(){return _.S(function(D){if(D.nextAddress==1)return y.id===void 0?D.jumpTo(2):D.yield(I.logsStore.resetRequest(y.id,I.databaseToken),2);I.retryQueuedRequests();_.Cj(D)})}):I.networkManager.isNetworkAvailable()&&I.throttledSend()})};
var pWn=function(I,y){I.writeError&&!I.networkManager.isNetworkAvailable()?I.writeError(y):I.handleError(y)},T9=function(I){return!!I.databaseToken||I.bypassDbTokenDependency};var Q6J;var z24={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534};var MIu={},adC=pv("ServiceWorkerLogsDatabase",{objectStores:(MIu.SWHealthLog={addedAtVersion:1},MIu),shared:!0,upgrade:function(I,y){y(1)&&jn(r2(I,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var bQS={},$4S=0;var s6A;var Vy=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},lH=function(){if(!Vy.instance){var I=_.jF("yt.networkRequestMonitor.instance")||new Vy;
_.fv("yt.networkRequestMonitor.instance",I);Vy.instance=I}return Vy.instance};
Vy.prototype.requestComplete=function(I,y){y&&(this.anyRequestHasSucceeded=!0);I=this.removeParams(I);this.requestMap.get(I)||this.requestMap.set(I,y)};
Vy.prototype.isEndpointCFR=function(I){I=this.removeParams(I);return(I=this.requestMap.get(I))?!1:I===!1&&this.anyRequestHasSucceeded?!0:null};
Vy.prototype.removeParams=function(I){return I.split("?")[0]};
Vy.prototype.removeParams=Vy.prototype.removeParams;Vy.prototype.isEndpointCFR=Vy.prototype.isEndpointCFR;Vy.prototype.requestComplete=Vy.prototype.requestComplete;Vy.getInstance=lH;var Zm=function(I){_.Zw.call(this);var y=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=I!=null?I:{addLowPriorityJob:function(R,O){return setTimeout(R,O)},
cancelJob:function(R){clearTimeout(R)}};
var D,F;this.isOnline=(F=(D=window.navigator)==null?void 0:D.onLine)!=null?F:!0;this.onNavigatorChange=function(){return _.S(function(R){return R.yield(zVz(y),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||kzM(this)};
_.E(Zm,_.Zw);Zm.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Zm.instance};
Zm.prototype.isNetworkAvailable=function(){return this.isOnline};
var kzM=function(I){I.pollingJob=I.jobManager.addLowPriorityJob(function(){var y;return _.S(function(D){if(D.nextAddress==1)return I.isOnline?((y=window.navigator)==null?0:y.onLine)?D.jumpTo(3):D.yield(zVz(I),3):D.yield(zVz(I),3);kzM(I);_.Cj(D)})},3E4)},zVz=function(I,y){return I.networkRequestPromise?I.networkRequestPromise:I.networkRequestPromise=new Promise(function(D){var F,R,O,w;
return _.S(function(v){switch(v.nextAddress){case 1:return F=window.AbortController?new window.AbortController:void 0,O=(R=F)==null?void 0:R.signal,w=!1,_.nj(v,2,3),F&&(I.abortTimeoutKey=I.jobManager.addLowPriorityJob(function(){F.abort()},y||2E4)),v.yield(fetch("/generate_204",{method:"HEAD",
signal:O}),5);case 5:w=!0;case 3:_.m4(v);I.networkRequestPromise=void 0;I.abortTimeoutKey&&(I.jobManager.cancelJob(I.abortTimeoutKey),I.abortTimeoutKey=0);w!==I.isOnline&&(I.isOnline=w,I.isOnline?I.dispatchEvent("networkstatus-online"):I.dispatchEvent("networkstatus-offline"));D(w);_.kQ(v,0);break;case 2:_.dj(v),w=!1,v.jumpTo(3)}})})};var gX=function(){_.Zw.call(this);var I=this;this.shouldFlushErrors=!1;Zm.instance||(Zm.instance=new Zm(_.w2));this.sharedNetworkStatusManager=Zm.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(I.shouldFlushErrors&&_.l("offline_error_handling")){var y=VEA().get("errors",!0);if(y){for(var D in y)if(y[D]){var F=new _.g6(D,"sent via offline_errors");F.name=y[D].name;F.stack=y[D].stack;F.level=y[D].level;_.UJ(F)}VEA().set("errors",{},2592E3,!0)}}})};
_.E(gX,_.Zw);var dlG=function(){if(!gX.instance){var I=_.jF("yt.networkStatusManager.instance")||new gX;_.fv("yt.networkStatusManager.instance",I);gX.instance=I}return gX.instance};
_.L=gX.prototype;_.L.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.L.networkStatusHint=function(I){this.sharedNetworkStatusManager.isOnline=I};
_.L.getWindowStatus=function(){var I=window.navigator.onLine;return I===void 0?!0:I};
_.L.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.L.listen=function(I,y){return this.sharedNetworkStatusManager.listen(I,y)};
_.L.sendNetworkCheckRequest=function(I){I=zVz(this.sharedNetworkStatusManager,I);I.then(function(y){_.l("use_cfr_monitor")&&lH().requestComplete("generate_204",y)});
return I};
gX.prototype.sendNetworkCheckRequest=gX.prototype.sendNetworkCheckRequest;gX.prototype.listen=gX.prototype.listen;gX.prototype.enableErrorFlushing=gX.prototype.enableErrorFlushing;gX.prototype.getWindowStatus=gX.prototype.getWindowStatus;gX.prototype.networkStatusHint=gX.prototype.networkStatusHint;gX.prototype.isNetworkAvailable=gX.prototype.isNetworkAvailable;gX.getInstance=dlG;_.x7=function(I){I=I===void 0?{}:I;_.Zw.call(this);var y=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=dlG();var D=_.jF("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);D&&(I.rateLimit?(this.rateLimit=I.rateLimit,D("networkstatus-online",function(){a5c(y,"publicytnetworkstatus-online")}),D("networkstatus-offline",function(){a5c(y,"publicytnetworkstatus-offline")})):(D("networkstatus-online",function(){y.dispatchEvent("publicytnetworkstatus-online")}),D("networkstatus-offline",
function(){y.dispatchEvent("publicytnetworkstatus-offline")})))};
_.E(_.x7,_.Zw);_.x7.prototype.isNetworkAvailable=function(){var I=_.jF("yt.networkStatusManager.instance.isNetworkAvailable");return I?I.bind(this.nsmInstance)():!0};
_.x7.prototype.networkStatusHint=function(I){var y=_.jF("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);y&&y(I)};
_.x7.prototype.sendNetworkCheckRequest=function(I){var y=this,D;return _.S(function(F){D=_.jF("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(y.nsmInstance);return _.l("skip_network_check_if_cfr")&&lH().isEndpointCFR("generate_204")?F.return(new Promise(function(R){var O;y.networkStatusHint(((O=window.navigator)==null?void 0:O.onLine)||!0);R(y.isNetworkAvailable())})):D?F.return(D(I)):F.return(!0)})};
var a5c=function(I,y){I.rateLimit?I.lastJobTime?(_.w2.cancelJob(I.schedulerJob),I.schedulerJob=_.w2.addLowPriorityJob(function(){I.lastPublicSignalSent!==y&&(I.dispatchEvent(y),I.lastPublicSignalSent=y,I.lastJobTime=(0,_.m_)())},I.rateLimit-((0,_.m_)()-I.lastJobTime))):(I.dispatchEvent(y),I.lastPublicSignalSent=y,I.lastJobTime=(0,_.m_)()):I.dispatchEvent(y)};var DKB,IZ=function(){ss.call(this,{logsStore:{cleanLogsStore:kv4,deleteRequest:z0S,getMostRecentByStatus:p4L,markAsQueued:m4H,resetRequest:MEq,set:nEq},networkManager:_.FjB(),handleError:function(I,y,D){var F,R=D==null?void 0:(F=D.error)==null?void 0:F.code;if(R===400||R===415){var O;I=new _.g6(I.message,y,D==null?void 0:(O=D.error)==null?void 0:O.code);_.o8(I,void 0,void 0,void 0,!0)}else _.UJ(I)},
handleWarning:_.o8,sendFn:Ioe,now:_.m_,writeError:ZQ5,jobManager:_.Tr(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.kf("potential_esf_error_limit",10),getBooleanFlag:_.l,disableYtIdbTransactions:!(_.ZF()&&_.RgW())});this.initializationPromise=new _.n0;_.l("networkless_immediately_drop_all_requests")&&d4t();XF5("LogsDatabaseV2")};
_.E(IZ,ss);_.WdM=function(){var I=_.jF("yt.networklessRequestController.instance");I||(I=new IZ,_.fv("yt.networklessRequestController.instance",I),_.l("networkless_logging")&&_.nv().then(function(y){I.databaseToken=y;nKz(I);I.initializationPromise.resolve();I.enableCleaning&&Math.random()<=I.cleaningRate&&I.databaseToken&&WZ4(I.databaseToken);_.l("networkless_immediately_drop_sw_health_store")&&c_G(I)}));
return I};
IZ.prototype.writeThenSend=function(I,y){y||(y={});y=yf5(I,y);_.ZF()||(this.initialized=!1);ss.prototype.writeThenSend.call(this,I,y)};
IZ.prototype.sendThenWrite=function(I,y,D){y||(y={});y=yf5(I,y);_.ZF()||(this.initialized=!1);ss.prototype.sendThenWrite.call(this,I,y,D)};
IZ.prototype.sendAndWrite=function(I,y){y||(y={});y=yf5(I,y);_.ZF()||(this.initialized=!1);ss.prototype.sendAndWrite.call(this,I,y)};
IZ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var c_G=function(I){var y;_.S(function(D){if(!I.databaseToken)throw y=r1("clearSWHealthLogsDb"),y;return D.return(CVH(I.databaseToken).catch(function(F){I.handleError(F)}))})};_.LjW=!1;_.O4o=_.Ft.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.LjW};_.fv("ytNetworklessLoggingInitializationOptions",_.O4o);var LT=function(I){var y=this;this.config_=null;I?this.config_=I:kFq()&&(this.config_=_.zm());_.y9(_.w2,function(){EEH(y)},5E3)};
LT.prototype.isReady=function(){!this.config_&&kFq()&&(this.config_=_.zm());return!!this.config_};
var qvo=function(I,y,D,F){!_.Pi("VISITOR_DATA")&&y!=="visitor_id"&&Math.random()<.01&&_.o8(new _.g6("Missing VISITOR_DATA when sending innertube request.",y,D,F));if(!I.isReady()){var R=new _.g6("innertube xhrclient not ready",y,D,F);_.UJ(R);throw R;}var O={headers:F.headers||{},method:"POST",postParams:D,postBody:F.postBody,postBodyFormat:F.postBodyFormat||"JSON",onTimeout:function(){F.onTimeout()},
onFetchTimeout:F.onTimeout,onSuccess:function(N,h){if(F.onSuccess)F.onSuccess(h)},
onFetchSuccess:function(N){if(F.onSuccess)F.onSuccess(N)},
onProgress:function(N){if(F.onProgress)F.onProgress(N)},
onError:function(N,h){if(F.onError)F.onError(h)},
onFetchError:function(N){if(F.onError)F.onError(N)},
timeout:F.timeout,withCredentials:!0,compress:F.compress};O.headers["Content-Type"]||(O.headers["Content-Type"]="application/json");var w="";(R=I.config_.innertubeHostOverride)&&(w=R);var v=I.config_.innertubeUseThirdPartyAuth||!1,P=_.Z0q(v,w,F);Object.assign(O.headers,P);O.headers.Authorization&&!w&&v&&(O.headers["x-origin"]=window.location.origin);var K=_.uP(w+("/youtubei/"+I.config_.innertubeApiVersion+"/"+y),{alt:"json"}),r=function(N){N=N===void 0?!1:N;var h;if(F.retry&&w!="www.youtube-nocookie.com"&&
(N||_.l("skip_ls_gel_retry")||O.headers["Content-Type"]!=="application/json"||(h=lde(y,D,P,v)),h)){var x=O.onSuccess,q=O.onFetchSuccess;O.onSuccess=function(m,z){uf4(h);x(m,z)};
D.onFetchSuccess=function(m,z){uf4(h);q(m,z)}}try{if(N&&F.retry&&!F.networklessOptions.bypassNetworkless)O.method="POST",F.networklessOptions.writeThenSend?_.WdM().writeThenSend(K,O):_.WdM().sendAndWrite(K,O);
else if(F.compress){var X=!F.networklessOptions.writeThenSend;if(O.postBody){var f=O.postBody;typeof f!=="string"&&(f=JSON.stringify(O.postBody));tE_(K,f,O,_.AG,X)}else tE_(K,JSON.stringify(O.postParams),O,hVo,X)}else hVo(K,O)}catch(m){if(m.name==="InvalidAccessError")h&&(uf4(h),h=0),_.o8(Error("kd"));else throw m;}h&&_.y9(_.w2,function(){EEH(I)},5E3)};
_.Jfe()?NYA().then(function(N){r(N)}):r(!1)};var mEq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(mEq,_.KS);var CoM=0,vYB=_.cr?"webkit":_.Wr?"moz":_.fz?"ms":jeu?"o":"";_.fv("ytDomDomGetNextId",_.jF("ytDomDomGetNextId")||function(){return++CoM});var BHW={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},Y7=function(I){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(I=
I||window.event){this.event=I;for(var y in I)y in BHW||(this[y]=I[y]);this.scale=I.scale;this.rotation=I.rotation;var D=I.target||I.srcElement;D&&D.nodeType==3&&(D=D.parentNode);this.target=D;var F=I.relatedTarget;if(F)try{F=F.nodeName?F:null}catch(R){F=null}else this.type=="mouseover"?F=I.fromElement:this.type=="mouseout"&&(F=I.toElement);this.relatedTarget=F;this.clientX=I.clientX!=void 0?I.clientX:I.pageX;this.clientY=I.clientY!=void 0?I.clientY:I.pageY;this.keyCode=I.keyCode?I.keyCode:I.which;
this.charCode=I.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=I.altKey;this.ctrlKey=I.ctrlKey;this.shiftKey=I.shiftKey;this.metaKey=I.metaKey;this.pageX_=I.pageX;this.pageY_=I.pageY}}catch(R){}},iCc=function(I){if(document.body&&document.documentElement){var y=document.body.scrollTop+document.documentElement.scrollTop;
I.pageX_=I.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);I.pageY_=I.clientY+y}};
Y7.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Y7.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Y7.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Qq=_.Ft.ytEventsEventsListeners||{};_.fv("ytEventsEventsListeners",Qq);var rf_=_.Ft.ytEventsEventsCounter||{count:0};_.fv("ytEventsEventsCounter",rf_);var juJ=_.eq(function(){var I=!1;try{var y=Object.defineProperty({},"capture",{get:function(){I=!0}});
window.addEventListener("test",null,y)}catch(D){}return I});_.EI(nu,_.B5);nu.prototype.onMouseMove_=function(I){I.pageX_===void 0&&iCc(I);var y=I.pageX_;I.pageY_===void 0&&iCc(I);this.position_=new _.XO(y,I.pageY_)};
nu.prototype.checkPosition_=function(){if(this.position_){var I=(0,_.m_)();if(this.previousTime_!=0){var y=this.previousPosition_,D=this.position_,F=y.x-D.x;y=y.y-D.y;F=Math.sqrt(F*F+y*y)/(I-this.previousTime_);this.cycles_[this.index_]=Math.abs((F-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(D=y=0;D<4;D++)y+=this.cycles_[D]||0;y>=3&&this.callback_();this.previousVelocity_=F}this.previousTime_=I;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
nu.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.oY4(this.mouseListenerKey_)};var uH4={};var fXA=new _.lk("rawColdConfigGroup");var YP4=new _.lk("rawHotConfigGroup");var A_c=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(A_c,_.KS);var p0e=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(p0e,_.KS);var If=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I,500)};
_.E(If,_.KS);If.prototype.getPayloadCase=function(){return _.Bn(this,$lg)};
If.prototype.getContext=function(){return _.kk(this,p0e,33)};
var $lg=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var upA=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(upA,_.KS);var gYH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(gYH,_.KS);gYH.prototype.setVideoId=function(I){return $7(this,1,IXC,Qa(I))};
gYH.prototype.getPlaylistId=function(){return _.z6(this,Vq(this,IXC,2))};
var IXC=[1,2];var bH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(bH,_.KS);bH.prototype.getContext=function(){return _.kk(this,HP,1)};
bH.prototype.getTier=function(){return _.sI(this,7)};
bH.prototype.getRetryCount=function(){return _.lD(this,11)};var bCz,k7,d2;bCz=_.Ft.ytPubsubPubsubInstance||new _.bP;k7=_.Ft.ytPubsubPubsubSubscribedKeys||{};d2=_.Ft.ytPubsubPubsubTopicToKeys||{};_.qE_=_.Ft.ytPubsubPubsubIsSynchronous||{};_.bP.prototype.subscribe=_.bP.prototype.subscribe;_.bP.prototype.unsubscribeByKey=_.bP.prototype.unsubscribeByKey;_.bP.prototype.publish=_.bP.prototype.publish;_.bP.prototype.clear=_.bP.prototype.clear;_.fv("ytPubsubPubsubInstance",bCz);_.fv("ytPubsubPubsubTopicToKeys",d2);_.fv("ytPubsubPubsubIsSynchronous",_.qE_);
_.fv("ytPubsubPubsubSubscribedKeys",k7);var cP=window;var yS=_.l("web_enable_lifecycle_monitoring")&&YEB()!==0,HCP=_.l("web_enable_lifecycle_monitoring");var eVf=function(I){var y=this;var D=D===void 0?0:D;var F=F===void 0?_.Tr():F;this.JSC$11164_defaultPriority=D;this.scheduler=F;this.completedResolver=new _.n0;this.scheduledPayloads=I;for(I={i$jscomp$493:0};I.i$jscomp$493<this.scheduledPayloads.length;I={payload$jscomp$20:void 0,i$jscomp$493:I.i$jscomp$493},I.i$jscomp$493++)I.payload$jscomp$20=this.scheduledPayloads[I.i$jscomp$493],D=function(R){return function(){R.payload$jscomp$20.job();y.scheduledPayloads[R.i$jscomp$493].processed=!0;y.scheduledPayloads.every(function(O){return O.processed===
!0})&&y.completedResolver.resolve()}}(I),F=this.getPriority(I.payload$jscomp$20),F=this.scheduler.addJob(D,F),this.scheduledPayloads[I.i$jscomp$493]=Object.assign({},I.payload$jscomp$20,{job:D,
jobId:F})};
eVf.prototype.flushJobs=function(){var I=this,y=Array.from(this.scheduledPayloads.keys()).sort(function(F,R){return I.getPriority(I.scheduledPayloads[R])-I.getPriority(I.scheduledPayloads[F])});
y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=this.scheduledPayloads[D.value],D.jobId===void 0||D.processed||(this.scheduler.cancelJob(D.jobId),this.scheduler.addJob(D.job,10))};
eVf.prototype.cancel=function(){for(var I=_.J(this.scheduledPayloads),y=I.next();!y.done;y=I.next())y=y.value,y.jobId===void 0||y.processed||this.scheduler.cancelJob(y.jobId),y.processed=!0;this.completedResolver.resolve()};
eVf.prototype.getPriority=function(I){var y;return(y=I.priority)!=null?y:this.JSC$11164_defaultPriority};var DB=function(I){this.state=I;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};yS&&foL(this.state)};
DB.prototype.install=function(I){this.plugins.push(I);return this};
DB.prototype.uninstall=function(){var I=this;_.go.apply(0,arguments).forEach(function(y){y=I.plugins.indexOf(y);y>-1&&I.plugins.splice(y,1)})};
DB.prototype.transition=function(I,y){var D=this;yS&&nYo(this.state);var F=this.transitions.find(function(O){return Array.isArray(O.from)?O.from.find(function(w){return w===D.state&&O.to===I}):O.from===D.state&&O.to===I});
if(F){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);THR(this,I,y);this.state=I;yS&&foL(this.state);F=F.action.bind(this);var R=this.plugins.filter(function(O){return O[I]}).map(function(O){return O[I]});
F(sQn(this,R),y)}else throw Error("ld`"+this.state+"`"+I);};
var sQn=function(I,y){var D=y.filter(function(R){return VIg(I,R)===10}),F=y.filter(function(R){return VIg(I,R)!==10});
return I.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var R=_.go.apply(0,arguments);return _.S(function(O){if(O.nextAddress==1)return O.yield(I.runImmediateJobsAsync.apply(I,[D].concat(_.Td(R))),2);I.setJobSetWithScheduledJobs.apply(I,[F].concat(_.Td(R)));_.Cj(O)})}:function(){var R=_.go.apply(0,arguments);
I.runImmediateJobsSync.apply(I,[D].concat(_.Td(R)));I.setJobSetWithScheduledJobs.apply(I,[F].concat(_.Td(R)))}};
DB.prototype.runImmediateJobsSync=function(I){var y=_.go.apply(1,arguments);_.Tr();for(var D=_.J(I),F=D.next(),R={};!F.done;R={lifecycle$jscomp$2:void 0},F=D.next())R.lifecycle$jscomp$2=F.value,uO(function(O){return function(){ZCO(O.lifecycle$jscomp$2.name);mK4(function(){return O.lifecycle$jscomp$2.callback.apply(O.lifecycle$jscomp$2,_.Td(y))});
Fo(O.lifecycle$jscomp$2.name)}}(R))};
DB.prototype.runImmediateJobsAsync=function(I){var y=_.go.apply(1,arguments),D,F,R,O;return _.S(function(w){w.nextAddress==1&&(_.Tr(),D=_.J(I),F=D.next(),R={});if(w.nextAddress!=3){if(F.done)return w.jumpTo(0);R.lifecycle$jscomp$3=F.value;R.asyncJobCompletion=void 0;O=function(v){return function(){ZCO(v.lifecycle$jscomp$3.name);var P=mK4(function(){return v.lifecycle$jscomp$3.callback.apply(v.lifecycle$jscomp$3,_.Td(y))});
AMu(P)?v.asyncJobCompletion=_.l("web_lifecycle_error_handling_killswitch")?P.then(function(){Fo(v.lifecycle$jscomp$3.name)}):P.then(function(){Fo(v.lifecycle$jscomp$3.name)},function(K){pUB(K);
Fo(v.lifecycle$jscomp$3.name)}):Fo(v.lifecycle$jscomp$3.name)}}(R);
uO(O);return R.asyncJobCompletion?w.yield(R.asyncJobCompletion,3):w.jumpTo(3)}R={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};F=D.next();return w.jumpTo(2)})};
DB.prototype.setJobSetWithScheduledJobs=function(I){var y=_.go.apply(1,arguments),D=this,F=I.map(function(R){return{job:function(){ZCO(R.name);mK4(function(){return R.callback.apply(R,_.Td(y))});
Fo(R.name)},
priority:VIg(D,R)}});
F.length&&(this.jobSet=new eVf(F))};
var VIg=function(I,y){var D,F;return(F=(D=I.overridePriority)!=null?D:y.priority)!=null?F:0},ZCO=function(I){yS&&I&&foL(I)},Fo=function(I){yS&&I&&nYo(I)},THR=function(I,y,D){HCP&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+I.constructor.name+"] '"+I.state+"' to '"+y+"'"),console.log("with message: ",D),console.groupEnd())};
_.mD.Object.defineProperties(DB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var gK_=function(I){DB.call(this,I===void 0?"none":I);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(){}}]},I7P;
_.E(gK_,DB);gK_.prototype.runApplicationNavigationBegin=function(I,y){var D=this;this.navigationTimer=_.y9(_.w2,function(){D.currentState==="application_navigating"&&D.transition("none")},5E3);
I(y==null?void 0:y.event)};
gK_.prototype.runApplicationNavigationEnd=function(I,y){this.navigationTimer&&(_.w2.cancelJob(this.navigationTimer),this.navigationTimer=null);I(y==null?void 0:y.event)};
_.QPJ=function(){I7P||(I7P=new gK_);return I7P};var XSt=[];_.fv("yt.logging.transport.getScrapedGelPayloads",function(){return XSt});var WP=function(){var I=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return I.totalEntries}}};
WP.prototype.storePayload=function(I,y){I=Mpo(I);this.store[I]?this.store[I].push(y):(this.memoizedKeySequences={},this.store[I]=[y]);this.totalEntries++;_.l("more_accurate_gel_parser")&&(y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(y));return I};
WP.prototype.smartExtractMatchingEntries=function(I){if(!I.keys.length)return[];for(var y=ySW(this,I.keys.splice(0,1)[0]),D=[],F=0;F<y.length;F++)this.store[y[F]]&&I.sizeLimit&&(this.store[y[F]].length<=I.sizeLimit?(D.push.apply(D,_.Td(this.store[y[F]])),delete this.store[y[F]]):D.push.apply(D,_.Td(this.store[y[F]].splice(0,I.sizeLimit))));this.totalEntries-=D.length;(I==null?0:I.sizeLimit)&&D.length<(I==null?void 0:I.sizeLimit)&&(I.sizeLimit-=D.length,D.push.apply(D,_.Td(this.smartExtractMatchingEntries(I))));
return D};
WP.prototype.extractMatchingEntries=function(I){I=ySW(this,I);for(var y=[],D=0;D<I.length;D++)this.store[I[D]]&&(y.push.apply(y,_.Td(this.store[I[D]])),delete this.store[I[D]]);this.totalEntries-=y.length;return y};
WP.prototype.getSequenceCount=function(I){I=ySW(this,I);for(var y=0,D=0;D<I.length;D++){var F=void 0;y+=((F=this.store[I[D]])==null?void 0:F.length)||0}return y};
var ySW=function(I,y){var D=Mpo(y);if(I.memoizedKeySequences[D])return I.memoizedKeySequences[D];var F=Object.keys(I.store)||[];if(F.length<=1&&Mpo(y)===F[0])return F;for(var R=[],O=0;O<F.length;O++){var w=F[O].split("/");if(DPR(y.auth,w[0])){var v=y.isJspb;DPR(v===void 0?"undefined":v?"true":"false",w[1])&&DPR(y.cttAuthInfo,w[2])&&(v=y.tier,v=v===void 0?"undefined":JSON.stringify(v),DPR(v,w[3])&&R.push(F[O]))}}return I.memoizedKeySequences[D]=R},DPR=function(I,y){return I===void 0||I==="undefined"?
!0:I===y};
WP.prototype.getSequenceCount=WP.prototype.getSequenceCount;WP.prototype.extractMatchingEntries=WP.prototype.extractMatchingEntries;WP.prototype.smartExtractMatchingEntries=WP.prototype.smartExtractMatchingEntries;WP.prototype.storePayload=WP.prototype.storePayload;var vz_,JZq,SP4,iH,FXP,Maq,mYq,LCq,OtS,egC,wSW,EzL,DYq;vz_=_.kf("initial_gel_batch_timeout",2E3);JZq=_.kf("gel_queue_timeout_max_ms",6E4);SP4=_.kf("gel_min_batch_size",5);iH=void 0;FXP=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Maq=new FXP;mYq=new FXP;LCq=new FXP;OtS=new FXP;wSW=!0;EzL=1;_.qPS=new Map;DYq=_.Ft.ytLoggingTransportTokensToCttTargetIds_||{};_.fv("ytLoggingTransportTokensToCttTargetIds_",DYq);var yZt=_.Ft.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.fv("ytLoggingTransportTokensToJspbCttTargetIds_",yZt);var BP={};var Rf=_.Ft.ytLoggingGelSequenceIdObj_||{};_.fv("ytLoggingGelSequenceIdObj_",Rf);var dY4=[];var TPW=new Set,BPJ=0,ZtH=0,Va_=0,AZH=[],it_=[],gz4=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var P9W=function(){};
P9W.prototype.getUrl=function(I,y){y=y===void 0?!1:y;return I.hasOwnProperty("shareEndpoint")?null:_.FKo(I,null,y)};
var Fpt=function(I,y,D){I={endpoint:y,actions:[]};D=(D.path?D.path[0]:D.target).icon||"";y=D.indexOf(":");y>0&&(D=D.substr(y+1));D&&I.actions.push(D);return I};var vw4=/Command$/,w_4=/Endpoint$/,OV_=new Map;var Rjf,O0M;Rjf=1;_.uK=function(){this.actionRoutingMap=new Map};
_.uK.prototype.triggerAction=function(I){var y=new SZq(I,!1,_.go.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.uK.prototype.triggerOptionalAction=function(I){var y=new SZq(I,!0,_.go.apply(1,arguments));this.handleAction(y);return y.returnValue};
_.RZ=function(I,y,D){y.forEach(function(F){var R=JU4(F);R&&I.triggerOptionalAction(R,F,D,void 0)})};
_.uK.prototype.handleAction=function(I){var y=this.actionRoutingMap.get(I.actionName);y&&O0M(I,y);I.optionalAction||I.returnValue.length!==0||(I=new _.g6("Unhandled action",I.actionName),_.o8(I))};
O0M=function(I,y){y.forEach(function(D){var F=null;D?F=D.apply(null,I.args):(D=Error("md"),D.params=I.actionName,_.UJ(D));I.returnValue.push(F)})};
_.qM=function(I,y,D){D||(D=Rjf++);for(var F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next()){R=R.value;var O=I.actionRoutingMap.get(R);O||(O=new Map,I.actionRoutingMap.set(R,O));I.registerActionHandler(D,R,y[R],O)}return D};
_.uK.prototype.registerActionHandler=function(I,y,D,F){F.set(I,_.r6(D))};
_.EN=function(I,y,D){y=_.J(Object.keys(y));for(var F=y.next();!F.done;F=y.next())(F=I.actionRoutingMap.get(F.value))&&F.delete(D)};
_.uy(_.uK);var rU_=function(I,y){var D=_.uK.getInstance();_.LR(function(){var F={},R=_.qM(D,(F[I]=y,F));_.tI(function(){var O={};_.EN(D,(O[I]="",O),R)})})};KQA=HDt;var nwq=new Set(["For","If","Match","Watch"]),LXc={},JSc=(LXc[oU.default]=function(){return LQA},LXc.style=function(){return LQA},LXc),wFG;
for(wFG in JSc)Ma.attributes[wFG]=JSc[wFG](Ma.attributes[wFG]);var nT=new _.uk("VISIBILITY_OBSERVER");var C9_={retrieve:function(I){return this.id.\u0275prov.token===I.\u0275prov.token?this.contextValue:this?ne(this,this.id):DwW}};var nd4=function(I,y,D){if(I!==owB)return!1;I=qA5(document.createElement("div"),function(){var F=pi(!1);try{D[0]()}finally{pi(F)}});
I=Array.from(I.childNodes);I.length===1&&(I=I[0]);return I};var vcM=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(I){}var SgP=typeof WeakRef==="function";var t7M=function(I){this.value=I};
t7M.prototype.deref=function(){return this.value};
var PXO=SgP?WeakRef:t7M,KXG=function(I){this.newKeyHandler=I;this.map=new WeakMap};
KXG.prototype.add=function(I,y){this.map.has(I)||(this.newKeyHandler(I),this.map.set(I,[]));this.map.get(I).push(new PXO(y))};
KXG.prototype.get=function(I){var y=this;return function F(){var R,O,w,v,P,K,r,N,h,x,q;return _.nx(F,function(X){switch(X.nextAddress){case 1:_.zd(X,2);R=y.map.get(I);if(!R)return X.return();O=0;w=_.J(R);v=w.next();case 4:if(v.done){X.jumpTo(6);break}P=v.value;K=P.deref();if(!K){X.jumpTo(5);break}O++;r=_.px;return X.yield(K,8);case 8:r(X.yieldResult);case 5:v=w.next();X.jumpTo(4);break;case 6:if(2*O<R.length){N=0;h=_.J(R);for(x=h.next();!x.done;x=h.next())q=x.value,q.deref()&&(R[N++]=q);R.length=
N}case 2:_.m4(X),_.kQ(X,0)}})}()};var UPG=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},HV_=new KXG(function(I){I.addEventListener("abort",Tv_,{once:!0})}),bVS=new WeakMap,rSW=function(I){I=I===void 0?O4:I;
this.signal=new I};
rSW.prototype.abort=function(I){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=I,I=new Event("abort"),this.signal.dispatchEvent(I))};
var O4=function(){this.target=UPG();this.aborted=!1;this.onabort=null};
O4.prototype.throwIfAborted=function(){$5q.call(this)};
O4.prototype.addEventListener=function(I,y,D){this.target.addEventListener(I,y,D)};
O4.prototype.removeEventListener=function(I,y,D){this.target.removeEventListener(I,y,D)};
O4.prototype.dispatchEvent=function(I){if(this.onabort&&I.type==="abort")this.onabort(I);return this.target.dispatchEvent(I)};
O4.abort=AUA;O4.timeout=skq;O4.any=ebq;var iVA=vcM?AbortController:rSW,L3=vcM?AbortSignal:O4;typeof L3.abort!=="function"&&(L3.abort=AUA);typeof L3.prototype.throwIfAborted!=="function"&&(L3.prototype.throwIfAborted=$5q);typeof L3.any!=="function"&&(L3.any=ebq);typeof L3.timeout!=="function"&&(L3.timeout=skq);var mA=null,ZVL=new Map;var jqG=function(I){I=I.clone();bTO(I);bd(I,"dg",null);bd(I,"d","0");BIg(I,null);iTu(I,null);return I},ocf=!0,NYP=function(I,y,D){var F=D===void 0?{}:D;
D=F.cssRowKey===void 0?void 0:F.cssRowKey;var R=F.combinedSignature===void 0?void 0:F.combinedSignature;var O=F.extraEdges===void 0?void 0:F.extraEdges;F=F.callback===void 0?void 0:F.callback;bd(I,"m",y.join(","));O&&$Ma(I,O);D&&(bd(I,"ck",D),R?bd(I,"rs",R):ocf&&(ocf=!1));if(F){if(F!=null&&!TIW.test(F))throw Error("Xa`"+F);bd(I,"cb",F)}I=I.toString();_.Oq(I,"/")&&(I=tAo(document.location.href)+I);return _.c$(I)};var xPP=function(I){return hj_(I).then(function(y){return JSON.parse(y.responseText)})},hj_=function(I){var y={},D=y.xmlHttpFactory?y.xmlHttpFactory.createInstance():PPR.createInstance();
return(new _.AO(function(F,R){var O;try{D.open("GET",I,!0)}catch(P){R(new Jg("Error opening XHR: "+P.message,I,D))}D.onreadystatechange=function(){if(D.readyState==4){_.Ft.clearTimeout(O);var P;!(P=tFu(D.status))&&(P=D.status===0)&&(P=QDM(I),P=!(P=="http"||P=="https"||P==""));P?F(D):R(new l7c(D.status,I,D))}};
D.onerror=function(){R(new Jg("Network error",I,D))};
if(y.headers)for(var w in y.headers){var v=y.headers[w];v!=null&&D.setRequestHeader(w,v)}y.withCredentials&&(D.withCredentials=y.withCredentials);y.responseType&&(D.responseType=y.responseType);y.mimeType&&D.overrideMimeType(y.mimeType);y.timeoutMs>0&&(O=_.Ft.setTimeout(function(){D.onreadystatechange=function(){};
D.abort();R(new uMG(I,D))},y.timeoutMs));
try{D.send(null)}catch(P){D.onreadystatechange=function(){},_.Ft.clearTimeout(O),R(new Jg("Error sending XHR: "+P.message,I,D))}})).thenCatch(function(F){F instanceof _.F9&&D.abort();
throw F;})},Jg=function(I,y,D){_.Io.call(this,I+", url="+y);
this.url=y;this.xhr=D};
_.EI(Jg,_.Io);Jg.prototype.name="XhrError";var l7c=function(I,y,D){Jg.call(this,"Request Failed, status="+I,y,D);this.status=I};
_.EI(l7c,Jg);l7c.prototype.name="XhrHttpError";var uMG=function(I,y){Jg.call(this,"Request timed out",I,y)};
_.EI(uMG,Jg);uMG.prototype.name="XhrTimeoutError";ly=ly||{};var wh=function(){_.B5.call(this)};
_.EI(wh,_.B5);wh.prototype.initialize=function(){};var qgO=function(I,y){this.fn_=I;this.handler_=y};
qgO.prototype.execute=function(I){this.fn_&&(this.fn_.call(this.handler_||null,I),this.fn_=this.handler_=null)};
qgO.prototype.abort=function(){this.handler_=this.fn_=null};var vt=function(I,y){_.B5.call(this);this.deps_=I;this.JSC$11319_id_=y;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.EI(vt,_.B5);vt.prototype.moduleConstructor_=wh;vt.prototype.module_=null;vt.prototype.getId=function(){return this.JSC$11319_id_};
vt.prototype.registerCallback=function(I,y){return Sl(this.onloadCallbacks_,I,y)};
var Ecn=function(I,y){Sl(I.onErrorCallbacks_,y)},Sl=function(I,y,D){y=new qgO(y,D);
I.push(y);return y};
vt.prototype.isLoaded=function(){return!!this.module_};
vt.prototype.onLoad=function(I){var y=new this.moduleConstructor_;y.initialize(I());this.module_=y;y=(y=GFe(this.earlyOnloadCallbacks_,I()))||GFe(this.onloadCallbacks_,I());y||(this.onErrorCallbacks_.length=0);return y};
vt.prototype.onError=function(I){(I=GFe(this.onErrorCallbacks_,I))&&Ro(Error("sd`"+I));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var GFe=function(I,y){for(var D=[],F=0;F<I.length;F++)try{I[F].execute(y)}catch(R){Ro(R),D.push(R)}I.length=0;return D.length?D:null};
vt.prototype.disposeInternal=function(){vt.superClass_.disposeInternal.call(this);_.rM(this.module_)};var XF_,mPP,ncg,pFM,Ygg,f7u,a7_,kFO,dPu;
_.zU=function(I,y,D,F,R){F=F===void 0?!1:F;R=R===void 0?!1:R;var O=O===void 0?!0:O;this.scsReferenceUrl_=XPL(_.W$(I).toString(),O);this.cssRowKey_=y;this.combinedSignature_=D;this.useNegativeLoading_=F;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(I=$r(this.scsReferenceUrl_,"excm"))?I.split(","):[];this.shouldScanForCss_=R;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Qrt();_.tg(this,AqR(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
XF_=function(I,y){if(y.href||y.getAttribute("data-href"))if(y=y.href||y.getAttribute("data-href"),ug4(y)&&!XPL(y).urlPrefix_.endsWith("_/js/")){y=AqR(XPL(y));y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,I.loadedCssModuleList_.includes(D)||I.loadedCssModuleList_.push(D)}};
_.zU.prototype.loadModules=function(I,y,D){var F=D===void 0?{}:D;y=F.extraEdges;D=F.onError;var R=F.onSuccess;F=F.forceReload;if(!I)throw Error("td");if(this.shouldScanForCss_){for(var O=_.J(document.getElementsByTagName("style")),w=O.next();!w.done;w=O.next())XF_(this,w.value);O=_.J(document.getElementsByTagName("link"));for(w=O.next();!w.done;w=O.next())XF_(this,w.value)}Qqn(this,Ygg(this,I),y,D,R,F)};
var Qqn=function(I,y,D,F,R,O){F=F===void 0?function(){}:F;
R=R===void 0?function(){}:R;
O=O===void 0?!1:O;f7u(I,y,function(w,v,P){P=P===void 0?v:P;I.enableFallbackFetch&&O?I.loadWithFetch(w,v,F,R,P):I.load(w,v,F,R,P,D)},D)||F(-1)};
_.zU.prototype.loadWithFetch=function(){_.S(function(){throw Error("ud");})};
_.zU.prototype.maybeSetAdditionalFields=function(){};
mPP=function(I,y,D){if(I.useNegativeLoading_){var F=I.scsReferenceUrl_;I={cssRowKey:I.cssRowKey_,combinedSignature:I.combinedSignature_,extraEdges:D,requestedModuleIds:ncg(I),requestedCssModuleIds:pFM(I)};var R=I===void 0?{}:I;I=R.requestedModuleIds===void 0?[]:R.requestedModuleIds;D=R.requestedCssModuleIds===void 0?[]:R.requestedCssModuleIds;var O=R.cssRowKey===void 0?void 0:R.cssRowKey;var w=R.combinedSignature===void 0?void 0:R.combinedSignature;var v=R.extraEdges===void 0?void 0:R.extraEdges;
R=R.callback===void 0?void 0:R.callback;F=jqG(F);bd(F,"d","1");BIg(F,I);iTu(F,D);y=NYP(F,y,{cssRowKey:O,combinedSignature:w,extraEdges:v,callback:R})}else F=I.scsReferenceUrl_,I={cssRowKey:I.cssRowKey_,combinedSignature:I.combinedSignature_,requestedModuleIds:ncg(I),requestedCssModuleIds:pFM(I)},v=I===void 0?{}:I,I=v.requestedCssModuleIds===void 0?[]:v.requestedCssModuleIds,D=v.cssRowKey===void 0?void 0:v.cssRowKey,O=v.combinedSignature===void 0?void 0:v.combinedSignature,w=v.extraEdges===void 0?
void 0:v.extraEdges,v=v.callback===void 0?void 0:v.callback,F=jqG(F),iTu(F,I),y=NYP(F,y,{cssRowKey:D,combinedSignature:O,extraEdges:w,callback:v});return y};
_.tg=function(I,y){for(var D=!1,F=[],R=0;R<y.length;++R){var O=y[R];I.requestedModuleMap_[O]||(I.requestedModuleMap_[O]=!0,I.requestedModuleList_.push(O),D=!0,F.push(O))}D&&(I.requestedModuleListSorted_=!1)};
_.Pt=function(I,y){for(var D=[],F=0;F<y.length;++F){var R=y[F];I.requestedModuleMap_[R]&&(delete I.requestedModuleMap_[R],_.WH(I.requestedModuleList_,R),D.push(R))}};
_.zU.prototype.load=function(I,y,D,F,R){R=R===void 0?y:R;_.W$(I);var O=this.useCors_,w=this.corsMode_,v=this.fetchPriority,P=_.kW("SCRIPT");_.Uk(P,I);O&&(P.crossOrigin=w);P.async=!1;v&&P.setAttribute("fetchpriority",v);_.tg(this,y);_.M7_(this,I,P,y,D,F,R)};
_.M7_=function(I,y,D,F,R,O,w){w=w===void 0?F:w;I.lastScript_=D;I.insertPos.insertBefore(D,I.insertPos.firstChild);_.zjR(D,F,function(){D.parentElement.removeChild(D);I.lastScript_==D&&(I.lastScript_=null);O()},function(v){D.parentElement.removeChild(D);
I.lastScript_==D&&(I.lastScript_=null);_.Pt(I,v);I.pendingModuleGraphUpdate_?I.pendingModuleGraphUpdate_.then(function(){R(-1,y)}):R(-1,y)},w)};
_.zjR=function(I,y,D,F,R){R=R===void 0?y:R;var O=y.length,w=function(){O=0;I.onload=null;I.onerror=null;v=function(){}},v=function(){w();
var K=R.filter(function(r){return!Ou().getModuleInfo(r).isLoaded()});
K.length!==0?F(K,"Response was successful but was missing module(s) "+K+"."):D()},P=function(){O--;
O==0&&v()};
y.forEach(function(K){K=Ou().getModuleInfo(K);K.isLoaded()?P():(Sl(K.earlyOnloadCallbacks_,P),Ecn(K,P))});
I.onload=function(){return v()};
I.onerror=function(){w();F(y)}};
ncg=function(I){I.requestedModuleListSorted_||(I.requestedModuleListSorted_=!0,I.requestedModuleList_.sort());return I.requestedModuleList_};
pFM=function(I){I=I.loadedCssModuleList_;I.sort();return I};
Ygg=function(I,y){return y.filter(function(D){return!I.requestedModuleMap_[D]})};
f7u=function(I,y,D,F){if(I.pendingModuleGraphUpdate_)return I.pendingModuleGraphUpdate_.then(function(){f7u(I,y,D,F)}),!0;
if(!I.useNegativeLoading_){var R=[],O=Object.assign({},I.requestedModuleMap_);kFO(I,y,function(r){R.push(r.getId())},F,function(r){return!r.isLoaded()},O);
y=R}for(O=0;O<y.length;){for(var w=y.length-O,v=O==0?y:y.slice(O,y.length),P=mPP(I,v,F),K=_.W$(P).toString();K.length>I.urlMaxLength;)if(w>1)w-=Math.ceil((K.length-I.urlMaxLength)/6),w=Math.max(w,1),v=y.slice(O,O+w),P=mPP(I,v,F),K=_.W$(P).toString();else return I.useNegativeLoading_?(I.useNegativeLoading_=!1,I.pendingModuleGraphUpdate_=dPu(I).then(function(r){a7_(I,r,F)}),f7u(I,y.slice(O),D,F)):!1;
O+=w;I.useNegativeLoading_?D(P,v):D(P,v,O===y.length?y:[])}return!0};
a7_=function(I,y,D){Ou().setAllModuleInfoString((y||{}).moduleGraph);kFO(I,ncg(I),function(F){_.tg(I,[F.getId()])},D);
I.pendingModuleGraphUpdate_=null};
kFO=function(I,y,D,F,R,O){O=O===void 0?{}:O;var w=Ou();y=_.J(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var P=w.getModuleInfo(v);if(!(O[v]||R&&!R(P))){O[v]=!0;var K=P.deps_||[];if(F){var r=[];F[v]&&(r=Object.keys(F[v]));K=K.concat(r)}kFO(I,K,D,F,R,O);D(P)}}};
dPu=function(I){I=I.scsReferenceUrl_.clone();bTO(I);bd(I,"dg",null);bd(I,"md","1");return xPP(I.toString())};var I3q=new Uint8Array(123);var cSP=[];var WXW=function(){this.JSC$10330_loader_=null};
_.L=WXW.prototype;_.L.setBatchModeEnabled=function(){};
_.L.setAllModuleInfoString=function(){};
_.L.addExtraEdge=function(){throw Error("vd");};
_.L.removeExtraEdge=function(){throw Error("wd");};
_.L.getModuleContext=function(){return null};
_.L.isActive=function(){return!1};
_.L.isUserActive=function(){return!1};
_.L.registerInitializationCallback=function(){};
_.L.registerCallback=function(){};var K3=function(I,y,D,F,R){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.name="ModuleLoadFailure";this.type=I;this.status=y;this.requestedModuleIds=D;this.url=F;this.cause=R;this.message=this.toString()};
_.E(K3,Error);K3.prototype.toString=function(){return CXW(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var CXW=function(I){switch(I.type){case K3.Type.UNAUTHORIZED:return"Unauthorized";case K3.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case K3.Type.TIMEOUT:return"Timed out";case K3.Type.OLD_CODE_GONE:return"Out of date module id";case K3.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+I.type}};
ly.ModuleLoadFailure=K3;ly.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var U4=function(){this.moduleIds_=this.JSC$10330_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11337_extraEdges_={};this.JSC$11337_callbackMap_={};this.JSC$11337_currentlyLoadingModule_=this.baseModuleInfo_=new vt([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new T6;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.EI(U4,WXW);var BYz=function(I,y){_.Io.call(this,"Error loading "+I+": "+y)};
_.EI(BYz,_.Io);U4.prototype.setBatchModeEnabled=function(I){this.batchModeEnabled_=I};
U4.prototype.setAllModuleInfoString=function(I,y){if(!(this instanceof U4))this.setAllModuleInfoString(I,y);else if(typeof I==="string"){if(I.startsWith("d$")){I=I.substring(2);for(var D=[],F=0,R=I.indexOf("/"),O=0,w=!1,v=0;;){var P=w?I.substring(O):I.substring(O,R);if(P.length===0)F++,O="sy"+F.toString(36),P=[];else{var K=P.indexOf(":");if(K<0)O=P,P=[];else if(K===P.length-1)O=P.substring(0,K),P=Array(D[v-1]);else{O=P.substring(0,K);P=P.substring(K+1).split(",");K=v;for(var r=0;r<P.length;r++)K-=
P[r].length===0?1:Number(P[r]),P[r]=D[K]}K=0;if(O.length===0)K=1;else if(O.charAt(0)==="+"||O.charAt(0)==="-")K=Number(O);K!==0&&(F+=K,O="sy"+F.toString(36))}D.push(O);i0a(this,O,P);if(w)break;O=R+1;R=I.indexOf("/",O);R===-1&&(w=!0);v++}this.moduleIds_=D}else if(I.startsWith("p$"))ASu(this,I);else{I=I.split("/");D=[];for(F=0;F<I.length;F++){v=I[F].split(":");R=v[0];w=[];if(v[1])for(w=v[1].split(","),v=0;v<w.length;v++)w[v]=D[parseInt(w[v],36)];D.push(R);i0a(this,R,w)}this.moduleIds_=D}y&&y.length?
(_.AL(this.loadingModuleIds_,y),this.lastInitialModuleId_=_.p5(y)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11337_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11337_currentlyLoadingModule_=null,(y=this.baseModuleInfo_.onLoad((0,_.iD)(this.getModuleContext,this)))&&y.length&&$Pc(this,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,y[0])),rh(this))}};
var ASu=function(I,y){var D=y.substring(2);for(y=0;y<64;y++)I3q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(y)]=y;var F={buf:D,pos:0};MM(F);var R=MM(F),O=MM(F)+1;y=Array(R);var w=Array(R),v=Array(R);O=Array(O);var P=0,K=0,r=F.pos,N=F.buf.indexOf("|",F.pos);F.pos=N+1;for(N=0;N<R;N++){var h=MM(F),x=h&2,q=h&1;h>>>=2;q?(P+=h>>>1^-(h&1),h="sy"+P.toString(36)):(q=r,r+=h,h=D.substring(q,r));y[N]=h;x&&(O[K++]=h)}O[K]="";F.pos++;K=R&-2;D=R&1;for(P=0;P<K;P+=2)r=ys_(F),v[P]=
r&7,v[P+1]=r>>>3&7;D&&(D=ys_(F),v[K]=D&7);F.pos++;for(K=0;K<R;K++)v[K]===7&&(v[K]=MM(F));F.pos++;for(D=K=0;D<R;D++){P=v[D];r=P===0?cSP:Array(P);w[D]=r;N=K;for(x=0;x<P;x++)N-=MM(F),r[x]=O[N];O[K]===y[D]&&K++}for(F=0;F<y.length;F++)i0a(I,y[F],w[F]);I.moduleIds_=y};
_.L=U4.prototype;_.L.getModuleInfo=function(I){return this.moduleInfoMap[I]};
_.L.addExtraEdge=function(I,y){var D=this.getModuleInfo(I);D&&D.isLoaded()?this.load(y):(this.JSC$11337_extraEdges_[I]||(this.JSC$11337_extraEdges_[I]={}),this.JSC$11337_extraEdges_[I][y]=!0)};
_.L.removeExtraEdge=function(I,y){if(this.JSC$11337_extraEdges_[I]){delete this.JSC$11337_extraEdges_[I][y];for(var D in this.JSC$11337_extraEdges_[I])return;delete this.JSC$11337_extraEdges_[I]}};
_.L.isActive=function(){return this.loadingModuleIds_.length>0};
_.L.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var rh=function(I){var y=I.lastActive_,D=I.isActive();D!=y&&(I.executeCallbacks_(D?"active":"idle"),I.lastActive_=D);y=I.isUserActive();y!=I.userLastActive_&&(I.executeCallbacks_(y?"userActive":"userIdle"),I.userLastActive_=y)},i0a=function(I,y,D){I.moduleInfoMap[y]?(I=I.moduleInfoMap[y].deps_,I!=D&&I.splice.apply(I,[0,
I.length].concat(_.Td(D)))):I.moduleInfoMap[y]=new vt(D,y)},H0M=function(I,y,D){var F=[];
MWq(y,F);y=[];for(var R={},O=0;O<F.length;O++){var w=F[O],v=I.getModuleInfo(w);if(!v)throw Error("xd`"+w);var P=new T6;R[w]=P;v.isLoaded()?P.callback(null):(b0u(I,w,v,!!D,P),I.isModuleLoading(w)||y.push(w))}y.length>0&&(I.loadingModuleIds_.length===0?I.loadModules_(y):(I.requestedModuleIdsQueue_.push(y),rh(I)));return R},b0u=function(I,y,D,F,R){D.registerCallback(R.callback,R);
Ecn(D,function(O){R.errback(new BYz(y,O))});
I.isModuleLoading(y)?F&&(ejO(I,y),rh(I)):F&&ejO(I,y)};
U4.prototype.loadModules_=function(I,y,D){var F=this;y=y===void 0?0:y;var R=TYM(this,I);this.loadingModuleIds_=R;this.requestedLoadingModuleIds_=this.batchModeEnabled_?I:_.C5(R);rh(this);if(R.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,R);I=this.JSC$10330_loader_;if(!I)throw Error("yd");if(Object.keys(this.JSC$11337_extraEdges_).length>0&&!I.supportsExtraEdges)throw Error("zd");D=(0,_.iD)(I.loadModules,I,_.C5(R),this.moduleInfoMap,{extraEdges:this.JSC$11337_extraEdges_,
forceReload:!!D,onError:function(O,w,v){var P=F.requestedLoadingModuleIds_;O=O!=null?O:void 0;var K=y;v=v===void 0?!1:v;v=(v===void 0?0:v)?0:(K===void 0?0:K)+1;K=_.C5(R);F.requestedLoadingModuleIds_=P;R.forEach(_.de(_.WH,F.requestedModuleIds_),F);O==401?($Pc(F,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.UNAUTHORIZED,O)),F.requestedModuleIdsQueue_.length=0):O==410?(sqf(F,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.OLD_CODE_GONE,O)),V7M(F)):v>=3?(sqf(F,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
O,K,w)),V7M(F)):F.loadModules_(F.requestedLoadingModuleIds_,v,O==8001||!1)},
onTimeout:(0,_.iD)(this.handleLoadTimeout_,this)});(I=Math.pow(y,2)*5E3)?_.Ft.setTimeout(D,I):D()}};
var TYM=function(I,y){y=y.filter(function(R){return I.moduleInfoMap[R].isLoaded()?(_.Ft.setTimeout(function(){return Error("Ad`"+R)},0),!1):!0});
for(var D=[],F=0;F<y.length;F++)D=D.concat(Z0O(I,y[F]));MWq(D);return!I.batchModeEnabled_&&D.length>1?(y=D.shift(),I.requestedModuleIdsQueue_=D.map(function(R){return[R]}).concat(I.requestedModuleIdsQueue_),[y]):D},Z0O=function(I,y){var D=_.e$.createSet(I.requestedModuleIds_),F=[];
D[y]||F.push(y);y=[y];for(var R=0;R<y.length;R++)for(var O=I.getModuleInfo(y[R]).deps_,w=O.length-1;w>=0;w--){var v=O[w];I.getModuleInfo(v).isLoaded()||D[v]||(F.push(v),y.push(v))}F.reverse();MWq(F);return F};
U4.prototype.JSC$11332_setLoaded=function(){if(this.JSC$11337_currentlyLoadingModule_){var I=this.JSC$11337_currentlyLoadingModule_.getId(),y=[];if(this.JSC$11337_extraEdges_[I]){for(var D=_.J(Object.keys(this.JSC$11337_extraEdges_[I])),F=D.next();!F.done;F=D.next()){F=F.value;var R=this.getModuleInfo(F);R&&!R.isLoaded()&&(this.removeExtraEdge(I,F),y.push(F))}this.loadMultiple(y)}this.isDisposed()||((y=this.moduleInfoMap[I].onLoad((0,_.iD)(this.getModuleContext,this)))&&y.length&&$Pc(this,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,y[0])),_.WH(this.userInitiatedLoadingModuleIds_,I),_.WH(this.loadingModuleIds_,I),this.loadingModuleIds_.length===0&&V7M(this),this.lastInitialModuleId_&&I==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),rh(this),this.JSC$11337_currentlyLoadingModule_=null)}};
U4.prototype.isModuleLoading=function(I){if(_.kA(this.loadingModuleIds_,I))return!0;for(var y=0;y<this.requestedModuleIdsQueue_.length;y++)if(_.kA(this.requestedModuleIdsQueue_[y],I))return!0;return!1};
U4.prototype.load=function(I,y){return H0M(this,[I],y)[I]};
U4.prototype.loadMultiple=function(I){return H0M(this,I)};
var ejO=function(I,y){_.kA(I.userInitiatedLoadingModuleIds_,y)||I.userInitiatedLoadingModuleIds_.push(y)};
U4.prototype.beforeLoadModuleCode=function(I){var y=this;this.JSC$11337_currentlyLoadingModule_&&this.JSC$11337_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11332_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[I]&&gc_(this,this.moduleInfoMap[I].deps_||[],function(D){D.module_=new wh;_.WH(y.loadingModuleIds_,D.getId())},function(D){return!D.isLoaded()});
this.JSC$11337_currentlyLoadingModule_=this.getModuleInfo(I)};
U4.prototype.registerInitializationCallback=function(I){this.JSC$11337_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new vt([],"synthetic_module_overhead"),this.JSC$11337_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Sl(this.JSC$11337_currentlyLoadingModule_.earlyOnloadCallbacks_,I)};
U4.prototype.handleLoadTimeout_=function(){sqf(this,new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.TIMEOUT));V7M(this)};
var sqf=function(I,y){I.requestedLoadingModuleIds_.length>1?I.requestedModuleIdsQueue_=I.requestedLoadingModuleIds_.map(function(D){return[D]}).concat(I.requestedModuleIdsQueue_):$Pc(I,y)},$Pc=function(I,y){var D=I.requestedLoadingModuleIds_;
I.loadingModuleIds_.length=0;for(var F=[],R=0;R<I.requestedModuleIdsQueue_.length;R++){var O=I.requestedModuleIdsQueue_[R].filter(function(P){var K=Z0O(this,P);return uH(D,function(r){return _.kA(K,r)})},I);
_.AL(F,O)}for(R=0;R<D.length;R++)_.fCq(F,D[R]);for(R=0;R<F.length;R++){for(O=0;O<I.requestedModuleIdsQueue_.length;O++)_.WH(I.requestedModuleIdsQueue_[O],F[R]);_.WH(I.userInitiatedLoadingModuleIds_,F[R])}if(R=I.JSC$11337_callbackMap_.error)for(O=0;O<R.length;O++)for(var w=R[O],v=0;v<F.length;v++)w("error",F[v],y);for(F=0;F<D.length;F++)if(I.moduleInfoMap[D[F]])I.moduleInfoMap[D[F]].onError(y);I.requestedLoadingModuleIds_.length=0;rh(I)},V7M=function(I){for(;I.requestedModuleIdsQueue_.length;){var y=
I.requestedModuleIdsQueue_.shift().filter(function(D){return!this.getModuleInfo(D).isLoaded()},I);
if(y.length>0){I.loadModules_(y);return}}rh(I)};
U4.prototype.registerCallback=function(I,y){Array.isArray(I)||(I=[I]);for(var D=0;D<I.length;D++){var F=I[D],R=y,O=this.JSC$11337_callbackMap_;O[F]||(O[F]=[]);O[F].push(R)}};
U4.prototype.executeCallbacks_=function(I){for(var y=this.JSC$11337_callbackMap_[I],D=0;y&&D<y.length;D++)y[D](I)};
var gc_=function(I,y,D,F,R){F=F===void 0?function(){return!0}:F;
R=R===void 0?{}:R;y=_.J(y);for(var O=y.next();!O.done;O=y.next()){O=O.value;var w=I.getModuleInfo(O);!R[O]&&F(w)&&(R[O]=!0,gc_(I,w.deps_||[],D,F,R),D(w))}};
U4.prototype.dispose=function(){_.oD(_.e$.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11337_callbackMap_={};this.isDisposed_=!0};
U4.prototype.isDisposed=function(){return this.isDisposed_};
_.Rb=function(){return new U4};var INM=[5E3,2E4],JLO=function(){this.JSC$10330_loader_=null;this.JSC$11345_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11345_queue_=[];this.JSC$11345_extraEdges_=Object.create(null);this.JSC$11345_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.E(JLO,WXW);_.L=JLO.prototype;_.L.setAllModuleInfoString=function(){this.JSC$11345_currentlyLoadingModule_&&this.JSC$11345_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11332_setLoaded()};
_.L.getModuleInfo=function(I){var y=this.JSC$11345_moduleInfoMap_[I];y||(y=new vt([],I),this.JSC$11345_moduleInfoMap_[I]=y);return y};
_.L.addExtraEdge=function(I,y){this.getModuleInfo(I).isLoaded()?this.load(y):(this.JSC$11345_extraEdges_[I]||(this.JSC$11345_extraEdges_[I]={}),this.JSC$11345_extraEdges_[I][y]=!0)};
_.L.removeExtraEdge=function(I,y){if(this.JSC$11345_extraEdges_[I]){delete this.JSC$11345_extraEdges_[I][y];for(var D in this.JSC$11345_extraEdges_[I])return;delete this.JSC$11345_extraEdges_[I]}};
_.L.isModuleLoading=function(I){return!!this.loadingModules_[I]};
_.L.load=function(I){ytW(this,[I]);return DXP(this,I)};
_.L.loadMultiple=function(I){var y=this,D=Object.create(null),F=[];I.forEach(function(R){D[R]||(D[R]=DXP(y,R),F.push(R))});
ytW(this,F);return D};
_.L.beforeLoadModuleCode=function(I){var y;((y=this.JSC$11345_currentlyLoadingModule_)==null?void 0:y.getId())==="synthetic_module_overhead"&&this.JSC$11332_setLoaded();var D,F;Fhz(this,(F=(D=this.JSC$11345_moduleInfoMap_[I])==null?void 0:D.deps_)!=null?F:[],function(R){R.module_=new wh},function(R){return!R.isLoaded()});
this.JSC$11345_currentlyLoadingModule_=this.getModuleInfo(I)};
_.L.JSC$11332_setLoaded=function(){if(this.JSC$11345_currentlyLoadingModule_){var I=this.JSC$11345_currentlyLoadingModule_.getId(),y=[];if(this.JSC$11345_extraEdges_[I]){for(var D=_.J(Object.keys(this.JSC$11345_extraEdges_[I])),F=D.next();!F.done;F=D.next())F=F.value,this.getModuleInfo(F).isLoaded()||(this.removeExtraEdge(I,F),y.push(F));this.loadMultiple(y)}this.JSC$11345_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11345_currentlyLoadingModule_=null;(!this.isModuleLoading(I)&&/^sy[0-9a-z]{0,4}$/.test(I)||I==="synthetic_module_overhead")&&delete this.JSC$11345_moduleInfoMap_[I];this.unsetModulesAsLoading(I)}};
_.L.registerInitializationCallback=function(I){this.JSC$11345_currentlyLoadingModule_||(this.JSC$11345_moduleInfoMap_.synthetic_module_overhead=new vt([],"synthetic_module_overhead"),this.JSC$11345_currentlyLoadingModule_=this.JSC$11345_moduleInfoMap_.synthetic_module_overhead);Sl(this.JSC$11345_currentlyLoadingModule_.earlyOnloadCallbacks_,I)};
_.L.setModulesAsLoading=function(){var I=this;_.go.apply(0,arguments).forEach(function(y){I.loadingModules_[y]=!0})};
_.L.unsetModulesAsLoading=function(){var I=this;_.go.apply(0,arguments).forEach(function(y){delete I.loadingModules_[y]})};
var DXP=function(I,y){return new _.AO(function(D,F){var R=I.getModuleInfo(y);R.isLoaded()?D(null):(R.registerCallback(function(){D(null)}),Ecn(R,function(O){var w="Error loading "+y+": "+O;
O instanceof ly.ModuleLoadFailure&&O.url&&(w=w+", requested url: "+O.url.toString());F(Error(w))}))})},ytW=function(I,y){y=y.filter(function(D){return!I.isModuleLoading(D)&&!I.getModuleInfo(D).isLoaded()});
y.length>0&&(I.setModulesAsLoading.apply(I,_.Td(y)),I.JSC$11345_queue_.push(y),R6u(I))},R6u=function(I){for(var y={};I.activeLoads_<Infinity&&I.JSC$11345_queue_.length>0;y={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})y.ids$jscomp$37=I.JSC$11345_queue_.shift().filter(function(D){return!I.getModuleInfo(D).isLoaded()}),y.ids$jscomp$37.length>0&&(I.activeLoads_++,y.finishLoad=function(D){return function(){I.activeLoads_--;
R6u(I);D.finishLoad=function(){}}}(y),_.yL(y.ids$jscomp$37.map(function(D){return DXP(I,D)})).then(function(D){return function(){(0,D.finishLoad)()}}(y)),y.attempt$jscomp$6=0,y.load$jscomp$1=function(D){return function(){if(Object.keys(I.JSC$11345_extraEdges_).length>0&&!I.JSC$10330_loader_.supportsExtraEdges)throw Error("zd");
I.JSC$10330_loader_.loadModules(D.ids$jscomp$37,I.JSC$11345_moduleInfoMap_,{extraEdges:I.JSC$11345_extraEdges_,onError:function(F,R){var O=INM[D.attempt$jscomp$6++];O!==void 0?setTimeout(function(){(0,D.load$jscomp$1)()},O):(I.unsetModulesAsLoading.apply(I,_.Td(D.ids$jscomp$37)),(0,D.finishLoad)(),D.ids$jscomp$37.forEach(function(w){w=I.getModuleInfo(w);
if(!w.isLoaded())w.onError(new ly.ModuleLoadFailure(ly.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,F,D.ids$jscomp$37,R))}))}})}}(y),(0,y.load$jscomp$1)())},Fhz=function(I,y,D,F,R){F=F===void 0?function(){return!0}:F;
R=R===void 0?{}:R;y=_.J(y);for(var O=y.next();!O.done;O=y.next()){O=O.value;var w=I.getModuleInfo(O);!R[O]&&F(w)&&(R[O]=!0,Fhz(I,w.deps_||[],D,F,R),D(w))}};var OgP=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var RpW=Symbol("Cd");window.JSCompiler_renameProperty=function(I){return I};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Lh_=!OgP||HTMLElement.es5Shimmed||_.Ft.Reflect===void 0||_.Ft.customElements===void 0||_.Ft.customElements.polyfillWrapFlushCallback||!1,Jtg,hFB=function(){var I=HTMLElement;if(Lh_)return I;if(Jtg!==void 0)return Jtg;var y=_.Ft.Reflect,D=function(){return y.construct(I,[],this.constructor)};
D.prototype=I.prototype;D.prototype.constructor=D;D.es5Shimmed=!0;Object.setPrototypeOf(D,I);return Jtg=D},wpR=!1;Lh_||wpR||(wpR=!0,_.Ft.HTMLElement=hFB());/*

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 v1J=/(url\()([^)]*)(\))/g,JsB=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,wwJ,dI;var o5=!window.ShadyDOM||!window.ShadyDOM.inUse,vez=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),SMM=!window.customElements.polyfillWrapFlushCallback,tvM;if(tvM=o5&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var PIe=new CSSStyleSheet;PIe.replaceSync("");var KhP=document.createElement("div");KhP.attachShadow({mode:"open"});KhP.shadowRoot.adoptedStyleSheets=[PIe];tvM=KhP.shadowRoot.adoptedStyleSheets[0]===PIe}catch(I){tvM=!1}
var UXG=tvM,rtf=window.Polymer&&window.Polymer.rootPath||tz5(document.baseURI||window.location.href),ZM=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,hMS=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,lg=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,j0u=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ju=window.Polymer&&window.Polymer.legacyOptimizations||!1,xC=window.Polymer&&window.Polymer.legacyWarnings||!1,oe_=window.Polymer&&window.Polymer.syncInitialRender||
!1,I5=window.Polymer&&window.Polymer.legacyUndefined||!1,N4W=window.Polymer&&window.Polymer.orderedComputed||!1,jl=window.Polymer&&window.Polymer.removeNestedTemplates||!1,oZ=window.Polymer&&window.Polymer.fastDomIf||!1,Nn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,h6u=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,xXe=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var hg={},lNu={},D6=function(){return HTMLElement.apply(this,arguments)||this};
_.E(D6,HTMLElement);D6.import=function(I,y){return I?(I=hg[I]||lNu[I.toLowerCase()])&&y?I.querySelector(y):I:null};
D6.prototype.attributeChangedCallback=function(I,y,D){y!==D&&this.register()};
D6.prototype.register=function(I){if(I=I||this.id){if(lg&&(hg[I]||lNu[I.toLowerCase()])!==void 0)throw hg[I]=lNu[I.toLowerCase()]=null,Error("Dd`"+I);this.id=I;hg[I]=lNu[I.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.mD.Object.defineProperties(D6.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var I=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;I=_.af(this.getAttribute("assetpath")||"",I.baseURI);this.__assetpath=tz5(I)}return this.__assetpath}}});
_.mD.Object.defineProperties(D6,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
D6["import"]=D6.import;D6.prototype.modules=hg;customElements.define("dom-module",D6);var uBM=0,KPq=0,cu=[],qMn=0,P05=!1,EeM=document.createTextNode(""),G4M,U1;(new window.MutationObserver(UvA)).observe(EeM,{characterData:!0});_.x0={after:function(I){return{run:function(y){return window.setTimeout(y,I)},
cancel:function(y){window.clearTimeout(y)}}},
run:function(I,y){return window.setTimeout(I,y)},
cancel:function(I){window.clearTimeout(I)}};
_.H4={run:function(I){return window.requestAnimationFrame(I)},
cancel:function(I){window.cancelAnimationFrame(I)}};
G4M={run:function(I){return window.requestIdleCallback?window.requestIdleCallback(I):window.setTimeout(I,16)},
cancel:function(I){window.cancelIdleCallback?window.cancelIdleCallback(I):window.clearTimeout(I)}};
U1={run:function(I){P05||(P05=!0,EeM.textContent=qMn++);cu.push(I);return uBM++},
cancel:function(I){var y=I-KPq;if(y>=0){if(!cu[y])throw Error("Ed`"+I);cu[y]=null}}};var XpW=0,lM=function(I){var y=I.__mixinApplications;y||(y=new WeakMap,I.__mixinApplications=y);var D=XpW++;return function(F){var R=F.__mixinSet;if(R&&R[D])return F;var O=y,w=O.get(F);w||(w=I(F),O.set(F,w),F=Object.create(w.__mixinSet||R||null),F[D]=!0,w.__mixinSet=F);return w}};_.sN=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(I){return ShadyDOM.patch(I)}:function(I){return I};var Q0M=lM(function(I){var y=function(){var D=I.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};
_.E(y,I);y.createProperties=function(D){var F=this.prototype,R;for(R in D)R in F||F._createPropertyAccessor(R)};
y.attributeNameForProperty=function(D){return D.toLowerCase()};
y.typeForProperty=function(){};
y.prototype._createPropertyAccessor=function(D,F){this._addPropertyToAttributeMap(D);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[D]||(this.__dataHasAccessor[D]=!0,this._definePropertyAccessor(D,F))};
y.prototype._addPropertyToAttributeMap=function(D){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var F=this.__dataAttributes[D];F||(F=this.constructor.attributeNameForProperty(D),this.__dataAttributes[F]=D);return F};
y.prototype._definePropertyAccessor=function(D,F){Object.defineProperty(this,D,{get:function(){return this.__data[D]},
set:F?function(){}:function(R){this._setPendingProperty(D,R,!0)&&this._invalidateProperties()}})};
y.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
y.prototype._initializeProperties=function(){for(var D in this.__dataHasAccessor)this.hasOwnProperty(D)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[D]=this[D],delete this[D])};
y.prototype._initializeInstanceProperties=function(D){Object.assign(this,D)};
y.prototype._setProperty=function(D,F){this._setPendingProperty(D,F)&&this._invalidateProperties()};
y.prototype._getProperty=function(D){return this.__data[D]};
y.prototype._setPendingProperty=function(D,F){var R=this.__data[D],O=this._shouldPropertyChange(D,F,R);O&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||D in this.__dataOld||(this.__dataOld[D]=R),this.__data[D]=F,this.__dataPending[D]=F);return O};
y.prototype._isPropertyPending=function(D){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(D))};
y.prototype._invalidateProperties=function(){var D=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,U1.run(function(){D.__dataInvalid&&(D.__dataInvalid=!1,D._flushProperties())}))};
y.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
y.prototype._flushProperties=function(){this.__dataCounter++;var D=this.__data,F=this.__dataPending,R=this.__dataOld;this._shouldPropertiesChange(D,F,R)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(D,F,R));this.__dataCounter--};
y.prototype._shouldPropertiesChange=function(D,F){return!!F};
y.prototype._propertiesChanged=function(){};
y.prototype._shouldPropertyChange=function(D,F,R){return R!==F&&(R===R||F===F)};
y.prototype.attributeChangedCallback=function(D,F,R,O){F!==R&&this._attributeToProperty(D,R);I.prototype.attributeChangedCallback&&I.prototype.attributeChangedCallback.call(this,D,F,R,O)};
y.prototype._attributeToProperty=function(D,F,R){if(!this.__serializing){var O=this.__dataAttributes;D=O&&O[D]||D;this[D]=this._deserializeValue(F,R||this.constructor.typeForProperty(D))}};
y.prototype._propertyToAttribute=function(D,F,R){this.__serializing=!0;R=arguments.length<3?this[D]:R;this._valueToNodeAttribute(this,R,F||this.constructor.attributeNameForProperty(D));this.__serializing=!1};
y.prototype._valueToNodeAttribute=function(D,F,R){F=this._serializeValue(F);if(R==="class"||R==="name"||R==="slot")D=(0,_.sN)(D);F===void 0?D.removeAttribute(R):D.setAttribute(R,F===""&&window.trustedTypes?window.trustedTypes.emptyScript:F)};
y.prototype._serializeValue=function(D){switch(typeof D){case "boolean":return D?"":void 0;default:return D!=null?D.toString():void 0}};
y.prototype._deserializeValue=function(D,F){switch(F){case Boolean:return D!==null;case Number:return Number(D);default:return D}};
return y});var YMu=0,rsq=[];var fNP=lM(function(I){function y(O){O=Object.getPrototypeOf(O);return O.prototype instanceof R?O:null}
function D(O){if(!O.hasOwnProperty("__ownProperties")){var w=null;if(O.hasOwnProperty("properties")){var v=O.properties;if(v){w={};for(var P in v){var K=v[P];w[P]=typeof K==="function"?{type:K}:K}}}O.__ownProperties=w}return O.__ownProperties}
var F=Q0M(I),R=function(){return F.apply(this,arguments)||this};
_.E(R,F);R.finalize=function(){if(!this.hasOwnProperty("__finalized")){var O=y(this);O&&O.finalize();this.__finalized=!0;this._finalizeClass()}};
R._finalizeClass=function(){var O=D(this);O&&this.createProperties(O)};
R.typeForProperty=function(O){return(O=this._properties[O])&&O.type};
R.prototype._initializeProperties=function(){YMu++;this.constructor.finalize();F.prototype._initializeProperties.call(this)};
R.prototype.connectedCallback=function(){F.prototype.connectedCallback&&F.prototype.connectedCallback.call(this);this._enableProperties()};
R.prototype.disconnectedCallback=function(){F.prototype.disconnectedCallback&&F.prototype.disconnectedCallback.call(this)};
_.mD.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var O=this;if(!this.hasOwnProperty("__observedAttributes")){jzH(this.prototype);var w=this._properties;this.__observedAttributes=w?Object.keys(w).map(function(v){return O.prototype._addPropertyToAttributeMap(v)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var O=y(this);this.__properties=Object.assign({},O&&O._properties,D(this))}return this.__properties}}});
return R});var o1B={},NT5=/-[a-z]/g,hpJ=/([A-Z])/g;for(var neM={},ppM=HTMLElement.prototype;ppM;){for(var mXa=Object.getOwnPropertyNames(ppM),MvM=0;MvM<mXa.length;MvM++)neM[mXa[MvM]]=!0;ppM=Object.getPrototypeOf(ppM)}var z6O=window.trustedTypes?function(I){return trustedTypes.isHTML(I)||trustedTypes.isScript(I)||trustedTypes.isScriptURL(I)}:function(){return!1},k4P=lM(function(I){var y=Q0M(I);
I=function(){return y.apply(this,arguments)||this};
_.E(I,y);I.createPropertiesForAttributes=function(){for(var D=this.observedAttributes,F=0;F<D.length;F++)this.prototype._createPropertyAccessor(Wu(D[F]))};
I.attributeNameForProperty=function(D){return CT(D)};
I.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);y.prototype._initializeProperties.call(this)};
I.prototype._initializeProtoProperties=function(D){for(var F in D)this._setProperty(F,D[F])};
I.prototype._ensureAttribute=function(D,F){this.hasAttribute(D)||this._valueToNodeAttribute(this,F,D)};
I.prototype._serializeValue=function(D){switch(typeof D){case "object":if(D instanceof Date)return D.toString();if(D){if(z6O(D))return D;try{return JSON.stringify(D)}catch(F){return""}}default:return y.prototype._serializeValue.call(this,D)}};
I.prototype._deserializeValue=function(D,F){switch(F){case Object:try{var R=JSON.parse(D)}catch(O){R=D}break;case Array:try{R=JSON.parse(D)}catch(O){R=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+D)}break;case Date:R=isNaN(D)?String(D):Number(D);R=new Date(R);break;default:R=y.prototype._deserializeValue.call(this,D,F)}return R};
I.prototype._definePropertyAccessor=function(D,F){if(!neM[D]){var R=this[D];R!==void 0&&(this.__data?this._setPendingProperty(D,R):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[D]=R))}y.prototype._definePropertyAccessor.call(this,D,F)};
I.prototype._hasAccessor=function(D){return this.__dataHasAccessor&&this.__dataHasAccessor[D]};
I.prototype._isPropertyPending=function(D){return!!(this.__dataPending&&D in this.__dataPending)};
return I});var dXn={"dom-if":!0,"dom-repeat":!0},aNG=!1,ctG=!1,WhG=function(){var I=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(y){return y}});
return function(y,D,F){D=D.getAttribute(F);I&&F.startsWith("on-")?y.setAttribute(F,I.createScript(D,F)):y.setAttribute(F,D)}}(),CIG=lM(function(I){var y=function(){return I.apply(this,arguments)||this};
_.E(y,I);y._parseTemplate=function(D,F){if(!D._templateInfo){var R=D._templateInfo={};R.nodeInfoList=[];R.nestedTemplate=!!F;R.stripWhiteSpace=F&&F.stripWhiteSpace||D.hasAttribute&&D.hasAttribute("strip-whitespace");this._parseTemplateContent(D,R,{parent:null})}return D._templateInfo};
y._parseTemplateContent=function(D,F,R){return this._parseTemplateNode(D.content,F,R)};
y._parseTemplateNode=function(D,F,R){var O=!1;D.localName!="template"||D.hasAttribute("preserve-content")?D.localName==="slot"&&(F.hasInsertionPoint=!0):O=this._parseTemplateNestedTemplate(D,F,R)||O;if(!aNG){aNG=!0;var w=document.createElement("textarea");w.placeholder="a";ctG=w.placeholder===w.textContent}ctG&&D.localName==="textarea"&&D.placeholder&&D.placeholder===D.textContent&&(D.textContent=null);D.firstChild&&this._parseTemplateChildNodes(D,F,R);D.hasAttributes&&D.hasAttributes()&&(O=this._parseTemplateNodeAttributes(D,
F,R)||O);return O||R.noted};
y._parseTemplateChildNodes=function(D,F,R){if(D.localName!=="script"&&D.localName!=="style")for(var O=D.firstChild,w=0,v;O;O=v){if(O.localName=="template"){var P=O.getAttribute("is");if(P&&dXn[P])for(v=O,v.removeAttribute("is"),O=v.ownerDocument.createElement(P),v.parentNode.replaceChild(O,v),O.appendChild(v);v.attributes.length;)P=v.attributes[0].name,WhG(O,v,P),v.removeAttribute(P)}v=O.nextSibling;if(O.nodeType===Node.TEXT_NODE){for(P=v;P&&P.nodeType===Node.TEXT_NODE;)O.textContent+=P.textContent,
v=P.nextSibling,D.removeChild(P),P=v;if(F.stripWhiteSpace&&!O.textContent.trim()){D.removeChild(O);continue}}P={parentIndex:w,parentInfo:R};this._parseTemplateNode(O,F,P)&&(P.infoIndex=F.nodeInfoList.push(P)-1);O.parentNode&&w++}};
y._parseTemplateNestedTemplate=function(D,F,R){F=this._parseTemplate(D,F);(F.content=D.content.ownerDocument.createDocumentFragment()).appendChild(D.content);R.templateInfo=F;return!0};
y._parseTemplateNodeAttributes=function(D,F,R){for(var O=!1,w=Array.from(D.attributes),v=w.length-1,P;P=w[v];v--)O=this._parseTemplateNodeAttribute(D,F,R,P.name,P.value)||O;return O};
y._parseTemplateNodeAttribute=function(D,F,R,O,w){return O.slice(0,3)==="on-"?(D.removeAttribute(O),R.events=R.events||[],R.events.push({name:O.slice(3),value:w}),!0):O==="id"?(R.id=w,!0):!1};
y._contentForTemplate=function(D){var F=D._templateInfo;return F&&F.content||D.content};
y.prototype._stampTemplate=function(D,F){D&&!D.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(D);F=F||this.constructor._parseTemplate(D);var R=F.nodeInfoList;D=document.importNode(F.content||D.content,!0);D.__noInsertionPoint=!F.hasInsertionPoint;var O=D.nodeList=Array(R.length);D.$={};for(var w=0,v=R.length,P=void 0;w<v&&(P=R[w]);w++){var K=O[w]=xvW(D,P);P.id&&(D.$[P.id]=K);var r=K,N=P,h=F;N.templateInfo&&(r._templateInfo=N.templateInfo,r._parentTemplateInfo=
h);if(P.events&&P.events.length)for(r=0,N=P.events,h=void 0;r<N.length&&(h=N[r]);r++)this._addMethodEventListenerToNode(K,h.name,h.value,this)}return D};
y.prototype._addMethodEventListenerToNode=function(D,F,R,O){R=l3A(O||D,R);this._addEventListenerToNode(D,F,R);return R};
y.prototype._addEventListenerToNode=function(D,F,R){D.addEventListener(F,R)};
y.prototype._removeEventListenerFromNode=function(D,F,R){D.removeEventListener(F,R)};
return y});var eb=0,gI=[],B4f={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ig_=/[A-Z]/,Atn=function(I,y,D,F,R){var O=R?iK(I):I;if(y=y[O])for(O=0;O<y.length;O++){var w=y[O];if(w.info.lastRun!==eb&&(!R||QzC(I,w.trigger))){w.info.lastRun=eb;w=w.info;for(var v=D,P=F,K=0,r=v.length-1,N=-1;K<=r;){var h=K+r>>1,x=P.get(v[h].methodInfo)-P.get(w.methodInfo);if(x<0)K=h+1;else if(x>0)r=h-1;else{N=h;break}}N<
0&&(N=r+1);v.splice(N,0,w)}}},ixq=[],$XR=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"),qn=lM(function(I){var y=CIG(k4P(I));
I=function(){var D=y.call(this)||this;D.__isPropertyEffectsClient=!0;return D};
_.E(I,y);I.prototype._initializeProperties=function(){y.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};
I.prototype._registerHost=function(){if(uM.length){var D=uM[uM.length-1];D._enqueueClient(this);this.__dataHost=D}};
I.prototype._initializeProtoProperties=function(D){this.__data=Object.create(D);this.__dataPending=Object.create(D);this.__dataOld={}};
I.prototype._initializeInstanceProperties=function(D){var F=this.__readOnly,R;for(R in D)F&&F[R]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[R]=this.__dataPending[R]=D[R])};
I.prototype._addPropertyEffect=function(D,F,R){this._createPropertyAccessor(D,F=="__readOnly");var O=XwW(this,F,!0)[D];O||(O=this[F][D]=[]);O.push(R)};
I.prototype._removePropertyEffect=function(D,F,R){D=XwW(this,F,!0)[D];R=D.indexOf(R);R>=0&&D.splice(R,1)};
I.prototype._hasPropertyEffect=function(D,F){F=this[F];return!(!F||!F[D])};
I.prototype._hasReadOnlyEffect=function(D){return this._hasPropertyEffect(D,"__readOnly")};
I.prototype._hasNotifyEffect=function(D){return this._hasPropertyEffect(D,"__notifyEffects")};
I.prototype._hasReflectEffect=function(D){return this._hasPropertyEffect(D,"__reflectEffects")};
I.prototype._hasComputedEffect=function(D){return this._hasPropertyEffect(D,"__computeEffects")};
I.prototype._setPendingPropertyOrPath=function(D,F,R,O){if(O||iK(Array.isArray(D)?D[0]:D)!==D){if(!O&&(O=Hu(this,D),D=GrC(this,D,F),!D||!y.prototype._shouldPropertyChange.call(this,D,F,O)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(D,F,R)){if(R=this.__dataLinkedPaths)for(var w in R)O=R[w],Aq(w,D)?(O=$n(w,O,D),this._setPendingPropertyOrPath(O,F,!0,!0)):Aq(O,D)&&(O=$n(O,w,D),this._setPendingPropertyOrPath(O,F,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[D])return this._setPendingProperty(D,
F,R);this[D]=F}return!1};
I.prototype._setUnmanagedPropertyToNode=function(D,F,R){if(R!==D[F]||typeof R=="object")F==="className"&&(D=(0,_.sN)(D)),D[F]=R};
I.prototype._setPendingProperty=function(D,F,R){var O=this.__dataHasPaths&&Bu(D);if(this._shouldPropertyChange(D,F,(O?this.__dataTemp:this.__data)[D])){this.__dataPending||(this.__dataPending={},this.__dataOld={});D in this.__dataOld||(this.__dataOld[D]=this.__data[D]);O?this.__dataTemp[D]=F:this.__data[D]=F;this.__dataPending[D]=F;if(O||this.__notifyEffects&&this.__notifyEffects[D])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[D]=R;return!0}return!1};
I.prototype._setProperty=function(D,F){this._setPendingProperty(D,F,!0)&&this._invalidateProperties()};
I.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
I.prototype._enqueueClient=function(D){this.__dataPendingClients=this.__dataPendingClients||[];D!==this&&this.__dataPendingClients.push(D)};
I.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
I.prototype.__enableOrFlushClients=function(){var D=this.__dataPendingClients;if(D){this.__dataPendingClients=null;for(var F=0;F<D.length;F++){var R=D[F];R.__dataEnabled?R.__dataPending&&R._flushProperties():R._enableProperties()}}};
I.prototype._readyClients=function(){this.__enableOrFlushClients()};
I.prototype.setProperties=function(D,F){for(var R in D)!F&&this.__readOnly&&this.__readOnly[R]||this._setPendingPropertyOrPath(R,D[R],!0);this._invalidateProperties()};
I.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
I.prototype._propertiesChanged=function(D,F,R){D=this.__dataHasPaths;this.__dataHasPaths=!1;var O;if(O=this.__computeEffects)if(N4W){eb++;var w=MzL(this),v=[],P;for(P in F)Atn(P,O,v,w,D);for(;P=v.shift();)krH(this,"",F,R,P)&&Atn(P.methodInfo,O,v,w,D);Object.assign(R,this.__dataOld);Object.assign(F,this.__dataPending);this.__dataPending=null}else for(w=F;TU(this,O,w,R,D);)Object.assign(R,this.__dataOld),Object.assign(F,this.__dataPending),w=this.__dataPending,this.__dataPending=null;O=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(F,R,D);this._flushClients();TU(this,this.__reflectEffects,F,R,D);TU(this,this.__observeEffects,F,R,D);if(O){w=this.__notifyEffects;v=eb++;for(var K in O)if(O[K]){if(P=w){var r=w;P=v;var N=K,h=F,x=R,q=D,X=!1,f=q?iK(N):N;if(r=r[f]){f=0;for(var m=r.length,z=void 0;f<m&&(z=r[f]);f++)z.info&&z.info.lastRun===P||q&&!QzC(N,z.trigger)||(z.info&&(z.info.lastRun=P),z.fn(this,N,h,x,z.info,q,void 0),X=!0)}P=X}if(P)var B=!0;else{if(P=D)P=K,N=F,h=iK(P),h!==
P?(h=CT(h)+"-changed",f3q(this,h,N[P],P),P=!0):P=!1;P&&(B=!0)}}var C;B&&(C=this.__dataHost)&&C._invalidateProperties&&C._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
I.prototype._propagatePropertyChanges=function(D,F,R){this.__propagateEffects&&TU(this,this.__propagateEffects,D,F,R);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,D,F,R)};
I.prototype._runEffectsForTemplate=function(D,F,R,O){var w=this,v=function(P,K){TU(w,D.propertyEffects,P,R,K,D.nodeList);for(var r=D.firstChild;r;r=r.nextSibling)w._runEffectsForTemplate(r,P,R,K)};
D.runEffects?D.runEffects(v,F,O):v(F,O)};
I.prototype.linkPaths=function(D,F){D=bK(D);F=bK(F);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[D]=F};
I.prototype.unlinkPaths=function(D){D=bK(D);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[D]};
I.prototype.notifySplices=function(D,F){var R={path:""};D=Hu(this,D,R);Hxq(this,D,R.path,F)};
I.prototype.get=function(D,F){return Hu(F||this,D)};
I.prototype.set=function(D,F,R){R?GrC(R,D,F):this.__readOnly&&this.__readOnly[D]||this._setPendingPropertyOrPath(D,F,!0)&&this._invalidateProperties()};
I.prototype.push=function(D){var F=_.go.apply(1,arguments),R={path:""},O=Hu(this,D,R),w=O.length,v=O.push.apply(O,_.Td(F));F.length&&yG(this,O,R.path,w,F.length,[]);return v};
I.prototype.pop=function(D){var F={path:""};D=Hu(this,D,F);var R=!!D.length,O=D.pop();R&&yG(this,D,F.path,D.length,0,[O]);return O};
I.prototype.splice=function(D,F,R){var O=_.go.apply(3,arguments),w={path:""},v=Hu(this,D,w);F<0?F=v.length-Math.floor(-F):F&&(F=Math.floor(F));var P=arguments.length===2?v.splice(F):v.splice.apply(v,[F,R].concat(_.Td(O)));(O.length||P.length)&&yG(this,v,w.path,F,O.length,P);return P};
I.prototype.shift=function(D){var F={path:""};D=Hu(this,D,F);var R=!!D.length,O=D.shift();R&&yG(this,D,F.path,0,0,[O]);return O};
I.prototype.unshift=function(D){var F=_.go.apply(1,arguments),R={path:""},O=Hu(this,D,R),w=O.unshift.apply(O,_.Td(F));F.length&&yG(this,O,R.path,0,F.length,[]);return w};
I.prototype.notifyPath=function(D,F){if(arguments.length==1){var R={path:""};F=Hu(this,D,R);R=R.path}else R=Array.isArray(D)?bK(D):D;this._setPendingPropertyOrPath(R,F,!0,!0)&&this._invalidateProperties()};
I.prototype._createReadOnlyProperty=function(D,F){this._addPropertyEffect(D,"__readOnly");F&&(this["_set"+(D[0].toUpperCase()+D.substring(1))]=function(R){this._setProperty(D,R)})};
I.prototype._createPropertyObserver=function(D,F,R){var O={property:D,method:F,dynamicFn:!!R};this._addPropertyEffect(D,"__observeEffects",{fn:YRq,info:O,trigger:{name:D}});R&&this._addPropertyEffect(F,"__observeEffects",{fn:YRq,info:O,trigger:{name:F}})};
I.prototype._createMethodObserver=function(D,F){var R=$vC(D);if(!R)throw Error("Fd`"+D);C0_(this,R,"__observeEffects",zpL,null,F)};
I.prototype._createNotifyingProperty=function(D){this._addPropertyEffect(D,"__notifyEffects",{fn:n1H,info:{eventName:CT(D)+"-changed",property:D}})};
I.prototype._createReflectedProperty=function(D){var F=this.constructor.attributeNameForProperty(D);F[0]==="-"?console.warn("Property "+D+" cannot be reflected to attribute "+F+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(D,"__reflectEffects",{fn:pwo,info:{attrName:F}})};
I.prototype._createComputedProperty=function(D,F,R){var O=$vC(F);if(!O)throw Error("Gd`"+F);F=C0_(this,O,"__computeEffects",krH,D,R);XwW(this,"__computeInfo")[D]=F};
I.prototype._marshalArgs=function(D,F,R){for(var O=this.__data,w=[],v=0,P=D.length;v<P;v++){var K=D[v],r=K.name,N=K.structured,h=K.wildcard,x=K.value;K.literal||(h?(K=Aq(r,F),N=bxJ(O,R,K?F:r),x={path:K?F:r,value:N,base:K?Hu(O,r):N}):x=N?bxJ(O,R,r):O[r]);if(I5&&!this._overrideLegacyUndefined&&x===void 0&&D.length>1)return gI;w[v]=x}return w};
I.addPropertyEffect=function(D,F,R){this.prototype._addPropertyEffect(D,F,R)};
I.createPropertyObserver=function(D,F,R){this.prototype._createPropertyObserver(D,F,R)};
I.createMethodObserver=function(D,F){this.prototype._createMethodObserver(D,F)};
I.createNotifyingProperty=function(D){this.prototype._createNotifyingProperty(D)};
I.createReadOnlyProperty=function(D,F){this.prototype._createReadOnlyProperty(D,F)};
I.createReflectedProperty=function(D){this.prototype._createReflectedProperty(D)};
I.createComputedProperty=function(D,F,R){this.prototype._createComputedProperty(D,F,R)};
I.bindTemplate=function(D){return this.prototype._bindTemplate(D)};
I.prototype._bindTemplate=function(D,F){var R=this.constructor._parseTemplate(D),O=this.__preBoundTemplateInfo==R;if(!O)for(var w in R.propertyEffects)this._createPropertyAccessor(w);F?(R=Object.create(R),R.wasPreBound=O,this.__templateInfo?(D=D._parentTemplateInfo||this.__templateInfo,F=D.lastChild,R.parent=D,D.lastChild=R,(R.previousSibling=F)?F.nextSibling=R:D.firstChild=R):this.__templateInfo=R):this.__preBoundTemplateInfo=R;return R};
I._addTemplatePropertyEffect=function(D,F,R){(D.hostProps=D.hostProps||{})[F]=!0;D=D.propertyEffects=D.propertyEffects||{};(D[F]=D[F]||[]).push(R)};
I.prototype._stampTemplate=function(D,F){F=F||this._bindTemplate(D,!0);uM.push(this);D=y.prototype._stampTemplate.call(this,D,F);uM.pop();F.nodeList=D.nodeList;if(!F.wasPreBound)for(var R=F.childNodes=[],O=D.firstChild;O;O=O.nextSibling)R.push(O);D.templateInfo=F;R=F.nodeList;O=F.nodeInfoList;if(O.length)for(var w=0;w<O.length;w++){var v=R[w],P=O[w].bindings;if(P)for(var K=0;K<P.length;K++){var r=P[K],N=v,h=r;if(h.isCompound){for(var x=N.__dataCompoundStorage||(N.__dataCompoundStorage={}),q=h.parts,
X=Array(q.length),f=0;f<q.length;f++)X[f]=q[f].literal;q=h.target;x[q]=X;h.literal&&h.kind=="property"&&(q==="className"&&(N=(0,_.sN)(N)),N[q]=h.literal)}WPo(v,this,r)}v.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(F,this.__data,null,!1),this._flushClients());return D};
I.prototype._removeBoundDom=function(D){D=D.templateInfo;var F=D.previousSibling,R=D.nextSibling,O=D.parent;F?F.nextSibling=R:O&&(O.firstChild=R);R?R.previousSibling=F:O&&(O.lastChild=F);D.nextSibling=D.previousSibling=null;D=D.childNodes;for(F=0;F<D.length;F++)R=D[F],(0,_.sN)((0,_.sN)(R).parentNode).removeChild(R)};
I._parseTemplateNode=function(D,F,R){var O=y._parseTemplateNode.call(this,D,F,R);if(D.nodeType===Node.TEXT_NODE){var w=this._parseBindings(D.textContent,F);w&&(D.textContent=BT5(w)||" ",csq(this,F,R,"text","textContent",w),O=!0)}return O};
I._parseTemplateNodeAttribute=function(D,F,R,O,w){var v=this._parseBindings(w,F);if(v){w=O;var P="property";ig_.test(O)?P="attribute":O[O.length-1]=="$"&&(O=O.slice(0,-1),P="attribute");var K=BT5(v);K&&P=="attribute"&&(O=="class"&&D.hasAttribute("class")&&(K+=" "+D.getAttribute(O)),D.setAttribute(O,K));P=="attribute"&&w=="disable-upgrade$"&&D.setAttribute(O,"");D.localName==="input"&&w==="value"&&D.setAttribute(w,"");D.removeAttribute(w);P==="property"&&(O=Wu(O));csq(this,F,R,P,O,v,K);return!0}return y._parseTemplateNodeAttribute.call(this,
D,F,R,O,w)};
I._parseTemplateNestedTemplate=function(D,F,R){var O=y._parseTemplateNestedTemplate.call(this,D,F,R),w=D.parentNode,v=R.templateInfo,P=w.localName==="dom-if",K=w.localName==="dom-repeat";jl&&(P||K)&&(w.removeChild(D),R=R.parentInfo,R.templateInfo=v,R.noted=!0,O=!1);D=v.hostProps;if(oZ&&P)D&&(F.hostProps=Object.assign(F.hostProps||{},D),jl||(R.parentInfo.noted=!0));else for(var r in D)csq(this,F,R,"property","_host_"+r,[{mode:"{",source:r,dependencies:[r],hostProp:!0}]);return O};
I._parseBindings=function(D,F){for(var R=[],O=0,w;(w=$XR.exec(D))!==null;){w.index>O&&R.push({literal:D.slice(O,w.index)});O=w[1][0];var v=!!w[2];w=w[3].trim();var P=!1,K="",r=-1;O=="{"&&(r=w.indexOf("::"))>0&&(K=w.substring(r+2),w=w.substring(0,r),P=!0);r=$vC(w);var N=[];if(r){var h=r,x=h.args;h=h.methodName;for(var q=0;q<x.length;q++){var X=x[q];X.literal||N.push(X)}if((x=F.dynamicFns)&&x[h]||r.static)N.push(h),r.dynamicFn=!0}else N.push(w);R.push({source:w,mode:O,negate:v,customEvent:P,signature:r,
dependencies:N,event:K});O=$XR.lastIndex}O&&O<D.length&&(D=D.substring(O))&&R.push({literal:D});return R.length?R:null};
I._evaluateBinding=function(D,F,R,O,w,v){D=F.signature?zpL(D,R,O,w,F.signature):R!=F.source?Hu(D,F.source):v&&Bu(R)?Hu(D,R):D.__data[R];F.negate&&(D=!D);return D};
_.mD.Object.defineProperties(I.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return B4f}}});
return I}),uM=[];var bgz=window.ShadyCSS&&window.ShadyCSS.cssBuild,E4=lM(function(I){function y(F,R,O,w){if(!bgz){for(var v=R.content.querySelectorAll("style"),P=VzJ(R),K=ZxB(O),r=R.content.firstElementChild,N=0;N<K.length;N++){var h=K[N];h.textContent=F._processStyleText(h.textContent,w);R.content.insertBefore(h,r)}for(r=K=0;r<P.length;r++)N=P[r],h=v[K],h!==N?(N=N.cloneNode(!0),h.parentNode.insertBefore(N,h)):K++,N.textContent=F._processStyleText(N.textContent,w)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(R,
O);if(xXe&&bgz&&UXG&&(R=R.content.querySelectorAll("style"))){var x="";Array.from(R).forEach(function(q){x+=q.textContent;q.parentNode.removeChild(q)});
F._styleSheet=new CSSStyleSheet;F._styleSheet.replaceSync(x)}}
var D=fNP(qn(I));I=function(){return D.call(this)||this};
_.E(I,D);I._finalizeClass=function(){D._finalizeClass.call(this);var F;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(F=this.__ownObservers)&&this.createObservers(F,this._properties);this._prepareTemplate()};
I._prepareTemplate=function(){var F=this.template;F&&(typeof F==="string"?(console.error("template getter must return HTMLTemplateElement"),F=null):ju||(F=F.cloneNode(!0)));this.prototype._template=F};
I.createProperties=function(F){for(var R in F){var O=this.prototype,w=R,v=F[R],P=F;v.computed&&(v.readOnly=!0);v.computed&&(O._hasReadOnlyEffect(w)?console.warn("Cannot redefine computed property '"+w+"'."):O._createComputedProperty(w,v.computed,P));v.readOnly&&!O._hasReadOnlyEffect(w)?O._createReadOnlyProperty(w,!v.computed):v.readOnly===!1&&O._hasReadOnlyEffect(w)&&console.warn("Cannot make readOnly property '"+w+"' non-readOnly.");v.reflectToAttribute&&!O._hasReflectEffect(w)?O._createReflectedProperty(w):
v.reflectToAttribute===!1&&O._hasReflectEffect(w)&&console.warn("Cannot make reflected property '"+w+"' non-reflected.");v.notify&&!O._hasNotifyEffect(w)?O._createNotifyingProperty(w):v.notify===!1&&O._hasNotifyEffect(w)&&console.warn("Cannot make notify property '"+w+"' non-notify.");v.observer&&O._createPropertyObserver(w,v.observer,P[v.observer]);O._addPropertyToAttributeMap(w)}};
I.createObservers=function(F,R){for(var O=this.prototype,w=0;w<F.length;w++)O._createMethodObserver(F[w],R)};
I.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);D.prototype._initializeProperties.call(this);this.rootPath=rtf;this.importPath=this.constructor.importPath;var F=this.constructor;if(!F.hasOwnProperty("__propertyDefaults")){F.__propertyDefaults=null;var R=F._properties,O;for(O in R){var w=R[O];"value"in w&&(F.__propertyDefaults=F.__propertyDefaults||{},F.__propertyDefaults[O]=w)}}if(F=F.__propertyDefaults)for(var v in F)R=F[v],
this._canApplyPropertyDefault(v)&&(R=typeof R.value=="function"?R.value.call(this):R.value,this._hasAccessor(v)?this._setPendingProperty(v,R,!0):this[v]=R)};
I.prototype._canApplyPropertyDefault=function(F){return!this.hasOwnProperty(F)};
I._processStyleText=function(F,R){return SR5(F,R)};
I._finalizeTemplate=function(F){var R=this.prototype._template;if(R&&!R.__polymerFinalized){R.__polymerFinalized=!0;var O=this.importPath;O=O?_.af(O):"";y(this,R,F,O);this.prototype._bindTemplate(R)}};
I.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);D.prototype.connectedCallback.call(this)};
I.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);D.prototype.ready.call(this)};
I.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));D.prototype._readyClients.call(this)};
I.prototype._attachDom=function(F){var R=(0,_.sN)(this);if(R.attachShadow)return F?(R.shadowRoot||(R.attachShadow({mode:"open",shadyUpgradeFragment:F}),R.shadowRoot.appendChild(F),this.constructor._styleSheet&&(R.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oe_&&window.ShadyDOM&&window.ShadyDOM.flushInitial(R.shadowRoot),R.shadowRoot):null;throw Error("Id");};
I.prototype.updateStyles=function(F){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,F)};
I.prototype.resolveUrl=function(F,R){!R&&this.importPath&&(R=_.af(this.importPath));return _.af(F,R)};
I._parseTemplateContent=function(F,R,O){R.dynamicFns=R.dynamicFns||this._properties;return D._parseTemplateContent.call(this,F,R,O)};
I._addTemplatePropertyEffect=function(F,R,O){!xC||R in this._properties||O.info.part.signature&&O.info.part.signature.static||O.info.part.hostProp||F.nestedTemplate||console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");return D._addTemplatePropertyEffect.call(this,F,R,O)};
_.mD.Object.defineProperties(I,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var F=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof F==="function"&&(F=F());if(F===void 0){if(F=this.hasOwnProperty("is")){F=this.is;var R=null;if(F&&(!lg||j0u)&&(R=D6.import(F,"template"),lg&&!R))throw Error("Hd`"+F);F=R}F=F||Object.getPrototypeOf(this.prototype).constructor.template}this._template=F}return this._template},
set:function(F){this._template=F}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var F=this.importMeta;F?this._importPath=tz5(F.url):this._importPath=(F=D6.import(this.is))&&F.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return I});var HgG=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(I){return I}}),OzL=function(I,y){e6z(I,y);
this.value=y.reduce(function(D,F,R){return D+LrC(F)+I[R+1]},I[0]).toString()},e6z;
OzL.prototype.toString=function(){return this.value};
_.T4P=function(I){var y=_.go.apply(1,arguments);e6z(I,y);var D=document.createElement("template");y=y.reduce(function(F,R,O){if(R instanceof HTMLTemplateElement)R=R.innerHTML;else if(R instanceof OzL)R=LrC(R);else throw Error("Kd`"+R);return F+R+I[O+1]},I[0]);
HgG&&(y=HgG.createHTML(y));D.innerHTML=y;return D};
e6z=function(I,y){if(!Array.isArray(I)||!Array.isArray(I.raw)||y.length!==I.length-1)throw new TypeError("Ld");};var G0=E4(HTMLElement);var s0c=lM(function(I){var y=E4(I);I=function(){var D=y.call(this)||this;D.__lastItems=null;D.__lastMulti=null;D.__selectedMap=null;return D};
_.E(I,y);I.prototype.__updateSelection=function(D,F){var R=F.path;R=="items"?(F=F.base||[],R=this.__lastItems,D!==this.__lastMulti&&this.clearSelection(),R&&(R=RMe(F,R),this.__applySplices(R)),this.__lastItems=F,this.__lastMulti=D):F.path=="items.splices"?this.__applySplices(F.value.indexSplices):(D=R.slice(6),F=parseInt(D,10),D.indexOf(".")<0&&D==F&&this.__deselectChangedIdx(F))};
I.prototype.__applySplices=function(D){for(var F=this,R=this.__selectedMap,O={},w=0;w<D.length;O={s$jscomp$109:void 0},w++){O.s$jscomp$109=D[w];R.forEach(function(r){return function(N,h){N<r.s$jscomp$109.index||(N>=r.s$jscomp$109.index+r.s$jscomp$109.removed.length?R.set(h,N+r.s$jscomp$109.addedCount-r.s$jscomp$109.removed.length):R.set(h,-1))}}(O));
for(var v=0;v<O.s$jscomp$109.addedCount;v++){var P=O.s$jscomp$109.index+v;R.has(this.items[P])&&R.set(this.items[P],P)}}this.__updateLinks();var K=0;R.forEach(function(r,N){r<0?(F.multi?F.splice("selected",K,1):F.selected=F.selectedItem=null,R.delete(N)):K++})};
I.prototype.__updateLinks=function(){var D=this;this.__dataLinkedPaths={};if(this.multi){var F=0;this.__selectedMap.forEach(function(R){R>=0&&D.linkPaths("items."+R,"selected."+F++)})}else this.__selectedMap.forEach(function(R){D.linkPaths("selected","items."+R);
D.linkPaths("selectedItem","items."+R)})};
I.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
I.prototype.isSelected=function(D){return this.__selectedMap.has(D)};
I.prototype.isIndexSelected=function(D){return this.isSelected(this.items[D])};
I.prototype.__deselectChangedIdx=function(D){var F=this,R=this.__selectedIndexForItemIndex(D);if(R>=0){var O=0;this.__selectedMap.forEach(function(w,v){R==O++&&F.deselect(v)})}};
I.prototype.__selectedIndexForItemIndex=function(D){if(D=this.__dataLinkedPaths["items."+D])return parseInt(D.slice(9),10)};
I.prototype.deselect=function(D){var F=this.__selectedMap.get(D);if(F>=0){this.__selectedMap.delete(D);var R;this.multi&&(R=this.__selectedIndexForItemIndex(F));this.__updateLinks();this.multi?this.splice("selected",R,1):this.selected=this.selectedItem=null}};
I.prototype.deselectIndex=function(D){this.deselect(this.items[D])};
I.prototype.select=function(D){this.selectIndex(this.items.indexOf(D))};
I.prototype.selectIndex=function(D){var F=this.items[D];this.isSelected(F)?this.toggle&&this.deselectIndex(D):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(F,D),this.__updateLinks(),this.multi?this.push("selected",F):this.selected=this.selectedItem=F)};
_.mD.Object.defineProperties(I,{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 I}),Vv_=s0c(G0),Xo=function(){return Vv_.apply(this,arguments)||this};
_.E(Xo,Vv_);_.mD.Object.defineProperties(Xo,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Xo.is,Xo);var Zgn=window.Polymer;window.Polymer=function(I){return window.Polymer._polymerFn(I)};
Zgn&&Object.assign(Polymer,Zgn);Polymer._polymerFn=function(){throw Error("Md");};/*

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:SR5,resolveUrl:_.af,pathFromUrl:tz5};Polymer.DomModule=D6;Polymer.Async={timeOut:_.x0,animationFrame:_.H4,idlePeriod:G4M,microTask:U1};Polymer.dedupingMixin=lM;Polymer.wrap=_.sN;Polymer.PropertiesChanged=Q0M;Polymer.telemetry={instanceCount:YMu,incrementInstanceCount:function(){YMu++},
registrations:rsq,register:jzH,dumpRegistrations:function(){rsq.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=fNP;Polymer.CaseMap={dashToCamelCase:Wu,camelToDashCase:CT};Polymer.PropertyAccessors=k4P;Polymer.TemplateStamp=CIG;Polymer.Path={isPath:Bu,root:iK,isAncestor:u9W,isDescendant:Aq,translate:$n,matches:qRq,normalize:bK,split:E1B,get:Hu,set:GrC,isDeep:Bu};Polymer.Settings={useShadow:o5,useNativeCSSProperties:vez,useNativeCustomElements:SMM,get rootPath(){return rtf},setRootPath:function(I){rtf=I},
get sanitizeDOMValue(){return ZM},setSanitizeDOMValue:function(I){ZM=I},
get passiveTouchGestures(){return hMS},setPassiveTouchGestures:function(I){hMS=I},
get strictTemplatePolicy(){return lg},setStrictTemplatePolicy:function(I){lg=I},
get allowTemplateFromDomModule(){return j0u},setAllowTemplateFromDomModule:function(I){j0u=I},
get legacyOptimizations(){return ju},setLegacyOptimizations:function(I){ju=I},
get syncInitialRender(){return oe_},setSyncInitialRender:function(I){oe_=I},
get legacyUndefined(){return I5},setLegacyUndefined:function(I){I5=I},
get legacyWarnings(){return xC},setLegacyWarnings:function(I){xC=I},
get orderedComputed(){return N4W},setOrderedComputed:function(I){N4W=I},
get fastDomIf(){return oZ},setFastDomIf:function(I){oZ=I},
get removeNestedTemplates(){return jl},setRemoveNestedTemplates:function(I){jl=I},
get suppressTemplateNotifications(){return Nn},setSuppressTemplateNotifications:Nn};Polymer.rootPath!==void 0&&(rtf=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ZM=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(hMS=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(lg=Polymer.strictTemplatePolicy);j0u=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(ju=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(oe_=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(I5=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(xC=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(N4W=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(oZ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(jl=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Nn=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ZM},
set:function(I){ZM=I}});Polymer.PropertyEffects=qn;Polymer.StyleGather={stylesFromModules:szJ,stylesFromModule:TTq,stylesFromTemplate:VzJ,stylesFromModuleImports:ZxB,cssFromModules:I$q,cssFromModule:g1C,cssFromTemplate:yTA,cssFromModuleImports:function(I){return(I=D6.import(I))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I):""}};Polymer.ElementMixin=E4;Polymer.updateStyles=function(I){window.ShadyCSS&&window.ShadyCSS.styleDocument(I)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:RMe};Polymer.html=_.T4P;Polymer.htmlLiteral=function(I){return new OzL(I,_.go.apply(1,arguments))};Polymer.Element=G0;Polymer.ArraySelectorMixin=s0c;Polymer.ArraySelector=Xo;var geW=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,IdP=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,WVq=/@media\s(.*)/;var SIH=null,vmL=window.HTMLImports&&window.HTMLImports.whenReady||null,t0J;var yCW=null,QS=null,Y0=function(){this.customStyles=[];this.enqueued=!1;Pyo(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},D4M=function(I){!I.enqueued&&QS&&(I.enqueued=!0,Pyo(QS))};
Y0.prototype.addCustomStyle=function(I){I.__seenByShadyCSS||(I.__seenByShadyCSS=!0,this.customStyles.push(I),D4M(this))};
Y0.prototype.getStyleForCustomStyle=function(I){if(I.__shadyCSSCachedStyle)return I.__shadyCSSCachedStyle;var y;I.getStyle?y=I.getStyle():y=I;return y};
Y0.prototype.processStyles=function(){for(var I=this.customStyles,y=0;y<I.length;y++){var D=I[y];if(!D.__shadyCSSCachedStyle){var F=this.getStyleForCustomStyle(D);F&&(F=F.__appliedElement||F,yCW&&yCW(F),D.__shadyCSSCachedStyle=F)}}return I};
Y0.prototype.addCustomStyle=Y0.prototype.addCustomStyle;Y0.prototype.getStyleForCustomStyle=Y0.prototype.getStyleForCustomStyle;Y0.prototype.processStyles=Y0.prototype.processStyles;Object.defineProperties(Y0.prototype,{transformCallback:{get:function(){return yCW},
set:function(I){yCW=I}},
validateCallback:{get:function(){return QS},
set:function(I){var y=!1;QS||(y=!0);QS=I;y&&D4M(this)}}});var U0H=!(window.ShadyDOM&&window.ShadyDOM.inUse),Kre,pZ;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(pZ=window.ShadyCSS.cssBuild);var FZR=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Kre=window.ShadyCSS.nativeCss:window.ShadyCSS?(rTB(window.ShadyCSS),window.ShadyCSS=void 0):rTB(window.WebComponents&&window.WebComponents.flags);var dVJ=Kre;var R0z=new Y0;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(I,y){R0z.processStyles();JT_(I,y)},
styleElement:function(){R0z.processStyles()},
styleDocument:function(I){R0z.processStyles();JT_(document.body,I)},
getComputedStyleValue:function(I,y){return wnA(I,y)},
flushCustomStyles:function(){},
nativeCss:dVJ,nativeShadow:U0H,cssBuild:pZ,disableRuntime:FZR});window.ShadyCSS.CustomStyleInterface=R0z;var OQe=window.ShadyCSS.CustomStyleInterface,f3=function(){var I=HTMLElement.call(this)||this;I._style=null;OQe.addCustomStyle(I);return I};
_.E(f3,HTMLElement);f3.prototype.getStyle=function(){if(this._style)return this._style;var I=this.querySelector("style");if(!I)return null;this._style=I;var y=I.getAttribute("include");y&&(I.removeAttribute("include"),I.textContent=I$q(y)+I.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
f3.prototype.getStyle=f3.prototype.getStyle;window.customElements.define("custom-style",f3);Polymer.CustomStyle=f3;var n3=function(){this._timer=this._callback=this._asyncModule=null},p3,JCW;
n3.prototype.setConfig=function(I,y){var D=this;this._asyncModule=I;this._callback=y;this._timer=this._asyncModule.run(function(){D._timer=null;p3.delete(D);D._callback()})};
n3.prototype.cancel=function(){this.isActive()&&(LZa(this),p3.delete(this))};
var LZa=function(I){I.isActive()&&(I._asyncModule.cancel(I._timer),I._timer=null)};
n3.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
n3.prototype.isActive=function(){return this._timer!=null};
_.mz=function(I,y,D){I instanceof n3?LZa(I):I=new n3;I.setConfig(y,D);return I};
p3=new Set;_.Mn=function(I){p3.add(I)};
JCW=function(){var I=!!p3.size;p3.forEach(function(y){try{y.flush()}catch(D){setTimeout(function(){throw D;})}});
return I};var om4=typeof document.head.style.touchAction==="string",jLB=["mousedown","mousemove","mouseup","click"],Xno=[0,1,4,2],w4c;try{w4c=(new MouseEvent("test",{buttons:1})).buttons===1}catch(I){w4c=!1}var Gpe=w4c,Nuo=!1;(function(){try{var I=Object.defineProperty({},"passive",{get:function(){Nuo=!0}});
window.addEventListener("test",null,I);window.removeEventListener("test",null,I)}catch(y){}})();
var l$W=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),uq5=[],vEW={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},cTA={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},qIq=function(I){var y=I.sourceCapabilities;if(!y||y.firesTouchEvents)if(I.__polymerGesturesHandled={skip:!0},I.type==="click"){y=!1;for(var D=nmt(I),F=0;F<D.length;F++){if(D[F].nodeType===Node.ELEMENT_NODE)if(D[F].localName==="label")uq5.push(D[F]);
else if(vEW[D[F].localName]){var R=D[F];var O=Array.prototype.slice.call(R.labels||[]);if(!O.length){O=[];try{var w=R.getRootNode();if(R.id){var v=w.querySelectorAll("label[for = '"+R.id+"']");for(R=0;R<v.length;R++)O.push(v[R])}}catch(P){}}for(R=0;R<O.length;R++)y=y||uq5.indexOf(O[R])>-1}if(D[F]===SvG)return}y||(I.preventDefault(),I.stopPropagation())}},SvG=null,z0=null,m04=0,M0C=0,pn_=-1,zMA=!1;
document.addEventListener("touchend",function(I){z0||Em_(!0);SvG=nmt(I)[0];z0=_.mz(z0,_.x0.after(2500),function(){Em_();z0=SvG=null})},Nuo?{passive:!0}:!1);
var nmt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(I){return I.composedPath&&I.composedPath()||[]},Su={},wN=[];
kpS({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Jp(this.info)},
mousedown:function(I){if(R5(I)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),D=this;YIC(this.info,function(F){R5(F)||(rN("up",y,F),Jp(D.info))},function(F){R5(F)&&rN("up",y,F);
Jp(D.info)});
rN("down",y,I)}},
touchstart:function(I){rN("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),I.changedTouches[0],I)},
touchend:function(I){rN("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),I.changedTouches[0],I)}});
kpS({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(I){this.moves.length>2&&this.moves.shift();this.moves.push(I)},
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;Jp(this.info)},
mousedown:function(I){if(R5(I)){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),D=this,F=function(R){var O=R.clientX,w=R.clientY;d0e(D.info,O,w)&&(D.info.state=D.info.started?R.type==="mouseup"?"end":"track":"start",D.info.state==="start"&&vr("tap"),D.info.addMove({x:O,y:w}),R5(R)||(D.info.state="end",Jp(D.info)),y&&a$S(D.info,y,R),D.info.started=!0)};
YIC(this.info,F,function(R){D.info.started&&F(R);Jp(D.info)});
this.info.x=I.clientX;this.info.y=I.clientY}},
touchstart:function(I){I=I.changedTouches[0];this.info.x=I.clientX;this.info.y=I.clientY},
touchmove:function(I){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I=I.changedTouches[0];var D=I.clientX,F=I.clientY;d0e(this.info,D,F)&&(this.info.state==="start"&&vr("tap"),this.info.addMove({x:D,y:F}),a$S(this.info,y,I),this.info.state="track",this.info.started=!0)},
touchend:function(I){var y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I=I.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:I.clientX,y:I.clientY}),a$S(this.info,y,I))}});
kpS({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(I){R5(I)&&(this.info.x=I.clientX,this.info.y=I.clientY)},
click:function(I){R5(I)&&Wrt(this.info,I)},
touchstart:function(I){I=I.changedTouches[0];this.info.x=I.clientX;this.info.y=I.clientY},
touchend:function(I){Wrt(this.info,I.changedTouches[0],I)}});var tEu=lM(function(I){var y=function(){return I.apply(this,arguments)||this};
_.E(y,I);y.prototype._addEventListenerToNode=function(D,F,R){tp(D,F,R)||I.prototype._addEventListenerToNode.call(this,D,F,R)};
y.prototype._removeEventListenerFromNode=function(D,F,R){Pr(D,F,R)||I.prototype._removeEventListenerFromNode.call(this,D,F,R)};
return y});var k0=lM(function(I){var y=function(){return I.apply(this,arguments)||this};
_.E(y,I);y.prototype._shouldPropertyChange=function(D,F,R){return CyH(this,D,F,R,!0)};
return y}),PVO=lM(function(I){var y=function(){return I.apply(this,arguments)||this};
_.E(y,I);y.prototype._shouldPropertyChange=function(D,F,R){return CyH(this,D,F,R,this.mutableData)};
_.mD.Object.defineProperties(y,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return y});
k0._mutablePropertyChange=CyH;var BuB=!1;var KZO=tEu(PVO(qn(HTMLElement))),dh=function(){var I=KZO.call(this)||this;if(lg)throw Error("Nd");I.root=null;I.$=null;I.__children=null;return I};
_.E(dh,KZO);_.L=dh.prototype;_.L.attributeChangedCallback=function(){this.mutableData=!0};
_.L.connectedCallback=function(){izJ()||(this.style.display="none");this.render()};
_.L.disconnectedCallback=function(){this.__removeChildren()};
_.L.__insertChildren=function(){(0,_.sN)((0,_.sN)(this).parentNode).insertBefore(this.root,this)};
_.L.__removeChildren=function(){if(this.__children)for(var I=0;I<this.__children.length;I++)this.root.appendChild(this.__children[I])};
_.L.render=function(){var I=this;if(!this.__children){var y=y||this.querySelector("template");if(!y){var D=new MutationObserver(function(){if(y=I.querySelector("template"))D.disconnect(),I.render();else throw Error("Od");});
D.observe(this,{childList:!0});return}this.root=this._stampTemplate(y);this.$=this.root.$;this.__children=[];for(var F=this.root.firstChild;F;F=F.nextSibling)this.__children[this.__children.length]=F;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.mD.Object.defineProperties(dh,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",dh);Polymer.Debouncer=n3;Polymer.Gestures={gestures:Su,recognizers:wN,deepTargetFind:f$q,addListener:tp,removeListener:Pr,register:kpS,setTouchAction:_.KZ,prevent:vr,resetMouseCanceller:function(){z0&&z0.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:tp,remove:Pr};Polymer.GestureEventListeners=tEu;Polymer.MutableData=k0;Polymer.OptionalMutableData=PVO;Polymer.DomBind=dh;_.aZ=function(){do{var I=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var y=JCW()}while(I||y)};var ATH=null;$0e.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:$0e,writable:!0}});var gmA=qn($0e),ZzS=k0(gmA),U4u=qn(function(){}),NQ=function(I){var y=U4u.call(this)||this;
y._configureProperties(I);y.root=y._stampTemplate(y.__dataHost);var D=[];y.children=D;for(var F=y.root.firstChild;F;F=F.nextSibling)D.push(F),F.__templatizeInstance=y;y.__templatizeOwner&&y.__templatizeOwner.__hideTemplateChildren__&&y._showHideChildren(!0);D=y.__templatizeOptions;(I&&D.instanceProps||!D.instanceProps)&&y._enableProperties();return y};
_.E(NQ,U4u);_.L=NQ.prototype;_.L._configureProperties=function(I){if(this.__templatizeOptions.forwardHostProp)for(var y in this.__hostProps)this._setPendingProperty(y,this.__dataHost["_host_"+y]);for(var D in I)this._setPendingProperty(D,I[D])};
_.L.forwardHostProp=function(I,y){this._setPendingPropertyOrPath(I,y,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.L._addEventListenerToNode=function(I,y,D){var F=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(I,y,function(O){O.model=F;D(O)});
else{var R=this.__dataHost.__dataHost;R&&R._addEventListenerToNode(I,y,D)}};
_.L._showHideChildren=function(I){HzL(I,this.children)};
_.L._setUnmanagedPropertyToNode=function(I,y,D){I.__hideTemplateChildren__&&I.nodeType==Node.TEXT_NODE&&y=="textContent"?I.__polymerTextContent__=D:U4u.prototype._setUnmanagedPropertyToNode.call(this,I,y,D)};
_.L.dispatchEvent=function(){return!0};
_.mD.Object.defineProperties(NQ.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var I=this.__parentModel;if(!I){var y;I=this;do I=I.__dataHost.__dataHost;while((y=I.__templatizeOptions)&&!y.parentModel);this.__parentModel=I}return I}}});
var TuC=k0(NQ);var ct=function(){var I=G0.call(this)||this;I.__renderDebouncer=null;I._lastIf=!1;I.__hideTemplateChildren__=!1;return I};
_.E(ct,G0);_.L=ct.prototype;_.L.__debounceRender=function(){var I=this;this.__renderDebouncer=_.mz(this.__renderDebouncer,U1,function(){return I.__render()});
_.Mn(this.__renderDebouncer)};
_.L.disconnectedCallback=function(){G0.prototype.disconnectedCallback.call(this);var I=(0,_.sN)(this).parentNode;I&&(I.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.sN)(I).host)||this.__teardownInstance()};
_.L.connectedCallback=function(){G0.prototype.connectedCallback.call(this);izJ()||(this.style.display="none");this.if&&this.__debounceRender()};
_.L.__ensureTemplate=function(){var I=this;if(!this.__template){var y=this._templateInfo?this:(0,_.sN)(this).querySelector("template");if(!y){var D=new MutationObserver(function(){if((0,_.sN)(I).querySelector("template"))D.disconnect(),I.__render();else throw Error("Rd");});
D.observe(this,{childList:!0});return!1}this.__template=y}return!0};
_.L.__ensureInstance=function(){var I=(0,_.sN)(this).parentNode;if(this.__hasInstance()){var y=this.__getInstanceNodes();if(y&&y.length&&(0,_.sN)(this).previousSibling!==y[y.length-1])for(var D=0,F=void 0;D<y.length&&(F=y[D]);D++)(0,_.sN)(I).insertBefore(F,this)}else{if(!I||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(I)}return!0};
_.L.render=function(){_.aZ()};
_.L.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Nn&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.L.__hasInstance=function(){};
_.L.__getInstanceNodes=function(){};
_.L.__createAndInsertInstance=function(){};
_.L.__teardownInstance=function(){};
_.L._showHideChildren=function(){};
_.mD.Object.defineProperties(ct,{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:ct.prototype.__debounceRender},restamp:{type:Boolean,observer:ct.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var rCM=function(){var I=ct.call(this)||this;I.__instance=null;I.__syncInfo=null;return I};
_.E(rCM,ct);_.L=rCM.prototype;_.L.__hasInstance=function(){return!!this.__instance};
_.L.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.L.__createAndInsertInstance=function(I){var y=this,D=this.__dataHost||this;if(lg&&!this.__dataHost)throw Error("Pd");var F=D._bindTemplate(this.__template,!0);F.runEffects=function(R,O,w){var v=y.__syncInfo;if(y.if)v&&(y.__syncInfo=null,y._showHideChildren(),O=Object.assign(v.changedProps,O)),R(O,w);else if(y.__instance)if(v||(v=y.__syncInfo={runEffects:R,changedProps:{}}),w)for(var P in O)R=iK(P),v.changedProps[R]=y.__dataHost[R];else Object.assign(v.changedProps,O)};
this.__instance=D._stampTemplate(this.__template,F);(0,_.sN)(I).insertBefore(this.__instance,this)};
_.L.__syncHostProperties=function(){var I=this.__syncInfo;I&&(this.__syncInfo=null,I.runEffects(I.changedProps,!1))};
_.L.__teardownInstance=function(){var I=this.__dataHost||this;this.__instance&&(I._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.L._showHideChildren=function(){var I=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==I&&(this.__instance.__hidden=I,HzL(I,this.__instance.templateInfo.childNodes));I||this.__syncHostProperties()};
var j6u=function(){var I=ct.call(this)||this;I.__ctor=null;I.__instance=null;I.__invalidProps=null;return I};
_.E(j6u,ct);_.L=j6u.prototype;_.L.__hasInstance=function(){return!!this.__instance};
_.L.__getInstanceNodes=function(){return this.__instance.children};
_.L.__createAndInsertInstance=function(I){this.__ctor||(this.__ctor=hp(this.__template,this,{mutableData:!0,forwardHostProp:function(y,D){this.__instance&&(this.if?this.__instance.forwardHostProp(y,D):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[iK(y)]=!0))}}));
this.__instance=new this.__ctor;(0,_.sN)(I).insertBefore(this.__instance.root,this)};
_.L.__teardownInstance=function(){if(this.__instance){var I=this.__instance.children;if(I&&I.length){var y=(0,_.sN)(I[0]).parentNode;if(y){y=(0,_.sN)(y);for(var D=0,F=void 0;D<I.length&&(F=I[D]);D++)y.removeChild(F)}}this.__instance=this.__invalidProps=null}};
_.L.__syncHostProperties=function(){var I=this.__invalidProps;if(I){this.__invalidProps=null;for(var y in I)this.__instance._setPendingProperty(y,this.__dataHost[y]);this.__instance._flushProperties()}};
_.L._showHideChildren=function(){var I=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==I&&(this.__instance.__hidden=I,this.__instance._showHideChildren(I));I||this.__syncHostProperties()};
_.VU=oZ?rCM:j6u;customElements.define(_.VU.is,_.VU);Polymer.enqueueDebouncer=_.Mn;Polymer.flush=_.aZ;Polymer.Templatize={templatize:hp,modelForElement:O25};Polymer.TemplateInstanceBase=NQ;Polymer.DomIf=_.VU;var oEM=PVO(G0),sM=function(){var I=oEM.call(this)||this;I.__instances=[];I.__renderDebouncer=null;I.__itemsIdxToInstIdx={};I.__chunkCount=null;I.__renderStartTime=null;I.__itemsArrayChanged=!1;I.__shouldMeasureChunk=!1;I.__shouldContinueChunking=!1;I.__chunkingId=0;I.__sortFn=null;I.__filterFn=null;I.__observePaths=null;I.__ctor=null;I.__isDetached=!0;I.template=null;return I};
_.E(sM,oEM);_.L=sM.prototype;_.L.disconnectedCallback=function(){oEM.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var I=0;I<this.__instances.length;I++)this.__detachInstance(I);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.L.connectedCallback=function(){oEM.prototype.connectedCallback.call(this);izJ()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var I=(0,_.sN)((0,_.sN)(this).parentNode),y=0;y<this.__instances.length;y++)this.__attachInstance(y,I);this.__chunkingId&&this.__render()}};
_.L.__ensureTemplatized=function(){var I=this;if(!this.__ctor){var y=this.template=this._templateInfo?this:this.querySelector("template");if(!y){var D=new MutationObserver(function(){if(I.querySelector("template"))D.disconnect(),I.__render();else throw Error("Sd");});
D.observe(this,{childList:!0});return!1}var F={};F[this.as]=!0;F[this.indexAs]=!0;F[this.itemsIndexAs]=!0;this.__ctor=hp(y,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:F,forwardHostProp:function(R,O){for(var w=this.__instances,v=0,P=void 0;v<w.length&&(P=w[v]);v++)P.forwardHostProp(R,O)},
notifyInstanceProp:function(R,O,w){qRq(this.as,O)&&(R=R[this.itemsIndexAs],O==this.as&&(this.items[R]=w),O=$n(this.as,"items."+R,O),this.notifyPath(O,w))}})}return!0};
_.L.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.L.__functionFromPropertyValue=function(I){if(typeof I==="string"){var y=this.__getMethodHost();return function(){return y[I].apply(y,arguments)}}return I};
_.L.__sortChanged=function(I){this.__sortFn=this.__functionFromPropertyValue(I);this.items&&this.__debounceRender(this.__render)};
_.L.__filterChanged=function(I){this.__filterFn=this.__functionFromPropertyValue(I);this.items&&this.__debounceRender(this.__render)};
_.L.__computeFrameTime=function(I){return Math.ceil(1E3/I)};
_.L.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.L.__handleObservedPaths=function(I){if(this.__sortFn||this.__filterFn)if(!I)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var y=this.__observePaths,D=0;D<y.length;D++)I.indexOf(y[D])===0&&this.__debounceRender(this.__render,this.delay)};
_.L.__itemsChanged=function(I){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(I.path,I.value)||(I.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.L.__debounceRender=function(I,y){y=y===void 0?0:y;this.__renderDebouncer=_.mz(this.__renderDebouncer,y>0?_.x0.after(y):U1,I.bind(this));_.Mn(this.__renderDebouncer)};
_.L.render=function(){this.__debounceRender(this.__render);_.aZ()};
_.L.__render=function(){var I=this;if(this.__ensureTemplatized()){var y=this.items||[],D=this.__sortAndFilterItems(y),F=this.__calculateLimit(D.length);this.__updateInstances(y,F,D);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){I.__chunkingId=null;I.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Nn&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.L.__sortAndFilterItems=function(I){for(var y=this,D=Array(I.length),F=0;F<I.length;F++)D[F]=F;this.__filterFn&&(D=D.filter(function(R,O,w){return y.__filterFn(I[R],O,w)}));
this.__sortFn&&D.sort(function(R,O){return y.__sortFn(I[R],I[O])});
return D};
_.L.__calculateLimit=function(I){var y=I,D=this.__instances.length;if(this.initialCount){var F;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(y=Math.min(I,this.initialCount),this.__chunkCount=(F=Math.max(y-D,0))||1):(F=Math.min(Math.max(I-D,0),this.__chunkCount),y=Math.min(D+F,I));this.__shouldMeasureChunk=F===this.__chunkCount;this.__shouldContinueChunking=y<I;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return y};
_.L.__continueChunking=function(){if(this.__shouldMeasureChunk){var I=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/I*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.L.__updateInstances=function(I,y,D){var F=this.__itemsIdxToInstIdx={},R;for(R=0;R<y;R++){var O=this.__instances[R],w=D[R],v=I[w];F[w]=R;O?(O._setPendingProperty(this.as,v),O._setPendingProperty(this.indexAs,R),O._setPendingProperty(this.itemsIndexAs,w),O._flushProperties()):this.__insertInstance(v,R,w)}for(I=this.__instances.length-1;I>=R;I--)this.__detachAndRemoveInstance(I)};
_.L.__detachInstance=function(I){I=this.__instances[I];for(var y=(0,_.sN)(I.root),D=0;D<I.children.length;D++)y.appendChild(I.children[D]);return I};
_.L.__attachInstance=function(I,y){y.insertBefore(this.__instances[I].root,this)};
_.L.__detachAndRemoveInstance=function(I){this.__detachInstance(I);this.__instances.splice(I,1)};
_.L.__stampInstance=function(I,y,D){var F={};F[this.as]=I;F[this.indexAs]=y;F[this.itemsIndexAs]=D;return new this.__ctor(F)};
_.L.__insertInstance=function(I,y,D){I=this.__stampInstance(I,y,D);D=(D=this.__instances[y+1])?D.children[0]:this;(0,_.sN)((0,_.sN)(this).parentNode).insertBefore(I.root,D);return this.__instances[y]=I};
_.L._showHideChildren=function(I){for(var y=0;y<this.__instances.length;y++)this.__instances[y]._showHideChildren(I)};
_.L.__handleItemPath=function(I,y){var D=I.slice(6),F=D.indexOf(".");I=F<0?D:D.substring(0,F);if(I==parseInt(I,10)){D=F<0?"":D.substring(F+1);this.__handleObservedPaths(D);if(I=this.__instances[this.__itemsIdxToInstIdx[I]])I._setPendingPropertyOrPath(this.as+(D?"."+D:""),y,!1,!0),I._flushProperties();return!0}};
_.L.itemForElement=function(I){return(I=this.modelForElement(I))&&I[this.as]};
_.L.indexForElement=function(I){return(I=this.modelForElement(I))&&I[this.indexAs]};
_.L.modelForElement=function(I){return O25(this.template,I)};
_.mD.Object.defineProperties(sM,{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:sM.prototype.__sortChanged},filter:{type:Function,observer:sM.prototype.__filterChanged},observe:{type:String,observer:sM.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Nn,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.*)"]}}});
sM.prototype._setRenderedItemCount=function(){};
customElements.define(sM.is,sM);Polymer.DomRepeat=sM;var NyR=function(I,y){var D=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=I;this.callback=y;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){D._schedule()};
this.connect();this._schedule()},h0G=function(I){var y=(0,_.sN)(I);
if(ug(I))return y.assignedNodes({flatten:!0});I=[];for(var D=0;D<y.childNodes.length;D++){var F=y.childNodes[D];ug(F)?I.push.apply(I,_.Td((0,_.sN)(F).assignedNodes({flatten:!0}))):I.push(F)}return I};
_.L=NyR.prototype;_.L.connect=function(){var I=this;ug(this._target)?this._listenSlots([this._target]):(0,_.sN)(this._target).children&&(this._listenSlots((0,_.sN)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(y){I._processMutations(y)}):(this._nativeChildrenObserver=new MutationObserver(function(y){I._processMutations(y)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.L.disconnect=function(){ug(this._target)?this._unlistenSlots([this._target]):(0,_.sN)(this._target).children&&(this._unlistenSlots((0,_.sN)(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};
_.L._schedule=function(){var I=this;this._scheduled||(this._scheduled=!0,U1.run(function(){return I.flush()}))};
_.L._processMutations=function(I){this._processSlotMutations(I);this.flush()};
_.L._processSlotMutations=function(I){if(I)for(var y=0;y<I.length;y++){var D=I[y];D.addedNodes&&this._listenSlots(D.addedNodes);D.removedNodes&&this._unlistenSlots(D.removedNodes)}};
_.L.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 I={target:this._target,addedNodes:[],removedNodes:[]},y=h0G(this._target),D=RMe(y,this._effectiveNodes),F=0,R=void 0;F<D.length&&(R=D[F]);F++)for(var O=0,w=void 0;O<R.removed.length&&(w=R.removed[O]);O++)I.removedNodes.push(w);
F=0;for(R=void 0;F<D.length&&(R=D[F]);F++)for(O=R.index;O<R.index+R.addedCount;O++)I.addedNodes.push(y[O]);this._effectiveNodes=y;y=!1;if(I.addedNodes.length||I.removedNodes.length)y=!0,this.callback.call(this._target,I);return y};
_.L._listenSlots=function(I){for(var y=0;y<I.length;y++){var D=I[y];ug(D)&&D.addEventListener("slotchange",this._boundSchedule)}};
_.L._unlistenSlots=function(I){for(var y=0;y<I.length;y++){var D=I[y];ug(D)&&D.removeEventListener("slotchange",this._boundSchedule)}};var Wt=Element.prototype,x4g=Wt.matches||Wt.matchesSelector||Wt.mozMatchesSelector||Wt.msMatchesSelector||Wt.oMatchesSelector||Wt.webkitMatchesSelector,lda=function(I,y){return x4g.call(I,y)},qQ=function(I){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(I);
this.node=I},Gvf;
_.L=qQ.prototype;_.L.observeNodes=function(I){return new NyR(this.node,I)};
_.L.unobserveNodes=function(I){I.disconnect()};
_.L.notifyObserver=function(){};
_.L.deepContains=function(I){if((0,_.sN)(this.node).contains(I))return!0;var y=I;for(I=I.ownerDocument;y&&y!==I&&y!==this.node;)y=(0,_.sN)(y).parentNode||(0,_.sN)(y).host;return y===this.node};
_.L.getOwnerRoot=function(){return(0,_.sN)(this.node).getRootNode()};
_.L.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.sN)(this.node).assignedNodes({flatten:!0}):[]};
_.L.getDestinationInsertionPoints=function(){for(var I=[],y=(0,_.sN)(this.node).assignedSlot;y;)I.push(y),y=(0,_.sN)(y).assignedSlot;return I};
_.L.importNode=function(I,y){return(0,_.sN)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(I,y)};
_.L.getEffectiveChildNodes=function(){return h0G(this.node)};
_.L.queryDistributedElements=function(I){for(var y=this.getEffectiveChildNodes(),D=[],F=0,R=y.length,O=void 0;F<R&&(O=y[F]);F++)O.nodeType===Node.ELEMENT_NODE&&lda(O,I)&&D.push(O);return D};
_.mD.Object.defineProperties(qQ.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var I=this.node;return I._activeElement!==void 0?I._activeElement:I.activeElement}}});
var C3=function(I){this.event=I};
_.mD.Object.defineProperties(C3.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 ufn=qQ;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var qve=window.ShadyDOM.Wrapper,EEG=function(){return qve.apply(this,arguments)||this};
_.E(EEG,qve);Object.getOwnPropertyNames(qQ.prototype).forEach(function(I){I!="activeElement"&&I!="constructor"&&(EEG.prototype[I]=qQ.prototype[I])});
J4q(EEG.prototype,["classList"]);ufn=EEG;Object.defineProperties(C3.prototype,{localTarget:{get:function(){var I=this.event.currentTarget;I=I&&_.Bx(I).getOwnerRoot();for(var y=this.path,D=0;D<y.length;D++){var F=y[D];if(_.Bx(F).getOwnerRoot()===I)return F}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else LVt(),J4q(qQ.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),wq_();Gvf=ufn;_.Bx=function(I){I=I||document;if(I instanceof ufn)return I;if(I instanceof C3)return I;var y=I.__domApi;y||(I instanceof Event?y=new C3(I):y=new ufn(I),I.__domApi=y);return y};var X4G=/:host\(:dir\((ltr|rtl)\)\)/g,Q6M=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Yv_=/:dir\((?:ltr|rtl)\)/,fda=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Gt=[],Bt=null,E1="",nEO=lM(function(I){fda||Bt||(E1=document.documentElement.getAttribute("dir"),Bt=new MutationObserver(vXB),Bt.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var y=k4P(I);I=function(){var D=y.call(this)||this;D.__autoDirOptOut=!1;return D};
_.E(I,y);I._processStyleText=function(D,F){D=y._processStyleText.call(this,D,F);!fda&&Yv_.test(D)&&(D=this._replaceDirInCssText(D),this.__activateDir=!0);return D};
I._replaceDirInCssText=function(D){D=D.replace(X4G,':host([dir="$1"])');return D=D.replace(Q6M,':host([dir="$2"]) $1')};
I.prototype.ready=function(){y.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
I.prototype.connectedCallback=function(){y.prototype.connectedCallback&&y.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Bt&&Bt.takeRecords().length&&vXB(),Gt.push(this),this.__autoDirOptOut||this.setAttribute("dir",E1))};
I.prototype.disconnectedCallback=function(){y.prototype.disconnectedCallback&&y.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var D=Gt.indexOf(this);D>-1&&Gt.splice(D,1)}};
I.__activateDir=!1;return I});var p4M=function(I){for(;I;){var y=Object.getOwnPropertyDescriptor(I,"observedAttributes");if(y)return y.get;I=Object.getPrototypeOf(I.prototype).constructor}return function(){return[]}};
lM(function(I){var y=E4(I),D=p4M(y);I=function(){return y.call(this)||this};
_.E(I,y);I.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:y.prototype._initializeProperties.call(this)};
I.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
I.prototype._canApplyPropertyDefault=function(F){return y.prototype._canApplyPropertyDefault.call(this,F)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(F))};
I.prototype.attributeChangedCallback=function(F,R,O,w){F=="disable-upgrade"?this.__isUpgradeDisabled&&O==null&&(y.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.sN)(this).isConnected&&y.prototype.connectedCallback.call(this)):y.prototype.attributeChangedCallback.call(this,F,R,O,w)};
I.prototype.connectedCallback=function(){this.__isUpgradeDisabled||y.prototype.connectedCallback.call(this)};
I.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||y.prototype.disconnectedCallback.call(this)};
_.mD.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return D.call(this).concat("disable-upgrade")}}});
return I});var XT=!1,tq5=[],QG=[];var r4A=window.ShadyDOM,jh4=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",NJL):document.readyState==="interactive"||document.readyState==="complete"?NJL():window.addEventListener("DOMContentLoaded",NJL);var lhq=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=""},hvq=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,xVL=/@import[^;]*;/gim,Qhq=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Ymo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,fhH=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,nXo=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,GQe=/^@[^\s]*keyframes/,
EXt=/\s+/g;var pq5={};var zvA=Promise.resolve();var m4G=new Set;var MEO=/;\s*/m,z0z=/^\s*(initial)|(inherit)\s*$/,kvn=/\s*!important/,d4W=function(){this._map={}};
d4W.prototype.set=function(I,y){I=I.trim();this._map[I]={properties:y,dependants:{}}};
d4W.prototype.get=function(I){I=I.trim();return this._map[I]||null};
var adR=null,iM=function(){this._measureElement=this._currentElement=null;this._map=new d4W};
_.L=iM.prototype;_.L.detectMixin=function(I){I=IdP.test(I)||geW.test(I);IdP.lastIndex=0;geW.lastIndex=0;return I};
_.L.transformTemplate=function(I,y){if(I._gatheredStyle===void 0){var D=[];for(var F=I.content.querySelectorAll("style"),R=0;R<F.length;R++){var O=F[R];if(O.hasAttribute("shady-unscoped")){if(!U0H){var w=O.textContent;if(!m4G.has(w)){m4G.add(w);var v=document.createElement("style");v.setAttribute("shady-unscoped","");v.textContent=w;document.head.appendChild(v)}O.parentNode.removeChild(O)}}else D.push(O.textContent),O.parentNode.removeChild(O)}(D=D.join("").trim())?(F=document.createElement("style"),
F.textContent=D,I.content.insertBefore(F,I.content.firstChild),D=F):D=null;I._gatheredStyle=D}return(I=I._gatheredStyle)?this.JSC$11545_transformStyle(I,y):null};
_.L.JSC$11545_transformStyle=function(I,y){y=y===void 0?"":y;var D=c4W(I);this.transformRules(D,y);I.textContent=ahA(D);return D};
_.L.transformCustomStyle=function(I){var y=this,D=c4W(I);C74(D,function(F){F.selector===":root"&&(F.selector="html");y.transformRule(F)});
I.textContent=ahA(D);return D};
_.L.transformRules=function(I,y){var D=this;this._currentElement=y;C74(I,function(F){D.transformRule(F)});
this._currentElement=null};
_.L.transformRule=function(I){I.cssText=cCM(this,I.parsedCssText,I);I.selector===":root"&&(I.selector=":host > *")};
var cCM=function(I,y,D){y=y.replace(geW,function(F,R,O,w){return I._produceCssProperties(F,R,O,w,D)});
return I._consumeCssProperties(y,D)};
_.L=iM.prototype;_.L._getInitialValueForProperty=function(I){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(I)};
_.L._fallbacksFromPreviousRules=function(I){for(var y=this,D=I;D.parent;)D=D.parent;var F={},R=!1;C74(D,function(O){(R=R||O===I)||O.selector===I.selector&&Object.assign(F,y._cssTextToMap(O.parsedCssText))});
return F};
_.L._consumeCssProperties=function(I,y){for(var D;D=IdP.exec(I);){var F=D[0],R=D[1];D=D.index;var O=D+F.indexOf("@apply"),w=D+F.length;F=I.slice(0,O);I=I.slice(w);O=y?this._fallbacksFromPreviousRules(y):{};Object.assign(O,this._cssTextToMap(F));R=this._atApplyToCssProperties(R,O);I=F+R+I;IdP.lastIndex=D+R.length}return I};
_.L._atApplyToCssProperties=function(I,y){I=I.replace(MEO,"");var D=[],F=this._map.get(I);F||(this._map.set(I,{}),F=this._map.get(I));if(F){this._currentElement&&(F.dependants[this._currentElement]=!0);var R,O=F.properties;for(R in O){var w=y&&y[R];F=[R,": var(",I,"_-_",R];w&&F.push(",",w.replace(kvn,""));F.push(")");kvn.test(O[R])&&F.push(" !important");D.push(F.join(""))}}return D.join("; ")};
_.L._replaceInitialOrInherit=function(I,y){var D=z0z.exec(y);D&&(y=D[1]?this._getInitialValueForProperty(I):"apply-shim-inherit");return y};
_.L._cssTextToMap=function(I,y){y=y===void 0?!1:y;I=I.split(";");for(var D,F,R={},O=0;O<I.length;O++)if(D=I[O])F=D.split(":"),F.length>1&&(D=F[0].trim(),F=F.slice(1).join(":"),y&&(F=this._replaceInitialOrInherit(D,F)),R[D]=F);return R};
_.L._invalidateMixinEntry=function(I){if(adR)for(var y in I.dependants)y!==this._currentElement&&adR(y)};
_.L._produceCssProperties=function(I,y,D,F,R){var O=this;D&&BJ5(D,function(q,X){X&&O._map.get(X)&&(F="@apply "+X+";")});
if(!F)return I;var w=this._consumeCssProperties(""+F,R);R=I.slice(0,I.indexOf("--"));var v=w=this._cssTextToMap(w,!0),P=this._map.get(y),K=P&&P.properties;K?v=Object.assign(Object.create(K),w):this._map.set(y,v);var r=[],N,h=!1;for(N in v){var x=w[N];x===void 0&&(x="initial");!K||N in K||(h=!0);r.push(y+"_-_"+N+": "+x)}h&&this._invalidateMixinEntry(P);P&&(P.properties=v);D&&(R=I+";"+R);return R+r.join("; ")+";"};
iM.prototype.detectMixin=iM.prototype.detectMixin;iM.prototype.transformStyle=iM.prototype.JSC$11545_transformStyle;iM.prototype.transformCustomStyle=iM.prototype.transformCustomStyle;iM.prototype.transformRules=iM.prototype.transformRules;iM.prototype.transformRule=iM.prototype.transformRule;iM.prototype.transformTemplate=iM.prototype.transformTemplate;iM.prototype._separator="_-_";Object.defineProperty(iM.prototype,"invalidCallback",{get:function(){return adR},
set:function(I){adR=I}});var Ag=new iM,WZn=function(){this.customStyleInterface=null;Ag.invalidCallback=mVJ},$0=function(I){!I.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(I.customStyleInterface=window.ShadyCSS.CustomStyleInterface,I.customStyleInterface.transformCallback=function(y){Ag.transformCustomStyle(y)},I.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){I.customStyleInterface.enqueued&&I.flushCustomStyles()})})};
_.L=WZn.prototype;_.L.prepareTemplate=function(I,y){$0(this);i2t(I)===""&&(pq5[y]=I,y=Ag.transformTemplate(I,y),I._styleAst=y)};
_.L.flushCustomStyles=function(){$0(this);if(this.customStyleInterface){var I=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var y=0;y<I.length;y++){var D=this.customStyleInterface.getStyleForCustomStyle(I[y]);D&&Ag.transformCustomStyle(D)}this.customStyleInterface.enqueued=!1}}};
_.L.styleSubtree=function(I,y){$0(this);y&&JT_(I,y);if(I.shadowRoot)for(this.styleElement(I),I=I.shadowRoot.children||I.shadowRoot.childNodes,y=0;y<I.length;y++)this.styleSubtree(I[y]);else for(I=I.children||I.childNodes,y=0;y<I.length;y++)this.styleSubtree(I[y])};
_.L.styleElement=function(I){$0(this);var y=I.localName,D;y?y.indexOf("-")>-1?D=y:D=I.getAttribute&&I.getAttribute("is")||"":D=I.is;y=pq5[D];if(!(y&&i2t(y)!==""||!y||Mq4(y))){if(Mq4(y)||y._applyShimValidatingVersion!==y._applyShimNextVersion)this.prepareTemplate(y,D),kQq(y);if(I=I.shadowRoot)if(I=I.querySelector("style"))I.__cssRules=y._styleAst,I.textContent=ahA(y._styleAst)}};
_.L.styleDocument=function(I){$0(this);this.styleSubtree(document.body,I)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var bM=new WZn,CVG=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(I,y){bM.flushCustomStyles();bM.prepareTemplate(I,y)},
prepareTemplateStyles:function(I,y,D){window.ShadyCSS.prepareTemplate(I,y,D)},
prepareTemplateDom:function(){},
styleSubtree:function(I,y){bM.flushCustomStyles();bM.styleSubtree(I,y)},
styleElement:function(I){bM.flushCustomStyles();bM.styleElement(I)},
styleDocument:function(I){bM.flushCustomStyles();bM.styleDocument(I)},
getComputedStyleValue:function(I,y){return wnA(I,y)},
flushCustomStyles:function(){bM.flushCustomStyles()},
nativeCss:dVJ,nativeShadow:U0H,cssBuild:pZ,disableRuntime:FZR};CVG&&(window.ShadyCSS.CustomStyleInterface=CVG)}window.ShadyCSS.ApplyShim=Ag;var ByM;ByM=window.ShadyCSS;_.Ht=lM(function(I){I=tEu(E4(I));var y=bgz?I:nEO(I),D=p4M(y),F={x:"pan-x",y:"pan-y",none:"none",all:"auto"};I=function(){return y.call(this)||this};
_.E(I,y);I.prototype.created=function(){};
I.prototype.__attributeReaction=function(R,O,w){(this.__dataAttributes&&this.__dataAttributes[R]||R==="disable-upgrade")&&this.attributeChangedCallback(R,O,w,null)};
I.prototype.setAttribute=function(R,O){if(h6u&&!this._legacyForceObservedAttributes){var w=this.getAttribute(R);y.prototype.setAttribute.call(this,R,O);this.__attributeReaction(R,w,String(O))}else y.prototype.setAttribute.call(this,R,O)};
I.prototype.removeAttribute=function(R){if(h6u&&!this._legacyForceObservedAttributes){var O=this.getAttribute(R);y.prototype.removeAttribute.call(this,R);this.__attributeReaction(R,O,null)}else y.prototype.removeAttribute.call(this,R)};
I.prototype._enableProperties=function(){this.__isUpgradeDisabled||y.prototype._enableProperties.call(this)};
I.prototype._canApplyPropertyDefault=function(R){return y.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
I.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(y.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
I.prototype.attached=function(){};
I.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(y.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
I.prototype.detached=function(){};
I.prototype.attributeChangedCallback=function(R,O,w,v){O!==w&&(R=="disable-upgrade"?this.__isUpgradeDisabled&&w==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.sN)(this).isConnected&&this.connectedCallback()):(y.prototype.attributeChangedCallback.call(this,R,O,w,v),this.attributeChanged(R,O,w)))};
I.prototype.attributeChanged=function(){};
I.prototype._initializeProperties=function(){if(ju&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var R=Object.getPrototypeOf(this);R.hasOwnProperty("__hasRegisterFinished")||(this._registered(),R.__hasRegisterFinished=!0);y.prototype._initializeProperties.call(this);this.root=this;this.created();h6u&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
I.prototype._takeAttributes=function(){for(var R=this.attributes,O=0,w=R.length;O<w;O++){var v=R[O];this.__attributeReaction(v.name,null,v.value)}};
I.prototype._registered=function(){};
I.prototype.ready=function(){this._ensureAttributes();y.prototype.ready.call(this)};
I.prototype._ensureAttributes=function(){};
I.prototype._applyListeners=function(){};
I.prototype.serialize=function(R){return this._serializeValue(R)};
I.prototype.deserialize=function(R,O){return this._deserializeValue(R,O)};
I.prototype.reflectPropertyToAttribute=function(R,O,w){this._propertyToAttribute(R,O,w)};
I.prototype.serializeValueToAttribute=function(R,O,w){this._valueToNodeAttribute(w||this,R,O)};
I.prototype.extend=function(R,O){if(!R||!O)return R||O;for(var w=Object.getOwnPropertyNames(O),v=0,P=void 0;v<w.length&&(P=w[v]);v++){var K=Object.getOwnPropertyDescriptor(O,P);K&&Object.defineProperty(R,P,K)}return R};
I.prototype.mixin=function(R,O){for(var w in O)R[w]=O[w];return R};
I.prototype.chainObject=function(R,O){R&&O&&R!==O&&(R.__proto__=O);return R};
I.prototype.instanceTemplate=function(R){R=this.constructor._contentForTemplate(R);return document.importNode(R,!0)};
I.prototype.fire=function(R,O,w){w=w||{};O=O===null||O===void 0?{}:O;R=new Event(R,{bubbles:w.bubbles===void 0?!0:w.bubbles,cancelable:!!w.cancelable,composed:w.composed===void 0?!0:w.composed});R.detail=O;(0,_.sN)(w.node||this).dispatchEvent(R);return R};
I.prototype.listen=function(R,O,w){R=R||this;var v=this.__boundListeners||(this.__boundListeners=new WeakMap),P=v.get(R);P||(P={},v.set(R,P));v=O+w;P[v]||(P[v]=this._addMethodEventListenerToNode(R,O,w,this))};
I.prototype.unlisten=function(R,O,w){R=R||this;var v=this.__boundListeners&&this.__boundListeners.get(R);w=O+w;var P=v&&v[w];P&&(this._removeEventListenerFromNode(R,O,P),v[w]=null)};
I.prototype.setScrollDirection=function(R,O){_.KZ(O||this,F[R]||"auto")};
I.prototype.$$=function(R){return this.root.querySelector(R)};
I.prototype.distributeContent=function(){var R=_.Bx(this);window.ShadyDOM&&R.shadowRoot&&ShadyDOM.flush()};
I.prototype.getEffectiveChildNodes=function(){return _.Bx(this).getEffectiveChildNodes()};
I.prototype.queryDistributedElements=function(R){return _.Bx(this).queryDistributedElements(R)};
I.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(R){return R.nodeType===Node.ELEMENT_NODE})};
I.prototype.getEffectiveTextContent=function(){for(var R=this.getEffectiveChildNodes(),O=[],w=0,v;v=R[w];w++)v.nodeType!==Node.COMMENT_NODE&&O.push(v.textContent);return O.join("")};
I.prototype.queryEffectiveChildren=function(R){return(R=this.queryDistributedElements(R))&&R[0]};
I.prototype.queryAllEffectiveChildren=function(R){return this.queryDistributedElements(R)};
I.prototype.getContentChildNodes=function(R){return(R=this.root.querySelector(R||"slot"))?_.Bx(R).getDistributedNodes():[]};
I.prototype.getContentChildren=function(R){return this.getContentChildNodes(R).filter(function(O){return O.nodeType===Node.ELEMENT_NODE})};
I.prototype.isLightDescendant=function(R){return this!==R&&(0,_.sN)(this).contains(R)&&(0,_.sN)(this).getRootNode()===(0,_.sN)(R).getRootNode()};
I.prototype.isLocalDescendant=function(R){return this.root===(0,_.sN)(R).getRootNode()};
I.prototype.scopeSubtree=function(R,O){return oXt(R,O===void 0?!1:O)};
I.prototype.getComputedStyleValue=function(R){return ByM.getComputedStyleValue(this,R)};
I.prototype.debounce=function(R,O,w){this._debouncers=this._debouncers||{};return this._debouncers[R]=_.mz(this._debouncers[R],w>0?_.x0.after(w):U1,O.bind(this))};
I.prototype.isDebouncerActive=function(R){this._debouncers=this._debouncers||{};R=this._debouncers[R];return!(!R||!R.isActive())};
I.prototype.flushDebouncer=function(R){this._debouncers=this._debouncers||{};(R=this._debouncers[R])&&R.flush()};
I.prototype.cancelDebouncer=function(R){this._debouncers=this._debouncers||{};(R=this._debouncers[R])&&R.cancel()};
I.prototype.async=function(R,O){return O>0?_.x0.run(R.bind(this),O):~U1.run(R.bind(this))};
I.prototype.cancelAsync=function(R){R<0?U1.cancel(~R):_.x0.cancel(R)};
I.prototype.create=function(R,O){R=document.createElement(R);if(O)if(R.setProperties)R.setProperties(O);else for(var w in O)R[w]=O[w];return R};
I.prototype.elementMatches=function(R,O){return lda(O||this,R)};
I.prototype.toggleAttribute=function(R,O){var w=this;arguments.length===3&&(w=arguments[2]);arguments.length==1&&(O=!w.hasAttribute(R));if(O)return(0,_.sN)(w).setAttribute(R,""),!0;(0,_.sN)(w).removeAttribute(R);return!1};
I.prototype.toggleClass=function(R,O,w){w=w||this;arguments.length==1&&(O=!w.classList.contains(R));O?w.classList.add(R):w.classList.remove(R)};
I.prototype.transform=function(R,O){O=O||this;O.style.webkitTransform=R;O.style.transform=R};
I.prototype.translate3d=function(R,O,w,v){this.transform("translate3d("+R+","+O+","+w+")",v||this)};
I.prototype.arrayDelete=function(R,O){if(Array.isArray(R)){if(O=R.indexOf(O),O>=0)return R.splice(O,1)}else if(O=Hu(this,R).indexOf(O),O>=0)return this.splice(R,O,1);return null};
I.prototype._logger=function(R,O){Array.isArray(O)&&O.length===1&&Array.isArray(O[0])&&(O=O[0]);switch(R){case "log":case "warn":case "error":console[R].apply(console,_.Td(O))}};
I.prototype._log=function(){this._logger("log",_.go.apply(0,arguments))};
I.prototype._warn=function(){this._logger("warn",_.go.apply(0,arguments))};
I.prototype._error=function(){this._logger("error",_.go.apply(0,arguments))};
I.prototype._logf=function(R){return["[%s::%s]",this.is,R].concat(_.Td(_.go.apply(1,arguments)))};
_.mD.Object.defineProperties(I.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var R=(0,_.sN)(this).getRootNode();return R instanceof DocumentFragment?R.host:R}}});
_.mD.Object.defineProperties(I,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return h6u&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],jzH(this.prototype)),this.__observedAttributes):D.call(this).concat("disable-upgrade")}}});
I.prototype.is="";return I});Polymer.FlattenedNodesObserver=NyR;Polymer.DomApi=Gvf;Polymer.EventApi=C3;Polymer.dom=_.Bx;Polymer.dom.matchesSelector=lda;Polymer.dom.flush=_.aZ;Polymer.dom.addDebouncer=_.Mn;Polymer.DirMixin=nEO;Polymer.RenderStatus={beforeNextRender:_.UVo,afterNextRender:_.YC,flush:function(){for(;tq5.length||QG.length;)Sm4(tq5),Sm4(QG);XT=!1}};Polymer.LegacyElementMixin=_.Ht;var iQP;iQP=k0._mutablePropertyChange;var ACf={properties:{mutableData:Boolean},_shouldPropertyChange:function(I,y,D){return iQP(this,I,y,D,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(I,y,D){return iQP(this,I,y,D,!0)}};
Polymer.OptionalMutableDataBehavior=ACf;var A4_={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},TJe={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ev5=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},TJe),$4z=(0,_.Ht)(HTMLElement),bf_=function(I,y){I||console.warn("Polymer.Class requires `info` argument");y=y?y($4z):$4z;y=shH(I,y,I.behaviors);y.is=y.prototype.is=
I.is;return y};Polymer.Class=bf_;Polymer.mixinBehaviors=function(I,y){return shH({},(0,_.Ht)(y),I)};
Polymer.GenerateClassFromInfo=shH;_.T4=function(I){var y=typeof I==="function"?I:_.T4.Class(I);I._legacyForceObservedAttributes&&(y.prototype._legacyForceObservedAttributes=I._legacyForceObservedAttributes);customElements.define(y.is,y);return y};
_.T4.Class=bf_;Polymer._polymerFn=_.T4;var bQz=window.onLegacyPolymerFunctionDefinedCallback;bQz&&bQz();var esB={templatize:function(I,y){this._templatizerTemplate=I;this.ctor=hp(I,this,{mutableData:!!y,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(I){return new this.ctor(I)},
modelForElement:function(I){return O25(this._templatizerTemplate,I)}};Polymer.Templatizer=esB;_.el=(0,_.Ht)(HTMLElement).prototype;Polymer.Base=_.el;var Z2q=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.MQ=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.E(_.MQ,PolymerFakeBaseClass);var zt=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.E(zt,PolymerFakeBaseClass);var gXW=Symbol("Td"),JP4=[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 HQO=HQO||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},e0e;(function(I){function y(C,H,e){var T=B.get(C);if(!T){if(!e)return;T=new m;B.set(C,T)}C=T.get(H);if(!C){if(!e)return;C=new m;T.set(H,C)}return C}
function D(C,H,e){if(F(C,H,e))return!0;H=h(H);return H!==null?D(C,H,e):!1}
function F(C,H,e){H=y(H,e,!1);return H===void 0?!1:!!H.has(C)}
function R(C,H,e){if(F(C,H,e))return O(C,H,e);H=h(H);if(H!==null)return R(C,H,e)}
function O(C,H,e){H=y(H,e,!1);if(H!==void 0)return H.get(C)}
function w(C,H){var e=v(C,H);C=h(C);if(C===null)return e;var T=w(C,H);if(T.length<=0)return e;if(e.length<=0)return T;H=new z;C=[];e=_.J(e);for(var L5=e.next();!L5.done;L5=e.next())L5=L5.value,H.has(L5)||(H.add(L5),C.push(L5));e=_.J(T);for(T=e.next();!T.done;T=e.next())T=T.value,H.has(T)||(H.add(T),C.push(T));return C}
function v(C,H){C=y(C,H,!1);var e=[];C&&C.forEach(function(T,L5){return e.push(L5)});
return e}
function P(C){return C===void 0}
function K(C){return typeof C==="object"?C!==null:typeof C==="function"}
function r(C){return typeof C==="function"}
function N(C){return typeof C==="symbol"?C:String(C)}
function h(C){var H=Object.getPrototypeOf(C);if(typeof C!=="function"||C===f||H!==f)return H;var e=Object.getPrototypeOf(C.prototype);if(e==null||e===Object.prototype)return H;e=e.constructor;return typeof e!=="function"||e===C?H:e}
function x(){function C(){this._keys=[];this._values=[];this._cache=H}
var H={};C.prototype={get size(){return this._keys.length},has:function(e){return e===this._cache?!0:this._find(e)>=0?(this._cache=e,!0):!1},
get:function(e){var T=this._find(e);if(T>=0)return this._cache=e,this._values[T]},
set:function(e,T){this.delete(e);this._keys.push(e);this._values.push(T);this._cache=e;return this},
delete:function(e){e=this._find(e);return e>=0?(this._keys.splice(e,1),this._values.splice(e,1),this._cache=H,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=H},
forEach:function(e){for(var T=this.size,L5=0;L5<T;++L5){var vH=this._keys[L5],u_=this._values[L5];this._cache=vH;e.call(this,u_,vH,this)}},
_find:function(e){for(var T=this._keys,L5=T.length,vH=0;vH<L5;++vH)if(T[vH]===e)return vH;return-1}};
return C}
function q(){function C(){this._map=new m}
C.prototype={get size(){return this._map.length},has:function(H){return this._map.has(H)},
add:function(H){this._map.set(H,H);return this},
delete:function(H){return this._map.delete(H)},
clear:function(){this._map.clear()},
forEach:function(H,e){this._map.forEach(H,e)}};
return C}
function X(){function C(){this._key=e()}
function H(xA,dq){for(var $A=0;$A<dq;++$A)xA[$A]=Math.random()*255|0}
function e(){do{if(L5)var xA=L5.randomBytes(16);else typeof Uint8Array==="function"?(xA=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(xA):H(xA,16)):(xA=Array(16),H(xA,16));xA[6]=xA[6]&79|64;xA[8]=xA[8]&191|128;for(var dq="",$A=0;$A<16;++$A){var BH=xA[$A];if($A===4||$A===6||$A===8)dq+="-";BH<16&&(dq+="0");dq+=BH.toString(16).toLowerCase()}xA="@@WeakMap@@"+dq}while(vH.call(u_,xA));u_[xA]=!0;return xA}
function T(xA,dq){if(!vH.call(xA,jW)){if(!dq)return;Object.defineProperty(xA,jW,{value:Object.create(null)})}return xA[jW]}
var L5=typeof global!=="undefined"&&typeof HQO==="object"&&typeof require==="function"&&require("crypto"),vH=Object.prototype.hasOwnProperty,u_={},jW=e();C.prototype={has:function(xA){return(xA=T(xA,!1))?this._key in xA:!1},
get:function(xA){if(xA=T(xA,!1))return xA[this._key]},
set:function(xA,dq){T(xA,!0)[this._key]=dq;return this},
delete:function(xA){return(xA=T(xA,!1))&&this._key in xA?delete xA[this._key]:!1},
clear:function(){this._key=e()}};
return C}
var f=Object.getPrototypeOf(Function),m=typeof Map==="function"?Map:x(),z=typeof Set==="function"?Set:q(),B=new (typeof WeakMap==="function"?WeakMap:X());I.decorate=function(C,H,e,T){if(P(T)){if(P(e)){if(!Array.isArray(C))throw new TypeError;if(!r(H))throw new TypeError;for(e=C.length-1;e>=0;--e)if(T=(0,C[e])(H),!P(T)){if(!r(T))throw new TypeError;H=T}return H}if(!Array.isArray(C))throw new TypeError;if(!K(H))throw new TypeError;e=N(e);for(T=C.length-1;T>=0;--T)(0,C[T])(H,e)}else{if(Array.isArray(C))if(K(H)){if(P(e))throw new TypeError;
if(!K(T))throw new TypeError;}else throw new TypeError;else throw new TypeError;e=N(e);for(var L5=C.length-1;L5>=0;--L5){var vH=(0,C[L5])(H,e,T);if(!P(vH)){if(!K(vH))throw new TypeError;T=vH}}return T}};
I.metadata=function(C,H){return function(e,T){if(P(T)){if(!r(e))throw new TypeError;y(e,void 0,!0).set(C,H)}else{if(!K(e))throw new TypeError;T=N(T);y(e,T,!0).set(C,H)}}};
I.defineMetadata=function(C,H){var e;if(K(H))P(e)||(e=N(e));else throw new TypeError;y(H,e,!0).set("parameters",C)};
I.hasMetadata=function(C,H,e){if(K(H))P(e)||(e=N(e));else throw new TypeError;return D(C,H,e)};
I.hasOwnMetadata=function(C,H,e){if(K(H))P(e)||(e=N(e));else throw new TypeError;return F(C,H,e)};
I.getMetadata=function(C,H,e){if(K(H))P(e)||(e=N(e));else throw new TypeError;return R(C,H,e)};
I.getOwnMetadata=function(C,H,e){if(K(H))P(e)||(e=N(e));else throw new TypeError;return O(C,H,e)};
I.getMetadataKeys=function(C,H){if(K(C))P(H)||(H=N(H));else throw new TypeError;return w(C,H)};
I.getOwnMetadataKeys=function(C,H){if(K(C))P(H)||(H=N(H));else throw new TypeError;return v(C,H)};
I.deleteMetadata=function(C,H,e){if(K(H))P(e)||(e=N(e));else throw new TypeError;var T=y(H,e,!1);if(!P(T)){if(!T.delete(C))return!1;if(T.size>0)return!0;C=B.get(H);C.delete(e);if(C.size>0)return!0;B.delete(H);return!0}};
(function(C){if(typeof C.Reflect!=="undefined"){if(C.Reflect!==I)for(var H in I)C.Reflect[H]=I[H]}else C.Reflect=I})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(e0e||(e0e={}));var lVq=self;var TyO=[0,_.Um,_.oh,_.Um];var s6P=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(s6P,_.KS);var VEP=_.Xj(s6P,[0,_.u7,_.xX,TyO,_.oh,_.Em]);var gEO=[0,_.qV,-3,_.Em,_.u7,_.Um,_.Ae_,_.qV,baM,CRM,Sq,_.rJ,_.Um,function(){return ZQ_},
_.oh],ZQ_=[0,_.xX,function(){return gEO},
_.u7,14,_.qV];_.EI(_.kC,_.B5);_.L=_.kC.prototype;_.L.start=function(){this.stop();this.usingListeners_=!1;var I=Ioa(this),y=yf_(this);I&&!y&&this.JSC$11588_win_.mozRequestAnimationFrame?(this.JSC$11588_id_=_.bV(this.JSC$11588_win_,"MozBeforePaint",this.callback_),this.JSC$11588_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11588_id_=I&&y?I.call(this.JSC$11588_win_,this.callback_):this.JSC$11588_win_.setTimeout(t$a(this.callback_),20)};
_.L.stop=function(){if(this.isActive()){var I=Ioa(this),y=yf_(this);I&&!y&&this.JSC$11588_win_.mozRequestAnimationFrame?iV(this.JSC$11588_id_):I&&y?y.call(this.JSC$11588_win_,this.JSC$11588_id_):this.JSC$11588_win_.clearTimeout(this.JSC$11588_id_)}this.JSC$11588_id_=null};
_.L.fire=function(){this.stop();this.JSC$11590_doAction_()};
_.L.isActive=function(){return this.JSC$11588_id_!=null};
_.L.JSC$11590_doAction_=function(){this.usingListeners_&&this.JSC$11588_id_&&iV(this.JSC$11588_id_);this.JSC$11588_id_=null;this.JSC$11588_listener_.call(this.handler_,_.q0())};
_.L.disposeInternal=function(){this.stop();_.kC.superClass_.disposeInternal.call(this)};
var Ioa=function(I){I=I.JSC$11588_win_;return I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||null},yf_=function(I){I=I.JSC$11588_win_;
return I.cancelAnimationFrame||I.cancelRequestAnimationFrame||I.webkitCancelRequestAnimationFrame||I.mozCancelRequestAnimationFrame||I.oCancelRequestAnimationFrame||I.msCancelRequestAnimationFrame||null};_.n4=function(I,y,D){_.B5.call(this);this.JSC$11591_listener_=D!=null?I.bind(D):I;this.JSC$11591_interval_=y;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11591_timer_=null};
_.E(_.n4,_.B5);_.L=_.n4.prototype;_.L.fire=function(I){this.args_=arguments;this.JSC$11591_timer_||this.pauseCount_?this.shouldFire_=!0:DKg(this)};
_.L.stop=function(){this.JSC$11591_timer_&&(_.Ft.clearTimeout(this.JSC$11591_timer_),this.JSC$11591_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.L.pause=function(){this.pauseCount_++};
_.L.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11591_timer_||(this.shouldFire_=!1,DKg(this))};
_.L.disposeInternal=function(){_.B5.prototype.disposeInternal.call(this);this.stop()};
var DKg=function(I){I.JSC$11591_timer_=FI(function(){I.JSC$11591_timer_=null;I.shouldFire_&&!I.pauseCount_&&(I.shouldFire_=!1,DKg(I))},I.JSC$11591_interval_);
var y=I.args_;I.args_=null;I.JSC$11591_listener_.apply(null,y)};var Fjg=function(I,y){this.childIterator_=I[_.Ft.Symbol.iterator]();this.mapFn_=y};
Fjg.prototype[Symbol.iterator]=function(){return this};
Fjg.prototype.next=function(){var I=this.childIterator_.next();return{value:I.done?void 0:this.mapFn_.call(void 0,I.value),done:I.done}};
var Rgf=function(I,y){return new Fjg(I,y)};var O4e={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 vhe=function(I){var y=Ljf(I);if(!y)throw Error("Xd`"+I);return y},Ljf=function(I){var y={};
I=String(I);var D=I.charAt(0)=="#"?I:"#"+I;if(Jfa.test(D))return y.hex=ghH(D),y.type="hex",y;D=KuB(I);return D.length?(y.hex=ca5(D[0],D[1],D[2]),y.type="rgb",y):O4e&&(I=O4e[I.toLowerCase()])?(y.hex=I,y.type="named",y):null},wUn=/#(.)(.)(.)/,ghH=function(I){if(!Jfa.test(I))throw Error("Zd`"+I);
I.length==4&&(I=I.replace(wUn,"#$1$1$2$2$3$3"));return I.toLowerCase()},SrJ=function(I){I=ghH(I);
I=parseInt(I.slice(1),16);return[I>>16,I>>8&255,I&255]},ca5=function(I,y,D){I=Number(I);
y=Number(y);D=Number(D);if(I!=(I&255)||y!=(y&255)||D!=(D&255))throw Error("$d`"+I+"`"+y+"`"+D);y=I<<16|y<<8|D;return I<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)},Jfa=/^#(?:[0-9a-f]{3}){1,2}$/i,vYg=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,KuB=function(I){var y=I.match(vYg);
if(y){I=Number(y[1]);var D=Number(y[2]);y=Number(y[3]);if(I>=0&&I<=255&&D>=0&&D<=255&&y>=0&&y<=255)return[I,D,y]}return[]};var SEO={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},pV=SEO;pV=SEO;var mb4,tpa,PO_;mb4=function(I,y){switch(y){case 1:return I%4!=0||I%100==0&&I%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
tpa=function(I,y,D,F,R){I=new Date(I,y,D);R=R||0;return I.valueOf()+(((F!==void 0?F:3)-R+7)%7-((I.getDay()+6)%7-R+7)%7)*864E5};
_.T0=function(I,y,D){typeof I==="number"?(this.date=PO_(I,y||0,D||1),Kjz(this,D||1)):_.b_(I)?(this.date=PO_(I.getFullYear(),I.getMonth(),I.getDate()),Kjz(this,I.getDate())):(this.date=new Date(_.q0()),I=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Kjz(this,I))};
PO_=function(I,y,D){y=new Date(I,y,D);I>=0&&I<100&&y.setFullYear(y.getFullYear()-1900);return y};
_.L=_.T0.prototype;_.L.firstDayOfWeek_=pV.FIRSTDAYOFWEEK;_.L.firstWeekCutOffDay_=pV.FIRSTWEEKCUTOFFDAY;_.L.clone=function(){var I=new _.T0(this.date);I.firstDayOfWeek_=this.firstDayOfWeek_;I.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return I};
_.L.getFullYear=function(){return this.date.getFullYear()};
_.L.getYear=function(){return this.getFullYear()};
_.L.getMonth=function(){return this.date.getMonth()};
_.L.getDate=function(){return this.date.getDate()};
_.L.getTime=function(){return this.date.getTime()};
_.L.getDay=function(){return this.date.getDay()};
_.L.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.L.getUTCMonth=function(){return this.date.getUTCMonth()};
_.L.getUTCDate=function(){return this.date.getUTCDate()};
_.L.getUTCDay=function(){return this.date.getDay()};
_.L.getUTCHours=function(){return this.date.getUTCHours()};
_.L.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.L.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.L.set=function(I){this.date=new Date(I.getFullYear(),I.getMonth(),I.getDate())};
_.L.setFullYear=function(I){this.date.setFullYear(I)};
_.L.setYear=function(I){this.setFullYear(I)};
_.L.setMonth=function(I){this.date.setMonth(I)};
_.L.setDate=function(I){this.date.setDate(I)};
_.L.setTime=function(I){this.date.setTime(I)};
_.L.setUTCFullYear=function(I){this.date.setUTCFullYear(I)};
_.L.setUTCMonth=function(I){this.date.setUTCMonth(I)};
_.L.setUTCDate=function(I){this.date.setUTCDate(I)};
_.L.add=function(I){if(I.years||I.months){var y=this.getMonth()+I.months+I.years*12,D=this.getYear()+Math.floor(y/12);y%=12;y<0&&(y+=12);var F=Math.min(mb4(D,y),this.getDate());this.setDate(1);this.setFullYear(D);this.setMonth(y);this.setDate(F)}I.days&&(D=this.getYear(),y=D>=0&&D<=99?-1900:0,I=new Date((new Date(D,this.getMonth(),this.getDate(),12)).getTime()+I.days*864E5),this.setDate(1),this.setFullYear(I.getFullYear()+y),this.setMonth(I.getMonth()),this.setDate(I.getDate()),Kjz(this,I.getDate()))};
_.L.JSC$11604_toIsoString=function(I){var y=this.getFullYear(),D=y<0?"-":y>=1E4?"+":"";return[D+_.p2(Math.abs(y),D?6:4),_.p2(this.getMonth()+1,2),_.p2(this.getDate(),2)].join(I?"-":"")};
_.L.equals=function(I){return!(!I||this.getYear()!=I.getYear()||this.getMonth()!=I.getMonth()||this.getDate()!=I.getDate())};
_.L.toString=function(){return this.JSC$11604_toIsoString()};
var Kjz=function(I,y){I.getDate()!=y&&I.date.setUTCHours(I.date.getUTCHours()+(I.getDate()<y?1:-1))};
_.T0.prototype.valueOf=function(){return this.date.valueOf()};var VS=function(I,y,D,F,R){this.reversed=!!y;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!D;I&&s4(this,I,F);this.depth=R!=void 0?R:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.EI(VS,Y_);var s4=function(I,y,D,F){if(I.node=y)I.tagType=typeof D==="number"?D:I.node.nodeType!=1?0:I.reversed?-1:1;typeof F==="number"&&(I.depth=F)};
_.L=VS.prototype;_.L.JSC$11619_copyFrom=function(I){this.node=I.node;this.tagType=I.tagType;this.depth=I.depth;this.reversed=I.reversed;this.constrained=I.constrained};
_.L.clone=function(){return new VS(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.L.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return fH;var I=this.node;var y=this.reversed?-1:1;if(this.tagType==y){var D=this.reversed?I.lastChild:I.firstChild;D?s4(this,D):s4(this,I,y*-1)}else(D=this.reversed?I.previousSibling:I.nextSibling)?s4(this,D):s4(this,I.parentNode,y*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(I=this.node)?nH(I):fH};
_.L.equals=function(I){return I.node==this.node&&(!this.node||I.tagType==this.tagType)};
_.L.splice=function(I){var y=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;VS.prototype.next.call(this);this.reversed=!this.reversed;D=_.i_(arguments[0])?arguments[0]:arguments;for(var F=D.length-1;F>=0;F--)_.LA(D[F],y);_.dM(y)};var UKu=function(){},ZB=function(I){for(var y=[],D=I.getTextRangeCount(),F=0;F<D;F++)y.push(I.getTextRange(F));
return y};
UKu.prototype.isReversed=function(){return!1};
UKu.prototype.getWindow=function(){return st(_.VE(this.JSC$11621_getStartNode()))};
var rfu=function(I,y){VS.call(this,I,y,!0)};
_.EI(rfu,VS);var gh=function(I,y,D,F,R){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!R;if(I){this.startNode_=I;this.startOffset_=y;this.endNode_=D;this.endOffset_=F;if(I.nodeType==1&&I.tagName!="BR")if(I=I.childNodes,y=I[y])this.startNode_=y,this.startOffset_=0;else{I.length&&(this.startNode_=_.p5(I));var O=!0}D.nodeType==1&&((this.endNode_=D.childNodes[F])?this.endOffset_=0:this.endNode_=D)}VS.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);O&&this.next()};
_.EI(gh,rfu);_.L=gh.prototype;_.L.JSC$11627_getStartNode=function(){return this.startNode_};
_.L.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)};
_.L.next=function(){return this.isLast()?fH:gh.superClass_.next.call(this)};
_.L.JSC$11619_copyFrom=function(I){this.startNode_=I.startNode_;this.endNode_=I.endNode_;this.startOffset_=I.startOffset_;this.endOffset_=I.endOffset_;this.isReversed_=I.isReversed_;gh.superClass_.JSC$11619_copyFrom.call(this,I)};
_.L.clone=function(){var I=new gh(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);I.JSC$11619_copyFrom(this);return I};KWW.prototype.__iterator__=function(){return new gh(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var CZ=function(I){this.range_=I};
_.EI(CZ,KWW);var juM=function(I){var y=_.VE(I).createRange();if(I.nodeType==3)y.setStart(I,0),y.setEnd(I,I.length);else if(F6(I)||I.nodeType==3){for(var D,F=I;(D=F.firstChild)&&(F6(D)||D.nodeType==3);)F=D;y.setStart(F,0);for(F=I;(D=F.lastChild)&&(F6(D)||D.nodeType==3);)F=D;y.setEnd(F,F.nodeType==1?F.childNodes.length:F.length)}else D=I.parentNode,I=Array.prototype.indexOf.call(D.childNodes,I),y.setStart(D,I),y.setEnd(D,I+1);return y},oYn=function(I,y,D,F){var R=_.VE(I).createRange();
R.setStart(I,y);R.setEnd(D,F);return R};
_.L=CZ.prototype;_.L.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.L.getContainer=function(){return this.range_.commonAncestorContainer};
_.L.compareBrowserRangeEndpoints=function(I,y,D){return this.range_.compareBoundaryPoints(D==1?y==1?_.Ft.Range.START_TO_START:_.Ft.Range.START_TO_END:y==1?_.Ft.Range.END_TO_START:_.Ft.Range.END_TO_END,I)};
_.L.isCollapsed=function(){return this.range_.collapsed};
_.L.select=function(I){this.selectInternal(st(_.VE(this.range_.startContainer)).getSelection(),I)};
_.L.selectInternal=function(I){I.removeAllRanges();I.addRange(this.range_)};
_.L.insertNode=function(I,y){var D=this.range_.cloneRange();D.collapse(y);D.insertNode(I);D.detach();return I};
_.L.collapse=function(I){this.range_.collapse(I)};_.EI(dN,CZ);dN.prototype.selectInternal=function(I,y){!y||this.isCollapsed()?dN.superClass_.selectInternal.call(this,I,y):(I.collapse(this.range_.endContainer,this.range_.endOffset),I.extend(this.range_.startContainer,this.range_.startOffset))};_.EI(a5,CZ);a5.prototype.compareBrowserRangeEndpoints=function(I,y,D){return a5.superClass_.compareBrowserRangeEndpoints.call(this,I,y,D)};
a5.prototype.selectInternal=function(I,y){y?I.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):I.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var IO=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},NC5;
_.EI(IO,UKu);NC5=function(I,y){var D=new IO;D.browserRangeWrapper_=I;D.isReversed_=!!y;return D};
_.NVR=function(I){I=_.cr?new a5(juM(I)):_.Wr?new dN(juM(I)):new CZ(juM(I));return NC5(I)};
_.Ap=function(I,y,D,F){var R=new IO;R.isReversed_=oR5(I,y,D,F);if(_.Q2(I)&&!F6(I)){var O=I.parentNode;y=Array.prototype.indexOf.call(O.childNodes,I);I=O}_.Q2(D)&&!F6(D)&&(O=D.parentNode,F=Array.prototype.indexOf.call(O.childNodes,D),D=O);R.isReversed_?(R.startNode_=D,R.startOffset_=F,R.endNode_=I,R.endOffset_=y):(R.startNode_=I,R.startOffset_=y,R.endNode_=D,R.endOffset_=F);return R};
_.L=IO.prototype;_.L.clone=function(){var I=new IO;I.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();I.startNode_=this.startNode_;I.startOffset_=this.startOffset_;I.endNode_=this.endNode_;I.endOffset_=this.endOffset_;I.isReversed_=this.isReversed_;return I};
_.L.JSC$11621_getType=function(){return"text"};
_.L.getBrowserRangeObject=function(){return yF(this).range_};
_.L.getTextRangeCount=function(){return 1};
_.L.getTextRange=function(){return this};
var yF=function(I){var y;if(!(y=I.browserRangeWrapper_)){y=I.JSC$11621_getStartNode();var D=I.JSC$11621_getStartOffset(),F=I.JSC$11621_getEndNode(),R=I.JSC$11621_getEndOffset();y=_.cr?new a5(oYn(y,D,F,R)):_.Wr?new dN(oYn(y,D,F,R)):new CZ(oYn(y,D,F,R));y=I.browserRangeWrapper_=y}return y};
_.L=IO.prototype;_.L.getContainer=function(){return yF(this).getContainer()};
_.L.JSC$11621_getStartNode=function(){return this.startNode_||(this.startNode_=yF(this).range_.startContainer)};
_.L.JSC$11621_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=yF(this).range_.startOffset};
_.L.JSC$11621_getEndNode=function(){return this.endNode_||(this.endNode_=yF(this).range_.endContainer)};
_.L.JSC$11621_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=yF(this).range_.endOffset};
_.L.isReversed=function(){return this.isReversed_};
_.L.JSC$11621_containsRange=function(I,y){if(I.JSC$11621_getType()=="text"){var D=yF(this);I=yF(I);y=y&&!I.isCollapsed();I=I.range_;D=y?D.compareBrowserRangeEndpoints(I,0,1)>=0&&D.compareBrowserRangeEndpoints(I,1,0)<=0:D.compareBrowserRangeEndpoints(I,0,0)>=0&&D.compareBrowserRangeEndpoints(I,1,1)<=0}else D=!1;return D};
_.L.isCollapsed=function(){return yF(this).isCollapsed()};
_.L.JSC$11621_getText=function(){return yF(this).range_.toString()};
_.L.__iterator__=function(){return new gh(this.JSC$11621_getStartNode(),this.JSC$11621_getStartOffset(),this.JSC$11621_getEndNode(),this.JSC$11621_getEndOffset())};
_.L.select=function(){yF(this).select(this.isReversed_)};
_.L.JSC$11621_removeContents=function(){var I=yF(this).range_;I.extractContents();if(I.startContainer.hasChildNodes()&&(I=I.startContainer.childNodes[I.startOffset])){var y=I.previousSibling;RBa(I)==""&&_.dM(I);y&&RBa(y)==""&&_.dM(y)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.L.insertNode=function(I,y){I=yF(this).insertNode(I,y);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return I};
_.L.collapse=function(I){I=this.isReversed()?!I:I;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(I);I?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var hgM=function(){};
_.EI(hgM,UKu);hgM.prototype.JSC$11621_containsRange=function(I,y){var D=ZB(this);I=ZB(I);return(y?uH:_.Wcq)(I,function(F){return uH(D,function(R){return R.JSC$11621_containsRange(F,y)})})};
hgM.prototype.insertNode=function(I,y){y?_.O5(I,this.JSC$11621_getStartNode()):_.LA(I,this.JSC$11621_getEndNode());return I};var xKR,log=CG().JSC$9602_document_.documentElement;xKR=log.requestFullscreen?"fullscreenchange":log.webkitRequestFullscreen?"webkitfullscreenchange":log.mozRequestFullScreen?"mozfullscreenchange":log.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ig=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.EI(ig,hgM);_.L=ig.prototype;_.L.clone=function(){var I=new ig;I.browserRanges_=_.C5(this.browserRanges_);return I};
_.L.JSC$11621_getType=function(){return"mutli"};
_.L.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.L.getTextRangeCount=function(){return this.browserRanges_.length};
_.L.getTextRange=function(I){this.ranges_[I]||(this.ranges_[I]=NC5(UOL(this.browserRanges_[I])));return this.ranges_[I]};
_.L.getContainer=function(){if(!this.container_){for(var I=[],y=this.getTextRangeCount(),D=0;D<y;D++)I.push(this.getTextRange(D).getContainer());this.container_=V$g.apply(null,I)}return this.container_};
var DU=function(I){I.sortedRanges_||(I.sortedRanges_=ZB(I),I.sortedRanges_.sort(function(y,D){var F=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();var R=D.JSC$11621_getStartNode();D=D.JSC$11621_getStartOffset();return F==R&&y==D?0:oR5(F,y,R,D)?1:-1}));
return I.sortedRanges_};
_.L=ig.prototype;_.L.JSC$11621_getStartNode=function(){return DU(this)[0].JSC$11621_getStartNode()};
_.L.JSC$11621_getStartOffset=function(){return DU(this)[0].JSC$11621_getStartOffset()};
_.L.JSC$11621_getEndNode=function(){return _.p5(DU(this)).JSC$11621_getEndNode()};
_.L.JSC$11621_getEndOffset=function(){return _.p5(DU(this)).JSC$11621_getEndOffset()};
_.L.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.L.JSC$11621_getText=function(){return ZB(this).map(function(I){return I.JSC$11621_getText()}).join("")};
_.L.__iterator__=function(){return new FE(this)};
_.L.select=function(){var I=this.getWindow().getSelection();I.removeAllRanges();for(var y=this.getTextRangeCount(),D=0;D<y;D++)I.addRange(this.getTextRange(D).getBrowserRangeObject())};
_.L.JSC$11621_removeContents=function(){ZB(this).forEach(function(I){I.JSC$11621_removeContents()})};
_.L.collapse=function(I){if(!this.isCollapsed()){var y=I?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;y.collapse(I);this.ranges_=[y];this.sortedRanges_=[y];this.browserRanges_=[y.getBrowserRangeObject()]}};
var FE=function(I){this.iterators_=null;this.currentIdx_=0;I&&(this.iterators_=DU(I).map(function(y){return _.c9n(y)}));
VS.call(this,I?this.JSC$11627_getStartNode():null,!1,!0)};
_.EI(FE,rfu);_.L=FE.prototype;_.L.JSC$11627_getStartNode=function(){return this.iterators_[0].JSC$11627_getStartNode()};
_.L.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.L.next=function(){for(;this.currentIdx_<this.iterators_.length;){var I=this.iterators_[this.currentIdx_],y=I.next();if(y.done)this.currentIdx_++;else return s4(this,I.node,I.tagType,I.depth),y}return fH};
_.L.JSC$11619_copyFrom=function(I){this.iterators_=_.C5(I.iterators_);FE.superClass_.JSC$11619_copyFrom.call(this,I)};
_.L.clone=function(){var I=new FE(null);I.JSC$11619_copyFrom(this);return I};var RO=function(){_.Zw.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.iD)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.iD)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.iD)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.iD)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.iD)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.iD)(this.dispatchProgressEvent_,this)};
_.EI(RO,_.Zw);RO.prototype.abort=function(){try{this.reader_.abort()}catch(I){throw new bDe(I,"aborting read");}};
RO.prototype.getError=function(){return this.reader_.error&&new bDe(this.reader_.error,"reading file")};
RO.prototype.dispatchProgressEvent_=function(I){this.dispatchEvent(new A0B(I,this))};
RO.prototype.disposeInternal=function(){RO.superClass_.disposeInternal.call(this);delete this.reader_};
var qEu=function(I){var y=new RO,D=uHn(y);y.reader_.readAsArrayBuffer(I);return D},EYR=function(I){var y=new RO,D=uHn(y);
y.reader_.readAsDataURL(I);return D},uHn=function(I){var y=new T6;
I.listen("loadend",_.de(function(D,F){var R=F.reader_.result,O=F.getError();R==null||O?D.errback(O):D.callback(R);F.dispose()},y,I));
return y};var OD=function(){_.Zw.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11661_eventHandler_=new _.H5(this);this.JSC$11661_isInitialized_=!1};
_.EI(OD,_.Zw);var GJz=new _.H2("d"),XUM=new _.H2("beforedragstart"),Qug=new _.H2("dragstart"),YEg=new _.H2("beforedragmove"),foM=new _.H2("dragmove"),nYe=new _.H2("beforedragend"),pUg=new _.H2("dragend"),mKn=new _.H2("e");OD.prototype.isDragging=function(){return!!this.JSC$11661_dragger_};
var Mpe=function(I,y){y.dlgGrowthDirection_=0;y.dlgDragHoverClass_=void 0;y.dlgDragPermission=0;I.dragLists_.push(y)},zgP=function(I,y){I.getHandleForDragItem_=y};
OD.prototype.init=function(){if(!this.JSC$11661_isInitialized_){for(var I=this.dragLists_.length,y=0;y<I;y++)for(var D=_.JP(this.dragLists_[y]),F=D.length,R=0;R<F;++R){var O=D[R],w=this.getHandleForDragItem_(O),v=_.HH(w);this.dragItemForHandle_[v]=O;this.dragItemHoverClasses_&&(this.JSC$11661_eventHandler_.listen(O,"mouseover",this.handleDragItemMouseover_),this.JSC$11661_eventHandler_.listen(O,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11661_eventHandler_.listen(w,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11661_eventHandler_.listen(w,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(O);this.JSC$11661_eventHandler_.listen(w,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11661_isInitialized_=!0}};
OD.prototype.disposeInternal=function(){this.JSC$11661_eventHandler_.dispose();for(var I=this.dragLists_.length,y=0;y<I;y++){var D=this.dragLists_[y];D.dlgGrowthDirection_=void 0;D.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;kJz(this);OD.superClass_.disposeInternal.call(this)};
var dKa=function(I,y){for(var D=I.dragLists_.length,F=0;F<D;F++){var R=I.dragLists_[F];R.dlgBounds_=xOL(R)}D=I.dragItems_.length;for(F=0;F<D;F++)R=I.dragItems_[F],R!=y&&(R.dlgBounds_=xOL(R))};
_.L=OD.prototype;
_.L.handlePotentialDragStart_=function(I){var y=_.HH(I.currentTarget);y=this.dragItemForHandle_[y];if(y.parentElement.dlgDragPermission!=2){this.currDragItem_=y;a:{y=this.currDragItem_;for(var D=y.cloneNode(!0),F=aD("TEXTAREA",y),R=aD("TEXTAREA",D),O=0;O<F.length;O++)R[O].value=F[O].value;switch(y.tagName){case "TR":y=_.y1("TABLE",null,_.y1("TBODY",null,D));break a;case "TD":case "TH":y=_.y1("TABLE",null,_.y1("TBODY",null,_.y1("TR",null,D)));break a;case "TEXTAREA":D.value=y.value;default:y=D;break a}y=
void 0}this.draggerEl_=y;this.draggerElClasses_&&xr(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.VE(this.currDragItem_).body.appendChild(this.draggerEl_);D=_.ZO(this.currDragItem_);y=this.draggerEl_;F=_.ZO(y);if(D instanceof _.XO){var w=D.y;D=D.x}tP(y,y.offsetLeft+(D-F.x),y.offsetTop+(Number(w)-F.y));this.JSC$11661_dragger_=new _.LH(this.draggerEl_);_.ZZc(this.JSC$11661_dragger_,this.hysteresisDistance_);
_.bV(this.JSC$11661_dragger_,"start",this.handleDragStart_,!1,this);_.bV(this.JSC$11661_dragger_,"end",this.handleDragEnd_,!1,this);_.bV(this.JSC$11661_dragger_,"earlycancel",this.JSC$11663_cleanup_,!1,this);this.dispatchEvent(new LP(GJz,this,I,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_));this.JSC$11661_dragger_.startDrag(I)}};
_.L.handleDragStart_=function(I){if(this.dispatchEvent(new LP(XUM,this,I.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.eqR(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?xr(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var y=SWW(this.draggerEl_);this.draggerEl_.halfWidth=y.width/2;this.draggerEl_.halfHeight=y.height/2;y=this.draggerEl_.getBoundingClientRect();
var D=I.clientY,F=gCM(this.JSC$11661_dragger_,I.clientX);if(F>y.right){var R=this.currDragItem_.getBoundingClientRect();this.JSC$11661_dragger_.deltaX=F-(F-R.left)/R.width*y.width}D=I_O(this.JSC$11661_dragger_,D);D>y.bottom&&(this.JSC$11661_dragger_.deltaY+=D-y.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";dKa(this,this.currDragItem_);this.currDragItem_.style.display="";_.bV(this.JSC$11661_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new LP(Qug,
this,I.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_))}else I.preventDefault(),this.JSC$11663_cleanup_()};
_.L.handleDragMove_=function(I){var y=_.ZO(this.draggerEl_);y=new _.XO(y.x+this.draggerEl_.halfWidth,y.y+this.draggerEl_.halfHeight);a:{var D=null;if(this.currDragItem_.style.display!="none"){D=this.currDragItem_.parentNode;var F=xOL(D);if(aof(y,F))break a}F=this.dragLists_.length;for(var R=0;R<F;R++){var O=this.dragLists_[R];if(O!=D&&aof(y,O.dlgBounds_)){D=O;break a}}D=null}if(D){if(D==null)throw Error("ae");F=0;R=!1;O=void 0;switch(D.dlgGrowthDirection_){case 0:F=y.y;var w=cfe;var v=WjG;break;case 4:R=
!0;case 2:F=y.x;w=COg;v=WjG;break;case 5:R=!0;case 3:F=y.x,w=BVf,v=i4f}for(var P=null,K,r=_.JP(D),N=r.length,h=0;h<N;h++){var x=r[h];if(x!=this.currDragItem_){var q=w(x.dlgBounds_);if(R){var X=AfM(x,y);O===void 0&&(O=X);v(F,q)&&(K==void 0||X<O||X==O&&(v(q,K)||q==K))&&(P=x,K=q);X<O&&(O=X)}else v(F,q)&&(K==void 0||v(q,K))&&(P=x,K=q)}}w=P!==null&&AfM(P,y)>O?null:P}else w=null;if(!this.dispatchEvent(new LP(YEg,this,I,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_,y,D,w)))return!1;if(D&&D.dlgDragPermission!=
1)this.currDragItem_.parentNode==D&&_.eqR(this.currDragItem_)==w||D.insertBefore(this.currDragItem_,w),this.currDragItem_.style.display="",D.dlgDragHoverClass_&&_.PU(D,D.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",v=this.dragLists_.length,K=0;K<v;K++)F=this.dragLists_[K],F.dlgDragHoverClass_&&_.tf(F,F.dlgDragHoverClass_);D!=this.currHoverList_&&(this.currHoverList_=D,dKa(this,this.currDragItem_));this.dispatchEvent(new LP(foM,this,I,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_,
y,D,w));return!1};
_.L.JSC$11663_cleanup_=function(){kJz(this);this.JSC$11661_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var I=this.dragLists_.length,y=0;y<I;y++)this.dragLists_[y].dlgBounds_=null;I=this.dragItems_.length;for(y=0;y<I;y++)this.dragItems_[y].dlgBounds_=null};
_.L.handleDragEnd_=function(I){if(!this.dispatchEvent(new LP(nYe,this,I,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_)))return!1;kJz(this);this.dispatchEvent(new LP(pUg,this,I,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_));this.JSC$11663_cleanup_();return!0};
var kJz=function(I){_.rM(I.JSC$11661_dragger_);var y=I.draggerEl_&&I.draggerEl_.parentElement;I.draggerEl_&&_.dM(I.draggerEl_);I.currDragItem_&&I.currDragItem_.style.display=="none"&&(I.origList_.insertBefore(I.currDragItem_,I.origNextItem_),I.currDragItem_.style.display="");I.currDragItemClasses_&&I.currDragItem_?yOG(I.currDragItem_,I.currDragItemClasses_||[]):I.currDragItem_&&(I.currDragItem_.style.visibility="");for(var D=I.dragLists_.length,F=0;F<D;F++){var R=I.dragLists_[F];R.dlgDragHoverClass_&&
_.tf(R,R.dlgDragHoverClass_)}y&&I.dispatchEvent(new LP(mKn,I,null,I.currDragItem_,I.draggerEl_,I.JSC$11661_dragger_))};
_.L=OD.prototype;_.L.getHandleForDragItem_=function(I){return I};
_.L.handleDragItemMouseover_=function(I){xr(I.currentTarget,this.dragItemHoverClasses_||[])};
_.L.handleDragItemMouseout_=function(I){yOG(I.currentTarget,this.dragItemHoverClasses_||[])};
_.L.handleDragItemHandleMouseover_=function(I){xr(I.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.L.handleDragItemHandleMouseout_=function(I){yOG(I.currentTarget,this.dragItemHandleHoverClasses_||[])};
var aof=function(I,y){return I.x>y.left&&I.x<y.left+y.width&&I.y>y.top&&I.y<y.top+y.height},AfM=function(I,y){I=I.dlgBounds_;
return Math.abs(y.y-(I.top+(I.height-1)/2))},cfe=function(I){return I.top+I.height-1},COg=function(I){return I.left+I.width-1},BVf=function(I){return I.left||0},WjG=function(I,y){return I<y},i4f=function(I,y){return I>y},LP=function(I,y,D,F,R,O){_.uS.call(this,I);
this.event=D;this.currDragItem=F;this.draggerEl=R;this.JSC$11665_dragger=O};
_.EI(LP,_.uS);_.EI(Hr,_.B5);var $KP=new _.XO(0,0);Hr.prototype.JSC$11669_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Hr.prototype.JSC$11669_onMouseMove=function(I){var y=this.containerIsActuallyContent_?$KP:WB(CG(this.containerNode_)),D=this.horizontalScrolling_?this.calculateScrollDelta(I.clientX+y.x,this.scrollBounds_.left,this.scrollBounds_.width):0,F=this.calculateScrollDelta(I.clientY+y.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=D;this.scrollDelta_.y=F;!(D=!D&&!F)&&(D=this.constrainScroll_)&&(D=I.clientX+y.x,I=I.clientY+y.y,y=this.containerBounds_,D=!(y.left<=D&&y.left+y.width>=
D&&y.top<=I&&y.top+y.height>=I));D?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Hr.prototype.calculateScrollDelta=function(I,y,D){var F=0;I<y?F=-8:I>y+D&&(F=8);return F};
Hr.prototype.disposeInternal=function(){Hr.superClass_.disposeInternal.call(this);this.JSC$11667_eventHandler_.dispose();this.scrollTimer_.dispose()};var b4_={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"}}},JK=b4_;JK=b4_;var wt={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 H4_=function(){},PF=function(I){if(typeof I=="number"){var y=new H4_;
y.standardOffset_=I;var D=I;if(D==0)D="Etc/GMT";else{var F=["Etc/GMT",D<0?"-":"+"];D=Math.abs(D);F.push(Math.floor(D/60)%100);D%=60;D!=0&&F.push(":",_.p2(D,2));D=F.join("")}y.timeZoneId_=D;D=I;D==0?D="UTC":(F=["UTC",D<0?"+":"-"],D=Math.abs(D),F.push(Math.floor(D/60)%100),D%=60,D!=0&&F.push(":",D),D=F.join(""));I=egR(I);y.tzNames_=[D,D];y.tzNamesExt_={STD_LONG_NAME_GMT:I,STD_GENERIC_LOCATION:I};y.transitions_=[];return y}y=new H4_;y.timeZoneId_=I.id;y.standardOffset_=-I.std_offset;y.tzNames_=I.names;
y.tzNamesExt_=I.names_ext;y.transitions_=I.transitions;return y},egR=function(I){var y=["GMT"];
y.push(I<=0?"+":"-");I=Math.abs(I);y.push(_.p2(Math.floor(I/60)%100,2),":",_.p2(I%60,2));return y.join("")},TVW=function(I,y){y=Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),y.getUTCHours(),y.getUTCMinutes())/36E5;
for(var D=0;D<I.transitions_.length&&y>=I.transitions_[D];)D+=2;return D==0?0:I.transitions_[D-1]},sue=function(I,y){I=I.standardOffset_-TVW(I,y);
return I===-1440?0:I};var K0=function(I,y){this.patternParts_=[];this.JSC$11680_dateTimeSymbols_=y||pV;typeof I=="number"?Vpe(this,I):Z4u(this,I)},gYG=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vZ=function(I){return I.getHours?I.getHours():0},Z4u=function(I,y){for(ggC&&(y=y.replace(/\u200f/g,""));y;){for(var D=y,F=0;F<gYG.length;++F){var R=y.match(gYG[F]);
if(R){var O=R[0];y=y.substring(O.length);F==0&&(O=="''"?O="'":(O=O.substring(1,R[1]=="'"?O.length-1:O.length),O=O.replace(/''/g,"'")));I.patternParts_.push({text:O,type:F});break}}if(D===y)throw Error("be`"+y);}};
K0.prototype.format=function(I,y){if(!I)throw Error("ce");var D=y?(I.getTimezoneOffset()-sue(y,I))*6E4:0,F=D?new Date(I.getTime()+D):I,R=F;y&&F.getTimezoneOffset()!=I.getTimezoneOffset()&&(F=new Date(F.getTime()+(F.getTimezoneOffset()-I.getTimezoneOffset())*6E4),R=new Date(I.getTime()+(D+(D>0?-864E5:864E5))));D=[];for(var O=0;O<this.patternParts_.length;++O){var w=this.patternParts_[O].text;1==this.patternParts_[O].type?D.push(IXR(this,w,I,F,R,y)):D.push(w)}return D.join("")};
var Vpe=function(I,y){if(y<4)var D=I.JSC$11680_dateTimeSymbols_.DATEFORMATS[y];else if(y<8)D=I.JSC$11680_dateTimeSymbols_.TIMEFORMATS[y-4];else if(y<12)D=I.JSC$11680_dateTimeSymbols_.DATETIMEFORMATS[y-8],D=D.replace("{1}",I.JSC$11680_dateTimeSymbols_.DATEFORMATS[y-8]),D=D.replace("{0}",I.JSC$11680_dateTimeSymbols_.TIMEFORMATS[y-8]);else if(y===12)D=I.JSC$11680_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(y===13)D=I.JSC$11680_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Vpe(I,10);return}Z4u(I,D)},SQ=function(I,y){y=String(y);
I=I.JSC$11680_dateTimeSymbols_||pV;if(I.ZERODIGIT!==void 0&&!ZNW){for(var D=[],F=0;F<y.length;F++){var R=y.charCodeAt(F);D.push(48<=R&&R<=57?String.fromCharCode(I.ZERODIGIT+R-48):y.charAt(F))}y=D.join("")}return y},ZNW=!1,ggC=!1,DYc=function(I,y,D,F){D=D.getFullYear();
D<=0&&F&&(D=1-D);return SQ(I,yZW(D,y))},yZW=function(I,y){y==2&&(I%=100);
I<0&&y++;return _.p2(I,y)},tK=function(I){if(!(I.getHours&&I.getSeconds&&I.getMinutes))throw Error("de");
},FCz=function(I,y){tK(y);
y=vZ(y);return I.JSC$11680_dateTimeSymbols_.AMPMS[y>=12&&y<24?1:0]},IXR=function(I,y,D,F,R,O){var w=y.length;
switch(y.charAt(0)){case "G":return D=F.getFullYear()>0?1:0,w>=4?I.JSC$11680_dateTimeSymbols_.ERANAMES[D]:I.JSC$11680_dateTimeSymbols_.ERAS[D];case "y":return DYc(I,w,F,!0);case "Y":return D=(new Date(tpa(F.getFullYear(),F.getMonth(),F.getDate(),I.JSC$11680_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,I.JSC$11680_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),w==2&&(D%=100),SQ(I,yZW(D,w));case "u":return DYc(I,w,F,!1);case "M":a:switch(D=F.getMonth(),w){case 5:w=I.JSC$11680_dateTimeSymbols_.NARROWMONTHS[D];
break a;case 4:w=I.JSC$11680_dateTimeSymbols_.MONTHS[D];break a;case 3:w=I.JSC$11680_dateTimeSymbols_.SHORTMONTHS[D];break a;default:w=SQ(I,_.p2(D+1,w))}return w;case "k":return tK(R),SQ(I,_.p2(vZ(R)||24,w));case "S":return SQ(I,(R.getMilliseconds()/1E3).toFixed(Math.min(3,w)).slice(2)+(w>3?_.p2(0,w-3):""));case "E":return D=F.getDay(),w>=4?I.JSC$11680_dateTimeSymbols_.WEEKDAYS[D]:I.JSC$11680_dateTimeSymbols_.SHORTWEEKDAYS[D];case "a":return FCz(I,R);case "b":return FCz(I,R);case "B":return FCz(I,
R);case "h":return tK(R),SQ(I,_.p2(vZ(R)%12||12,w));case "K":return tK(R),SQ(I,_.p2(vZ(R)%12,w));case "H":return tK(R),SQ(I,_.p2(vZ(R),w));case "c":a:switch(D=F.getDay(),w){case 5:w=I.JSC$11680_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[D];break a;case 4:w=I.JSC$11680_dateTimeSymbols_.STANDALONEWEEKDAYS[D];break a;case 3:w=I.JSC$11680_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[D];break a;default:w=SQ(I,_.p2(D,1))}return w;case "L":a:switch(D=F.getMonth(),w){case 5:w=I.JSC$11680_dateTimeSymbols_.STANDALONENARROWMONTHS[D];
break a;case 4:w=I.JSC$11680_dateTimeSymbols_.STANDALONEMONTHS[D];break a;case 3:w=I.JSC$11680_dateTimeSymbols_.STANDALONESHORTMONTHS[D];break a;default:w=SQ(I,_.p2(D+1,w))}return w;case "Q":return D=Math.floor(F.getMonth()/3),w<4?I.JSC$11680_dateTimeSymbols_.SHORTQUARTERS[D]:I.JSC$11680_dateTimeSymbols_.QUARTERS[D];case "d":return SQ(I,_.p2(F.getDate(),w));case "m":return tK(R),SQ(I,_.p2(R.getMinutes?R.getMinutes():0,w));case "s":return tK(R),SQ(I,_.p2(R.getSeconds(),w));case "v":return(O||PF(D.getTimezoneOffset())).timeZoneId_;
case "V":return I=O||PF(D.getTimezoneOffset()),w<=2?I.timeZoneId_:TVW(I,D)>0?I.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?I.tzNamesExt_.DST_GENERIC_LOCATION:I.tzNamesExt_.DST_GENERIC_LOCATION:I.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?I.tzNamesExt_.STD_GENERIC_LOCATION:I.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return D=tpa(R.getFullYear(),R.getMonth(),R.getDate(),I.JSC$11680_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,I.JSC$11680_dateTimeSymbols_.FIRSTDAYOFWEEK),SQ(I,_.p2(Math.floor(Math.round((D-(new Date((new Date(D)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,w));case "z":return I=O||PF(D.getTimezoneOffset()),w<4?I.tzNames_[TVW(I,D)>0?2:0]:I.tzNames_[TVW(I,D)>0?3:1];case "Z":return y=O||PF(D.getTimezoneOffset()),w<4?(w=-sue(y,D),I=[w<0?"-":"+"],w=Math.abs(w),I.push(_.p2(Math.floor(w/60)%100,2),_.p2(w%60,2)),w=I.join("")):w=SQ(I,egR(sue(y,D))),w;default:return""}};var R2O=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Otz=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Rzq=function(I){this.patternParts_=[];this.JSC$11689_dateTimeSymbols_=pV;if(typeof I=="number"){I>11&&(I=10);if(I<4)var y=this.JSC$11689_dateTimeSymbols_.DATEFORMATS[I];else I<8?y=this.JSC$11689_dateTimeSymbols_.TIMEFORMATS[I-4]:(y=this.JSC$11689_dateTimeSymbols_.DATETIMEFORMATS[I-8],y=y.replace("{1}",this.JSC$11689_dateTimeSymbols_.DATEFORMATS[I-8]),y=y.replace("{0}",this.JSC$11689_dateTimeSymbols_.TIMEFORMATS[I-
8]));LCO(this,y)}else LCO(this,I)},LCO=function(I,y){for(var D=!1,F="",R=0;R<y.length;R++){var O=y.charAt(R);
if(R2O.test(O))for(F.length>0&&(I.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1}),F=""),I.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});R<y.length-1&&y.charAt(R+1)==" ";)R++;else if(D)O=="'"?R+1<y.length&&y.charAt(R+1)=="'"?(F+="'",R++):D=!1:F+=O;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(O)>=0){F.length>0&&(I.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1}),F="");for(var w=y.charAt(R),v=R+1;v<y.length&&y.charAt(v)==w;)v++;w=v-R;w<=0?v=!1:(v="MydhHmsSDkK".indexOf(O),
v=v>0||v==0&&w<3);I.patternParts_.push({text:O,count:w,abutStart:!1,numeric:v});R+=w-1}else O=="'"?R+1<y.length&&y.charAt(R+1)=="'"?(F+="'",R++):D=!0:F+=O}F.length>0&&I.patternParts_.push({text:F,count:0,abutStart:!1,numeric:!1});y=!1;for(D=0;D<I.patternParts_.length;D++)I.patternParts_[D].numeric?!y&&D+1<I.patternParts_.length&&I.patternParts_[D+1].numeric&&(y=!0,I.patternParts_[D].abutStart=!0):y=!1};
Rzq.prototype.parse=function(I,y,D){var F=!1,R=!1;D&&(F=D.predictive||!1,R=D.validate||!1);if(F)for(D=0;D<this.patternParts_.length;D++){var O=this.patternParts_[D];if(O.count>0&&("abBhHkKm".indexOf(O.text.charAt(0))<0||O.count>2||O.abutStart))throw Error("ee`"+O.text.charAt(0));}O=new JZc;D=[0];O.dayPeriodIndex=-1;for(var w=0;w<this.patternParts_.length&&!(F&&D[0]>=I.length);w++){if(this.patternParts_[w].count==0){a:{var v=I;var P=D,K=this.patternParts_[w],r=F;if(K.text.match(R2O)!=null){if(K=P[0],
wSf(v,P),P[0]>K){v=!0;break a}}else{if(v.indexOf(K.text,P[0])==P[0]){P[0]+=K.text.length;v=!0;break a}if(r&&K.text.indexOf(v.substring(P[0]))==0){P[0]+=v.length-P[0];v=!0;break a}}v=!1}if(v)continue;return 0}if(this.patternParts_[w].abutStart){a:{P=I;K=D;r=w;var N=K[0],h=0;for(v=r;v<this.patternParts_.length;v++){var x=this.patternParts_[v],q=x.count;if(q===0)break;if(v==r&&(q-=h,h++,q==0)){v=0;break a}var X=v>r&&x.numeric,f=K[0];if(!vzu(this,P,K,x,q,O,!1)||X&&K[0]-f<q)v=r-1,K[0]=N}v-=r}if(v<=0)return 0;
w+=v-1}else if(!vzu(this,I,D,this.patternParts_[w],0,O,F))return 0}a:{I=R;if(y==null)throw Error("fe");O.era!=void 0&&O.year!=void 0&&O.era==0&&O.year>0&&(O.year=-(O.year-1));O.year!=void 0&&y.setFullYear(O.year);F=y.getDate();y.setDate(1);O.month!=void 0&&y.setMonth(O.month);O.day!=void 0?y.setDate(O.day):(R=mb4(y.getFullYear(),y.getMonth()),y.setDate(F>R?R:F));typeof y.setHours==="function"&&(O.hours==void 0&&(O.hours=y.getHours()),O.hours<12&&(O.ampm!=void 0&&O.ampm>0?O.hours+=12:O.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(O.dayPeriodName)||["night1","night2"].includes(O.dayPeriodName)&&O.hours>=6)&&(O.hours+=12)),y.setHours(O.hours));typeof y.setMinutes==="function"&&O.minutes!=void 0&&y.setMinutes(O.minutes);typeof y.setSeconds==="function"&&O.seconds!=void 0&&y.setSeconds(O.seconds);typeof y.setMilliseconds==="function"&&O.milliseconds!=void 0&&y.setMilliseconds(O.milliseconds);if(I&&(O.year&&O.year!=y.getFullYear()||O.month&&O.month!=
y.getMonth()||O.day&&O.day!=y.getDate()||O.hours&&O.hours>=24||O.minutes&&O.minutes>=60||O.seconds&&O.seconds>=60||O.milliseconds&&O.milliseconds>=1E3))y=!1;else{O.tzOffset!=void 0&&y.setTime(y.getTime()+(O.tzOffset-y.getTimezoneOffset())*60*1E3);O.ambiguousYear&&(I=new Date,I.setFullYear(I.getFullYear()-80),y.getTime()<I.getTime()&&y.setFullYear(I.getFullYear()+100));if(O.dayOfWeek!=void 0)if(O.day==void 0)O=(7+O.dayOfWeek-y.getDay())%7,O>3&&(O-=7),I=y.getMonth(),y.setDate(y.getDate()+O),y.getMonth()!=
I&&y.setDate(y.getDate()+(O>0?-7:7));else if(O.dayOfWeek!=y.getDay()){y=!1;break a}y=!0}}return y?D[0]:0};
var vzu=function(I,y,D,F,R,O,w){wSf(y,D);if(F.numeric&&R>0&&D[0]+R>y.length)return!1;switch(F.text.charAt(0)){case "G":return PZ(y,D,[I.JSC$11689_dateTimeSymbols_.ERAS],function(v){return O.era=v}),!0;
case "M":case "L":return SPn(I,y,D,R,F,O);case "E":return PZ(y,D,[I.JSC$11689_dateTimeSymbols_.WEEKDAYS,I.JSC$11689_dateTimeSymbols_.SHORTWEEKDAYS],function(v){return O.dayOfWeek=v});
case "B":case "b":return R=[],I=[[].concat(I.JSC$11689_dateTimeSymbols_.AMPMS)],R.push("isAm"),R.push("isPm"),y=PZ(y,D,I,function(v){return O.dayPeriodIndex=v},w),O.dayPeriodName=R[O.dayPeriodIndex],w?y:!0;
case "a":return y=PZ(y,D,[I.JSC$11689_dateTimeSymbols_.AMPMS],function(v){return O.ampm=v},w),w?y:!0;
case "y":return tae(I,y,D,F,R,O);case "Q":return PZ(y,D,[I.JSC$11689_dateTimeSymbols_.QUARTERS,I.JSC$11689_dateTimeSymbols_.SHORTQUARTERS],function(v){O.month=v*3;O.day=1});
case "d":return KP(I,y,D,F,R,function(v){O.day=v}),!0;
case "S":return PpR(I,y,D,R,O);case "h":case "K":case "H":case "k":return y=KP(I,y,D,F,R,function(v){O.hours=F.text.charAt(0)==="h"&&v===12?0:v},w),w?y:!0;
case "m":return y=KP(I,y,D,F,R,function(v){O.minutes=v},w),w?y:!0;
case "s":return KP(I,y,D,F,R,function(v){O.seconds=v}),!0;
case "z":case "Z":case "v":return KCR(I,y,D,O);default:return!1}},tae=function(I,y,D,F,R,O){var w=D[0];
R=UD(I,y,D,R);R===null&&(R=UD(I,y,D,0,!0));if(R===null)return!1;R>=0&&D[0]-w==2&&F.count==2?(I=R,y=(new Date).getFullYear()-80,D=y%100,O.ambiguousYear=I==D,I+=Math.floor(y/100)*100+(I<D?100:0),O.year=I):O.year=R;return!0},SPn=function(I,y,D,F,R,O){return R.numeric&&KP(I,y,D,R,F,function(w){O.month=w-1})?!0:PZ(y,D,[I.JSC$11689_dateTimeSymbols_.MONTHS,
I.JSC$11689_dateTimeSymbols_.STANDALONEMONTHS,I.JSC$11689_dateTimeSymbols_.SHORTMONTHS,I.JSC$11689_dateTimeSymbols_.STANDALONESHORTMONTHS],function(w){O.month=w})},PpR=function(I,y,D,F,R){var O=D[0];
I=UD(I,y,D,F);if(I===null)return!1;D=D[0]-O;R.milliseconds=D<3?I*Math.pow(10,3-D):Math.round(I/Math.pow(10,D-3));return!0},KCR=function(I,y,D,F){y.indexOf("GMT",D[0])==D[0]&&(D[0]+=3);
if(D[0]>=y.length)return F.tzOffset=0,!0;var R=D[0],O=UD(I,y,D,0,!0);if(O===null)return!1;if(D[0]<y.length&&y.charAt(D[0])==":"){var w=O*60;D[0]++;O=UD(I,y,D,0);if(O===null)return!1;w+=O}else w=O,w=w<24&&D[0]-R<=3?w*60:w%100+w/100*60;F.tzOffset=-w;return!0},KP=function(I,y,D,F,R,O,w){w=w||!1;
var v=D[0];I=UD(I,y,D,R);if(I===null)return!1;if(w&&D[0]-v<F.count){if(D[0]<y.length)return!1;I*=Math.pow(10,F.count-(D[0]-v))}O(I);return!0},PZ=function(I,y,D,F,R){R=R||!1;
for(var O,w=0;w<D.length;w++){O=y;for(var v=D[w],P=R,K=0,r=null,N=I.substring(O[0]).toLowerCase(),h=0;h<v.length;h++){var x=v[h].toLowerCase();if(P&&x.indexOf(N)==0){K=N.length;r=h;break}v[h].length>K&&N.indexOf(x)==0&&(K=v[h].length,r=h)}r!==null&&(O[0]+=K);O=r;if(O!==null)return F(O),!0}return!1},wSf=function(I,y){(I=I.substring(y[0]).match(Otz))&&(y[0]+=I[0].length)},UD=function(I,y,D,F,R){y=F>0?y.substring(0,D[0]+F):y;
R=R||!1;if(I.JSC$11689_dateTimeSymbols_.ZERODIGIT){F=[];for(var O=D[0];O<y.length;O++){var w=y.charCodeAt(O)-I.JSC$11689_dateTimeSymbols_.ZERODIGIT;F.push(0<=w&&w<=9?String.fromCharCode(w+48):y.charAt(O))}y=F.join("")}else y=y.substring(D[0]);I=y.match(new RegExp("^"+(R?"[+-]?":"")+"\\d+"));if(!I)return null;D[0]+=I[0].length;return parseInt(I[0],10)},JZc=function(){};
JZc.prototype.ambiguousYear=!1;var UYW;
UYW={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 rZW={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}"]};
rZW={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 jPe=function(){var I={type:"unit",style:"narrow"};this.listType_=I&&I.type?I.type:"conjunction";this.listStyle_=I&&I.style?I.style:"long";this.listSymbols_=rZW;I=0;switch(this.listStyle_){case "short":I=1;break;case "narrow":I=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[I];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[I];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[I];this.listEndPattern_=
this.listSymbols_.AND_END[I];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[I];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[I];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[I];this.listEndPattern_=this.listSymbols_.OR_END[I];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[I],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[I],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[I],this.listEndPattern_=this.listSymbols_.UNIT_END[I]}};
jPe.prototype.format=function(I){return ozn(this,I)};
var ozn=function(I,y){var D=y.length;switch(D){case 0:return"";case 1:return String(y[0]);case 2:return I.listTwoPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1]))}for(var F=I.listStartPattern_.replace("{0}",String(y[0])).replace("{1}",String(y[1])),R=2;R<D-1;++R)F=I.listMiddlePattern_.replace("{0}",F).replace("{1}",String(y[R]));return I.listEndPattern_.replace("{0}",F).replace("{1}",String(y[D-1]))};var NPP={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"},h2M=NPP,xYa=NPP;xYa=h2M=NPP;var upP,rt,oO,i$J,jQ,lXc;
_.vF=function(I,y,D,F){var R;if(R=y){a:if(y&&y.length===3){for(R=0;R<3;R++){var O=y[R];if(O<"A"||O>"Z"&&O<"a"||O>"z"){R=!1;break a}}R=!0}else R=!1;R=!R}if(R)throw new TypeError("ge");this.intlCurrencyCode_=y?y.toUpperCase():null;this.currencyStyle_=D||0;this.overrideNumberFormatSymbols_=F||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_=rt(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof I==="number")switch(I){case 1:jQ(this,rt(this).DECIMAL_PATTERN);break;case 2:jQ(this,rt(this).SCIENTIFIC_PATTERN);break;case 3:jQ(this,rt(this).PERCENT_PATTERN);break;case 4:I=rt(this).CURRENCY_PATTERN;y=["0"];if(D=
wt[oO(this)]){D=D[0]&7;if(D>0)for(y.push("."),F=0;F<D;F++)y.push("0");I=I.replace(/0.00/g,y.join(""))}jQ(this,I);break;case 5:lXc(this,1);break;case 6:lXc(this,2);break;default:throw Error("je");}else jQ(this,I)};
upP=!1;rt=function(I){return I.overrideNumberFormatSymbols_||(upP?xYa:h2M)};
oO=function(I){return I.intlCurrencyCode_||rt(I).DEF_CURRENCY_CODE};
i$J=function(I,y){if(y>308)throw Error("ie`"+y);I.maximumFractionDigits_=y;return I};
jQ=function(I,y){var D=[0];I.positivePrefix_=qPz(I,y,D);for(var F=D[0],R=-1,O=0,w=0,v=0,P=-1,K=y.length,r=!0;D[0]<K&&r;D[0]++)switch(y.charAt(D[0])){case "#":w>0?v++:O++;P>=0&&R<0&&P++;break;case "0":if(v>0)throw Error("pe`"+y);w++;P>=0&&R<0&&P++;break;case ",":P>0&&I.groupingArray_.push(P);P=0;break;case ".":if(R>=0)throw Error("qe`"+y);R=O+w+v;break;case "E":if(I.useExponentialNotation_)throw Error("re`"+y);I.useExponentialNotation_=!0;I.minExponentDigits_=0;D[0]+1<K&&y.charAt(D[0]+1)=="+"&&(D[0]++,
I.useSignForPositiveExponent_=!0);for(;D[0]+1<K&&y.charAt(D[0]+1)=="0";)D[0]++,I.minExponentDigits_++;if(O+w<1||I.minExponentDigits_<1)throw Error("se`"+y);r=!1;break;default:D[0]--,r=!1}w==0&&O>0&&R>=0&&(w=R,w==0&&w++,v=O-w,O=w-1,w=1);if(R<0&&v>0||R>=0&&(R<O||R>O+w)||P==0)throw Error("te`"+y);v=O+w+v;I.maximumFractionDigits_=R>=0?v-R:0;R>=0&&(I.minimumFractionDigits_=O+w-R,I.minimumFractionDigits_<0&&(I.minimumFractionDigits_=0));I.minimumIntegerDigits_=(R>=0?R:v)-O;I.useExponentialNotation_&&(I.maximumIntegerDigits_=
O+I.minimumIntegerDigits_,I.maximumFractionDigits_==0&&I.minimumIntegerDigits_==0&&(I.minimumIntegerDigits_=1));I.groupingArray_.push(Math.max(0,P));I.decimalSeparatorAlwaysShown_=R==0||R==v;F=D[0]-F;I.positiveSuffix_=qPz(I,y,D);D[0]<y.length&&y.charAt(D[0])==";"?(D[0]++,I.multiplier_!=1&&(I.negativePercentSignExpected_=!0),I.negativePrefix_=qPz(I,y,D),D[0]+=F,I.negativeSuffix_=qPz(I,y,D)):(I.negativePrefix_+=I.positivePrefix_,I.negativeSuffix_+=I.positiveSuffix_)};
lXc=function(I,y){I.compactStyle_=y;jQ(I,rt(I).DECIMAL_PATTERN);I.minimumFractionDigits_=0;i$J(I,2);if(I.minimumFractionDigits_>0)throw Error("he");I.significantDigits_=2};
_.vF.prototype.parse=function(I,y){y=y||[0];if(this.compactStyle_!==0)throw Error("ke");I=I.replace(/ |\u202f/g,"\u00a0");var D=I.indexOf(this.positivePrefix_,y[0])==y[0],F=I.indexOf(this.negativePrefix_,y[0])==y[0];D&&F&&(this.positivePrefix_.length>this.negativePrefix_.length?F=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(D=!1));D?y[0]+=this.positivePrefix_.length:F&&(y[0]+=this.negativePrefix_.length);if(I.indexOf(rt(this).INFINITY,y[0])==y[0]){y[0]+=rt(this).INFINITY.length;var R=
Infinity}else{R=I;var O=!1,w=!1,v=!1,P=-1,K=1,r=rt(this).DECIMAL_SEP,N=rt(this).GROUP_SEP,h=rt(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");N=N.replace(/\u202f/g,"\u00a0");for(var x="";y[0]<R.length;y[0]++){var q=R.charAt(y[0]),X=EzM(this,q);if(X>=0&&X<=9)x+=X,v=!0;else if(q==r.charAt(0)){if(O||w)break;x+=".";O=!0}else if(q==N.charAt(0)&&("\u00a0"!=N.charAt(0)||y[0]+1<R.length&&EzM(this,R.charAt(y[0]+1))>=0)){if(O||w)break}else if(q==h.charAt(0)){if(w)break;x+="E";w=!0;P=y[0]}else if(q==
"+"||q=="-"){if(v&&P!=y[0]-1)break;x+=q}else if(this.multiplier_==1&&q==rt(this).PERCENT.charAt(0)){if(K!=1)break;K=100;if(v){y[0]++;break}}else if(this.multiplier_==1&&q==rt(this).PERMILL.charAt(0)){if(K!=1)break;K=1E3;if(v){y[0]++;break}}else break}this.multiplier_!=1&&(K=this.multiplier_);R=parseFloat(x)/K}if(D){if(I.indexOf(this.positiveSuffix_,y[0])!=y[0])return NaN;y[0]+=this.positiveSuffix_.length}else if(F){if(I.indexOf(this.negativeSuffix_,y[0])!=y[0])return NaN;y[0]+=this.negativeSuffix_.length}return F?
-R:R};
_.vF.prototype.format=function(I){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(I))return rt(this).NAN;var y=[];var D=I;if(this.compactStyle_==0)D=NL;else{D=Math.abs(D);var F=GjR(this,D<=1?0:XSW(D)).divisorBase;D=GjR(this,F+XSW(QPM(this,hK(D,-F)).intValue))}I=hK(I,-D.divisorBase);(F=I<0||I==0&&1/I<0)?D.negative_prefix?y.push(D.negative_prefix):(y.push(D.prefix),y.push(this.negativePrefix_)):(y.push(D.prefix),y.push(this.positivePrefix_));if(isFinite(I))if(I*=
F?-1:1,I*=this.multiplier_,this.useExponentialNotation_){var R=I;if(R==0)YPn(this,R,this.minimumIntegerDigits_,y),fXP(this,0,y);else{var O=Math.floor(Math.log(R)/Math.log(10)+2E-15);R=hK(R,-O);var w=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(w=O%this.maximumIntegerDigits_,w<0&&(w=this.maximumIntegerDigits_+w),R=hK(R,w),O-=w,w=1):this.minimumIntegerDigits_<1?(O++,R=hK(R,-1)):(O-=this.minimumIntegerDigits_-1,R=hK(R,this.minimumIntegerDigits_-
1));YPn(this,R,w,y);fXP(this,O,y)}}else YPn(this,I,this.minimumIntegerDigits_,y);else y.push(rt(this).INFINITY);F?D.negative_suffix?y.push(D.negative_suffix):(isFinite(I)&&y.push(D.suffix),y.push(this.negativeSuffix_)):(isFinite(I)&&y.push(D.suffix),y.push(this.positiveSuffix_));return y.join("")};
var QPM=function(I,y){var D=hK(y,I.maximumFractionDigits_);I.significantDigits_>0&&(D=nza(D,I.significantDigits_,I.maximumFractionDigits_));D=Math.round(D);if(isFinite(D)){var F=Math.floor(hK(D,-I.maximumFractionDigits_));D=Math.floor(D-hK(F,I.maximumFractionDigits_));if(D<0||D>=hK(1,I.maximumFractionDigits_))F=Math.round(y),D=0}else F=y,D=0;return{intValue:F,fracValue:D}},YPn=function(I,y,D,F){if(I.minimumFractionDigits_>I.maximumFractionDigits_)throw Error("me");
F||(F=[]);y=QPM(I,y);var R=y.intValue,O=y.fracValue,w=I.minimumFractionDigits_>0||O>0||!1;y=I.minimumFractionDigits_;w&&(y=I.minimumFractionDigits_);for(var v="",P=R;P>1E20;)v="0"+v,P=Math.round(hK(P,-1));v=P+v;var K=rt(I).DECIMAL_SEP;P=rt(I).ZERO_DIGIT.codePointAt(0);var r=v.length,N=0;if(R>0||D>0){for(R=r;R<D;R++)F.push(String.fromCodePoint(P));if(I.groupingArray_.length>=2)for(D=1;D<I.groupingArray_.length;D++)N+=I.groupingArray_[D];D=r-N;if(D>0){R=I.groupingArray_;N=r=0;for(var h,x=rt(I).GROUP_SEP,
q=v.length,X=0;X<q;X++)if(F.push(String.fromCodePoint(P+Number(v.charAt(X)))),q-X>1)if(h=R[N],X<D){var f=D-X;(h===1||h>0&&f%h===1)&&F.push(x)}else N<R.length&&(X===D?N+=1:h===X-D-r+1&&(F.push(x),r+=h,N+=1))}else{D=v;v=I.groupingArray_;R=rt(I).GROUP_SEP;h=D.length;x=[];for(r=v.length-1;r>=0&&h>0;r--){N=v[r];for(q=0;q<N&&h-q-1>=0;q++)x.push(String.fromCodePoint(P+Number(D.charAt(h-q-1))));h-=N;h>0&&x.push(R)}F.push.apply(F,x.reverse())}}else w||F.push(String.fromCodePoint(P));(I.decimalSeparatorAlwaysShown_||
w)&&F.push(K);O=String(O);w=O.split("e+");w.length==2&&(O=String(nza(parseFloat(w[0]),I.significantDigits_,1)),O=O.replace(".",""),O+=(0,_.zDG)("0",parseInt(w[1],10)-O.length+1));I.maximumFractionDigits_+1>O.length&&(O="1"+(0,_.zDG)("0",I.maximumFractionDigits_-O.length)+O);for(I=O.length;O.charAt(I-1)=="0"&&I>y+1;)I--;for(y=1;y<I;y++)F.push(String.fromCodePoint(P+Number(O.charAt(y))))},fXP=function(I,y,D){D.push(rt(I).EXP_SYMBOL);
y<0?(y=-y,D.push(rt(I).MINUS_SIGN)):I.useSignForPositiveExponent_&&D.push(rt(I).PLUS_SIGN);y=""+y;for(var F=rt(I).ZERO_DIGIT,R=y.length;R<I.minExponentDigits_;R++)D.push(F);I=F.codePointAt(0)-pSM;for(F=0;F<y.length;F++)D.push(String.fromCodePoint(I+y.codePointAt(F)))},EzM=function(I,y){y=y.codePointAt(0);
if(48<=y&&y<58)return y-48;I=rt(I).ZERO_DIGIT.codePointAt(0);return I<=y&&y<I+10?y-I:-1},pSM="0".codePointAt(0),qPz=function(I,y,D){for(var F="",R=!1,O=y.length;D[0]<O;D[0]++){var w=y.charAt(D[0]);
if(w=="'")D[0]+1<O&&y.charAt(D[0]+1)=="'"?(D[0]++,F+="'"):R=!R;else if(R)F+=w;else switch(w){case "#":case "0":case ",":case ".":case ";":return F;case "\u00a4":if(D[0]+1<O&&y.charAt(D[0]+1)=="\u00a4")D[0]++,F+=oO(I);else switch(I.currencyStyle_){case 0:w=oO(I);F+=w in wt?wt[w][1]:w;break;case 2:w=oO(I);var v=wt[w];F+=v?w==v[1]?w:w+" "+v[1]:w;break;case 1:w=oO(I),F+=w in wt?wt[w][2]:w}break;case "%":if(!I.negativePercentSignExpected_&&I.multiplier_!=1)throw Error("ne");if(I.negativePercentSignExpected_&&
I.multiplier_!=100)throw Error("oe");I.multiplier_=100;I.negativePercentSignExpected_=!1;F+=rt(I).PERCENT;break;case "\u2030":if(!I.negativePercentSignExpected_&&I.multiplier_!=1)throw Error("ne");if(I.negativePercentSignExpected_&&I.multiplier_!=1E3)throw Error("oe");I.multiplier_=1E3;I.negativePercentSignExpected_=!1;F+=rt(I).PERMILL;break;default:F+=w}}return F},NL={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},GjR=function(I,y){I=I.compactStyle_==1?JK.COMPACT_DECIMAL_SHORT_PATTERN:JK.COMPACT_DECIMAL_LONG_PATTERN;I==null&&(I=JK.COMPACT_DECIMAL_SHORT_PATTERN);if(y<3)return NL;y=Math.min(14,y);var D=I[hK(1,y)];for(--y;!D&&y>=3;)D=I[hK(1,y)],y--;if(!D)return NL;D=D.other;var F=I="",R=D.indexOf(";");R>=0&&(D=D.substring(0,R),R=D.substring(R+1))&&(F=/([^0]*)(0+)(.*)/.exec(R),I=F[1],F=F[3]);return D&&D!="0"?(D=/([^0]*)(0+)(.*)/.exec(D))?{divisorBase:y+
1-(D[2].length-1),negative_prefix:I,negative_suffix:F,prefix:D[1],suffix:D[3]}:NL:NL},XSW=function(I){if(!isFinite(I))return I>0?I:0;
for(var y=0;(I/=10)>=1;)y++;return y},hK=function(I,y){if(!I||!isFinite(I)||y==0)return I;
I=String(I).split("e");return parseFloat(I[0]+"e"+(parseInt(I[1]||0,10)+y))},mYO=function(I,y){return I&&isFinite(I)?hK(Math.round(hK(I,y)),-y):I},nza=function(I,y,D){if(!I)return I;
y=y-XSW(I)-1;return y<-D?mYO(I,-D):mYO(I,y)};var MaO=function(I){return I%10==1&&I%100!=11?"one":I%10==2&&I%100!=12?"two":I%10==3&&I%100!=13?"few":"other"},z2n=MaO;
z2n=MaO;var kjn=function(I,y){var D=I|0;if(void 0===y){y=Math;var F=y.min,R=I+"",O=R.indexOf(".");y=F.call(y,O===-1?0:R.length-O-1,3)}F=Math.pow(10,y);I={v:y,f:(I*F|0)%F};return D==1&&I.v==0?"one":"other"},wY=kjn;
wY=kjn;var WCR=function(I){this.JSC$11732_pattern_=I;this.parsedPattern_=this.literals_=this.initialLiterals_=null;I=h2M;var y=JK;if(dYn!==I||aXe!==y)dYn=I,aXe=y,cZM=new _.vF(1);this.numberFormatter_=cZM},dYn=null,aXe=null,cZM=null,Cpn=RegExp("'([{}#].*?)'","g"),BPM=RegExp("''","g");
WCR.prototype.format=function(I){if(this.JSC$11732_pattern_){this.initialLiterals_=[];var y=itu(this,this.JSC$11732_pattern_);this.parsedPattern_=AZG(this,y);this.JSC$11732_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.C5(this.initialLiterals_),y=[],$Yg(this,this.parsedPattern_,I,!1,y),I=y.join("");this.literals_.length>0;)I=I.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else I="";return I};
var $Yg=function(I,y,D,F,R){for(var O=0;O<y.length;O++)switch(y[O].type){case 4:R.push(y[O].value);break;case 3:var w=y[O].value;var v=I,P=R,K=D[w];K===void 0?P.push("Undefined parameter - "+w):(v.literals_.push(K),P.push(v.buildPlaceholder_(v.literals_)));break;case 2:w=y[O].value;v=I;P=D;K=F;var r=R,N=w.argumentIndex;P[N]===void 0?r.push("Undefined parameter - "+N):(N=w[P[N]],N===void 0&&(N=w.other),$Yg(v,N,P,K,r));break;case 0:w=y[O].value;btM(I,w,D,wY,F,R);break;case 1:w=y[O].value,btM(I,w,D,
z2n,F,R)}},btM=function(I,y,D,F,R,O){var w=y.argumentIndex,v=y.argumentOffset,P=+D[w];
isNaN(P)?O.push("Undefined or invalid parameter - "+w):(v=P-v,w=y[D[w]],w===void 0&&(F=F(Math.abs(v)),w=y[F],w===void 0&&(w=y.other)),y=[],$Yg(I,w,D,R,y),D=y.join(""),R?O.push(D):(I=I.numberFormatter_.format(v),O.push(D.replace(/#/g,I))))},itu=function(I,y){var D=I.initialLiterals_,F=I.buildPlaceholder_.bind(I);
y=y.replace(BPM,function(){D.push("'");return F(D)});
return y=y.replace(Cpn,function(R,O){D.push(O);return F(D)})},Htf=function(I){var y=0,D=[],F=[],R=/[{}]/g;
R.lastIndex=0;for(var O;O=R.exec(I);){var w=O.index;O[0]=="}"?(D.pop(),D.length==0&&(O={type:1},O.value=I.substring(y,w),F.push(O),y=w+1)):(D.length==0&&(y=I.substring(y,w),y!=""&&F.push({type:0,value:y}),y=w+1),D.push("{"))}I=I.substring(y);I!=""&&F.push({type:0,value:I});return F},e2u=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,TPf=/^\s*(\w+)\s*,\s*selectordinal\s*,/,sPP=/^\s*(\w+)\s*,\s*select\s*,/,AZG=function(I,y){var D=[];
y=Htf(y);for(var F=0;F<y.length;F++){var R={};if(0==y[F].type)R.type=4,R.value=y[F].value;else if(1==y[F].type){var O=y[F].value;switch(e2u.test(O)?0:TPf.test(O)?1:sPP.test(O)?2:/^\s*\w+\s*/.test(O)?3:5){case 2:R.type=2;R.value=Vau(I,y[F].value);break;case 0:R.type=0;R.value=ZtG(I,y[F].value);break;case 1:R.type=1;R.value=gzn(I,y[F].value);break;case 3:R.type=3,R.value=y[F].value}}D.push(R)}return D},Vau=function(I,y){var D="";
y=y.replace(sPP,function(v,P){D=P;return""});
var F={};F.argumentIndex=D;y=Htf(y);for(var R=0;R<y.length;){var O=y[R].value;R++;var w=void 0;1==y[R].type&&(w=AZG(I,y[R].value));F[O.replace(/\s/g,"")]=w;R++}return F},ZtG=function(I,y){var D="",F=0;
y=y.replace(e2u,function(P,K,r){D=K;r&&(F=parseInt(r,10));return""});
var R={};R.argumentIndex=D;R.argumentOffset=F;y=Htf(y);for(var O=0;O<y.length;){var w=y[O].value;O++;var v=void 0;1==y[O].type&&(v=AZG(I,y[O].value));R[w.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=v;O++}return R},gzn=function(I,y){var D="";
y=y.replace(TPf,function(v,P){D=P;return""});
var F={};F.argumentIndex=D;F.argumentOffset=0;y=Htf(y);for(var R=0;R<y.length;){var O=y[R].value;R++;var w=void 0;1==y[R].type&&(w=AZG(I,y[R].value));F[O.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=w;R++}return F};
WCR.prototype.buildPlaceholder_=function(I){return"\ufddf_"+(I.length-1).toString(10)+"_"};var WfJ=function(){var I={style:1},y=IyO;this.style_=(I==null?void 0:I.style)||0;this.durationSymbols_=y||UYW},yUa=function(I,y){switch(y){default:case "years":return I.durationSymbols_.YEAR;
case "months":return I.durationSymbols_.MONTH;case "weeks":return I.durationSymbols_.WEEK;case "days":return I.durationSymbols_.DAY;case "hours":return I.durationSymbols_.HOUR;case "minutes":return I.durationSymbols_.MINUTE;case "seconds":return I.durationSymbols_.SECOND}},xF=function(I,y,D){a:{D=yUa(I,D);
switch(I.style_){case 1:if(D.LONG!=void 0){I=D.LONG;break a}case 2:if(D.NARROW!=void 0){I=D.NARROW;break a}default:I=D.SHORT;break a}I=void 0}return I?(new WCR("{DURATION_VALUE,plural,"+I+"}")).format({DURATION_VALUE:y}):""};
WfJ.prototype.format=function(I){var y=[],D=I.years,F=I.months,R=I.weeks,O=I.days,w=I.hours,v=I.minutes;I=I.seconds;D!=null&&y.push(xF(this,D,"years"));F!=null&&y.push(xF(this,F,"months"));R!=null&&y.push(xF(this,R,"weeks"));O!=null&&y.push(xF(this,O,"days"));w!=null&&y.push(xF(this,w,"hours"));v!=null&&y.push(xF(this,v,"minutes"));I!=null&&y.push(xF(this,I,"seconds"));return(new jPe).format(y)};var D5f;
D5f={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 y55=function(){this.rdtfSymbols_=FKe||D5f;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
y55.prototype.format=function(I,y){a:{y=Rbu(this,y);switch(this.style_){case 2:if(y.NARROW!=void 0){y=y.NARROW;break a}case 1:if(y.SHORT!=void 0){y=y.SHORT;break a}default:y=y.LONG;break a}y=void 0}if(!this.alwaysNumeric_&&y&&y.R&&y.R[""+I])I=y.R[""+I];else if(y){var D=Math.abs(I);I=(new WCR("{N,plural,"+(I>0||I==0&&1/I==Infinity?y.F:y.P)+"}")).format({N:D})}else I="";return I};
var Rbu=function(I,y){switch(y){default:case 0:return I.rdtfSymbols_.YEAR;case 1:return I.rdtfSymbols_.QUARTER;case 2:return I.rdtfSymbols_.MONTH;case 3:return I.rdtfSymbols_.WEEK;case 4:return I.rdtfSymbols_.DAY;case 5:return I.rdtfSymbols_.HOUR;case 6:return I.rdtfSymbols_.MINUTE;case 7:return I.rdtfSymbols_.SECOND}};lwH.prototype.clone=function(){return new lwH(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
lwH.prototype.equals=function(I){return this.x0==I.x0&&this.y0==I.y0&&this.x1==I.x1&&this.y1==I.y1&&this.x2==I.x2&&this.y2==I.y2&&this.x3==I.x3&&this.y3==I.y3};
var OVu=function(I,y){if(y==0)return I.x0;if(y==1)return I.x3;var D=VH(I.x0,I.x1,y),F=VH(I.x1,I.x2,y);I=VH(I.x2,I.x3,y);D=VH(D,F,y);F=VH(F,I,y);return VH(D,F,y)},LKf=function(I,y){var D=(y-I.x0)/(I.x3-I.x0);
if(D<=0)return 0;if(D>=1)return 1;for(var F=0,R=1,O=0,w=0;w<8;w++){O=OVu(I,D);var v=(OVu(I,D+1E-6)-O)/1E-6;if(Math.abs(O-y)<1E-6)return D;if(Math.abs(v)<1E-6)break;else O<y?F=D:R=D,D-=(O-y)/v}for(w=0;Math.abs(O-y)>1E-6&&w<8;w++)O<y?(F=D,D=(D+R)/2):(R=D,D=(D+F)/2),O=OVu(I,D);return D};var l8=function(){_.Zw.call(this);this.JSC$11753_name_="closure_frame"+JUn++;this.iframesForDisposal_=[];w_n[this.JSC$11753_name_]=this},u8;
_.EI(l8,_.Zw);var w_n={},JUn=0,vwn=function(I,y){var D=CG(I);n7M(y,function(F,R){Array.isArray(F)||(F=[F]);_.hG(F,function(O){O=D.JSC$9604_createDom("INPUT",{type:"hidden",name:R,value:O});I.appendChild(O)})})};
_.L=l8.prototype;_.L.JSC$11755_form_=null;_.L.JSC$11755_iframe_=null;_.L.iframeName_=null;_.L.nextIframeId_=0;_.L.JSC$11755_active_=!1;_.L.complete_=!1;_.L.success_=!1;_.L.lastContent_=null;_.L.JSC$11755_lastErrorCode_=0;_.L.iframeDisposalTimer_=null;
_.L.send=function(I,y,D,F){if(this.JSC$11755_active_)throw Error("ue");I=new _.Pg(I);y=y?y.toUpperCase():"GET";D&&_.M2(I);u8||(u8=_.y1("FORM"),u8.acceptCharset="utf-8",D=u8.style,D.position="absolute",D.visibility="hidden",D.top=D.left="-10px",D.width=D.height="10px",D.overflow="hidden",document.body.appendChild(u8));this.JSC$11755_form_=u8;y=="GET"&&vwn(this.JSC$11755_form_,I.JSC$10308_queryData_);F&&vwn(this.JSC$11755_form_,F);D=I.toString();D=vkq(D);F=this.JSC$11755_form_;D=_.IB(ia(D));D!==void 0&&
(F.action=D);this.JSC$11755_form_.method=y;SAR(this);t5z(this)};
_.L.abort=function(I){if(this.JSC$11755_active_){var y=qL(this);if(y)if(TI(y))y.removeAllListeners(void 0);else if(y=s5(y)){var D=0,F;for(F in y.listeners)for(var R=y.listeners[F].concat(),O=0;O<R.length;++O)iV(R[O])&&++D}this.success_=this.JSC$11755_active_=this.complete_=!1;this.JSC$11755_lastErrorCode_=I||7;this.dispatchEvent("abort");P9f(this)}};
_.L.disposeInternal=function(){this.JSC$11755_active_&&this.abort();l8.superClass_.disposeInternal.call(this);this.JSC$11755_iframe_&&KK_(this);t5z(this);this.JSC$11755_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11755_form_=null;this.JSC$11755_lastErrorCode_=0;delete w_n[this.JSC$11753_name_]};
_.L.isComplete=function(){return this.complete_};
_.L.isSuccess=function(){return this.success_};
_.L.isActive=function(){return this.JSC$11755_active_};
_.L.getResponseText=function(){return this.lastContent_};
_.L.getLastError=function(){return _.SJG(this.JSC$11755_lastErrorCode_)};
var SAR=function(I){I.JSC$11755_active_=!0;I.complete_=!1;I.JSC$11755_lastErrorCode_=0;I.iframeName_=I.JSC$11753_name_+"_"+(I.nextIframeId_++).toString(36);I.JSC$11755_iframe_=CG(I.JSC$11755_form_).JSC$9604_createDom("IFRAME",{name:I.iframeName_,id:I.iframeName_});var y=I.JSC$11755_iframe_.style;y.visibility="hidden";y.width=y.height="10px";y.display="none";_.cr?y.marginTop=y.marginLeft="-10px":(y.position="absolute",y.top=y.left="-10px");CG(I.JSC$11755_form_).JSC$9602_document_.body.appendChild(I.JSC$11755_iframe_);
y=I.iframeName_+"_inner";var D=ZGG(I.JSC$11755_iframe_);if(document.baseURI){var F=Xp(y);F='<head><base href="'+Xp(document.baseURI)+'"></head><body><iframe id="'+F+'" name="'+F+'"></iframe>';F=Fy(F)}else F=Xp(y),F=Fy('<body><iframe id="'+F+'" name="'+F+'"></iframe>');D.write(RB(F));_.bV(D.getElementById(y),"load",I.onIframeLoaded_,!1,I);F=aD("TEXTAREA",I.JSC$11755_form_);for(var R=0,O=F.length;R<O;R++){var w=F[R].value;RBa(F[R])!=w&&(_.wC(F[R],w),F[R].value=w)}F=D.importNode(I.JSC$11755_form_,!0);
F.target=y;F.action=I.JSC$11755_form_.action;D.body.appendChild(F);R=aD("SELECT",I.JSC$11755_form_);O=aD("SELECT",F);w=0;for(var v=R.length;w<v;w++)for(var P=aD("OPTION",R[w]),K=aD("OPTION",O[w]),r=0,N=P.length;r<N;r++)K[r].selected=P[r].selected;R=aD("INPUT",I.JSC$11755_form_);O=aD("INPUT",F);w=0;for(v=R.length;w<v;w++)if(R[w].type=="file"&&R[w].value!=O[w].value){I.JSC$11755_form_.target=y;F=I.JSC$11755_form_;break}try{I.errorHandled_=!1,F.submit(),D.close(),_.Wr&&setTimeout(I.testForFirefoxSilentError_.bind(I),
250)}catch(h){_.V1(D.getElementById(y),"load",I.onIframeLoaded_,!1,I),D.close(),ED(I,2)}};
l8.prototype.onIframeLoaded_=function(){_.V1(qL(this),"load",this.onIframeLoaded_,!1,this);try{var I=this.JSC$11755_iframe_?ZGG(qL(this)):null;this.complete_=!0;this.JSC$11755_active_=!1;try{var y=I.body;this.lastContent_=y.textContent||y.innerText}catch(R){var D=1}var F;D||typeof this.errorChecker_!="function"||(F=this.errorChecker_(I))&&(D=4);D?ED(this,D):(this.success_=!0,this.JSC$11755_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),P9f(this))}catch(R){ED(this,1)}};
var ED=function(I,y){I.errorHandled_||(I.success_=!1,I.JSC$11755_active_=!1,I.complete_=!0,I.JSC$11755_lastErrorCode_=y,I.dispatchEvent("complete"),I.dispatchEvent("error"),P9f(I),I.errorHandled_=!0)},P9f=function(I){KK_(I);
t5z(I);I.JSC$11755_form_=null;I.dispatchEvent("ready")},KK_=function(I){var y=I.JSC$11755_iframe_;
y&&(y.onreadystatechange=null,y.onload=null,y.onerror=null,I.iframesForDisposal_.push(y));I.iframeDisposalTimer_&&(clearTimeout(I.iframeDisposalTimer_),I.iframeDisposalTimer_=null);_.Wr?I.iframeDisposalTimer_=setTimeout(I.disposeIframes_.bind(I),2E3):I.disposeIframes_();I.JSC$11755_iframe_=null;I.iframeName_=null};
l8.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var I=this.iframesForDisposal_.pop();_.dM(I)}};
var t5z=function(I){I.JSC$11755_form_&&I.JSC$11755_form_==u8&&_.RR(I.JSC$11755_form_)},qL=function(I){return I.JSC$11755_iframe_?ZGG(I.JSC$11755_iframe_).getElementById(I.iframeName_+"_inner"):null};
l8.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11755_active_){var I=this.JSC$11755_iframe_?ZGG(qL(this)):null;I&&!sdL(I,"documentUri")?(_.V1(qL(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?ED(this,3):ED(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.G5=function(I){return I=="\r"||I=="\n"||I==" "||I=="\t"};_.eu.prototype.isInputValid=function(){return this.streamState_!=3};
_.eu.prototype.done=function(){return this.streamState_===2};
var XE=function(I,y,D){I.streamState_=3;I.errorMessage_="The stream is broken @"+I.JSC$11757_pos_+"/"+D+". With input:\n"+y;throw Error(I.errorMessage_);};
_.eu.prototype.acceptsBinaryInput=function(){return!1};
_.eu.prototype.parse=function(I){function y(){for(;N<I.length;)if(_.G5(I[N]))N++,O.JSC$11757_pos_++;else break;return N<P}
function D(){for(var x;;){x=I[N++];if(!x)break;O.JSC$11757_pos_++;switch(O.state_){case 0:x==="{"?O.state_=2:x==="["?O.state_=4:_.G5(x)||XE(O,I,N);continue;case 7:case 2:if(_.G5(x))continue;if(O.state_===7)w.push(8);else if(x==="}"){R("{}");O.state_=F();continue}else w.push(3);x==='"'?O.state_=6:XE(O,I,N);continue;case 8:case 3:if(_.G5(x))continue;x===":"?(O.state_===3&&(w.push(3),O.depth_++),O.state_=1):x==="}"?(O.depth_--,R(),O.state_=F()):x===","?(O.state_===3&&w.push(3),O.state_=7):XE(O,I,N);
continue;case 4:case 1:if(_.G5(x))continue;if(O.state_===4)if(O.depth_++,O.state_=1,x==="]"){O.depth_--;if(O.depth_===0){O.state_=5;return}R("[]");O.state_=F();continue}else w.push(5);x==='"'?O.state_=6:x==="{"?O.state_=2:x==="["?O.state_=4:x==="t"?O.state_=9:x==="f"?O.state_=12:x==="n"?O.state_=16:x!=="-"&&("0123456789".indexOf(x)!==-1?O.state_=20:XE(O,I,N));continue;case 5:if(x===",")w.push(5),O.state_=1,O.depth_===1&&(r=N);else if(x==="]"){O.depth_--;if(O.depth_===0)return;R();O.state_=F()}else if(_.G5(x))continue;
else XE(O,I,N);continue;case 6:var q=N;a:for(;;){for(;O.unicodeCount_>0;)if(x=I[N++],O.unicodeCount_===4?O.unicodeCount_=0:O.unicodeCount_++,!x)break a;if(x==='"'&&!O.slashed_){O.state_=F();break}if(x==="\\"&&!O.slashed_&&(O.slashed_=!0,x=I[N++],!x))break;if(O.slashed_)if(O.slashed_=!1,x==="u"&&(O.unicodeCount_=1),x=I[N++])continue;else break;v.lastIndex=N;x=v.exec(I);if(!x){N=I.length+1;break}N=x.index+1;x=I[x.index];if(!x)break}O.JSC$11757_pos_+=N-q;continue;case 9:if(!x)continue;x==="r"?O.state_=
10:XE(O,I,N);continue;case 10:if(!x)continue;x==="u"?O.state_=11:XE(O,I,N);continue;case 11:if(!x)continue;x==="e"?O.state_=F():XE(O,I,N);continue;case 12:if(!x)continue;x==="a"?O.state_=13:XE(O,I,N);continue;case 13:if(!x)continue;x==="l"?O.state_=14:XE(O,I,N);continue;case 14:if(!x)continue;x==="s"?O.state_=15:XE(O,I,N);continue;case 15:if(!x)continue;x==="e"?O.state_=F():XE(O,I,N);continue;case 16:if(!x)continue;x==="u"?O.state_=17:XE(O,I,N);continue;case 17:if(!x)continue;x==="l"?O.state_=18:
XE(O,I,N);continue;case 18:if(!x)continue;x==="l"?O.state_=F():XE(O,I,N);continue;case 19:x==="."?O.state_=20:XE(O,I,N);continue;case 20:if("0123456789.eE+-".indexOf(x)!==-1)continue;else N--,O.JSC$11757_pos_--,O.state_=F();continue;default:XE(O,I,N)}}}
function F(){var x=w.pop();return x!=null?x:1}
function R(x){O.depth_>1||(x||(x=r===-1?O.JSC$11757_buffer_+I.substring(K,N):I.substring(r,N)),O.deliverMessageAsRawString_?O.result_.push(x):O.result_.push(JSON.parse(x)),r=N)}
for(var O=this,w=O.stack_,v=O.stringInputPattern_,P=I.length,K=0,r=-1,N=0;N<P;)switch(O.streamState_){case 3:return XE(O,I,N),null;case 2:return y()&&XE(O,I,N),null;case 0:if(y()){var h=I[N++];O.JSC$11757_pos_++;if(h==="["){O.streamState_=1;K=N;O.state_=4;continue}else XE(O,I,N)}return null;case 1:return D(),O.depth_===0&&O.state_==5?(O.streamState_=2,O.JSC$11757_buffer_=I.substring(N)):O.JSC$11757_buffer_=r===-1?O.JSC$11757_buffer_+I.substring(K):I.substring(r),O.result_.length>0?(h=O.result_,O.result_=
[],h):null}return null};_.EI(_.Tt,yx);s1.prototype.getValue=function(){return this.JSC$11764_value_};
s1.prototype.clone=function(){return new s1(this.JSC$11764_key_,this.JSC$11764_value_)};var QF=function(I){this.nodes_=[];if(I)a:{if(I instanceof QF){var y=I.getKeys();I=I.getValues();if(this.getCount()<=0){for(var D=this.nodes_,F=0;F<y.length;F++)D.push(new s1(y[F],I[F]));break a}}else y=_.e$.getKeys(I),I=_.e$.getValues(I);for(D=0;D<y.length;D++)this.insert(y[D],I[D])}};
_.L=QF.prototype;_.L.insert=function(I,y){var D=this.nodes_;D.push(new s1(I,y));I=D.length-1;y=this.nodes_;for(D=y[I];I>0;){var F=I-1>>1;if(y[F].JSC$11764_key_>D.JSC$11764_key_)y[I]=y[F],I=F;else break}y[I]=D};
_.L.remove=function(){var I=this.nodes_,y=I.length,D=I[0];if(!(y<=0)){if(y==1)I.length=0;else{I[0]=I.pop();I=0;y=this.nodes_;for(var F=y.length,R=y[I];I<F>>1;){var O=I*2+1,w=I*2+2;O=w<F&&y[w].JSC$11764_key_<y[O].JSC$11764_key_?w:O;if(y[O].JSC$11764_key_>R.JSC$11764_key_)break;y[I]=y[O];I=O}y[I]=R}return D.getValue()}};
_.L.peek=function(){var I=this.nodes_;if(I.length!=0)return I[0].getValue()};
_.L.getValues=function(){for(var I=this.nodes_,y=[],D=I.length,F=0;F<D;F++)y.push(I[F].getValue());return y};
_.L.getKeys=function(){for(var I=this.nodes_,y=[],D=I.length,F=0;F<D;F++)y.push(I[F].JSC$11764_key_);return y};
_.L.containsValue=function(I){return this.nodes_.some(function(y){return y.getValue()==I})};
_.L.containsKey=function(I){return this.nodes_.some(function(y){return y.JSC$11764_key_==I})};
_.L.clone=function(){return new QF(this)};
_.L.getCount=function(){return this.nodes_.length};
_.L.isEmpty=function(){return this.nodes_.length===0};
_.L.clear=function(){this.nodes_.length=0};_.L=_.VG.prototype;_.L.getCount=function(){return this.size};
_.L.getValues=function(){YF(this);for(var I=[],y=0;y<this.JSC$11770_keys_.length;y++)I.push(this.JSC$11770_map_[this.JSC$11770_keys_[y]]);return I};
_.L.getKeys=function(){YF(this);return this.JSC$11770_keys_.concat()};
_.L.containsKey=function(I){return this.has(I)};
_.L.has=function(I){return fP(this.JSC$11770_map_,I)};
_.L.containsValue=function(I){for(var y=0;y<this.JSC$11770_keys_.length;y++){var D=this.JSC$11770_keys_[y];if(fP(this.JSC$11770_map_,D)&&this.JSC$11770_map_[D]==I)return!0}return!1};
_.L.equals=function(I,y){if(this===I)return!0;if(this.size!=I.getCount())return!1;y=y||U5G;YF(this);for(var D,F=0;D=this.JSC$11770_keys_[F];F++)if(!y(this.get(D),I.get(D)))return!1;return!0};
var U5G=function(I,y){return I===y};
_.VG.prototype.isEmpty=function(){return this.size==0};
_.VG.prototype.clear=function(){this.JSC$11770_map_={};this.version_=this.size=this.JSC$11770_keys_.length=0};
_.VG.prototype.remove=function(I){return this.delete(I)};
_.VG.prototype.delete=function(I){return fP(this.JSC$11770_map_,I)?(delete this.JSC$11770_map_[I],--this.size,this.version_++,this.JSC$11770_keys_.length>2*this.size&&YF(this),!0):!1};
var YF=function(I){if(I.size!=I.JSC$11770_keys_.length){for(var y=0,D=0;y<I.JSC$11770_keys_.length;){var F=I.JSC$11770_keys_[y];fP(I.JSC$11770_map_,F)&&(I.JSC$11770_keys_[D++]=F);y++}I.JSC$11770_keys_.length=D}if(I.size!=I.JSC$11770_keys_.length){y={};for(F=D=0;D<I.JSC$11770_keys_.length;){var R=I.JSC$11770_keys_[D];fP(y,R)||(I.JSC$11770_keys_[F++]=R,y[R]=1);D++}I.JSC$11770_keys_.length=F}};
_.L=_.VG.prototype;_.L.get=function(I,y){return fP(this.JSC$11770_map_,I)?this.JSC$11770_map_[I]:y};
_.L.set=function(I,y){fP(this.JSC$11770_map_,I)||(this.size+=1,this.JSC$11770_keys_.push(I),this.version_++);this.JSC$11770_map_[I]=y};
_.L.addAll=function(I){if(I instanceof _.VG)for(var y=I.getKeys(),D=0;D<y.length;D++)this.set(y[D],I.get(y[D]));else for(y in I)this.set(y,I[y])};
_.L.forEach=function(I,y){for(var D=this.getKeys(),F=0;F<D.length;F++){var R=D[F],O=this.get(R);I.call(y,O,R,this)}};
_.L.clone=function(){return new _.VG(this)};
_.L.transpose=function(){for(var I=new _.VG,y=0;y<this.JSC$11770_keys_.length;y++){var D=this.JSC$11770_keys_[y];I.set(this.JSC$11770_map_[D],D)}return I};
_.L.keys=function(){return W9G(this.__iterator__(!0)).toEs6()};
_.L.values=function(){return W9G(this.__iterator__(!1)).toEs6()};
_.L.entries=function(){var I=this;return Rgf(this.keys(),function(y){return[y,I.get(y)]})};
_.L.__iterator__=function(I){YF(this);var y=0,D=this.version_,F=this,R=new Y_;R.next=function(){if(D!=F.version_)throw Error("ve");if(y>=F.JSC$11770_keys_.length)return fH;var O=F.JSC$11770_keys_[y++];return nH(I?O:F.JSC$11770_map_[O])};
return R};
var fP=function(I,y){return Object.prototype.hasOwnProperty.call(I,y)};var rUu=function(I,y){if(y=I.JSC$11773_map_.get(y))y.remove(),I.insert_(y);return y};
_.L=q5C.prototype;_.L.get=function(I,y){return(I=rUu(this,I))?I.value:y};
_.L.set=function(I,y){var D=rUu(this,I);D?D.value=y:(D=new u6J(I,y),this.JSC$11773_map_.set(I,D),this.insert_(D))};
_.L.peek=function(){return this.JSC$11773_head_.next.value};
_.L.shift=function(){return jkW(this,this.JSC$11773_head_.next)};
_.L.pop=function(){return jkW(this,this.JSC$11773_head_.prev)};
_.L.remove=function(I){return(I=this.JSC$11773_map_.get(I))?(this.removeNode(I),!0):!1};
_.L.removeNode=function(I){I.remove();this.JSC$11773_map_.remove(I.key)};
_.L.getCount=function(){return this.JSC$11773_map_.getCount()};
_.L.isEmpty=function(){return this.JSC$11773_map_.isEmpty()};
_.L.getKeys=function(){return this.map(function(I,y){return y})};
_.L.getValues=function(){return this.map(function(I){return I})};
_.L.contains=function(I){return this.some(function(y){return y==I})};
_.L.containsKey=function(I){return this.JSC$11773_map_.containsKey(I)};
_.L.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11773_head_.prev)};
_.L.forEach=function(I,y){for(var D=this.JSC$11773_head_.next;D!=this.JSC$11773_head_;D=D.next)I.call(y,D.value,D.key,this)};
_.L.map=function(I,y){for(var D=[],F=this.JSC$11773_head_.next;F!=this.JSC$11773_head_;F=F.next)D.push(I.call(y,F.value,F.key,this));return D};
_.L.some=function(I,y){for(var D=this.JSC$11773_head_.next;D!=this.JSC$11773_head_;D=D.next)if(I.call(y,D.value,D.key,this))return!0;return!1};
_.L.every=function(I,y){for(var D=this.JSC$11773_head_.next;D!=this.JSC$11773_head_;D=D.next)if(!I.call(y,D.value,D.key,this))return!1;return!0};
_.L.insert_=function(I){I.next=this.JSC$11773_head_.next;I.prev=this.JSC$11773_head_;this.JSC$11773_head_.next=I;for(I.next.prev=I;this.getCount()>100;)this.removeNode(this.JSC$11773_head_.prev)};
var jkW=function(I,y){I.JSC$11773_head_!=y&&I.removeNode(y);return y.value},u6J=function(I,y){this.key=I;
this.value=y};
u6J.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var owg=function(){QF.apply(this,arguments)};
_.E(owg,QF);owg.prototype.enqueue=function(I,y){this.insert(I,y)};var NvR=function(){var I=Error();I.name="SecurityError";throw I;},LxS=function(){return{get opener(){return null},
get closed(){return!0},get location(){NvR()},get document(){NvR()},postMessage:function(){},
close:function(){},
focus:function(){}}};var ERJ={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 QR4={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 hbg={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(QR4).join("|");var x5c=function(){function I(v){v.substr(-1)!==";"&&(v+=";");return w(v)}
for(var y=Object.keys(hbg).sort(X2q),D=Object.keys(QR4).sort(X2q),F=0,R=0;F<D.length;F++)y[R]===D[F]?(D[F]+=";?",R++):D[F]+=";";var O=new RegExp("&(?:"+D.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),w=Y5H();return function(v){return String(v).replace(O,I)}}();/*

 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 lyP={};var uPc=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"),qA_=/[\\&]/,Ewa=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),GEP=RegExp('[&<>"]',"g"),X_M=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Qka=function(I){return I.charCodeAt(0)===92?I.charAt(1):x5c(I)},YAR=function(I){return qA_.test(I)?I.replace(Ewa,Qka):I},fyf=function(I){try{var y,D="";
if(typeof R!=="string"){var F=R;var R=";/?:@&=+$,-_.!~*'()#"}typeof F==="undefined"&&(F=!0);var O,w=lyP[R];if(w)var v=w;else{w=lyP[R]=[];for(O=0;O<128;O++){var P=String.fromCharCode(O);/^[0-9a-z]$/i.test(P)?w.push(P):w.push("%"+("0"+O.toString(16).toUpperCase()).slice(-2))}for(O=0;O<R.length;O++)w[R.charCodeAt(O)]=R[O];v=w}var K=0;for(y=I.length;K<y;K++){var r=I.charCodeAt(K);if(F&&r===37&&K+2<y&&/^[0-9a-f]{2}$/i.test(I.slice(K+1,K+3)))D+=I.slice(K,K+3),K+=2;else if(r<128)D+=v[r];else if(r>=55296&&
r<=57343){if(r>=55296&&r<=56319&&K+1<y){var N=I.charCodeAt(K+1);if(N>=56320&&N<=57343){D+=encodeURIComponent(I[K]+I[K+1]);K++;continue}}D+="%EF%BF%BD"}else D+=encodeURIComponent(I[K])}return D}catch(h){return I}},nwc=function(I){switch(I){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return I}},nP=function(I,y){return GEP.test(I)?y?I.replace(X_M,nwc):I.replace(GEP,nwc):I};/*

 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 pP;if(String.fromCodePoint)pP=function(I){try{return String.fromCodePoint(I)}catch(y){if(y instanceof RangeError)return String.fromCharCode(65533);throw y;}};
else{var p_c=String.fromCharCode,m5g=Math.floor;pP=function(){var I=[],y=-1,D=arguments.length;if(!D)return"";for(var F="";++y<D;){var R=Number(arguments[y]);if(!isFinite(R)||R<0||R>1114111||m5g(R)!==R)return String.fromCharCode(65533);if(R<=65535)I.push(R);else{R-=65536;var O=(R>>10)+55296;R=R%1024+56320;I.push(O,R)}if(y+1===D||I.length>16384)F+=p_c.apply(null,I),I.length=0}return F}};var M5z=function(I){this.root=this.current=I;this.entering=!0};
M5z.prototype.next=function(){var I=this.current,y=this.entering;if(I===null)return null;a:switch(I._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}y&&D?I._firstChild?(this.current=I._firstChild,this.entering=!0):this.entering=!1:I===this.root?this.current=null:I._next===null?(this.current=
I._parent,this.entering=!1):(this.current=I._next,this.entering=!0);return{entering:y,node:I}};
var yO=function(I,y){this._type=I;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=y;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};
yO.prototype.appendChild=function(I){I.unlink();I._parent=this;this._lastChild?(this._lastChild._next=I,I._prev=this._lastChild):this._firstChild=I;this._lastChild=I};
yO.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 zbc=function(I,y){y.unlink();y._next=I._next;y._next&&(y._next._prev=y);y._prev=I;I._next=y;y._parent=I._parent;y._next||(y._parent._lastChild=y)};
yO.prototype.insertBefore=function(I){I.unlink();I._prev=this._prev;I._prev&&(I._prev._next=I);I._next=this;this._prev=I;I._parent=this._parent;I._prev||(I._parent._firstChild=I)};
_.mD.Object.defineProperties(yO.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(I){this._literal=I}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(I){this._destination=I}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(I){this._title=I}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(I){this._info=I}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(I){this._level=I}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(I){this._listData.type=I}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(I){this._listData.tight=I}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(I){this._listData.start=I}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(I){this._onEnter=I}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(I){this._onExit=I}}});var fwB=/[ \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,
nR5={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 kEM=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]/),
d5O=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),ayG=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),cUa=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),WKO=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),C9u=/`+/,Bv_=/^`+/,iVP=/\.\.\./g,AUP=/--+/g,$5c=/^<([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])?)*)>/,
bVz=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,HVu=/^ *(?:\n *)?/,ebc=/^[ \t\n\x0b\x0c\x0d]/,Tvu=/[ \t\n\x0b\x0c\x0d]+/g,skO=/^\s/,V5W=/ *$/,ZVM=/^ */,gwf=/^ *(?:\n|$)/,I3c=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),ysu=/^[^\n`\[\]\\!<&*_'"]+/m,m6=function(I){var y=new yO("text");y._literal=I;return y},ML=function(I){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=I||{}};
ML.prototype.match=function(I){I=I.exec(this.subject.slice(this.pos));if(I===null)return null;this.pos+=I.index+I[0].length;return I[0]};
ML.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var z5=function(I){I.match(HVu);return!0},DvM=function(I,y,D){var F=0;
var R=I.pos;if(y===39||y===34)F++,I.pos++;else for(;I.peek()===y;)F++,I.pos++;if(F===0)F=null;else{var O=R===0?"\n":I.subject.charAt(R-1);var w=I.peek();w=w===-1?"\n":pP(w);var v=skO.test(w);w=kEM.test(w);var P=skO.test(O);var K=kEM.test(O);O=!v&&!(w&&!P&&!K);v=!P&&!(K&&!v&&!w);y===95?(P=O&&(!v||K),w=v&&(!O||w)):(P=y===39||y===34?O&&!v:O,w=v);I.pos=R;F={numdelims:F,can_open:P,can_close:w}}if(!F)return!1;R=F.numdelims;w=I.pos;I.pos+=R;w=y===39?"\u2019":y===34?"\u201c":I.subject.slice(w,I.pos);w=m6(w);
D.appendChild(w);I.delimiters={cc:y,numdelims:R,origdelims:R,node:w,previous:I.delimiters,next:null,can_open:F.can_open,can_close:F.can_close};I.delimiters.previous!==null&&(I.delimiters.previous.next=I.delimiters);return!0},FPG=function(I,y){y.previous!==null&&(y.previous.next=y.next);
y.next===null?I.delimiters=y.previous:y.next.previous=y.previous},Rpf=function(I,y){var D,F,R=[],O=!1;
R[95]=y;R[42]=y;R[39]=y;R[34]=y;for(D=I.delimiters;D!==null&&D.previous!==y;)D=D.previous;for(;D!==null;){var w=D.cc;if(D.can_close){var v=D.previous;for(F=!1;v!==null&&v!==y&&v!==R[w];){O=(D.can_open||v.can_close)&&(v.origdelims+D.origdelims)%3===0;if(v.cc===D.cc&&v.can_open&&!O){F=!0;break}v=v.previous}var P=D;if(w===42||w===95)if(F){var K=D.numdelims>=2&&v.numdelims>=2?2:1;var r=v.node;var N=D.node;v.numdelims-=K;D.numdelims-=K;r._literal=r._literal.slice(0,r._literal.length-K);N._literal=N._literal.slice(0,
N._literal.length-K);var h=new yO(K===1?"emph":"strong");for(K=r._next;K&&K!==N;){var x=K._next;K.unlink();h.appendChild(K);K=x}zbc(r,h);K=v;x=D;K.next!==x&&(K.next=x,x.previous=K);v.numdelims===0&&(r.unlink(),FPG(I,v));D.numdelims===0&&(N.unlink(),v=D.next,FPG(I,D),D=v)}else D=D.next;else w===39?(D.node._literal="\u2019",F&&(v.node._literal="\u2018"),D=D.next):w===34&&(D.node._literal="\u201d",F&&(v.node.literal="\u201c"),D=D.next);F||O||(R[w]=P.previous,P.can_open||FPG(I,P))}else D=D.next}for(;I.delimiters!==
null&&I.delimiters!==y;)FPG(I,I.delimiters)},Oxa=function(I){I=I.match(d5O);
return I===null?null:YAR(I.substr(1,I.length-2))},LPG=function(I){var y=I.match(ayG);
if(y===null){y=I.pos;for(var D=0,F;(F=I.peek())!==-1;)if(F===92)I.pos+=1,I.peek()!==-1&&(I.pos+=1);else if(F===40)I.pos+=1,D+=1;else if(F===41)if(D<1)break;else I.pos+=1,--D;else if(ebc.exec(pP(F))!==null)break;else I.pos+=1;y=I.subject.substr(y,I.pos-y);return fyf(YAR(y))}return fyf(YAR(y.substr(1,y.length-2)))},Jsg=function(I){I=I.match(I3c);
return I===null||I.length>1001?0:I.length},wwM=function(I,y,D,F){I.brackets!==null&&(I.brackets.bracketAfter=!0);
I.brackets={node:y,previous:I.brackets,previousDelimiter:I.delimiters,index:D,image:F,active:!0}},v1M=function(I,y){var D;
return(D=I.match(ysu))?(I.options.smart?y.appendChild(m6(D.replace(iVP,"\u2026").replace(AUP,function(F){var R=0,O=0;F.length%3===0?O=F.length/3:F.length%2===0?R=F.length/2:F.length%3===2?(R=1,O=(F.length-2)/3):(R=2,O=(F.length-4)/3);F="";var w;for(w=0;w<O;w++)F+="\u2014";for(w=0;w<R;w++)F+="\u2013";return F}))):y.appendChild(m6(D)),!0):!1},SR_=function(I,y,D){I.subject=y;
I.pos=0;y=I.pos;var F=Jsg(I);if(F===0)return 0;var R=I.subject.substr(0,F);if(I.peek()===58)I.pos++;else return I.pos=y,0;z5(I);F=LPG(I);if(F===null||F.length===0)return I.pos=y,0;var O=I.pos;z5(I);var w=Oxa(I);w===null&&(w="",I.pos=O);var v=!0;I.match(gwf)===null&&(w===""?v=!1:(w="",I.pos=O,v=I.match(gwf)!==null));if(!v)return I.pos=y,0;R=p2B(R);if(R==="")return I.pos=y,0;D[R]||(D[R]={destination:F,title:w});return I.pos-y},tz_=function(I,y){var D,F=I.peek();
if(F===-1)return!1;switch(F){case 10:I.pos+=1;if((D=y._lastChild)&&D.type==="text"&&D._literal[D._literal.length-1]===" "){var R=D._literal[D._literal.length-2]===" ";D._literal=D._literal.replace(V5W,"");y.appendChild(new yO(R?"linebreak":"softbreak"))}else y.appendChild(new yO("softbreak"));I.match(ZVM);D=!0;break;case 92:D=I.subject;I.pos+=1;I.peek()===10?(I.pos+=1,D=new yO("linebreak"),y.appendChild(D)):cUa.test(D.charAt(I.pos))?(y.appendChild(m6(D.charAt(I.pos))),I.pos+=1):y.appendChild(m6("\\"));
D=!0;break;case 96:a:if(D=I.match(Bv_),D===null)D=!1;else{R=I.pos;for(var O;(O=I.match(C9u))!==null;)if(O===D){O=new yO("code");O._literal=I.subject.slice(R,I.pos-D.length).trim().replace(Tvu," ");y.appendChild(O);D=!0;break a}I.pos=R;y.appendChild(m6(D));D=!0}break;case 42:case 95:D=DvM(I,F,y);break;case 39:case 34:D=I.options.smart&&DvM(I,F,y);break;case 91:D=I.pos;I.pos+=1;R=m6("[");y.appendChild(R);wwM(I,R,D,!1);D=!0;break;case 33:D=I.pos;I.pos+=1;I.peek()===91?(I.pos+=1,R=m6("!["),y.appendChild(R),
wwM(I,R,D+1,!0)):y.appendChild(m6("!"));D=!0;break;case 93:var w,v=!1,P;I.pos+=1;var K=I.pos;R=I.brackets;if(R===null)y.appendChild(m6("]"));else if(R.active){D=R.image;var r=I.pos;I.peek()===40&&(I.pos++,z5(I)&&(O=LPG(I))!==null&&z5(I)&&(ebc.test(I.subject.charAt(I.pos-1))&&(w=Oxa(I)),1)&&z5(I)&&I.peek()===41?(I.pos+=1,v=!0):I.pos=r);if(!v){var N=I.pos,h=Jsg(I);h>2?P=I.subject.slice(N,N+h):R.bracketAfter||(P=I.subject.slice(R.index,K));h===0&&(I.pos=r);P&&(P=I.refmap[p2B(P)])&&(O=P.destination,w=
P.title,v=!0)}if(v){K=new yO(D?"image":"link");K._destination=O;K._title=w||"";for(O=R.node._next;O;)w=O._next,O.unlink(),K.appendChild(O),O=w;y.appendChild(K);Rpf(I,R.previousDelimiter);I.brackets=I.brackets.previous;R.node.unlink();if(!D)for(R=I.brackets;R!==null;)R.image||(R.active=!1),R=R.previous}else I.brackets=I.brackets.previous,I.pos=K,y.appendChild(m6("]"))}else y.appendChild(m6("]")),I.brackets=I.brackets.previous;D=!0;break;case 60:(D=I.match($5c))?(D=D.slice(1,D.length-1),R=new yO("link"),
R._destination=fyf("mailto:"+D),R._title="",R.appendChild(m6(D)),y.appendChild(R),D=!0):(D=I.match(bVz))?(D=D.slice(1,D.length-1),R=new yO("link"),R._destination=fyf(D),R._title="",R.appendChild(m6(D)),y.appendChild(R),D=!0):D=!1;D||(D=I.match(uPc),D===null?D=!1:(R=new yO("html_inline"),R._literal=D,y.appendChild(R),D=!0));break;case 38:(D=I.match(WKO))?(y.appendChild(m6(x5c(D))),D=!0):D=!1;break;default:D=v1M(I,y)}D||(I.pos+=1,y.appendChild(m6(pP(F))));return!0};
ML.prototype.parseInlines=function(I){this.subject=I._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;tz_(this,I););I._string_content=null;Rpf(this,null)};
ML.prototype.parse=ML.prototype.parseInlines;var P0_=[/./,/^<(?: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")],KPO=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],UvP=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,rsO=/^[#`~*+_=<>0-9-\|]|\|/,jzG=/[^ \t\f\v\r\n]/,o1g=/^[*+-]/,NT_=/^(\d{1,9})([.)])/,hpM=/^#{1,6}(?:[ \t]+|$)/,xvf=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,l3P=/^(?:`{3,}|~{3,})(?= *$)/,u9f=/^(?:=+|-+)[ \t]*$/,qRc=/\r\n|\n|\r/,MeW=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,zrt=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,E1g={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(I){return I!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(I,y){for(I=y._firstChild;I;){if(mO5(I)&&I._next){y._listData.tight=!1;break}for(var D=I._firstChild;D;){if(mO5(D)&&(I._next||D._next)){y._listData.tight=!1;break}D=D._next}I=I._next}},
canContain:function(I){return I==="item"},
acceptsLines:!1},block_quote:{continue:function(I){var y=I.currentLine;if(I.indented||gN(y,I.nextNonspace)!==62)return 1;kF(I);dt(I,1,!1);Z6(gN(y,I.offset))&&dt(I,1,!0);return 0},
finalize:function(){},
canContain:function(I){return I!=="item"},
acceptsLines:!1},item:{continue:function(I,y){if(I.blank){if(y._firstChild==null)return 1;kF(I)}else if(I.indent>=y._listData.markerOffset+y._listData.padding)dt(I,y._listData.markerOffset+y._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(I){return I!=="item"&&!kI5(I)},
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(I,y){var D=I.currentLine,F=I.indent;if(y._isFenced){if((F=F<=3&&D.charAt(I.nextNonspace)===y._fenceChar&&D.slice(I.nextNonspace).match(l3P))&&F[0].length>=y._fenceLength)return I.finalize(y,I.lineNumber),2;for(y=y._fenceOffset;y>0&&Z6(gN(D,I.offset));)dt(I,1,!0),y--}else if(F>=4)dt(I,4,!0);else if(I.blank)kF(I);else return 1;return 0},
finalize:function(I,y){if(y._isFenced){var D=y._string_content,F=D.indexOf("\n");I=D.slice(0,F);D=D.slice(F+1);y.info=YAR(I.trim());y._literal=D}else y._literal=y._string_content.replace(/(\n *)+$/,"\n");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(I,y){return!I.blank||y._htmlBlockType!==6&&y._htmlBlockType!==7?0:1},
finalize:function(I,y){y._literal=y._string_content.replace(/(\n *)+$/,"");y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(I){return I.blank?1:0},
finalize:function(I,y){for(var D,F=!1;gN(y._string_content,0)===91&&(D=SR_(I.inlineParser,y._string_content,I.refmap));)y._string_content=y._string_content.slice(D),F=!0;F&&!jzG.test(y._string_content)&&y.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(I){return IV(I.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(I){return I=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(I,y){if(!y._rowIsDelimiter){I=y._isHeader?"th":"td";for(var D=y._parent._tableColumns,F=y._string_content,R=0,O="",w,v=y._sourcepos[0][0];R<F.length;){switch(F[R]){case "|":w&&(w._string_content=O.trim(),O="",w=null,D--,D<=0&&(R=F.length));break;default:if(!w){w=new yO(I,[[v,R],[v,R]]);var P=y._parent._columnAlignment,K=y._parent._tableColumns-D;P&&K<=P.length&&K>=0&&(w._alignment=P[K]);y.appendChild(w)}O+=F[R];w._sourcepos[1][1]=R}R++}w&&(w._string_content=O.trim());y._string_content=
""}},
canContain:function(I){return I!=="row"},
acceptsLines:!1}},GrR=[function(I){if(I.indented||gN(I.currentLine,I.nextNonspace)!==62)return 0;kF(I);dt(I,1,!1);Z6(gN(I.currentLine,I.offset))&&dt(I,1,!0);aO(I);I.addChild("block_quote",I.nextNonspace);return 1},
function(I){var y;if(!I.indented&&(y=I.currentLine.slice(I.nextNonspace).match(hpM))){kF(I);dt(I,y[0].length,!1);aO(I);var D=I.addChild("heading",I.nextNonspace);D.level=y[0].trim().length;D._string_content=I.currentLine.slice(I.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");dt(I,I.currentLine.length-I.offset);return 2}return 0},
function(I){var y;if(!I.indented&&(y=I.currentLine.slice(I.nextNonspace).match(xvf))){var D=y[0].length;aO(I);var F=I.addChild("code_block",I.nextNonspace);F._isFenced=!0;F._fenceLength=D;F._fenceChar=y[0][0];F._fenceOffset=I.indent;kF(I);dt(I,D,!1);return 2}return 0},
function(I,y){if(!I.indented&&gN(I.currentLine,I.nextNonspace)===60){var D=I.currentLine.slice(I.nextNonspace),F;for(F=1;F<=7;F++)if(P0_[F].test(D)&&(F<7||y.type!=="paragraph"))return aO(I),I.addChild("html_block",I.offset)._htmlBlockType=F,2}return 0},
function(I,y){var D;if(!I.indented&&y.type==="paragraph"&&(D=I.currentLine.slice(I.nextNonspace).match(u9f))){aO(I);var F=new yO("heading",y.sourcepos);F.level=D[0][0]==="="?1:2;F._string_content=y._string_content;zbc(y,F);y.unlink();I.tip=F;dt(I,I.currentLine.length-I.offset,!1);return 2}return 0},
function(I){return!I.indented&&UvP.test(I.currentLine.slice(I.nextNonspace))?(aO(I),I.addChild("thematic_break",I.nextNonspace),dt(I,I.currentLine.length-I.offset,!1),2):0},
function(I,y){var D,F;if(!(F=I.indented&&y.type!=="list")){a:{var R=y,O=I.currentLine.slice(I.nextNonspace);F={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:I.indent};if(D=O.match(o1g))F.type="bullet",F.bulletChar=D[0][0];else{if(!(D=O.match(NT_))||R.type==="paragraph"&&D[1]!=="1"){D=null;break a}F.type="ordered";F.start=parseInt(D[1],10);F.delimiter=D[2]}var w=gN(I.currentLine,I.nextNonspace+D[0].length);if(w!==-1&&w!==9&&w!==32||R.type==="paragraph"&&!I.currentLine.slice(I.nextNonspace+
D[0].length).match(jzG))D=null;else{kF(I);dt(I,D[0].length,!0);R=I.column;O=I.offset;do dt(I,1,!0),w=gN(I.currentLine,I.offset);while(I.column-R<5&&Z6(w));w=gN(I.currentLine,I.offset)===-1;var v=I.column-R;v>=5||v<1||w?(F.padding=D[0].length+1,I.column=R,I.offset=O,Z6(gN(I.currentLine,I.offset))&&dt(I,1,!0)):F.padding=D[0].length+v;D=F}}F=!D}if(F)return 0;aO(I);(F=I.tip.type!=="list")||(y=y._listData,F=!(y.type===D.type&&y.delimiter===D.delimiter&&y.bulletChar===D.bulletChar));F&&(y=I.addChild("list",
I.nextNonspace),y._listData=D);y=I.addChild("item",I.nextNonspace);y._listData=D;return 1},
function(I){var y;return((y=I.options.shouldParseIndentAsCodeBlock)!=null?y:1)&&I.indented&&I.tip.type!=="paragraph"&&!I.blank?(dt(I,4,!0),aO(I),I.addChild("code_block",I.offset),2):0},
function(I,y){var D=IV(I.currentLine),F=IV(I.lookahead);if(D!==0&&F<0&&Math.abs(D)==Math.abs(F)&&!kI5(y.type)){aO(I);y=I.addChild("table",I.nextNonspace);y._tableRows=1;y._tableColumns=Math.abs(D);D=I.lookahead;if(zrt.test(D)){F=[];for(var R=0,O=!1,w=0,v=void 0;R<D.length;){var P=w>=3;switch(D[R]){case "-":w++;break;case "|":O&&(F.push(v),v=void 0,w=0);O=!0;break;case ":":v||P||(v="left"),!v&&P&&(v="right"),v==="left"&&P&&(v="center")}R++}D=F}else D=void 0;y._columnAlignment=D;y=I.addChild("row",
I.nextNonspace);y._isHeader=!0;dt(I,I.currentLine.length-I.offset,!1);y._string_content=I.currentLine;return 1}return 0},
function(I,y){if(y.type=="table"&&IV(I.currentLine)!==0){aO(I);var D=y;y=I.addChild("row",I.nextNonspace);IV(I.currentLine)<0?y._rowIsDelimiter=!0:D._tableRows+=1;dt(I,I.currentLine.length-I.offset,!1);y._string_content=I.currentLine;return 2}return 0}],FUB=function(){var I={shouldParseIndentAsCodeBlock:!1};
I=I===void 0?{}:I;this.lastMatchedContainer=this.doc=dOB();this.refmap={};this.lastLineLength=0;this.inlineParser=new ML(I);this.options=I;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=E1g;this.blockStarts=GrR},Xwf=function(I){I.partiallyConsumedTab&&(I.offset+=1,I.tip._string_content+=" ".repeat(4-I.column%
4));
I.tip._string_content+=I.currentLine.slice(I.offset)+"\n"};
FUB.prototype.addChild=function(I,y){for(;!this.blocks[this.tip.type].canContain(I);)this.finalize(this.tip,this.lineNumber-1);I=new yO(I,[[this.lineNumber,y+1],[0,0]]);I._string_content="";this.tip.appendChild(I);return this.tip=I};
var aO=function(I){if(!I.allClosed){for(;I.oldtip!==I.lastMatchedContainer;){var y=I.oldtip._parent;I.finalize(I.oldtip,I.lineNumber-1);I.oldtip=y}I.allClosed=!0}},dt=function(I,y,D){for(var F=I.currentLine,R,O;y>0&&(O=F[I.offset]);)O==="\t"?(R=4-I.column%4,D?(I.partiallyConsumedTab=R>y,R=R>y?y:R,I.column+=R,I.offset+=I.partiallyConsumedTab?0:1,y-=R):(I.partiallyConsumedTab=!1,I.column+=R,I.offset+=1,--y)):(I.partiallyConsumedTab=!1,I.offset+=1,I.column+=1,--y)},kF=function(I){I.offset=I.nextNonspace;
I.column=I.nextNonspaceColumn;I.partiallyConsumedTab=!1},QzR=function(I){for(var y=I.currentLine,D=I.offset,F=I.column,R;(R=y.charAt(D))!=="";)if(R===" ")D++,F++;
else if(R==="\t")D++,F+=4-F%4;else break;I.blank=R==="\n"||R==="\r"||R==="";I.nextNonspace=D;I.nextNonspaceColumn=F;I.indent=I.nextNonspaceColumn-I.column;I.indented=I.indent>=4};
FUB.prototype.finalize=function(I,y){var D=I._parent;I._open=!1;I.sourcepos[1]=[y,this.lastLineLength];this.blocks[I.type].finalize(this,I);this.tip=D};
FUB.prototype.parse=function(I){this.tip=this.doc=dOB();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!I)return this.doc;this.options.time&&console.time("preparing input");var y=I.split(qRc),D=y.length;I.charCodeAt(I.length-1)===10&&--D;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(I=0;I<D;I++)a:{var F=void 0,R=y[I],O=y[I+1],w=!0,v=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;R.indexOf("\x00")!==-1&&(R=R.replace(/\0/g,"\ufffd"));this.currentLine=R;for(this.lookahead=O;(F=v._lastChild)&&F._open;){v=F;QzR(this);switch(this.blocks[v.type].continue(this,v)){case 0:break;case 1:w=!1;break;case 2:this.lastLineLength=R.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!w){v=v._parent;break}}this.allClosed=v===this.oldtip;this.lastMatchedContainer=
v;F=v.type!=="paragraph"&&E1g[v.type].acceptsLines;O=this.blockStarts;for(w=O.length;!F;){QzR(this);if(!this.indented&&!rsO.test(R.slice(this.nextNonspace))){kF(this);break}for(var P=0;P<w;){var K=O[P](this,v);if(K===1){v=this.tip;break}else if(K===2){v=this.tip;F=!0;break}else P++}if(P===w){kF(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){aO(this);this.blank&&v.lastChild&&(v.lastChild._lastLineBlank=!0);F=v.type;O=this.blank&&!(F==="block_quote"||F==="code_block"&&v._isFenced||
F==="item"&&!v._firstChild&&v.sourcepos[0][0]===this.lineNumber);for(w=v;w;)w._lastLineBlank=O,w=w._parent;this.blocks[F].acceptsLines?(Xwf(this),F==="html_block"&&v._htmlBlockType>=1&&v._htmlBlockType<=5&&KPO[v._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(v,this.lineNumber)):this.offset<R.length&&!this.blank&&(this.addChild("paragraph",this.offset),kF(this),Xwf(this))}else Xwf(this);this.lastLineLength=R.length}for(;this.tip;)this.finalize(this.tip,D);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");R=new M5z(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;D=R.next();)y=D.node,I=y.type,D.entering||I!=="paragraph"&&I!=="heading"&&I!=="th"&&I!="td"||this.inlineParser.parse(y);this.options.time&&console.timeEnd("inline parsing");return this.doc};awJ.prototype.render=function(I){I=new M5z(I);var y;this.buffer="";for(this.lastOut="\n";y=I.next();){var D=y.node.type;if(this[D])this[D](y.node,y.entering)}return this.buffer};
awJ.prototype.out=function(I){cZ(this,I)};
var cZ=function(I,y){I.buffer+=y;I.lastOut=y};
awJ.prototype.cr=function(){this.lastOut!=="\n"&&cZ(this,"\n")};var YRO=/^javascript:|vbscript:|file:|data:/i,f3O=/^data:image\/(?:png|gif|jpeg|webp)/i,n1G=function(I){return YRO.test(I)&&!f3O.test(I)};
D_.prototype=Object.create(awJ.prototype);_.L=D_.prototype;_.L.text=function(I){this.out(I.literal)};
_.L.html_inline=function(I){this.options.safe?cZ(this,"\x3c!-- raw HTML omitted --\x3e"):cZ(this,I.literal)};
_.L.html_block=function(I){this.cr();this.options.safe?cZ(this,"\x3c!-- raw HTML omitted --\x3e"):cZ(this,I.literal);this.cr()};
_.L.softbreak=function(){cZ(this,this.options.softbreak)};
_.L.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.L.link=function(I,y){var D=this.attrs(I);y?(this.options.safe&&n1G(I.destination)||D.push(["href",nP(I.destination,!0)]),I.title&&D.push(["title",nP(I.title,!0)]),this.tag("a",D)):this.tag("/a")};
_.L.image=function(I,y){y?(this.disableTags===0&&(this.options.safe&&n1G(I.destination)?cZ(this,'<img src="" alt="'):cZ(this,'<img src="'+nP(I.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(I.title&&cZ(this,'" title="'+nP(I.title,!0)),cZ(this,'" />')))};
_.L.emph=function(I,y){this.tag(y?"em":"/em")};
_.L.strong=function(I,y){this.tag(y?"strong":"/strong")};
_.L.paragraph=function(I,y){var D=I.parent.parent;I=this.attrs(I);D!==null&&D.type==="list"&&D.listTight||(y?(this.cr(),this.tag("p",I)):(this.tag("/p"),this.cr()))};
_.L.heading=function(I,y){var D="h"+I.level;I=this.attrs(I);y?(this.cr(),this.tag(D,I)):(this.tag("/"+D),this.cr())};
_.L.code=function(I){this.tag("code");this.out(I.literal);this.tag("/code")};
_.L.code_block=function(I){var y=I.info?I.info.split(/\s+/):[],D=this.attrs(I);y.length>0&&y[0].length>0&&D.push(["class","language-"+nP(y[0],!0)]);this.cr();this.tag("pre");this.tag("code",D);this.out(I.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.L.thematic_break=function(I){I=this.attrs(I);this.cr();this.tag("hr",I,!0);this.cr()};
_.L.block_quote=function(I,y){I=this.attrs(I);y?(this.cr(),this.tag("blockquote",I)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.L.list=function(I,y){var D=I.listType==="bullet"?"ul":"ol",F=this.attrs(I);y?(I=I.listStart,I!==null&&I!==1&&F.push(["start",I.toString()]),this.cr(),this.tag(D,F)):(this.cr(),this.tag("/"+D));this.cr()};
_.L.item=function(I,y){I=this.attrs(I);y?this.tag("li",I):(this.tag("/li"),this.cr())};
_.L.custom_inline=function(I,y){y&&I.onEnter?cZ(this,I.onEnter):!y&&I.onExit&&cZ(this,I.onExit)};
_.L.custom_block=function(I,y){this.cr();y&&I.onEnter?cZ(this,I.onEnter):!y&&I.onExit&&cZ(this,I.onExit);this.cr()};
_.L.table=function(I,y){I=this.attrs(I);y?(this.cr(),this.tag("table",I)):(this.tag("/table"),this.cr())};
_.L.row=function(I,y){I._rowIsDelimiter||(I=this.attrs(I),y?this.tag("tr",I):this.tag("/tr"))};
_.L.td=function(I,y){var D=this.attrs(I);I._alignment&&D.push(["align",I._alignment]);y?this.tag("td",D):this.tag("/td")};
_.L.th=function(I,y){var D=this.attrs(I);I._alignment&&D.push(["align",I._alignment]);y?this.tag("th",D):this.tag("/th")};
_.L.out=function(I){cZ(this,nP(I,!1))};
_.L.tag=function(I,y,D){if(!(this.disableTags>0)){this.buffer+="<"+I;if(y&&y.length>0){I=0;for(var F;(F=y[I])!==void 0;)this.buffer+=" "+F[0]+'="'+F[1]+'"',I++}D&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.L.attrs=function(I){var y=[];this.options.sourcepos&&(I=I.sourcepos)&&y.push(["data-sourcepos",String(I[0][0])+":"+String(I[0][1])+"-"+String(I[1][0])+":"+String(I[1][1])]);return y};
D_.prototype.text=D_.prototype.text;D_.prototype.html_inline=D_.prototype.html_inline;D_.prototype.html_block=D_.prototype.html_block;D_.prototype.softbreak=D_.prototype.softbreak;D_.prototype.linebreak=D_.prototype.linebreak;D_.prototype.link=D_.prototype.link;D_.prototype.image=D_.prototype.image;D_.prototype.emph=D_.prototype.emph;D_.prototype.strong=D_.prototype.strong;D_.prototype.paragraph=D_.prototype.paragraph;D_.prototype.heading=D_.prototype.heading;D_.prototype.code=D_.prototype.code;
D_.prototype.code_block=D_.prototype.code_block;D_.prototype.thematic_break=D_.prototype.thematic_break;D_.prototype.block_quote=D_.prototype.block_quote;D_.prototype.list=D_.prototype.list;D_.prototype.item=D_.prototype.item;D_.prototype.custom_inline=D_.prototype.custom_inline;D_.prototype.custom_block=D_.prototype.custom_block;D_.prototype.table=D_.prototype.table;D_.prototype.row=D_.prototype.row;D_.prototype.td=D_.prototype.td;D_.prototype.th=D_.prototype.th;D_.prototype.out=D_.prototype.out;
D_.prototype.tag=D_.prototype.tag;D_.prototype.attrs=D_.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 pwe,mvg,PhB;(function(){function I(p,n){return p<n?-1:p>n?1:p>=n?0:NaN}
function y(p){return function(n,c){return I(p(n),c)}}
function D(){for(var p=0,n=arguments.length,c={},DC;p<n;++p){if(!(DC=arguments[p]+"")||DC in c)throw Error("xe`"+DC);c[DC]=[]}return new F(c)}
function F(p){this._=p}
function R(p,n){return p.trim().split(/^|\s+/).map(function(c){var DC="",tL=c.indexOf(".");tL>=0&&(DC=c.slice(tL+1),c=c.slice(0,tL));if(c&&!n.hasOwnProperty(c))throw Error("ye`"+c);return{type:c,name:DC}})}
function O(p,n,c){for(var DC=0,tL=p.length;DC<tL;++DC)if(p[DC].name===n){p[DC]=FF8;p=p.slice(0,DC).concat(p.slice(DC+1));break}c!=null&&p.push({name:n,value:c});return p}
function w(p){var n=p,c=n.indexOf(":");c>=0&&(n=p.slice(0,c))!=="xmlns"&&(p=p.slice(c+1));return vw.hasOwnProperty(n)?{space:vw[n],local:p}:p}
function v(p){return function(){var n=this.ownerDocument,c=this.namespaceURI;return c==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(p):n.createElementNS(c,p)}}
function P(p){return function(){return this.ownerDocument.createElementNS(p.space,p.local)}}
function K(p){p=w(p);return(p.local?P:v)(p)}
function r(){}
function N(p){return p==null?r:function(){return this.querySelector(p)}}
function h(p){return Array(p.length)}
function x(p,n){this.ownerDocument=p.ownerDocument;this.namespaceURI=p.namespaceURI;this._next=null;this._parent=p;this.__data__=n}
function q(p){return function(){return p}}
function X(p,n,c,DC,tL,NS){for(var Xt=0,MS,wc=n.length,FW=NS.length;Xt<FW;++Xt)(MS=n[Xt])?(MS.__data__=NS[Xt],DC[Xt]=MS):c[Xt]=new x(p,NS[Xt]);for(;Xt<wc;++Xt)if(MS=n[Xt])tL[Xt]=MS}
function f(p,n,c,DC,tL,NS,Xt){var MS,wc,FW={},Sf=n.length,hM=NS.length,IT=Array(Sf),dG;for(MS=0;MS<Sf;++MS)if(wc=n[MS])IT[MS]=dG="$"+Xt.call(wc,wc.__data__,MS,n),dG in FW?tL[MS]=wc:FW[dG]=wc;for(MS=0;MS<hM;++MS)dG="$"+Xt.call(p,NS[MS],MS,NS),(wc=FW[dG])?(DC[MS]=wc,wc.__data__=NS[MS],FW[dG]=null):c[MS]=new x(p,NS[MS]);for(MS=0;MS<Sf;++MS)(wc=n[MS])&&FW[IT[MS]]===wc&&(tL[MS]=wc)}
function m(p,n){return p<n?-1:p>n?1:p>=n?0:NaN}
function z(p){return function(){this.removeAttribute(p)}}
function B(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function C(p,n){return function(){this.setAttribute(p,n)}}
function H(p,n){return function(){this.setAttributeNS(p.space,p.local,n)}}
function e(p,n){return function(){var c=n.apply(this,arguments);c==null?this.removeAttribute(p):this.setAttribute(p,c)}}
function T(p,n){return function(){var c=n.apply(this,arguments);c==null?this.removeAttributeNS(p.space,p.local):this.setAttributeNS(p.space,p.local,c)}}
function L5(p){return function(){this.style.removeProperty(p)}}
function vH(p,n,c){return function(){this.style.setProperty(p,n,c)}}
function u_(p,n,c){return function(){var DC=n.apply(this,arguments);DC==null?this.style.removeProperty(p):this.style.setProperty(p,DC,c)}}
function jW(p,n){return p.style.getPropertyValue(n)||(p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView).getComputedStyle(p,null).getPropertyValue(n)}
function xA(p){return function(){delete this[p]}}
function dq(p,n){return function(){this[p]=n}}
function $A(p,n){return function(){var c=n.apply(this,arguments);c==null?delete this[p]:this[p]=c}}
function BH(){this.textContent=""}
function jf(p){return function(){this.textContent=p}}
function yg(p){return function(){var n=p.apply(this,arguments);this.textContent=n==null?"":n}}
function eW(){this.innerHTML=""}
function oe(p){return function(){this.innerHTML=p}}
function xP(p){return function(){var n=p.apply(this,arguments);this.innerHTML=n==null?"":n}}
function XW(){return null}
function zo(){var p=this.parentNode;p&&p.removeChild(this)}
function Ub(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function rq(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function ao(p,n,c){p=rc(p,n,c);return function(DC){var tL=DC.relatedTarget;tL&&(tL===this||tL.compareDocumentPosition(this)&8)||p.call(this,DC)}}
function rc(p,n,c){return function(){p.call(this,this.__data__,n,c)}}
function Ta(p){return p.trim().split(/^|\s+/).map(function(n){var c="",DC=n.indexOf(".");DC>=0&&(c=n.slice(DC+1),n=n.slice(0,DC));return{type:n,name:c}})}
function f_(p){return function(){var n=this.__on;if(n){for(var c=0,DC=-1,tL=n.length,NS;c<tL;++c)(NS=n[c],p.type&&NS.type!==p.type||NS.name!==p.name)?n[++DC]=NS:this.removeEventListener(NS.type,NS.listener,NS.capture);++DC?n.length=DC:delete this.__on}}}
function mM(p,n,c){var DC=sKM.hasOwnProperty(p.type)?ao:rc;return function(tL,NS,Xt){tL=this.__on;var MS;NS=DC(n,NS,Xt);if(tL){Xt=0;for(var wc=tL.length;Xt<wc;++Xt)if((MS=tL[Xt]).type===p.type&&MS.name===p.name){this.removeEventListener(MS.type,MS.listener,MS.capture);this.addEventListener(MS.type,MS.listener=NS,MS.capture=c);MS.value=n;return}}this.addEventListener(p.type,NS,c);MS={type:p.type,name:p.name,value:n,listener:NS,capture:c};tL?tL.push(MS):this.__on=[MS]}}
function M_(p,n,c){var DC=p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView,tL=DC.CustomEvent;typeof tL==="function"?tL=new tL(n,c):(tL=DC.document.createEvent("Event"),c?(tL.initEvent(n,c.bubbles,c.cancelable),tL.detail=c.detail):tL.initEvent(n,!1,!1));p.dispatchEvent(tL)}
function ZR(p,n){return function(){return M_(this,p,n)}}
function rG(p,n){return function(){return M_(this,p,n.apply(this,arguments))}}
function $P(p,n){this._groups=p;this._parents=n}
function HC(){return new $P([[document.documentElement]],RGg)}
function vG(){this._="@"+(++OFT).toString(36)}
function jg(p,n,c){p.prototype=n.prototype=c;c.constructor=p}
function UO(p,n){p=Object.create(p.prototype);for(var c in n)p[c]=n[c];return p}
function HG(){}
function cG(p){var n;p=(p+"").trim().toLowerCase();return(n=LF8.exec(p))?(n=parseInt(n[1],16),new ZQ(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1)):(n=JhG.exec(p))?vC(parseInt(n[1],16)):(n=w7G.exec(p))?new ZQ(n[1],n[2],n[3],1):(n=vZZ.exec(p))?new ZQ(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=SH8.exec(p))?AV(n[1],n[2],n[3],n[4]):(n=t9Y.exec(p))?AV(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=P1R.exec(p))?qa(n[1],n[2]/100,n[3]/100,1):(n=KFG.exec(p))?qa(n[1],n[2]/100,n[3]/100,n[4]):VoM.hasOwnProperty(p)?
vC(VoM[p]):p==="transparent"?new ZQ(NaN,NaN,NaN,0):null}
function vC(p){return new ZQ(p>>16&255,p>>8&255,p&255,1)}
function AV(p,n,c,DC){DC<=0&&(p=n=c=NaN);return new ZQ(p,n,c,DC)}
function AM(p){p instanceof HG||(p=cG(p));if(!p)return new ZQ;p=p.rgb();return new ZQ(p.r,p.g,p.b,p.opacity)}
function oT(p,n,c,DC){return arguments.length===1?AM(p):new ZQ(p,n,c,DC==null?1:DC)}
function ZQ(p,n,c,DC){this.r=+p;this.g=+n;this.b=+c;this.opacity=+DC}
function Ox(p){p=Math.max(0,Math.min(255,Math.round(p)||0));return(p<16?"0":"")+p.toString(16)}
function qa(p,n,c,DC){DC<=0?p=n=c=NaN:c<=0||c>=1?p=n=NaN:n<=0&&(p=NaN);return new Eu(p,n,c,DC)}
function aB(p){if(p instanceof Eu)return new Eu(p.h,p.s,p.l,p.opacity);p instanceof HG||(p=cG(p));if(!p)return new Eu;if(p instanceof Eu)return p;p=p.rgb();var n=p.r/255,c=p.g/255,DC=p.b/255,tL=Math.min(n,c,DC),NS=Math.max(n,c,DC),Xt=NaN,MS=NS-tL,wc=(NS+tL)/2;MS?(Xt=n===NS?(c-DC)/MS+(c<DC)*6:c===NS?(DC-n)/MS+2:(n-c)/MS+4,MS/=wc<.5?NS+tL:2-NS-tL,Xt*=60):MS=wc>0&&wc<1?0:Xt;return new Eu(Xt,MS,wc,p.opacity)}
function mE(p,n,c,DC){return arguments.length===1?aB(p):new Eu(p,n,c,DC==null?1:DC)}
function Eu(p,n,c,DC){this.h=+p;this.s=+n;this.l=+c;this.opacity=+DC}
function cd(p,n,c){return(p<60?n+(c-n)*p/60:p<180?c:p<240?n+(c-n)*(240-p)/60:n)*255}
function G8(p){if(p instanceof YA)return new YA(p.l,p.a,p.b,p.opacity);if(p instanceof Ga){if(isNaN(p.h))return new YA(p.l,0,0,p.opacity);var n=p.h*ZNf;return new YA(p.l,Math.cos(n)*p.c,Math.sin(n)*p.c,p.opacity)}p instanceof ZQ||(p=AM(p));var c=uR(p.r),DC=uR(p.g),tL=uR(p.b);n=cH(.2225045*c+.7168786*DC+.0606169*tL);if(c===DC&&DC===tL)var NS=c=n;else NS=cH((.4360747*c+.3850649*DC+.1430804*tL)/.96422),c=cH((.0139322*c+.0971045*DC+.7141733*tL)/.82521);return new YA(116*n-16,500*(NS-n),200*(n-c),p.opacity)}
function YA(p,n,c,DC){this.l=+p;this.a=+n;this.b=+c;this.opacity=+DC}
function cH(p){return p>U18?Math.pow(p,1/3):p/ggR+IPP}
function Te(p){return p>j6?p*p*p:ggR*(p-IPP)}
function lu(p){return 255*(p<=.0031308?12.92*p:1.055*Math.pow(p,1/2.4)-.055)}
function uR(p){return(p/=255)<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}
function QA(p){if(p instanceof Ga)return new Ga(p.h,p.c,p.l,p.opacity);p instanceof YA||(p=G8(p));if(p.a===0&&p.b===0)return new Ga(NaN,0,p.l,p.opacity);var n=Math.atan2(p.b,p.a)*y5_;return new Ga(n<0?n+360:n,Math.sqrt(p.a*p.a+p.b*p.b),p.l,p.opacity)}
function Yy(p,n,c,DC){return arguments.length===1?QA(p):new Ga(p,n,c,DC==null?1:DC)}
function Ga(p,n,c,DC){this.h=+p;this.c=+n;this.l=+c;this.opacity=+DC}
function qz(p,n,c,DC){if(arguments.length===1){var tL=p;if(tL instanceof iR)tL=new iR(tL.h,tL.s,tL.l,tL.opacity);else{tL instanceof ZQ||(tL=AM(tL));var NS=tL.g/255,Xt=tL.b/255,MS=(Diu*Xt+tL.r/255*-1.7884503806-3.5172982438*NS)/(Diu+-1.7884503806-3.5172982438);Xt-=MS;var wc=(1.97294*(NS-MS)- -.29227*Xt)/-.90649;Xt=(NS=Math.sqrt(wc*wc+Xt*Xt)/(1.97294*MS*(1-MS)))?Math.atan2(wc,Xt)*y5_-120:NaN;tL=new iR(Xt<0?Xt+360:Xt,NS,MS,tL.opacity)}}else tL=new iR(p,n,c,DC==null?1:DC);return tL}
function iR(p,n,c,DC){this.h=+p;this.s=+n;this.l=+c;this.opacity=+DC}
function JV(p,n,c,DC,tL){var NS=p*p,Xt=NS*p;return((1-3*p+3*NS-Xt)*n+(4-6*NS+3*Xt)*c+(1+3*p+3*NS-3*Xt)*DC+Xt*tL)/6}
function Nz(p){return function(){return p}}
function z_(p,n){return function(c){return p+c*n}}
function gM(p,n,c){return p=Math.pow(p,c),n=Math.pow(n,c)-p,c=1/c,function(DC){return Math.pow(p+DC*n,c)}}
function $s(p,n){var c=n-p;return c?z_(p,c>180||c<-180?c-360*Math.round(c/360):c):Nz(isNaN(p)?n:p)}
function jT(p){return(p=+p)===1?DT:function(n,c){return c-n?gM(n,c,p):Nz(isNaN(n)?c:n)}}
function DT(p,n){var c=n-p;return c?z_(p,c):Nz(isNaN(p)?n:p)}
function fZ(p){return function(n){var c=n.length,DC=Array(c),tL=Array(c),NS=Array(c),Xt;for(Xt=0;Xt<c;++Xt){var MS=oT(n[Xt]);DC[Xt]=MS.r||0;tL[Xt]=MS.g||0;NS[Xt]=MS.b||0}DC=p(DC);tL=p(tL);NS=p(NS);MS.opacity=1;return function(wc){MS.r=DC(wc);MS.g=tL(wc);MS.b=NS(wc);return MS+""}}}
function ye(p,n){return p=+p,n-=p,function(c){return p+n*c}}
function xE(p){return function(){return p}}
function CJ(p){return function(n){return p(n)+""}}
function Xg(p,n){var c=vgq.lastIndex=SCW.lastIndex=0,DC,tL,NS,Xt=-1,MS=[],wc=[];p+="";for(n+="";(DC=vgq.exec(p))&&(tL=SCW.exec(n));)(NS=tL.index)>c&&(NS=n.slice(c,NS),MS[Xt]?MS[Xt]+=NS:MS[++Xt]=NS),(DC=DC[0])===(tL=tL[0])?MS[Xt]?MS[Xt]+=tL:MS[++Xt]=tL:(MS[++Xt]=null,wc.push({i:Xt,x:ye(DC,tL)})),c=SCW.lastIndex;c<n.length&&(NS=n.slice(c),MS[Xt]?MS[Xt]+=NS:MS[++Xt]=NS);return MS.length<2?wc[0]?CJ(wc[0].x):xE(n):(n=wc.length,function(FW){for(var Sf=0,hM;Sf<n;++Sf)MS[(hM=wc[Sf]).i]=hM.x(FW);return MS.join("")})}
function ib(p,n,c,DC,tL,NS){var Xt,MS,wc;if(Xt=Math.sqrt(p*p+n*n))p/=Xt,n/=Xt;if(wc=p*c+n*DC)c-=p*wc,DC-=n*wc;if(MS=Math.sqrt(c*c+DC*DC))c/=MS,DC/=MS,wc/=MS;p*DC<n*c&&(p=-p,n=-n,wc=-wc,Xt=-Xt);return{translateX:tL,translateY:NS,rotate:Math.atan2(n,p)*FnG,skewX:Math.atan(wc)*FnG,scaleX:Xt,scaleY:MS}}
function nZ(p,n,c,DC){function tL(FW){return FW.length?FW.pop()+" ":""}
function NS(FW,Sf,hM,IT,dG,fS){FW!==hM||Sf!==IT?(dG=dG.push("translate(",null,n,null,c),fS.push({i:dG-4,x:ye(FW,hM)},{i:dG-2,x:ye(Sf,IT)})):(hM||IT)&&dG.push("translate("+hM+n+IT+c)}
function Xt(FW,Sf,hM,IT){FW!==Sf?(FW-Sf>180?Sf+=360:Sf-FW>180&&(FW+=360),IT.push({i:hM.push(tL(hM)+"rotate(",null,DC)-2,x:ye(FW,Sf)})):Sf&&hM.push(tL(hM)+"rotate("+Sf+DC)}
function MS(FW,Sf,hM,IT){FW!==Sf?IT.push({i:hM.push(tL(hM)+"skewX(",null,DC)-2,x:ye(FW,Sf)}):Sf&&hM.push(tL(hM)+"skewX("+Sf+DC)}
function wc(FW,Sf,hM,IT,dG,fS){FW!==hM||Sf!==IT?(dG=dG.push(tL(dG)+"scale(",null,",",null,")"),fS.push({i:dG-4,x:ye(FW,hM)},{i:dG-2,x:ye(Sf,IT)})):hM===1&&IT===1||dG.push(tL(dG)+"scale("+hM+","+IT+")")}
return function(FW,Sf){var hM=[],IT=[];FW=p(FW);Sf=p(Sf);NS(FW.translateX,FW.translateY,Sf.translateX,Sf.translateY,hM,IT);Xt(FW.rotate,Sf.rotate,hM,IT);MS(FW.skewX,Sf.skewX,hM,IT);wc(FW.scaleX,FW.scaleY,Sf.scaleX,Sf.scaleY,hM,IT);FW=Sf=null;return function(dG){for(var fS=-1,gj=IT.length,Wd;++fS<gj;)hM[(Wd=IT[fS]).i]=Wd.x(dG);return hM.join("")}}}
function Ek(p){return function(n,c){var DC=p((n=mE(n)).h,(c=mE(c)).h),tL=DT(n.s,c.s),NS=DT(n.l,c.l),Xt=DT(n.opacity,c.opacity);return function(MS){n.h=DC(MS);n.s=tL(MS);n.l=NS(MS);n.opacity=Xt(MS);return n+""}}}
function lV(p){return function(n,c){var DC=p((n=Yy(n)).h,(c=Yy(c)).h),tL=DT(n.c,c.c),NS=DT(n.l,c.l),Xt=DT(n.opacity,c.opacity);return function(MS){n.h=DC(MS);n.c=tL(MS);n.l=NS(MS);n.opacity=Xt(MS);return n+""}}}
function B_(p){return function DC(c){function tL(NS,Xt){var MS=p((NS=qz(NS)).h,(Xt=qz(Xt)).h),wc=DT(NS.s,Xt.s),FW=DT(NS.l,Xt.l),Sf=DT(NS.opacity,Xt.opacity);return function(hM){NS.h=MS(hM);NS.s=wc(hM);NS.l=FW(Math.pow(hM,c));NS.opacity=Sf(hM);return NS+""}}
c=+c;tL.gamma=DC;return tL}(1)}
function i9(){return gO||(RHM(Bf),gO=tF.now()+OTe)}
function Bf(){gO=0}
function cn(){this._call=this._time=this._next=null}
function AP(p,n,c){var DC=new cn;DC.restart(p,n,c);return DC}
function $R(){gO=(LAH=tF.now())+OTe;oG=P6=0;try{i9();++oG;for(var p=JqH,n;p;)(n=gO-p._time)>=0&&p._call.call(null,n),p=p._next;--oG}finally{oG=0;p=JqH;for(var c=Infinity;p;)if(p._call){c>p._time&&(c=p._time);var DC=p;p=p._next}else n=p._next,p._next=null,p=DC?DC._next=n:JqH=n;Kn=DC;bb(c);gO=0}}
function V9(){var p=tF.now(),n=p-LAH;n>1E3&&(OTe-=n,LAH=p)}
function bb(p){oG||(P6&&(P6=clearTimeout(P6)),p-gO>24?(p<Infinity&&(P6=setTimeout($R,p-tF.now()-OTe)),Ue&&(Ue=clearInterval(Ue))):(Ue||(LAH=tF.now(),Ue=setInterval(V9,1E3)),oG=1,RHM($R)))}
function CM(p,n,c){var DC=new cn;n=n==null?0:+n;DC.restart(function(tL){DC.stop();p(tL+n)},n,c);
return DC}
function Ie(p,n,c,DC,tL,NS){var Xt=p.__transition;if(!Xt)p.__transition={};else if(c in Xt)return;fG(p,c,{name:n,index:DC,group:tL,on:rhZ,tween:j2C,time:NS.time,delay:NS.delay,duration:NS.duration,ease:NS.ease,timer:null,state:0})}
function wG(p,n){p=Rn(p,n);if(p.state>0)throw Error("ze");return p}
function XY(p,n){p=Rn(p,n);if(p.state>2)throw Error("Ae");return p}
function Rn(p,n){p=p.__transition;if(!p||!(p=p[n]))throw Error("Be");return p}
function fG(p,n,c){function DC(wc){var FW,Sf;if(c.state!==1)return NS();for(IT in Xt){var hM=Xt[IT];if(hM.name===c.name){if(hM.state===3)return CM(DC);hM.state===4?(hM.state=6,hM.timer.stop(),hM.on.call("interrupt",p,p.__data__,hM.index,hM.group),delete Xt[IT]):+IT<n&&(hM.state=6,hM.timer.stop(),delete Xt[IT])}}CM(function(){c.state===3&&(c.state=4,c.timer.restart(tL,c.delay,c.time),tL(wc))});
c.state=2;c.on.call("start",p,p.__data__,c.index,c.group);if(c.state===2){c.state=3;MS=Array(Sf=c.tween.length);var IT=0;for(FW=-1;IT<Sf;++IT)if(hM=c.tween[IT].value.call(p,p.__data__,c.index,c.group))MS[++FW]=hM;MS.length=FW+1}}
function tL(wc){wc=wc<c.duration?c.ease.call(null,wc/c.duration):(c.timer.restart(NS),c.state=5,1);for(var FW=-1,Sf=MS.length;++FW<Sf;)MS[FW].call(null,wc);c.state===5&&(c.on.call("end",p,p.__data__,c.index,c.group),NS())}
function NS(){c.state=6;c.timer.stop();delete Xt[n];for(var wc in Xt)return;delete p.__transition}
var Xt=p.__transition,MS;Xt[n]=c;c.timer=AP(function(wc){c.state=1;c.timer.restart(DC,c.delay,c.time);c.delay<=wc&&DC(wc-c.delay)},0,c.time)}
function DZ(p,n){var c,DC;return function(){var tL=XY(this,p),NS=tL.tween;if(NS!==c){DC=c=NS;NS=0;for(var Xt=DC.length;NS<Xt;++NS)if(DC[NS].name===n){DC=DC.slice();DC.splice(NS,1);break}}tL.tween=DC}}
function y2(p,n,c){var DC,tL;if(typeof c!=="function")throw Error();return function(){var NS=XY(this,p),Xt=NS.tween;if(Xt!==DC){tL=(DC=Xt).slice();Xt={name:n,value:c};for(var MS=0,wc=tL.length;MS<wc;++MS)if(tL[MS].name===n){tL[MS]=Xt;break}MS===wc&&tL.push(Xt)}NS.tween=tL}}
function WW(p,n,c){var DC=p._id;p.each(function(){var tL=XY(this,DC);(tL.value||(tL.value={}))[n]=c.apply(this,arguments)});
return function(tL){return Rn(tL,DC).value[n]}}
function L2(p,n){var c;return(typeof n==="number"?ye:n instanceof cG?Oca:(c=cG(n))?(n=c,Oca):Xg)(p,n)}
function rs(p){return function(){this.removeAttribute(p)}}
function wu_(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function ji(p,n,c){var DC,tL;return function(){var NS=this.getAttribute(p);return NS===c?null:NS===DC?tL:tL=n(DC=NS,c)}}
function ov(p,n,c){var DC,tL;return function(){var NS=this.getAttributeNS(p.space,p.local);return NS===c?null:NS===DC?tL:tL=n(DC=NS,c)}}
function vn4(p,n,c){var DC,tL,NS;return function(){var Xt=c(this);if(Xt==null)return void this.removeAttribute(p);var MS=this.getAttribute(p);return MS===Xt?null:MS===DC&&Xt===tL?NS:NS=n(DC=MS,tL=Xt)}}
function oZY(p,n,c){var DC,tL,NS;return function(){var Xt=c(this);if(Xt==null)return void this.removeAttributeNS(p.space,p.local);var MS=this.getAttributeNS(p.space,p.local);return MS===Xt?null:MS===DC&&Xt===tL?NS:NS=n(DC=MS,tL=Xt)}}
function Nma(p,n){function c(){var DC=this,tL=n.apply(DC,arguments);return tL&&function(NS){DC.setAttributeNS(p.space,p.local,tL(NS))}}
c._value=n;return c}
function hGb(p,n){function c(){var DC=this,tL=n.apply(DC,arguments);return tL&&function(NS){DC.setAttribute(p,tL(NS))}}
c._value=n;return c}
function x1g(p,n){return function(){wG(this,p).delay=+n.apply(this,arguments)}}
function lky(p,n){return n=+n,function(){wG(this,p).delay=n}}
function uLy(p,n){return function(){XY(this,p).duration=+n.apply(this,arguments)}}
function qHQ(p,n){return n=+n,function(){XY(this,p).duration=n}}
function EZa(p,n){if(typeof n!=="function")throw Error();return function(){XY(this,p).ease=n}}
function GRT(p){return(p+"").trim().split(/^|\s+/).every(function(n){var c=n.indexOf(".");c>=0&&(n=n.slice(0,c));return!n||n==="start"})}
function X71(p,n,c){var DC,tL,NS=GRT(n)?wG:XY;return function(){var Xt=NS(this,p),MS=Xt.on;if(MS!==DC)(tL=(DC=MS).copy()).on(n,c);Xt.on=tL}}
function Q2e(p){return function(){var n=this.parentNode,c;for(c in this.__transition)if(+c!==p)return;n&&n.removeChild(this)}}
function YH8(p,n){var c,DC,tL;return function(){var NS=jW(this,p),Xt=(this.style.removeProperty(p),jW(this,p));return NS===Xt?null:NS===c&&Xt===DC?tL:tL=n(c=NS,DC=Xt)}}
function fkb(p){return function(){this.style.removeProperty(p)}}
function nZY(p,n,c){var DC,tL;return function(){var NS=jW(this,p);return NS===c?null:NS===DC?tL:tL=n(DC=NS,c)}}
function p7y(p,n,c){var DC,tL,NS;return function(){var Xt=jW(this,p),MS=c(this);MS==null&&(MS=(this.style.removeProperty(p),jW(this,p)));return Xt===MS?null:Xt===DC&&MS===tL?NS:NS=n(DC=Xt,tL=MS)}}
function m1g(p,n,c){function DC(){var tL=this,NS=n.apply(tL,arguments);return NS&&function(Xt){tL.style.setProperty(p,NS(Xt),c)}}
DC._value=n;return DC}
function M9o(p){return function(){this.textContent=p}}
function zGC(p){return function(){var n=p(this);this.textContent=n==null?"":n}}
function Bb(p,n,c,DC){this._groups=p;this._parents=n;this._name=c;this._id=DC}
function toH(p){return{type:p}}
function PLq(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function SN_(){}
function Lnz(p,n){var c=new SN_;if(p instanceof SN_)p.each(function(Xt,MS){c.set(MS,Xt)});
else if(Array.isArray(p)){var DC=-1,tL=p.length,NS;if(n==null)for(;++DC<tL;)c.set(DC,p[DC]);else for(;++DC<tL;)c.set(n(NS=p[DC],DC,p),NS)}else if(p)for(DC in p)c.set(DC,p[DC]);return c}
function tbH(){}
function J5a(p){return function(n){for(var c={},DC=0;DC<p.length;DC++)c[p[DC]]=n[DC]||"";return c}}
function kR1(p,n){var c=J5a(p);return function(DC,tL){return n(c(DC),tL,p)}}
function d1y(p){var n=Object.create(null),c=[];p.forEach(function(DC){for(var tL in DC)tL in n||c.push(n[tL]=tL)});
return c}
function wQc(p){function n(Xt,MS){function wc(){if(fS)return Kf4;if(gj)return gj=!1,vS_;var jb,vV=hM,m9;if(Xt.charCodeAt(vV)===34){for(;hM++<Sf&&Xt.charCodeAt(hM)!==34||Xt.charCodeAt(++hM)===34;);(jb=hM)>=Sf?fS=!0:(m9=Xt.charCodeAt(hM++))===10?gj=!0:m9===13&&(gj=!0,Xt.charCodeAt(hM)===10&&++hM);return Xt.slice(vV+1,jb-1).replace(/""/g,'"')}for(;hM<Sf;){if((m9=Xt.charCodeAt(jb=hM++))===10)gj=!0;else if(m9===13)gj=!0,Xt.charCodeAt(hM)===10&&++hM;else if(m9!==NS)continue;return Xt.slice(vV,jb)}return fS=
!0,Xt.slice(vV,Sf)}
var FW=[],Sf=Xt.length,hM=0,IT=0,dG,fS=Sf<=0,gj=!1;Xt.charCodeAt(Sf-1)===10&&--Sf;for(Xt.charCodeAt(Sf-1)===13&&--Sf;(dG=wc())!==Kf4;){for(var Wd=[];dG!==vS_&&dG!==Kf4;)Wd.push(dG),dG=wc();MS&&(Wd=MS(Wd,IT++))==null||FW.push(Wd)}return FW}
function c(Xt){return Xt.map(DC).join(p)}
function DC(Xt){return Xt==null?"":tL.test(Xt)?'"'+Xt.replace(/"/g,'""')+'"':Xt}
var tL=new RegExp('["'+p+"\n\r]"),NS=p.charCodeAt(0);return{parse:function(Xt,MS){var wc,FW;Xt=n(Xt,function(Sf,hM){if(wc)return wc(Sf,hM-1);FW=Sf;wc=MS?kR1(Sf,MS):J5a(Sf)});
Xt.columns=FW||[];return Xt},
parseRows:n,format:function(Xt,MS){MS==null&&(MS=d1y(Xt));return[MS.map(DC).join(p)].concat(Xt.map(function(wc){return MS.map(function(FW){return DC(wc[FW])}).join(p)})).join("\n")},
formatRows:function(Xt){return Xt.map(c).join("\n")}}}
function akG(p){if(!p.ok)throw Error("Ce`"+p.status+"`"+p.statusText);return p.text()}
function SGR(p){return function(n,c,DC){arguments.length===2&&typeof c==="function"&&(DC=c,c=void 0);return fetch(n,c).then(akG).then(function(tL){return p(tL,DC)})}}
function tDn(p,n,c,DC){if(isNaN(n)||isNaN(c))return p;var tL,NS=p._root;DC={data:DC};var Xt=p._x0,MS=p._y0,wc=p._x1,FW=p._y1,Sf,hM,IT,dG,fS;if(!NS)return p._root=DC,p;for(;NS.length;)if((IT=n>=(Sf=(Xt+wc)/2))?Xt=Sf:wc=Sf,(dG=c>=(hM=(MS+FW)/2))?MS=hM:FW=hM,tL=NS,!(NS=NS[fS=dG<<1|IT]))return tL[fS]=DC,p;var gj=+p._x.call(null,NS.data);var Wd=+p._y.call(null,NS.data);if(n===gj&&c===Wd)return DC.next=NS,tL?tL[fS]=DC:p._root=DC,p;do tL=tL?tL[fS]=Array(4):p._root=Array(4),(IT=n>=(Sf=(Xt+wc)/2))?Xt=Sf:wc=
Sf,(dG=c>=(hM=(MS+FW)/2))?MS=hM:FW=hM;while((fS=dG<<1|IT)===(IT=(Wd>=hM)<<1|gj>=Sf));return tL[IT]=NS,tL[fS]=DC,p}
function R0(p,n,c,DC,tL){this.node=p;this.x0=n;this.y0=c;this.x1=DC;this.y1=tL}
function che(p){return p[0]}
function WF1(p){return p[1]}
function UGo(p,n,c,DC,tL,NS){this._x=p;this._y=n;this._x0=c;this._y0=DC;this._x1=tL;this._y1=NS;this._root=void 0}
function PzM(p){for(var n={data:p.data},c=n;p=p.next;)c=c.next={data:p.data};return n}
function PKA(p,n){if((n=(p=n?p.toExponential(n-1):p.toExponential()).indexOf("e"))<0)return null;var c=p.slice(0,n);return[c.length>1?c[0]+c.slice(2):c,+p.slice(n+1)]}
function C1C(p){return p=PKA(Math.abs(p)),p?p[1]:NaN}
function Bma(p,n){return function(c,DC){for(var tL=c.length,NS=[],Xt=0,MS=p[0],wc=0;tL>0&&MS>0;){wc+MS+1>DC&&(MS=Math.max(1,DC-wc));NS.push(c.substring(tL-=MS,tL+MS));if((wc+=MS+1)>DC)break;MS=p[Xt=(Xt+1)%p.length]}return NS.reverse().join(n)}}
function iFg(p){return function(n){return n.replace(/[0-9]/g,function(c){return p[+c]})}}
function rlA(p){return new jKC(p)}
function jKC(p){if(!(n=Aha.exec(p)))throw Error("De`"+p);var n;this.fill=n[1]||" ";this.align=n[2]||">";this.sign=n[3]||"-";this.symbol=n[4]||"";this.zero=!!n[5];this.width=n[6]&&+n[6];this.comma=!!n[7];this.precision=n[8]&&+n[8].slice(1);this.trim=!!n[9];this.type=n[10]||""}
function Kn_(p,n){n=PKA(p,n);if(!n)return p+"";p=n[0];n=n[1];return n<0?"0."+Array(-n).join("0")+p:p.length>n+1?p.slice(0,n+1)+"."+p.slice(n+1):p+Array(n-p.length+2).join("0")}
function UiO(p){return p}
function $1T(p){function n(MS){function wc(Lj){var Mw=m9,gG=PS,Gq,Ux;if(vV==="c")gG=Sj(Lj)+gG,Lj="";else{Lj=+Lj;var aT=Lj<0;Lj=Sj(Math.abs(Lj),Wd);if(jb){var JG=Lj.length,O1=1,of=-1;a:for(;O1<JG;++O1)switch(Lj[O1]){case ".":of=Gq=O1;break;case "0":of===0&&(of=O1);Gq=O1;break;default:if(!+Lj[O1])break a;of>0&&(of=0)}Lj=of>0?Lj.slice(0,of)+Lj.slice(Gq+1):Lj}aT&&+Lj===0&&(aT=!1);Mw=(aT?hM==="("?hM:"-":hM==="-"||hM==="("?"":hM)+Mw;gG=(vV==="s"?r5u[8+j_f/3]:"")+gG+(aT&&hM==="("?")":"");if(YW)for(aT=-1,
Gq=Lj.length;++aT<Gq;)if(Ux=Lj.charCodeAt(aT),48>Ux||Ux>57){gG=(Ux===46?tL+Lj.slice(aT+1):Lj.slice(aT))+gG;Lj=Lj.slice(0,aT);break}}gj&&!dG&&(Lj=c(Lj,Infinity));Ux=Mw.length+Lj.length+gG.length;aT=Ux<fS?Array(fS-Ux+1).join(FW):"";gj&&dG&&(Lj=c(aT+Lj,aT.length?fS-gG.length:Infinity),aT="");switch(Sf){case "<":Lj=Mw+Lj+gG+aT;break;case "=":Lj=Mw+aT+Lj+gG;break;case "^":Lj=aT.slice(0,Ux=aT.length>>1)+Mw+Lj+gG+aT.slice(Ux);break;default:Lj=aT+Mw+Lj+gG}return NS(Lj)}
MS=rlA(MS);var FW=MS.fill,Sf=MS.align,hM=MS.sign,IT=MS.symbol,dG=MS.zero,fS=MS.width,gj=MS.comma,Wd=MS.precision,jb=MS.trim,vV=MS.type;vV==="n"?(gj=!0,vV="g"):oSW[vV]||(Wd==null&&(Wd=12),jb=!0,vV="g");if(dG||FW==="0"&&Sf==="=")dG=!0,FW="0",Sf="=";var m9=IT==="$"?DC[0]:IT==="#"&&/[boxX]/.test(vV)?"0"+vV.toLowerCase():"",PS=IT==="$"?DC[1]:/[%p]/.test(vV)?Xt:"",Sj=oSW[vV],YW=/[defgprs%]/.test(vV);Wd=Wd==null?6:/[gprs]/.test(vV)?Math.max(1,Math.min(21,Wd)):Math.max(0,Math.min(20,Wd));wc.toString=function(){return MS+
""};
return wc}
var c=p.grouping&&p.thousands?Bma(p.grouping,p.thousands):UiO,DC=p.currency,tL=p.decimal,NS=p.numerals?iFg(p.numerals):UiO,Xt=p.percent||"%";return{format:n,formatPrefix:function(MS,wc){var FW=n((MS=rlA(MS),MS.type="f",MS));MS=Math.max(-8,Math.min(8,Math.floor(C1C(wc)/3)))*3;var Sf=Math.pow(10,-MS),hM=r5u[8+MS/3];return function(IT){return FW(Sf*IT)+hM}}}}
function J4(){this.reset()}
function NKu(p,n,c){var DC=p.s=n+c,tL=DC-n;p.t=n-(DC-tL)+(c-tL)}
function KAS(p){return p>1?Sz:p<-1?-Sz:Math.asin(p)}
function bFa(){}
function hHM(p){var n=p[0];p=p[1];var c=ts(p);return[c*ts(n),c*CC(n),CC(p)]}
function xin(p,n){return[p[1]*n[2]-p[2]*n[1],p[2]*n[0]-p[0]*n[2],p[0]*n[1]-p[1]*n[0]]}
function lPe(p){var n=UMq(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]);p[0]/=n;p[1]/=n;p[2]/=n}
function HFC(){var p=[],n;return{point:function(c,DC){n.push([c,DC])},
lineStart:function(){p.push(n=[])},
lineEnd:bFa,rejoin:function(){p.length>1&&p.push(p.pop().concat(p.shift()))},
result:function(){var c=p;p=[];n=null;return c}}}
function rqH(p,n,c,DC){this.x=p;this.z=n;this.o=c;this.e=DC;this.v=!1;this.n=this.p=null}
function eGR(p,n,c,DC,tL){var NS=[],Xt=[];p.forEach(function(hM){if(!((IT=hM.length-1)<=0)){var IT,dG=hM[0],fS=hM[IT],gj=dG;if(iC(gj[0]-fS[0])<1E-6&&iC(gj[1]-fS[1])<1E-6){tL.lineStart();for(MS=0;MS<IT;++MS)tL.point((dG=hM[MS])[0],dG[1]);tL.lineEnd()}else NS.push(IT=new rqH(dG,hM,null,!0)),Xt.push(IT.o=new rqH(dG,null,IT,!1)),NS.push(IT=new rqH(fS,hM,null,!1)),Xt.push(IT.o=new rqH(fS,null,IT,!0))}});
if(NS.length){Xt.sort(n);uua(NS);uua(Xt);var MS=0;for(p=Xt.length;MS<p;++MS)Xt[MS].e=c=!c;c=NS[0];for(var wc;;){for(var FW=c,Sf=!0;FW.v;)if((FW=FW.n)===c)return;n=FW.z;tL.lineStart();do{FW.v=FW.o.v=!0;if(FW.e){if(Sf)for(MS=0,p=n.length;MS<p;++MS)tL.point((wc=n[MS])[0],wc[1]);else DC(FW.x,FW.n.x,1,tL);FW=FW.n}else{if(Sf)for(n=FW.p.z,MS=n.length-1;MS>=0;--MS)tL.point((wc=n[MS])[0],wc[1]);else DC(FW.x,FW.p.x,-1,tL);FW=FW.p}FW=FW.o;n=FW.z;Sf=!Sf}while(!FW.v);tL.lineEnd()}}}
function uua(p){if(n=p.length){for(var n,c=0,DC=p[0],tL;++c<n;)DC.n=tL=p[c],tL.p=DC,DC=tL;DC.n=tL=p[0];tL.p=DC}}
function TmG(p){return p.length>1}
function s2b(p,n){return((p=p.x)[0]<0?p[1]-Sz-1E-6:Sz-p[1])-((n=n.x)[0]<0?n[1]-Sz-1E-6:Sz-n[1])}
function ogA(){}
function qGf(p){return function(n,c){var DC=ts(n),tL=ts(c);DC=p(DC*tL);return[DC*tL*CC(n),DC*CC(c)]}}
function NI(p){return function(n,c){var DC=UMq(n*n+c*c),tL=p(DC),NS=CC(tL);tL=ts(tL);return[ESg(n*NS,DC*tL),KAS(DC&&c*NS/DC)]}}
function V9e(p){var n=0,c=p.children,DC=c&&c.length;if(DC)for(;--DC>=0;)n+=c[DC].value;else n=1;p.value=n}
function Gin(p,n){var c=new hF(p);p=+p.value&&(c.value=p.value);var DC,tL=[c],NS,Xt,MS,wc;for(n==null&&(n=ZFa);DC=tL.pop();)if(p&&(DC.value=+DC.data.value),(Xt=n(DC.data))&&(wc=Xt.length))for(DC.children=Array(wc),MS=wc-1;MS>=0;--MS)tL.push(NS=DC.children[MS]=new hF(Xt[MS])),NS.parent=DC,NS.depth=DC.depth+1;return c.eachBefore(gZG)}
function ZFa(p){return p.children}
function IVb(p){p.data=p.data.data}
function gZG(p){var n=0;do p.height=n;while((p=p.parent)&&p.height<++n)}
function hF(p){this.data=p;this.depth=this.height=0;this.parent=null}
function MU(p,n,c,DC){function tL(NS){return p(NS=new Date(+NS)),NS}
tL.floor=tL;tL.ceil=function(NS){return p(NS=new Date(NS-1)),n(NS,1),p(NS),NS};
tL.round=function(NS){var Xt=tL(NS),MS=tL.ceil(NS);return NS-Xt<MS-NS?Xt:MS};
tL.offset=function(NS,Xt){return n(NS=new Date(+NS),Xt==null?1:Math.floor(Xt)),NS};
tL.range=function(NS,Xt,MS){var wc=[],FW;NS=tL.ceil(NS);MS=MS==null?1:Math.floor(MS);if(!(NS<Xt&&MS>0))return wc;do wc.push(FW=new Date(+NS)),n(NS,MS),p(NS);while(FW<NS&&NS<Xt);return wc};
tL.filter=function(NS){return MU(function(Xt){if(Xt>=Xt)for(;p(Xt),!NS(Xt);)Xt.setTime(Xt-1)},function(Xt,MS){if(Xt>=Xt)if(MS<0)for(;++MS<=0;)for(;n(Xt,-1),!NS(Xt););
else for(;--MS>=0;)for(;n(Xt,1),!NS(Xt););})};
c&&(tL.count=function(NS,Xt){NpB.setTime(+NS);h9A.setTime(+Xt);p(NpB);p(h9A);return Math.floor(c(NpB,h9A))},tL.every=function(NS){NS=Math.floor(NS);
return isFinite(NS)&&NS>0?NS>1?tL.filter(DC?function(Xt){return DC(Xt)%NS===0}:function(Xt){return tL.count(0,Xt)%NS===0}):tL:null});
return tL}
function Il(p){return MU(function(n){n.setDate(n.getDate()-(n.getDay()+7-p)%7);n.setHours(0,0,0,0)},function(n,c){n.setDate(n.getDate()+c*7)},function(n,c){return(c-n-(c.getTimezoneOffset()-n.getTimezoneOffset())*6E4)/6048E5})}
function yW(p){return MU(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-p)%7);n.setUTCHours(0,0,0,0)},function(n,c){n.setUTCDate(n.getUTCDate()+c*7)},function(n,c){return(c-n)/6048E5})}
function yaa(p){if(0<=p.y&&p.y<100){var n=new Date(-1,p.m,p.d,p.H,p.M,p.S,p.L);n.setFullYear(p.y);return n}return new Date(p.y,p.m,p.d,p.H,p.M,p.S,p.L)}
function jfq(p){if(0<=p.y&&p.y<100){var n=new Date(Date.UTC(-1,p.m,p.d,p.H,p.M,p.S,p.L));n.setUTCFullYear(p.y);return n}return new Date(Date.UTC(p.y,p.m,p.d,p.H,p.M,p.S,p.L))}
function xT(p){return{y:p,m:0,d:1,H:0,M:0,S:0,L:0}}
function DDC(p){function n(gG,Gq){return function(Ux){var aT=[],JG=-1,O1=0,of=gG.length,pR,WZ;for(Ux instanceof Date||(Ux=new Date(+Ux));++JG<of;)if(gG.charCodeAt(JG)===37){aT.push(gG.slice(O1,JG));(O1=XQu[pR=gG.charAt(++JG)])!=null?pR=gG.charAt(++JG):O1=pR==="e"?" ":"0";if(WZ=Gq[pR])pR=WZ(Ux,O1);aT.push(pR);O1=JG+1}aT.push(gG.slice(O1,JG));return aT.join("")}}
function c(gG,Gq){return function(Ux){var aT=xT(1900);if(DC(aT,gG,Ux,0)!=Ux.length)return null;if("Q"in aT)return new Date(aT.Q);"p"in aT&&(aT.H=aT.H%12+aT.p*12);if("V"in aT){if(aT.V<1||aT.V>53)return null;"w"in aT||(aT.w=1);if("Z"in aT){Ux=jfq(xT(aT.y));var JG=Ux.getUTCDay();Ux=JG>4||JG===0?xGB.ceil(Ux):xGB(Ux);Ux=Q_R.offset(Ux,(aT.V-1)*7);aT.y=Ux.getUTCFullYear();aT.m=Ux.getUTCMonth();aT.d=Ux.getUTCDate()+(aT.w+6)%7}else Ux=Gq(xT(aT.y)),JG=Ux.getDay(),Ux=JG>4||JG===0?lW5.ceil(Ux):lW5(Ux),Ux=YGP.offset(Ux,
(aT.V-1)*7),aT.y=Ux.getFullYear(),aT.m=Ux.getMonth(),aT.d=Ux.getDate()+(aT.w+6)%7}else if("W"in aT||"U"in aT)"w"in aT||(aT.w="u"in aT?aT.u%7:"W"in aT?1:0),JG="Z"in aT?jfq(xT(aT.y)).getUTCDay():Gq(xT(aT.y)).getDay(),aT.m=0,aT.d="W"in aT?(aT.w+6)%7+aT.W*7-(JG+5)%7:aT.w+aT.U*7-(JG+6)%7;return"Z"in aT?(aT.H+=aT.Z/100|0,aT.M+=aT.Z%100,jfq(aT)):Gq(aT)}}
function DC(gG,Gq,Ux,aT){for(var JG=0,O1=Gq.length,of=Ux.length,pR;JG<O1;){if(aT>=of)return-1;pR=Gq.charCodeAt(JG++);if(pR===37){if(pR=Gq.charAt(JG++),pR=Mw[pR in XQu?Gq.charAt(JG++):pR],!pR||(aT=pR(gG,Ux,aT))<0)return-1}else if(pR!=Ux.charCodeAt(aT++))return-1}return aT}
var tL=p.dateTime,NS=p.date,Xt=p.time,MS=p.periods,wc=p.days,FW=p.shortDays,Sf=p.months,hM=p.shortMonths,IT=l6(MS),dG=u6(MS),fS=l6(wc),gj=u6(wc),Wd=l6(FW),jb=u6(FW),vV=l6(Sf),m9=u6(Sf),PS=l6(hM),Sj=u6(hM),YW={a:function(gG){return FW[gG.getDay()]},
A:function(gG){return wc[gG.getDay()]},
b:function(gG){return hM[gG.getMonth()]},
B:function(gG){return Sf[gG.getMonth()]},
c:null,d:fPn,e:fPn,f:Fco,H:Ro1,I:Op8,j:Lca,L:nSc,m:Jae,M:wjZ,p:function(gG){return MS[+(gG.getHours()>=12)]},
Q:pQg,s:miR,S:vxR,u:SKT,U:twZ,V:PQG,w:KcY,W:UDy,x:null,X:null,y:rag,Y:jFZ,Z:oxY,"%":MDg},Lj={a:function(gG){return FW[gG.getUTCDay()]},
A:function(gG){return wc[gG.getUTCDay()]},
b:function(gG){return hM[gG.getUTCMonth()]},
B:function(gG){return Sf[gG.getUTCMonth()]},
c:null,d:zHM,e:zHM,f:NOy,H:hoo,I:xDC,j:lVb,L:kiO,m:uAa,M:qKb,p:function(gG){return MS[+(gG.getUTCHours()>=12)]},
Q:pQg,s:miR,S:Exe,u:G3T,U:XjR,V:QFb,w:YKa,W:fVZ,x:null,X:null,y:nx8,Y:pjC,Z:mDY,"%":MDg},Mw={a:function(gG,Gq,Ux){return(Gq=Wd.exec(Gq.slice(Ux)))?(gG.w=jb[Gq[0].toLowerCase()],Ux+Gq[0].length):-1},
A:function(gG,Gq,Ux){return(Gq=fS.exec(Gq.slice(Ux)))?(gG.w=gj[Gq[0].toLowerCase()],Ux+Gq[0].length):-1},
b:function(gG,Gq,Ux){return(Gq=PS.exec(Gq.slice(Ux)))?(gG.m=Sj[Gq[0].toLowerCase()],Ux+Gq[0].length):-1},
B:function(gG,Gq,Ux){return(Gq=vV.exec(Gq.slice(Ux)))?(gG.m=m9[Gq[0].toLowerCase()],Ux+Gq[0].length):-1},
c:function(gG,Gq,Ux){return DC(gG,tL,Gq,Ux)},
d:dif,e:dif,f:MwY,H:aPM,I:aPM,j:zog,L:k3G,m:dDo,M:aVZ,p:function(gG,Gq,Ux){return(Gq=IT.exec(Gq.slice(Ux)))?(gG.p=dG[Gq[0].toLowerCase()],Ux+Gq[0].length):-1},
Q:caa,s:WcG,S:CQT,u:BOG,U:ipG,V:Aay,w:$DQ,W:bpZ,x:function(gG,Gq,Ux){return DC(gG,NS,Gq,Ux)},
X:function(gG,Gq,Ux){return DC(gG,Xt,Gq,Ux)},
y:Hpe,Y:eoQ,Z:TOb,"%":sFZ};YW.x=n(NS,YW);YW.X=n(Xt,YW);YW.c=n(tL,YW);Lj.x=n(NS,Lj);Lj.X=n(Xt,Lj);Lj.c=n(tL,Lj);return{format:function(gG){var Gq=n(gG,YW);Gq.toString=function(){return gG};
return Gq},
parse:function(gG){var Gq=c(gG,yaa);Gq.toString=function(){return gG};
return Gq},
utcFormat:function(gG){var Gq=n(gG,Lj);Gq.toString=function(){return gG};
return Gq},
utcParse:function(gG){var Gq=c(gG,jfq);Gq.toString=function(){return gG};
return Gq}}}
function dZ(p,n,c){var DC=p<0?"-":"";p=(DC?-p:p)+"";var tL=p.length;return DC+(tL<c?Array(c-tL+1).join(n)+p:p)}
function VwZ(p){return p.replace(Zpa,"\\$&")}
function l6(p){return new RegExp("^(?:"+p.map(VwZ).join("|")+")","i")}
function u6(p){for(var n={},c=-1,DC=p.length;++c<DC;)n[p[c].toLowerCase()]=c;return n}
function $DQ(p,n,c){return(n=Mr.exec(n.slice(c,c+1)))?(p.w=+n[0],c+n[0].length):-1}
function BOG(p,n,c){return(n=Mr.exec(n.slice(c,c+1)))?(p.u=+n[0],c+n[0].length):-1}
function ipG(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.U=+n[0],c+n[0].length):-1}
function Aay(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.V=+n[0],c+n[0].length):-1}
function bpZ(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.W=+n[0],c+n[0].length):-1}
function eoQ(p,n,c){return(n=Mr.exec(n.slice(c,c+4)))?(p.y=+n[0],c+n[0].length):-1}
function Hpe(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.y=+n[0]+(+n[0]>68?1900:2E3),c+n[0].length):-1}
function TOb(p,n,c){return(n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(c,c+6)))?(p.Z=n[1]?0:-(n[2]+(n[3]||"00")),c+n[0].length):-1}
function dDo(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.m=n[0]-1,c+n[0].length):-1}
function dif(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.d=+n[0],c+n[0].length):-1}
function zog(p,n,c){return(n=Mr.exec(n.slice(c,c+3)))?(p.m=0,p.d=+n[0],c+n[0].length):-1}
function aPM(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.H=+n[0],c+n[0].length):-1}
function aVZ(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.M=+n[0],c+n[0].length):-1}
function CQT(p,n,c){return(n=Mr.exec(n.slice(c,c+2)))?(p.S=+n[0],c+n[0].length):-1}
function k3G(p,n,c){return(n=Mr.exec(n.slice(c,c+3)))?(p.L=+n[0],c+n[0].length):-1}
function MwY(p,n,c){return(n=Mr.exec(n.slice(c,c+6)))?(p.L=Math.floor(n[0]/1E3),c+n[0].length):-1}
function sFZ(p,n,c){return(p=gxa.exec(n.slice(c,c+1)))?c+p[0].length:-1}
function caa(p,n,c){return(n=Mr.exec(n.slice(c)))?(p.Q=+n[0],c+n[0].length):-1}
function WcG(p,n,c){return(n=Mr.exec(n.slice(c)))?(p.Q=+n[0]*1E3,c+n[0].length):-1}
function fPn(p,n){return dZ(p.getDate(),n,2)}
function Ro1(p,n){return dZ(p.getHours(),n,2)}
function Op8(p,n){return dZ(p.getHours()%12||12,n,2)}
function Lca(p,n){return dZ(1+YGP.count(Nu(p),p),n,3)}
function nSc(p,n){return dZ(p.getMilliseconds(),n,3)}
function Fco(p,n){return nSc(p,n)+"000"}
function Jae(p,n){return dZ(p.getMonth()+1,n,2)}
function wjZ(p,n){return dZ(p.getMinutes(),n,2)}
function vxR(p,n){return dZ(p.getSeconds(),n,2)}
function SKT(p){p=p.getDay();return p===0?7:p}
function twZ(p,n){return dZ(InT.count(Nu(p),p),n,2)}
function PQG(p,n){var c=p.getDay();p=c>=4||c===0?ubL(p):ubL.ceil(p);return dZ(ubL.count(Nu(p),p)+(Nu(p).getDay()===4),n,2)}
function KcY(p){return p.getDay()}
function UDy(p,n){return dZ(lW5.count(Nu(p),p),n,2)}
function rag(p,n){return dZ(p.getFullYear()%100,n,2)}
function jFZ(p,n){return dZ(p.getFullYear()%1E4,n,4)}
function oxY(p){p=p.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+dZ(p/60|0,"0",2)+dZ(p%60,"0",2)}
function zHM(p,n){return dZ(p.getUTCDate(),n,2)}
function hoo(p,n){return dZ(p.getUTCHours(),n,2)}
function xDC(p,n){return dZ(p.getUTCHours()%12||12,n,2)}
function lVb(p,n){return dZ(1+Q_R.count(h7(p),p),n,3)}
function kiO(p,n){return dZ(p.getUTCMilliseconds(),n,3)}
function NOy(p,n){return kiO(p,n)+"000"}
function uAa(p,n){return dZ(p.getUTCMonth()+1,n,2)}
function qKb(p,n){return dZ(p.getUTCMinutes(),n,2)}
function Exe(p,n){return dZ(p.getUTCSeconds(),n,2)}
function G3T(p){p=p.getUTCDay();return p===0?7:p}
function XjR(p,n){return dZ(yia.count(h7(p),p),n,2)}
function QFb(p,n){var c=p.getUTCDay();p=c>=4||c===0?qCq(p):qCq.ceil(p);return dZ(qCq.count(h7(p),p)+(h7(p).getUTCDay()===4),n,2)}
function YKa(p){return p.getUTCDay()}
function fVZ(p,n){return dZ(xGB.count(h7(p),p),n,2)}
function nx8(p,n){return dZ(p.getUTCFullYear()%100,n,2)}
function pjC(p,n){return dZ(p.getUTCFullYear()%1E4,n,4)}
function mDY(){return"+0000"}
function MDg(){return"%"}
function pQg(p){return+p}
function miR(p){return Math.floor(+p/1E3)}
function ul(p){for(var n=p.length/6|0,c=Array(n),DC=0;DC<n;)c[DC]="#"+p.slice(DC*6,++DC*6);return c}
function w6(p){return DcQ(p[p.length-1])}
function onq(p){var n=p.length;return function(c){return p[Math.max(0,Math.min(n-1,Math.floor(c*n)))]}}
function c5G(p){this._context=p}
function WnO(p){this._curve=p}
function CzG(p,n,c){var DC=p._x1-p._x0;n-=p._x1;var tL=(p._y1-p._y0)/(DC||n<0&&-0);p=(c-p._y1)/(n||DC<0&&-0);return((tL<0?-1:1)+(p<0?-1:1))*Math.min(Math.abs(tL),Math.abs(p),.5*Math.abs((tL*n+p*DC)/(DC+n)))||0}
function BKe(p,n){var c=p._x1-p._x0;return c?(3*(p._y1-p._y0)/c-n)/2:n}
function Ege(p,n,c){var DC=p._x0,tL=p._x1,NS=p._y1,Xt=(tL-DC)/3;p._context.bezierCurveTo(DC+Xt,p._y0+Xt*n,tL-Xt,NS-Xt*c,tL,NS)}
function G$B(p){this._context=p}
function icc(p){this._context=p}
function qI(p,n,c){this.k=p;this.x=n;this.y=c}
(function(p){p.length===1&&(p=y(p));return{left:function(n,c,DC,tL){DC==null&&(DC=0);tL==null&&(tL=n.length);for(;DC<tL;){var NS=DC+tL>>>1;p(n[NS],c)<0?DC=NS+1:tL=NS}return DC},
right:function(n,c,DC,tL){DC==null&&(DC=0);tL==null&&(tL=n.length);for(;DC<tL;){var NS=DC+tL>>>1;p(n[NS],c)>0?tL=NS:DC=NS+1}return DC}}})(I);
var FF8={value:function(){}};
F.prototype=D.prototype={constructor:F,on:function(p,n){var c=this._,DC=R(p+"",c),tL,NS=-1,Xt=DC.length;if(arguments.length<2)for(;++NS<Xt;){var MS;if(MS=tL=(p=DC[NS]).type){a:{MS=c[tL];for(var wc=0,FW=MS.length;wc<FW;++wc)if((tL=MS[wc]).name===p.name){tL=tL.value;break a}tL=void 0}MS=tL}if(MS)return tL}else{if(n!=null&&typeof n!=="function")throw Error("Ee`"+n);for(;++NS<Xt;)if(tL=(p=DC[NS]).type)c[tL]=O(c[tL],p.name,n);else if(n==null)for(tL in c)c[tL]=O(c[tL],p.name,null);return this}},
copy:function(){var p={},n=this._,c;for(c in n)p[c]=n[c].slice();return new F(p)},
call:function(p,n){if((tL=arguments.length-2)>0)for(var c=Array(tL),DC=0,tL,NS;DC<tL;++DC)c[DC]=arguments[DC+2];if(!this._.hasOwnProperty(p))throw Error("ye`"+p);NS=this._[p];DC=0;for(tL=NS.length;DC<tL;++DC)NS[DC].value.apply(n,c)},
apply:function(p,n,c){if(!this._.hasOwnProperty(p))throw Error("ye`"+p);p=this._[p];for(var DC=0,tL=p.length;DC<tL;++DC)p[DC].value.apply(n,c)}};
var vw={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/"},A5u=function(p){return function(){return this.matches(p)}};
if(typeof document!=="undefined"){var Ee=document.documentElement;if(!Ee.matches){var FsY=Ee.webkitMatchesSelector||Ee.msMatchesSelector||Ee.mozMatchesSelector||Ee.oMatchesSelector;A5u=function(p){return function(){return FsY.call(this,p)}}}}var $iu=A5u;
x.prototype={constructor:x,appendChild:function(p){return this._parent.insertBefore(p,this._next)},
insertBefore:function(p,n){return this._parent.insertBefore(p,n)},
querySelector:function(p){return this._parent.querySelector(p)},
querySelectorAll:function(p){return this._parent.querySelectorAll(p)}};
var sKM={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(sKM={mouseenter:"mouseover",mouseleave:"mouseout"}));var RGg=[null];$P.prototype=HC.prototype={constructor:$P,select:function(p){typeof p!=="function"&&(p=N(p));for(var n=this._groups,c=n.length,DC=Array(c),tL=0;tL<c;++tL)for(var NS=n[tL],Xt=NS.length,MS=DC[tL]=Array(Xt),wc,FW,Sf=0;Sf<Xt;++Sf)(wc=NS[Sf])&&(FW=p.call(wc,wc.__data__,Sf,NS))&&("__data__"in wc&&(FW.__data__=wc.__data__),MS[Sf]=FW);return new $P(DC,
this._parents)},
filter:function(p){typeof p!=="function"&&(p=$iu(p));for(var n=this._groups,c=n.length,DC=Array(c),tL=0;tL<c;++tL)for(var NS=n[tL],Xt=NS.length,MS=DC[tL]=[],wc,FW=0;FW<Xt;++FW)(wc=NS[FW])&&p.call(wc,wc.__data__,FW,NS)&&MS.push(wc);return new $P(DC,this._parents)},
data:function(p,n){if(!p)return dG=Array(this.size()),FW=-1,this.each(function(vV){dG[++FW]=vV}),dG;
var c=n?f:X,DC=this._parents,tL=this._groups;typeof p!=="function"&&(p=q(p));for(var NS=tL.length,Xt=Array(NS),MS=Array(NS),wc=Array(NS),FW=0;FW<NS;++FW){var Sf=DC[FW],hM=tL[FW],IT=hM.length,dG=p.call(Sf,Sf&&Sf.__data__,FW,DC),fS=dG.length,gj=MS[FW]=Array(fS),Wd=Xt[FW]=Array(fS);IT=wc[FW]=Array(IT);c(Sf,hM,gj,Wd,IT,dG,n);hM=Sf=0;for(var jb;Sf<fS;++Sf)if(IT=gj[Sf]){for(Sf>=hM&&(hM=Sf+1);!(jb=Wd[hM])&&++hM<fS;);IT._next=jb||null}}Xt=new $P(Xt,DC);Xt._enter=MS;Xt._exit=wc;return Xt},
enter:function(){return new $P(this._enter||this._groups.map(h),this._parents)},
exit:function(){return new $P(this._exit||this._groups.map(h),this._parents)},
merge:function(p){var n=this._groups;p=p._groups;for(var c=n.length,DC=Math.min(c,p.length),tL=Array(c),NS=0;NS<DC;++NS)for(var Xt=n[NS],MS=p[NS],wc=Xt.length,FW=tL[NS]=Array(wc),Sf,hM=0;hM<wc;++hM)if(Sf=Xt[hM]||MS[hM])FW[hM]=Sf;for(;NS<c;++NS)tL[NS]=n[NS];return new $P(tL,this._parents)},
order:function(){for(var p=this._groups,n=-1,c=p.length;++n<c;)for(var DC=p[n],tL=DC.length-1,NS=DC[tL],Xt;--tL>=0;)if(Xt=DC[tL])NS&&NS!==Xt.nextSibling&&NS.parentNode.insertBefore(Xt,NS),NS=Xt;return this},
sort:function(p){function n(hM,IT){return hM&&IT?p(hM.__data__,IT.__data__):!hM-!IT}
p||(p=m);for(var c=this._groups,DC=c.length,tL=Array(DC),NS=0;NS<DC;++NS){for(var Xt=c[NS],MS=Xt.length,wc=tL[NS]=Array(MS),FW,Sf=0;Sf<MS;++Sf)if(FW=Xt[Sf])wc[Sf]=FW;wc.sort(n)}return(new $P(tL,this._parents)).order()},
call:function(){var p=arguments[0];arguments[0]=this;p.apply(null,arguments);return this},
nodes:function(){var p=Array(this.size()),n=-1;this.each(function(){p[++n]=this});
return p},
node:function(){for(var p=this._groups,n=0,c=p.length;n<c;++n)for(var DC=p[n],tL=0,NS=DC.length;tL<NS;++tL){var Xt=DC[tL];if(Xt)return Xt}return null},
size:function(){var p=0;this.each(function(){++p});
return p},
empty:function(){return!this.node()},
each:function(p){for(var n=this._groups,c=0,DC=n.length;c<DC;++c)for(var tL=n[c],NS=0,Xt=tL.length,MS;NS<Xt;++NS)(MS=tL[NS])&&p.call(MS,MS.__data__,NS,tL);return this},
attr:function(p,n){var c=w(p);if(arguments.length<2){var DC=this.node();return c.local?DC.getAttributeNS(c.space,c.local):DC.getAttribute(c)}return this.each((n==null?c.local?B:z:typeof n==="function"?c.local?T:e:c.local?H:C)(c,n))},
style:function(p,n,c){return arguments.length>1?this.each((n==null?L5:typeof n==="function"?u_:vH)(p,n,c==null?"":c)):jW(this.node(),p)},
property:function(p,n){return arguments.length>1?this.each((n==null?xA:typeof n==="function"?$A:dq)(p,n)):this.node()[p]},
text:function(p){return arguments.length?this.each(p==null?BH:(typeof p==="function"?yg:jf)(p)):this.node().textContent},
html:function(p){return arguments.length?this.each(p==null?eW:(typeof p==="function"?xP:oe)(p)):this.node().innerHTML},
append:function(p){var n=typeof p==="function"?p:K(p);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},
insert:function(p,n){var c=typeof p==="function"?p:K(p),DC=n==null?XW:typeof n==="function"?n:N(n);return this.select(function(){return this.insertBefore(c.apply(this,arguments),DC.apply(this,arguments)||null)})},
remove:function(){return this.each(zo)},
clone:function(p){return this.select(p?rq:Ub)},
datum:function(p){return arguments.length?this.property("__data__",p):this.node().__data__},
on:function(p,n,c){var DC=Ta(p+""),tL=DC.length,NS;if(arguments.length<2){var Xt=this.node().__on;if(Xt)for(var MS=0,wc=Xt.length,FW;MS<wc;++MS){var Sf=0;for(FW=Xt[MS];Sf<tL;++Sf)if((NS=DC[Sf]).type===FW.type&&NS.name===FW.name)return FW.value}}else{Xt=n?mM:f_;c==null&&(c=!1);for(Sf=0;Sf<tL;++Sf)this.each(Xt(DC[Sf],n,c));return this}},
dispatch:function(p,n){return this.each((typeof n==="function"?rG:ZR)(p,n))}};
var OFT=0;vG.prototype=function(){return new vG}.prototype={constructor:vG,
get:function(p){for(var n=this._;!(n in p);)if(!(p=p.parentNode))return;return p[n]},
set:function(p,n){return p[this._]=n},
remove:function(p){return this._ in p&&delete p[this._]},
toString:function(){return this._}};
var xv=1/.7,LF8=/^#([0-9a-f]{3})$/,JhG=/^#([0-9a-f]{6})$/,w7G=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),vZZ=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),SH8=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),t9Y=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*\\)$"),
P1R=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),KFG=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*\\)$"),VoM={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};
jg(HG,cG,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
jg(ZQ,oT,UO(HG,{brighter:function(p){p=p==null?xv:Math.pow(xv,p);return new ZQ(this.r*p,this.g*p,this.b*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new ZQ(this.r*p,this.g*p,this.b*p,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+Ox(this.r)+Ox(this.g)+Ox(this.b)},
toString:function(){var p=this.opacity;p=isNaN(p)?1:Math.max(0,Math.min(1,p));return(p===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(p===1?")":", "+p+")")}}));
jg(Eu,mE,UO(HG,{brighter:function(p){p=p==null?xv:Math.pow(xv,p);return new Eu(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new Eu(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=this.h%360+(this.h<0)*360,n=this.l,c=n+(n<.5?n:1-n)*(isNaN(p)||isNaN(this.s)?0:this.s);n=2*n-c;return new ZQ(cd(p>=240?p-240:p+120,n,c),cd(p,n,c),cd(p<120?p+240:p-120,n,c),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 ZNf=Math.PI/180,y5_=180/Math.PI,IPP=4/29,j6=6/29,ggR=3*j6*j6,U18=j6*j6*j6;jg(YA,function(p,n,c,DC){return arguments.length===1?G8(p):new YA(p,n,c,DC==null?1:DC)},UO(HG,{brighter:function(p){return new YA(this.l+18*(p==null?1:p),this.a,this.b,this.opacity)},
darker:function(p){return new YA(this.l-18*(p==null?1:p),this.a,this.b,this.opacity)},
rgb:function(){var p=(this.l+16)/116,n=isNaN(this.a)?p:p+this.a/500,c=isNaN(this.b)?p:p-this.b/200;n=.96422*Te(n);p=1*Te(p);c=.82521*Te(c);return new ZQ(lu(3.1338561*n-1.6168667*p-.4906146*c),lu(-.9787684*n+1.9161415*p+.033454*c),lu(.0719453*n-.2289914*p+1.4052427*c),this.opacity)}}));
jg(Ga,Yy,UO(HG,{brighter:function(p){return new Ga(this.h,this.c,this.l+18*(p==null?1:p),this.opacity)},
darker:function(p){return new Ga(this.h,this.c,this.l-18*(p==null?1:p),this.opacity)},
rgb:function(){return G8(this).rgb()}}));
var Diu=1.78277*-.29227-.1347134789;jg(iR,qz,UO(HG,{brighter:function(p){p=p==null?xv:Math.pow(xv,p);return new iR(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new iR(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=isNaN(this.h)?0:(this.h+120)*ZNf,n=+this.l,c=isNaN(this.s)?0:this.s*n*(1-n),DC=Math.cos(p);p=Math.sin(p);return new ZQ(255*(n+c*(-.14861*DC+1.78277*p)),255*(n+c*(-.29227*DC+-.90649*p)),255*(n+1.97294*DC*c),this.opacity)}}));
var Oca=function c(n){function DC(NS,Xt){var MS=tL((NS=oT(NS)).r,(Xt=oT(Xt)).r),wc=tL(NS.g,Xt.g),FW=tL(NS.b,Xt.b),Sf=DT(NS.opacity,Xt.opacity);return function(hM){NS.r=MS(hM);NS.g=wc(hM);NS.b=FW(hM);NS.opacity=Sf(hM);return NS+""}}
var tL=jT(n);DC.gamma=c;return DC}(1),DcQ=fZ(function(n){var c=n.length-1;
return function(DC){var tL=DC<=0?DC=0:DC>=1?(DC=1,c-1):Math.floor(DC*c),NS=n[tL],Xt=n[tL+1];return JV((DC-tL/c)*c,tL>0?n[tL-1]:2*NS-Xt,NS,Xt,tL<c-1?n[tL+2]:2*Xt-NS)}});
fZ(function(n){var c=n.length;return function(DC){var tL=Math.floor(((DC%=1)<0?++DC:DC)*c);return JV((DC-tL/c)*c,n[(tL+c-1)%c],n[tL%c],n[(tL+1)%c],n[(tL+2)%c])}});
var vgq=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,SCW=new RegExp(vgq.source,"g"),FnG=180/Math.PI,XyW={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},GA,QK_,bcM,NIB,Rye=nZ(function(n){if(n==="none")return XyW;GA||(GA=document.createElement("DIV"),QK_=document.documentElement,bcM=document.defaultView);GA.style.transform=n;n=bcM.getComputedStyle(QK_.appendChild(GA),null).getPropertyValue("transform");QK_.removeChild(GA);n=n.slice(7,-1).split(",");return ib(+n[0],+n[1],+n[2],+n[3],
+n[4],+n[5])},"px, ","px)","deg)"),O1e=nZ(function(n){if(n==null)return XyW;
NIB||(NIB=document.createElementNS("http://www.w3.org/2000/svg","g"));NIB.setAttribute("transform",n);if(!(n=NIB.transform.baseVal.consolidate()))return XyW;n=n.matrix;return ib(n.a,n.b,n.c,n.d,n.e,n.f)},", ",")",")");
Ek($s);Ek(DT);lV($s);lV(DT);B_($s);var YCq=B_(DT),oG=0,P6=0,Ue=0,JqH,Kn,LAH=0,gO=0,OTe=0,tF=typeof performance==="object"&&performance.now?performance:Date,RHM=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};
cn.prototype=AP.prototype={constructor:cn,restart:function(n,c,DC){if(typeof n!=="function")throw new TypeError("Fe");DC=(DC==null?i9():+DC)+(c==null?0:+c);this._next||Kn===this||(Kn?Kn._next=this:JqH=this,Kn=this);this._call=n;this._time=DC;bb()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,bb())}};
var rhZ=D("start","end","interrupt"),j2C=[],LsY=HC.prototype.constructor,Hc_=0,l4=HC.prototype;Bb.prototype=function(n){return HC().transition(n)}.prototype={constructor:Bb,
select:function(n){var c=this._name,DC=this._id;typeof n!=="function"&&(n=N(n));for(var tL=this._groups,NS=tL.length,Xt=Array(NS),MS=0;MS<NS;++MS)for(var wc=tL[MS],FW=wc.length,Sf=Xt[MS]=Array(FW),hM,IT,dG=0;dG<FW;++dG)(hM=wc[dG])&&(IT=n.call(hM,hM.__data__,dG,wc))&&("__data__"in hM&&(IT.__data__=hM.__data__),Sf[dG]=IT,Ie(Sf[dG],c,DC,dG,Sf,Rn(hM,DC)));return new Bb(Xt,this._parents,c,DC)},
filter:function(n){typeof n!=="function"&&(n=$iu(n));for(var c=this._groups,DC=c.length,tL=Array(DC),NS=0;NS<DC;++NS)for(var Xt=c[NS],MS=Xt.length,wc=tL[NS]=[],FW,Sf=0;Sf<MS;++Sf)(FW=Xt[Sf])&&n.call(FW,FW.__data__,Sf,Xt)&&wc.push(FW);return new Bb(tL,this._parents,this._name,this._id)},
merge:function(n){if(n._id!==this._id)throw Error();var c=this._groups;n=n._groups;for(var DC=c.length,tL=Math.min(DC,n.length),NS=Array(DC),Xt=0;Xt<tL;++Xt)for(var MS=c[Xt],wc=n[Xt],FW=MS.length,Sf=NS[Xt]=Array(FW),hM,IT=0;IT<FW;++IT)if(hM=MS[IT]||wc[IT])Sf[IT]=hM;for(;Xt<DC;++Xt)NS[Xt]=c[Xt];return new Bb(NS,this._parents,this._name,this._id)},
selection:function(){return new LsY(this._groups,this._parents)},
transition:function(){for(var n=this._name,c=this._id,DC=++Hc_,tL=this._groups,NS=tL.length,Xt=0;Xt<NS;++Xt)for(var MS=tL[Xt],wc=MS.length,FW,Sf=0;Sf<wc;++Sf)if(FW=MS[Sf]){var hM=Rn(FW,c);Ie(FW,n,DC,Sf,MS,{time:hM.time+hM.delay+hM.duration,delay:0,duration:hM.duration,ease:hM.ease})}return new Bb(tL,this._parents,n,DC)},
call:l4.call,nodes:l4.nodes,node:l4.node,size:l4.size,empty:l4.empty,each:l4.each,on:function(n,c){var DC=this._id;return arguments.length<2?Rn(this.node(),DC).on.on(n):this.each(X71(DC,n,c))},
attr:function(n,c){var DC=w(n),tL=DC==="transform"?O1e:L2;return this.attrTween(n,typeof c==="function"?(DC.local?oZY:vn4)(DC,tL,WW(this,"attr."+n,c)):c==null?(DC.local?wu_:rs)(DC):(DC.local?ov:ji)(DC,tL,c+""))},
attrTween:function(n,c){var DC="attr."+n;if(arguments.length<2)return(DC=this.tween(DC))&&DC._value;if(c==null)return this.tween(DC,null);if(typeof c!=="function")throw Error();var tL=w(n);return this.tween(DC,(tL.local?Nma:hGb)(tL,c))},
style:function(n,c,DC){var tL=n==="transform"?Rye:L2;return c==null?this.styleTween(n,YH8(n,tL)).on("end.style."+n,fkb(n)):this.styleTween(n,typeof c==="function"?p7y(n,tL,WW(this,"style."+n,c)):nZY(n,tL,c+""),DC)},
styleTween:function(n,c,DC){var tL="style."+n;if(arguments.length<2)return(tL=this.tween(tL))&&tL._value;if(c==null)return this.tween(tL,null);if(typeof c!=="function")throw Error();return this.tween(tL,m1g(n,c,DC==null?"":DC))},
text:function(n){return this.tween("text",typeof n==="function"?zGC(WW(this,"text",n)):M9o(n==null?"":n+""))},
remove:function(){return this.on("end.remove",Q2e(this._id))},
tween:function(n,c){var DC=this._id;if(arguments.length<2){DC=Rn(this.node(),DC).tween;for(var tL=0,NS=DC.length,Xt;tL<NS;++tL)if((Xt=DC[tL]).name===n)return Xt.value;return null}return this.each((c==null?DZ:y2)(DC,n,c))},
delay:function(n){var c=this._id;return arguments.length?this.each((typeof n==="function"?x1g:lky)(c,n)):Rn(this.node(),c).delay},
duration:function(n){var c=this._id;return arguments.length?this.each((typeof n==="function"?uLy:qHQ)(c,n)):Rn(this.node(),c).duration},
ease:function(n){var c=this._id;return arguments.length?this.each(EZa(c,n)):Rn(this.node(),c).ease}};
var fW4={time:null,delay:0,duration:250,ease:function(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}};
HC.prototype.transition=function(n){var c;if(n instanceof Bb){var DC=n._id;n=n._name}else DC=++Hc_,(c=fW4).time=i9(),n=n==null?null:n+"";for(var tL=this._groups,NS=tL.length,Xt=0;Xt<NS;++Xt)for(var MS=tL[Xt],wc=MS.length,FW,Sf=0;Sf<wc;++Sf)if(FW=MS[Sf]){var hM=FW,IT=n,dG=DC,fS=Sf,gj=MS,Wd;if(!(Wd=c))a:{Wd=void 0;for(var jb=DC;!(Wd=FW.__transition)||!(Wd=Wd[jb]);)if(!(FW=FW.parentNode)){Wd=(fW4.time=i9(),fW4);break a}}Ie(hM,IT,dG,fS,gj,Wd)}return new Bb(tL,this._parents,n,DC)};
["e","w"].map(toH);["n","s"].map(toH);"n e s w nw ne se sw".split(" ").map(toH);PLq.prototype=function(){return new PLq}.prototype={constructor:PLq,
moveTo:function(n,c){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+c)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(n,c){this._+="L"+(this._x1=+n)+","+(this._y1=+c)},
bezierCurveTo:function(n,c,DC,tL,NS,Xt){this._+="C"+ +n+","+ +c+","+ +DC+","+ +tL+","+(this._x1=+NS)+","+(this._y1=+Xt)},
rect:function(n,c,DC,tL){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+c)+"h"+ +DC+"v"+ +tL+"h"+-DC+"Z"},
toString:function(){return this._}};
SN_.prototype=Lnz.prototype={constructor:SN_,has:function(n){return" "+n in this},
get:function(n){return this[" "+n]},
set:function(n,c){this[" "+n]=c;return this},
remove:function(n){n=" "+n;return n in this&&delete this[n]},
clear:function(){for(var n in this)n[0]===" "&&delete this[n]},
keys:function(){var n=[],c;for(c in this)c[0]===" "&&n.push(c.slice(1));return n},
values:function(){var n=[],c;for(c in this)c[0]===" "&&n.push(this[c]);return n},
entries:function(){var n=[],c;for(c in this)c[0]===" "&&n.push({key:c.slice(1),value:this[c]});return n},
size:function(){var n=0,c;for(c in this)c[0]===" "&&++n;return n},
empty:function(){for(var n in this)if(n[0]===" ")return!1;return!0},
each:function(n){for(var c in this)c[0]===" "&&n(this[c],c.slice(1),this)}};
var Dn=Lnz.prototype;tbH.prototype=function(n,c){var DC=new tbH;if(n instanceof tbH)n.each(function(Xt){DC.add(Xt)});
else if(n){var tL=-1,NS=n.length;if(c==null)for(;++tL<NS;)DC.add(n[tL]);else for(;++tL<NS;)DC.add(c(n[tL],tL,n))}return DC}.prototype={constructor:tbH,
has:Dn.has,add:function(n){this[" "+n]=n;return this},
remove:Dn.remove,clear:Dn.clear,values:Dn.keys,size:Dn.size,empty:Dn.empty,each:Dn.each};var vS_={},Kf4={},JiC=wQc(",").parse,woG=wQc("\t").parse;SGR(JiC);SGR(woG);var OM=function(n,c,DC){c=new UGo(c==null?che:c,DC==null?WF1:DC,NaN,NaN,NaN,NaN);return n==null?c:c.addAll(n)}.prototype=UGo.prototype;
OM.copy=function(){var n=new UGo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),c=this._root,DC,tL;if(!c)return n;if(!c.length)return n._root=PzM(c),n;for(DC=[{source:c,target:n._root=Array(4)}];c=DC.pop();)for(var NS=0;NS<4;++NS)if(tL=c.source[NS])tL.length?DC.push({source:tL,target:c.target[NS]=Array(4)}):c.target[NS]=PzM(tL);return n};
OM.add=function(n){var c=+this._x.call(null,n),DC=+this._y.call(null,n);return tDn(this.cover(c,DC),c,DC,n)};
OM.addAll=function(n){var c,DC,tL=n.length,NS,Xt,MS=Array(tL),wc=Array(tL),FW=Infinity,Sf=Infinity,hM=-Infinity,IT=-Infinity;for(DC=0;DC<tL;++DC)isNaN(NS=+this._x.call(null,c=n[DC]))||isNaN(Xt=+this._y.call(null,c))||(MS[DC]=NS,wc[DC]=Xt,NS<FW&&(FW=NS),NS>hM&&(hM=NS),Xt<Sf&&(Sf=Xt),Xt>IT&&(IT=Xt));hM<FW&&(FW=this._x0,hM=this._x1);IT<Sf&&(Sf=this._y0,IT=this._y1);this.cover(FW,Sf).cover(hM,IT);for(DC=0;DC<tL;++DC)tDn(this,MS[DC],wc[DC],n[DC]);return this};
OM.cover=function(n,c){if(isNaN(n=+n)||isNaN(c=+c))return this;var DC=this._x0,tL=this._y0,NS=this._x1,Xt=this._y1;if(isNaN(DC))NS=(DC=Math.floor(n))+1,Xt=(tL=Math.floor(c))+1;else if(DC>n||n>NS||tL>c||c>Xt){var MS=NS-DC,wc=this._root,FW;switch(FW=(c<(tL+Xt)/2)<<1|n<(DC+NS)/2){case 0:do{var Sf=Array(4);Sf[FW]=wc;wc=Sf}while(MS*=2,NS=DC+MS,Xt=tL+MS,n>NS||c>Xt);break;case 1:do Sf=Array(4),Sf[FW]=wc,wc=Sf;while(MS*=2,DC=NS-MS,Xt=tL+MS,DC>n||c>Xt);break;case 2:do Sf=Array(4),Sf[FW]=wc,wc=Sf;while(MS*=
2,NS=DC+MS,tL=Xt-MS,n>NS||tL>c);break;case 3:do Sf=Array(4),Sf[FW]=wc,wc=Sf;while(MS*=2,DC=NS-MS,tL=Xt-MS,DC>n||tL>c)}this._root&&this._root.length&&(this._root=wc)}else return this;this._x0=DC;this._y0=tL;this._x1=NS;this._y1=Xt;return this};
OM.data=function(){var n=[];this.visit(function(c){if(!c.length){do n.push(c.data);while(c=c.next)}});
return n};
OM.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
OM.find=function(n,c,DC){var tL=this._x0,NS=this._y0,Xt,MS,wc,FW,Sf=this._x1,hM=this._y1,IT=[],dG=this._root,fS;dG&&IT.push(new R0(dG,tL,NS,Sf,hM));DC==null?DC=Infinity:(tL=n-DC,NS=c-DC,Sf=n+DC,hM=c+DC,DC*=DC);for(;fS=IT.pop();)if(!(!(dG=fS.node)||(Xt=fS.x0)>Sf||(MS=fS.y0)>hM||(wc=fS.x1)<tL||(FW=fS.y1)<NS))if(dG.length){fS=(Xt+wc)/2;var gj=(MS+FW)/2;IT.push(new R0(dG[3],fS,gj,wc,FW),new R0(dG[2],Xt,gj,fS,FW),new R0(dG[1],fS,MS,wc,gj),new R0(dG[0],Xt,MS,fS,gj));if(dG=(c>=gj)<<1|n>=fS)fS=IT[IT.length-
1],IT[IT.length-1]=IT[IT.length-1-dG],IT[IT.length-1-dG]=fS}else if(fS=n-+this._x.call(null,dG.data),gj=c-+this._y.call(null,dG.data),fS=fS*fS+gj*gj,fS<DC){var Wd=Math.sqrt(DC=fS);tL=n-Wd;NS=c-Wd;Sf=n+Wd;hM=c+Wd;Wd=dG.data}return Wd};
OM.remove=function(n){if(isNaN(FW=+this._x.call(null,n))||isNaN(Sf=+this._y.call(null,n)))return this;var c,DC=this._root,tL,NS=this._x0,Xt=this._y0,MS=this._x1,wc=this._y1,FW,Sf,hM,IT,dG,fS,gj;if(!DC)return this;if(DC.length)for(;;){(dG=FW>=(hM=(NS+MS)/2))?NS=hM:MS=hM;(fS=Sf>=(IT=(Xt+wc)/2))?Xt=IT:wc=IT;if(!(c=DC,DC=DC[gj=fS<<1|dG]))return this;if(!DC.length)break;if(c[gj+1&3]||c[gj+2&3]||c[gj+3&3]){var Wd=c;var jb=gj}}for(;DC.data!==n;)if(!(tL=DC,DC=DC.next))return this;(n=DC.next)&&delete DC.next;
if(tL)return n?tL.next=n:delete tL.next,this;if(!c)return this._root=n,this;n?c[gj]=n:delete c[gj];(DC=c[0]||c[1]||c[2]||c[3])&&DC===(c[3]||c[2]||c[1]||c[0])&&!DC.length&&(Wd?Wd[jb]=DC:this._root=DC);return this};
OM.removeAll=function(n){for(var c=0,DC=n.length;c<DC;++c)this.remove(n[c]);return this};
OM.root=function(){return this._root};
OM.size=function(){var n=0;this.visit(function(c){if(!c.length){do++n;while(c=c.next)}});
return n};
OM.visit=function(n){var c=[],DC,tL=this._root,NS,Xt,MS,wc,FW;for(tL&&c.push(new R0(tL,this._x0,this._y0,this._x1,this._y1));DC=c.pop();)if(!n(tL=DC.node,Xt=DC.x0,MS=DC.y0,wc=DC.x1,FW=DC.y1)&&tL.length){DC=(Xt+wc)/2;var Sf=(MS+FW)/2;(NS=tL[3])&&c.push(new R0(NS,DC,Sf,wc,FW));(NS=tL[2])&&c.push(new R0(NS,Xt,Sf,DC,FW));(NS=tL[1])&&c.push(new R0(NS,DC,MS,wc,Sf));(NS=tL[0])&&c.push(new R0(NS,Xt,MS,DC,Sf))}};
OM.visitAfter=function(n){var c=[],DC=[],tL;for(this._root&&c.push(new R0(this._root,this._x0,this._y0,this._x1,this._y1));tL=c.pop();){var NS=tL.node;if(NS.length){var Xt,MS=tL.x0,wc=tL.y0,FW=tL.x1,Sf=tL.y1,hM=(MS+FW)/2,IT=(wc+Sf)/2;(Xt=NS[0])&&c.push(new R0(Xt,MS,wc,hM,IT));(Xt=NS[1])&&c.push(new R0(Xt,hM,wc,FW,IT));(Xt=NS[2])&&c.push(new R0(Xt,MS,IT,hM,Sf));(Xt=NS[3])&&c.push(new R0(Xt,hM,IT,FW,Sf))}DC.push(tL)}for(;tL=DC.pop();)n(tL.node,tL.x0,tL.y0,tL.x1,tL.y1);return this};
OM.x=function(n){return arguments.length?(this._x=n,this):this._x};
OM.y=function(n){return arguments.length?(this._y=n,this):this._y};
var Aha=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;rlA.prototype=jKC.prototype;jKC.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 j_f,oSW={"%":function(n,c){return(n*100).toFixed(c)},
b:function(n){return Math.round(n).toString(2)},
c:function(n){return n+""},
d:function(n){return Math.round(n).toString(10)},
e:function(n,c){return n.toExponential(c)},
f:function(n,c){return n.toFixed(c)},
g:function(n,c){return n.toPrecision(c)},
o:function(n){return Math.round(n).toString(8)},
p:function(n,c){return Kn_(n*100,c)},
r:Kn_,s:function(n,c){var DC=PKA(n,c);if(!DC)return n+"";var tL=DC[0];DC=DC[1];DC=DC-(j_f=Math.max(-8,Math.min(8,Math.floor(DC/3)))*3)+1;var NS=tL.length;return DC===NS?tL:DC>NS?tL+Array(DC-NS+1).join("0"):DC>0?tL.slice(0,DC)+"."+tL.slice(DC):"0."+Array(1-DC).join("0")+PKA(n,Math.max(0,c+DC-1))[0]},
X:function(n){return Math.round(n).toString(16).toUpperCase()},
x:function(n){return Math.round(n).toString(16)}},r5u="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),vbe;
(function(n){return vbe=$1T(n)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});J4.prototype={constructor:J4,reset:function(){this.s=this.t=0},
add:function(n){NKu(hN5,n,this.t);NKu(this,hN5.s,this.s);this.s?this.t+=hN5.t:this.s=hN5.t},
valueOf:function(){return this.s}};
var hN5=new J4,LZ=Math.PI,Sz=LZ/2,eHW=LZ/4,SdG=LZ*2,ngt=LZ/180,iC=Math.abs,py5=Math.atan,ESg=Math.atan2,ts=Math.cos,CC=Math.sin,UMq=Math.sqrt;new J4;new J4;new J4;var mGH=new J4;(function(n,c,DC,tL){return function(NS){function Xt(Sj,YW){n(Sj,YW)&&NS.point(Sj,YW)}
function MS(Sj,YW){dG.point(Sj,YW)}
function wc(){PS.point=MS;dG.lineStart()}
function FW(){PS.point=Xt;dG.lineEnd()}
function Sf(Sj,YW){m9.push([Sj,YW]);gj.point(Sj,YW)}
function hM(){gj.lineStart();m9=[]}
function IT(){Sf(m9[0][0],m9[0][1]);gj.lineEnd();var Sj=gj.clean(),YW=fS.result(),Lj=YW.length,Mw;m9.pop();jb.push(m9);m9=null;if(Lj)if(Sj&1){if(Lj=YW[0],(YW=Lj.length-1)>0){Wd||(NS.polygonStart(),Wd=!0);NS.lineStart();for(Sj=0;Sj<YW;++Sj)NS.point((Mw=Lj[Sj])[0],Mw[1]);NS.lineEnd()}}else Lj>1&&Sj&2&&YW.push(YW.pop().concat(YW.shift())),vV.push(YW.filter(TmG))}
var dG=c(NS),fS=HFC(),gj=c(fS),Wd=!1,jb,vV,m9,PS={point:Xt,lineStart:wc,lineEnd:FW,polygonStart:function(){PS.point=Sf;PS.lineStart=hM;PS.lineEnd=IT;vV=[];jb=[]},
polygonEnd:function(){PS.point=Xt;PS.lineStart=wc;PS.lineEnd=FW;var Sj=vV,YW=Sj.length;var Lj=-1;for(var Mw=0,gG,Gq;++Lj<YW;)Mw+=Sj[Lj].length;for(gG=Array(Mw);--YW>=0;)for(Gq=Sj[YW],Lj=Gq.length;--Lj>=0;)gG[--Mw]=Gq[Lj];vV=gG;Sj=jb;YW=tL[0];Mw=tL[1];var Ux=CC(Mw);Lj=[CC(YW),-ts(YW),0];Gq=gG=0;mGH.reset();Ux===1?Mw=Sz+1E-6:Ux===-1&&(Mw=-Sz-1E-6);Ux=0;for(var aT=Sj.length;Ux<aT;++Ux)if(O1=(JG=Sj[Ux]).length){var JG,O1,of=JG[O1-1],pR=of[0],WZ=of[1]/2+eHW,xMW=CC(WZ),TKO=ts(WZ);for(WZ=0;WZ<O1;++WZ,pR=
Mo4,xMW=s_P,TKO=XU,of=lMW){var lMW=JG[WZ],Mo4=lMW[0];XU=lMW[1]/2+eHW;var s_P=CC(XU),XU=ts(XU),u4=Mo4-pR,z9t=u4>=0?1:-1,k$e=z9t*u4,uS5=k$e>LZ;xMW*=s_P;mGH.add(ESg(xMW*z9t*CC(k$e),TKO*XU+xMW*ts(k$e)));gG+=uS5?u4+z9t*SdG:u4;uS5^pR>=YW^Mo4>=YW&&(of=xin(hHM(of),hHM(lMW)),lPe(of),pR=xin(Lj,of),lPe(pR),pR=(uS5^u4>=0?-1:1)*KAS(pR[2]),Mw>pR||Mw===pR&&(of[0]||of[1]))&&(Gq+=uS5^u4>=0?1:-1)}}Sj=(gG<-1E-6||gG<1E-6&&mGH<-1E-6)^Gq&1;vV.length?(Wd||(NS.polygonStart(),Wd=!0),eGR(vV,s2b,Sj,DC,NS)):Sj&&(Wd||(NS.polygonStart(),
Wd=!0),NS.lineStart(),DC(null,null,1,NS),NS.lineEnd());Wd&&(NS.polygonEnd(),Wd=!1);vV=jb=null},
sphere:function(){NS.polygonStart();NS.lineStart();DC(null,null,1,NS);NS.lineEnd();NS.polygonEnd()}};
return PS}})(function(){return!0},function(n){var c=NaN,DC=NaN,tL=NaN,NS;
return{lineStart:function(){n.lineStart();NS=1},
point:function(Xt,MS){var wc=Xt>0?LZ:-LZ,FW=iC(Xt-c);if(iC(FW-LZ)<1E-6)n.point(c,DC=(DC+MS)/2>0?Sz:-Sz),n.point(tL,DC),n.lineEnd(),n.lineStart(),n.point(wc,DC),n.point(Xt,DC),NS=0;else if(tL!==wc&&FW>=LZ){iC(c-tL)<1E-6&&(c-=tL*1E-6);iC(Xt-wc)<1E-6&&(Xt-=wc*1E-6);FW=c;var Sf=DC,hM=Xt,IT,dG,fS=CC(FW-hM);DC=iC(fS)>1E-6?py5((CC(Sf)*(dG=ts(MS))*CC(hM)-CC(MS)*(IT=ts(Sf))*CC(FW))/(IT*dG*fS)):(Sf+MS)/2;n.point(tL,DC);n.lineEnd();n.lineStart();n.point(wc,DC);NS=0}n.point(c=Xt,DC=MS);tL=wc},
lineEnd:function(){n.lineEnd();c=DC=NaN},
clean:function(){return 2-NS}}},function(n,c,DC,tL){n==null?(DC*=Sz,tL.point(-LZ,DC),tL.point(0,DC),tL.point(LZ,DC),tL.point(LZ,0),tL.point(LZ,-DC),tL.point(0,-DC),tL.point(-LZ,-DC),tL.point(-LZ,0),tL.point(-LZ,DC)):iC(n[0]-c[0])>1E-6?(n=n[0]<c[0]?LZ:-LZ,DC=DC*n/2,tL.point(-n,DC),tL.point(0,DC),tL.point(n,DC)):tL.point(c[0],c[1])},[-LZ,
-Sz]);new J4;new J4;new J4;new J4;ogA.prototype={constructor:ogA,point:function(n,c){this.stream.point(n,c)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
ts(30*ngt);(function(n){return function(c){var DC=new ogA,tL;for(tL in n)DC[tL]=n[tL];DC.stream=c;return DC}})({point:function(n,c){this.stream.point(n*ngt,c*ngt)}});
qGf(function(n){return UMq(2/(1+n))}).invert=NI(function(n){return 2*KAS(n/2)});
qGf(function(n){return(n=n>1?0:n<-1?LZ:Math.acos(n))&&n/CC(n)}).invert=NI(function(n){return n});
UMq(3);NI(py5);NI(KAS);NI(function(n){return 2*py5(n)});
hF.prototype=Gin.prototype={constructor:hF,count:function(){return this.eachAfter(V9e)},
each:function(n){var c,DC=[this],tL;do{var NS=DC.reverse();for(DC=[];c=NS.pop();)if(n(c),c=c.children){var Xt=0;for(tL=c.length;Xt<tL;++Xt)DC.push(c[Xt])}}while(DC.length);return this},
eachAfter:function(n){for(var c,DC=[this],tL=[],NS,Xt;c=DC.pop();)if(tL.push(c),c=c.children)for(NS=0,Xt=c.length;NS<Xt;++NS)DC.push(c[NS]);for(;c=tL.pop();)n(c);return this},
eachBefore:function(n){for(var c,DC=[this],tL;c=DC.pop();)if(n(c),c=c.children)for(tL=c.length-1;tL>=0;--tL)DC.push(c[tL]);return this},
sum:function(n){return this.eachAfter(function(c){for(var DC=+n(c.data)||0,tL=c.children,NS=tL&&tL.length;--NS>=0;)DC+=tL[NS].value;c.value=DC})},
sort:function(n){return this.eachBefore(function(c){c.children&&c.children.sort(n)})},
path:function(n){var c=this;var DC=c;var tL=n;if(DC!==tL){var NS=DC.ancestors(),Xt=tL.ancestors(),MS=null;DC=NS.pop();for(tL=Xt.pop();DC===tL;)MS=DC,DC=NS.pop(),tL=Xt.pop();DC=MS}for(tL=[c];c!==DC;)c=c.parent,tL.push(c);for(c=tL.length;n!==DC;)tL.splice(c,0,n),n=n.parent;return tL},
ancestors:function(){for(var n=this,c=[n];n=n.parent;)c.push(n);return c},
links:function(){var n=this,c=[];n.each(function(DC){DC!==n&&c.push({source:DC.parent,target:DC})});
return c},
copy:function(){return Gin(this).eachBefore(IVb)}};
(function(n,c){this._=n;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=c}).prototype=Object.create(hF.prototype);
var NpB=new Date,h9A=new Date,VDn=MU(function(){},function(n,c){n.setTime(+n+c)},function(n,c){return c-n});
VDn.every=function(n){n=Math.floor(n);return isFinite(n)&&n>0?n>1?MU(function(c){c.setTime(Math.floor(c/n)*n)},function(c,DC){c.setTime(+c+DC*n)},function(c,DC){return(DC-c)/n}):VDn:null};
MU(function(n){n.setTime(Math.floor(n/1E3)*1E3)},function(n,c){n.setTime(+n+c*1E3)},function(n,c){return(c-n)/1E3},function(n){return n.getUTCSeconds()});
MU(function(n){n.setTime(Math.floor(n/6E4)*6E4)},function(n,c){n.setTime(+n+c*6E4)},function(n,c){return(c-n)/6E4},function(n){return n.getMinutes()});
MU(function(n){var c=n.getTimezoneOffset()*6E4%36E5;c<0&&(c+=36E5);n.setTime(Math.floor((+n-c)/36E5)*36E5+c)},function(n,c){n.setTime(+n+c*36E5)},function(n,c){return(c-n)/36E5},function(n){return n.getHours()});
var YGP=MU(function(n){n.setHours(0,0,0,0)},function(n,c){n.setDate(n.getDate()+c)},function(n,c){return(c-n-(c.getTimezoneOffset()-n.getTimezoneOffset())*6E4)/864E5},function(n){return n.getDate()-1}),InT=Il(0),lW5=Il(1);
Il(2);Il(3);var ubL=Il(4);Il(5);Il(6);MU(function(n){n.setDate(1);n.setHours(0,0,0,0)},function(n,c){n.setMonth(n.getMonth()+c)},function(n,c){return c.getMonth()-n.getMonth()+(c.getFullYear()-n.getFullYear())*12},function(n){return n.getMonth()});
var Nu=MU(function(n){n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,c){n.setFullYear(n.getFullYear()+c)},function(n,c){return c.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});
Nu.every=function(n){return isFinite(n=Math.floor(n))&&n>0?MU(function(c){c.setFullYear(Math.floor(c.getFullYear()/n)*n);c.setMonth(0,1);c.setHours(0,0,0,0)},function(c,DC){c.setFullYear(c.getFullYear()+DC*n)}):null};
MU(function(n){n.setUTCSeconds(0,0)},function(n,c){n.setTime(+n+c*6E4)},function(n,c){return(c-n)/6E4},function(n){return n.getUTCMinutes()});
MU(function(n){n.setUTCMinutes(0,0,0)},function(n,c){n.setTime(+n+c*36E5)},function(n,c){return(c-n)/36E5},function(n){return n.getUTCHours()});
var Q_R=MU(function(n){n.setUTCHours(0,0,0,0)},function(n,c){n.setUTCDate(n.getUTCDate()+c)},function(n,c){return(c-n)/864E5},function(n){return n.getUTCDate()-1}),yia=yW(0),xGB=yW(1);
yW(2);yW(3);var qCq=yW(4);yW(5);yW(6);MU(function(n){n.setUTCDate(1);n.setUTCHours(0,0,0,0)},function(n,c){n.setUTCMonth(n.getUTCMonth()+c)},function(n,c){return c.getUTCMonth()-n.getUTCMonth()+(c.getUTCFullYear()-n.getUTCFullYear())*12},function(n){return n.getUTCMonth()});
var h7=MU(function(n){n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,c){n.setUTCFullYear(n.getUTCFullYear()+c)},function(n,c){return c.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});
h7.every=function(n){return isFinite(n=Math.floor(n))&&n>0?MU(function(c){c.setUTCFullYear(Math.floor(c.getUTCFullYear()/n)*n);c.setUTCMonth(0,1);c.setUTCHours(0,0,0,0)},function(c,DC){c.setUTCFullYear(c.getUTCFullYear()+DC*n)}):null};
var XQu={"-":"",_:" ",0:"0"},Mr=/^\s*\d+/,gxa=/^%/,Zpa=/[\\^$*+?|[\]().{}]/g,qNH;(function(n){qNH=DDC(n);pwe=qNH.utcFormat;mvg=qNH.utcParse;return qNH})({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||pwe("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||mvg("%Y-%m-%dT%H:%M:%S.%LZ");ul("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ul("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ul("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ul("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ul("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ul("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ul("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ul("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ul("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ul("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ul("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ul("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var t4Z=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ul);w6(t4Z);var P$T=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ul);w6(P$T);var Kso=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ul);w6(Kso);var Uce=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ul);
w6(Uce);var rio=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ul);w6(rio);var jla=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ul);w6(jla);var obR=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ul);w6(obR);var NlY=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ul);w6(NlY);var hye=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ul);w6(hye);var xco=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ul);w6(xco);var lna=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ul);w6(lna);var uJG=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ul);w6(uJG);var qdT=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ul);w6(qdT);var Eby=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ul);w6(Eby);var G7g=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ul);w6(G7g);var Xoo=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ul);w6(Xoo);var Qlb=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ul);w6(Qlb);var Ydb=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ul);w6(Ydb);var fna=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ul);w6(fna);var nbR=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ul);w6(nbR);var po8=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ul);w6(po8);var mcG=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ul);w6(mcG);var M41=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ul);w6(M41);var zyQ=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ul);w6(zyQ);var k7G=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ul);w6(k7G);var dca=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ul);w6(dca);var an8=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ul);w6(an8);YCq(qz(300,.5,0),qz(-240,.5,1));YCq(qz(-100,.75,.35),qz(80,1.5,.8));YCq(qz(260,.75,.35),qz(80,1.5,.8));qz();oT();onq(ul("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
onq(ul("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
onq(ul("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
onq(ul("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
c5G.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(n,c){n=+n;c=+c;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,c):this._context.moveTo(n,c);break;case 1:this._point=2;default:this._context.lineTo(n,c)}}};
(function(n){function c(DC){return new WnO(n(DC))}
c._curve=n;return c})(function(n){return new c5G(n)});
WnO.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(n,c){this._curve.point(c*Math.sin(n),c*-Math.cos(n))}};
G$B.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:Ege(this,this._t0,BKe(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(n,c){var DC=NaN;n=+n;c=+c;if(n!==this._x1||c!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(n,c):this._context.moveTo(n,c);break;case 1:this._point=2;break;case 2:this._point=3;Ege(this,BKe(this,DC=CzG(this,n,c)),DC);break;default:Ege(this,this._t0,DC=CzG(this,n,c))}this._x0=this._x1;this._x1=n;this._y0=this._y1;this._y1=c;this._t0=DC}}};
(function(n){this._context=new icc(n)}.prototype=Object.create(G$B.prototype)).point=function(n,c){G$B.prototype.point.call(this,c,n)};
icc.prototype={moveTo:function(n,c){this._context.moveTo(c,n)},
closePath:function(){this._context.closePath()},
lineTo:function(n,c){this._context.lineTo(c,n)},
bezierCurveTo:function(n,c,DC,tL,NS,Xt){this._context.bezierCurveTo(c,n,tL,DC,Xt,NS)}};
qI.prototype={constructor:qI,scale:function(n){return n===1?this:new qI(this.k*n,this.x,this.y)},
translate:function(n,c){return n===0&c===0?this:new qI(this.k,this.x+this.k*n,this.y+this.k*c)},
apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},
invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new qI(1,0,0);PhB=cG;vw.svg=vw.svg;vw.xhtml=vw.xhtml;vw.xlink=vw.xlink;vw.xml=vw.xml;vw.xmlns=vw.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 MzM="hammer_"+(Math.random()*1E6|0),zpM=function(){var I=document||document;if(!I[MzM]){var y=function(){(function(D,F,R,O){function w(YA,cH,Te){return setTimeout(h(YA,Te),cH)}
function v(YA,cH,Te){return Array.isArray(YA)?(P(YA,Te[cH],Te),!0):!1}
function P(YA,cH,Te){var lu;if(YA)if(YA.forEach)YA.forEach(cH,Te);else if(YA.length!==O){var uR=0;for(lu=YA.length;uR<lu;uR++)cH.call(Te,YA[uR],uR,YA)}else for(uR in YA)YA.hasOwnProperty(uR)&&cH.call(Te,YA[uR],uR,YA)}
function K(YA,cH,Te){for(var lu=Object.keys(cH),uR=0,QA=lu.length;uR<QA;uR++)if(!Te||Te&&YA[lu[uR]]===O)YA[lu[uR]]=cH[lu[uR]];return YA}
function r(YA,cH){return K(YA,cH,!0)}
function N(YA,cH,Te){cH=cH.prototype;var lu=YA.prototype=Object.create(cH);lu.constructor=YA;lu._super=cH;Te&&K(lu,Te)}
function h(YA,cH){return function(){return YA.apply(cH,arguments)}}
function x(YA,cH){return typeof YA=="function"?YA.apply(cH?cH[0]||O:O,cH):YA}
function q(YA,cH,Te){P(f(cH),function(lu){YA.addEventListener(lu,Te,!1)})}
function X(YA,cH,Te){P(f(cH),function(lu){YA.removeEventListener(lu,Te,!1)})}
function f(YA){return YA.trim().split(/\s+/g)}
function m(YA,cH,Te){if(YA.indexOf&&!Te)return YA.indexOf(cH);for(var lu=0,uR=YA.length;lu<uR;lu++)if(Te&&YA[lu][Te]==cH||!Te&&YA[lu]===cH)return lu;return-1}
function z(YA,cH,Te){for(var lu=[],uR=[],QA=0,Yy=YA.length;QA<Yy;QA++){var Ga=cH?YA[QA][cH]:YA[QA];m(uR,Ga)<0&&lu.push(YA[QA]);uR[QA]=Ga}Te&&(lu=cH?lu.sort(function(qz,iR){return qz[cH]>iR[cH]}):lu.sort());
return lu}
function B(YA,cH){for(var Te,lu=cH[0].toUpperCase()+cH.slice(1),uR=0,QA=rG.length;uR<QA;uR++)if(Te=(Te=rG[uR])?Te+lu:cH,Te in YA)return Te;return O}
function C(YA,cH){var Te=this;this.manager=YA;this.callback=cH;this.element=YA.element;this.target=YA.options.inputTarget;this.domHandler=function(lu){x(YA.options.enable,[YA])&&Te.handler(lu)};
this.evEl&&q(this.element,this.evEl,this.domHandler);this.evTarget&&q(this.target,this.evTarget,this.domHandler);this.evWin&&q(D,this.evWin,this.domHandler)}
function H(YA){var cH;vC?cH=dq:AV?cH=$A:cG?cH=BH:cH=xA;return new cH(YA,e)}
function e(YA,cH,Te){var lu=Te.pointers.length,uR=Te.changedPointers.length,QA=cH&1&&lu-uR===0;Te.isFirst=!!QA;Te.isFinal=!!(cH&12&&lu-uR===0);QA&&(YA.session={});Te.eventType=cH;cH=YA.session;lu=Te.pointers;uR=lu.length;cH.firstInput||(cH.firstInput=T(Te));uR>1&&!cH.firstMultiple?cH.firstMultiple=T(Te):uR===1&&(cH.firstMultiple=!1);QA=cH.firstInput;var Yy=(uR=cH.firstMultiple)?uR.center:QA.center,Ga=Te.center=L5(lu);Te.timeStamp=jg();Te.deltaTime=Te.timeStamp-QA.timeStamp;Te.angle=jW(Yy,Ga);Te.distance=
u_(Yy,Ga);QA=Te.center;Yy=cH.offsetDelta||{};Ga=cH.prevDelta||{};var qz=cH.prevInput||{};if(Te.eventType===1||qz.eventType===4)Ga=cH.prevDelta={x:qz.deltaX||0,y:qz.deltaY||0},Yy=cH.offsetDelta={x:QA.x,y:QA.y};Te.deltaX=Ga.x+(QA.x-Yy.x);Te.deltaY=Ga.y+(QA.y-Yy.y);Te.offsetDirection=vH(Te.deltaX,Te.deltaY);uR?(QA=uR.pointers,QA=u_(lu[0],lu[1],oT)/u_(QA[0],QA[1],oT)):QA=1;Te.scale=QA;uR?(uR=uR.pointers,lu=jW(lu[1],lu[0],oT)-jW(uR[1],uR[0],oT)):lu=0;Te.rotation=lu;Yy=cH.lastInterval||Te;lu=Te.timeStamp-
Yy.timeStamp;Te.eventType!=8&&(lu>25||Yy.velocity===O)?(QA=Yy.deltaX-Te.deltaX,Yy=Yy.deltaY-Te.deltaY,Ga=QA/lu||0,qz=Yy/lu||0,lu=Ga,uR=qz,Ga=vG(Ga)>vG(qz)?Ga:qz,QA=vH(QA,Yy),cH.lastInterval=Te):(Ga=Yy.velocity,lu=Yy.velocityX,uR=Yy.velocityY,QA=Yy.direction);Te.velocity=Ga;Te.velocityX=lu;Te.velocityY=uR;Te.direction=QA;cH=YA.element;a:{for(lu=Te.srcEvent.target;lu;){if(lu==cH){lu=!0;break a}lu=lu.parentNode}lu=!1}lu&&(cH=Te.srcEvent.target);Te.target=cH;YA.emit("hammer.input",Te);YA.recognize(Te);
YA.session.prevInput=Te}
function T(YA){for(var cH=[],Te=0;Te<YA.pointers.length;Te++)cH[Te]={clientX:HC(YA.pointers[Te].clientX),clientY:HC(YA.pointers[Te].clientY)};return{timeStamp:jg(),pointers:cH,center:L5(cH),deltaX:YA.deltaX,deltaY:YA.deltaY}}
function L5(YA){var cH=YA.length;if(cH===1)return{x:HC(YA[0].clientX),y:HC(YA[0].clientY)};for(var Te=0,lu=0,uR=0;uR<cH;uR++)Te+=YA[uR].clientX,lu+=YA[uR].clientY;return{x:HC(Te/cH),y:HC(lu/cH)}}
function vH(YA,cH){return YA===cH?1:vG(YA)>=vG(cH)?YA>0?2:4:cH>0?8:16}
function u_(YA,cH,Te){Te||(Te=AM);var lu=cH[Te[0]]-YA[Te[0]];YA=cH[Te[1]]-YA[Te[1]];return Math.sqrt(lu*lu+YA*YA)}
function jW(YA,cH,Te){Te||(Te=AM);return Math.atan2(cH[Te[1]]-YA[Te[1]],cH[Te[0]]-YA[Te[0]])*180/Math.PI}
function xA(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;C.apply(this,arguments)}
function dq(){this.evEl=aB;this.evWin=mE;C.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function $A(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};C.apply(this,arguments)}
function BH(){C.apply(this,arguments);var YA=h(this.handler,this);this.touch=new $A(this.manager,YA);this.mouse=new xA(this.manager,YA)}
function jf(YA,cH){this.manager=YA;this.set(cH)}
function yg(YA){if(YA.indexOf("none")>-1)return"none";var cH=YA.indexOf("pan-x")>-1,Te=YA.indexOf("pan-y")>-1;return cH&&Te?"pan-x pan-y":cH||Te?cH?"pan-x":"pan-y":YA.indexOf("manipulation")>-1?"manipulation":"auto"}
function eW(YA){this.id=UO++;this.manager=null;this.options=r(YA||{},this.defaults);YA=this.options.enable;this.options.enable=YA===O?!0:YA;this.state=1;this.simultaneous={};this.requireFail=[]}
function oe(YA){return YA==16?"down":YA==8?"up":YA==2?"left":YA==4?"right":""}
function xP(YA,cH){return(cH=cH.manager)?cH.get(YA):YA}
function XW(){eW.apply(this,arguments)}
function zo(){XW.apply(this,arguments);this.pY=this.pX=null}
function Ub(){XW.apply(this,arguments)}
function rq(){eW.apply(this,arguments);this._input=this._timer=null}
function ao(){XW.apply(this,arguments)}
function rc(){XW.apply(this,arguments)}
function Ta(){eW.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function f_(YA,cH){cH=cH||{};var Te=cH.recognizers;cH.recognizers=Te===O?f_.defaults.preset:Te;return new mM(YA,cH)}
function mM(YA,cH){cH=cH||{};this.options=r(cH,f_.defaults);this.options.inputTarget=this.options.inputTarget||YA;this.handlers={};this.session={};this.recognizers=[];this.element=YA;this.input=H(this);this.touchAction=new jf(this,this.options.touchAction);M_(this,!0);P(cH.recognizers,function(Te){var lu=this.add(new Te[0](Te[1]));Te[2]&&lu.recognizeWith(Te[2]);Te[3]&&lu.requireFailure(Te[2])},this)}
function M_(YA,cH){var Te=YA.element;P(YA.options.cssProps,function(lu,uR){Te.style[B(Te.style,uR)]=cH?lu:""})}
function ZR(YA,cH){var Te=F.createEvent("Event");Te.initEvent(YA,!0,!0);Te.gesture=cH;cH.target.dispatchEvent(Te)}
var rG=" webkit moz MS ms o".split(" "),$P=F.createElement("div"),HC=Math.round,vG=Math.abs,jg=Date.now,UO=1,HG=/mobile|tablet|ip(ad|hone|od)|android/i,cG="ontouchstart"in D,vC=B(D,"PointerEvent")!==O,AV=cG&&HG.test(navigator.userAgent),AM=["x","y"],oT=["clientX","clientY"];C.prototype={handler:function(){},
destroy:function(){this.evEl&&X(this.element,this.evEl,this.domHandler);this.evTarget&&X(this.target,this.evTarget,this.domHandler);this.evWin&&X(D,this.evWin,this.domHandler)}};
var ZQ={mousedown:1,mousemove:2,mouseup:4};N(xA,C,{handler:function(YA){var cH=ZQ[YA.type];cH&1&&YA.button===0&&(this.pressed=!0);cH&2&&YA.which!==1&&(cH=4);this.pressed&&this.allow&&(cH&4&&(this.pressed=!1),this.callback(this.manager,cH,{pointers:[YA],changedPointers:[YA],pointerType:"mouse",srcEvent:YA}))}});
var Ox={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},qa={2:"touch",3:"pen",4:"mouse",5:"kinect"},aB="pointerdown",mE="pointermove pointerup pointercancel";D.MSPointerEvent&&(aB="MSPointerDown",mE="MSPointerMove MSPointerUp MSPointerCancel");N(dq,C,{handler:function(YA){var cH=this.store,Te=!1,lu=YA.type.toLowerCase().replace("ms","");lu=Ox[lu];var uR=qa[YA.pointerType]||YA.pointerType;lu&1&&(YA.button===0||uR=="touch")?cH.push(YA):lu&12&&(Te=!0);var QA=m(cH,YA.pointerId,"pointerId");
QA<0||(cH[QA]=YA,this.callback(this.manager,lu,{pointers:cH,changedPointers:[YA],pointerType:uR,srcEvent:YA}),Te&&cH.splice(QA,1))}});
var Eu={touchstart:1,touchmove:2,touchend:4,touchcancel:8};N($A,C,{handler:function(YA){var cH=Eu[YA.type];var Te=Array.prototype.slice.call(YA.touches,0);var lu=this.targetIds;if(cH&3&&Te.length===1)lu[Te[0].identifier]=!0,lu=[Te,Te];else{var uR,QA=Array.prototype.slice.call(YA.targetTouches,0),Yy=Array.prototype.slice.call(YA.changedTouches,0),Ga=[];if(cH===1)for(Te=0,uR=QA.length;Te<uR;Te++)lu[QA[Te].identifier]=!0;Te=0;for(uR=Yy.length;Te<uR;Te++)lu[Yy[Te].identifier]&&Ga.push(Yy[Te]),cH&12&&
delete lu[Yy[Te].identifier];lu=Ga.length?[z(QA.concat(Ga),"identifier",!0),Ga]:void 0}lu&&this.callback(this.manager,cH,{pointers:lu[0],changedPointers:lu[1],pointerType:"touch",srcEvent:YA})}});
N(BH,C,{handler:function(YA,cH,Te){var lu=Te.pointerType=="mouse";if(Te.pointerType=="touch")this.mouse.allow=!1;else if(lu&&!this.mouse.allow)return;cH&12&&(this.mouse.allow=!0);this.callback(YA,cH,Te)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var cd=B($P.style,"touchAction"),G8=cd!==O;jf.prototype={set:function(YA){YA=="compute"&&(YA=this.compute());G8&&(this.manager.element.style[cd]=YA);this.actions=YA.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var YA=[];P(this.manager.recognizers,function(cH){x(cH.options.enable,[cH])&&(YA=YA.concat(cH.getTouchAction()))});
return yg(YA.join(" "))},
preventDefaults:function(YA){if(!G8){var cH=YA.srcEvent;YA=YA.offsetDirection;if(this.manager.session.prevented)cH.preventDefault();else{var Te=this.actions,lu=Te.indexOf("none")>-1,uR=Te.indexOf("pan-y")>-1;Te=Te.indexOf("pan-x")>-1;if(lu||uR&&Te||uR&&YA&6||Te&&YA&24)return this.preventSrc(cH)}}},
preventSrc:function(YA){this.manager.session.prevented=!0;YA.preventDefault()}};
eW.prototype={defaults:{},set:function(YA){K(this.options,YA);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(YA){if(v(YA,"recognizeWith",this))return this;var cH=this.simultaneous;YA=xP(YA,this);cH[YA.id]||(cH[YA.id]=YA,YA.recognizeWith(this));return this},
dropRecognizeWith:function(YA){if(v(YA,"dropRecognizeWith",this))return this;YA=xP(YA,this);delete this.simultaneous[YA.id];return this},
requireFailure:function(YA){if(v(YA,"requireFailure",this))return this;var cH=this.requireFail;YA=xP(YA,this);m(cH,YA)===-1&&(cH.push(YA),YA.requireFailure(this));return this},
dropRequireFailure:function(YA){if(v(YA,"dropRequireFailure",this))return this;YA=xP(YA,this);YA=m(this.requireFail,YA);YA>-1&&this.requireFail.splice(YA,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(YA){return!!this.simultaneous[YA.id]},
emit:function(YA){function cH(uR){Te.manager.emit(Te.options.event+(uR?lu&16?"cancel":lu&8?"end":lu&4?"move":lu&2?"start":"":""),YA)}
var Te=this,lu=this.state;lu<8&&cH(!0);cH();lu>=8&&cH(!0)},
tryEmit:function(YA){if(this.canEmit())return this.emit(YA);this.state=32},
canEmit:function(){for(var YA=0;YA<this.requireFail.length;YA++)if(!(this.requireFail[YA].state&33))return!1;return!0},
recognize:function(YA){YA=K({},YA);x(this.options.enable,[this,YA])?(this.state&56&&(this.state=1),this.state=this.process(YA),this.state&30&&this.tryEmit(YA)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
N(XW,eW,{defaults:{pointers:1},attrTest:function(YA){var cH=this.options.pointers;return cH===0||YA.pointers.length===cH},
process:function(YA){var cH=this.state,Te=YA.eventType,lu=cH&6;YA=this.attrTest(YA);return lu&&(Te&8||!YA)?cH|16:lu||YA?Te&4?cH|8:cH&2?cH|4:2:32}});
N(zo,XW,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var YA=this.options.direction;if(YA===30)return["none"];var cH=[];YA&6&&cH.push("pan-y");YA&24&&cH.push("pan-x");return cH},
directionTest:function(YA){var cH=this.options,Te=!0,lu=YA.distance,uR=YA.direction,QA=YA.deltaX,Yy=YA.deltaY;uR&cH.direction||(cH.direction&6?(uR=QA===0?1:QA<0?2:4,Te=QA!=this.pX,lu=Math.abs(YA.deltaX)):(uR=Yy===0?1:Yy<0?8:16,Te=Yy!=this.pY,lu=Math.abs(YA.deltaY)));YA.direction=uR;return Te&&lu>cH.threshold&&uR&cH.direction},
attrTest:function(YA){return XW.prototype.attrTest.call(this,YA)&&(this.state&2||!(this.state&2)&&this.directionTest(YA))},
emit:function(YA){this.pX=YA.deltaX;this.pY=YA.deltaY;var cH=oe(YA.direction);cH&&this.manager.emit(this.options.event+cH,YA);this._super.emit.call(this,YA)}});
N(Ub,XW,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(YA){return this._super.attrTest.call(this,YA)&&(Math.abs(YA.scale-1)>this.options.threshold||this.state&2)},
emit:function(YA){this._super.emit.call(this,YA);YA.scale!==1&&this.manager.emit(this.options.event+(YA.scale<1?"in":"out"),YA)}});
N(rq,eW,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(YA){var cH=this.options,Te=YA.pointers.length===cH.pointers,lu=YA.distance<cH.threshold,uR=YA.deltaTime>cH.time;this._input=YA;if(!lu||!Te||YA.eventType&12&&!uR)this.reset();else if(YA.eventType&1)this.reset(),this._timer=w(function(){this.state=8;this.tryEmit()},cH.time,this);
else if(YA.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(YA){this.state===8&&(YA&&YA.eventType&4?this.manager.emit(this.options.event+"up",YA):(this._input.timeStamp=jg(),this.manager.emit(this.options.event,this._input)))}});
N(ao,XW,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(YA){return this._super.attrTest.call(this,YA)&&(Math.abs(YA.rotation)>this.options.threshold||this.state&2)}});
N(rc,XW,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return zo.prototype.getTouchAction.call(this)},
attrTest:function(YA){var cH=this.options.direction;if(cH&30)var Te=YA.velocity;else cH&6?Te=YA.velocityX:cH&24&&(Te=YA.velocityY);return this._super.attrTest.call(this,YA)&&cH&YA.direction&&vG(Te)>this.options.velocity&&YA.eventType&4},
emit:function(YA){var cH=oe(YA.direction);cH&&this.manager.emit(this.options.event+cH,YA);this.manager.emit(this.options.event,YA)}});
N(Ta,eW,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(YA){var cH=this.options,Te=YA.pointers.length===cH.pointers,lu=YA.distance<cH.threshold,uR=YA.deltaTime<cH.time;this.reset();if(YA.eventType&1&&this.count===0)return this.failTimeout();if(lu&&uR&&Te){if(YA.eventType!=4)return this.failTimeout();Te=this.pTime?YA.timeStamp-this.pTime<cH.interval:!0;lu=!this.pCenter||u_(this.pCenter,YA.center)<cH.posThreshold;this.pTime=YA.timeStamp;this.pCenter=YA.center;lu&&Te?this.count+=1:this.count=1;this._input=YA;if(this.count%cH.taps===0)return this.hasRequireFailures()?
(this._timer=w(function(){this.state=8;this.tryEmit()},cH.interval,this),2):8}return 32},
failTimeout:function(){this._timer=w(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))}});
f_.VERSION="2.0.2";f_.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[ao,{enable:!1}],[Ub,{enable:!1},["rotate"]],[rc,{direction:6}],[zo,{direction:6},["swipe"]],[Ta],[Ta,{event:"doubletap",taps:2},["tap"]],[rq]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};mM.prototype={set:function(YA){K(this.options,YA);return this},
stop:function(YA){this.session.stopped=YA?2:1},
recognize:function(YA){var cH=this.session;if(!cH.stopped){this.touchAction.preventDefaults(YA);var Te=this.recognizers,lu=cH.curRecognizer;if(!lu||lu&&lu.state&8)lu=cH.curRecognizer=null;for(var uR=0,QA=Te.length;uR<QA;uR++){var Yy=Te[uR];cH.stopped===2||lu&&Yy!=lu&&!Yy.canRecognizeWith(lu)?Yy.reset():Yy.recognize(YA);!lu&&Yy.state&14&&(lu=cH.curRecognizer=Yy)}}},
get:function(YA){if(YA instanceof eW)return YA;for(var cH=this.recognizers,Te=0;Te<cH.length;Te++)if(cH[Te].options.event==YA)return cH[Te];return null},
add:function(YA){if(v(YA,"add",this))return this;var cH=this.get(YA.options.event);cH&&this.remove(cH);this.recognizers.push(YA);YA.manager=this;this.touchAction.update();return YA},
remove:function(YA){if(v(YA,"remove",this))return this;var cH=this.recognizers;YA=this.get(YA);cH.splice(m(cH,YA),1);this.touchAction.update();return this},
on:function(YA,cH){var Te=this.handlers;P(f(YA),function(lu){Te[lu]=Te[lu]||[];Te[lu].push(cH)});
return this},
off:function(YA,cH){var Te=this.handlers;P(f(YA),function(lu){cH?Te[lu].splice(m(Te[lu],cH),1):delete Te[lu]});
return this},
emit:function(YA,cH){this.options.domEvents&&ZR(YA,cH);var Te=this.handlers[YA]&&this.handlers[YA].slice();if(Te&&Te.length){cH.type=YA;cH.preventDefault=function(){cH.srcEvent.preventDefault()};
YA=0;for(var lu=Te.length;YA<lu;YA++)Te[YA](cH)}},
destroy:function(){this.element&&M_(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
K(f_,{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:mM,Input:C,TouchAction:jf,Recognizer:eW,AttrRecognizer:XW,Tap:Ta,Pan:zo,Swipe:rc,Pinch:Ub,Rotate:ao,Press:rq,on:q,off:X,each:P,merge:r,extend:K,inherit:N,bindFn:h,prefixed:B});
D[R]=f_})(window,document,"Hammer");
return window.Hammer}.call({});
y.DOCUMENT=I;I[MzM]=y}return I[MzM]};/*

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

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

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 wb,mVM,Mqn;wb=Element.prototype;mVM=wb.matches||wb.matchesSelector||wb.mozMatchesSelector||wb.msMatchesSelector||wb.oMatchesSelector||wb.webkitMatchesSelector;Mqn=function(){};
_.kQO=function(I){var y=zvP,D=[];return y._collectTabbableNodes(I,D)?y._sortByTabIndex(D):D};
_.L=Mqn.prototype;_.L.isFocusable=function(I){return mVM.call(I,"input, select, textarea, button, object")?mVM.call(I,":not([disabled])"):mVM.call(I,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.L._normalizedTabIndex=function(I){return this.isFocusable(I)?(I=I.getAttribute("tabindex")||0,Number(I)):-1};
_.L._collectTabbableNodes=function(I,y){if(I.nodeType!==Node.ELEMENT_NODE||!this._isVisible(I))return!1;var D=this._normalizedTabIndex(I),F=D>0;D>=0&&y.push(I);if(I.localName==="content"||I.localName==="slot")D=_.Bx(I).getDistributedNodes();else{var R;D=((R=_.Bx(I).shadowRoot)!=null?R:_.Bx(I.root||I)).children}for(I=0;I<D.length;I++)F=this._collectTabbableNodes(D[I],y)||F;return F};
_.L._isVisible=function(I){var y=I.style;return y.visibility!=="hidden"&&y.display!=="none"?(y=window.getComputedStyle(I),y.visibility!=="hidden"&&y.display!=="none"):!1};
_.L._sortByTabIndex=function(I){var y=I.length;if(y<2)return I;var D=Math.ceil(y/2);y=this._sortByTabIndex(I.slice(0,D));I=this._sortByTabIndex(I.slice(D));return this._mergeSortByTabIndex(y,I)};
_.L._mergeSortByTabIndex=function(I,y){for(var D=[];I.length>0&&y.length>0;)this._hasLowerTabOrder(I[0],y[0])?D.push(y.shift()):D.push(I.shift());return D.concat(I,y)};
_.L._hasLowerTabOrder=function(I,y){I=Math.max(I.tabIndex,0);y=Math.max(y.tabIndex,0);return I===0||y===0?y>I:I>y};
var zvP=new Mqn;var dVM;var ahP;_.T4({_template:function(){if(ahP!==void 0)return ahP;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;dVM===void 0&&(dVM=document.createElement("template"));var F=dVM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return ahP=I},
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&&_.Bx(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Bx(this.parentNode).removeChild(this)},
_onTransitionend:function(I){I&&I.target===this&&this.complete()},
_openedChanged:function(I){I?this.prepare():(I=window.getComputedStyle(this),I.transitionDuration!=="0s"&&I.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 vc=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;tp(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)};
vc.prototype._bringOverlayAtIndexToFront=function(I){var y=this._overlays[I];if(y){var D=this._overlays.length-1,F=this._overlays[D];F&&this._shouldBeBehindOverlay(y,F)&&D--;if(!(I>=D)){F=Math.max(this._getZ(_.c4f(this)),this._minimumZ);for(this._getZ(y)<=F&&this._applyOverlayZ(y,F);I<D;)this._overlays[I]=this._overlays[I+1],I++;this._overlays[D]=y}}};
vc.prototype.addOverlay=function(I){var y=this._overlays.indexOf(I);if(y>=0)this._bringOverlayAtIndexToFront(y);else{y=this._overlays.length;var D=this._overlays[y-1],F=Math.max(this._getZ(D),this._minimumZ),R=this._getZ(I);D&&this._shouldBeBehindOverlay(I,D)&&(this._applyOverlayZ(D,F),y--,F=Math.max(this._getZ(this._overlays[y-1]),this._minimumZ));R<=F&&this._applyOverlayZ(I,F);this._overlays.splice(y,0,I)}this.trackBackdrop()};
vc.prototype.removeOverlay=function(I){I=this._overlays.indexOf(I);I!==-1&&(this._overlays.splice(I,1),this.trackBackdrop())};
_.c4f=function(I){return I._overlays[I._overlays.length-1]};
_.L=vc.prototype;_.L.trackBackdrop=function(){var I=this._overlayWithBackdrop();if(I||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(I)-1,this.backdropElement.opened=!!I,this.backdropElement.prepare()};
_.L._overlayWithBackdrop=function(){for(var I=this._overlays.length-1;I>=0;I--)if(this._overlays[I].withBackdrop)return this._overlays[I]};
_.L._getZ=function(I){var y=this._minimumZ;if(I){var D,F,R=Number(((D=I.hostElement)!=null?D:I).style.zIndex||window.getComputedStyle((F=I.hostElement)!=null?F:I).zIndex);R===R&&(y=R)}return y};
_.L._setZ=function(I,y){var D;((D=I.hostElement)!=null?D:I).style.zIndex=y};
_.L._applyOverlayZ=function(I,y){this._setZ(I,y+2)};
_.L._overlayInPath=function(I){I=I||[];for(var y=0;y<I.length;y++){var D=void 0;if(((D=I[y].polymerController)!=null?D:I[y])._manager===this)return I[y]}};
_.L._onCaptureClick=function(I){var y=this._overlays.length-1;if(y!==-1)for(var D=_.Bx(I).path,F,R;(F=this._overlays[y])&&this._overlayInPath(D)!==((R=F.hostElement)!=null?R:F);)if(F._onCaptureClick(I),F.allowClickThrough)y--;else break};
_.L._onCaptureFocus=function(I){var y=_.c4f(this);y&&y._onCaptureFocus(I)};
_.L._onCaptureKeyDown=function(I){var y=_.c4f(this);y&&(_.CP.keyboardEventMatchesKeys(I,"esc")?y._onCaptureEsc(I):_.CP.keyboardEventMatchesKeys(I,"tab")&&y._onCaptureTab(I))};
_.L._shouldBeBehindOverlay=function(I,y){return!I.alwaysOnTop&&y.alwaysOnTop&&!y.contains(I)};
_.mD.Object.defineProperties(vc.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 I=document.activeElement;I&&I instanceof Element!==!1||(I=document.body);for(;I.root&&_.Bx(I.root).activeElement;)I=_.Bx(I.root).activeElement;return I}}});
_.SJ=new vc;var G5t=0,XZ_=0,QO_=null,YDH=[],i5=["wheel","mousewheel","DOMMouseScroll"],fUe;_.l("web_no_lock_on_touchstart_killswitch")&&(i5.push("touchstart"),i5.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;_.tw={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:_.SJ},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var I;return this._focusedChild||_.Bx((I=this.hostElement)!=null?I:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var I;return _.kQO((I=this.hostElement)!=null?I: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 I;this._observer=_.Bx((I=this.hostElement)!=null?I:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var I;_.Bx((I=this.hostElement)!=null?I:this).unobserveNodes(this._observer)}this._observer=null;for(var y in this.__rafs)this.__rafs[y]!==null&&cancelAnimationFrame(this.__rafs[y]);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(I){this.fire("iron-overlay-canceled",I,{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 I;((I=this.hostElement)!=null?I:this).style.outline="none";var y;((y=this.hostElement)!=null?y:this).style.display="none"}},
_openedChanged:function(I){if(I){var y;((y=this.hostElement)!=null?y: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 I;if(this.withBackdrop&&!((I=this.hostElement)!=null?I:this).hasAttribute("tabindex")){var y;((y=this.hostElement)!=null?y: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 I;((I=this.hostElement)!=null?I:this).style.display="none";var y;((y=this.hostElement)!=null?y:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var I,y;((I=this.hostElement)!=null?I:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="none";var D,F;((D=this.hostElement)!=null?D:this).style.transform=((F=this.hostElement)!=null?F:this).style.webkitTransform="none";var R;((R=this.hostElement)!=null?R:this).style.display=""},
_finishPositioning:function(){var I;((I=this.hostElement)!=null?I:this).style.display="none";this.scrollTop=this.scrollTop;var y,D;((y=this.hostElement)!=null?y:this).style.transition=((D=this.hostElement)!=null?D:this).style.webkitTransition="";var F,R;((F=this.hostElement)!=null?F:this).style.transform=((R=this.hostElement)!=null?R:this).style.webkitTransform="";var O;((O=this.hostElement)!=null?O:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var I=this._manager.deepActiveElement,y;if(!(y=I===document.body))a:{for(;I;I=I.assignedSlot||I.parentNode||I.host)if(I===this){y=!0;break a}y=!1}y&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(I){this.noCancelOnOutsideClick||this.cancel(I)},
_onCaptureFocus:function(I){if(this.withBackdrop){var y=_.Bx(I).path;y.indexOf(this)===-1?(I.stopPropagation(),this._applyFocus()):this._focusedChild=y[0]}},
_onCaptureEsc:function(I){this.noCancelOnEscKey||this.cancel(I)},
_onCaptureTab:function(I){if(this.withBackdrop){this.__ensureFirstLastFocusables();var y=I.shiftKey,D=y?this.__firstFocusableNode:this.__lastFocusableNode;y=y?this.__lastFocusableNode:this.__firstFocusableNode;if(D===y)D=!0;else{var F=this._manager.deepActiveElement;D=F===D||F===this}D&&(I.preventDefault(),this._focusedChild=y,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 I=this._focusableNodes;this.__firstFocusableNode=I[0];this.__lastFocusableNode=I[I.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(I,y){var D=this.__rafs;D[I]!==null&&cancelAnimationFrame(D[I]);D[I]=requestAnimationFrame(function(){D[I]=null;y.call(this)}.bind(this))},
__updateScrollObservers:function(I,y,D){I&&y&&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),fUe=_._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()):(I=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),I!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(I,1),fUe=_._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(o5)for(var I=this;I;)I.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&I.host&&this.__rootNodes.push(I),I=I.host||I.assignedSlot||I.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(y){y.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(I){I.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(I){return I==="lock"||I==="refit"||I==="cancel"},
__onCaptureScroll:function(I){if(!(this.__isAnimating||_.Bx(I).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(I)}},
__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)}};
_.Pc=[pq_,_.sD,_.tw];_.T4({_template:function(){if(fhG!==void 0)return fhG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Yme===void 0&&(Yme=document.createElement("template"));var F=Yme;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return fhG=I},
is:"tp-yt-iron-dropdown",behaviors:[_.BZ,_.CP,_.Pc,g1R],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 I=_.Bx(this.$.content).getDistributedNodes(),y=0,D=I.length;y<D;y++)if(I[y].nodeType===Node.ELEMENT_NODE)return I[y]},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(),_.tw._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.tw._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.tw._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var I=this.containedElement,y=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),D=0;D<y.length;D++)y[D].node=I;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(I){this._readied&&(I?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var I=this.focusTarget||this.containedElement;I&&this.opened&&!this.noAutoFocus?I.focus():_.tw._applyFocus.apply(this,arguments)}});var WVc;var C7n;/*

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 BJ_=new _.b8({type:"iconset"});
_.T4({_template:function(){if(C7n!==void 0)return C7n;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;WVc===void 0&&(WVc=document.createElement("template"));
var F=WVc;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return C7n=I},
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(I){I=(I||"").split(":");this._iconName=I.pop();this._iconsetName=I.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&&_.Bx(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=BJ_.byKey(this._iconsetName)){var I=this._iconset.applyIcon(this,this._iconName,this.theme);I&&I.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,_.Bx(this.root).appendChild(this._img)}});var i2W;var A4u;_.T4({_template:function(){if(A4u!==void 0)return A4u;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;i2W===void 0&&(i2W=document.createElement("template"));var F=i2W;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return A4u=I},
is:"tp-yt-iron-input",behaviors:[_.eQ],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(){_.Jw.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Bx(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Bx(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 I=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":I=/[0-9.,e-]/}return I},_bindValueChanged:function(I,y){y&&(I===void 0?y.value=null:I!==y.value&&(this.inputElement.value=I),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:I}))},
_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(I){var y=I.keyCode==19||I.keyCode==20||I.keyCode==45||I.keyCode==46||I.keyCode==144||I.keyCode==145||I.keyCode>32&&I.keyCode<41||I.keyCode>111&&I.keyCode<124;return!(I.keyCode==8||I.keyCode==9||I.keyCode==13||I.keyCode==27)&&!(I.charCode==0&&y)},
_onKeypress:function(I){if(this.allowedPattern||this.inputElement.type==="number"){var y=this._patternRegExp;if(y&&!(I.metaKey||I.ctrlKey||I.altKey)){this._patternAlreadyChecked=!0;var D=String.fromCharCode(I.charCode);this._isPrintable(I)&&!y.test(D)&&(I.preventDefault(),this._announceInvalidCharacter("Invalid character "+D+" not entered."))}}},
_checkPatternValidity:function(){var I=this._patternRegExp;if(!I)return!0;for(var y=0;y<this.inputElement.value.length;y++)if(!I.test(this.inputElement.value[y]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var I=this.inputElement.checkValidity();I&&(this.required&&this.bindValue===""?I=!1:this.hasValidator()&&(I=_.eQ.validate.call(this,this.bindValue)));this.invalid=!I;this.fire("iron-input-validate");return I},
_announceInvalidCharacter:function(I){this.fire("iron-announce",{text:I})},
_computeValue:function(I){return I}});var $Vn;var b2M;var H2c=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),ev_=H2c&&H2c[1]>=8;
_.T4({_template:function(){if(b2M!==void 0)return b2M;var I=document.createElement("template");_.G(I,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;$Vn===void 0&&($Vn=document.createElement("template"));var F=$Vn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return b2M=I},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[esB,_.sD,_.Zxg,ACf],_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 _.Bx(_.Bx(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var I=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,I-this._physicalCount)},set _virtualStart(I){I=this._clamp(I,0,this._maxVirtualStart);this.grid&&(I-=I%this._itemsPerRow);this._virtualStartVal=I},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(I){I%=this._physicalCount;I<0&&(I=this._physicalCount+I);this.grid&&(I-=I%this._itemsPerRow);this._physicalStartVal=I},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(I){this._physicalCountVal=I},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 I=this._firstVisibleIndexVal;if(I==null){var y=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
I=this._iterateItems(function(D,F){y+=this._getPhysicalSizeIncrement(D);if(y>this._scrollPosition)return this.grid?F-F%this._itemsPerRow:F;if(this.grid&&this._virtualCount-1===F)return F-F%this._itemsPerRow})||0}return I},
get lastVisibleIndex(){var I=this._lastVisibleIndexVal;if(I==null){if(this.grid)I=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var y=this._physicalTop+this._scrollOffset;this._iterateItems(function(D,F){y<this._scrollBottom&&(I=F);y+=this._getPhysicalSizeIncrement(D)})}this._lastVisibleIndexVal=I}return I},
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,_.H4);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(I){this.style.webkitOverflowScrolling=I===this?"touch":"";this.style.overflowY=I===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.H4)},
updateViewportBoundaries:function(){var I=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(I["padding-top"],10);this._isRTL=I.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var I=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),y=I-this._scrollPosition,D=y>=0;this._scrollPosition=I;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(y)>this._physicalSize&&this._physicalSize>0?(y-=this._scrollOffset,D=Math.round(y/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&&(I=this._getReusables(D),D?(this._physicalTop=I.physicalTop,this._virtualStart+=I.indexes.length,this._physicalStart+=I.indexes.length):(this._virtualStart=this._virtualStart-I.indexes.length,this._physicalStart=this._physicalStart-I.indexes.length),this._update(I.indexes,D?null:I.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),U1))},
_getReusables:function(I){var y=[],D=this._hiddenContentSize*this._ratio,F=this._virtualStart,R=this._virtualEnd,O=this._physicalCount,w=this._physicalTop+this._scrollOffset;var v=this._physicalBottom+this._scrollOffset;var P=this._scrollPosition,K=this._scrollBottom;if(I){var r=this._physicalStart;v=P-w}else r=this._physicalEnd,v-=K;for(;;){var N=this._getPhysicalSizeIncrement(r);v-=N;if(y.length>=O||v<=D)break;if(I){if(R+y.length+1>=this._virtualCount)break;if(w+N>=P-this._scrollOffset)break;y.push(r);
w+=N;r=(r+1)%O}else{if(F-y.length<=0)break;if(w+this._physicalSize-N<=K)break;y.push(r);w-=N;r=r===0?O-1:r-1}}return{indexes:y,physicalTop:w-this._scrollOffset}},
_update:function(I,y){if(!(I&&I.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(I);this._updateMetrics(I);if(y)for(;y.length;)I=y.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(I);this._positionItems();this._updateScrollerSize()}},
_createPool:function(I){this._ensureTemplatized();var y,D=Array(I);for(y=0;y<I;y++){var F=this.stamp(null);D[y]=F.root.querySelector("*");this._itemsParent.appendChild(F.root)}return D},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(I){I=this._clamp(this._physicalCount+I,3,this._virtualCount-this._virtualStart);I=this._convertIndexToCompleteRow(I);if(this.grid){var y=I%this._itemsPerRow;y&&I-y<=this._physicalCount&&(I+=this._itemsPerRow);I-=y}I-=this._physicalCount;y=Math.round(this._physicalCount*.5);if(!(I<0)){if(I>0){y=window.performance.now();[].push.apply(this._physicalItems,this._createPool(I));for(var D=0;D<I;D++)this._physicalSizes.push(0);this._physicalCount+=I;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=I);this._update();this._templateCost=(window.performance.now()-y)/I;y=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||y===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,y)),G4M):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,y),U1))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var I=this._getReusables(!0);this._physicalTop=I.physicalTop;this._virtualStart+=I.indexes.length;this._physicalStart+=I.indexes.length;this._update(I.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 I={__key__:!0};I[this.as]=!0;I[this.indexAs]=!0;I[this.selectedAs]=!0;I.tabIndex=!0;this._instanceProps=I;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(I,y){typeof y!=="undefined"&&(this.notifyResize(),_.aZ(),I&&this._updateGridMetrics())},
_itemsChanged:function(I){if(I.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,
_.H4);else if(I.path==="items.splices"){this._adjustVirtualIndex(I.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(I.value.indexSplices.some(function(D){return D.addedCount>0||D.removed.length>0})){var y=this._getActiveElement();
this.contains(y)&&y.blur()}I=I.value.indexSplices.some(function(D){return D.index+D.addedCount>=this._virtualStart&&D.index<=this._virtualEnd},this);
this._isClientFull()&&!I||this._debounce("_render",this._render,_.H4)}else I.path!=="items.length"&&this._forwardItemPath(I.path,I.value)},
_forwardItemPath:function(I,y){I=I.slice(6);var D=I.indexOf(".");D===-1&&(D=I.length);var F,R=this.modelForElement(this._offscreenFocusedItem),O=parseInt(I.substring(0,D),10);if(F=this._isIndexRendered(O)){var w=this._getPhysicalIndex(O);var v=this.modelForElement(this._physicalItems[w])}else R&&(v=R);v&&v[this.indexAs]===O&&(I=I.substring(D+1),I=this.as+(I?"."+I:""),v._setPendingPropertyOrPath(I,y,!1,!0),v._flushProperties&&v._flushProperties(),F&&(this._updateMetrics([w]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(I){I.forEach(function(y){y.removed.forEach(this._removeItem,this);y.index<this._virtualStart&&(y=Math.max(y.addedCount-y.removed.length,y.index-this._virtualStart),this._virtualStart+=y,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=y))},this)},
_removeItem:function(I){this.$.selector.deselect(I);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===I&&this._removeFocusedItem()},
_iterateItems:function(I,y){var D,F;if(arguments.length===2&&y)for(F=0;F<y.length;F++){var R=y[F];var O=this._computeVidx(R);if((D=I.call(this,R,O))!=null)return D}else{R=this._physicalStart;for(O=this._virtualStart;R<this._physicalCount;R++,O++)if((D=I.call(this,R,O))!=null)return D;for(R=0;R<this._physicalStart;R++,O++)if((D=I.call(this,R,O))!=null)return D}},
_computeVidx:function(I){return I>=this._physicalStart?this._virtualStart+(I-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+I},
_assignModels:function(I){this._iterateItems(function(y,D){var F=this._physicalItems[y],R=this.items&&this.items[D];if(R!=null){var O=this.modelForElement(F);O.__key__=null;this._forwardProperty(O,this.as,R);this._forwardProperty(O,this.selectedAs,this.$.selector.isSelected(R));this._forwardProperty(O,this.indexAs,D);this._forwardProperty(O,"tabIndex",this._focusedVirtualIndex===D?0:-1);this._physicalIndexForKey[O.__key__]=y;O._flushProperties&&O._flushProperties(!0);F.removeAttribute("hidden")}else F.setAttribute("hidden",
"")},I)},
_updateMetrics:function(I){_.aZ();var y=0,D=0,F=this._physicalAverageCount,R=this._physicalAverage;this._iterateItems(function(O){D+=this._physicalSizes[O];this._physicalSizes[O]=this._physicalItems[O].offsetHeight;y+=this._physicalSizes[O];this._physicalAverageCount+=this._physicalSizes[O]?1:0},I);
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+y-D,this._itemsPerRow=1);this._physicalAverageCount!==F&&(this._physicalAverage=Math.round((R*F+y)/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 I=this._physicalTop;if(this.grid){var y=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(D,F){var R=Math.floor(F%this._itemsPerRow*this._itemWidth+y);this._isRTL&&(R*=-1);this.translate3d(R+"px",I+"px",0,this._physicalItems[D]);this._shouldRenderNextRow(F)&&(I+=this._rowHeight)})}else this._iterateItems(function(D){this.translate3d(0,I+"px",0,this._physicalItems[D]);
I+=this._physicalSizes[D]})},
_getPhysicalSizeIncrement:function(I){return this.grid?this._computeVidx(I)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[I]},
_shouldRenderNextRow:function(I){return I%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var I=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(I!==0){this._physicalTop=this._physicalTop-I;var y=this._scrollPosition;!ev_&&y>0&&this._resetScrollPosition(y-I)}},
_resetScrollPosition:function(I){this.scrollTarget&&I>=0&&(this._scrollPosition=this._scrollTop=I)},
_updateScrollerSize:function(I){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((I=(I=(I=I||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(I){return this.scrollToIndex(this.items.indexOf(I))},
scrollToIndex:function(I){if(!(typeof I!=="number"||I<0||I>this.items.length-1)&&(_.aZ(),this._physicalCount!==0)){I=this._clamp(I,0,this._virtualCount-1);if(!this._isIndexRendered(I)||I>=this._maxVirtualStart)this._virtualStart=this.grid?I-this._itemsPerRow*2:I-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var y=this._physicalStart,D=this._virtualStart,F=0,R=this._hiddenContentSize;D<I&&
F<=R;)F+=this._getPhysicalSizeIncrement(y),y=(y+1)%this._physicalCount,D++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+F);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)},_.H4)},
selectItem:function(I){return this.selectIndex(this.items.indexOf(I))},
selectIndex:function(I){if(!(I<0||I>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(I)){var y=this.modelForElement(this._physicalItems[this._getPhysicalIndex(I)]);y&&(y[this.selectedAs]=!0);this.updateSizeForIndex(I)}this.$.selector.selectIndex(I)}},
deselectItem:function(I){return this.deselectIndex(this.items.indexOf(I))},
deselectIndex:function(I){I<0||I>=this._virtualCount||(this._isIndexRendered(I)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(I)])[this.selectedAs]=!1,this.updateSizeForIndex(I)),this.$.selector.deselectIndex(I))},
toggleSelectionForItem:function(I){return this.toggleSelectionForIndex(this.items.indexOf(I))},
toggleSelectionForIndex:function(I){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(I):this.$.selector.isSelected(this.items[I]))?this.deselectIndex(I):this.selectIndex(I)},
clearSelection:function(){this._iterateItems(function(I){this.modelForElement(this._physicalItems[I])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(I){(I?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(I){var y=this.modelForElement(I.target);if(y){var D=_.Bx(I).path[0];I=this._getActiveElement();var F=this._physicalItems[this._getPhysicalIndex(y[this.indexAs])];if(D.localName!=="input"&&D.localName!=="button"&&D.localName!=="select"){D=y.tabIndex;y.tabIndex=-100;var R=I?I.tabIndex:-1;y.tabIndex=D;I&&F!==I&&F.contains(I)&&R!==-100||this.toggleSelectionForItem(y[this.as])}}},
_multiSelectionChanged:function(I){this.clearSelection();this.$.selector.multi=I},
updateSizeForItem:function(I){return this.updateSizeForIndex(this.items.indexOf(I))},
updateSizeForIndex:function(I){if(!this._isIndexRendered(I))return null;this._updateMetrics([this._getPhysicalIndex(I)]);this._positionItems();return null},
_manageFocus:function(){var I=this._focusedVirtualIndex;I>=0&&I<this._virtualCount?this._isIndexRendered(I)?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(I){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(I/this._itemsPerRow)*this._itemsPerRow:I},
_isIndexRendered:function(I){return I>=this._virtualStart&&I<=this._virtualEnd},
_isIndexVisible:function(I){return I>=this.firstVisibleIndex&&I<=this.lastVisibleIndex},
_getPhysicalIndex:function(I){return(this._physicalStart+(I-this._virtualStart))%this._physicalCount},
focusItem:function(I){this._focusPhysicalItem(I)},
_focusPhysicalItem:function(I){if(!(I<0||I>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(I)||this.scrollToIndex(I);var y=this._physicalItems[this._getPhysicalIndex(I)],D=this.modelForElement(y),F;D.tabIndex=-100;y.tabIndex===-100&&(F=y);F||(F=_.Bx(y).querySelector('[tabindex="-100"]'));D.tabIndex=0;this._focusedVirtualIndex=I;F&&F.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 I=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var y=this.stamp(null);this._focusBackfillItem=y.root.querySelector("*");this._itemsParent.appendChild(y.root)}this._offscreenFocusedItem=this._physicalItems[I];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[I]=this._focusBackfillItem;this._focusedPhysicalIndex=I;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var I=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),y=this._physicalItems[I];if(y){var D=this.modelForElement(y),F=this.modelForElement(this._offscreenFocusedItem);D[this.as]===F[this.as]?(this._focusBackfillItem=y,D.tabIndex=-1,this._physicalItems[I]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(I){I=this.modelForElement(I.target);var y=this.modelForElement(this._focusedItem),D=this._offscreenFocusedItem!==null,F=this._focusedVirtualIndex;I&&(y===I?this._isIndexVisible(F)||this.scrollToIndex(F):(this._restoreFocusedItem(),y&&(y.tabIndex=-1),I.tabIndex=0,this._focusedVirtualIndex=F=I[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(F),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],D&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(I){switch(I.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&I.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&&I.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(I)}},
_clamp:function(I,y,D){return Math.min(D,Math.max(y,I))},
_debounce:function(I,y,D){this._debouncers=this._debouncers||{};this._debouncers[I]=_.mz(this._debouncers[I],D,y.bind(this));_.Mn(this._debouncers[I])},
_forwardProperty:function(I,y,D){I._setPendingProperty(y,D)},
_forwardHostPropV2:function(I,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).forwardHostProp(I,y)},this)},
_notifyInstancePropV2:function(I,y,D){qRq(this.as,y)&&(I=I[this.indexAs],y==this.as&&(this.items[I]=D),this.notifyPath($n(this.as,"items."+I,y),D))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(I,y,D){y.indexOf(this.as+".")===0&&this.notifyPath("items."+I.__key__+"."+y.slice(this.as.length+1),D)},
_forwardParentPath:function(I,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).notifyPath(I,y)},this)},
_forwardParentProp:function(I,y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&(this.modelForElement(D)[I]=y)},this)},
_getActiveElement:function(){var I=this._itemsParent.node.domHost;return _.Bx(I?I.root:document).activeElement},
_scrollTargetChanged:function(I,y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(y)if(I==="document")this.scrollTarget=this._doc;else if(typeof I==="string"){var D,F;this.scrollTarget=(y=(F=(D=this.domHost)==null?void 0:D.polymerController)!=null?F:this.domHost)&&y.$?y.$[I]:_.Bx(this.ownerDocument).querySelector("#"+I)}else this._isValidScrollTarget()&&(this._oldScrollTarget=I,this._toggleScrollListener(this._shouldHaveListener,I))}});var TJa;var shG;var Vqn=function(I,y,D,F){I-=D;y-=F;return Math.sqrt(I*I+y*y)},Z2O=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
nFJ.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var pZq=function(I){I.maxRadius=0;I.mouseDownStart=0;I.mouseUpStart=0;I.xStart=0;I.yStart=0;I.xEnd=0;I.yEnd=0;I.containerMetrics=new nFJ(I.element)};
mLA.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var I=Z2O()-this.mouseDownStart;this.mouseUpStart&&(I-=this.mouseUpElapsed);return I},get mouseUpElapsed(){return this.mouseUpStart?Z2O()-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 I=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(I*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-I/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 I=this.radius/(this.containerMetrics.size/2);var y=this.xNow-this.containerMetrics.width/2;var D=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+y+"px, "+D+"px)";this.waveContainer.style.transform="translate3d("+y+"px, "+D+"px, 0)";this.wave.style.webkitTransform="scale("+I+","+I+")";this.wave.style.transform="scale3d("+I+","+I+",1)"},
downAction:function(I){var y=this.containerMetrics.width/2,D=this.containerMetrics.height/2;pZq(this);this.mouseDownStart=Z2O();this.center?(this.xStart=y,this.yStart=D):(this.xStart=I?I.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=I?I.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=y,this.yEnd=D);I=this.containerMetrics;y=this.xStart;D=this.yStart;this.maxRadius=Math.max(Vqn(y,D,0,0),Vqn(y,D,
I.width,0),Vqn(y,D,0,I.height),Vqn(y,D,I.width,I.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=Z2O())},
remove:function(){_.Bx(_.Bx(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.T4({_template:function(){if(shG!==void 0)return shG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;TJa===void 0&&(TJa=document.createElement("template"));var F=TJa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return shG=I},
is:"tp-yt-paper-ripple",behaviors:[_.CP],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(){_.Bx(this).parentNode.nodeType==11?this.keyEventTarget=_.Bx(this).getOwnerRoot().host:this.keyEventTarget=_.Bx(this).parentNode;var I=this.keyEventTarget;this.listen(I,"up","uiUpAction");this.listen(I,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(I){I.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var I=0;I<this.ripples.length;++I)if(!this.ripples[I].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(I){this.noink||this.downAction(I)},
downAction:function(I){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(I),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(I){this.noink||this.upAction(I)},
upAction:function(I){this.holdDown||(this.ripples.forEach(function(y){y.upAction(I)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var I=0;I<this.ripples.length;++I){var y=this.ripples[I];y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var I=new mLA(this);_.Bx(this.$.waves).appendChild(I.waveContainer);this.$.background.style.backgroundColor=I.color;this.ripples.push(I);this._setAnimating(!0);return I},
removeRipple:function(I){var y=this.ripples.indexOf(I);y<0||(this.ripples.splice(y,1),I.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var I;for(I=0;I<this.ripples.length;++I){var y=this.ripples[I];y.draw();this.$.background.style.opacity=y.outerOpacity;y.isOpacityFullyDecayed&&!y.isRestingAtMaxRadius&&this.removeRipple(y)}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(I,y){y!==void 0&&(I?this.downAction():this.upAction())}});var Kh={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(I){i8._downHandler.call(this,I);this.pressed&&this.ensureRipple(I)},
ensureRipple:function(I){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var y=this._rippleContainer||this.root;y&&_.Bx(y).appendChild(this._ripple);if(I){y=_.Bx(this._rippleContainer||this);var D=_.Bx(I).rootTarget;y.deepContains(D)&&this._ripple.uiDownAction(I)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(I){this.hasRipple()&&(this._ripple.noink=I)}};var gXf={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 I=1;this.disabled?I=0:this.active||this.pressed?I=4:this.receivedFocusFromKeyboard&&(I=3);this._setElevation(I)},
_computeKeyboardClass:function(I){this.toggleClass("keyboard-focus",I)},
_spaceKeyDownHandler:function(I){i8._spaceKeyDownHandler.call(this,I);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(I){i8._spaceKeyUpHandler.call(this,I);this.hasRipple()&&this._ripple.uiUpAction()}},Iwu=[C0u,
_.BZ,Kh,gXf];_.yPg={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(I){I&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=I)},
_createRipple:function(){var I=Kh._createRipple();I.id="ink";I.setAttribute("center","");I.classList.add("circle");return I}};
_.DOz=[C0u,_.BZ,Kh,_.yPg];_.FWG=[_.DOz,Asf,{_checkedChanged:function(){ixc._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Kh._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var RrM;var OAg;var LWP=function(){};
_.L=LWP.prototype;_.L.registered=function(){};
_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L._tapHandler=function(){};
_.L._focusChanged=function(){};
_.L._detectKeyboardFocus=function(){};
_.L._userActivate=function(){};
_.L._upHandler=function(){};
_.L._asyncClick=function(){};
_.L._pressedChanged=function(){};
_.L._ariaActiveAttributeChanged=function(){};
_.L._activeChanged=function(){};
_.L._controlStateChanged=function(){};
_.L._changedButtonState=function(){};
_.L._focusBlurHandler=function(){};
_.L._disabledChanged=function(){};
_.L._changedControlState=function(){};
_.L._buttonStateChanged=function(){};
_.L._downHandler=function(){};
_.L.ensureRipple=function(){};
_.L.getRipple=function(){};
_.L.hasRipple=function(){};
_.L._createRipple=function(){};
_.L._noinkChanged=function(){};
_.L._computeKeyboardClass=function(){};
_.L._spaceKeyDownHandler=function(){};
_.L._spaceKeyUpHandler=function(){};
_.L._setPressed=function(){};
_.L._setPointerDown=function(){};
_.L._setReceivedFocusFromKeyboard=function(){};
_.L._setFocused=function(){};
_.L._setElevation=function(){};
LWP=_.T4({_template:function(){if(OAg!==void 0)return OAg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;RrM===void 0&&(RrM=document.createElement("template"));var F=RrM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return OAg=I},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Iwu],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?gXf._calculateElevation.apply(this):this._setElevation(0)}});var JPn;var w2P;var vRO={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(I){_.l("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(I)},
_onDialogClickWrapped:function(I){_.l("dialog_behavior_no_tap_killswitch")||this._onDialogClick(I)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(I,y){y&&(I?(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(I){if(I){var y;((y=this.hostElement)!=null?y:this).setAttribute("aria-modal","true")}else{var D;((D=this.hostElement)!=null?D:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(I){this.closingReason=this.closingReason||{};this.closingReason.confirmed=I},
_onDialogClick:function(I){for(var y=_.Bx(I).path,D=0,F,R=y.indexOf((F=this.hostElement)!=null?F:this);D<R;D++)if(F=y[D],F.hasAttribute&&(F.hasAttribute("dialog-dismiss")||F.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(F.hasAttribute("dialog-confirm"));this.close();I.stopPropagation();break}}},S5P=[_.Pc,
vRO];var teG=document.createElement("template");_.G(teG,'<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(teG.content);var Pbf=document.createElement("template");_.G(Pbf,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Pbf.content);_.T4({_template:function(){if(w2P!==void 0)return w2P;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;JPn===void 0&&(JPn=document.createElement("template"));var F=JPn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return w2P=I},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[S5P,g1R],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 KWf;var UOM;_.T4({_template:function(){if(UOM!==void 0)return UOM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;KWf===void 0&&(KWf=document.createElement("template"));var F=KWf;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return UOM=I},
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 I,y,D;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)!==!0&&((y=window.ShadyDOM)==null?void 0:y.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(vRO)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var rPW=_.UI(['<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>']),jRG=_.T4P(rPW);jRG.setAttribute("style","display: none;");document.head.appendChild(jRG.content);var oR_;var NC_;var hrP;var xOM;_.T4({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[VF],configure:function(I){var y=I.node,D=y.getBoundingClientRect().height;return this._effect=new KeyframeEffect(y,[{height:D/2+"px"},{height:D+"px"}],this.timingFromConfig(I))}});
_.T4({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[VF],configure:function(I){var y=I.node,D=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:D/2+"px"},{width:D+"px"}],this.timingFromConfig(I))}});
_.T4({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[VF],configure:function(I){var y=I.node,D=y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(y,[{width:D+"px"},{width:D-D/20+"px"}],this.timingFromConfig(I))}});
_.T4({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[VF],configure:function(I){var y=I.node,D=y.getBoundingClientRect().height;this.setPrefixedProperty(y,"transformOrigin","0 0");return this._effect=new KeyframeEffect(y,[{height:D+"px",transform:"translateY(0)"},{height:D/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(I))}});var U2={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},lwG=function(){};
_.L=lwG.prototype;_.L.registered=function(){};
_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L._focusBlurHandler=function(){};
_.L._changedControlState=function(){};
_.L._setFocused=function(){};
lwG=_.T4({_template:function(){if(xOM!==void 0)return xOM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;hrP===void 0&&(hrP=document.createElement("template"));var F=hrP;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return xOM=I},
is:"tp-yt-paper-menu-button",behaviors:[_.CP,_.BZ],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:U2.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:U2.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:U2.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 I=_.Bx(this.$.content).getDistributedNodes(),y=0,D=I.length;y<D;y++)if(I[y].nodeType===Node.ELEMENT_NODE)return I[y]},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(I,y){I?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):y!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(I){_.BZ._disabledChanged.apply(this,arguments);I&&this.opened&&this.close()},
__onIronOverlayCanceled:function(I){var y=this.$.trigger;_.Bx(I.detail).path.indexOf(y)>-1&&I.preventDefault()}});
Object.keys(U2).forEach(function(I){lwG[I]=U2[I]});var u6M=_.AK.IronButtonState,q5R=(0,_.Ht)(HTMLElement);
_.T4({_template:function(){if(NC_!==void 0)return NC_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;oR_===void 0&&(oR_=document.createElement("template"));var F=oR_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return NC_=I},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[u6M,_.BZ,Kh,_.$F,_.eQ],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(I){var y=(0,_.sN)(this);y.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:I});y.shadowRoot.appendChild(I);return q5R.prototype._attachDom.call(this,I)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var I=this.contentElement;I&&I.selectedItem&&this._setSelectedItem(I.selectedItem)},
get contentElement(){for(var I=_.Bx(this.$.content).getDistributedNodes(),y=0,D=I.length;y<D;y++)if(I[y].nodeType===Node.ELEMENT_NODE)return I[y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(I){this._setSelectedItem(I.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(I){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)===this&&this.open()},
_selectedItemChanged:function(I){var y="";I?y=I.label||I.getAttribute("label")||I.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(I,y){return y?y:I?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var I=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",I)},
_computeLabelClass:function(I,y,D){var F="label";if(I)D&&(F+=" label-is-hidden");else if(D||y)F+=" label-is-floating";return F},
_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 ERM;var GIe;_.T4({is:"tp-yt-paper-icon-button",_template:function(){if(GIe!==void 0)return GIe;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;ERM===void 0&&(ERM=document.createElement("template"));var F=ERM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return GIe=I},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.DOz],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(I,y){var D=this.getAttribute("aria-label");D&&y!=D||this.setAttribute("aria-label",I)}});var X2c;var QRn;_.rb=[C0u,_.BZ,{hostAttributes:{role:"option",tabindex:"0"}}];_.T4({_template:function(){if(QRn!==void 0)return QRn;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;X2c===void 0&&(X2c=document.createElement("template"));var F=X2c;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return QRn=I},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.rb]});var Y5G;var fwg;var nR_={attached:function(){this.fire("addon-attached")},
update:function(){}};var p2g=1,mO_=1,Mef=1,zrW=[_.BZ,_.CP,{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();!G0&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(I,y){I?I=I+" "+y:I=y;return I},
_onAddonAttached:function(I){I=_.Bx(I).rootTarget;if(I.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,I.id);else{var y="paper-input-add-on-"+mO_++;I.id=y;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,y)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(I){_.BZ._focusBlurHandler.call(this,I);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var I=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",I);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(I){try{var y=this.inputElement.selectionStart;this.value=I;this.inputElement.selectionStart=y;this.inputElement.selectionEnd=y}catch(D){this.value=I}},
_computeAlwaysFloatLabel:function(I,y){return y||I},
_updateAriaLabelledBy:function(){var I=_.Bx(this.root).querySelector("label");if(I){if(I.id)var y=I.id;else y="paper-input-label-"+p2g++,I.id=y;this._ariaLabelledBy=y}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Mef++)},
_onChange:function(I){this.shadowRoot&&this.fire(I.type,{sourceEvent:I},{node:this,bubbles:I.bubbles,cancelable:I.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var I=document.activeElement;I instanceof HTMLElement&&I!==document.body&&I!==document.documentElement||this._focusableElement.focus()}}}];var kI_;var dOg;_.T4({_template:function(){if(dOg!==void 0)return dOg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;kI_===void 0&&(kI_=document.createElement("template"));var F=kI_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return dOg=I},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[nR_],properties:{_charCounterStr:{type:String,value:"0"}},update:function(I){if(I.inputElement){I.value=I.value||"";var y=I.value.toString().length.toString();I.inputElement.hasAttribute("maxlength")&&(y+="/"+I.inputElement.getAttribute("maxlength"));this._charCounterStr=y}}});var awM;var cPa;_.T4({_template:function(){if(cPa!==void 0)return cPa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;awM===void 0&&(awM=document.createElement("template"));var F=awM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return cPa=I},
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 Wu(this.attrForValue)},get _inputElement(){return _.Bx(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(I){this._addons||(this._addons=[]);I=I.target;this._addons.indexOf(I)===-1&&(this._addons.push(I),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(I){this._handleValueAndAutoValidate(I.target)},
_onValueChanged:function(I){var y=I.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,y.value===void 0||y.value===""))return;this._handleValueAndAutoValidate(I.target)},
_handleValue:function(I){var y=this._inputElementValue;y||y===0||I.type==="number"&&!I.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:I,value:y,invalid:this.invalid})},
_handleValueAndAutoValidate:function(I){this.autoValidate&&I&&(this.invalid=!(I.validate?I.validate(this._inputElementValue):I.checkValidity()));this._handleValue(I)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(I){if(this._addons)for(var y,D=0;y=this._addons[D];D++)y.update(I)},
_computeInputContentClass:function(I,y,D,F,R){var O="input-content";I?(R&&(O+=" label-is-hidden"),F&&!this.noUnfloatedLabelError&&(O+=" is-invalid")):(I=this.querySelector("label"),y||R?(O+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",F?O+=" is-invalid":D&&(O+=" label-is-highlighted")):(I&&(this.$.labelAndInputContainer.style.position="relative"),F&&!this.noUnfloatedLabelError&&(O+=" is-invalid")));D&&(O+=" focused");return O},
_computeUnderlineClass:function(I,y){var D="underline";y?D+=" is-invalid":I&&(D+=" is-highlighted");return D},
_computeAddOnContentClass:function(I,y){var D="add-on-content";y?D+=" is-invalid":I&&(D+=" is-highlighted");return D}});var WWc;var Cb_;_.T4({_template:function(){if(Cb_!==void 0)return Cb_;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;WWc===void 0&&(WWc=document.createElement("template"));var F=WWc;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return Cb_=I},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[nR_],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(I){this._setInvalid(I.invalid)}});_.T4({is:"tp-yt-paper-input",_template:function(){if(fwg!==void 0)return fwg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Y5G===void 0&&(Y5G=document.createElement("template"));var F=Y5G;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return fwg=I},
behaviors:[zrW,_.$F],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&&
this.$.container._handleValueAndAutoValidate(this.inputElement)}});var BCR;var iAO;_.T4({_template:function(){if(iAO!==void 0)return iAO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=
I.content,D=y.insertBefore;BCR===void 0&&(BCR=document.createElement("template"));var F=BCR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return iAO=I},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.rb]});var APP;var $OG;_.T4({_template:function(){if($OG!==void 0)return $OG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;APP===void 0&&(APP=document.createElement("template"));var F=APP;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return $OG=I},
is:"tp-yt-paper-item-body"});var bAe;var HA_;var erR=function(){};
_.L=erR.prototype;_.L.indexOf=function(){};
_.L.selectPrevious=function(){};
_.L.selectNext=function(){};
_.L.selectIndex=function(){};
_.L.forceSynchronousItemUpdate=function(){};
_.L._checkFallback=function(){};
_.L._addListener=function(){};
_.L._removeListener=function(){};
_.L._activateEventChanged=function(){};
_.L._updateItems=function(){};
_.L._selectSelected=function(){};
_.L._filterItem=function(){};
_.L._valueToItem=function(){};
_.L._valueToIndex=function(){};
_.L._indexToValue=function(){};
_.L._valueForItem=function(){};
_.L._observeItems=function(){};
_.L._itemActivate=function(){};
_.L.multiChanged=function(){};
_.L._updateAttrForSelected=function(){};
_.L._updateSelected=function(){};
_.L._selectMulti=function(){};
_.L._selectionChange=function(){};
_.L._toggleSelected=function(){};
_.L._valuesToItems=function(){};
_.L.registered=function(){};
_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L.select=function(){};
_.L._resetTabindices=function(){};
_.L._updateMultiselectable=function(){};
_.L._focusWithKeyboardEvent=function(){};
_.L._clearSearchText=function(){};
_.L._focusPrevious=function(){};
_.L._focusNext=function(){};
_.L._applySelection=function(){};
_.L._focusedItemChanged=function(){};
_.L._onIronItemsChanged=function(){};
_.L._onShiftTabDown=function(){};
_.L._onFocus=function(){};
_.L._onUpKey=function(){};
_.L._onDownKey=function(){};
_.L._onEscKey=function(){};
_.L._onKeydown=function(){};
_.L._activateHandler=function(){};
_.L._disabledChanged=function(){};
_.L._setSelectedItem=function(){};
_.L._setItems=function(){};
_.L._setSelectedItems=function(){};
_.L._setFocusedItem=function(){};
erR=_.T4({_template:function(){if(HA_!==void 0)return HA_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;bAe===void 0&&(bAe=document.createElement("template"));var F=bAe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return HA_=I},
is:"tp-yt-paper-listbox",behaviors:[epG],hostAttributes:{role:"listbox"}});var TCc;var sRf;var VeO={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(I,y){return[I||y?"active":"",y?"cooldown":""].join(" ")},
__activeChanged:function(I,y){this.__setAriaHidden(!I);this.__coolingDown=!I&&y},
__altChanged:function(I){this.setAttribute("aria-label",I||"loading")},
__setAriaHidden:function(I){I?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.T4({_template:function(){if(sRf!==void 0)return sRf;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;TCc===void 0&&(TCc=document.createElement("template"));var F=TCc;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return sRf=I},
is:"tp-yt-paper-spinner",behaviors:[VeO]});var ZAW;var gRa;_.T4({_template:function(){if(gRa!==void 0)return gRa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;ZAW===void 0&&(ZAW=document.createElement("template"));var F=ZAW;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return gRa=I},
is:"tp-yt-paper-spinner-lite",behaviors:[VeO]});var I1M;var yda;_.T4({_template:function(){if(yda!==void 0)return yda;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;I1M===void 0&&(I1M=document.createElement("template"));var F=I1M;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return yda=I},
is:"tp-yt-paper-tab",behaviors:[_.BZ,_.AK.IronButtonState,Kh],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 I=_.Bx(this).parentNode;return!!I&&!!I.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(I){if(this.link){var y=this.queryEffectiveChildren("a");y&&I.target!==y&&y.click()}}});var D2G;var Fqn;var Rda=_.UI(['<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>']),O9g=_.T4P(Rda);document.head.appendChild(O9g.content);_.T4({_template:function(){if(Fqn!==void 0)return Fqn;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;D2G===void 0&&(D2G=document.createElement("template"));var F=D2G;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return Fqn=I},
is:"tp-yt-paper-tabs",behaviors:[_.sD,_.szM],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(I){_.Bx(this).querySelectorAll("tp-yt-paper-tab").forEach(I?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(I){I.setAttribute("noink","")},
_removeNoinkAttribute:function(I){I.removeAttribute("noink")},
_computeScrollButtonClass:function(I,y,D,F){return!y||D?"hidden":I?F?"hidden":"not-visible":""},
_computeTabsContentClass:function(I,y){var D="tabs-content";I&&(D+=" scrollable");if(!I||y)D+=" fit-container";return D},
_computeSelectionBarClass:function(I,y){var D="selection-bar";I?D+=" hidden":y&&(D+=" align-bottom");return D},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(I){return""+I},
_onIronSelect:function(I){this._tabChanged(I.detail.item,this._previousTab);this._previousTab=I.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();_.T5._activateHandler.apply(this,arguments)},
_scheduleActivation:function(I,y){this._pendingActivationItem=I;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,y)},
_delayedActivationHandler:function(){var I=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;I.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(I){I.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(I,y){this.scrollable&&this._affectScroll(y&&-y.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(I){this.$.tabsContainer.scrollLeft+=I;I=this.$.tabsContainer.scrollLeft;this._leftHidden=I===0||this.hideScrollButtons;this._rightHidden=I===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(I,y){if(I){var D=this.$.tabsContent.getBoundingClientRect(),F=D.width,R=I.getBoundingClientRect();D=R.left-D.left;this._pos={width:this._calcPercent(R.width,F),left:this._calcPercent(D,F)};if(this.noSlide||y==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var O=y.getBoundingClientRect();y=this.items.indexOf(y);I=this.items.indexOf(I);this.$.selectionBar.classList.add("expand");
I=y<I;this._isRTL&&(I=!I);I?this._positionBar(this._calcPercent(R.left+R.width-O.left,F)-5,this._left):this._positionBar(this._calcPercent(O.left+O.width-R.left,F)-5,this._calcPercent(D,F)+5);this.scrollable&&this._scrollToSelectedIfNeeded(R.width,D)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(I,y){y-=this.$.tabsContainer.scrollLeft;y<0?this.$.tabsContainer.scrollLeft+=y:(y+=I-this.$.tabsContainer.offsetWidth,y>0&&(this.$.tabsContainer.scrollLeft+=y))},
_calcPercent:function(I,y){return 100*I/y},
_positionBar:function(I,y){I=I||0;y=y||0;this._width=I;this._left=y;this.transform("translateX("+y+"%) scaleX("+I/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var I=this.$.selectionBar.classList;I.contains("expand")?(I.remove("expand"),I.add("contract"),this._positionBar(this._pos.width,this._pos.left)):I.contains("contract")&&I.remove("contract")}});var Lqe;var Jda;_.T4({_template:function(){if(Jda!==void 0)return Jda;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Lqe===void 0&&(Lqe=document.createElement("template"));var F=Lqe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return Jda=I},
is:"tp-yt-paper-textarea",behaviors:[zrW,_.$F],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(I){this.$.input.textarea.selectionStart=I},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(I){this.$.input.textarea.selectionEnd=I},_ariaLabelledByChanged:function(I){this._focusableElement.setAttribute("aria-labelledby",I)},
_ariaDescribedByChanged:function(I){this._focusableElement.setAttribute("aria-describedby",I)},
get _focusableElement(){return this.inputElement.textarea}});var wvW;var vrM;/*

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 S7g=function(){};
_.L=S7g.prototype;_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L._tapHandler=function(){};
_.L._focusChanged=function(){};
_.L._detectKeyboardFocus=function(){};
_.L._userActivate=function(){};
_.L._upHandler=function(){};
_.L._spaceKeyDownHandler=function(){};
_.L._spaceKeyUpHandler=function(){};
_.L._asyncClick=function(){};
_.L._pressedChanged=function(){};
_.L._ariaActiveAttributeChanged=function(){};
_.L._activeChanged=function(){};
_.L._controlStateChanged=function(){};
_.L._changedButtonState=function(){};
_.L._focusBlurHandler=function(){};
_.L._disabledChanged=function(){};
_.L._changedControlState=function(){};
_.L._downHandler=function(){};
_.L.ensureRipple=function(){};
_.L.getRipple=function(){};
_.L.hasRipple=function(){};
_.L._noinkChanged=function(){};
_.L._focusedChanged=function(){};
_.L.registered=function(){};
_.L._invalidChanged=function(){};
_.L.hasValidator=function(){};
_.L.validate=function(){};
_.L._getValidity=function(){};
_.L._requiredChanged=function(){};
_.L._valueChanged=function(){};
_.L._checkedChanged=function(){};
_.L._buttonStateChanged=function(){};
_.L._setPressed=function(){};
_.L._setPointerDown=function(){};
_.L._setReceivedFocusFromKeyboard=function(){};
_.L._setFocused=function(){};
S7g=_.T4({is:"tp-yt-paper-toggle-button",_template:function(){if(vrM!==void 0)return vrM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;wvW===void 0&&(wvW=document.createElement("template"));var F=wvW;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return vrM=I},
behaviors:[_.FWG],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");_.YC(this,function(){_.KZ(this,"pan-y")})},
_ontrack:function(I){I=I.detail;I.state==="start"?this._trackStart(I):I.state==="track"?this._trackMove(I):I.state==="end"&&this._trackEnd(I)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(I){I=I.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+I:I)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+I:I));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 I=Kh._createRipple();I.id="ink";I.setAttribute("recenters","");I.classList.add("circle","toggle-ink");return I}});var tUW;var PdG;_.T4({_template:function(){if(PdG!==void 0)return PdG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;tUW===void 0&&(tUW=document.createElement("template"));var F=tUW;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return PdG=I},
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 I=_.Bx(this).parentNode,y=_.Bx(this).getOwnerRoot(),D;this.for?D=_.Bx(y).querySelector("#"+this.for):D=I.nodeType==Node.DOCUMENT_FRAGMENT_NODE?y.host:I;return D},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(I){I==="entry"?this.show():I==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Bx(this).textContent.trim()===""){for(var I=!0,y=_.Bx(this).getEffectiveChildNodes(),D=0;D<y.length;D++)if(y[D].textContent.trim()!==""){I=!1;break}if(I)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 I=this.offset;this.marginTop!=14&&this.offset==14&&(I=this.marginTop);var y=this.offsetParent.getBoundingClientRect(),D=this._target.getBoundingClientRect(),F=this.getBoundingClientRect(),R=(D.width-F.width)/2,O=(D.height-F.height)/2,w=D.left-y.left,v=D.top-y.top;switch(this.position){case "top":var P=w+R;var K=v-F.height-I;break;case "bottom":P=w+R;K=v+D.height+I;break;case "left":P=w-F.width-I;K=v+O;break;case "right":P=w+D.width+
I,K=v+O}this.fitToVisibleBounds?(y.left+P+F.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,P)+"px",this.style.right="auto"),y.top+K+F.height>window.innerHeight?(this.style.bottom=y.height+"px",this.style.top="auto"):(this.style.top=Math.max(-y.top,K)+"px",this.style.bottom="auto")):(this.style.left=P+"px",this.style.top=K+"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(I){I!==500&&this.updateStyles({"--paper-tooltip-delay-in":I+"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(I){if(I==="entry"&&this.animationEntry!=="")return this.animationEntry;if(I==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[I]&&typeof this.animationConfig[I][0].name==="string"){if(this.animationConfig[I][0].timing&&this.animationConfig[I][0].timing.delay&&this.animationConfig[I][0].timing.delay!==0){var y=this.animationConfig[I][0].timing.delay;I==="entry"?this.updateStyles({"--paper-tooltip-delay-in":y+"ms"}):I==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":y+
"ms"})}return this.animationConfig[I][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 Kqc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Kqc,_.KS);var U2z=_.Xj(Kqc,[0,_.Em]);var jJ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(jJ,_.KS);var rdc=[3,4],jaR=[5,6];var orc=[0,rdc,jaR,_.X6,-1,_.l7,_.Q1,-1,I0f,yV_];var NnM=_.Xj(jJ,orc),hdR=_.Ys(orc);var x2O=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(x2O,_.KS);var l1P=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(l1P,_.KS);var uIW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(uIW,_.KS);var q7a=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(q7a,_.KS);var ErM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ErM,_.KS);var o7=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(o7,_.KS);o7.prototype.getSource=function(){return _.sI(this,1)};
o7.prototype.getMessage=function(){return _.Tp(this,4)};
o7.prototype.getData=function(){return _.kk(this,ErM,8)};var GM_=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(GM_,_.KS);var NH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(NH,_.KS);var hw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(hw,_.KS);var x6=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(x6,_.KS);x6.prototype.getUrl=function(){return _.Tp(this,1)};
x6.prototype.setUrl=function(I){return _.BB(this,1,I)};
x6.prototype.hasUrl=function(){return _.fa(_.du(this,1))!=null};var Xvn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Xvn,_.KS);var Qau=[3];var Y7z=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Y7z,_.KS);var lE=function(I){var y=new Y7z;return _.d1(y,2,I)};
Y7z.prototype.getLanguage=function(){return Z$(this,4,uE)};
var f1M=function(I){var y=lE(1);return _.Mg(y,6,uE,I)},uE=[3,
4,5,6];var nre=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(nre,_.KS);var qH=function(I){var y=new nre;return _.d1(y,1,I)},E2=function(I,y){return _.Mg(I,2,pvz,y)},pvz=[2,
3,4,5];var m2z=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(m2z,_.KS);var Gh=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Gh,_.KS);var MUz=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(MUz,_.KS);var zdf=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(zdf,_.KS);var kMn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(kMn,_.KS);var d2W=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(d2W,_.KS);var a1f=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(a1f,_.KS);var cdu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(cdu,_.KS);var Xl=function(I){return _.kk(I,hw,5)};var Wqu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Wqu,_.KS);Wqu.prototype.getValue=function(){return Hn(this,1)};var Cdg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Cdg,_.KS);var Ql=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Ql,_.KS);Ql.prototype.getMetadata=function(){return _.gu(this,d2W,7,Y6)};
Ql.prototype.hasMetadata=function(){return _.Wn(this,d2W,7,Y6)};
var BnP=_.wdC(Ql),Y6=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var fh=function(I){this.JSC$12448_name_=I;this.files_=[];this.directories_=[];this.directoryMap_={}};
fh.prototype.getName=function(){return this.JSC$12448_name_};var ph=function(I,y){this.callback_=y;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new fh("");i9u(this,I,this.rootDirectory_);nh(this)},i9u=function(I,y,D){for(var F=0;F<y.length;F++){var R=y[F];
R.isFile?(I.fileOps_++,R.file((0,_.iD)(I.handleFileSuccess_,I,D),(0,_.iD)(I.handleFileError_,I))):I.unscannedDirectories_.push(new Adf(R,D))}},nh=function(I){if(I.unscannedDirectories_.length>0&&I.directoryOps_<5&&!I.hasError_){I.directoryOps_++;
var y=I.unscannedDirectories_.shift(),D=y.entry,F=new fh(D.name);y=y.parent;y.directoryMap_[F.getName()]=F;y.directories_.push(F);D=D.createReader();D.readEntries((0,_.iD)(I.handleDirectorySuccess_,I,D,F),(0,_.iD)(I.handleDirectoryError_,I))}I.directoryOps_!=0||I.fileOps_!=0||I.unscannedDirectories_.length!=0&&!I.hasError_||I.callback_(I.rootDirectory_.files_,I.rootDirectory_.directories_,I.hasError_)};
ph.prototype.handleDirectorySuccess_=function(I,y,D){i9u(this,D,y);D.length==0?(this.directoryOps_--,nh(this)):I.readEntries((0,_.iD)(this.handleDirectorySuccess_,this,I,y),(0,_.iD)(this.handleDirectoryError_,this))};
ph.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;nh(this)};
ph.prototype.handleFileSuccess_=function(I,y){I.files_.push(y);this.fileOps_--;nh(this)};
ph.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;nh(this)};
var Adf=function(I,y){this.entry=I;this.parent=y};var mg=function(I){_.Zw.call(this);_.bV(I,"drop",this.onObjectsDropped_,!1,this);_.bV(I,"dragenter",this.onFilesDragged_,!1,this);_.bV(I,"dragover",this.onFilesDragged_,!1,this);_.bV(I,"dragleave",this.onDragLeave_,!1,this);_.bV(I,"dragend",this.onDragLeave_,!1,this)};
_.EI(mg,_.Zw);var $2M=function(I,y){_.uS.call(this,"f");this.files=I;this.directories=y};
_.EI($2M,_.uS);var b9P=function(){_.uS.call(this,"h")};
_.EI(b9P,_.uS);var H9e=function(){_.uS.call(this,"i")};
_.EI(H9e,_.uS);var edM=function(){_.uS.call(this,"g")};
_.EI(edM,_.uS);mg.prototype.onObjectsDropped_=function(I){var y=this;I.preventDefault();var D=I.event_.dataTransfer;if((I=D&&D.items)&&I.length>0&&I[0].webkitGetAsEntry){D=[];for(var F=[],R=0;R<I.length;R++){var O=I[R].webkitGetAsEntry();O?D.push(O):F.push(I[R])}new ph(D,function(w,v,P){P?y.dispatchEvent(new edM("Error occurred while reading from the file system.")):y.dispatchEvent(new $2M(w,v,F))})}else(I=D&&D.files)&&this.dispatchEvent(new $2M(Array.from(I),[]))};
mg.prototype.onFilesDragged_=function(I){I.type==="dragenter"&&this.dispatchEvent(new b9P);I.preventDefault()};
mg.prototype.onDragLeave_=function(){this.dispatchEvent(new H9e)};var Tnz=function(I,y){this.JSC$12471_name_=I;this.inputElement_=y};
Tnz.prototype.getName=function(){return this.JSC$12471_name_};
Tnz.prototype.getInputElement=function(){return this.inputElement_};var MH=function(I,y,D){y=y===void 0?"single_file":y;D=D===void 0?[]:D;_.Zw.call(this);this.overlayTarget_=I;this.parentOverlay_=I!=null?I.parentNode:_.kW("scotty-overlay-parent");this.selectorType_=y;this.acceptTypes_=D;this.overlay_=saM(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.E(MH,_.Zw);
var saM=function(I,y,D,F){var R=document.createElement("input");R.setAttribute("type","file");R.setAttribute("name","Filedata");_.bV(R,"change",I.onFilesSelected_,!1,I);D==="multiple_file"&&(R.multiple="true");D==="single_directory"&&(R.webkitdirectory="true");F.length>0&&R.setAttribute("accept",F.join(","));R.style.position="absolute";R.style.overflow="hidden";R.style.height="0px";R.style.width="0px";R.style.opacity="0";R.setAttribute("aria-hidden","true");R.setAttribute("tabIndex",-1);if(I.overlayTarget_!=
null)return R.style.height=y.offsetHeight+"px",R.style.width=y.offsetWidth+"px",I.parentOverlay_&&(I.parentOverlay_.style.position="relative"),_.LA(R,y),tP(R,new _.XO(y.offsetLeft,y.offsetTop)),R;I.parentOverlay_.appendChild(R);return R};
MH.prototype.click=function(){this.overlay_.click()};
MH.prototype.onFilesSelected_=function(I){a:{try{var y=(new XMLHttpRequest).upload!==void 0;break a}catch(K){}y=!1}if(y){var D;I=Array.from((D=I.target.files)!=null?D:[]);D=[];if(this.selectorType_==="single_directory"&&(_.cr||Qx||_.Wr)){D=new fh("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(y=0;y<I.length;y++)for(var F=I[y],R=F.webkitRelativePath.split("/"),O=D,w=0;w<R.length;w++){var v=R[w];if(w==R.length-1){v!="."&&O.files_.push(F);break}var P=O.directoryMap_[v];P==void 0&&(v=
P=new fh(v),O.directoryMap_[v.getName()]=v,O.directories_.push(v));O=P}D=D.directories_}this.dispatchEvent(new VUM(I,D,null))}else I=I.target.value,I.match(/^c:\\fakepath\\/i)&&(I=I.substring(12)),this.dispatchEvent(new VUM([],[],new Tnz(I,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=saM(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var VUM=function(I,y){_.uS.call(this,"j");this.files=I;this.directories=y};
_.E(VUM,_.uS);var Z9M=function(I){this.uploadUrl_=I};var gre=function(){_.Zw.call(this)};
_.EI(gre,_.Zw);var zh=function(I){_.uS.call(this,I)};
_.EI(zh,_.uS);var k6=function(I){_.uS.call(this,I)};
_.EI(k6,_.uS);var Imz=function(I,y,D,F,R){_.Zw.call(this);D=document.createElement("form");D.setAttribute("method",y);D.setAttribute("enctype","multipart/form-data");D.setAttribute("encoding","multipart/form-data");y=document.createElement("input");y.setAttribute("type","hidden");y.setAttribute("name","metadata");y.setAttribute("value",R);D.appendChild(y);D.appendChild(F);this.JSC$12488_form_=D;I=new _.Pg(I);_.hu(I,"upload_protocol","multipart");this.JSC$12488_url_=I.toString();this.JSC$12488_request_=new l8;this.state_=
"Ready";this.JSC$12488_errorDescription_=null;this.JSC$12488_eventHandler_=new _.H5(this);_.pW(this,this.JSC$12488_eventHandler_);this.JSC$12488_eventHandler_.listen(this.JSC$12488_request_,"success",this.onTransferSuccess_);this.JSC$12488_eventHandler_.listen(this.JSC$12488_request_,"error",this.onTransferError_)};
_.E(Imz,gre);_.L=Imz.prototype;_.L.run=function(){this.state_="Transferring";var I=this.JSC$12488_request_,y=this.JSC$12488_form_;if(I.JSC$11755_active_)throw Error("ue");var D=new _.Pg(this.JSC$12488_url_||y.action);I.JSC$11755_form_=y;y=I.JSC$11755_form_;D=_.IB(D.toString());D!==void 0&&(y.action=D);SAR(I)};
_.L.getResponseCode=function(){return null};
_.L.getResponseText=function(){return this.JSC$12488_request_&&this.JSC$12488_request_.getResponseText()||null};
_.L.JSC$30394_getErrorDescription=function(){return this.JSC$12488_errorDescription_};
_.L.cancel=function(){this.JSC$12488_request_&&this.JSC$12488_request_.abort();this.state_="Cancelled";this.dispatchEvent(new zh("o"))};
_.L.pause=function(){};
_.L.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new zh("l"))};
_.L.onTransferError_=function(){this.JSC$12488_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new zh("n"))};var db=function(){_.L9.call(this)};
_.E(db,_.L9);db.prototype.createXhr=function(){var I=_.L9.prototype.createXhr.call(this);I.upload&&(I.upload.onprogress=(0,_.iD)(this.onProgress_,this));return I};
db.prototype.onProgress_=function(I){this.dispatchEvent(I)};var yrW=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},FSP=function(I,y){var D=I.attempt_+1;
if(I.maxAttempts_>0&&D>I.maxAttempts_)return!1;D==0?y():I.delayCallId_=FI(function(){I.delayCallId_=null;y()},DjP(I),I);
I.attempt_=D;return!0};
yrW.prototype.reset=function(){this.delayCallId_&&_.Ft.clearTimeout(this.delayCallId_);this.attempt_=-1};
var DjP=function(I){var y=250*Math.pow(2,I.attempt_);I.maxDelayMs_>=0&&(y=Math.min(y,I.maxDelayMs_));return y};var zlq=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var a7=function(){_.Zw.call(this);this.JSC$12498_request_=this.state_=null;this.JSC$12498_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12498_bytesTransferred_=0;this.retryIterator_=new yrW;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12498_errorDescription_=null;this.JSC$12498_eventHandler_=new _.H5(this);_.pW(this,this.JSC$12498_eventHandler_);this.JSC$12498_url_=this.blob_=null;this.JSC$12498_method_=void 0;this.chunkSize_=this.JSC$12498_metadata_=
this.JSC$12498_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12498_responseText_=this.JSC$12498_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.EI(a7,gre);_.L=a7.prototype;_.L.run=function(){cc(this)};
_.L.getResponseCode=function(){return this.JSC$12498_responseCode_};
_.L.getResponseText=function(){return this.JSC$12498_responseText_};
_.L.JSC$30394_getErrorDescription=function(){return this.JSC$12498_errorDescription_};
_.L.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12498_eventHandler_.removeAll();this.JSC$12498_request_&&this.JSC$12498_request_.abort();this.retryIterator_.reset();var I=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(I==="Upload"||I==="Query")I=new db,I.JSC$10072_withCredentials_=this.JSC$12498_withCredentials_,I.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12498_bytesTransferred_=
0;this.dispatchEvent(new zh("o"))}};
_.L.pause=function(){this.pauseRequested_=!0};
var cc=function(I){var y=I.state_;I.pauseRequested_?(I.pauseRequested_=!1,I.stateAfterUnpausing_=y,I.state_="Paused"):FSP(I.retryIterator_,function(){switch(I.state_){case "Start":I.JSC$12498_request_=new db;var D=_.e$.clone(I.JSC$12498_headers_);I.blob_.size!=null&&(D["Content-Length"]=I.blob_.size);D=k5H(D);D["X-Goog-Upload-Protocol"]="resumable";D["X-Goog-Upload-Command"]="start";I.JSC$12498_eventHandler_.removeAll();I.JSC$12498_eventHandler_.listen(I.JSC$12498_request_,"complete",I.onStartComplete_);
I.JSC$12498_request_.JSC$10072_withCredentials_=I.JSC$12498_withCredentials_;I.JSC$12498_request_.send(I.JSC$12498_url_,I.JSC$12498_method_,I.JSC$12498_metadata_,D);I.lastCommandResponseCode_=null;I.dispatchEvent(new k6("q"));break;case "Upload":D=I.transferHandle_.uploadUrl_;var F=I.blob_.size;if(eLW()){var R=I.chunkSize_;var O=I.offset_+R>=F;F=HDW(I.blob_,I.offset_,O?F:I.offset_+R)}else I.offset_=0,F=I.blob_,O=!0;I.JSC$12498_request_=new db;I.JSC$12498_request_.JSC$10072_withCredentials_=I.JSC$12498_withCredentials_;
I.JSC$12498_eventHandler_.removeAll();I.JSC$12498_eventHandler_.listen(I.JSC$12498_request_,"progress",I.onUploadProgress_);R=(0,_.iD)(I.JSC$12500_onUploadComplete_,I,I.offset_+F.size,O);I.JSC$12498_eventHandler_.listen(I.JSC$12498_request_,"complete",R);I.lastCommandResponseCode_=null;I.dispatchEvent(new k6("q"));O=Object.assign({},I.JSC$12498_headers_||{},{"X-Goog-Upload-Command":"upload"+(O?", finalize":""),"X-Goog-Upload-Offset":I.offset_});I.JSC$12498_request_.send(D,"POST",F,O);break;case "Query":I.JSC$12498_request_=
new db;I.JSC$12498_eventHandler_.removeAll();I.JSC$12498_eventHandler_.listen(I.JSC$12498_request_,"complete",I.onQueryComplete_);D=Object.assign({},I.JSC$12498_headers_||{},{"X-Goog-Upload-Command":"query"});I.JSC$12498_request_.send(I.transferHandle_.uploadUrl_,"POST","",D);I.lastCommandResponseCode_=null;I.dispatchEvent(new k6("q"));break;default:throw Error("mf");}})||Wc(I,"Transfer encountered too many consecutive failures.")},Wc=function(I,y){I.state_="Error";
I.JSC$12498_errorDescription_=y;I.dispatchEvent(new zh("n"))};
a7.prototype.onStartComplete_=function(I){var y=I.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new k6("r"));if(RPM(y))OHO(this,y);else if(LSR(y)){I=X5(I.target.getAllResponseHeaders());for(var D in I)_.Oq(D.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new zh("m"));D=AR(I,"X-Goog-Upload-URL");I=(I=AR(I,"X-Goog-Upload-Chunk-Granularity"))?parseInt(I,10):1;D===void 0||isNaN(I)||I<=0?Wc(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
I)*I,this.transferHandle_=new Z9M(D),this.dispatchEvent(new zh("p")),this.state_="Upload",this.retryIterator_.reset(),cc(this))}else cc(this)};
a7.prototype.onUploadProgress_=function(I){this.JSC$12498_bytesTransferred_=this.offset_+I.loaded;this.dispatchEvent(new zh("k"))};
a7.prototype.JSC$12500_onUploadComplete_=function(I,y,D){var F=this,R,O;return _.S(function(w){switch(w.nextAddress){case 1:R=D.target;F.lastCommandResponseCode_=R.getStatus();F.dispatchEvent(new k6("r"));if(JrO(R)||R.getStatus()==404)return F.JSC$12498_bytesTransferred_=I,OHO(F,R),w.return();if(LSR(R)){w.jumpTo(2);break}if(!(O=F.detectCorruptedBlobEnabled_)){w.jumpTo(3);break}return w.yield(wRn(F),4);case 4:O=w.yieldResult;case 3:if(O)return Wc(F,"Blob has been modified or corrupted."),w.return();
F.requireUploadRequestModification_=R.getStatus()==400;F.state_="Query";cc(F);return w.return();case 2:if(y)return Wc(F,"Got a non-final success response after issuing a finalize command."),w.return();F.JSC$12498_bytesTransferred_=I;F.offset_=I;F.retryIterator_.reset();cc(F);return w.return()}})};
a7.prototype.onQueryComplete_=function(I){var y=I.target;this.lastCommandResponseCode_=y.getStatus();this.dispatchEvent(new k6("r"));RPM(y)?(y.getStatus()===200&&(this.JSC$12498_bytesTransferred_=this.blob_.size),OHO(this,y)):LSR(y)?(I=X5(I.target.getAllResponseHeaders()),I=parseInt(AR(I,"X-Goog-Upload-Size-Received"),10),isNaN(I)?Wc(this,"Server did not respond with current offset."):I<this.offset_?Wc(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
I+"."):this.requireUploadRequestModification_&&this.offset_===I?Wc(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<I&&this.retryIterator_.reset(),this.offset_=this.JSC$12498_bytesTransferred_=I,this.state_="Upload",cc(this))):cc(this)};
var OHO=function(I,y){I.JSC$12498_responseCode_=y.getStatus();var D=X5(y.getAllResponseHeaders());dLL(D);I.JSC$12498_responseText_=y.getResponseText();I.state_="Response received";I.dispatchEvent(new zh("l"))},LSR=function(I){var y=I.getStatus();
I=X5(I.getAllResponseHeaders());I=AR(I,"X-Goog-Upload-Status");return y===200&&I==="active"},JrO=function(I){I=X5(I.getAllResponseHeaders());
return AR(I,"X-Goog-Upload-Status")==="final"},RPM=function(I){if(JrO(I))return!0;
I=I.getStatus();return I>=400&&I<500},wRn=function(I){var y;
return _.S(function(D){if(D.nextAddress==1){if(!I.blob_||I.originalBlobSize_<=0)return D.return(!1);if(I.blob_.size!==I.originalBlobSize_)return D.return(!0);_.nj(D,2);if(y=HDW(I.blob_,0,1)){var F=D.yield,R=new RO,O=uHn(R);R.reader_.readAsBinaryString(y);D=F.call(D,O,4)}else D=D.return(!0);return D}if(D.nextAddress!=2)return D.return(I.blob_.size!==I.originalBlobSize_);_.dj(D);return D.return(!0)})};var v_R=function(I,y,D,F,R,O){_.Zw.call(this);this.payload_=F;this.JSC$12501_url_=I;this.JSC$12501_method_=y;this.JSC$12501_headers_=D;this.JSC$12501_metadata_=R;this.encoding_=O||"binary";I=new _.T0;this.boundary_="uploader-"+jR()+"-"+I.JSC$11604_toIsoString();this.JSC$12501_responseText_=this.JSC$12501_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12501_errorDescription_=null;this.JSC$12501_eventHandler_=new _.H5(this);_.pW(this,this.JSC$12501_eventHandler_)};
_.E(v_R,gre);_.L=v_R.prototype;
_.L.run=function(){var I=_.e$.clone(this.JSC$12501_headers_);this.payload_.length!=null&&(I["Content-Length"]=this.payload_.length);I=k5H(I);I["X-Goog-Upload-Protocol"]="multipart";I["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new db;this.JSC$12501_eventHandler_.removeAll();this.JSC$12501_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12501_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12501_url_,this.JSC$12501_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12501_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",I)};
_.L.getResponseCode=function(){return this.JSC$12501_responseCode_};
_.L.getResponseText=function(){return this.JSC$12501_responseText_};
_.L.JSC$30394_getErrorDescription=function(){return this.JSC$12501_errorDescription_};
_.L.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12501_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new zh("o")))};
_.L.pause=function(){};
_.L.onTransferProgress_=function(){this.dispatchEvent(new zh("k"))};
_.L.onTransferComplete_=function(I){var y=I.target.getStatus();y===void 0||y===-1?(this.JSC$12501_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new zh("n"))):(this.JSC$12501_responseCode_=y,I=I.target,y=X5(I.getAllResponseHeaders()),dLL(y),this.JSC$12501_responseText_=I.getResponseText(),this.state_="Complete",this.dispatchEvent(new zh("l")))};_.SsG=function(I,y,D,F){F=F===void 0?!1:F;if(D instanceof Tnz)return new Imz(I,"POST",y,D.getInputElement(),"");if(typeof D==="string"||D instanceof String)return new v_R(I,"POST",y,D,"");var R=new a7(void 0);R.JSC$12498_url_=I;R.JSC$12498_method_="POST";R.JSC$12498_headers_=y;R.blob_=D;R.originalBlobSize_=D.size;R.JSC$12498_metadata_="";F&&(R.JSC$12498_withCredentials_=F);R.state_="Start";return R};var Ch=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Ch,_.KS);_.L=Ch.prototype;_.L.getEnableSsEngine=function(){return _.by(this,2)};
_.L.getEnableAwr=function(){return _.by(this,3)};
_.L.getAlohaAutoGaRollout=function(){return _.by(this,5)};
_.L.getEnableConfigurator=function(){return _.by(this,6)};
_.L.getEnableMweb=function(){return _.by(this,7)};
var Pke=function(){var I=tVn();return _.Hx(I,7,!0)};
Ch.prototype.getEnableCtlConsentCheckbox=function(){return _.by(this,8)};
Ch.prototype.getEnableIframe=function(){return _.by(this,9)};
var tVn=function(){var I=new Ch;I=_.Hx(I,5,!0);I=_.Hx(I,2,!0);I=_.Hx(I,4,!1);I=_.Hx(I,8,!0);return _.Hx(I,9,!0)};
Ch.prototype.getEnableScreenshotNudge=function(){return _.by(this,10)};
var KSR=function(){var I=Pke();return _.Hx(I,10,!0)};
Ch.prototype.getEnableWebStartupConfigEndpoint=function(){return _.by(this,11)};
Ch.prototype.getEnableJunkNudge=function(){return _.by(this,12)};
var DH5=function(){var I=KSR();return _.Hx(I,12,!0)};
_.L=Ch.prototype;_.L.getEnableConfiguratorLocale=function(){return _.by(this,13)};
_.L.getEnableTinyNoPointer=function(){return _.by(this,14)};
_.L.getEnableSupportSessionLogging=function(){return _.by(this,15)};
_.L.getEnableFileUploadForScreenshot=function(){return _.by(this,16)};
_.L.getEnableDirectDeflectionForSingleCategory=function(){return _.by(this,17)};
_.L.getEnableImageSanitization=function(){return _.by(this,18)};
_.L.getEnableAlohaBinarySplit=function(){return _.by(this,19)};
_.L.getEnableDbFeedbackIntents=function(){return _.by(this,20)};
_.L.getEnableMarkMandatoryFieldsWithRequired=function(){return _.by(this,21)};
_.L.getEnableFeedbackCategoryCustomUi=function(){return _.by(this,22)};
_.L.getEnableRealtimeCtl=function(){return _.by(this,23)};var ywJ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ywJ,_.KS);var aU4=[/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 W65="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 C8e=_.UI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),BtS=_.UI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var $i=function(){var I=Error.call(this,"Form is either loading or already opened");this.message=I.message;"stack"in I&&(this.stack=I.stack);this.name="DuplicateFormError"};
_.E($i,Error);var AKq,HPe,$Lo,elB;var Bc,UjO;
Bc=function(I,y,D){I.timeOfStartCall=(new Date).getTime();var F=D||_.Ft,R=F.document,O=I.nonce||_.vd(F.document);O&&!I.nonce&&(I.nonce=O);if(I.flow=="help"){var w=_.jF("document.location.href",F);!I.helpCenterContext&&w&&(I.helpCenterContext=w.substring(0,1200));w=!0;if(y&&JSON&&JSON.stringify){var v=JSON.stringify(y);(w=v.length<=1200)&&(I.psdJson=v)}w||(y={invalidPsd:!0})}y=[I,y,D];F.GOOGLE_FEEDBACK_START_ARGUMENTS=y;D=I.feedbackServerUri||"//www.google.com/tools/feedback";if(w=F.GOOGLE_FEEDBACK_START)w.apply(F,y);
else{F=D+"/load.js?";for(var P in I)y=I[P],y==null||_.b_(y)||(F+=encodeURIComponent(P)+"="+encodeURIComponent(y)+"&");I=CG(R).createElement("SCRIPT");O&&I.setAttribute("nonce",O);_.Uk(I,_.c$(F));R.body.appendChild(I)}};
UjO=function(I,y,D,F){var R,O;return _.S(function(w){R=D||_.Ft;var v=I.serverEnvironment==="DEV",P=D||_.Ft;P=I.nonce||_.vd(P.document);v={integrationKeys:{productId:I.productId,feedbackBucket:I.bucket,triggerId:I.triggerId},callbacks:{onClose:I.callback,onLoad:I.onLoadCallback},formContent:{locale:I.locale,disableScreenshot:I.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:I.abuseLink,additionalDataConsent:I.additionalDataConsent},initializationData:{isLocalServer:v,nonce:P,useNightlyRelease:v,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:I.feedbackServerUri,colorScheme:I.colorScheme},extraData:{productVersion:I.productVersion,authUser:I.authuser,configuratorId:I.configuratorId,customZIndex:I.customZIndex,tinyNoPointer:I.tinyNoPointer,
allowNonLoggedInFeedback:I.allowNonLoggedInFeedback,enableAnonymousFeedback:I.enableAnonymousFeedback}};y&&(P=new Map(Object.entries(y)),v.extraData.productSpecificData=P);O=v;return w.yield(ZPB(O,F,R),0)})};
_.rrG=function(I,y,D){try{if(I.flow==="help"){var F=I.helpCenterPath.replace(/^\//,"");_.wj(D||window,"https://support.google.com/"+F)}else I.flow==="submit"?Bc(I,y,D):Fge(I.productId,I.feedbackServerUri).then(function(R){R=_.kk(R,Ch,1);var O=!Ncn||(R==null?void 0:R.getEnableMweb()),w=!I.tinyNoPointer||(R==null?void 0:R.getEnableTinyNoPointer());!R||R.getAlohaAutoGaRollout()&&O&&w?UjO(I,y,D,R).catch(function(v){!v||v instanceof $i||Bc(I,y,D)}):Bc(I,y,D)},function(R){!R||R instanceof $i||Bc(I,y,D)})}catch(R){UjO(I,
y,D,null).catch(function(O){!O||O instanceof $i||Bc(I,y,D)})}};
_.fv("userfeedback.api.startFeedback",_.rrG);var RRq=/https?:\/\/\S+\.\S+/,Ohq=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Lgq=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var rF5=function(I){var y=I.split(""),D=[-263237435,15,y,function(F,R,O){var w=R.length;O.forEach(function(v,P,K){this.push(K[P]=R[(R.indexOf(v)-R.indexOf(this[P])+P+w--)%R.length])},F.split(""))},
function(F,R){F=(F%R.length+R.length)%R.length;R.splice(-F).reverse().forEach(function(O){R.unshift(O)})},
"response",function(){for(var F=64,R=[];++F-R.length-32;){switch(F){case 58:F-=14;case 91:case 92:case 93:continue;case 123:F=47;case 94:case 95:case 96:continue;case 46:F=95}R.push(String.fromCharCode(F))}return R},
null,12,1540023973,65941107,null,y,function(F,R){for(F=(F%R.length+R.length)%R.length;F--;)R.unshift(R.pop())},
695603893,function(F){for(var R=F.length;R;)F.push(F.splice(--R,1)[0])},
"'[;'[(",function(F,R){F.push(R)},
null,function(F,R,O,w,v){return R(O,w,v)},
"continuation",y,function(F,R){if(F.length!=0){R=(R%F.length+F.length)%F.length;var O=F[0];F[0]=F[R];F[R]=O}},
function(){for(var F=64,R=[];++F-R.length-32;){switch(F){case 91:F=44;continue;case 123:F=65;break;case 65:F-=18;continue;case 58:F=96;continue;case 46:F=95}R.push(String.fromCharCode(F))}return R},
'"),/]];'];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(F){return"aTlOUOubTO4AP____8P_"+I}return y.join("")};_.jcM=new _.lk("runAttestationCommand");var o_W=new _.lk("verifyCommand");_.W_=new _.lk("accessibilityContext");var NXW=new _.lk("accessibilityData");var hPg=new _.lk("profileCardCommand");var SjW=new _.lk("signInEndpoint");var voB=new _.lk("signOutEndpoint");var lmf;_.xjg=new _.lk("accountItemSectionRenderer");lmf=new _.lk("accountItemRenderer");_.uig=new _.lk("saveCommandToSessionStorageAction");var qsf=new _.lk("crossAccountChannelTransferEndpoint");var D9q=new _.lk("getAccountMenuEndpoint");_.Fv_=new _.lk("getAccountSwitcherEndpoint");var yEA=new _.lk("getAccountsListEndpoint");var E_f=new _.lk("getAccountsListInnertubeEndpoint");_.G9O=new _.lk("addToToastAction");var XRM=new _.lk("hideEnclosingAction");_.iE=new _.lk("replaceEnclosingAction");var Qca=new _.lk("buttonRefreshAction");var Ysn=new _.lk("adsControlFlowOpportunityReceivedCommand");var fmu=new _.lk("openAdAllowlistInstructionCommand");var n_g=new _.lk("videoMastheadAdPrimaryVideoRenderer");var pR_=new _.lk("displayAdRenderer");_.mj_=new _.lk("inFeedAdLayoutRenderer");var MVW=new _.lk("sequenceItemInPlayerAdLayoutRenderer");_.zPf=new _.lk("adSlotRenderer");var k9M=new _.lk("adAvatarViewModel");var djc=new _.lk("adBadgeViewModel");var amc=new _.lk("adButtonViewModel");var crW=new _.lk("adImageViewModel");var EtB=new _.lk("reelsAdCardButtonedViewModel");var WSe=new _.lk("reelsPlayerOverlayLayoutViewModel");var Cku=new _.lk("formDataDecoratorCommand");var BX_=new _.lk("updateConversationIdCommand");var iHM=new _.lk("showSchedulingPanelCommand");var Ara=new _.lk("backstageCommentsRenderer");var $jG=new _.lk("backstageImageRenderer");var bHM=new _.lk("backstagePostRenderer");var HHa=new _.lk("backstageZeroStateRenderer");var ePz=new _.lk("postRenderer");var TXn=new _.lk("sharedPostRenderer");var scg=new _.lk("createBackstagePostEndpoint");var VVW=new _.lk("getPostVideoPreviewEndpoint");var ZHa=new _.lk("updateBackstagePostEndpoint");var g_W=new _.lk("filterChipTransformCommand");var IBz=new _.lk("insertRichSectionCommand");var Hlo=new _.lk("talkToRecsDeselectCommand");var ygO=new _.lk("talkToRecsNextCommand");var blH=new _.lk("talkToRecsSelectCommand");var Dnn=new _.lk("talkToRecsUpdateTextCommand");_.kc=new _.lk("browseEndpoint");_.Fzc=new _.lk("confirmDialogEndpoint");var RtW=new _.lk("expandOnHoverCardRenderer");var O3n=new _.lk("lumiereShelfDetailsRenderer");var Lzz=new _.lk("revealBusinessEmailCommand");var JgO=new _.lk("validateChannelHandleCommand");var wta=new _.lk("channelCreationFormEndpoint");var v0R=new _.lk("aboutChannelViewModel");var S4e=new _.lk("channelThumbnailWithLinkRenderer");var tlR=new _.lk("channelCreationServiceEndpoint");var PMg=new _.lk("updateChannelPageSettingsEndpoint");var Aw=function(I){this.delegate=I},$6=function(){Aw.apply(this,arguments)};
_.E($6,Aw);_.mD.Object.defineProperties($6.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(I){this.delegate.entityMetadata=I}}});var Kze=function(){$6.apply(this,arguments)};
_.E(Kze,$6);Kze.prototype.getAssociations=function(){return[]};
Kze.prototype.getTypeName=function(){return"channelHandle"};var J7S=new _.lk("webThumbnailDetailsExtensionData");_.ZX=new _.lk("commandContext");var UnW=new _.lk("addVideoLinkAction");var rgf=new _.lk("banAuthorAction");var jZg=new _.lk("createCommentAction");var o0M=new _.lk("createCommentReplyAction");var NhR=new _.lk("createPollAction");var htM=new _.lk("hideIdentityChipAction");var xng=new _.lk("openUpdateCommentDialogAction");var lBc=new _.lk("pinCommentAction");var uoG=new _.lk("removeCommentAction");var q4c=new _.lk("unpinCommentAction");var bE=new _.lk("updateBackstagePollAction");var E0W=new _.lk("updateCommentVoteAction");var G0g=new _.lk("commentThreadRenderer");var Xtf=function(){$6.apply(this,arguments)};
_.E(Xtf,$6);Xtf.prototype.getAssociations=function(){return[]};
Xtf.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var QZW=function(){$6.apply(this,arguments)};
_.E(QZW,$6);QZW.prototype.getAssociations=function(){return[]};
QZW.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Y4e=new _.lk("commentDialogRenderer");var fBf=new _.lk("reloadCommentsCommand");var n0u=new _.lk("updateCommentsSettingsEndpoint");var ptP=new _.lk("commentViewModel");var mnW=new _.lk("triStateButtonViewModel");var MlW=new _.lk("voiceReplyContainerViewModel");_.Q_=new _.lk("commandExecutorCommand");var Zd=new _.lk("emoji");var ztu=new _.lk("updateCreatorChannelInnertubeCommand");_.k0g=new _.lk("appendContinuationItemsAction");_.dnM=new _.lk("changeEngagementPanelVisibilityAction");_.IP=new _.lk("continuationCommand");var aBM=new _.lk("hideReportedCommentAction");var cgW=new _.lk("listMutationCommand");_.Hc=new _.lk("openPopupAction");var Wza=new _.lk("persistSubscriptionsDisplayPreferencesCommand");var etP;_.CMu=new _.lk("playlistRemoveVideosAction");_.BhW=new _.lk("updatePlaylistAction");_.i3G=new _.lk("addToPlaylistCommand");_.Age=new _.lk("endPlaylistCommand");_.$na=new _.lk("recoverPlaylistCommand");_.b3n=new _.lk("refreshPlaylistCommand");_.H3e=new _.lk("refreshFormCommand");etP=new _.lk("openOnePickAddVideoModalCommand");var SBA=new _.lk("reloadContinuationItemsCommand");_.ThM=new _.lk("scrollToEngagementPanelCommand");var sZu=new _.lk("selectCountryCommand");var Vlf=new _.lk("showReloadUiCommand");var Z3M=new _.lk("undoFeedbackAction");var g0W=new _.lk("updateButtonAction");var IUO=new _.lk("updateSubscribeButtonAction");var yKe=new _.lk("updateToggleAction");var DLa=new _.lk("webNativeShareCommand");_.nE=new _.lk("webCommandMetadata");_.eJ=new _.lk("webHandleServiceEndpointExtension");var j$_=new _.lk("webNavigationEndpointData");var F6W=new _.lk("backgroundAudioPlaybackCommand");var RlM=new _.lk("copyLinkCommand");var OPP=new _.lk("playlistVotingRefreshPopupCommand");var L6n=new _.lk("selectChipCommand");var JKg=new _.lk("setCookieCommand");var wZe=new _.lk("setLocalStorageCommand");var vFn=new _.lk("setPrefStorageEntryCommand");var K6W;_.SDM=new _.lk("settingsUpdateCheckboxCommand");_.tQM=new _.lk("settingsUpdateTextCommand");_.P8O=new _.lk("settingsUpdateOptionsCommand");K6W=new _.lk("settingsUpdateSwitchCommand");_.ULP=new _.lk("settingsUpdateConnectedAppRendererCommand");var rKc=new _.lk("showCreatorChatbotEngagementPanelCommand");var jOM=new _.lk("updateTextInputFormFieldRendererCommand");var oFG=new _.lk("updateToggleButtonStateCommand");var Ntn=new _.lk("updateUrlParamCommand");var hlM=new _.lk("webSubmitFormCommand");var xL_=new _.lk("channelSwitcherPageRenderer"),lUc=new _.lk("updateChannelSwitcherPageAction");_.hs=new _.lk("continuationItemRenderer");_.Th=new _.lk("richItemRenderer");var uEO=new _.lk("richSectionRenderer");_.qDM=new _.lk("richShelfRenderer");_.EFa=new _.lk("metadataBadgeRenderer");_.G5W=new _.lk("multiPageMenuNotificationSectionRenderer");_.XZu=new _.lk("playlistLoopButtonStateRenderer");var QOu=new _.lk("claimLegacyYoutubeChannelEndpoint");var YDG=new _.lk("getNotificationMenuEndpoint");var fUa=new _.lk("getSearchInVideoCommand");_.nFM=new _.lk("getTranscriptEndpoint");_.fE=new _.lk("signalServiceEndpoint");var pZO=new _.lk("verifyAgeEndpoint");var oTB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(oTB,_.KS);oTB.prototype.getPath=function(){return _.Tp(this,1)};
oTB.prototype.getValue=function(){return _.Tp(this,2)};var mLP=[0,_.oh,-1];var MQO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(MQO,_.KS);var jv4=_.Xj(MQO,[0,_.xX,mLP]);var zlc=new _.lk("dismissalEndpoint");var k5G=new _.lk("elementsCommand");_.Iu=new _.lk("innertubeCommand");var dLM=new _.lk("multipleInlinePlaybackCommand");var ISA=new _.lk("loggingDirectives");var aUn=new _.lk("acknowledgeChannelTouStrikeCommand");var cKn=function(){$6.apply(this,arguments)};
_.E(cKn,$6);cKn.prototype.getAssociations=function(){return[]};
cKn.prototype.getTypeName=function(){return"booleanEntity"};var W6_=function(){$6.apply(this,arguments)};
_.E(W6_,$6);W6_.prototype.getAssociations=function(){return[]};
W6_.prototype.getTypeName=function(){return"stringEntity"};var Sa=new _.lk("entityBatchUpdate");_.C8a=new _.lk("entityUpdateCommand");var Btz=function(){$6.apply(this,arguments)};
_.E(Btz,$6);Btz.prototype.getAssociations=function(){var I=[];this.delegate.alternateChannel&&I.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&I.push.apply(I,_.Td(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&I.push(this.delegate.oneofChannelEntity);return[].concat(_.Td(new Set(I)))};
Btz.prototype.getTypeName=function(){return"fakeChannel"};var iPM=function(){$6.apply(this,arguments)};
_.E(iPM,$6);iPM.prototype.getAssociations=function(){var I=[];this.delegate.entryCollection&&I.push(this.delegate.entryCollection);return[].concat(_.Td(new Set(I)))};
iPM.prototype.getTypeName=function(){return"fakePlaylist"};
var AKc=function(){$6.apply(this,arguments)};
_.E(AKc,$6);AKc.prototype.getAssociations=function(){var I=[];this.delegate.parentPlaylist&&I.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var y=_.J(this.delegate.entries),D=y.next();!D.done;D=y.next())I.push.apply(I,_.Td((new $Le(D.value)).getAssociations()));return[].concat(_.Td(new Set(I)))};
AKc.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var $Le=function(){Aw.apply(this,arguments)};
_.E($Le,Aw);$Le.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);return[].concat(_.Td(new Set(I)))};var bPM=function(){$6.apply(this,arguments)};
_.E(bPM,$6);bPM.prototype.getAssociations=function(){var I=[];this.delegate.descriptionEntity&&I.push(this.delegate.descriptionEntity);this.delegate.creators&&I.push.apply(I,_.Td(this.delegate.creators));this.delegate.theBiggestFan&&I.push(this.delegate.theBiggestFan);return[].concat(_.Td(new Set(I)))};
bPM.prototype.getTypeName=function(){return"fakeVideo"};
var HPa=function(){$6.apply(this,arguments)};
_.E(HPa,$6);HPa.prototype.getAssociations=function(){return[]};
HPa.prototype.getTypeName=function(){return"fakeVideoDescription"};var elg=new _.lk("fantasyRosterViewModel");var TtM=new _.lk("addFollowUpSurveyCommand");var sOn=new _.lk("getSurveyCommand");var VQG=new _.lk("ratingSurveyOptionRenderer");_.gT=new _.lk("feedbackEndpoint");var ZPg=new _.lk("reportHistoryTableCellRenderer"),gFR=new _.lk("reportHistoryTableTextCellRenderer"),IjM=new _.lk("reportHistoryTableReasonCellRenderer");_.ywM=new _.lk("flagEndpoint");var DH_=new _.lk("deleteFlowStepsCommand");_.Fga=new _.lk("flowNextStepCommand");_.RRc=new _.lk("flowPrevStepCommand");var Ohc=new _.lk("getFlowCommand");var LgO=new _.lk("submitFormWithValidationFlowCommand");_.Jwz=new _.lk("updateFlowCommand");var wce=function(){$6.apply(this,arguments)};
_.E(wce,$6);wce.prototype.getAssociations=function(){return[]};
wce.prototype.getTypeName=function(){return"flowStateEntity"};var v6M=new _.lk("flowFormState");_.s2=new _.lk("flowStepRenderer");var S2a=new _.lk("gameCardRenderer");var tJM=new _.lk("accountLinkingStateChangedCommand");var PE_=function(){$6.apply(this,arguments)};
_.E(PE_,$6);PE_.prototype.getAssociations=function(){return[]};
PE_.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Kgu=new _.lk("changeMiniAppPlayStateCommand");var UHn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(UHn,_.KS);var Vl=[1,2,3];var rwe=[0,Vl,Vgz,_.h4,iac];var j7g=_.Xj(UHn,rwe),o6O=_.Ys(rwe);var Nba=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Nba,_.KS);var hRg=[0,_.t4,_.oh];var xHn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(xHn,_.KS);var ljW=[0,_.oh,_.t4,-1];var Zj=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Zj,_.KS);var ule=_.Ys([0,1,hRg,_.Em,ljW,_.oh]);var q2e=new _.lk("miniAppScoreChallengeViewModel");var E6M=new _.lk("miniGameCardViewModel");var Ghz=new _.lk("teaserCardViewModel");var Xcn=function(){$6.apply(this,arguments)};
_.E(Xcn,$6);Xcn.prototype.getAssociations=function(){return[]};
Xcn.prototype.getTypeName=function(){return"logoEntity"};var Q7P=new _.lk("feedbackItemRenderer");var Y2M=function(){$6.apply(this,arguments)};
_.E(Y2M,$6);Y2M.prototype.getAssociations=function(){return[]};
Y2M.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.fjW=new _.lk("playerInterstitialRenderer");var n6W=new _.lk("getKidsBlocklistPickerCommand");_.pcc=new _.lk("updateKidsBlacklistEndpoint");_.gb=new _.lk("likeEndpoint");var mHR,MJz,zRP;mHR=new _.lk("addChatItemAction");MJz=new _.lk("removeChatItemAction");zRP=new _.lk("markChatItemAsDeletedAction");_.khM=new _.lk("setLiveChatCollapsedStateAction");var dHg=function(){$6.apply(this,arguments)};
_.E(dHg,$6);dHg.prototype.getAssociations=function(){return[]};
dHg.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var ajn=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ajn,_.KS);ajn.prototype.getPayloadCase=function(){return _.Bn(this,cwG)};
var cwG=[3,4];var WgP=[0,_.xX,[0,[1,2],_.h4,_.l7,[0,_.NV,1,_.NV]]];var CEn=[0,_.oh,-1];var BbW=[0,[1],_.h4];var Ij=[0,[1,2],_.h4,_.l7,[0,_.Em]];var yk=[0,_.oh];var ihe=[0,[0,_.rJ,_.Um,[0,_.NV,_.GQ,_.NV]],1,[0,_.rJ]];var Awf=[0,Pq];var $H_=[0,Pq];var bhR=[0,$H_,Awf];var HhO=[0,_.xX,[0,[1,2],_.h4,-1],_.rJ];var eRG=[0,[2],1,_.l7,[0,_.NV,-1,HhO]];var Tbz=[0,[1],_.l7,[0,_.NV,_.oh,_.GQ,1,HhO]];var s7c=[0,_.Um,-1,BGn,_.Em];var VJz=[0,[0,Sq,-3],-4];var Df=[0,_.rJ,-3,_.oh,_.rJ,_.X6,_.rJ,WgP,_.rJ,-2];var F4=[0,_.xX,[0,[1,2],_.h4,-1],_.rJ,_.oh];var Zh_=[0,[3],Ij,[0,[2,3,4],Dge,_.h4,-2],_.l7,[0,_.oh],_.t4];var g6f=[0,[3,5],_.oh,_.K2,_.l7,[0,1,_.t4,_.Em],_.Em,_.l7,[0,_.Em,_.t4]];var Iff=[0,2,_.K2,_.oh,-1];var yza=[0,TGW];var DEu=[0,[3,4],2,$8u,_.h4,_.oh];var F7z=[0,_.Em,-2,1,_.oh];var ReW=[0,_.oh,-1,_.Em];var ObR=[0,yk,function(){return Rj},
yk,_.oh],L7M=[0,_.Em,yk,Ij,function(){return Rj},
_.oh],Rj=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],yk,_.K2,[0,_.rJ,1,_.rJ,1,_.rJ,1,_.Em,-1,yk],[0,1,_.rJ,2,_.rJ,_.Em,_.rJ],1,_.K2,-1,_.oh,_.K2,2,Sq,[0,Sq,_.K2],_.oh,1,ihe,1,Ij,_.X6,1,[0,[0,_.xX,[0,_.oh,_.rJ,_.Em]]],[0,_.rJ,[0,_.t4,[0,_.GQ]],_.t4,1,[0,Hau,-1]],_.oh,[0,1,_.oh],76,_.l7,[0,Ij,F4,ihe,1,[0,_.xX,F4]],1,_.l7,[0,Ij,_.oh,
_.rJ],_.l7,[0,Ij,BbW],_.l7,[0,Ij,BbW,_.K2],_.l7,[0,Ij,BbW],_.l7,[0,Ij,_.xX,yk,Ij,Zac],_.l7,[0,Ij,yk,_.oh],_.l7,[0,Ij,_.rJ,Df,-1,_.rJ],4,_.l7,[0,Ij,_.rJ,_.K2,Df,_.rJ],_.l7,[0,[4,9],Ij,_.Em,_.K2,_.h4,F4,1,ihe,_.oh,_.h4,F7z],_.l7,[0,Ij,yk,Ij,_.Em,_.oh],_.l7,[0,_.rJ,Ij,Df,_.rJ,_.oh],_.l7,[0,Ij,yk,Ij,_.Em,_.oh],1,_.l7,[0,Ij,_.Em,_.oh,Df],_.l7,[0,Ij,_.Em,[0,_.oh,_.K2],_.oh,_.K2,_.oh,_.qV,-2,3,ReW,_.xX,ReW,ReW,F7z],_.l7,[0,Ij,_.Em,Tbz,_.xX,[0,$H_,eRG],yk,_.xX,bhR,_.oh,1,_.Em,s7c,VJz,CRM,-1],_.l7,[0,Ij,[0,
_.GQ,-1,Tbz,_.xX,[0,$H_,eRG,Awf],[0,_.Q1],1,_.NV],yk,_.oh],_.l7,[0,Ij,F4,_.oh,[0,_.Um]],_.l7,function(){return L7M},
_.l7,[0,Ij,_.K2,_.oh,-1,_.rJ],_.l7,[0,[6,7],Ij,_.xX,Iff,_.Em,F4,1,_.l7,DEu,_.l7,yza],_.l7,[0,_.xX,Iff,_.Em,_.rJ],_.l7,[0,_.oh,e5e,-1],_.l7,[0,yk,_.xX,bhR,_.oh],_.l7,[0,Ij,yk,_.oh],_.l7,[0,_.qV,_.oh],_.l7,[0,CEn],_.l7,[0,CEn],_.l7,[0,F4],_.l7,[0,yk,F4],_.l7,function(){return ObR},
_.l7,[0,yk,_.oh],_.l7,[0,yk,_.oh],1,_.l7,[0,_.rJ,Ij,Df,_.rJ,Df],_.l7,[0,_.Q1],1,_.l7,[0],1,_.l7,[0,yk,_.Em,Ij,_.Em],_.l7,[0,[1,2],_.l7,DEu,_.l7,yza,_.K2],_.l7,[0,_.Q1,F4,g6f,_.oh,_.K2],_.l7,[0,g6f,_.oh,_.K2],_.l7,[0,s7c,F4,_.rJ,VJz],_.l7,Zh_,_.l7,[0],_.l7,[0,_.oh,-1,_.t4],_.l7,[0,yk,_.oh],_.l7,[0,Zh_,_.t4,_.oh],_.l7,[0,Ij,Df,_.rJ],_.l7,[0,Ij,Df,_.rJ],_.l7,[0,s7c,VJz,F4,_.X6,_.rJ,CRM,-1],_.l7,[0,Ij,Df,_.rJ],_.l7,[0,_.K2]];var Jze=[0,_.xX,Rj];var w0a=_.Xj(ajn,[0,cwG,1,_.t4,_.l7,[0,[18,22,24],Jze,3,[0,Jze],1,_.t4,[0,_.xX,[0,_.K2,Sq],_.K2],1,Rj,-1,[0,_.jq,-2,_.X6,_.jq,-1,_.X6,_.jq,WgP,_.jq,-2],cea,[!0,_.oh,[0,BbW,2,_.oh,_.K2,_.rJ,2,_.oh,_.qV]],[0,[1,2,3],[5,6],_.l7,[0,_.NV],_.l7,[0,_.NV,-1],_.l7,[0,_.NV],1,_.l7,CEn,_.l7,[0,_.oh]],[0,Rj,-1],_.Q1,Rj,_.l7,Rj,[0,Jze],_.t4,Rj,_.l7,Rj,_.oh,_.l7,Rj,Rj],_.l7,ZQ_,_.t4]);var vjO=new _.lk("liveChatEndpoint");var SZO=new _.lk("liveChatItemContextMenuEndpoint");var t1f=new _.lk("liveChatReplayEndpoint");_.PWR=new _.lk("emojiPickerRenderer");var K7z=new _.lk("liveChatAuthorBadgeViewModel");var UEO=new _.lk("deleteLiveChatMessageCommand");var rzO=new _.lk("liveChatActionEndpoint");var jju=new _.lk("createLiveChatPollEndpoint");var ojO=new _.lk("manageLiveChatUserEndpoint");var N7M=new _.lk("moderateLiveChatEndpoint");_.hee=new _.lk("sendLiveChatMessageEndpoint");var xEO=new _.lk("sendLiveChatVoteEndpoint");var lfP=new _.lk("clearLocationCommand");var u4a=new _.lk("resolveLocationCommand");var qZ_=new _.lk("interactionLoggingCommandMetadata");var EjG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(EjG,_.KS);var GVz=function(I,y){return _.Xm(I,1,y)};var X0_=[0,_.rJ];var QjG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(QjG,_.KS);var YZR=function(I,y){return T8(I,1,EjG,y)};QjG.prototype.JSC$12597_serializeBinary=JWS([0,_.xX,X0_]);var Y2J={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 fff={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"},
njR={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 wGC={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY"};_.BSC=new _.lk("logFlowLoggingEventCommand");_.CQ=new _.lk("loggingContext");var p0a=new _.lk("audioTrackSelectActionCommand");var mEO=new _.lk("captionLanguageSelectActionCommand");var M1a=new _.lk("showAudioTrackPickerActionCommand");var zeu=new _.lk("showCaptionLanguageSelectActionCommand");var kVW=new _.lk("dismissDialogEndpoint");var dEP=new _.lk("dismissPlayerOverlayCommand");var af_=new _.lk("hideItemSectionVideosByIdCommand");var czu=new _.lk("showMiniplayerCommand");var W7f=function(){$6.apply(this,arguments)};
_.E(W7f,$6);W7f.prototype.getAssociations=function(){return[]};
W7f.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var CWM=function(){$6.apply(this,arguments)};
_.E(CWM,$6);CWM.prototype.getAssociations=function(){return[]};
CWM.prototype.getTypeName=function(){return"downloadStatusEntity"};var B7a=function(){$6.apply(this,arguments)};
_.E(B7a,$6);B7a.prototype.getAssociations=function(){return[]};
B7a.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var ibf=function(){$6.apply(this,arguments)};
_.E(ibf,$6);ibf.prototype.getAssociations=function(){var I=[];this.delegate.downloadsList&&I.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&I.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&I.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&I.push(this.delegate.refresh);return[].concat(_.Td(new Set(I)))};
ibf.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var AzM=function(){$6.apply(this,arguments)};
_.E(AzM,$6);AzM.prototype.getAssociations=function(){var I=[];this.delegate.refresh&&I.push(this.delegate.refresh);if(this.delegate.downloads)for(var y=_.J(this.delegate.downloads),D=y.next();!D.done;D=y.next())I.push.apply(I,_.Td((new $E_(D.value)).getAssociations()));return[].concat(_.Td(new Set(I)))};
AzM.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var $E_=function(){Aw.apply(this,arguments)};
_.E($E_,Aw);$E_.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.playlist&&I.push(this.delegate.playlist);this.delegate.videoItem&&I.push(this.delegate.videoItem);this.delegate.playlistItem&&I.push(this.delegate.playlistItem);return[].concat(_.Td(new Set(I)))};var bbG=function(){$6.apply(this,arguments)};
_.E(bbG,$6);bbG.prototype.getAssociations=function(){var I=[];this.delegate.localImageEntities&&I.push.apply(I,_.Td(this.delegate.localImageEntities));return[].concat(_.Td(new Set(I)))};
bbG.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var HbM=function(){$6.apply(this,arguments)};
_.E(HbM,$6);HbM.prototype.getAssociations=function(){var I=[];this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.localImageEntities&&I.push.apply(I,_.Td(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Td(new Set(I)))};
HbM.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var eee=function(){$6.apply(this,arguments)};
_.E(eee,$6);eee.prototype.getAssociations=function(){return[]};
eee.prototype.getTypeName=function(){return"offlineabilityEntity"};var T7a=function(){$6.apply(this,arguments)};
_.E(T7a,$6);T7a.prototype.getAssociations=function(){var I=[];this.delegate.fakeChildren&&I.push.apply(I,_.Td(this.delegate.fakeChildren));return[].concat(_.Td(new Set(I)))};
T7a.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var sjM=function(){$6.apply(this,arguments)};
_.E(sjM,$6);sjM.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&I.push(this.delegate.offlineVideoPolicy);return[].concat(_.Td(new Set(I)))};
sjM.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var V1f=function(){$6.apply(this,arguments)};
_.E(V1f,$6);V1f.prototype.getAssociations=function(){return[]};
V1f.prototype.getTypeName=function(){return"continuationTokenEntity"};var ZbW=function(){$6.apply(this,arguments)};
_.E(ZbW,$6);ZbW.prototype.getAssociations=function(){var I=[];this.delegate.channelOwner&&I.push(this.delegate.channelOwner);this.delegate.videos&&I.push.apply(I,_.Td(this.delegate.videos));this.delegate.collaboratorChannels&&I.push.apply(I,_.Td(this.delegate.collaboratorChannels));this.delegate.downloadState&&I.push(this.delegate.downloadState);this.delegate.refresh&&I.push(this.delegate.refresh);return[].concat(_.Td(new Set(I)))};
ZbW.prototype.getTypeName=function(){return"mainPlaylistEntity"};var gjR=function(){$6.apply(this,arguments)};
_.E(gjR,$6);gjR.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.channelContributor&&I.push(this.delegate.channelContributor);return[].concat(_.Td(new Set(I)))};
gjR.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var IIa=function(){Aw.apply(this,arguments)};
_.E(IIa,Aw);IIa.prototype.getAssociations=function(){var I=[];this.delegate.recommendedVideoMetadata&&I.push.apply(I,_.Td((new yxW(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Td(new Set(I)))};
var yxW=function(){Aw.apply(this,arguments)};
_.E(yxW,Aw);yxW.prototype.getAssociations=function(){var I=[];this.delegate.localImageEntities&&I.push.apply(I,_.Td(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Td(new Set(I)))};var DFu=function(){Aw.apply(this,arguments)};
_.E(DFu,Aw);DFu.prototype.getAssociations=function(){var I=[];this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);return[].concat(_.Td(new Set(I)))};var FNu=function(){$6.apply(this,arguments)};
_.E(FNu,$6);FNu.prototype.getAssociations=function(){var I=[];this.delegate.owner&&I.push(this.delegate.owner);this.delegate.downloadState&&I.push(this.delegate.downloadState);this.delegate.userState&&I.push.apply(I,_.Td((new DFu(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&I.push.apply(I,_.Td((new IIa(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Td(new Set(I)))};
FNu.prototype.getTypeName=function(){return"mainVideoEntity"};var RSe=function(){$6.apply(this,arguments)};
_.E(RSe,$6);RSe.prototype.getAssociations=function(){var I=[];this.delegate.userChannelDetails&&I.push(this.delegate.userChannelDetails);return[].concat(_.Td(new Set(I)))};
RSe.prototype.getTypeName=function(){return"ytMainChannelEntity"};var OJP=function(){$6.apply(this,arguments)};
_.E(OJP,$6);OJP.prototype.getAssociations=function(){var I=[];this.delegate.channelOwner&&I.push(this.delegate.channelOwner);this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&I.push.apply(I,_.Td(this.delegate.localImageEntities));this.delegate.downloadStatus&&I.push(this.delegate.downloadStatus);return[].concat(_.Td(new Set(I)))};
OJP.prototype.getTypeName=function(){return"ytMainVideoEntity"};var uXe=new _.lk("downloadsPageSmartDownloadsOptInBannerParams");var X9W=new _.lk("downloadsPageUpsellBannerParams");var LNe=function(){$6.apply(this,arguments)};
_.E(LNe,$6);LNe.prototype.getAssociations=function(){return[]};
LNe.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var Jxa=function(){$6.apply(this,arguments)};
_.E(Jxa,$6);Jxa.prototype.getAssociations=function(){return[]};
Jxa.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var wfP=function(){$6.apply(this,arguments)};
_.E(wfP,$6);wfP.prototype.getAssociations=function(){return[]};
wfP.prototype.getTypeName=function(){return"macroMarkerEntity"};var vDR=function(){$6.apply(this,arguments)};
_.E(vDR,$6);vDR.prototype.getAssociations=function(){return[]};
vDR.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var S3R=function(){$6.apply(this,arguments)};
_.E(S3R,$6);S3R.prototype.getAssociations=function(){return[]};
S3R.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var tMW=function(){$6.apply(this,arguments)};
_.E(tMW,$6);tMW.prototype.getAssociations=function(){return[]};
tMW.prototype.getTypeName=function(){return"playerStateEntity"};var P3R=function(){$6.apply(this,arguments)};
_.E(P3R,$6);P3R.prototype.getAssociations=function(){return[]};
P3R.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var KN_=function(){$6.apply(this,arguments)};
_.E(KN_,$6);KN_.prototype.getAssociations=function(){return[]};
KN_.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var UFW=function(){$6.apply(this,arguments)};
_.E(UFW,$6);UFW.prototype.getAssociations=function(){return[]};
UFW.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.JT=new _.lk("dislikeButtonViewModel");_.Lz=new _.lk("likeButtonViewModel");var rxP=new _.lk("videoSummaryContentViewModel");var jJG=new _.lk("videoSummaryParagraphViewModel");var oDa=new _.lk("changeTimelyActionVisibilityCommand");var NEc=new _.lk("hideEngagementPanelEndpoint");var hSR=new _.lk("refreshPanelEndpoint");var xFu=new _.lk("scrollToSectionEndpoint");var lIa=new _.lk("seekToVideoTimestampCommand");_.Z3=new _.lk("showEngagementPanelEndpoint");var uDu=new _.lk("showTransientPlayerScrimOverlayCommand");var q3G=new _.lk("toggleEngagementPanelCommand");var EDg=new _.lk("aiResponseBoxViewModel");_.GL_=new _.lk("createBroadcastCommand");var XfM=new _.lk("metadataUpdateCommand");var QJO=function(){$6.apply(this,arguments)};
_.E(QJO,$6);QJO.prototype.getAssociations=function(){return[]};
QJO.prototype.getTypeName=function(){return"featuredProductsEntity"};var Y3e=function(){$6.apply(this,arguments)};
_.E(Y3e,$6);Y3e.prototype.getAssociations=function(){return[]};
Y3e.prototype.getTypeName=function(){return"pinnedProductEntity"};var fI_=function(){$6.apply(this,arguments)};
_.E(fI_,$6);fI_.prototype.getAssociations=function(){return[]};
fI_.prototype.getTypeName=function(){return"trendingOfferEntity"};_.nDg=new _.lk("merchandiseShelfRenderer");var pfe=new _.lk("shoppingContentLineItemViewModel");var mFc=new _.lk("gridMovieRenderer");_.MMc=new _.lk("movieRenderer");var zSP=function(){$6.apply(this,arguments)};
_.E(zSP,$6);zSP.prototype.getAssociations=function(){return[]};
zSP.prototype.getTypeName=function(){return"compositeSourceEntity"};var kLe=function(){$6.apply(this,arguments)};
_.E(kLe,$6);kLe.prototype.getAssociations=function(){var I=[];this.delegate.compositeSourceKeys&&I.push.apply(I,_.Td(this.delegate.compositeSourceKeys));return[].concat(_.Td(new Set(I)))};
kLe.prototype.getTypeName=function(){return"multiviewStagingEntity"};var dFg=function(){$6.apply(this,arguments)};
_.E(dFg,$6);dFg.prototype.getAssociations=function(){var I=[];this.delegate.trackDownloadMetadatas&&I.push.apply(I,_.Td(this.delegate.trackDownloadMetadatas));return[].concat(_.Td(new Set(I)))};
dFg.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var aIG=function(){$6.apply(this,arguments)};
_.E(aIG,$6);
aIG.prototype.getAssociations=function(){var I=[];this.delegate.downloadedTracks&&I.push.apply(I,_.Td(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&I.push.apply(I,_.Td(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&I.push.apply(I,_.Td(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&I.push.apply(I,_.Td(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&I.push.apply(I,_.Td(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
I.push.apply(I,_.Td(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&I.push.apply(I,_.Td(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&I.push.apply(I,_.Td(this.delegate.metadataOnlyTracks));return[].concat(_.Td(new Set(I)))};
aIG.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var cxn=function(){$6.apply(this,arguments)};
_.E(cxn,$6);cxn.prototype.getAssociations=function(){var I=[];this.delegate.trackDownloadMetadatas&&I.push.apply(I,_.Td(this.delegate.trackDownloadMetadatas));return[].concat(_.Td(new Set(I)))};
cxn.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var WNf=function(){$6.apply(this,arguments)};
_.E(WNf,$6);WNf.prototype.getAssociations=function(){var I=[];this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.localImageEntities&&I.push.apply(I,_.Td(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Td(new Set(I)))};
WNf.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var C3c=function(){$6.apply(this,arguments)};
_.E(C3c,$6);
C3c.prototype.getAssociations=function(){var I=[];this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&I.push.apply(I,_.Td(this.delegate.primaryArtists));this.delegate.details&&I.push(this.delegate.details);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.tracks&&I.push.apply(I,_.Td(this.delegate.tracks));this.delegate.share&&I.push(this.delegate.share);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.refresh&&
I.push(this.delegate.refresh);return[].concat(_.Td(new Set(I)))};
C3c.prototype.getTypeName=function(){return"musicAlbumRelease"};
var BEa=function(){$6.apply(this,arguments)};
_.E(BEa,$6);BEa.prototype.getAssociations=function(){var I=[];this.delegate.albumRelease&&I.push(this.delegate.albumRelease);this.delegate.tracks&&I.push.apply(I,_.Td(this.delegate.tracks));return[].concat(_.Td(new Set(I)))};
BEa.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var iJe=function(){$6.apply(this,arguments)};
_.E(iJe,$6);iJe.prototype.getAssociations=function(){var I=[];this.delegate.albumRelease&&I.push(this.delegate.albumRelease);return[].concat(_.Td(new Set(I)))};
iJe.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var Axf=function(){$6.apply(this,arguments)};
_.E(Axf,$6);Axf.prototype.getAssociations=function(){var I=[];this.delegate.details&&I.push(this.delegate.details);this.delegate.userDetails&&I.push(this.delegate.userDetails);return[].concat(_.Td(new Set(I)))};
Axf.prototype.getTypeName=function(){return"musicArtist"};
var $FP=function(){$6.apply(this,arguments)};
_.E($FP,$6);$FP.prototype.getAssociations=function(){var I=[];this.delegate.parentArtist&&I.push(this.delegate.parentArtist);return[].concat(_.Td(new Set(I)))};
$FP.prototype.getTypeName=function(){return"musicArtistDetail"};
var bJg=function(){$6.apply(this,arguments)};
_.E(bJg,$6);bJg.prototype.getAssociations=function(){var I=[];this.delegate.parentArtist&&I.push(this.delegate.parentArtist);return[].concat(_.Td(new Set(I)))};
bJg.prototype.getTypeName=function(){return"musicArtistUserDetail"};var HJG=function(){$6.apply(this,arguments)};
_.E(HJG,$6);HJG.prototype.getAssociations=function(){return[]};
HJG.prototype.getTypeName=function(){return"musicLibraryEdit"};var eSg=function(){$6.apply(this,arguments)};
_.E(eSg,$6);eSg.prototype.getAssociations=function(){return[]};
eSg.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var TEP=function(){$6.apply(this,arguments)};
_.E(TEP,$6);
TEP.prototype.getAssociations=function(){var I=[];this.delegate.tracks&&I.push.apply(I,_.Td(this.delegate.tracks));this.delegate.refresh&&I.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&I.push(this.delegate.details);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&I.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.entryCollection&&
I.push(this.delegate.entryCollection);this.delegate.share&&I.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&I.push.apply(I,_.Td((new sJW(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Td(new Set(I)))};
TEP.prototype.getTypeName=function(){return"musicPlaylist"};
var sJW=function(){Aw.apply(this,arguments)};
_.E(sJW,Aw);sJW.prototype.getAssociations=function(){var I=[];this.delegate.creatorEntity&&I.push(this.delegate.creatorEntity);return[].concat(_.Td(new Set(I)))};var VMu=function(){$6.apply(this,arguments)};
_.E(VMu,$6);VMu.prototype.getAssociations=function(){return[]};
VMu.prototype.getTypeName=function(){return"musicShare"};var ZJz=function(){$6.apply(this,arguments)};
_.E(ZJz,$6);
ZJz.prototype.getAssociations=function(){var I=[];this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&I.push.apply(I,_.Td(this.delegate.artists));this.delegate.audioModeVersion&&I.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&I.push(this.delegate.videoModeVersion);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.details&&I.push(this.delegate.details);this.delegate.albumRelease&&I.push(this.delegate.albumRelease);this.delegate.share&&
I.push(this.delegate.share);this.delegate.libraryEdit&&I.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);this.delegate.lyrics&&I.push(this.delegate.lyrics);return[].concat(_.Td(new Set(I)))};
ZJz.prototype.getTypeName=function(){return"musicTrack"};
var gDu=function(){$6.apply(this,arguments)};
_.E(gDu,$6);gDu.prototype.getAssociations=function(){var I=[];this.delegate.parentTrack&&I.push(this.delegate.parentTrack);return[].concat(_.Td(new Set(I)))};
gDu.prototype.getTypeName=function(){return"musicTrackDetail"};
var I8g=function(){$6.apply(this,arguments)};
_.E(I8g,$6);I8g.prototype.getAssociations=function(){var I=[];this.delegate.parentTrack&&I.push(this.delegate.parentTrack);return[].concat(_.Td(new Set(I)))};
I8g.prototype.getTypeName=function(){return"musicTrackUserDetail"};var jz=new _.lk("musicResponsiveListItemRenderer");var Kv_=new _.lk("addToPlaylistEndpoint");var y2a=new _.lk("captionPickerEndpoint");var DyM=new _.lk("suggestStats");var Feu=new _.lk("backstageImageUploadEndpoint");var RQf=new _.lk("createBackstagePostDialogEndpoint");_.OMg=new _.lk("createCommentReplyDialogEndpoint");_.Lef=new _.lk("updateCommentDialogEndpoint");_.J2O=new _.lk("updateCommentReplyDialogEndpoint");var wbM=new _.lk("menuEndpoint");var KTS=new _.lk("modalEndpoint");var vpg=new _.lk("playlistEditorEndpoint");var SYO=new _.lk("copyTextEndpoint");var tre,PCP;tre=new _.lk("shareEndpoint");PCP=new _.lk("shareEntityEndpoint");_.Kee=new _.lk("shareEntityServiceEndpoint");_.RKq=new _.lk("userFeedbackEndpoint");_.t9=new _.lk("watchEndpoint");var JaL=new _.lk("watchPlaylistEndpoint");var Uya=new _.lk("addUpcomingEventReminderEndpoint");_.OZ=new _.lk("getCommentsFromInboxCommand");var r2u=new _.lk("notificationOptOutEndpoint");var jmW=new _.lk("recordNotificationInteractionsEndpoint");var opf=new _.lk("removeUpcomingEventReminderEndpoint");_.Kt=new _.lk("getDownloadActionCommand");_.NiM=new _.lk("offlineOrchestrationActionCommand");var hQu=function(){$6.apply(this,arguments)};
_.E(hQu,$6);hQu.prototype.getAssociations=function(){return[]};
hQu.prototype.getTypeName=function(){return"captionTrack"};var xye=function(){$6.apply(this,arguments)};
_.E(xye,$6);xye.prototype.getAssociations=function(){return[]};
xye.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var l8_=function(){$6.apply(this,arguments)};
_.E(l8_,$6);l8_.prototype.getAssociations=function(){return[]};
l8_.prototype.getTypeName=function(){return"offlineVideoPolicy"};var uNa=function(){$6.apply(this,arguments)};
_.E(uNa,$6);uNa.prototype.getAssociations=function(){return[]};
uNa.prototype.getTypeName=function(){return"offlineVideoStreams"};var qYM=function(){$6.apply(this,arguments)};
_.E(qYM,$6);qYM.prototype.getAssociations=function(){var I=[];this.delegate.transfer&&I.push(this.delegate.transfer);this.delegate.adsPlaybackData&&I.push.apply(I,_.Td(this.delegate.adsPlaybackData));this.delegate.drmLicense&&I.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&I.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Td(new Set(I)))};
qYM.prototype.getTypeName=function(){return"playbackData"};var Epn=function(){$6.apply(this,arguments)};
_.E(Epn,$6);Epn.prototype.getAssociations=function(){return[]};
Epn.prototype.getTypeName=function(){return"refresh"};var G1M=function(){$6.apply(this,arguments)};
_.E(G1M,$6);G1M.prototype.getAssociations=function(){var I=[];this.delegate.offlineVideoStreams&&I.push.apply(I,_.Td(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&I.push.apply(I,_.Td(this.delegate.captionTrack));return[].concat(_.Td(new Set(I)))};
G1M.prototype.getTypeName=function(){return"transfer"};var XbW=function(){$6.apply(this,arguments)};
_.E(XbW,$6);XbW.prototype.getAssociations=function(){return[]};
XbW.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Qmn=new _.lk("showMoreDrawerCommand");var YYc=new _.lk("updateEngagementPanelContentCommand");var f8e=new _.lk("getPdgBuyFlowCommand");var npP=new _.lk("liveChatPurchaseMessageEndpoint");var pbn=new _.lk("openSuperStickerBuyFlowCommand");var myn=new _.lk("updatePdgFeatureEnablementCommand");var Mrz=function(){$6.apply(this,arguments)};
_.E(Mrz,$6);Mrz.prototype.getAssociations=function(){return[]};
Mrz.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var zQM=function(){$6.apply(this,arguments)};
_.E(zQM,$6);zQM.prototype.getAssociations=function(){return[]};
zQM.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.k1M=new _.lk("pdgCommentChipRenderer");_.dyz=new _.lk("permissionRoleBottomBarRenderer");_.a8P=new _.lk("updatePermissionRoleCommand");var c2f=new _.lk("prefetchWatchCommand");var WeR=new _.lk("updatePlayerErrorMessageCommand");var RwS=new _.lk("toggleCaptionsVisibilityCommand");var CCn=new _.lk("playerDisclosureViewModel");_.Bic=new _.lk("quickActionsViewModel");var iMu=new _.lk("playerResponse");var A2c=new _.lk("playlistRenderer");_.$yM=new _.lk("playlistVideoListRenderer");_.Lb=new _.lk("playlistEditEndpoint");var bMc=new _.lk("createImagePollCommand");var HM_=new _.lk("createQuizCommand");var eQg=new _.lk("quizRenderer");var TiP=new _.lk("uploadedVideoRenderer");var smu=new _.lk("decorateMessageEndpoint");var VrM=new _.lk("lpOfferCardOptionViewModel");var ZMg=new _.lk("sfvAudioItemPlaybackCommand");var gpO=function(){$6.apply(this,arguments)};
_.E(gpO,$6);gpO.prototype.getAssociations=function(){return[]};
gpO.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Jz=new _.lk("reelNonVideoContentEndpoint");_.WF=new _.lk("reelWatchEndpoint");var IgR=new _.lk("reelActionBarViewModel");_.w7=new _.lk("reelItemRenderer");var ymz=new _.lk("reelMetapanelViewModel");_.v0=new _.lk("reelNonVideoContentRenderer");_.DTP=new _.lk("reelPlayerOverlayRenderer");var Fkg=new _.lk("shortsLockupViewModel");var RJe=new _.lk("sponsorButtonViewModel");var OYg=new _.lk("reelItemWatchResponse");var Lke=new _.lk("textBadgeRenderer");_.S1=new _.lk("buttonRenderer");_.tz=new _.lk("toggleButtonRenderer");var UAt=new _.lk("switchButtonViewModel");_.Jmu=new _.lk("confirmDialogRenderer");var w9g;w9g=new _.lk("menuRenderer");_.v3M=new _.lk("menuFlexibleItemRenderer");var Syc=new _.lk("pollRenderer");_.txg=new _.lk("backgroundPromoRenderer");var KkM;_.PqW=new _.lk("chipCloudRenderer");KkM=new _.lk("chipCloudChipRenderer");var UTO=new _.lk("dropdownRenderer");var rmn=new _.lk("gridVideoRenderer");_.jtz=new _.lk("itemSectionRenderer");_.o3a=new _.lk("messageRenderer");var NQM=new _.lk("sortFilterHeaderRenderer");_.hJ_=new _.lk("videoRenderer");var xTc=new _.lk("resolveUrlCommandMetadata");var lga=function(){$6.apply(this,arguments)};
_.E(lga,$6);lga.prototype.getAssociations=function(){return[]};
lga.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.uXa=new _.lk("getAnswerCommand");_.dY=new _.lk("searchEndpoint");var qyg=new _.lk("genAiRichTextViewModel");var tdB=new _.lk("overviewAnswerViewModel");var E3_=new _.lk("videoOverviewViewModel");var G2R=new _.lk("addToPlaylistServiceEndpoint");var X9f=new _.lk("clearSearchHistoryEndpoint");var Qta=new _.lk("clearWatchHistoryEndpoint");var Yyz=new _.lk("webSerializedServiceEndpointExtension");_.fgG=new _.lk("createCommentEndpoint");var n3P=new _.lk("createCommentReplyEndpoint");var p9u=new _.lk("performCommentActionEndpoint");var mTe=new _.lk("updateCommentEndpoint");var MxM=new _.lk("updateCommentReplyEndpoint");_.P0=new _.lk("createPlaylistServiceEndpoint");var zJa=new _.lk("deletePlaylistEndpoint");var k2O=new _.lk("deleteVideoEndpoint");var Ps4=new _.lk("getReportFormEndpoint");var dTu=new _.lk("modifyChannelNotificationPreferenceEndpoint");var qjt;_.MY=new _.lk("offlinePlaylistEndpoint");qjt={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 EoS;_.mC=new _.lk("offlineVideoEndpoint");EoS={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 agP=new _.lk("pingingEndpoint");_.cma=new _.lk("selectActiveIdentityEndpoint");var Wk_=new _.lk("setSettingEndpoint");var e$_=new _.lk("undoFeedbackEndpoint");var CqW=new _.lk("unsubscribeEndpoint");_.BQO=new _.lk("updatedMetadataEndpoint");var iYG=function(){$6.apply(this,arguments)};
_.E(iYG,$6);iYG.prototype.getAssociations=function(){return[]};
iYG.prototype.getTypeName=function(){return"settingEntity"};_.Am_=new _.lk("updateLocalAppSettingCommand");var $Ta=new _.lk("saveImageToDeviceEndpoint");var bYc=new _.lk("shareImageCommand");var HYu=new _.lk("sharingProviderDataCommand");var eJW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(eJW,_.KS);var TQn=[0,_.oh,-1];eJW.prototype.JSC$12804_serializeBinary=JWS(TQn);var stu=_.Ys(TQn);var Vxa=new _.lk("userMentionSuggestionRenderer");var ZYe=new _.lk("liveChatTunnelCommand");var g3f=new _.lk("showSponsorshipsGiftOfferDialogCommand");var IWR=new _.lk("sponsorshipsScrollableShelfViewModel");var ylM=new _.lk("updateUpcomingEventReminderButtonStateCommand");var DGM=new _.lk("upcomingEventReminderButtonStateRenderer");var Ffe=new _.lk("subscribeEndpoint");var R9_=new _.lk("registerTasksCommand");var ONf=new _.lk("hideSheetCommand");var Lfu=new _.lk("hideSnackbarCommand");var Jle=new _.lk("showDialogCommand");_.Ct=new _.lk("showSheetCommand");var wyW=new _.lk("showSnackbarCommand");var vgO=function(){$6.apply(this,arguments)};
_.E(vgO,$6);vgO.prototype.getAssociations=function(){return[]};
vgO.prototype.getTypeName=function(){return"chipEntity"};var SCf=function(){$6.apply(this,arguments)};
_.E(SCf,$6);SCf.prototype.getAssociations=function(){return[]};
SCf.prototype.getTypeName=function(){return"dismissState"};_.gP=new _.lk("avatarViewModel");var toG=new _.lk("badgeViewModel");_.Kb=new _.lk("buttonViewModel");_.UZ=new _.lk("chipViewModel");var PLc=new _.lk("contentPreviewImageViewModel");var Kfn=new _.lk("decoratedAvatarViewModel");_.MiS=new _.lk("engagementBarViewModel");_.UGe=new _.lk("imageBannerViewModel");var rlP=new _.lk("lockupContentMetadataRowExtension");_.jKR=new _.lk("lockupMetadataViewModel");var ogP=new _.lk("lockupViewModel");var Npg=new _.lk("avatarStackViewModel");_.h9P=new _.lk("contentMetadataViewModel");var xGg=function(){$6.apply(this,arguments)};
_.E(xGg,$6);xGg.prototype.getAssociations=function(){return[]};
xGg.prototype.getTypeName=function(){return"pageHeaderEntity"};_.lW_=new _.lk("pageHeaderViewModel");var ubM=new _.lk("snackbarViewModel");var qCc=new _.lk("thumbnailHoverOverlayToggleActionsViewModel");_.r7=new _.lk("toggleButtonViewModel");var Ega=function(){$6.apply(this,arguments)};
_.E(Ega,$6);Ega.prototype.getAssociations=function(){return[]};
Ega.prototype.getTypeName=function(){return"votingEntity"};_.z_5=new _.lk("votingViewModel");var G$g=new _.lk("sectionHeaderViewModel");var Xyf=new _.lk("notifyDropdownOptionSelectedCommand");var bdB=new _.lk("listViewModel");_.BS=new _.lk("listItemViewModel");var QKu=new _.lk("dialogHeaderViewModel");var YCO=function(){$6.apply(this,arguments)};
_.E(YCO,$6);YCO.prototype.getAssociations=function(){return[]};
YCO.prototype.getTypeName=function(){return"dataFreshnessEntity"};var g2B=new _.lk("suspenseViewModel");var fWn=new _.lk("tooltipViewModel");var ngW=function(){$6.apply(this,arguments)};
_.E(ngW,$6);ngW.prototype.getAssociations=function(){return[]};
ngW.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var py_=function(){$6.apply(this,arguments)};
_.E(py_,$6);py_.prototype.getAssociations=function(){return[]};
py_.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var mGG=function(){$6.apply(this,arguments)};
_.E(mGG,$6);mGG.prototype.getAssociations=function(){return[]};
mGG.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.Mon=new _.lk("transcriptSubmitCaptionCorrectionCommand");var z9W=function(){$6.apply(this,arguments)};
_.E(z9W,$6);z9W.prototype.getAssociations=function(){return[]};
z9W.prototype.getTypeName=function(){return"buttonEntity"};var yX4=new _.lk("unpluggedStringRunImage");var k$a=new _.lk("tabViewModel");var dG_=new _.lk("tabbedViewModel");var aWc=function(){$6.apply(this,arguments)};
_.E(aWc,$6);aWc.prototype.getAssociations=function(){return[]};
aWc.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.clg=new _.lk("updateDescriptionAction");var WfM=new _.lk("updateToggleButtonTextAction");var CLz=new _.lk("showFullscreenPlayerControlsCommand");var Bp_=new _.lk("updateVideoMetadataCommand");_.iNu=new _.lk("autoplaySwitchButtonRenderer");var D$;_.AlG=new _.lk("multiMarkersPlayerBarRenderer");D$=new _.lk("chapterRenderer");var $GR=new _.lk("heatMarkerRenderer");var LlA=new _.lk("heatmapRenderer");var bNf=new _.lk("smartSkipPlayerScrimOverlayRenderer");var HNG=new _.lk("timedMarkerDecorationRenderer");var ls5=new _.lk("postWebToNativeMessageCommand");var gv=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(gv,_.KS);gv.prototype.getMethodName=function(){return _.Tp(this,1)};var e9_=[0,_.oh,-2];gv.prototype.JSC$12826_serializeBinary=JWS(e9_);var Tpa=_.Xj(gv,e9_);var Zcc=new _.lk("whitelistEditEndpoint");var gSO=new _.lk("clearUrlParamCommand");var IkP=new _.lk("commerceActionCommand");_.yhM=new _.lk("getPaymentInstrumentsParamsCommand");var D1_=new _.lk("getPaymentsClientTokenCommand");var FFz=new _.lk("googlePaymentBillingCommand");var RGf=new _.lk("googlePaymentPurchaseManagerCommand");_.OFe=new _.lk("logGtmCommand");var LFz=new _.lk("updateCardItemOnClickCommand");_.Jhc=new _.lk("ypcPauseSubscriptionCommand");_.w7c=new _.lk("ypcResumeSubscriptionCommand");var vZn=function(){$6.apply(this,arguments)};
_.E(vZn,$6);vZn.prototype.getAssociations=function(){return[]};
vZn.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var SHz=function(){$6.apply(this,arguments)};
_.E(SHz,$6);SHz.prototype.getAssociations=function(){return[]};
SHz.prototype.getTypeName=function(){return"commerceCartListEntity"};var t9W=function(){$6.apply(this,arguments)};
_.E(t9W,$6);t9W.prototype.getAssociations=function(){return[]};
t9W.prototype.getTypeName=function(){return"iconBadgeEntity"};var P1u=function(){$6.apply(this,arguments)};
_.E(P1u,$6);P1u.prototype.getAssociations=function(){return[]};
P1u.prototype.getTypeName=function(){return"pdpStateEntity"};var KFc=function(){$6.apply(this,arguments)};
_.E(KFc,$6);KFc.prototype.getAssociations=function(){return[]};
KFc.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Z7W=new _.lk("ypcOffersEndpoint");var U1z=new _.lk("cardItemRenderer"),rhn=new _.lk("cardItemTextRenderer");var j2G=new _.lk("commerceCartItemQuantityPickerRenderer");var oZW=new _.lk("linkCardRenderer");var UxB=new _.lk("quantityIncrementerButtonViewModel");var Nm_=new _.lk("quantityIncrementerViewModel");var hGO=new _.lk("themedImageViewModel");_.x1f=new _.lk("ypcCancelRecurrenceEndpoint");var lkP=new _.lk("ypcCompleteTransactionEndpoint");_.uLP=new _.lk("ypcGetCartEndpoint");_.P_=new _.lk("ypcGetOffersEndpoint");_.j1=new _.lk("ypcHandleTransactionEndpoint");var qHR=new _.lk("ypcLogWalletAnalyticDataEndpoint");_.EZg=new _.lk("ypcRedeemCodeEndpoint");var GRe=new _.lk("ypcUpdateFopEndpoint");E2(qH(1),lE(4));nsa((new MessageChannel).port2);var X7M=function(){this.register=new Map},n6t=function(I,y,D){I=I+"_"+y;
oj.register.has(I)?D=oj.register.get(I):(D=D(),oj.register.set(I,D));return D},Q2M=function(I){I=_.J(I.register.values());
for(var y=I.next();!y.done;y=I.next())_.Mv(y.value,"ABORTED")};
X7M.prototype.clear=function(){Q2M(this);this.register.clear()};
var oj=new X7M;var S2e=Date.now().toString();var Kg_=PE5();var ljt={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 YHz;YHz=1;_.TG=function(I){this.veData=I};
_.AC=function(I){return new _.TG({trackingParams:I})};
_.QM=function(I,y,D,F,R,O){var w=YHz++;return new _.TG({veType:I,veCounter:w,elementIndex:D,dataElement:y,youtubeData:F,jspbYoutubeData:R,loggingDirectives:O})};
_.L=_.TG.prototype;
_.L.getAsJson=function(){var I={};this.veData.trackingParams!==void 0?I.trackingParams=this.veData.trackingParams:(I.veType=this.veData.veType,this.veData.veCounter!==void 0&&(I.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(I.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(I.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(I.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(I.isCounterfactual=!0);
return I};
_.L.getAsJspb=function(){var I=new Y$e;this.veData.trackingParams!==void 0?I.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Ih(I,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Ih(I,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Ih(I,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Xm(I,5,!0));if(this.veData.dataElement!==void 0){var y=this.veData.dataElement.getAsJspb();_.mH(I,7,y)}this.veData.youtubeData!==void 0&&_.mH(I,8,this.veData.jspbYoutubeData);
return I};
_.L.toString=function(){return JSON.stringify(this.getAsJson())};
_.L.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.L.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.fv("yt_logging_screen.getRootVeType",Nbe);_.fv("yt_logging_screen.getCurrentCsn",_.VO);_.fv("yt_logging_screen.getCttAuthInfo",Z_);_.fv("yt_logging_screen.setCurrentScreen",_.gU);var fkO=function(){this.events=new Map},nZW=function(I){var y=[];
I=_.J(I.events.values());for(var D=I.next();!D.done;D=I.next())y.push(D.value);return y};
fkO.prototype.clear=function(){this.events.clear()};var m1f=function(){this.logTransport=new p7P;this.loggedEventRegister=new fkO;this.unloggedEventRegister=new fkO;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12863_flushTimer=new _.eT(this.flushInterval);this.JSC$12863_flushTimer.listen("tick",this.flush,!1,this)};
m1f.prototype.flush=function(){if(this.eventsCount){var I={loggedEvents:nZW(this.loggedEventRegister),unloggedEvents:nZW(this.unloggedEventRegister)};if(_.l("export_player_version_to_ytconfig")){var y;(y=_.Pi("PLAYER_CLIENT_VERSION"))?(y=y.split("-")[0].replace(/\./g,""),y=isNaN(Number(y))?"0":y):y="";var D=_.Pi("PLAYER_CLIENT_VERSION");if(D){D=D.split("-");var F="";D.length>1&&(F=D[D.length-1]);D=v6J(F.startsWith("canary_experiment")?"canary":F.startsWith("canary_control")?"control":"none")}else D=
"CLIENT_CANARY_STATE_UNKNOWN";I.dimensions={playerClientVersion:y,playerCanaryState:D}}this.logTransport.flush(I);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12863_flushTimer.enabled&&this.JSC$12863_flushTimer.stop()}};
var M9a=function(I){NE==null&&(NE=new m1f);var y=NE;var D=y.loggedEventRegister;I.dimensions=I.dimensions||{};I.dimensions.csn=_.VO()||"";var F=E6L(I.dimensions).join(";");if(I.records!=null)if(D.events.has(F)){var R;(R=D.events.get(F).records)==null||R.push.apply(R,_.Td(I.records))}else D.events.set(F,I);y.JSC$12863_flushTimer.enabled||y.JSC$12863_flushTimer.start();y.eventsCount++;y.eventsCount>=100&&y.flush()};var p7P=function(){};
p7P.prototype.flush=function(I,y){_.l("enable_client_sli_logging")&&_.Jq("sliEventBatch",I,{sendIsolatedPayload:!!y})};var NE;var kRM;kRM=function(I){var y=zGG;I=I===void 0?{}:I;y=y.name;var D=fjt("SUCCESS");M9a({dimensions:I,records:[{name:y,state:"SLI_STATE_END",status:D}]})};
_.pcq=function(I,y,D,F){this.name=I;this.sliId=y;this.timeoutMs=D;this.statusOnTimeout=F;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.pcq.prototype.getId=function(){return this.sliId};
_.mP=function(I,y){y=y===void 0?{}:y;I.ongoing||(I.ongoing=!0,I.dimensions=y,I.logSliId=gRe(),M9a({dimensions:I.dimensions,records:[{name:I.name,state:"SLI_STATE_START",sliId:I.logSliId}]}),I.timeoutMs>0&&(I.timeoutHandle=setTimeout(function(){_.Mv(I,I.statusOnTimeout)},I.timeoutMs)))};
_.Mv=function(I,y){I.ongoing&&(I.timeoutMs>0&&clearTimeout(I.timeoutHandle),I.ongoing=!1,y={dimensions:I.dimensions,records:[{name:I.name,status:fjt(y),state:"SLI_STATE_END",sliId:I.logSliId}]},oj.register.delete(I.name+"_"+I.sliId),M9a(y))};var zGG=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var d1P=function(){$6.apply(this,arguments)};
_.E(d1P,$6);d1P.prototype.getAssociations=function(){return[]};
d1P.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var akc=new _.lk("highlightTextDecoratorColorMapExtension");var chM=new _.lk("styleRunColorMapExtension");var cwH=_.UI(["data-"]),Bbt={};var AwW={};var hz=function(I){this.wrappedPromise_=I===void 0?null:I;this.state_=0;this.JSC$12894_value_=null};
hz.prototype.then=function(I,y,D){return this.wrappedPromise_?this.wrappedPromise_.then(I,y,D):this.state_===1&&I?(I=I.call(D,this.JSC$12894_value_))&&typeof I.then==="function"?I:_.xj(I):this.state_===2&&y?(I=y.call(D,this.JSC$12894_value_))&&typeof I.then==="function"?I:_.WFM(I):this};
hz.prototype.getValue=function(){return this.JSC$12894_value_};
hz.prototype.isRejected=function(){return this.state_==2};
cIg(hz);_.WFM=function(I){var y=new hz;I=I===void 0?null:I;y.state_=2;y.JSC$12894_value_=I===void 0?null:I;return y};
_.xj=function(I){var y=new hz;I=I===void 0?null:I;y.state_=1;y.JSC$12894_value_=I===void 0?null:I;return y};var ObC="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var C1G=["load","abort","error"],lW=function(I,y,D){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12914_maxAspectRatio_=I;this.disableAnimation_=y===void 0?!1:y;this.disableExifRotation_=D===void 0?!1:D;this.JSC$12914_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12914_reject_=this.resolve_=null};
lW.prototype.transform=function(I){var y=this;this.mime_=I.type;ud(EYR(I),this.dataUrlRead_,this.readError_,this);ud(qEu(I.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(D,F){y.resolve_=D;y.JSC$12914_reject_=F})};
lW.prototype.dataUrlRead_=function(I){this.dataUrl_=I;this.angle_!=null&&Bmg(this)};
lW.prototype.exifRead_=function(I){if(this.disableExifRotation_)this.angle_=0;else{a:if(I=new DataView(I),I.byteLength<2||I.getUint16(0)!==65496)I=-2;else{for(var y=2,D=I.byteLength;y<D;){var F=I.getUint16(y),R=I.getUint16(y+2);if(F===65505){y+=4;F=I.getUint32(y);R=I.getUint16(y+4);if(F!==1165519206||R!==0)break;y+=6;F=I.getUint16(y)===18761;y+=I.getUint32(y+4,F);R=I.getUint16(y,F);y+=2;for(var O=0;O<R;O++){if(I.getUint16(y,F)===274){y+=8;I=I.getUint16(y,F);break a}y+=12}}else if(F>>8!==255)break;
else y+=R+2}I=-1}switch(I){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&&Bmg(this)};
lW.prototype.readError_=function(){this.JSC$12914_reject_()};
var Bmg=function(I){Ib(I.JSC$12914_image_,C1G,I.completeTransform_,!1,I);I.JSC$12914_image_.src=_.VA(I.dataUrl_).toString();I.JSC$12914_image_.src!=sx.toString()&&I.JSC$12914_image_.src.substr(0,11)==="data:image/"||I.JSC$12914_reject_()};
lW.prototype.completeTransform_=function(){if(this.JSC$12914_image_.src!=sx.toString()){var I=_.VA(this.dataUrl_),y=this.JSC$12914_image_.naturalHeight?this.JSC$12914_image_.naturalWidth/this.JSC$12914_image_.naturalHeight:null;this.invalidAspectRatio=y>this.JSC$12914_maxAspectRatio_||y<1/this.JSC$12914_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var D=this.JSC$12914_image_.naturalWidth,F=this.JSC$12914_image_.naturalHeight,R=y=0,O=this.JSC$12914_image_.naturalHeight?this.JSC$12914_image_.naturalWidth/
this.JSC$12914_image_.naturalHeight:null;O>this.JSC$12914_maxAspectRatio_?(D=this.JSC$12914_maxAspectRatio_*F,y=(D-this.JSC$12914_image_.naturalWidth)/2,this.cropped=!0):O<1/this.JSC$12914_maxAspectRatio_?(F=this.JSC$12914_maxAspectRatio_*D,R=(F-this.JSC$12914_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)O=D,D=F,F=O,O=y,y=R,R=O;switch(this.angle_){case 90:R-=D;break;case 180:y-=D;R-=F;break;case 270:y-=
F}this.cropped||this.angle_%360!==0?(I=document.createElement("canvas"),I.width=D||1,I.height=F||1,this.JSC$12914_image_.naturalWidth&&this.JSC$12914_image_.naturalHeight&&(D=I.getContext("2d"),D.rotate(Math.PI/180*this.angle_),D.drawImage(this.JSC$12914_image_,y,R,this.JSC$12914_image_.naturalWidth,this.JSC$12914_image_.naturalHeight)),this.transformedData=_.VA(I.toDataURL(this.mime_))):this.transformedData=I}else this.transformedData=I;this.resolve_(this)}};var uW=function(I,y){_.uS.call(this,I);this.value=y};
_.E(uW,_.uS);
var qE=function(I,y,D,F,R,O,w){w=w===void 0?!1:w;_.Zw.call(this);var v=this;this.JSC$12919_url_=I;this.channelId_=y;this.maxFileSizeMb_=D;this.JSC$12919_maxAspectRatio_=F;this.dropZoneEl_=R;this.rejectInvalidAspectRatio_=w;this.selectButtonEl_=O;this.JSC$12919_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new mg(this.dropZoneEl_);this.selectOverlay_=new MH(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12919_image_=this.transfer_=null;this.handler_=new _.H5(this);_.pW(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(O,"click",function(){v.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.E(qE,_.Zw);qE.prototype.disposeInternal=function(){for(var I=this.selectButtonEl_.nextSibling;I&&I.parentNode&&I.tagName=="INPUT";)I.parentNode.removeChild(I),I=this.selectButtonEl_.nextSibling;this.cancel();_.Zw.prototype.disposeInternal.call(this)};
qE.prototype.uploadPromise=function(){if(this.JSC$12919_image_==null)return null;this.uploadPromise_||iFf(this);return this.uploadPromise_};
qE.prototype.cancel=function(){Ahg(this);this.JSC$12919_image_=null};
var Ahg=function(I){I.transfer_&&I.transfer_.cancel();I.transfer_=null;I.uploadPromise_=null;I.resolve_=null;I.JSC$12919_reject_=null},iFf=function(I){Ahg(I);
I.transfer_=_.SsG(I.JSC$12919_url_,{"X-YouTube-ChannelId":I.channelId_},I.JSC$12919_image_);I.handler_.listenOnce(I.transfer_,"l",I.JSC$12921_onUploadComplete_);I.handler_.listenOnce(I.transfer_,"n",I.onUploadError_);I.transfer_.run();I.uploadPromise_=new Promise(function(y,D){I.resolve_=y;I.JSC$12919_reject_=D})};
_.L=qE.prototype;_.L.onChange_=function(I){I.files.length&&(this.JSC$12919_image_=I.files[0],this.JSC$12919_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12919_image_=null,this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(iFf(this),(new lW(this.JSC$12919_maxAspectRatio_)).transform(this.JSC$12919_image_).then((0,_.iD)(this.onPreview_,this),(0,_.iD)(this.onPreviewError_,this))))};
_.L.onPreview_=function(I){if(I.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12919_image_=null),this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;I.cropped&&this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.CHANGE_EVENT",I.transformedData))};
_.L.onPreviewError_=function(){this.JSC$12919_image_=null;this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.L.onHover_=function(I){I.stopPropagation();I.preventDefault();if(I.type==="dragover")I=!0;else if(I.type==="dragleave")I=!1;else return;this.dispatchEvent(new uW("yt.comments.ImageUploadOverlay.HOVER_EVENT",I))};
_.L.JSC$12921_onUploadComplete_=function(){var I=(0,_.vf_)(this.transfer_.getResponseText());this.resolve_(I.encryptedBlobId)};
_.L.onUploadError_=function(){this.JSC$12919_reject_();Ahg(this)};var $1e=function(I){I=I||{};var y={},D={};this.url=I.url||"";this.args=I.args||_.e$.clone(y);this.assets=I.assets||{};this.attrs=I.attrs||_.e$.clone(D);this.fallback=I.fallback||null;this.fallbackMessage=I.fallbackMessage||null;this.html5=!!I.html5;this.disable=I.disable||{};this.loaded=!!I.loaded;this.messages=I.messages||{}};
$1e.prototype.clone=function(){var I=new $1e,y;for(y in this)if(this.hasOwnProperty(y)){var D=this[y];_.RT(D)=="object"?I[y]=_.e$.clone(D):I[y]=D}return I};var bFg,HFG,eGu,rT,s2O,V9M,ZF_,gZc,IVO,yag,DDG,Fca,RoM,Opz,Lc_,JaM,wjn,vxu,SKe,twn,PQc,KcW,UDP,raf,jFn,oxW,NOP,hoa,xDG,fzo,lVO,uA_,qKO,ExM,G3e,Xju,QFO,YKg,fVn,nxz,YeL,pjG,mDW,MwW,zof,k3c,dDa,aVn,ca_,Wcc,CQe,BOc,ipc,AaP,$DR,bpn,EZ,HpM,eoR,TOO,sFn,Vwn,Zp_,gx_,Ine,yi_,DcR,FsW,RyM,O1M,LsW,JiG,woc,vbM,Sdc,t4n,X64,P$e,Ksa,UcM,ria,jl_,obu,NlW,hyM,xca,ln_,uJc,qde,EbP,G7f,Xoa,QlO,YdO,fng,nbu,poz,mcc,M4M,zyR,k7c,dc_;bFg=["account/accounts_list"];HFG=["acknowledge_channel_tou_strike"];eGu=["notification/add_upcoming_event_reminder"];
_.Tmc=["att/get"];rT=["browse","music/browse","streaming_browse","unplugged/browse"];s2O=["channel/claim_legacy_youtube_channel"];V9M=["history/clear_search_history"];ZF_=["history/clear_watch_history"];gZc=["comment/perform_comment_action"];IVO=["comment/get_comment_replies"];yag=["ypc/commerce_action"];DDG=["backstage/create_post"];Fca=["live/create_broadcast"];RoM=["channel/create_channel"];Opz=["comment/create_comment_reply"];Lc_=["comment/create_comment"];JaM=["live_chat/create_poll"];wjn=["playlist/create"];
vxu=["decorate_message"];SKe=["live_chat/delete_message"];twn=["playlist/delete"];PQc=["video/delete"];KcW=["like/dislike"];UDP=["dismissal/dismiss"];raf=["flag/flag"];jFn=["flow"];oxW=["account/account_menu"];NOP=["playlist/get_add_to_playlist"];hoa=["get_answer"];xDG=["channel/get_channel_creation_form"];fzo=["offline/get_download_action"];lVO=["kids/get_kids_blocklist_picker"];uA_=["live_chat/get_item_context_menu"];qKO=["live_chat/get_live_chat_message_buy_flow"];ExM=["live_chat/get_live_chat_replay"];
G3e=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Xju=["live_chat/get_live_chat_super_sticker_buy_flow"];QFO=["notification/get_notification_menu"];YKg=["playlist/get_settings_editor"];fVn=["backstage/get_post_video_preview"];nxz=["account/get_profile_card"];YeL=["share/get_share_panel"];pjG=["share/get_sharing_provider_data"];mDW=["get_survey"];MwW=["notification/get_unseen_count"];zof=["get_user_mention_suggestions"];k3c=["get_watch"];dDa=["guide"];
aVn=["feedback"];ca_=["kids/update_blacklist"];Wcc=["like/like"];CQe=["live_chat/live_chat_action"];BOc=["live_chat/manage_user"];ipc=["video_manager/metadata_update"];AaP=["live_chat/moderate"];$DR=["notification/modify_channel_preference"];bpn=["notification/opt_out"];EZ=["get_panel","get_posts_by_host_panel"];HpM=["player"];eoR=["browse/edit_playlist"];TOO=["notification/record_interactions"];sFn=["reel/reel_item_watch"];Vwn=["reel/reel_watch_sequence"];Zp_=["like/removelike"];gx_=["notification/remove_upcoming_event_reminder"];
Ine=["flag/get_form"];yi_=["miniapp/report_value"];DcR=["navigation/resolve_url"];FsW=["channel/reveal_business_email"];RyM=["in_video/search"];O1M=["search","sfv/search","unplugged/search"];LsW=["live_chat/send_message"];JiG=["live_chat/send_live_chat_vote"];woc=["account/set_setting"];vbM=["submit_caption_correction"];Sdc=["submit_form"];t4n=["subscription/subscribe"];X64=["get_transcript"];P$e=["resolve_location","unplugged/resolve_location"];Ksa=["subscription/unsubscribe"];UcM=["backstage/update_post"];
ria=["channel_edit/update_channel_page_settings"];jl_=["comment/update_comment_reply"];obu=["comment/update_comment"];NlW=["comment/update_comments_settings"];hyM=["creator/update_creator_channel"];xca=["pdg/update_enablement"];ln_=["updated_metadata"];uJc=["channel_edit/validate_channel_handle"];qde=["verify_age"];EbP=["next","unplugged/watch_next"];G7f=["whitelist/edit"];Xoa=["ypc/cancel_recurrence"];QlO=["ypc/complete_transaction"];YdO=["ypc/get_cart"];fng=["ypc/get_fix_instrument_params"];
nbu=["ypc/get_offers"];poz=["ypc/get_payment_instruments_params"];mcc=["ypc/handle_transaction"];M4M=["ypc/log_payment_server_analytics"];zyR=["ypc/pause_subscription"];k7c=["ypc/redeem_code"];dc_=["ypc/resume_subscription"];var anz=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,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,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,
25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,
36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,
254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,
273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,
258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,
262799,262802,267580,262798,267695,267581,273232,82039];var pE=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.fv("yt.msgs_",pE);var GV=new _.uk("ACTION_ROUTER_TOKEN");_.X4=function(){this.autonavState_=_.l("kevlar_is_pupi_enabled")?2:ojq()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.X4.prototype.getState=function(){return this.autonavState_};
_.X4.prototype.pause=function(I){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=I):this.autonavState_==1&&(this.disabledAutonavPauseReason_=I)};
_.X4.prototype.setState=function(I,y,D){y&&(this.autoplayChangedByUser=!0);y=this.autonavState_===3||I===3;this.autonavState_!=I&&(this.autonavState_=I,I!=3&&_.N7J(I==2),I=_.l("kevlar_is_pupi_enabled")?D||y:!0,_.uK.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,I,D))};
_.X4.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.uy(_.X4);var Qk=function(){this.wI=!1};var Yj={},ffW=(Yj.auto_search="LATENCY_ACTION_AUTO_SEARCH",Yj.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Yj.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Yj.app_startup="LATENCY_ACTION_APP_STARTUP",Yj.browse="LATENCY_ACTION_BROWSE",Yj.cast_splash="LATENCY_ACTION_CAST_SPLASH",Yj.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Yj.channels="LATENCY_ACTION_CHANNELS",Yj.chips="LATENCY_ACTION_CHIPS",Yj.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Yj.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Yj.editor="LATENCY_ACTION_EDITOR",Yj.embed="LATENCY_ACTION_EMBED",Yj.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Yj.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Yj.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Yj.explore="LATENCY_ACTION_EXPLORE",Yj.favorites="LATENCY_ACTION_FAVORITES",Yj.home="LATENCY_ACTION_HOME",Yj.inboarding="LATENCY_ACTION_INBOARDING",Yj.landing="LATENCY_ACTION_LANDING",Yj.learning="LATENCY_ACTION_LEARNING",
Yj.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Yj.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Yj.library="LATENCY_ACTION_LIBRARY",Yj.live="LATENCY_ACTION_LIVE",Yj.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Yj.management="LATENCY_ACTION_MANAGEMENT",Yj.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Yj.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Yj.onboarding="LATENCY_ACTION_ONBOARDING",Yj.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Yj.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Yj.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Yj.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Yj.prebuffer="LATENCY_ACTION_PREBUFFER",Yj.prefetch="LATENCY_ACTION_PREFETCH",Yj.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Yj.profile_switcher="LATENCY_ACTION_LOGIN",Yj.projects="LATENCY_ACTION_PROJECTS",Yj.reel_watch="LATENCY_ACTION_REEL_WATCH",Yj.results="LATENCY_ACTION_RESULTS",Yj.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Yj.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Yj.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Yj.review="LATENCY_ACTION_REVIEW",Yj.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Yj.search_ui="LATENCY_ACTION_SEARCH_UI",Yj.search_suggest="LATENCY_ACTION_SUGGEST",Yj.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Yj.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Yj.seek="LATENCY_ACTION_PLAYER_SEEK",Yj.settings="LATENCY_ACTION_SETTINGS",Yj.store="LATENCY_ACTION_STORE",
Yj.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Yj.tenx="LATENCY_ACTION_TENX",Yj.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Yj.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Yj.watch="LATENCY_ACTION_WATCH",Yj.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Yj["watch,watch7"]="LATENCY_ACTION_WATCH",Yj["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Yj["watch,watch7ad"]="LATENCY_ACTION_WATCH",Yj["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Yj.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Yj.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Yj.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Yj.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Yj.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Yj.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Yj.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Yj.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Yj),cif=0;var eeo=function(I,y){eV.call(this,1,arguments);this.timer=y};
_.E(eeo,eV);var HbJ=new WhH("aft-recorded",eeo);var M1e=_.Ft.ytLoggingGelSequenceIdObj_||{};_.fv("ytLoggingGelSequenceIdObj_",M1e);var fb=_.Ft.ytLoggingLatencyUsageStats_||{};_.fv("ytLoggingLatencyUsageStats_",fb);var nb=function(){this.cleanupJob=0},dEA=function(){nb.instance||(nb.instance=new nb);
return nb.instance};
_.L=nb.prototype;_.L.baseline=function(I,y,D){pb(this,"baseline_"+I)||_.Jq("latencyActionBaselined",{clientActionNonce:I},{timestamp:y,cttAuthInfo:D})};
_.L.tick=function(I,y,D,F){pb(this,"tick_"+I+"_"+y)||_.Jq("latencyActionTicked",{tickName:I,clientActionNonce:y},{timestamp:D,cttAuthInfo:F})};
_.L.info=function(I,y,D){var F=Object.keys(I).join("");pb(this,"info_"+F+"_"+y)||(I=Object.assign({},I),I.clientActionNonce=y,_.Jq("latencyActionInfo",I,{cttAuthInfo:D}))};
_.L.jspbInfo=function(I,y,D){for(var F="",R=0;R<cC(I).length;R++)cC(I)[R]!==void 0&&(F=R===0?F.concat(""+R):F.concat("_"+R));pb(this,"info_"+F+"_"+y)||(_.BB(I,2,y),y={cttAuthInfo:D},D=_.l("jspb_sparse_encoded_pivot")?new If([{}]):new If,_.Mg(D,7,$lg,I),ze_("latencyActionInfo",D,y))};
_.L.span=function(I,y,D){var F=Object.keys(I).join("");pb(this,"span_"+F+"_"+y)||(I.clientActionNonce=y,_.Jq("latencyActionSpan",I,{cttAuthInfo:D}))};
var pb=function(I,y){fb[y]=fb[y]||{count:0};var D=fb[y];D.count++;D.time=(0,_.m_)();I.cleanupJob||(I.cleanupJob=_.y9(_.w2,function(){var F=(0,_.m_)(),R;for(R in fb)fb[R]&&F-fb[R].time>6E4&&delete fb[R];I&&(I.cleanupJob=0)},5E3));
return D.count>5?(D.count===6&&Math.random()*1E5<1&&(D=new _.g6("CSI data exceeded logging limit with key",y.split("_")),y.indexOf("plev")>=0||_.tq(D)),!0):!1};var WsM,C$O;WsM=window;C$O=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.$I=WsM.performance||WsM.mozPerformance||WsM.msPerformance||WsM.webkitPerformance||new C$O;var bbH=!1,cz_=!1,T7e=(0,_.iD)(_.$I.clearResourceTimings||_.$I.webkitClearResourceTimings||_.$I.mozClearResourceTimings||_.$I.msClearResourceTimings||_.$I.oClearResourceTimings||_.Hq,_.$I);var n$4=_.r6(function(I,y,D,F,R,O,w){if(!_.l("web_csi_action_sampling_enabled")||!_.Wg(O).actionDisabled){var v=w==null?void 0:w.spanStatus;w=w==null?void 0:w.rootSpanNonce;var P=_.CE(O);if(P.gelSpans)P.gelSpans[I]=!0;else{var K={};P.gelSpans=(K[I]=!0,K)}cif++;I={spanName:I,spanLengthUsec:String(Math.round(y*1E3)),spanNonce:cif};w&&(I.rootSpanNonce=w);v&&(I.spanStatus=v);F&&(I.spanInfo=F);R&&(I.parentSpanNonce=R);D&&(I.spanStartTimeUsec=String(Math.round(D*1E3)));_.Bg(O||"").span[String(I.spanName)]=
I;D=_.CE(O);D.gelSpans||(D.gelSpans={});_.y_(D.gelSpans,I);D=GVS(O);O=_.Wg(O).cttAuthInfo;dEA().span(I,D,O);return I.spanNonce}}),BlR=window;
BlR.ytcsi&&(BlR.ytcsi.infoGel=_.ek,BlR.ytcsi.tick=_.V_);var LNo=function(I){eV.call(this,1,arguments);this.csn=I};
_.E(LNo,eV);var $XC=new WhH("screen-created",LNo),uD_=[],OJA=lIe,q3H=0,D5=new Map,Jxe=new Map,wfA=new Map;var Gy5=Symbol("Df"),KC=new WeakMap;var m7=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},B4=function(){m7.instance||(m7.instance=new m7);
return m7.instance};
_.L=m7.prototype;_.L.setClient=function(I){this.client=I};
_.L.JSC$13003_newScreen=function(){this.clear();this.csn=_.VO()};
_.L.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.L.reportShown=function(I,y,D,F){var R=this.JSC$13003_getTrackingParams(I),O=I.visualElement?I.visualElement:R;y=this.shownElements.has(O);var w=this.visibleState.get(O);this.shownElements.add(O);this.visibleState.set(O,!0);I.impressionLog&&!y&&I.impressionLog();if(R||I.visualElement)if(D=i1M(this,I,D))if(O=Aic(this,I),ME(this,I)||O){R=I.visualElement?I.visualElement:_.AC(R);var v=I.interactionLoggingClientData;O||y?ME(this,I)&4?w||jJH(this.client,D,R,v):ME(this,I)&1&&!y&&KN5(this.client,D,R,v,F):
KN5(this.client,D,R,v,F)}};
_.L.reportHidden=function(I,y,D,F){var R=this.JSC$13003_getTrackingParams(I),O=I.visualElement?I.visualElement:R;y=this.hiddenElements.has(O);var w=this.visibleState.get(O);this.hiddenElements.add(O);this.visibleState.set(O,!1);if(w===!1)return!0;if(!R&&!I.visualElement)return!1;D=i1M(this,I,D);if(!D||!ME(this,I)&&Aic(this,I))return!1;R=I.visualElement?I.visualElement:_.AC(R);ME(this,I)&8?oDe(this.client,D,R,void 0,void 0,F):ME(this,I)&2&&!y&&(I=this.client,F=yi({cttAuthInfo:Z_(D)||void 0,automatedLogEventSource:F},
D),y={csn:D,ve:R.getAsJson(),eventType:2},D==="UNDEFINED_CSN"?RQ("visualElementHidden",F,y):I?ON("visualElementHidden",y,I,F):_.Jq("visualElementHidden",y,F));return!0};
_.L.JSC$13003_getTrackingParams=function(I){var y=this.getData(I),D,F;if(_.l("il_use_view_model_logging_context")&&(y==null?0:(D=y.context)==null?0:(F=D.loggingContext)==null?0:F.loggingDirectives))return y.context.loggingContext.loggingDirectives.trackingParams||"";var R,O;if(y==null?0:(R=y.rendererContext)==null?0:(O=R.loggingContext)==null?0:O.loggingDirectives)return y.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(y==null?0:y.loggingDirectives)return y.loggingDirectives.trackingParams||
"";var w;return((w=I.veContainer)==null?0:w.trackingParams)?I.veContainer.trackingParams:(y==null?void 0:y.trackingParams)||""};
_.L.JSC$13003_elementShouldLogGesture=function(I,y){I=this.getData(I);return!!((Math.floor(Number(I&&I.loggingDirectives&&I.loggingDirectives.gestures&&I.loggingDirectives.gestures.types||""))||0)&y)};
_.L.JSC$13003_getNearestParentVe=function(I){var y=this.JSC$13003_getTrackingParams(I);return I.visualElement?I.visualElement:y?_.AC(y):I.parentElement?this.JSC$13003_getNearestParentVe(I.parentElement):null};
var i1M=function(I,y,D){var F=_.VO(D);return I.csn===null||F===I.csn||D?F:(I=new _.g6("VisibilityLogger called before newScreen",{caller:y.tagName,previous_csn:I.csn,current_csn:F}),_.tq(I),null)};
m7.prototype.getData=function(I){var y,D=I.data||((y=I.props)==null?void 0:y.data);if(!D||I.isWebComponentWrapper){var F;D=(F=KC.get(I))==null?void 0:F[Gy5]}return D};
var Aic=function(I,y){var D;return!((D=I.getData(y))==null||!D.loggingDirectives)},ME=function(I,y){I=I.getData(y);
return Math.floor(Number(I&&I.loggingDirectives&&I.loggingDirectives.visibility&&I.loggingDirectives.visibility.types||""))||1};var zV;zV=function(){};
_.a6=function(){zV.instance||(zV.instance=new zV);return zV.instance};
zV.prototype.setClient=function(I){_.r6(B4().setClient).bind(B4())(I)};
_.$cu=function(){_.a6();_.r6(B4().JSC$13003_newScreen).bind(B4())()};
zV.prototype.clear=function(){_.r6(B4().clear).bind(B4())()};
zV.prototype.reportShown=function(I,y,D,F){_.r6(B4().reportShown).bind(B4())(I,y,D,F)};
zV.prototype.reportHidden=function(I,y,D,F){return _.r6(B4().reportHidden).bind(B4())(I,y,D,F)};
var abJ=function(I,y){return _.r6(B4().JSC$13003_getTrackingParams).bind(B4())(y)},XeB=function(I,y){return _.r6(B4().JSC$13003_getNearestParentVe).bind(B4())(y)};var kj,b1a;kj=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};
_.W4=function(){kj.instance||(kj.instance=new kj);return kj.instance};
kj.prototype.setClient=function(I){this.client=I};
b1a=function(I,y,D){D=D===void 0?{}:D;_.r6(function(){var F,R,O,w=((F=_.u(y==null?void 0:y.commandMetadata,_.nE))==null?void 0:F.rootVe)||((R=_.u(y==null?void 0:y.commandMetadata,qZ_))==null?void 0:(O=R.screenVisualElement)==null?void 0:O.uiType);if(w){F=_.u(y==null?void 0:y.commandMetadata,xTc);if(F==null?0:F.parentTrackingParams){var v=_.AC(F.parentTrackingParams);if(F.parentCsn)var P=F.parentCsn}else D.clickedVisualElement?v=D.clickedVisualElement:y.clickTrackingParams&&(v=_.AC(y.clickTrackingParams));
a:{F=_.u(y,_.t9);R=_.u(y,JaL);if(F){if(R=heo(F,"VIDEO")){F={token:R,videoId:F.videoId};break a}}else if(R&&(F=heo(R,"PLAYLIST"))){F={token:F,playlistId:R.playlistId};break a}F=void 0}D=Object.assign({},{cttAuthInfo:F,parentCsn:P},D);if(_.l("expectation_logging")){var K;D.loggingExpectations=((K=_.u(y==null?void 0:y.commandMetadata,qZ_))==null?void 0:K.loggingExpectations)||void 0}_.d7(I,w,v,D)}else _.tq(new _.g6("Error: Trying to create a new screen without a rootVeType",y))})()};
_.d7=function(I,y,D,F){F=F===void 0?{}:F;_.r6(function(){anz.includes(y)||(_.tq(new _.g6("createClientScreen() called with a non-page VE",y)),y=83769);F.isHistoryNavigation||(I.forwardHistoryStack=[],I.backHistoryStack.push({rootVe:y,key:F.key||""}));I.graftQueue=[];I.stateChangedQueue=[];F.dataPromises?H1e(I,y,D,F):eyg(I,y,D,F)})()};
_.TlM=function(I,y,D){D=D===void 0?0:D;_.r6(function(){y.then(function(F){I.pendingScreenCreation.has(D)&&I.pendingScreenFn&&I.pendingScreenFn();var R=_.VO(D),O=_.s_(D);if(R&&O){var w={automatedLogEventSource:3},v;(F==null?0:(v=F.response)==null?0:v.trackingParams)&&Fw(I.client,R,O,_.AC(F.response.trackingParams),!1,w);var P;(F==null?0:(P=F.playerResponse)==null?0:P.trackingParams)&&Fw(I.client,R,O,_.AC(F.playerResponse.trackingParams),!1,w)}})})()};
kj.prototype.graftServerVe=function(I,y,D){var F=this;return _.r6(function(){var R=_.AC(I);_.aj(F,R,y,D);return R})()};
_.QNo=function(I,y,D,F){return _.l("enable_client_ve_spec")&&y.clientVeSpec?(y=_.QM(y.clientVeSpec.uiType,void 0,y.clientVeSpec.elementIndex,y.clientVeSpec.clientYoutubeData,void 0,y),_.aj(I,y,D,F)?y:null):y.trackingParams?I.graftServerVe(y.trackingParams,D,F):null};
_.c4=function(I,y,D,F){return _.r6(function(){if(!y.veType)return _.Sb(new _.g6("Error: Trying to graft a client VE without a veType.")),null;if(y.visibilityTypes){var R=y.visibilityTypes.reduce(function(O,w){return O|w});
R={visibility:{types:String(R)}}}R=_.QM(y.veType,y.visualElement,y.elementIndex,y.clientYouTubeData,void 0,R);return _.aj(I,R,D,F)?R:null})()};
_.aj=function(I,y,D,F){F=F===void 0?0:F;return _.r6(function(){if(I.pendingScreenCreation.has(F))return I.graftQueue.push([y,D]),!0;var R=_.VO(F),O=D||_.s_(F);if(R&&O){if(_.l("combine_ve_grafts")){var w=I.cachedVisualElements.get(O.toString());w?w.push(y):(I.cachedRootVisualElements.set(O.toString(),O),I.cachedVisualElements.set(O.toString(),[y]));I.attachTimeout||(I.attachTimeout=_.y9(_.w2,function(){slP(I,R)},1200))}else Fw(I.client,R,O,y);
return!0}return!1})()};
_.c0=function(I,y,D){D=D===void 0?0:D;var F=I.recurringGrafts.get(D)||new Map;if(_.l("smarter_ve_dedupping"))for(var R=Array.from(F.keys()),O=0;O<R.length;O++){var w=void 0,v=void 0;var P=y;var K=R[O];K.isClientVe()&&P.isClientVe()?(w=P.getAsJson(),v=K.getAsJson(),P=w.veType!==v.veType||w.elementIndex!==v.elementIndex||w.dataElement!==v.dataElement||P.getLoggingDirectives()!==K.getLoggingDirectives()?!1:!0):P=K.veData.trackingParams!==void 0&&P.veData.trackingParams!==void 0?((v=P.veData)==null?void 0:
v.trackingParams)===((w=K.veData)==null?void 0:w.trackingParams):!1;if(P)return}else if(F.has(y))return;F.set(y,void 0);I.recurringGrafts.set(D,F);_.VO(D)==="UNDEFINED_CSN"||I.pendingScreenCreation.has(D)||_.aj(I,y,void 0,D)};
_.W0=function(I,y,D,F){F=_.VO(F===void 0?0:F);if(!F)return!1;hSC(I.client,F,y,D);return!0};
_.Cb=function(I,y,D,F){if(!y)return!1;F=_.VO(F===void 0?0:F);if(!F)return!1;hSC(I.client,F,_.AC(y),D);return!0};
_.OP=function(I,y){var D=y.getScreenLayer&&y.getScreenLayer();if(y.visualElement)return _.W0(I,y.visualElement,void 0,D);y=abJ(_.a6(),y);return _.Cb(I,y,void 0,D)};
kj.prototype.clickCommand=function(I,y,D){return _.Cb(this,I.clickTrackingParams,y,D===void 0?0:D)};
kj.prototype.stateChanged=function(I,y,D){this.visualElementStateChanged(_.AC(I),y,D===void 0?0:D)};
kj.prototype.visualElementStateChanged=function(I,y,D){D=D===void 0?0:D;D===0&&this.pendingScreenCreation.has(D)?this.stateChangedQueue.push([I,y]):this.logStateChanged(I,y,D)};
kj.prototype.logStateChanged=function(I,y,D){D=D===void 0?0:D;var F=_.VO(D);I=I||_.s_(D);return F&&I?(xF_(this.client,F,I,y),!0):!1};
var H1e=function(I,y,D,F){F=F===void 0?{}:F;I.pendingScreenCreation.add(F.layer||0);I.pendingScreenFn=function(){eyg(I,y,D,F);var w=_.s_(F.layer);if(w){for(var v=_.J(I.graftQueue),P=v.next();!P.done;P=v.next())P=P.value,_.aj(I,P[0],P[1]||w,F.layer);w=_.J(I.stateChangedQueue);for(v=w.next();!v.done;v=w.next())v=v.value,I.logStateChanged(v[0],v[1])}};
D||_.VO(F.layer)||I.pendingScreenFn();if(F.dataPromises)for(var R=_.J(F.dataPromises),O=R.next();!O.done;O=R.next())_.TlM(I,O.value,F.layer);else _.vu(Error("Ef"))},eyg=function(I,y,D,F){F=F===void 0?{}:F;
var R=void 0;F.layer||(F.layer=0);R=F.parentLayer!==void 0?F.parentLayer:F.layer;var O=_.VO(R);R=_.s_(R);var w=D||R,v;w&&(F.parentCsn!==void 0?v={clientScreenNonce:F.parentCsn,visualElement:w}:O&&O!=="UNDEFINED_CSN"&&(v={clientScreenNonce:O,visualElement:w}));var P,K=_.Pi("EVENT_ID");O==="UNDEFINED_CSN"&&K&&(P={servletData:{serializedServletEventId:K}});_.l("combine_ve_grafts")&&O&&slP(I,O);_.l("no_client_ve_attach_unless_shown")&&w&&O&&P3C(w,O);try{var r=_.vDC(I.client,y,v,F.csnToClone,F.cttAuthInfo,
P,F.implicitGestureType,void 0,F.loggingExpectations,F.automatedLogEventSource)}catch(x){_.Pu(x,{rootVeType:y,rootVe:R,parentVisualElement:D,currentCsn:O,parentEl:v,csnToClone:F.csnToClone});_.vu(x);return}_.gU(r,y,F.layer,F.cttAuthInfo);O&&O!=="UNDEFINED_CSN"&&R&&!ulo(O)&&oDe(I.client,O,R,!0);I.backHistoryStack[I.backHistoryStack.length-1]&&!I.backHistoryStack[I.backHistoryStack.length-1].csn&&(I.backHistoryStack[I.backHistoryStack.length-1].csn=r||"");_.ek({clientScreenNonce:r});_.$cu();var N=_.s_(F.layer);
O&&O!=="UNDEFINED_CSN"&&N&&_.l("music_web_mark_root_visible")&&_.J_(r,N);I.pendingScreenCreation.delete(F.layer||0);I.pendingScreenFn=void 0;var h;(h=I.recurringGrafts.get(F.layer))==null||h.forEach(function(x,q){x?_.aj(I,q,x,F.layer):N&&_.aj(I,q,N,F.layer)});
V4z(I)},V4z=function(I){for(var y=0;y<I.afterNewScreenOneOffJobs.length;y++){var D=I.afterNewScreenOneOffJobs[y];
try{D()}catch(F){_.vu(F)}}for(y=I.afterNewScreenOneOffJobs.length=0;y<I.afterNewScreenRecurringJobs.length;y++){D=I.afterNewScreenRecurringJobs[y];try{D()}catch(F){_.vu(F)}}},slP=function(I,y){if(y===void 0)for(var D=xH4(),F=0;F<D.length;F++)D[F]!==void 0&&slP(I,D[F]);
else I.cachedVisualElements.forEach(function(R,O){(O=I.cachedRootVisualElements.get(O))&&S3C(I.client,y,O,R)}),I.cachedVisualElements.clear(),I.cachedRootVisualElements.clear(),I.attachTimeout=void 0};var B0=function(I){I=I===void 0?{layer:0}:I;this.wI=!1;this.createScreenConfig=I;I={};this.fCx=(I.response=!1,I.playerResponse=!1,I)};
_.E(B0,Qk);B0.prototype.validate=function(I){return!(!I.data||!I.data.response&&!I.data.playerResponse)};
B0.prototype.handle=function(I){var y=_.W4(),D=this.createScreenConfig.layer;I.data.response&&I.data.response.trackingParams&&!this.fCx.response&&(y.graftServerVe(I.data.response.trackingParams,void 0,D),this.fCx.response=!0);I.data.playerResponse&&I.data.playerResponse.trackingParams&&!this.fCx.playerResponse&&(y.graftServerVe(I.data.playerResponse.trackingParams,void 0,D),this.fCx.playerResponse=!0)};var iW=function(){this.eV=_.vS();this.cj=[];this.f9m=0};
iW.prototype.processChunk=function(I){if(I){for(var y=_.J(this.cj),D=y.next();!D.done;D=y.next())D=D.value,D.validate(I)&&(D.handle(I),D.wI=!0);_.V_("np"+this.f9m);this.f9m++}};var Y3o=function(I,y,D){D=D===void 0?{}:D;this.name=I;this.id=Uc.nextSpanId++;this.sessionId=Uc.sessionId;this.attributes=y;this.status="SPAN_STATUS_UNSET";var F;this.startTime=(F=D.startTime)!=null?F:(0,_.m_)();this.isActiveSpan=D.active;if(I=Uc.stack[Uc.stack.length-1])this.parentId=I.id,I.children||(I.children=[]),I.children.push(this);I=_.J(Uc.processors);for(y=I.next();!y.done;y=I.next()){y=y.value;try{var R=F=void 0;(R=(F=y).onSpanStart)==null||R.call(F,this)}catch(O){_.tq(O)}}D.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",D.endTime))};
Y3o.prototype.end=function(I,y){I=I===void 0?"SPAN_STATUS_OK":I;this.endTime=y=y===void 0?(0,_.m_)():y;this.duration=this.endTime-this.startTime;this.status=I;this.isActiveSpan!==!1&&(Uc.stack[Uc.stack.length-1]===this?Uc.stack.pop():_.tq(Error("Ff`"+String(this.name))));I=_.J(Uc.processors);for(y=I.next();!y.done;y=I.next()){y=y.value;try{var D=void 0,F=void 0;(F=(D=y).onSpanEnd)==null||F.call(D,this)}catch(R){_.tq(R)}}};
Y3o.prototype.addAttributes=function(I){Object.assign(this.attributes,I)};
var fI5={end:function(){},
addAttributes:function(){}},Uc={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},QJq={rootSpan:function(){return Uc.stack[0]}};var oQ={};var kNB=function(I){this.observers=[];this.value=I};
_.L=kNB.prototype;_.L.subscribe=function(I){var y=this;if(I.idx!=null)throw Error("Hf");I.idx=this.observers.length;this.observers.push(I);try{I(this.value)}catch(D){}return function(){var D=y.observers[y.observers.length-1];y.observers[I.idx]=D;D.idx=I.idx;y.observers.pop()}};
_.L.update=function(I){this.value=I(this.value);this.notify()};
_.L.mutate=function(I){I(this.value);this.notify()};
_.L.set=function(I){this.value=I;this.notify()};
_.L.notify=function(){for(var I=_.J(this.observers),y=I.next();!y.done;y=I.next()){y=y.value;try{y(this.value)}catch(D){}}};var T$e,Z1g,ykc;_.M4=function(I,y,D,F,R,O,w,v){w=w===void 0?[]:w;v=v===void 0?[]:v;this.buildCommandPayload=I;this.navigate=y;this.handleServiceRequest=D;this.sendAction=F;this.JSC$13052_screenManager=R;this.commandResolverMap=O;this.autoLogResolverAllowlist=w;this.metaCommandClickLoggingDenylist=v;this.pendingCommands=new Set;this.isTracingEnabled=!1;Z1g(this)};
T$e=function(I,y,D){var F=[_.C8a,ygO],R=z$J,O=kyW,w=_.W4(),v=gbf;D=D===void 0?[]:D;F=F===void 0?[]:F;_.M4.instance=new _.M4(I,y,R,O,w,v,D,F)};
Z1g=function(I){if(!I.isTracingEnabled&&rH("command")){var y=I.resolveCommand;I.resolveCommand=function(D,F){a:{for(R in D)if(Object.prototype.hasOwnProperty.call(D,R)){var R={commandType:R};break a}R={}}return jI("command",R,y.bind(this,D,F))};
I.isTracingEnabled=!0}};
ykc=function(I,y,D){if(!I.commandResolverMap)return!1;var F=dFB(y,I.commandResolverMap);return F?((I.autoLogResolverAllowlist.some(function(R){return!!_.u(y,R)})||(D==null?0:D.forceClickLogging))&&Ipe(I,y,D),F instanceof Promise?F.then(function(R){R.resolve(y,D)}):F.resolve(y,D),!0):!1};
_.M4.prototype.resolveCommand=function(I,y){var D=this,F=DkG(I);if(ykc(this,I,y))return!0;if(F)return FBf(this,I,y);if(!this.buildCommandPayload)return MMq(I,"Unhandled command by buildCommandPayload"),!1;var R=this.buildCommandPayload(I,y);if(y==null?0:y.commandController)R.commandController=y.commandController;if(R.type===0){if(!this.navigate)return zSA(I,"navigate"),!1;if(!Rsu(R.command))return MMq(I,"Page requests need to specify a url"),!1;_.l("logging_avoid_blocking_during_navigation")&&_.QPJ().transition("application_navigating");
I=this.navigate(R)||[];bif(I).then(function(){D.pendingCommands.delete(R.command)});
return!0}if(R.type===1){if(!this.handleServiceRequest)return zSA(I,"handleServiceRequest"),!1;(y==null?0:y.forceClickLogging)&&Ipe(this,R.command,y);I=this.handleServiceRequest(R);bif(I).then(function(){D.pendingCommands.delete(R.command)});
return!0}if(R.type===2){if(!this.sendAction)return zSA(I,"sendAction"),!1;Ipe(this,R.command,y);this.sendAction(R);return!0}return!1};
var Ipe=function(I,y,D){if((D==null||!D.disableClickTracking)&&I.JSC$13052_screenManager)if(y.clickTrackingParams&&_.l("log_click_with_layer_from_element_in_command_handler")){var F;D=D==null?void 0:(F=D.form)==null?void 0:F.element;I.JSC$13052_screenManager.clickCommand(y,null,D&&D.getScreenLayer&&D.getScreenLayer())}else y.clickTrackingParams?I.JSC$13052_screenManager.clickCommand(y):!_.l("disable_clicked_visual_element_in_command_handler")&&(D==null?0:D.clickedVisualElement)&&_.W0(I.JSC$13052_screenManager,
D.clickedVisualElement)},DkG=function(I){var y=!!_.u(I,_.Q_),D;
I=((D=_.u(I,_.fE))==null?void 0:D.signal)==="CLIENT_SIGNAL";return y||I},FBf=function(I,y,D){var F=_.u(y,_.Q_);
if(F)var R=(F==null?void 0:F.commands)||[];else{var O;if(((O=_.u(y,_.fE))==null?void 0:O.signal)==="CLIENT_SIGNAL"){var w;R=((w=_.u(y,_.fE))==null?void 0:w.actions)||[]}}if(R){(F=Of_(I,R))&&Ipe(I,y,D);y=_.J(R);for(R=y.next();!R.done;R=y.next()){R=R.value;try{var v=Object.assign({},D);F&&(v.disableClickTracking=!0);I.resolveCommand(R,v)}catch(P){P instanceof Error&&_.vu(P)}}return!0}MMq(y,"Could not handle the meta command");return!1},Of_=function(I,y){return y.every(function(D){return I.metaCommandClickLoggingDenylist.some(function(F){return!!_.u(D,
F)})})},Rsu=function(I){var y;
return!((y=_.u(I==null?void 0:I.commandMetadata,_.nE))==null||!y.url)};var Az=function(){Qk.apply(this,arguments)};
_.E(Az,Qk);Az.prototype.validate=function(I){var y,D;return!this.wI&&!!((y=I.data.response)==null?0:(D=y.onResponseReceivedEndpoints)==null?0:D.length)};
Az.prototype.handle=function(I){var y=_.M4.instance;I=_.J(I.data.response.onResponseReceivedEndpoints);for(var D=I.next();!D.done;D=I.next())y.resolveCommand(D.value)};var LBf,Jke,H0;
LBf=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Xs();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.bW=function(){Jke||(Jke=new LBf);return Jke};
H0=function(){var I=_.bW();I.miniplayerButtonActivation=!1;I.userActivation=!1;I.playlistWatchPageActivation=!1;I.productDetailsPageActivation=!1;I.miniAppPageActivation=!1;I.playablesDestPageActivation=!1;I.lockupActivation=!1;I.showMiniplayerCommandActivation=!1;I.playlistSuggestionsShelfActivation=!1;I.mediaSessionPipActivation=!1;I.watchPipActivation=!1;I.watchWhileActivation=!1;I.shortsPipActivation=!1;I.companionCanvasActivation=!1};
_.wJu=function(){var I=_.bW(),y=I.mediaSessionPipActivation,D=I.watchPipActivation,F=I.watchWhileActivation,R=I.playlistWatchPageActivation,O=I.lockupActivation,w=I.showMiniplayerCommandActivation,v=I.navigatingAwayFromWatchDeletedVideo,P=I.shortsPipActivation,K=I.playlistSuggestionsShelfActivation,r=I.productDetailsPageActivation,N=I.miniAppPageActivation,h=I.playablesDestPageActivation,x=I.companionCanvasActivation;return!I.miniplayerButtonActivation&&!R&&!K&&!r&&!N&&!h&&!O&&!w&&!y&&!D&&!F&&!P&&
!x||v};var GkS;_.e1=_.h_("FEwhat_to_watch","/",3854);_.XOe=_.h_("FEdownloads","/feed/downloads",42352);GkS=_.h_("FEmusic_offline","browse/FEmusic_offline",42352);var j7=function(I,y){y=y===void 0?[]:y;var D=D===void 0?[]:D;y=I1L.apply(null,[yde.apply(null,_.Td(y))].concat(_.Td(D)));this.store=O9B(I,void 0,y)};
j7.prototype.getState=function(){return this.store.getState()};
j7.prototype.dispatch=function(I){return this.store.dispatch(I)};
j7.prototype.subscribe=function(I){return this.store.subscribe(I)};
j7.prototype.replaceReducer=function(I){return this.store.replaceReducer(I)};
j7.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.TV=function(I,y,D){var F=y(I.getState());return I.subscribe(function(){var R=y(I.getState());if(R!==F){var O=F;F=R;D(R,O)}})};var Qm4;_.WS=function(I,y,D){return _.Ec({type:"REPLACE_ENTITY",payload:{entityPayload:D,entityType:I,key:y}})};
Qm4=function(I){return _.Ec({type:"REPLACE_ENTITIES",payload:I})};
_.V0=function(I,y,D,F){return _.Ec({type:"UPDATE_ENTITY",payload:{entityPayload:D,entityType:I,key:y,mergeOption:F}})};var sJt=function(I){var y=this;I=I===void 0?[]:I;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;I.forEach(function(D){y.append(D)})};
_.L=sJt.prototype;_.L.getLength=function(){return this.totalLength};
_.L.append=function(I){var y=this.arrays.length===0?!1:(y=this.arrays[this.arrays.length-1])&&y.buffer===I.buffer&&y.byteOffset+y.length===I.byteOffset;y?(y=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(y.buffer,y.byteOffset,y.length+I.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(I);this.totalLength+=I.length};
_.L.split=function(I){for(var y=new sJt,D=new sJt,F=_.J(this.arrays),R=F.next();!R.done;R=F.next())R=R.value,I>=R.length?(y.append(R),I-=R.length):I?(y.append(new Uint8Array(R.buffer,R.byteOffset,I)),D.append(new Uint8Array(R.buffer,R.byteOffset+I,R.length-I)),I=0):D.append(R);return{headView:y,tailView:D}};
_.L.isFocused=function(I){return I>=this.arrayPos&&I<this.arrayPos+this.arrays[this.arrayIdx].length};
_.L.focus=function(I){if(!this.isFocused(I))for(I<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=I&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var vun=function(I,y){I.focus(y);return I.arrays[I.arrayIdx][y-I.arrayPos]};(function(){var I=function(F){return new Uint8Array(F)},y=function(F){for(var R=new Uint8Array(F.length),O=0;O<F.length;O++)R[O]=F[O];
return R},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?I:y})();
var AxW=Array(1024),iJo=window.TextDecoder?new TextDecoder:void 0,bJB=window.TextEncoder?new TextEncoder:void 0;var TEA=function(I){this.arrayView=I;this.pos=0;this.pendingTagAndType=-1},Gz=function(I){var y=vun(I.arrayView,I.pos);
++I.pos;if(y<128)return y;for(var D=y&127,F=1;y>=128;)y=vun(I.arrayView,I.pos),++I.pos,F*=128,D+=(y&127)*F;return D},VM_=function(I,y){var D=I.pendingTagAndType;
for(I.pendingTagAndType=-1;I.pos+1<=I.arrayView.totalLength;){D<0&&(D=Gz(I));var F=D>>3,R=D&7;if(F===y)return!0;if(F>y){I.pendingTagAndType=D;break}D=-1;switch(R){case 0:Gz(I);break;case 1:I.pos+=8;break;case 2:F=Gz(I);I.pos+=F;break;case 5:I.pos+=4}}return!1};var gD_=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=eSB(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},YK=function(I,y){y=I.pos+y;
if(!(I.buf.length>=y)){for(var D=I.buf.length*2;D<y;)D*=2;I.buf=eSB(D,I.wasm,I.buf.subarray(0,I.pos));I.view=new DataView(I.buf.buffer,I.buf.byteOffset,I.buf.byteLength)}},Qi=function(I,y){if(y>268435455){YK(I,4);
for(var D=y&1073741823,F=0;F<4;F++)I.view.setUint8(I.pos,D&127|128),D>>=7,I.pos+=1;y=Math.floor(y/268435456)}for(YK(I,4);y>127;)I.view.setUint8(I.pos,y&127|128),y>>=7,I.pos+=1;I.view.setUint8(I.pos,y);I.pos+=1};for(var I8B={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},ZJS={},S0O=_.J(Object.entries(I8B)),ttO=S0O.next();!ttO.done;ttO=S0O.next()){var PGu=_.J(ttO.value),KBn=PGu.next().value,Ukc=PGu.next().value,rkg=KBn,jYR=Ukc;jYR&&(ZJS[jYR]=rkg)};var DyL=function(I,y){I=I===void 0?{}:I;switch(y.type){case "ENTITY_LOADED":return y.payload.reduce(function(F,R){var O,w=(O=R.options)==null?void 0:O.persistenceOption;if(w&&w!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&w!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return F;if(!R.entityKey)return _.vu(Error("Jf")),F;if(R.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!R.payload)return R=new _.g6("REPLACE entity mutation is missing a payload",{entityKey:R.entityKey}),_.vu(R),F;var v=(0,_.e$.getAnyKey)(R.payload);
return RQW(F,v,R.entityKey,R.payload[v])}if(R.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{R=R.entityKey;try{var P=_.Xw(R).entityType;v=RQW(F,P,R);break a}catch(N){if(N instanceof Error){R=new _.g6("Failed to deserialize entity key",{entityKey:R,originalMessage:N.message});_.vu(R);v=F;break a}throw N;}v=void 0}return v}if(R.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!R.payload)return R=new _.g6("UPDATE entity mutation is missing a payload",{entityKey:R.entityKey}),_.vu(R),F;v=(0,_.e$.getAnyKey)(R.payload);
var K,r;return OMB(F,v,R.entityKey,R.payload[v],(K=R.fieldMask)==null?void 0:(r=K.mergeOptions)==null?void 0:r.repeatedFieldsMergeOption)}return F},I);
case "REPLACE_ENTITY":var D=y.payload;return RQW(I,D.entityType,D.key,D.entityPayload);case "REPLACE_ENTITIES":return Object.keys(y.payload).reduce(function(F,R){var O=y.payload[R];return Object.keys(O).reduce(function(w,v){return RQW(w,R,v,O[v])},F)},I);
case "UPDATE_ENTITY":return D=y.payload,OMB(I,D.entityType,D.key,D.entityPayload,D.mergeOption);default:return I}};var LeW;var ouP=!1,sZ,Vk,Zf,g7,IJ,N5e=function(I){_.B5.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!ouP){var y,D=new Uint8Array(256),F=new Uint8Array(256);var R=1;for(y=0;y<256;y++)D[R]=y,F[y]=R,R^=R<<1^(R>>7&&283);sZ=new Uint8Array(256);Vk=pC(256);Zf=pC(256);g7=pC(256);IJ=pC(256);for(var O=0;O<256;O++){R=O?F[255^D[O]]:0;R^=R<<1^R<<2^R<<3^R<<4;R=R&255^R>>>8^99;sZ[O]=R;y=R<<1^(R>>7&&283);var w=y^R;Vk[O]=y<<24|R<<16|R<<8|w;Zf[O]=w<<24|Vk[O]>>>8;g7[O]=R<<24|Zf[O]>>>
8;IJ[O]=R<<24|g7[O]>>>8}ouP=!0}R=pC(44);for(D=0;D<4;D++)R[D]=I[4*D]<<24|I[4*D+1]<<16|I[4*D+2]<<8|I[4*D+3];for(F=1;D<44;D++)I=R[D-1],D%4||(I=(sZ[I>>16&255]^F)<<24|sZ[I>>8&255]<<16|sZ[I&255]<<8|sZ[I>>>24],F=F<<1^(F>>7&&283)),R[D]=R[D-4]^I;this.key=R};
_.E(N5e,_.B5);
N5e.prototype.encrypt=function(I){var y=I.length;I=new Uint8Array(I.buffer.slice(I.byteOffset,I.byteOffset+y));for(var D=this.cipherBlock,F=0;F<y&&this.blockOffset<16;)I[F++]^=D[this.blockOffset++];for(var R=y-(y-F)%16;F<R;)hsO(this),I[F++]^=D[0],I[F++]^=D[1],I[F++]^=D[2],I[F++]^=D[3],I[F++]^=D[4],I[F++]^=D[5],I[F++]^=D[6],I[F++]^=D[7],I[F++]^=D[8],I[F++]^=D[9],I[F++]^=D[10],I[F++]^=D[11],I[F++]^=D[12],I[F++]^=D[13],I[F++]^=D[14],I[F++]^=D[15];if(F<y)for(hsO(this),this.blockOffset=0;F<y;)I[F++]^=
D[this.blockOffset++];return I};
var hsO=function(I){for(var y=I.key,D=I.counter[0]^y[0],F=I.counter[1]^y[1],R=I.counter[2]^y[2],O=I.counter[3]^y[3],w=3;w>=0&&!(I.counter[w]=-~I.counter[w]);w--);for(var v,P,K=4;K<40;)w=Vk[D>>>24]^Zf[F>>16&255]^g7[R>>8&255]^IJ[O&255]^y[K++],v=Vk[F>>>24]^Zf[R>>16&255]^g7[O>>8&255]^IJ[D&255]^y[K++],P=Vk[R>>>24]^Zf[O>>16&255]^g7[D>>8&255]^IJ[F&255]^y[K++],O=Vk[O>>>24]^Zf[D>>16&255]^g7[F>>8&255]^IJ[R&255]^y[K++],D=w,F=v,R=P;I=I.cipherBlock;w=y[40];I[0]=sZ[D>>>24]^w>>>24;I[1]=sZ[F>>16&255]^w>>16&255;I[2]=
sZ[R>>8&255]^w>>8&255;I[3]=sZ[O&255]^w&255;w=y[41];I[4]=sZ[F>>>24]^w>>>24;I[5]=sZ[R>>16&255]^w>>16&255;I[6]=sZ[O>>8&255]^w>>8&255;I[7]=sZ[D&255]^w&255;w=y[42];I[8]=sZ[R>>>24]^w>>>24;I[9]=sZ[O>>16&255]^w>>16&255;I[10]=sZ[D>>8&255]^w>>8&255;I[11]=sZ[F&255]^w&255;w=y[43];I[12]=sZ[O>>>24]^w>>>24;I[13]=sZ[D>>16&255]^w>>16&255;I[14]=sZ[F>>8&255]^w>>8&255;I[15]=sZ[R&255]^w&255};var xk_=!1;(function(){var I=function(F){return new Uint8Array(F)},y=function(F){for(var R=new Uint8Array(F.length),O=0;O<F.length;O++)R[O]=F[O];
return R},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?I:y})();
var y8;var q0a=function(I){a:{if(!xk_&&!Qx){if(y8){var y=y8;break a}y8=(y=window.crypto)==null?void 0:y.subtle;var D,F,R;if(((D=y8)==null?0:D.importKey)&&((F=y8)==null?0:F.sign)&&((R=y8)==null?0:R.encrypt)){y=y8;break a}y8=void 0}y=void 0}y&&(this.nativeEncryptor=new lpP(I,y));this.encryptorPolyfill=new uKM(I)};
q0a.prototype.encrypt=function(I,y){var D=this,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!D.nativeEncryptor){R.jumpTo(2);break}_.nj(R,3);return R.yield(D.nativeEncryptor.encrypt(I,y),5);case 5:return R.return(R.yieldResult);case 3:F=_.dj(R),_.tq(F),xk_=!0,D.nativeEncryptor=void 0;case 2:return R.return(D.encryptorPolyfill.encrypt(I,y))}})};
q0a.prototype.decrypt=function(I,y){return this.encrypt(I,y)};
var lpP=function(I,y){this.JSC$13125_aesKey=I;this.subtleCrypto=y};
lpP.prototype.encrypt=function(I,y){var D=this,F;return _.S(function(R){if(R.nextAddress==1)return _.nj(R,2),R.yield(Eu_(D,I,y),4);if(R.nextAddress!=2)return R.return(R.yieldResult);F=_.dj(R);_.tq(F);xk_=!0;throw F;})};
var Eu_=function(I,y,D){var F,R;return _.S(function(O){switch(O.nextAddress){case 1:if(I.cryptoKey){O.jumpTo(2);break}return O.yield(I.subtleCrypto.importKey("raw",I.JSC$13125_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:I.cryptoKey=O.yieldResult;case 2:return F={name:"AES-CTR",counter:D,length:128},O.yield(I.subtleCrypto.encrypt(F,I.cryptoKey,y),4);case 4:return R=O.yieldResult,O.return(new Uint8Array(R))}})},uKM=function(I){this.JSC$13128_aesKey=I};
uKM.prototype.encrypt=function(I,y){this.encryptor||(this.encryptor=new N5e(this.JSC$13128_aesKey));for(var D=this.encryptor,F=0;F<4;F++)D.counter[F]=y[F*4]<<24|y[F*4+1]<<16|y[F*4+2]<<8|y[F*4+3];D.blockOffset=16;return this.encryptor.encrypt(I)};
uKM.prototype.decrypt=function(I,y){return this.encrypt(I,y)};var GnO={},vpB=pv("yt-idb-pref-storage",{objectStores:(GnO.prefs={addedAtVersion:1},GnO),shared:!1,upgrade:function(I,y){y(1)&&jn(r2(I,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.DI=function(I){this.token=I};
_.DI.getInstance=function(){return _.S(function(I){return I.return(new Promise(function(y){_.nv().then(function(D){D?(_.DI.instance||(_.DI.instance=new _.DI(D)),y(_.DI.instance)):y(void 0)})}))})};
_.DI.prototype.get=function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1)return O.yield(SYq(y.token),2);if(O.nextAddress!=3)return D=O.yieldResult,O.yield(D.get("prefs",I),3);F=O.yieldResult;if(!F)return O.return();R=(0,_.m_)();return F.expirationTimestampMs<=R?O.return():O.return(F.value)})};
_.DI.prototype.set=function(I,y,D){D=D===void 0?31536E3:D;var F=this,R,O,w;return _.S(function(v){if(v.nextAddress==1)return R=(0,_.m_)(),O={key:I,value:y,expirationTimestampMs:R+D*1E3},v.yield(SYq(F.token),2);w=v.yieldResult;return v.yield(w.put("prefs",O),0)})};
_.DI.prototype.remove=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(SYq(y.token),2);D=F.yieldResult;return F.yield(D.delete("prefs",I),0)})};var FD={},XJM=(FD.INVALID_ENCODER_VERSION="Invalid encoder version",FD.KEY_CREATION_FAILED="Failed to create encoder key",FD.UNKNOWN_DECODE_ERROR="Failed to decode PES data",FD.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",FD.WRONG_DATA_TYPE="Encoder cannot process the data type",FD),md=function(I,y){y=y===void 0?{}:y;_.g6.call(this,XJM[I],Object.assign({},{name:"PESEncoderError",type:I},y));this.type=I;this.level="WARNING";Object.setPrototypeOf(this,md.prototype)};
_.E(md,_.g6);var RJ=function(){};
RJ.prototype.encode=function(I,y){try{return this.encodeImpl(I,y)}catch(D){Uye(D,PCA)}};
RJ.prototype.decode=function(I,y){try{return this.decodeImpl(I,y)}catch(D){Uye(D,Keo)}};
var QYn=function(I,y,D){var F;return _.S(function(R){if(R.nextAddress==1)return _.nj(R,2),R.yield(I.decodeAsyncImpl(y,D),4);if(R.nextAddress!=2)return R.return(R.yieldResult);F=_.dj(R);Uye(F,Keo);_.Cj(R)})};
RJ.prototype.decodeAsyncImpl=function(I,y){return Promise.resolve(this.decodeImpl(I,y))};var O3=function(I,y){this.aesEncryptor=I;this.aesEncryptorAsync=y};
_.E(O3,RJ);O3.prototype.encodeImpl=function(I,y){y=r2_(y);I=(new TextEncoder).encode(JSON.stringify(I));return this.aesEncryptor.encrypt(I,y)};
O3.prototype.decodeImpl=function(I,y){if(!(I instanceof Uint8Array))throw tro(1);var D=new TextDecoder;y=r2_(y);I=this.aesEncryptor.decrypt(I,y);return JSON.parse(D.decode(I))};
O3.prototype.decodeAsyncImpl=function(I,y){var D=this,F,R,O;return _.S(function(w){if(w.nextAddress==1){if(!(I instanceof Uint8Array))throw tro(1);F=new TextDecoder;R=r2_(y);return w.yield(D.aesEncryptorAsync.decrypt(I,R),2)}O=w.yieldResult;return w.return(JSON.parse(F.decode(O)))})};var jmt={accountLinkStatusEntity:PE_,booleanEntity:cKn,buttonEntity:z9W,captionTrack:hQu,channelHandle:Kze,chipEntity:vgO,commerceAcquisitionClientPayloadEntity:vZn,commerceCartListEntity:SHz,compositeSourceEntity:zSP,multiviewStagingEntity:kLe,contextNoteFeedEntityPayload:Xtf,contextNoteUserRatingEntityPayload:QZW,continuationTokenEntity:V1f,downloadQualityPickerEntity:W7f,downloadsPageRefreshTokenEntity:B7a,downloadsPageViewConfigurationEntity:LNe,downloadStatusEntity:CWM,dismissState:SCf,sfvAudioItemCurrentlyPlayingEntity:gpO,
emojiFountainDataEntity:py_,emojiCustomizationSetEntity:ngW,fakeChannel:Btz,fakePlaylist:iPM,fakePlaylistEntryCollection:AKc,fakeVideo:bPM,fakeVideoDescription:HPa,featuredProductsEntity:QJO,flowStateEntity:wce,iconBadgeEntity:t9W,interstitialInteractionStateEntity:Y2M,likeButtonAnimationEntity:Jxa,liveChatPollStateEntity:dHg,dataFreshnessEntity:YCO,liveViewerLeaderboardChatEntryPointStateEntity:Mrz,liveViewerLeaderboardPointsEntity:zQM,liveReactionsDataEntity:mGG,logoEntity:Xcn,macroMarkerEntity:wfP,
mainDownloadsLibraryEntity:ibf,mainDownloadsListEntity:AzM,mainPlaylistDownloadStateEntity:bbG,mainPlaylistEntity:ZbW,mainPlaylistVideoEntity:gjR,mainVideoDownloadStateEntity:HbM,mainVideoEntity:FNu,markersEngagementPanelSyncEntity:vDR,markersVisibilityOverrideEntity:S3R,musicAlbumReleaseDetail:BEa,musicAlbumReleaseDownloadMetadataEntity:dFg,musicAlbumRelease:C3c,musicAlbumReleaseUserDetail:iJe,musicArtistDetail:$FP,musicArtist:Axf,musicArtistUserDetail:bJg,musicDownloadsLibraryEntity:aIG,musicLibraryEdit:HJG,
musicLibraryStatusEntity:eSg,musicPlaylist:TEP,musicPlaylistDownloadMetadataEntity:cxn,musicShare:VMu,musicTrackDetail:gDu,musicTrackDownloadMetadataEntity:WNf,musicTrack:ZJz,musicTrackUserDetail:I8g,offlineOrchestrationActionWrapperEntity:xye,offlineVideoPolicy:l8_,offlineVideoStreams:uNa,offlineabilityEntity:eee,orchestrationWebSamplingEntity:T7a,pageHeaderEntity:xGg,pdpStateEntity:P1u,pinnedProductEntity:Y3e,playbackData:qYM,playerStateEntity:tMW,quantityIncrementerEntity:KFc,refresh:Epn,saveToPlaylistListEntity:lga,
selectedChipIndexEntityPayload:P3R,settingEntity:iYG,stringEntity:W6_,suggestedFeedbackChipStateEntity:KN_,transfer:G1M,trendingOfferEntity:fI_,videoDownloadContextEntity:XbW,videoOverviewAsyncDataEntity:d1P,videoPlaybackPositionEntity:aWc,votingEntity:Ega,ytMainChannelEntity:RSe,youchatPendingResponseEntity:UFW,ytMainDownloadedVideoEntity:sjM,ytMainVideoEntity:OJP};var Y0f,nuR,aQ,Ep4,G1J,MtR,knc,zsR,mkW;Y0f=function(I,y){this.JSC$13147_wrapped=I;this.JSC$13147_encoderRegistry=y;this.changedKeys={}};
nuR=function(I,y){return fpM(I.JSC$13147_encoderRegistry,y.version).decode(y.data,y.key)};
_.pJa=function(I,y,D){return I.JSC$13147_wrapped.objectStore("EntityStore").get(y).then(function(F){if(F){if(D&&F.entityType!==D)throw Error("Kf");return nuR(I,F)}})};
aQ=function(I,y,D){return D?(D=D.map(function(F){return _.pJa(I,F,y)}),jA.all(D)):I.JSC$13147_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(y)).then(function(F){return F.map(function(R){return nuR(I,R)})})};
_.qYJ=function(I,y,D){var F=y2e(y),R=fpM(I.JSC$13147_encoderRegistry,1),O=Object.assign({},y);return I.JSC$13147_wrapped.objectStore("EntityStore").get(F).then(function(w){if(w){if(w.entityType!==D)throw Error("Kf");O.entityMetadata||(w=nuR(I,w),O.entityMetadata=w.entityMetadata)}}).then(function(){var w={key:F,
entityType:D,data:R.encode(O,F),version:1};return jA.all([I.JSC$13147_wrapped.objectStore("EntityStore").put(w),mkW(I,O,D)])}).then(function(){MtR(I,F,D);
return F})};
Ep4=function(I,y){var D=_.Xw(y).entityType;return jA.all([I.JSC$13147_wrapped.objectStore("EntityStore").delete(y),zsR(I,y)]).then(function(){MtR(I,y,D)})};
G1J=function(I,y,D,F){var R=fpM(I.JSC$13147_encoderRegistry,1);return _.pJa(I,y,F).then(function(O){if(O){O=BEe(O,D);var w={key:y,entityType:F,data:R.encode(O,y),version:1};return jA.all([I.JSC$13147_wrapped.objectStore("EntityStore").put(w),mkW(I,O,F)])}}).then(function(){MtR(I,y,F);
return y})};
MtR=function(I,y,D){var F=I.changedKeys[D];F||(F=new Set,I.changedKeys[D]=F);F.add(y)};
knc=function(I,y,D){var F=y2e(y);D=opW(D);if(!D)return jA.resolve([]);D=new D(y);I=I.JSC$13147_wrapped.objectStore("EntityAssociationStore");y=[];D=_.J(D.getAssociations());for(var R=D.next();!R.done;R=D.next())y.push(I.put({parentEntityKey:F,childEntityKey:R.value}));return jA.all(y).then(function(O){return O.map(function(w){return w[1]})})};
zsR=function(I,y){return I.JSC$13147_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(y))};
mkW=function(I,y,D){var F=y2e(y);return zsR(I,F).then(function(){return knc(I,y,D)})};var dk_=function(){};
_.E(dk_,RJ);dk_.prototype.encodeImpl=function(I){return I};
dk_.prototype.decodeImpl=function(I){if(I instanceof Uint8Array)throw tro(0);return I};var xyo=function(){this.cacheMap={};this.cacheMap[0]=new dk_;if(!_.l("aes_pes_encoder_killswitch")){var I=this.cacheMap;try{var y=_.VV();var D=r2_(y);var F=new O3(new uKM(D),new q0a(D))}catch(R){throw I=R instanceof Error?new md("KEY_CREATION_FAILED",{originalMessage:R.message}):new md("KEY_CREATION_FAILED"),_.vu(I),I;}I[1]=F}},fpM=function(I,y){y=y===void 0?0:y;
I=I.cacheMap[y];if(!I)throw y=new md("INVALID_ENCODER_VERSION",{encoderVersion:y}),_.vu(y),y;return I};var zz=function(I,y){_.B5.call(this);this.token=I;this.JSC$13161_encoderRegistry=y;this.observers=[];I=new _.Ft.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.VV());I.onmessage=this.JSC$13161_handleMessage.bind(this);this.channel=I};
_.E(zz,_.B5);_.dH=function(I,y,D){var F,R,O,w;return _.S(function(v){if(v.nextAddress==1)return v.yield(wbJ(I.token),2);if(v.nextAddress!=3)return F=v.yieldResult,v.yield(_.El(F,["EntityStore","EntityAssociationStore"],y,function(P){R=new Y0f(P,I.JSC$13161_encoderRegistry);return D(R)}),3);
O=v.yieldResult;R&&(w=R.changedKeys,Object.keys(w).length>0&&(I.channel.postMessage(w),apu(I,w)));return v.return(O)})};
zz.prototype.observe=function(I){var y=this;this.observers.push(I);return function(){var D=y.observers.indexOf(I);D>=0&&y.observers.splice(D,1)}};
var eOq=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(_.dH(I,{mode:"readonly",enableRetries:!0},function(F){return F.JSC$13147_wrapped.objectStore("EntityStore").getAll()}),2);
y=D.yieldResult;return D.return(Promise.all(y.filter(function(F){return!!F}).map(function(F){var R,O;
return _.S(function(w){if(w.nextAddress==1){R=F.key;O=F.entityType;var v=w.yield;var P=QYn(fpM(I.JSC$13161_encoderRegistry,F.version),F.data,F.key);return v.call(w,P,2)}return w.return({key:R,entityType:O,data:w.yieldResult})})})))})};
zz.prototype.JSC$13161_handleMessage=function(I){apu(this,I.data)};
var apu=function(I,y){I=_.J(I.observers);for(var D=I.next();!D.done;D=I.next())D=D.value,D(y)};
zz.prototype.disposeInternal=function(){this.channel.close()};
var NiJ;var LJ,WBg,$yJ;LJ={};_.ckg=(LJ.mainVideoEntity="mainVideoEntityActionMetadata",LJ.mainPlaylistEntity="mainPlaylistEntityActionMetadata",LJ.musicTrack="musicTrackEntityActionMetadata",LJ.musicPlaylist="musicPlaylistEntityActionMetadata",LJ);WBg=new _.uk("DOWNLOADS_ENTITY_TYPE_MAP");_.eI=_.fC("","downloadsPageViewConfigurationEntity");$yJ=_.fC("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.E35=_.fC("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.fC("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.fC("SMART_DOWNLOADS_ENABLED","settingEntity");_.fC("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var npA=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var a8A=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var CGa={isLeaderTab:!0};var Pqt={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Jx=window,JS=Jx.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",clB=Jx.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||wY,AlH=Jx.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||pV,FKe=Jx.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||D5f,IyO=Jx.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||UYW,ABe=Jx.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||xYa;var aWq;PF({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 FnH=$GC(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(I){return I}}}),tPW=$GC(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(I){return I}}}),Tpe=new Map;var Oce=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],IPA;var B5M=function(I){return _.Ec({type:"SET_EPHEMERAL_ACTION",payload:I})};var ife={ephemeralAction:null};var Akn=RV({ephemeralAction:function(I,y){I=I===void 0?ife.ephemeralAction:I;switch(y.type){case "SET_EPHEMERAL_ACTION":return y.payload;default:return I}}});var $ka=function(I){return _.Ec({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:I})};var bfu={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Hfu={sharedUi:bfu,a11y:ife,entities:{}},nSq={sharedUi:function(I,y){I=I===void 0?bfu:I;switch(y.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},I,{animatedThumbnailEnabled:y.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},I,{inlinePreviewEnabled:y.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},I,{currentPageType:y.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},I,{currentPageSubType:y.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},I,{persistentPanelVisible:y.payload});default:return I}},
a11y:Akn,entities:Fe_};var tD4={playlistId:"",inviteLinkURL:""};var esg={continuationCommand:{}};var uue=RV({continuationCommand:function(I,y){I=I===void 0?esg.continuationCommand:I;switch(y.type){case "SET_CONTINUATION_COMMAND":return y.payload.continuationCommand;default:return I}}});var Kn5={currentFormId:"",commandsMap:{}};var qGW=RV({isLeaderTab:function(I,y){I=I===void 0?CGa.isLeaderTab:I;switch(y.type){case "SET_IS_LEADER_TAB":var D,F;return(F=y==null?void 0:(D=y.payload)==null?void 0:D.isLeaderTab)!=null?F:I;default:return I}}});var sYf;_.T5g=function(I){return _.Ec({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:I}})};
sYf=function(I){return _.Ec({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:I}})};var wE={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var fP4=RV({isDesktopSmallWidth:function(I,y){I=I===void 0?wE.isDesktopSmallWidth:I;switch(y.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return y.payload.isDesktopSmallWidth;default:return I}},
isShortsActive:function(I,y){I=I===void 0?wE.isShortsActive:I;switch(y.type){case "SET_IS_SHORTS_ACTIVE":return y.payload.isShortsActive;default:return I}},
isWatchWhileMode:function(I,y){I=I===void 0?wE.isWatchWhileMode:I;switch(y.type){case "SET_IS_WATCH_WHILE_MODE":return y.payload.isWatchWhileMode;default:return I}},
playerState:function(I,y){I=I===void 0?wE.playerState:I;switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return I}},
isFullscreen:function(I,y){I=I===void 0?wE.isFullscreen:I;switch(y.type){case "SET_IS_FULLSCREEN":return y.payload.isFullscreen;default:return I}},
isSmallScreenSqueezeback:function(I,y){I=I===void 0?wE.isSmallScreenSqueezeback:I;switch(y.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return y.payload.isSmallScreenSqueezeback;default:return I}},
isShortsPipActive:function(I,y){I=I===void 0?wE.isShortsPipActive:I;switch(y.type){case "SET_IS_SHORTS_PIP_ACTIVE":return y.payload.isShortsPipActive;default:return I}},
isPlaybackStarted:function(I,y){I=I===void 0?wE.isPlaybackStarted:I;switch(y.type){case "SET_IS_PLAYBACK_STARTED":return y.payload.isPlaybackStarted;default:return I}}});var r5_={currentMode:"canvas-hidden"};var miC=function(){return function(I){return function(y){var D=I(y);_.uj(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[y],!0);return D}}};var Vtz,rcA;Vtz=new _.n0;_.qY=new _.uk("WATCH_PLAYER_PROMISE_TOKEN");_.ZfO=new _.n0;_.gue=new _.uk("SHORTS_PLAYER_PROMISE_TOKEN");rcA=new _.uk("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var MDB=function(){return function(I){return function(y){y.type==="ENTITY_LOADED"&&_.nR().resolve(_.qY).then(function(D){var F;(F=D.dispatchReduxAction)==null||F.call(D,y)});
return I(y)}}};var IxP={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var ESB=RV({additionalContext:function(I,y){I=I===void 0?IxP.additionalContext:I;switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var D;return(D=y.payload)!=null?D:"";default:return I}},
impersonatedChannelUrl:function(I,y){I=I===void 0?IxP.impersonatedChannelUrl:I;switch(y.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var D;return(D=y.payload)!=null?D:"";default:return I}},
selectedVideoIds:function(I,y){I=I===void 0?IxP.selectedVideoIds:I;switch(y.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var D={};return Object.assign({},I,(D[y.payload]=!0,D));case "VIDEO_UNSELECTED":return y=y.payload,I=Object.assign({},I),delete I[y],I;default:return I}}});var ybO={parentClickTrackingParams:""};var Gi4=RV({parentClickTrackingParams:function(I,y){I=I===void 0?ybO.parentClickTrackingParams:I;switch(y.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return y.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return I}}});var DZe=function(I){return _.Ec({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:I})},Fba=function(I){return _.Ec({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:I})};var Rxg={stepStates:{}};var XQ_=RV({stepStates:function(I,y){I=I===void 0?Rxg.stepStates:I;switch(y.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var D=I,F=y.payload,R,O,w;I={};y={selectionStates:Object.assign({},(w=(R=D[F.stepId])==null?void 0:R.selectionStates)!=null?w:{},(I[F.token]={isSelected:F.isSelected},I)),userQuery:(O=D[F.stepId])==null?void 0:O.userQuery};R={};return Object.assign({},D,(R[F.stepId]=y,R));case "TALK_TO_RECS_UPDATE_USER_QUERY":return R=I,O=y.payload,w=
{selectionStates:Object.assign({},(F=(D=R[O.stepId])==null?void 0:D.selectionStates)!=null?F:{}),userQuery:{userQuery:O.userQuery,token:O.userQueryToken}},D={},Object.assign({},R,(D[O.stepId]=w,D));default:return I}}});var Ooe,LbO,wAz;Ooe=function(I){return _.Ec({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:I})};
LbO=function(I){return _.Ec({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:I})};
_.sR=function(I){return _.Ec({type:"SET_CURRENT_PAGE_TYPE",payload:I})};
_.Jbu=function(I){return _.Ec({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:I})};
wAz=function(I){return _.Ec({type:"SET_CHIP_BAR_IS_STICKY",payload:I})};var oSt={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"};_.vaP=function(I){return _.Ec({type:"SET_PLAYER_STATE",payload:{playerState:I}})};var vf={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:hHJ(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var Q_C=RV({isTheaterMode:function(I,y){I=I===void 0?hHJ():I;switch(y.type){case "SET_IS_THEATER_MODE":return y.payload.isTheaterMode;default:return I}},
isWatchActive:function(I,y){I=I===void 0?vf.isWatchActive:I;switch(y.type){case "SET_IS_WATCH_ACTIVE":return y.payload.isWatchActive;default:return I}},
isLearningJourneyActive:function(I,y){I=I===void 0?vf.isLearningJourneyActive:I;switch(y.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return y.payload.isLearningJourneyActive;default:return I}},
isWatchFullscreen:function(I,y){I=I===void 0?vf.isWatchFullscreen:I;switch(y.type){case "SET_IS_WATCH_FULLSCREEN":return y.payload.isWatchFullscreen;default:return I}},
isWatchNarrowWidth:function(I,y){I=I===void 0?vf.isWatchNarrowWidth:I;switch(y.type){case "SET_IS_WATCH_NARROW_WIDTH":return y.payload.isWatchNarrowWidth;default:return I}},
isSwatcherooActive:function(I,y){I=I===void 0?vf.isSwatcherooActive:I;switch(y.type){case "SET_IS_SWATCHEROO_ACTIVE":return y.payload.isSwatcherooActive;default:return I}},
isWatchRetroMode:function(I,y){I=I===void 0?vf.isWatchRetroMode:I;switch(y.type){case "SET_IS_WATCH_RETRO_MODE":return y.payload.isWatchRetroMode;default:return I}},
isLiveChatCollapsed:function(I,y){I=I===void 0?vf.isLiveChatCollapsed:I;switch(y.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return y.payload.isLiveChatCollapsed;default:return I}},
openEngagementPanels:function(I,y){I=I===void 0?vf.openEngagementPanels:I;var D=[].concat(_.Td(I));switch(y.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return D.push(y.payload.panelToAdd),D;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return D.splice(D.indexOf(y.payload.panelToRemove),1),D;default:return I}},
playerState:function(I,y){I=I===void 0?vf.playerState:I;switch(y.type){case "SET_PLAYER_STATE":return y.payload.playerState;default:return I}},
watchScrollTop:function(I,y){I=I===void 0?vf.watchScrollTop:I;switch(y.type){case "SET_WATCH_SCROLL_TOP":return y.payload.watchScrollTop;default:return I}},
watchWindowSize:function(I,y){I=I===void 0?vf.watchWindowSize:I;switch(y.type){case "SET_WATCH_WINDOW_SIZE":return y.payload.watchWindowSize;default:return I}}});var SVR={surveyFeedbackData:{feedbackTokens:[]}};var YGA=RV({surveyFeedbackData:function(I,y){I=I===void 0?SVR.surveyFeedbackData:I;switch(y.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return y.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},I,y.payload);default:return I}}});var xi4={};var kiq=void 0;_.l("web_enable_redux_store_on_demand")||(kiq=zHL());var tHW=function(I,y,D){var F=this;this.listId=I;this.JSC$13305_updateCallback=y;this.isOfflineVideoCallback=D;_.oq().subscribe(function(){F.handleUpdate()})};
tHW.prototype.getPlaylistData=function(){var I=_.oq().getState().entities;if(this.listId&&this.listId!=="PPSV"){var y=ymS(I,this.listId,!0),D=_.fC(this.listId,"mainPlaylistEntity"),F,R;I=I==null?void 0:(F=I.mainPlaylistEntity)==null?void 0:(R=F[D])==null?void 0:R.title;return diW(y,I,this.listId)}y=_.c2W(n3A(I));I=_.c2W(_.Tz(I));I=y.concat(I);return diW(I)};
tHW.prototype.getPlaylistId=function(){return this.listId};
tHW.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13305_updateCallback(this.listId,this.getPlaylistData(),{})};var SM=function(I,y,D,F){F=F===void 0?[]:F;this.JSC$13308_playlistNetworkManager=I;this.listId=y;this.JSC$13308_updateCallback=D;this.videoIds=F;this.pendingUpdates=[];this.currentIndex=0};
SM.prototype.JSC$13308_setCurrentIndex=function(I){this.currentIndex=I};
SM.prototype.setListId=function(I){this.listId=I};
var PAn=function(I,y){I.currentCreateRequest&&I.currentCreateRequest.cancel(y);I.currentUpdateRequest&&I.currentUpdateRequest.cancel(y);I.currentRefreshRequest&&I.currentRefreshRequest.cancel(y)};
SM.prototype.delete=function(){PAn(this,"PROXY DELETED")};
SM.prototype.addVideos=function(I,y,D){var F=this;D!==void 0?this.videoIds.splice.apply(this.videoIds,[D,0].concat(_.Td(I))):this.videoIds.push.apply(this.videoIds,_.Td(I));this.listId||this.currentCreateRequest?(I.forEach(function(R,O){R={addedVideoId:R,action:"ACTION_ADD_VIDEO"};D&&(R.addedVideoPosition=D+O);F.pendingUpdates.push(R)}),tx(this)):KbO(this,y.onCreateListCommand)};
var UZe=function(I,y,D,F,R){aCB(I.videoIds,y,D);y>I.currentIndex&&D<=I.currentIndex?I.JSC$13308_setCurrentIndex(I.currentIndex+1):y===I.currentIndex?I.JSC$13308_setCurrentIndex(D):y<I.currentIndex&&D>=I.currentIndex&&I.JSC$13308_setCurrentIndex(I.currentIndex-1);I.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:F,movedSetVideoIdPredecessor:R});tx(I)},KbO=function(I,y){PAn(I,"OBSOLETE");
I.currentCreateRequest=rbz(I.JSC$13308_playlistNetworkManager,y,I.videoIds);_.D1(I.currentCreateRequest,function(){I.currentCreateRequest=void 0}).then(function(D){I.setListId(D.playlistId);
I.pendingUpdates.length>0?tx(I):jpM(I)})},tx=function(I){if(I.pendingUpdates.length!==0&&(I.currentRefreshRequest&&I.currentRefreshRequest.cancel("OBSOLETE"),!I.currentUpdateRequest&&!I.currentCreateRequest)){var y=I.pendingUpdates.splice(0,I.pendingUpdates.length);
I.currentUpdateRequest=I.JSC$13308_playlistNetworkManager.updatePlaylist(I.listId,y);_.D1(I.currentUpdateRequest,function(){I.currentUpdateRequest=void 0}).then(function(){I.pendingUpdates.length>0?tx(I):jpM(I)}).thenCatch(function(){I.pendingUpdates.unshift.apply(I.pendingUpdates,_.Td(y))})}},jpM=function(I){I.currentRefreshRequest=_.oa_(I.JSC$13308_playlistNetworkManager,I.listId,I.currentIndex,I.videoIds[I.currentIndex]);
_.D1(I.currentRefreshRequest,function(){I.currentRefreshRequest=void 0}).then(function(y){I.JSC$13308_updateCallback(y.playlistId,y.playlistPanelRenderer,y.autoplayRenderer)})};
SM.prototype.size=function(){return this.videoIds.length};var Nxu=function(I,y,D,F){F=F===void 0?[]:F;SM.call(this,I,y,D,F);this.JSC$13308_playlistNetworkManager=I;this.listId=y;this.JSC$13308_updateCallback=D;this.videoIds=F};
_.E(Nxu,SM);_.Pf=function(I,y,D,F,R,O,w){R=R===void 0?[]:R;w=w===void 0?G6:w;SM.call(this,I,y,D,R);this.JSC$13308_playlistNetworkManager=I;this.listId=y;this.JSC$13308_updateCallback=D;this.onAuthChange=F;this.videoIds=R;this.storage=O;this.cookieReader=w;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.qK(_.w2,this.checkLoggedInStatusChange.bind(this),1E3)};
_.E(_.Pf,SM);_.L=_.Pf.prototype;_.L.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.qK(_.w2,this.checkLoggedInStatusChange.bind(this),1E3)};
_.L.JSC$13308_setCurrentIndex=function(I){SM.prototype.JSC$13308_setCurrentIndex.call(this,I);this.store()};
_.L.delete=function(){_.w2.cancelJob(this.queueSapisIdJob);SM.prototype.delete.call(this)};
_.L.setListId=function(I){SM.prototype.setListId.call(this,I);this.store()};
_.L.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var hxO=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],xZg=["playerResponse","videoDetails"],lxg=["response","currentVideoEndpoint","watchEndpoint","videoId"],uZa=["response","currentVideoEndpoint","watchEndpoint","playlistId"],qVG=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Ea_=["response","contents","twoColumnWatchNextResults","playlist","playlist"],GSO=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
XAn=["response","contents","twoColumnWatchNextResults"];var KJ={},BKo=(KJ.WEB_UNPLUGGED="^unplugged/",KJ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",KJ.WEB_UNPLUGGED_OPS="^unplugged/",KJ.WEB_UNPLUGGED_PUBLIC="^unplugged/",KJ.WEB_CREATOR="^creator/",KJ.WEB_KIDS="^kids/",KJ.WEB_EXPERIMENTS="^experiments/",KJ.WEB_MUSIC="^music/",KJ.WEB_REMIX="^music/",KJ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",KJ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",KJ);var PQq,rbz;PQq=function(I,y){this.networkManager=I;this.innertubeTransportService=y};
rbz=function(I,y,D){if(!_.u(y,_.P0))return _.eE(Error("Of"));_.u(y,_.P0).videoIds=D;D={create_playlist_title:_.zC("QUEUE",void 0,"Queue")};return Wnq(_.wP(I.innertubeTransportService,y,D),aPL)};
_.oa_=function(I,y,D,F){y={videoId:F,playlistId:y,playlistIndex:D};D=_.NP(EbP);return Wnq(_.U3(I.innertubeTransportService,y,D),CzH)};
PQq.prototype.updatePlaylist=function(I,y){return Wnq(_.wP(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:I,actions:y}}),c5H)};var Qpf=function(I){this.storage=I},YVM;
Qpf.prototype.store=function(I,y){y=y===void 0?0:y;if(this.storage&&I.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",I),this.storage.set("TLPQindex",String(y)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(D){}};
Qpf.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Qpf.prototype.getPlaylistId=function(){if(!this.storage)return null;var I=null;try{I=this.storage.get("TLPQplaylist")}catch(y){}return I};var bcJ=["navigationEndpoint","watchEndpoint","videoId"],$i_=["nextButtonVideo","watchEndpoint","videoId"];_.BF=new _.uk("NETWORK_TOKEN");_.ja=new _.uk("PAGE_TOKEN");_.rE=new _.uk("PLAYLIST_TOKEN");var fxW;fxW=new _.uk("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.iX=new _.uk("INNERTUBE_TRANSPORT_TOKEN");var nag,jM,mZa,MHG,kSg,dZR;nag=new Set(["ci","cr","carml"]);jM=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13355_parkedJobs=new Map;this.parkedProcessors=new Map};
_.oJ=function(){jM.instance||(jM.instance=new jM);return jM.instance};
jM.prototype.onAny=function(I){return _.pA_(this,I,2)};
jM.prototype.parkOrScheduleJob=function(I,y,D,F,R){_.NF(this,D)?_.Tr().addJob(I,y,F):(R&&(I=mZa(I),MHG(this,I,y,D,R)),R=this.JSC$13355_parkedJobs.get(D),R||(this.JSC$13355_parkedJobs.set(D,[]),R=this.JSC$13355_parkedJobs.get(D)),R.push({job:I,priority:y,delay:F}))};
jM.prototype.addListener=function(I,y,D){D&&(y=mZa(y),MHG(this,y,0,I,D));D=this.parkedProcessors.get(I);D||(this.parkedProcessors.set(I,[]),D=this.parkedProcessors.get(I));D.push(y)};
jM.prototype.processSignal=function(I){if(!_.NF(this,I)){this.inProgressSignals.add(I);var y=this.JSC$13355_parkedJobs.get(I);if(y){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,_.Tr().addJob(D.job,D.priority,D.delay);this.JSC$13355_parkedJobs.delete(I)}if(y=this.parkedProcessors.get(I)){y=_.J(y);for(D=y.next();!D.done;D=y.next())D=D.value,D();this.parkedProcessors.delete(I)}this.signals.push(I);this.inProgressSignals.delete(I)}};
_.NF=function(I,y){return nag.has(y)||_.KR("IS_HOMEPAGE_COLD")||_.KR("IS_RESULTS_PAGE_COLD")||_.KR("IS_WATCH_PAGE_COLD")?I.signals.indexOf(y)>=0:!0};
mZa=function(I){var y=!1;return function(){y||(y=!0,I())}};
MHG=function(I,y,D,F,R){if(zxM.has(F))_.Tr().addJob(y,D,R);else{var O=I.compoundSignals.get(F);O&&_.Tr().addJob(function(){_.NF(I,F)||(O.isTimeoutConditionSatisfied?_.Tr().addJob(y,D):O.timeoutConditionObservers.push(function(){_.Tr().addJob(y,D)}))},D,R)}};
_.pA_=function(I,y,D){if(y.length>1){var F=[],R=Object.create(null);y=_.J(y);for(var O=y.next();!O.done;O=y.next())O=O.value,R[O]||(F.push(O),R[O]=!0);y=F}if(y.length===1)return y[0];O=y;F="";R=D===2?"|":"&";O.sort();O=_.J(O);for(var w=O.next();!w.done;w=O.next())F+=w.value+R;if(!I.compoundSignals.get(F)){R=0;O=[];w=_.J(y);for(var v=w.next();!v.done;v=w.next())v=v.value,R++,_.NF(I,v)||O.push(v);(D=D===2)&&R>O.length||!D&&!O.length?I.signals.push(F):kSg(I,F,D,y,O)}return F};
kSg=function(I,y,D,F,R){var O=R.length,w=function(){D||--O===0?I.processSignal(y):dZR(I,y)};
R=_.J(R);for(var v=R.next();!v.done;v=R.next())I.addListener(v.value,w);I.compoundSignals.set(y,{signals:F,isOnAny:D,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});dZR(I,y)};
dZR=function(I,y){if(!_.NF(I,y)){var D=I.compoundSignals.get(y);if(D&&!D.isTimeoutConditionSatisfied){for(var F=!1,R=0,O=0,w=_.J(D.signals),v=w.next();!v.done;v=w.next()){var P=v.value;v=!_.NF(I,P);zxM.has(P)?F=!0:(P=I.compoundSignals.get(P))?v&&!P.isTimeoutConditionSatisfied&&(O++,D.isInitialized||P.timeoutConditionObservers.push(function(){dZR(I,y)})):v&&R++}D.isInitialized=!0;
D.isOnAny?F&&(D.isTimeoutConditionSatisfied=!0):R===0&&O===0&&(D.isTimeoutConditionSatisfied=!0);if(D.isTimeoutConditionSatisfied)for(D=_.J(D.timeoutConditionObservers),F=D.next();!F.done;F=D.next())F=F.value,F()}}};
jM.prototype.processSignal=jM.prototype.processSignal;jM.prototype.parkOrScheduleJob=jM.prototype.parkOrScheduleJob;jM.prototype.onAny=jM.prototype.onAny;_.fv("ytsignals.getInstance",_.oJ);jM.prototype.onAny=jM.prototype.onAny;jM.prototype.parkOrScheduleJob=jM.prototype.parkOrScheduleJob;jM.prototype.processSignal=jM.prototype.processSignal;var zxM=new Set(["eop","eocs","dl","pcl"]);_.OI=new _.uk("MINIPLAYER_SERVICE");var hx,axg,cbG;hx=function(I,y,D){var F=_.uK.getInstance();if(!YVM){var R=new bCS;var O=void 0,w=_.Pi("ID_TOKEN");w&&R.isAvailable()&&(O=new RC(R,"yt-queue"+w));YVM=new Qpf(O)}R=YVM;O=_.oJ();this.JSC$13362_actionRouter=F;this.JSC$13362_pageManager=I;this.playlistManager=y;this.JSC$13362_playlistNetworkManager=D;this.storage=R;this.signals=O;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.xD=function(){if(!axg){var I=_.nR(),y=I.resolve(_.fR(_.ja)),D=I.resolve(_.fR(_.BF)),F=I.resolve(_.fR(_.rE));I=I.resolve(_.iX);axg=new hx(y,F,new PQq(D,I))}return axg};
cbG=function(I,y,D){if(D){var F;if(((F=I.responsePlaylistData)==null?void 0:F.playlistId)!==D)return}I.responsePlaylistData&&(D=Zcq(y,I.responsePlaylistData),I.responsePlaylistData=(0,_.e$.unsafeClone)(I.responsePlaylistData),IkA(I.responsePlaylistData,D));D=I.temporaryItems.findIndex(function(R){return R.videoId===y});
D>-1&&I.temporaryItems.splice(D,1);_.l3(I,_.u3(I,I.response?I.response.autoplayRenderer:void 0))};
_.Wbn=function(I,y){if(I.responsePlaylistData){var D=gSq(y,I.responsePlaylistData);IkA(I.responsePlaylistData,D);if(I.queueProxy){var F=I.queueProxy;D<0||(F.videoIds.splice(D,1),D<F.currentIndex&&F.JSC$13308_setCurrentIndex(F.currentIndex-1),F.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:y}),tx(F))}}_.l3(I,_.u3(I,I.response?I.response.autoplayRenderer:void 0))};
hx.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.l3(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
hx.prototype.setPlaylistData=function(I,y,D){this.temporaryItems=[];this.listId=I;this.responsePlaylistData=y;_.l3(this,_.u3(this,D))};
var CAa=function(I){return(I==null?0:I.playlistId)?I.playlistId:"PPSV"},Bxf=function(I){return I&&I.playlistId?I.playlistId==="PPSV"?!0:gpq(_.oq().getState().entities,I.playlistId):!1};
hx.prototype.isPlayingOfflineVideo=function(){return this.response?Bxf(this.response):!1};
hx.prototype.closeMiniplayer=function(I){var y=this.queueProxy&&this.queueProxy.size()<=1,D=_.nR().resolve(_.OI);if(!this.queueProxy||y)this.queueProxy&&this.clearQueue(),D.close(!0);else{D.pipController.getWindow()&&window.focus();y=this.responsePlaylistData;var F=this.temporaryItems.length+(y&&y.contents?y.contents.length:0);y=_.zC("QUEUE_CLEARED_UNPLURALIZED")||_.kI("QUEUE_CLEARED",F);y=_.xc(y);D=_.zC("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");F=_.zC("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.kI("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",F);var R=_.zC("MINIPLAYER_CLOSE",void 0,"Close"),O=_.zC("CANCEL",void 0,"Cancel");_.RZ(this.JSC$13362_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ug(D),dialogMessages:[_.Ug(F)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ug(R),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
y]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ug(O)}}}}}}],I)}};
_.u3=function(I,y){var D={},F=I.response;D.autoplayRenderer=y;if(!I.responsePlaylistData&&!I.temporaryItems.length)return!F||!F.hasRelatedVideoData&&_.l("kevlar_prefetch_data_augments_network_data")||(D.playerData={rvs:F.relatedVideoArgs,endScreenRenderer:F.endScreenRenderer}),D;D.playerData={};if(I.index===void 0)return _.vu(Error("Qf")),D;D.panel=I.responsePlaylistData?(0,_.e$.unsafeClone)(I.responsePlaylistData):{titleText:_.Ug(_.zC("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
y=D.panel;if(y.contents)for(var R=_.J(I.temporaryItems),O=R.next();!O.done;O=R.next())y.contents.push({playlistPanelVideoRenderer:O.value});I.queueProxy&&F&&F.playingVideo&&F.playingVideoId&&!VD4(F.playingVideoId,D.panel)&&(y=F.playingVideo,R=D.panel,O=I.index,R.contents&&R.contents.splice(O===void 0?0:O,0,{playlistPanelVideoRenderer:y}));F&&F.playingVideoId&&(y=I.index,R=D.panel,y=!R.contents||y>=R.contents.length?void 0:R.contents[y].playlistPanelVideoRenderer,y&&y.videoId===F.playingVideoId||(y=
Zcq(F.playingVideoId,D.panel),I.index=y!==-1?y:I.index?I.index-1:0));y=s_A(I.index+1,D.panel);R=void 0;I.index>0&&(R=s_A(I.index-1,D.panel));if(R||y)D.autoplayRenderer=Hc5(y,R,D.autoplayRenderer);!y&&(F==null?0:F.relatedVideoArgs)&&(D.playerData.rvs=F.relatedVideoArgs);F=F?F.playlistIndexOffset:0;I.queueProxy?FFS(D.panel,I.index,F,TKq,!0,!0,!0):FFS(D.panel,I.index,F);D.playerData.playlistPanelRenderer=D.panel;return D};
hx.prototype.isMiniplayerActive=function(){return _.nR().resolve(_.OI).isMiniplayerActive()};
_.l3=function(I,y){I.playlistManager.setAutoplayRenderer(y.autoplayRenderer||null);I.playlistManager.setPlaylistData(y.panel||null);y.playerData&&I.playlistManager.setPlayerPlaybackControlData(y.playerData)};var RGW="#";var ion={},AbM={},$Zn={},boW={},HoM={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:(ion.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",ion),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:(AbM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",AbM),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:($Zn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",$Zn),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:(boW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",boW),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 C1H=[{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:HoM},{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:HoM}}];var nZt;_.f0=[[["cWszcGc0aXc1ZGVraW5kI2Q=","ZHIwbDVkNXl1dmFsdWUjYTE1"],"dWlrdm54cGE5QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjcTAx"]];
nZt=[[["cnd5ZmdwcmltYXJ5I3RxNmM4c2U=",null,null],[null,["by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjZHUzN2s4NTN2eDNveXRkLXR3","bGUtc2NvcGUjazJ5dnBjNnBydW54c3R5"],null],["dGhlYWQtYWQjMXA0azFuNzNwdW5xbWFz",["dmVpNXByanZhdXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjcmU="],null],[null,["dWR4M3FxNTQ2NHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjY3M=","bGUtc2NvcGUjcTcwdG1mczEwNmE3c3R5"],null],[null,["Y2cybzV2OXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjZ2Qwa2k=","dHlsZS1zY29wZSNzOGI4NHFjOHNreXM="],null],[null,["NGRieTQwbnpiOXRqeXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["bGF5ZXItYWRzI3d5MXkzc2t3aDNuZHA=",null,null]]];_.Yc=["YWNrcyM0Mm1uYnc0YTV6MTdnbG9iYWxDYWxsYg==","cGQydDNnMWp5bzhvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjbQ==","OTNmb25BZFNraXAjdGdhZmd6bm1p","I25rM3RhODU5anU3NHJhd19wbGF5ZXJfcmVzcG9uc2U=","dzluYm1hZFNsb3RzI21hcXk4YjU="];_.qF="YWNrcyM0Mm1uYnc0YTV6MTdnbG9iYWxDYWxsYg== cGQydDNnMWp5bzhvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjbQ== OTNmb25BZFNraXAjdGdhZmd6bm1p I25rM3RhODU5anU3NHJhd19wbGF5ZXJfcmVzcG9uc2U= cGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjbDlhMzdtYnI5Ym91d2ViXw== NG9lYWJfc2FfZWYjdmg3YnA0ZDQ3 dzluYm1hZFNsb3RzI21hcXk4YjU=".split(" ");var E3;E3=function(I,y,D){this.g6R=I;this.evP=y;this.qQt=D};
_.gZq=[new E3("b.f_",!1,0),new E3("j.s_",!1,2),new E3("r.s_",!1,4),new E3("e.h_",!1,6),new E3("i.s_",!0,8),new E3("s.t_",!1,10),new E3("p.h_",!1,12),new E3("s.i_",!1,14),new E3("f.i_",!1,16),new E3("a.b_",!1,18),new E3("a.o_",!1),new E3("g.o_",!1,22),new E3("p.i_",!1,24),new E3("p.m_",!1),new E3("n.k_",!0,20),new E3("i.f_",!1),new E3("a.s_",!0),new E3("m.c_",!1),new E3("n.h_",!1,26),new E3("o.p_",!1),new E3("m.p_",!0,28),new E3("o.a_",!1),new E3("d.p_",!1),new E3("e.i_",!1)].reduce(function(I,y){I[y.g6R]=
y;return I},{});var exu=function(){};
exu.prototype.flush=function(I,y){I=I===void 0?[]:I;y=y===void 0?!1:y;if(_.l("enable_client_streamz_web")){I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=da_(D.value),this.rootSpec&&_.mH(D,2,this.rootSpec),D={serializedIncrementBatch:_.VB(D.JSC$9883_serializeBinary())},_.Jq("streamzIncremented",D,{sendIsolatedPayload:y})}};
var vZ4=function(){};
_.E(vZ4,exu);var Tx_=function(I){var y=new faM;var D=new Xm_;D=_.BB(D,1,"botguard");I=_.BB(D,2,I);this.rootSpec=_.Mg(y,1,nMO,I)};
_.E(Tx_,exu);var GF,VHu=new Map;var zGH,t9t,x1W,U1S,oZt,YHS,d1A,X7J;zGH=2;t9t=2;x1W=2;U1S=2;oZt=2;YHS=2;d1A=2;X7J=new p1z;var gaP,IHM;gaP=function(){this.ongoingFlowNonces=new Map};
_.mX=function(){IHM||(IHM=new gaP);return IHM};
_.p0=function(I,y,D){return{eventType:{flowEventNamespace:I,flowEventType:y},metadata:D,statusCode:void 0,csn:void 0,can:void 0}};
_.yaB=function(I,y){var D=_.mX(),F=yHc(D,y,!0);D.logFlowEvent(I,y,F,void 0)};
gaP.prototype.logFlowEvent=function(I,y,D,F){y={flowNonce:D||yHc(this,y),flowType:y,flowEventType:I.eventType};I.metadata&&(y.flowMetadata=I.metadata);I.statusCode!==void 0&&(y.flowEventStatus=I.statusCode);I.csn&&(y.csn=I.csn);I.can&&(y.can=I.can);_.Jq("flowEvent",y,F)};
var yHc=function(I,y,D){D=D===void 0?!1:D;var F=I.ongoingFlowNonces.get(y);if(!F||D)F=eC(16),I.ongoingFlowNonces.set(y,F);return F};_.D7z=new nkc;var Lc5={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var GL=function(I,y,D,F,R,O,w){D=D===void 0?!1:D;F=F===void 0?!1:F;O=O===void 0?_.xD():O;this.wI=!1;this.uoe=I;this.gNC=y;this.jfS=D;this.fromHistory=F;this.previousVideoId=R;this.fJ2=O;this.tempData=w;this.asY=new _.moe};
_.E(GL,Qk);GL.prototype.validate=function(I){return!(!I.data.playerResponse||I.data.page!=="watch"&&I.data.page!=="learning_journey_watch"&&I.data.page!=="shorts"||this.wI)};
GL.prototype.handle=function(I){var y=this,D=_.u(I.endpoint,_.t9),F=_.u(I.endpoint,_.WF);if(_.l("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.uoe.resolve();else{var R={};D?R.watch_endpoint=D:F&&(R.watch_endpoint=F,F.endTimeSeconds&&(R.end=F.endTimeSeconds));I.data.page==="watch"?(I.data.filler||this.jfS||(_.ZL("cfg"),_.uK.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(R,Fig(this,I.endpoint)),_.l("enable_masthead_quartile_ping_fix")&&Object.assign(R,Rhn(this)),Object.assign(R,void 0),I.data.forceExternalPlaylist&&(R.external_list=!0)):I.data.page==="shorts"?_.uK.getInstance().triggerAction("yt-start-loading-shorts"):I.data.page==="learning_journey_watch"&&_.uK.getInstance().triggerAction("yt-start-loading-learning-journey");if(D=this.gNC()){try{D.loadVideoWithPlayerResponse(I.data.playerResponse,R),D.getPlayerPromise().then(this.uoe.resolve)}catch(O){_.vu(O),
this.uoe.resolve()}this.wI=!0;D.getPlayerPromise().then(function(O){O.addEventListener("onAbnormalityDetected",function(){var w=I.data.playerResponse,v=O.getVideoData().cpn;d1A=0;_.ZoW=v;if(v=ZF5(w))y.asY.increment("IN_PLAYER"),_.MP(5),_.l("ab_st_vid_ks")?O.pauseVideo(!0):O.stopVideo(),w.playabilityStatus=Object.assign({},w.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:v}}),w.videoDetails=void 0,_.uK.getInstance().triggerOptionalAction("yt-updated-playability-status",
w.playabilityStatus)})})}else _.tq(Error("Tf"))}};
var Fig=function(I,y){var D=_.u(y,_.t9);if(y&&D&&D.playlistId&&D.videoId&&(I=I.fJ2,I.queueProxy?(I=I.queueProxy,D=I.listId===D.playlistId?I.attributionData.get(D.videoId):void 0):D=void 0,D))return{queue_info:D}},Rhn=function(I){var y;
if((y=I.tempData)==null?0:y.adpings)return{adpings:I.tempData.adpings}};var XD=function(I,y,D){this.wI=!1;this.enK=I;this.q90=y;this.uk7=D};
_.E(XD,Qk);XD.prototype.validate=function(I){return!!_.e$.getValueByKeys.apply(null,[I.data].concat(_.Td(XAn)))};
XD.prototype.handle=function(I){var y=this;this.enK.promise.then(function(){var D=I.data;var F=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(hxO))),R=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(Ea_))),O=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(lxg)));var w=(w=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(xZg))))?{videoId:w.videoId,thumbnail:w.thumbnail,title:w.title?_.Ug(w.title):void 0,shortBylineText:w.author?_.Ug(w.author):void 0}:void 0;var v=void 0;_.l("web_get_playlist_id_from_current_endpoint_ks")||
(v=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(uZa))));var P=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(GSO))),K=_.e$.getValueByKeys.apply(null,[D].concat(_.Td(qVG))),r=!!P||!!K&&!!K.results&&K.results.length>0,N=0;R&&R.currentIndex&&R.localCurrentIndex&&(N=R.currentIndex-R.localCurrentIndex);R&&R.playlistId&&(v=R.playlistId);D={rawResponse:D,autoplayRenderer:F,hasRelatedVideoData:r,playingVideo:w,playingVideoId:O,playlistPanelRenderer:R,playlistId:v,playlistIndex:R&&R.currentIndex,relatedVideoArgs:P,
endScreenRenderer:K,playlistIndexOffset:N};a:{F=y.uk7;R=y.q90;F.response=D;if(Bxf(D))F.downloadPlaylistProxy&&F.downloadPlaylistProxy.getPlaylistId()===CAa(D)||(F.downloadPlaylistProxy=new tHW(CAa(D),F.setPlaylistData.bind(F),F.isPlayingOfflineVideo.bind(F))),F.responsePlaylistData=F.downloadPlaylistProxy.getPlaylistData(),F.listId=CAa(D),F.index=0;else if(D.playlistPanelRenderer&&D.playlistId&&D.autoplayRenderer)D.playlistId.startsWith("TLPQ")?F.queueProxy?F.listId===D.playlistId?(F.index=D.playlistIndex,
F.responsePlaylistData=D.playlistPanelRenderer,F.queueProxy.JSC$13308_setCurrentIndex(F.index)):D.playingVideoId&&F.index!==void 0&&R.clientParams.autoSaveToQueue&&(F.index+=1,F.queueProxy.JSC$13308_setCurrentIndex(F.index),F.queueProxy.addVideos([D.playingVideoId],{},F.index)):(F.queueProxy=new _.Pf(F.JSC$13362_playlistNetworkManager,D.playlistId,F.setPlaylistData.bind(F),F.clearQueue.bind(F),_.yhL(D.playlistPanelRenderer),F.storage),F.responsePlaylistData=D.playlistPanelRenderer,F.listId=D.playlistId,
F.index=D.playlistIndex):(F.index=D.playlistIndex,F.listId!==D.playlistId&&F.clearQueue(),F.responsePlaylistData=D.playlistPanelRenderer,F.listId=D.playlistId,F.playlistProxy=new Nxu(F.JSC$13362_playlistNetworkManager,D.playlistId,F.setPlaylistData.bind(F),_.yhL(D.playlistPanelRenderer)));else if(!F.queueProxy)F.responsePlaylistData=void 0;else if(D.playingVideoId&&R.clientParams.autoSaveToQueue){if(F.index===void 0){_.vu(Error("Pf"));F.clearQueue();break a}F.queueProxy.videoIds.includes(D.playingVideoId)||
(F.index+=1,F.queueProxy.JSC$13308_setCurrentIndex(F.index),F.queueProxy.addVideos([D.playingVideoId],{},F.index))}_.l3(F,_.u3(F,F.response.autoplayRenderer))}})};var Oqu=function(I,y){y=y===void 0?_.xD():y;iW.call(this);this.cj.push(new XD(this.eV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},y));this.cj.push(new GL(this.eV,I,!1,!1));_.l("web_response_commands_chunk_processor")&&this.cj.push(new Az)};
_.E(Oqu,iW);Oqu.prototype.processChunk=function(I){I&&I.data.player===void 0&&this.eV.resolve();iW.prototype.processChunk.call(this,I)};var Q8=function(I,y){I=I===void 0?{layer:0}:I;this.wI=!1;this.createScreenConfig=I;this.m91=y};
_.E(Q8,Qk);Q8.prototype.validate=function(I){return!(this.wI||!I.endpoint)};
Q8.prototype.handle=function(I){var y=_.W4(),D,F,R=(F=_.u((D=I.endpoint)==null?void 0:D.commandMetadata,_.nE))==null?void 0:F.rootVe;this.m91&&R?_.d7(y,R,this.m91,this.createScreenConfig):b1a(y,I.endpoint,this.createScreenConfig);this.wI=!0};var YD=function(I,y){this.wI=!1;this.cTf=I;this.previousVideoId=y};
_.E(YD,Qk);YD.prototype.validate=function(I){return _.l("kevlar_continue_playback_without_player_response")&&(I=_.u(I.endpoint,_.t9),(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback))?!1:this.cTf.f9m===0};
YD.prototype.handle=function(I){_.uK.getInstance().triggerAction("yt-stop-old-player",I.data,!0)};var Lif=function(I){I=I===void 0?{layer:0}:I;iW.call(this);this.cj.push(new YD(this));this.cj.push(new Q8(I));this.cj.push(new B0(I))};
_.E(Lif,iW);var fJ=function(){Qk.apply(this,arguments)};
_.E(fJ,Qk);fJ.prototype.validate=function(I){return!!I.data.preconnect};
fJ.prototype.handle=function(I){_.V_("bc");I=_.J(I.data.preconnect);for(var y=I.next();!y.done;y=I.next())y=y.value,(new Image).src=y};var JHc=function(I,y,D,F,R,O,w){D=D===void 0?{layer:0}:D;O=O===void 0?_.xD():O;iW.call(this);if(F)if(R){R=O;this.cj.push(new XD(this.eV,y,R));this.cj.push(new fJ);var v,P;this.cj.push(new GL(this.eV,I,!1,!((v=y.clientParams)==null||!v.fromHistory),(P=y.clientParams)==null?void 0:P.previousVideoId,R,y.tempData));var K;this.cj.push(new YD(this,(K=y.clientParams)==null?void 0:K.previousVideoId));var r;(r=y.clientParams)!=null&&r.fromHistory||(D.layer||(D=Object.assign({},D,{layer:0})),this.cj.push(new Q8(D,
w)),this.cj.push(new B0(D)))}else this.cj.push(new XD(this.eV,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},O)),this.cj.push(new GL(this.eV,I,!1,!1));else this.cj.push(new YD(this)),this.cj.push(new Q8(D)),this.cj.push(new B0(D));_.l("web_response_commands_chunk_processor")&&F&&this.cj.push(new Az)};
_.E(JHc,iW);JHc.prototype.processChunk=function(I){I&&I.data.player===void 0&&this.eV.resolve();iW.prototype.processChunk.call(this,I)};var w3z=function(){this.wI=this.wI=!1};
_.E(w3z,Qk);w3z.prototype.validate=function(I){return!this.wI&&!(!I.data.csn||!I.data.rootVe)};
w3z.prototype.handle=function(I){this.wI=!0;_.gU(I.data.csn,I.data.rootVe,3)};var vJe=function(I,y,D){D=D===void 0?{layer:0}:D;iW.call(this);this.cj.push(new GL(this.eV,I));this.cj.push(new Q8(D));this.cj.push(new B0(D))};
_.E(vJe,iW);var Shf=function(I,y,D,F,R){D=D===void 0?{layer:0}:D;F=F===void 0?_.xD():F;iW.call(this);var O=!!y&&!!y.clientParams&&!!y.clientParams.miniplayer;O&&this.cj.push(new w3z);this.cj.push(new XD(this.eV,y,F));this.cj.push(new fJ);var w,v;this.cj.push(new GL(this.eV,I,O,!((w=y.clientParams)==null||!w.fromHistory),(v=y.clientParams)==null?void 0:v.previousVideoId,F,y.tempData));var P;this.cj.push(new YD(this,(P=y.clientParams)==null?void 0:P.previousVideoId));var K;(K=y.clientParams)!=null&&K.fromHistory||
(D.layer||(D=Object.assign({},D,{layer:O?3:0})),this.cj.push(new Q8(D,R)),this.cj.push(new B0(D)));_.l("web_response_commands_chunk_processor")&&this.cj.push(new Az)};
_.E(Shf,iW);var nJ,Kig;nJ={};
_.tcM=(nJ["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},nJ["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},nJ["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},nJ["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},nJ["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},nJ["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},nJ["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},nJ);_.pJ=new _.Ku("yt-edu");_.PNf=function(){this.JSC$13460_eduDisplayedThisLoad_={}};
Kig=function(I){var y=_.PNf.getInstance();var D=_.kf("kevlar_tooltip_impression_cap");y=D&&parseInt(_.pJ.get(I+"-impression")||0,10)>=D||_.pJ.get(I+"-dismissed")?!1:(D=_.tcM[I])&&!y.JSC$13460_eduDisplayedThisLoad_[D.setKey||I]&&(D.titleText&&_.zC(D.titleText)||D.bodyText&&_.zC(D.bodyText))?!0:!1;if(!y)return null;y=_.tcM[I];if(!y)return null;D=y.bodyText?_.zC(y.bodyText):void 0;var F=y.titleText?_.zC(y.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:y.position,popup:{bubbleHintRenderer:{text:F?
_.Ug(F):void 0,detailsText:D?_.Ug(D):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ug(_.zC("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:I}}]}}}}}}}},{eduImpressionAction:{key:I}}]};
_.uy(_.PNf);var DDH=!1;for(var U7M="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),rHM=[],mN=6;mN>=1;mN--)rHM.push({columnCount:mN,query:mN==1?0:mN*2*107-4+32,className:"grid-"+mN+"-columns",width:mN*2*107+"px"});_.MF=function(I){this.actionRouter_=I=I===void 0?_.uK.getInstance():I;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.jxM(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.jxM=function(I){var y=I.documentWidth_-(I.miniGuideVisible_?72:0)-(I.guidePersistentAndVisible_?240:0)-(I.persistentPanelVisible_?400:0);return rHM.find(function(D){return y>D.query})};
_.uy(_.MF);var oJf=function(){var I=this;this.JSC$13472_keyboardInUse=!1;document.addEventListener("keydown",function(){I.onKeydown()});
document.addEventListener("mousedown",function(){I.JSC$13472_keyboardInUse=!1})},N_W;
oJf.prototype.isKeyBoardInUse=function(){return this.JSC$13472_keyboardInUse};
oJf.prototype.onKeydown=function(){this.JSC$13472_keyboardInUse=!0};var hha,dE;_.zL=new _.Ku("yt-mentions");_.kD=function(){};
hha=function(I,y){return dE(y,"drag-to-reorder-edu-displayed")};
dE=function(I,y,D,F,R,O){D=D===void 0?"OPEN_POPUP_POSITION_TOP":D;if(y){if(_.zL.get(y))return;_.zL.set(y,!0,F)}if(R&&O!==void 0){y=Number(_.zL.get(R)||0);if(y>=O)return;_.zL.set(R,y+1)}return[{openPopupAction:{popupType:"HINT",position:D,popup:{bubbleHintRenderer:{detailsText:I,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.uy(_.kD);var x7_,lHW,uFP;x7_=function(I,y,D,F){this.JSC$13482_taskManager_=I;this.onFulfilled_=typeof y==="function"?y:null;this.onRejected_=typeof D==="function"?D:null;this.JSC$13482_context_=F};
lHW=function(I,y){I.onFulfilled_&&_.ip(I.JSC$13482_taskManager_,function(){I.onFulfilled_.call(I.JSC$13482_context_,y)})};
uFP=function(I,y){I.onRejected_&&_.ip(I.JSC$13482_taskManager_,function(){I.onRejected_.call(I.JSC$13482_context_,y)})};
_.aJ=function(I){this.JSC$13485_taskManager_=I;this.callbacks_=[]};
_.aJ.prototype.then=function(I,y,D){this.callbacks_.push(new x7_(this.JSC$13485_taskManager_,I,y,D));return this};
_.aJ.prototype.onSuccess=function(I){this.callbacks_.forEach(function(y){lHW(y,I)})};
_.aJ.prototype.onFailure=function(I){this.callbacks_.forEach(function(y){uFP(y,I)})};
_.aJ.prototype.cancel=function(){this.callbacks_.length=0};
cIg(_.aJ);_.wj4=null;_.cU=new _.uk("ACTIVITY_TOKEN");var qhM;_.b0=new _.uk("PAGE_REQUEST_TOKEN");qhM=new _.uk("FETCH_PBJ_TOKEN");_.EJn=function(I){if(I.validatedFragments_.length==0)return null;if(!I.mergedPrefetchedData_){for(var y=[],D=_.J(I.validatedFragments_),F=D.next();!F.done;F=D.next()){F=_.J(I.fragmentConfiguration_[F.value].graftedKeys);for(var R=F.next();!R.done;R=F.next())(R=I.prefetchedData_[R.value].trackingParams)&&y.push(R)}I.mergedPrefetchedData_={};Object.assign(I.mergedPrefetchedData_,I.prefetchedData_,{clientSideGrafts:y})}return I.mergedPrefetchedData_};var Gl_;_.cf=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Gl_=function(I,y,D){if(_.vx_(y))return I.prefetchCache_.get(_.SKo(y,D))};_.Wf=new _.uk("NAVIGATION_TOKEN");var X3M=function(I){var y=this;var D=D===void 0?Kct():D;var F=F===void 0?_.nR().resolve(_.Wf):F;this.onePickCommand=I;this.JSC$13557_playlistNetworkManager=D;this.navigationManager=F;this.videoPickerBuilder=_.tw4("yt-addtoplaylist");_.DQn(BUc(iDM(C5c(this.videoPickerBuilder.setTitle(I.modalTitle).setSize(1E3).addView(ZTf()).addView(VbW())).addView("youtube"),I.selectButtonLabel)),function(R){y.handleAction(R)})};
X3M.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
X3M.prototype.handleAction=function(I){var y=this;if(I&&this.onePickCommand.listId&&I.action==="picked"&&I.docs){var D=[];I.docs.forEach(function(F){D.push({addedVideoId:F.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13557_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,D).then(function(){_.l("playlist_add_video_hard_reload_killswitch")?y.navigationManager.reload():Qxn(y.navigationManager)})}};var Yhz=function(){if(this.constructor===Yhz)throw new TypeError("Vf");};
_.L=Yhz.prototype;_.L.dispose=function(){};
_.L.disconnect=function(){};
_.L.reconnect=function(){};
_.L.observe=function(I,y,D){return{element:I,option:D}};
_.L.unobserveByKey=function(){};var UDA=function(I,y){y=y===void 0?0:y;Yhz.call(this);this.viewroot=I;this.defaultPrescanHeight=y;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),I?{root:I,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.E(UDA,Yhz);_.L=UDA.prototype;_.L.dispose=function(){this.disconnect();this.handlers.clear()};
_.L.disconnect=function(I){this.isConnected=!1;this.pauseObservingUntilReconnect=I===void 0?!1:I;this.observer.disconnect();I=_.J(this.prescanObservers.values());for(var y=I.next();!y.done;y=I.next())y.value.disconnect()};
_.L.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var I=_.J(this.handlers),y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;var F=D.next().value;D=!1;F=_.J(F.keys());for(var R=F.next();!R.done;R=F.next())if((R=R.value)&&R.state==="prescan"){D=!0;break}D&&fHa(this,y).observe(y);this.observer.observe(y)}}};
_.L.handleObserveEvent=function(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var D=this.handlers.get(y.target);if(D){var F=y.isIntersecting;D=_.J(D);for(var R=D.next();!R.done;R=D.next()){var O=_.J(R.value);R=O.next().value;O=O.next().value;R&&(R.state==="visible"&&F||R.state==="hidden"&&!F)&&(O(y.target,R.state),R.calledOnce&&this.unobserveByKey({element:y.target,option:R}))}}}};
_.L.handlePrescanEvent=function(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var D=this.handlers.get(y.target);if(D&&y.isIntersecting){D=_.J(D);for(var F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;F&&F.state==="prescan"&&(R(y.target,F.state),F.calledOnce&&this.unobserveByKey({element:y.target,option:F}))}}}};
_.L.observe=function(I,y,D){var F=(F=this.handlers.get(I))&&F.has(D)?{element:I,option:D}:void 0;if(F)return F;F={element:I,option:D};this.handlers.has(I)||this.handlers.set(I,new Map);var R=this.handlers.get(I);R&&!R.has(D)&&R.set(D,y);this.pauseObservingUntilReconnect||(D.state==="prescan"&&fHa(this,I).observe(I),this.observer.observe(I));return F};
_.L.unobserveByKey=function(I){var y=this.handlers.get(I.element);if(y&&y.has(I.option)){y.delete(I.option);if(I&&I.option.state==="prescan")for(var D=_.J(this.prescanObservers.values()),F=D.next();!F.done;F=D.next())F.value.unobserve(I.element);y.size===0&&(this.handlers.delete(I.element),this.observer.unobserve(I.element))}};
var fHa=function(I,y){var D=I.defaultPrescanHeight;y.hasAttribute("prescan-height")&&(y=Number(y.getAttribute("prescan-height")),isNaN(y)||(D=y));if(I.prescanObservers.has(D))return I.prescanObservers.get(D);y="-0.1px -0.1px "+D+"px -0.1px";y=new IntersectionObserver(I.handlePrescanEvent.bind(I),I.viewroot?{root:I.viewroot,rootMargin:y}:{rootMargin:y});I.prescanObservers.set(D,y);return y};var nJM=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],p3n=function(){var I,y=this;this.JSC$13574_actionRouter=I=I===void 0?_.uK.getInstance():I;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return y.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return y.visibilityObservedElementHandlerKeys}}},m7e,i3,kla;
p3n.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.l("kevlar_use_vimio_behavior")&&_.Pi("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=raW())};
p3n.prototype.dispose=function(){this.visibilityMonitor&&_.V1(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
p3n.prototype.handleVisibilityRefreshed=function(){for(var I=_.J(this.targetMap.entries()),y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;_.Mce(this,y,D)}};
_.Ax=function(I,y,D){i3(I,D);var F=_.zhM(I,y);F.element=D;I.targetedElements.set(D,y);_.Mce(I,y,F)};
i3=function(I,y){var D=I.targetedElements.get(y);if(D){var F=I.targetMap.get(D);F&&(delete F.element,I.targetMap.set(D,F));I.targetedElements.delete(y);I.visibilityObserver&&I.visibilityObservedElementHandlerKeys&&(D=I.visibilityObservedElementHandlerKeys.get(y))&&(I.visibilityObserver.unobserveByKey(D),I.visibilityObservedElementHandlerKeys.delete(y))}};
_.Mce=function(I,y,D){var F=D.action,R=D.element;R&&F&&(nJM.includes(y)||_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||I.visibilityMonitor&&I.visibilityMonitor.isNodeVisible(R)?kla(I,y,D):I.visibilityObserver&&(I.visibilityObservedElementHandlerKeys||(I.visibilityObservedElementHandlerKeys=new WeakMap),F=I.visibilityObserver.observe(R,function(){kla(I,y,D);I.visibilityObservedElementHandlerKeys.delete(R)},{calledOnce:!0,
state:"visible"}),I.visibilityObservedElementHandlerKeys.set(R,F)))};
kla=function(I,y,D){var F=D.action;(D=D.element)&&F&&(_.RZ(I.JSC$13574_actionRouter,[F],D),I.targetMap.delete(y),I.targetedElements.delete(D),I.triggeredTargets.add(y))};
_.zhM=function(I,y){var D=I.targetMap.get(y);D||(D={},I.targetMap.set(y,D));return D};
_.$D=function(){m7e||(m7e=new p3n);return m7e};var d7u=document.createElement("div");d7u.style.touchAction="pan-down";var jF4=d7u.style.touchAction==="pan-down";var aHf,cHg;aHf=function(){this.hammerFn=zpM();this.JSC$13582_screenManager=_.W4();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.QM(83615);_.c0(this.JSC$13582_screenManager,this.ve);oxt()};
_.b3=function(){cHg||(cHg=new aHf);return cHg};
aHf.prototype.registerTouchEvents=function(I,y,D){var F=_.go.apply(3,arguments),R=this.hammerFn(I,{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&&R.set({touchAction:D});this.nodeManagerMapping.set(I,R);var O=
NOA(y);F=_.J(F);for(var w=F.next();!w.done;w=F.next()){w=w.value;if(w.includes("swipe")||w.includes("pinch")||w.includes("pan"))w.includes("swipe")?R.get("swipe").set({enable:!0,direction:O,velocity:.2}):w.includes("pinch")?R.get("pinch").set({enable:!0}):w.includes("pan")&&(R.get("pan").set({enable:!0,direction:O}),R.get("swipe").set({enable:!0,direction:O,velocity:.2}),R.get("swipe").recognizeWith("pan"));WiG(this,I,R,w)}};
var WiG=function(I,y,D,F){D.on(F,function(R){if(F.includes("pinch"))I.lastPinchTime=Date.now();else if(F.includes("swipe")&&Date.now()-I.lastPinchTime<400)return;R.pointerType!=="mouse"&&(R=F==="doubletap"?{coordinates:R.center}:F.includes("pan")?R:F.includes("swipe")?{target:R.target}:{},y.dispatchEvent(new CustomEvent(F,{bubbles:!0,composed:!0,detail:R})))})};
aHf.prototype.unregisterTouchEvents=function(I){var y=_.go.apply(1,arguments),D=this.nodeManagerMapping.get(I);if(D){y=_.J(y);for(var F=y.next();!F.done;F=y.next())D.off(F.value);this.nodeManagerMapping.delete(I);I.style.touchAction="unset"}};var CNu=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.AS={getLocalStorage:_.eq(function(){try{var I=new $lB;var y=I.isAvailable()?I:null}catch(D){return null}return y?new _.Tt(y):null}),
getSessionStorage:_.eq(function(){var I=new bCS;return I.isAvailable()?new _.Tt(I):null})};var B_e=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},zoW=function(){B_e.instance||(B_e.instance=new B_e);
return B_e.instance},k3q=function(I){var y=I.networkEvents;
I.networkEvents=[];return y};var iq_;iq_={};_.AHM=pv("yt-serviceworker-metadata",{objectStores:(iq_.auth={addedAtVersion:1},iq_["resource-manifest-assets"]={addedAtVersion:2},iq_),shared:!0,upgrade:function(I,y){y(1)&&r2(I,"resource-manifest-assets");y(2)&&r2(I,"auth")},
version:2});var uA5=self.location.origin+"/";qKq([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);qKq([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);qKq([/\.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\//]);qKq([/purge_shell=1/]);var $7z=void 0;$7z=$7z===void 0?[]:$7z;
for(var bqf=[],HqW=_.J(usM),ehz=HqW.next();!ehz.done;ehz=HqW.next())bqf.push({key:ehz.value});for(var T_e=_.J($7z),sxc=T_e.next();!sxc.done;sxc=T_e.next())bqf.push(sxc.value);var VcR,e7=_.Ft==null?void 0:(VcR=_.Ft.performance)==null?void 0:VcR.memory,Xj_=!1,dDe={},fV4={},TF={},sg=navigator;var Hf=function(I){this.JSC$13627_expiringStorage=new yx(I)};
Hf.prototype.set=function(I,y,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$13627_expiringStorage.set(I,y,D)};
Hf.prototype.get=function(I){return this.JSC$13627_expiringStorage.get(I)};
Hf.prototype.remove=function(I){this.JSC$13627_expiringStorage.remove(I)};var $DC=_.UI(["https://www.youtube.com/",""]),bp4=_.UI(["https://studio.youtube.com/",""]),Vw4="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",eoC=null,DcC;var ZqM=_.UI(["https://www.youtube.com/iframe_api"]),eM=function(){this.playerResolver_=_.vS();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Hq;this.playbackDurationSeconds_=0},gJR=function(I){var y=function(){return window.YT&&typeof window.YT.ready==="function"};
if(y())return _.Xs(window.YT);var D=_.vS(),F=_.kW("SCRIPT");F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||(F.onload=_.Hq,F.onreadystatechange=_.Hq,F.onerror=_.Hq,y()?D.resolve(window.YT):D.reject(new _.g6("Failed to load the iframe player library","script.onload",F.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
F.onerror=function(R){F.onload=_.Hq;F.onreadystatechange=_.Hq;F.onerror=_.Hq;D.reject(new _.g6("Failed to load the iframe player library","script.onerror",R&&R.target&&R.target.src))};
_.Uk(F,_.Et(ZqM));I.insertBefore(F,I.firstChild);return D.promise},IcM=function(I,y,D){var F,R;
_.S(function(O){switch(O.nextAddress){case 1:return I.playbackEndedCallback_=D,_.nj(O,2),O.yield(gJR(y.parentElement||null),4);case 4:F=O.yieldResult;_.lZ(O,3);break;case 2:return R=_.dj(O),R instanceof _.g6&&R.args&&R.args[0]=="script.onerror"?_.tq(R):_.vu(R),O.return();case 3:F.ready(function(){return new F.Player(y,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:I.onPlayerReady_.bind(I),onStateChange:I.onPlayerStateChange_.bind(I),
onCueRangeExit:I.onCueRangeExit_.bind(I)}})}),_.Cj(O)}})};
_.L=eM.prototype;_.L.getPlayerPromise=function(){return this.playerPromise_};
_.L.onPlayerReady_=function(I){this.playerResolver_.resolve(I.target)};
_.L.onPlayerStateChange_=function(I){if(I.data==YT.PlayerState.PLAYING){I=I.target;var y=I.getCurrentTime();I.addCueRange("playback",y,y+this.playbackDurationSeconds_)}};
_.L.onCueRangeExit_=function(I){I.data=="playback"&&(I.target.stopVideo(),this.playbackEndedCallback_())};
_.L.stopVideo=function(){this.playerPromise_.then(function(I){I.stopVideo()})};
var yo_=function(I){I.playerVars_&&I.playerPromise_.then(function(y){typeof y.cueVideoByPlayerVars!="function"?_.tq(new _.g6("vmh: player API not ready","cueVideoByPlayerVars",typeof y.cueVideoByPlayerVars)):y.cueVideoByPlayerVars(I.playerVars_)})};
eM.prototype.playVideo=function(){var I=this;this.playerVars_&&this.playerPromise_.then(function(y){typeof y.loadVideoByPlayerVars!="function"?(y=new _.g6("vmh: player API not ready","loadVideoByPlayerVars",typeof y.loadVideoByPlayerVars),_.vu(y)):y.loadVideoByPlayerVars(I.playerVars_)})};
var DdM=function(I,y,D,F,R){y&&(D===void 0&&(D=0),F===void 0&&(F=0),I.playbackDurationSeconds_=F/1E3,I.playerVars_={adformat:"17_8",videoId:y,suggestedQuality:"hd720",startSeconds:D/1E3,player_params:R})};
eM.prototype.mute=function(){this.playerPromise_.then(function(I){I.mute()})};
eM.prototype.unMute=function(){this.playerPromise_.then(function(I){I.unMute()})};var vbL=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var TL;TL=function(){this.tokenJars={};if(this.cookiesEnabled=_.sJ()){var I=_.eF.get("CONSISTENCY",void 0);I&&Fou(this,{encryptedTokenJarContents:I})}};
_.t44=function(){TL.instance||(TL.instance=new TL);return TL.instance};
TL.prototype.handleResponse=function(I,y){if(!y)throw Error("$f");var D,F;y=((D=y.innerTubeRequest.context)==null?void 0:(F=D.request)==null?void 0:F.consistencyTokenJars)||[];var R;(I=(R=I.responseContext)==null?void 0:R.consistencyTokenJar)&&this.replace(y,I)};
TL.prototype.replace=function(I,y){I=_.J(I);for(var D=I.next();!D.done;D=I.next())delete this.tokenJars[D.value.encryptedTokenJarContents];Fou(this,y)};
var Fou=function(I,y){if(y.encryptedTokenJarContents&&(I.tokenJars[y.encryptedTokenJarContents]=y,typeof y.expirationSeconds==="string")){var D=Number(y.expirationSeconds);setTimeout(function(){delete I.tokenJars[y.encryptedTokenJarContents]},D*1E3);
I.cookiesEnabled&&_.TP("CONSISTENCY",y.encryptedTokenJarContents,D,void 0,!0)}};var RIn,s3;RIn=window.location.hostname.split(".").slice(-2).join(".");_.Sv=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var I=_.Pi("LOCATION_PLAYABILITY_TOKEN");_.Pi("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=OXP(this))&&(I=this.localStorage.get("yt-location-playability-token"));I&&(this.locationPlayabilityToken=I,this.mostRecentPosition=void 0)};
_.Sv.getInstance=function(){s3=_.jF("yt.clientLocationService.instance");s3||(s3=new _.Sv,_.fv("yt.clientLocationService.instance",s3));return s3};
_.Sv.prototype.setLocationOnInnerTubeContext=function(I){I.client||(I.client={});if(this.mostRecentPosition)I.client.locationInfo||(I.client.locationInfo={}),I.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),I.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),I.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),I.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)I.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Sv.prototype.handleResponse=function(I){var y;I=(y=I.responseContext)==null?void 0:y.locationPlayabilityToken;I!==void 0&&(this.locationPlayabilityToken=I,this.mostRecentPosition=void 0,_.Pi("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=OXP(this))&&this.localStorage.set("yt-location-playability-token",I,15552E3):_.TP("YT_CL",JSON.stringify({loctok:I}),15552E3,RIn,!0))};
var OXP=function(I){return I.localStorage===void 0?new _.Ku("yt-client-location"):I.localStorage};
_.Sv.prototype.clearLocationPlayabilityToken=function(I){I==="TVHTML5"?(this.localStorage=OXP(this))&&this.localStorage.remove("yt-location-playability-token"):_.a5q("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Sv.prototype.getCurrentPositionFromGeolocation=function(){var I=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var y=!1,D=1E4;_.Pi("INNERTUBE_CLIENT_NAME")==="MWEB"&&(y=!0,D=15E3);return new Promise(function(F,R){navigator.geolocation.getCurrentPosition(function(O){I.mostRecentPosition=O;F(O)},function(O){R(O)},{enableHighAccuracy:y,
maximumAge:0,timeout:D})})};
_.Sv.prototype.createUnpluggedLocationInfo=function(I){var y={};I=I.coords;if(I==null?0:I.latitude)y.latitudeE7=Math.floor(I.latitude*1E7);if(I==null?0:I.longitude)y.longitudeE7=Math.floor(I.longitude*1E7);if(I==null?0:I.accuracy)y.locationRadiusMeters=Math.round(I.accuracy);return y};
_.Sv.prototype.createLocationInfo=function(I){var y={};I=I.coords;if(I==null?0:I.latitude)y.latitudeE7=Math.floor(I.latitude*1E7);if(I==null?0:I.longitude)y.longitudeE7=Math.floor(I.longitude*1E7);return y};var LoM=function(I,y){var D=Fs();I||(I="unknown");y||(y="unknown");I="MAIN_APP_WEB_PAGE_TYPE_"+I.toUpperCase();I in fff||(I="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");y="MAIN_APP_WEB_REQUEST_TYPE_"+y.toUpperCase();y in njR||(y="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.mP(D,{mainAppWeb:{pageType:I,requestType:y,isShellLoad:_.KR("IS_SHELL_LOAD",!1)}})},JoR={start:function(){_.mP(MJS(),{mainAppWeb:_.tt()})},
success:function(){_.Mv(MJS(),"SUCCESS")},
failure:function(){_.Mv(MJS(),"FAILURE")},
cancelled:function(){_.Mv(MJS(),"CANCELLED")}};var wNP,vHa,jl5;wNP=_.UI(["/sw.js"]);vHa=_.UI(["/sw.js?0"]);_.SFR=_.Et(wNP);jl5=_.Et(vHa);var t8W=function(){var I=Error.apply(this,arguments);this.message=I.message;"stack"in I&&(this.stack=I.stack)};
_.E(t8W,Error);_.UM.prototype.load=function(I){this.megabloxUrl_=_.Pi("YPC_MB_URL");_.R1(this.megabloxUrl_,(0,_.iD)(function(){I&&I()},this))};
_.NDJ=function(I,y,D,F,R,O,w,v,P,K,r){_.Nlt(P);I.load((0,_.iD)(function(){try{var N=O?O:_.Pi("HL"),h=_.Pi("SESSION_INDEX");_.PWC("client",function(){$o_("59",{helpCenterPath:"/youtube",locale:N,window:window}).JSC$10251_loadChatSupport({authuser:String(h)})})}catch(x){throw Pp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),R&&R(x),_.vu(x),x;
}PBM(this,y,D,F,R,O,w,v,P,K,r)},I))};
_.UM.prototype.openFixFlowDialog=function(I,y,D,F){this.load((0,_.iD)(function(){try{Kof(this,_.jF("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(I).withIntegratorCallback(y).load(D,F)}catch(R){throw _.vu(R),R;}},this))};
var Kof=function(I,y,D,F){var R=y.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.l("enable_window_constrained_buy_flow_dialog")&&(R=R.usingPopupStyle(_.jF("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));F&&(R=R.usingCloseCallback(F));y.bootstrap.fromPaymentsUrl(I.megabloxUrl_);I=y.bootstrap.asMashupMode(R);D=D?D:_.Pi("HL");I.usingGaiaIndex(_.Pi("SESSION_INDEX")).usingLocale(D).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.l("enable_google_payments_buyflow_material2_style_web")?
I.usingStyle(":m2;pc=#444;ac=#065fd4"):I.usingStyle(":md;pc=#444;ac=#065fd4");return I},PBM=function(I,y,D,F,R,O,w,v,P,K,r){try{var N=_.jF("payments.business.integration");
if(!N)throw new t8W("payments.business.integration is undefined");var h=N.standaloneContextAuthId.forUserId(),x=Kof(I,N,O,function(){xce(!1);v&&v()});
w&&x.usingServerAnalyticsEventHandler(w);var q=x.inStandaloneContext(h).buyFlow(function(X){if(X&&(!X.integratorData||X.integratorData===""||X.error))if(X.error!=null)if(String(X.error)==="-1")_.hyL(P);else{var f=String(X.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Pp(10,r,f,X.debugCode);_.Kg(f,P,X.debugCode);f=new _.g6("PAYMENT_ERROR_MESSAGE::"+X.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+X.internalErrorDetails);
_.vu(f)}else Pp(10,r,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Kg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",P,"EMPTY_INTEGRATOR_DATA"),_.vu(Error("cg"));D&&(xce(!1),D(X))}).withEncryptedParameters(y);
K&&q.withClientParameters(soa(_.i5t(K)));q.load(function(){Pp(24,r);_.ge("ttc",void 0,"commerce_transaction");TC("commerce_transaction");F&&(F(),xce(!0))},function(X){if(X==null?0:X.debugCode)var f=X==null?void 0:X.debugCode;
else if(!X||(X==null?0:X.debugCode))f="EMPTY_LOAD_FAILURE_ERROR",_.vu(Error(f));else{f="EMPTY_LOAD_FAILURE_DEBUG_CODE";var m=new _.g6("LOAD_FAILURE:"+X.message," DEBUG_CODE:"+f);_.vu(m)}Pp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f);_.Kg("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",P,f);_.vu(X);R&&R(X)})}catch(X){throw X instanceof t8W&&(Pp(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),R&&R(X)),_.vu(X),X;
}};var Ude;Ude=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.r6q=function(I,y){y=y===void 0?!1:y;I=Ude.test(I)?_.c$(I):null;!y&&window.payments||!I?(I=_.vS(),y=I.promise,I.resolve()):y=_.Xre(I,{attributes:{"data-payments-main":"",id:"payment-lib"}});return y};var roc;roc=_.UI(["//www.googletagmanager.com/gtm.js?id=",""]);_.V8=function(I,y){_.xz(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:y}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Pi("GL")}),y=_.kW("SCRIPT"),y.async=!0,_.Uk(y,_.Et(roc,I)),y.id="gtm",I=document.getElementsByTagName("script"),I.length==0?document.head.appendChild(y):(I=I[0],I.parentNode.insertBefore(y,I)))};
_.ZI=function(I){if(I=JSON.parse(I))window.dataLayer=window.dataLayer||[],window.dataLayer.push(I)};var jWM,oHG;jWM=_.UI(["https://clients2.google.com/gr/gr_sync.js"]);_.KRo=function(){};
_.KRo.prototype.init=function(){if(oHG()){var I=_.vS();I.resolve();return I.promise}return _.Xre(_.Et(jWM)).then(function(){if(!oHG())throw Error("dg");},function(){throw Error("eg");
})};
_.UfH=function(){if(!oHG())return"";var I=window.google.gr;I.init({async:{schedule:"sync"},merchantId:"youtube"});I.start();I=I.finish();return I==null?"":I};
oHG=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.k=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.E(_.k,PolymerFakeBaseClassWithoutHtml);_.Wp=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.E(_.Wp,PolymerFakeBaseClassWithoutHtml);var ln5=window.ShadyDOM;var Of5,FBW,Jko,wJ_,S0q,ttq,gE,G4;Of5=_.l("enable_shadydom_free_scoped_query_methods");FBW=_.l("enable_shadydom_free_scoped_node_methods");Jko=_.l("enable_shadydom_free_scoped_readonly_properties_batch_one");wJ_=_.l("enable_shadydom_free_parent_node");S0q=_.l("enable_shadydom_free_children");ttq=_.l("enable_shadydom_free_last_child");gE=window.ShadyDOM;_.ng=gE&&gE.noPatch&&gE.wrap?gE.wrap:gE?function(I){return gE.patch(I)}:function(I){return I};
G4=function(I){if(I instanceof ShadowRoot)this.host=(0,_.ng)(I.host),this.root=I;else if(I.$$){this.host=(0,_.ng)(I);var y;this.root=(y=I.root)!=null?y:this.host}else if(I.polymerController){this.host=(0,_.ng)(I);var D;this.root=(D=this.host.shadowRoot)!=null?D:this.host}else this.root=this.host=(0,_.ng)(I)};
Rs_();LBW();PG_();KB4();vu4();var NfM={querySelector:function(I,y){y=zyC(y,ht(I));return _.l("sunnydom_native_scoped_query_selectors")?qdo(I,y):qdo(_.xe(I),y)},
querySelectorAll:function(I,y){y=zyC(y,ht(I));return _.l("sunnydom_native_scoped_query_selectors")?Array.from(EbA(I,y)):EbA(_.xe(I),y)}},hIu={appendChild:function(I,y){var D=ht(I),F=_.NX(y);
return _.ykq(_.xe(I),D?_.qX(y,D,F):y)},
cloneNode:function(I,y){var D=_.NX(I);I=_.xe(I);y=o0(I).prototype.cloneNode.call(I,y);return D?EM(y,D):y},
contains:function(I,y){var D=ht(I),F=_.NX(y);return D!==F?!1:DkH(I,y)},
insertBefore:function(I,y,D){var F=ht(I),R=_.NX(y);I=_.xe(I);y=F?_.qX(y,F,R):y;return o0(I).prototype.insertBefore.call(I,y,D)},
removeChild:function(I,y){var D=ht(I);I=_.xe(I);y=D?EM(y,D):y;return o0(I).prototype.removeChild.call(I,y)},
replaceChild:function(I,y,D){var F=ht(I),R=_.NX(y);y=F?_.qX(y,F,R):R?EM(y,R):y;D=F?EM(D,F):D;I=_.xe(I);return o0(I).prototype.replaceChild.call(I,y,D)},
getRootNode:function(I,y){y=y===void 0?{composed:!0}:y;var D;if(((D=y)!=null?D:{}).composed)I=Ipo(I);else{y=I;for(I=Xoe(I);I;)y=I,I=dc5(I);I=y}return I}},rkB=Jko?{firstChild:eyB,
nextSibling:$c_,previousSibling:H1o,firstElementChild:TlL,lastElementChild:V4S,nextElementSibling:Aiq,previousElementSibling:b1e,childNodes:Z1B}:{};wJ_&&(rkB.parentNode=i1L);S0q&&(rkB.children=gbW);ttq&&(rkB.lastChild=slA);Of5&&Ukq(NfM);FBW&&Ukq(hIu);jYC();var ouA=function(I){this.node=I instanceof ShadowRoot?I.host:I};
N5o();hsq();var uKL=new WeakMap;var Eu5=Symbol("Cd");var fpL=new Set(["tap","track","down","up"]),nuC=_.l("pbcm_fi_query_decorators");var Im=function(){return _.Wp.apply(this,arguments)||this};
_.E(Im,_.Wp);_.L=Im.prototype;_.L.getState=function(){return this.store.getState()};
_.L.dispatch=function(I){this.store.dispatch(I)};
_.L.beforeRegister=function(){if(this&&typeof this==="object"){var I;var y=!!this.useSignals||!((I=this.polymerController)==null||!I.useSignals)}else y=!1;if(!y&&this.properties)for(y=_.J(Object.keys(this.properties)),I=y.next();!I.done;I=y.next()){var D=I.value;I=this.properties[D];if(I.selector){if(I.computed)throw Error("lg");D=["reduxPropertiesRecomputeTrigger",'"'+D+'"'].concat(_.Td(I.selectorArgs||[])).join(",");I.computed="recomputeReduxSelector("+D+")"}}};
_.L.attached=function(){var I=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){I.reduxPropertiesRecomputeTrigger++}));
_.l("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.L.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.L.recomputeReduxSelector=function(I,y){var D=_.go.apply(2,arguments),F=this.properties[y].selector;if(!F)throw Error("jg`"+y);return F.apply(null,[this.store.getState()].concat(_.Td(D)))};
_.L.select=function(I){var y=_.go.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return I.apply(null,[this.store.getState()].concat(_.Td(y)))};
_.mD.Object.defineProperties(Im.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
Im.prototype.recomputeReduxSelector=Im.prototype.recomputeReduxSelector;_.W([_.M(),_.A("design:type",Number)],Im.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.W([_.Cg()],Im);var y3=[],zsC={},g4=function(){return zt.apply(this,arguments)||this};
_.E(g4,zt);g4.prototype._addPropertyEffect=function(I,y,D){if(y==="__observeEffects"&&D){var F,R=(F=D.info.method)!=null?F:D.info.methodName;if(R){var O=this[R];this[R]=function(){y3.push(R);try{O==null||O.apply(this,arguments)}finally{y3.pop()}}}}_.el._addPropertyEffect.apply(this,[I,
y,D])};
g4.prototype._setPendingProperty=function(I,y,D){if(y3.length){var F=y3[y3.length-1],R;(R=zsC[this.is])!=null&&R.has(F)||(knq(this.is,F),_.Jq("polymerPropertyChangedInObserver",{componentName:this.is,observerName:F}))}return _.el._setPendingProperty.apply(this,[I,y,D])};
_.W([yPB()],g4);var dk5=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ckB,At={};_.l("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=At);var Hp=function(){return _.Wp.apply(this,arguments)||this};
_.E(Hp,_.Wp);Hp.prototype._setUnmanagedPropertyToNode=function(I,y,D){I.loggingStatus&&(I.loggingStatus.isDeclarativeExternal=!0);if(D!==I[y]||typeof D==="object")I[y]=D;I.is&&I.polymerController&&I.polymerController!==I&&$e(I.is,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");I.loggingStatus&&(I.loggingStatus.isDeclarativeExternal=!1)};
_.W([_.Cg()],Hp);ap_()&&(NQ.prototype._setUnmanagedPropertyToNode=(new Hp)._setUnmanagedPropertyToNode);_.guo={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(I){},set polymerController(I){}}]};var ZN=function(){var I=zt.apply(this,arguments)||this;I.json=function(){};
return I};
_.E(ZN,zt);ZN.prototype.equals=function(I,y){return I===y};
ZN.prototype.isEmpty=function(I){var y;(y=!I)||(y=_.i_(I)&&I.length===0);return y};
_.W([yPB()],ZN);var xdW=function(I){I=tQL(I);O2.call(this,I)};
_.E(xdW,O2);xdW.prototype.addProvider=function(I){I=I.key?I:tQL([I])[0];var y=this.keyIdToIndex.get(I.key.id);if(y){if(Ak4(I,this.providers[y]))throw Error("mg`"+I.key.displayName);}else O2.prototype.addProvider.call(this,I)};
var lcc=new xdW([]);var uxe=!1;var sYW={};uxe||(T5B(),uxe=!0);
sYW.InjectBehavior={initializeInjection:function(){var I=this.provide;try{if((I=I!=null?I:[])&&I.length>0)for(var y=tQL(I),D=_.J(y),F=D.next();!F.done;F=D.next())lcc.addProvider(F.value);var R=new Set;$ke(this.behaviors||[],R);y={};for(var O=_.J(R),w=O.next();!w.done;w=O.next()){var v=w.value;v.inject&&Object.assign(y,v.inject)}this.inject&&Object.assign(y,this.inject);for(var P=_.J(Object.keys(y)),K=P.next();!K.done;K=P.next()){var r=K.value,N=y[r];try{this[r]=lcc.resolve(N)}catch(h){throw h;}}}catch(h){throw Error(h.message);
}}};var Zfq;var IxA=/\bclass\b/.test(function(){}.toString()),Fbe=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var qFz=function(I){this.wasDefined=!0;Array.isArray(I)||I instanceof Array?(this.JSC$13785_getImpl=I[0],this.JSC$13785_setImpl=I[1]):this.JSC$13785_getImpl=I};
_.L=qFz.prototype;_.L.getWithPath=function(I){return Lbq(this.JSC$13785_getImpl(),I)};
_.L.setWithPath=function(I,y){var D=this;if(I.length)throw Error("ng");if(!this.JSC$13785_setImpl)throw Error("og");V2(function(){D.JSC$13785_setImpl(y)})};
_.L.notifyPath=function(){throw Error("pg");};
_.L.notifySplices=function(){throw Error("qg");};
_.L.getChangeRecordSignal=function(I,y){var D=this;if(I.length)throw Error("rg");return function(){var F=D.getWithPath(I);return{path:y!=null?y:"",base:F,value:F}}};
_.L.getSplicesSignal=function(){throw Error("sg");};
_.L.getPathMutationSignal=function(){throw Error("tg");};
_.L.pop=function(){throw Error("ug");};
_.L.push=function(){throw Error("vg");};
_.L.splice=function(){throw Error("wg");};
_.L.unshift=function(){throw Error("xg");};var D8=function(I){var y=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(I)||I instanceof Array?(this.JSC$13790_getImpl=I[0],this.JSC$13790_setImpl=I[1]):this.JSC$13790_getImpl=I;this.wasDefined=!1;_.iS(function(){y.wasDefined=y.JSC$13790_getImpl()!==void 0})};
D8.prototype.getWithPath=function(I){return Lbq(this.JSC$13790_getImpl(),I)};
D8.prototype.setWithPath=function(I,y){var D=this;if(I[I.length-1]!=="*"&&I[I.length-1]!=="splices"){var F=_.iS(function(){return D.getWithPath([])});
if(I.length===0){if(!this.JSC$13790_setImpl)throw Error("yg");if(F===y)return;this.wasDefined||(this.wasDefined=y!==void 0);V2(function(){D.JSC$13790_setImpl(y)})}else{for(var R=0;R<I.length-1;R++){if(!F)return;
F=F[I[R]]}R=I[I.length-1];F&&(F[R]=y);this.wasDefined||(this.wasDefined=I.length>1||y!==void 0)}EHW(this,I,{pathComponents:I,value:y})}};
D8.prototype.notifyPath=function(I,y){I.length===0?y&&this.setWithPath(I,y.value):EHW(this,I,{pathComponents:I,value:y==null?void 0:y.value,fallbackWhenUndefined:y==null?void 0:y.value})};
var EHW=function(I,y,D,F){if(I.setMutationSignal){var R=++I.mutationIndex,O=[I.observedPath],w=I.observedPath,v;y.length===0&&(v=w);for(var P=0;P<y.length;P++){var K=w.subPaths[y[P]];if(!K)break;O.push(K);w=K;P===y.length-1&&(v=K)}for(y=!1;O.length;)w=O.shift(),w.data={index:R,mutation:D,spliceMutationIndex:F},y||(y=w===v),y&&O.push.apply(O,_.Td(Object.values(w.subPaths)));V2(function(){I.setMutationSignal(R)})}};
D8.prototype.notifySplices=function(I,y){var D=this,F=_.iS(function(){return D.getWithPath(I)}),R=[].concat(_.Td(I),["splices"]);
EHW(this,R,{pathComponents:R,value:{indexSplices:y}});if(F==null?0:F.length)y=this.mutationIndex,R=[].concat(_.Td(I),["length"]),EHW(this,R,{pathComponents:R,value:F.length},y)};
var Gx_=function(I,y,D,F,R,O){I.notifySplices(D,[{index:F,addedCount:R,removed:O,object:y,type:"splice"}])},XNM=function(I,y){I=I.observedPath;
for(var D=0;D<y.length;D++){var F=y[D],R=I.subPaths[F];R||(R={pathComponents:y.slice(0,D+1),subPaths:{}},I.subPaths[F]=R);I=R}},YFf=function(I,y,D){XNM(I,y);
if(!I.getMutationSignal){var F=_.J(_.$M(I.mutationIndex,void 0,"sNBMCd"));I.getMutationSignal=F.next().value;I.setMutationSignal=F.next().value}var R=I.getMutationSignal;return _.su(function(){R();return D(QWn(I,y))},void 0,"zvsXEd")};
D8.prototype.getChangeRecordSignal=function(I,y){var D=this,F=this.mutationIndex,R;return YFf(this,I,function(O){if(O&&O.index>F){var w=O.mutation;F=O.index;R=void 0}O=_.iS(function(){return D.getWithPath(I)});
if(w){var v=w.pathComponents[w.pathComponents.length-1],P=[].concat(_.Td(w.pathComponents));if(v==="splices"||v==="length")return{base:O,path:(y?[y].concat(_.Td(P)):P).join("."),value:w.value};var K=I.length>P.length?I:P,r;return{base:O!=null?O:w.fallbackWhenUndefined,path:(y?[y].concat(_.Td(K)):K).join("."),value:(r=_.iS(function(){return D.getWithPath(K)}))!=null?r:w.fallbackWhenUndefined}}R||(R={base:O,
path:(y?[y].concat(_.Td(I)):I).join("."),value:O});return R})};
D8.prototype.getSplicesSignal=function(I){var y=this.mutationIndex,D;return YFf(this,I,function(F){if(F&&F.index>y&&F.spliceMutationIndex!==y){var R=F.mutation;y=F.index;D=void 0}return R&&R.pathComponents[R.pathComponents.length-1]==="splices"?D=F=R.value:D})};
D8.prototype.getPathMutationSignal=function(I){var y=this;XNM(this,I);if(!this.getMutationSignal){var D=_.J(_.$M(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=D.next().value;this.setMutationSignal=D.next().value}var F=this.getMutationSignal,R=this.mutationIndex,O;return _.su(function(){F();var w=QWn(y,I);if(w&&w.index>R&&w.mutation&&Jb_(w.mutation.pathComponents,I)){var v=w.mutation;R=w.index}if(!O||R!==O.index){var P,K;w=(K=_.iS(function(){return y.getWithPath(I)}))!=null?K:(P=v)==null?
void 0:P.fallbackWhenUndefined;
O={index:R,value:w}}return O},void 0,"RXYC9b")};
var QWn=function(I,y){I=I.observedPath;y=_.J(y);for(var D=y.next();!D.done;D=y.next())I=I.subPaths[D.value];return I.data};
D8.prototype.pop=function(I){var y=this,D=_.iS(function(){return y.getWithPath(I)});
if(!(D instanceof Array))throw Error("zg");var F=D.length>0,R=D.pop();F&&Gx_(this,D,I,D.length,0,[R]);return R};
D8.prototype.push=function(I){var y=_.go.apply(1,arguments),D=this,F=_.iS(function(){return D.getWithPath(I)});
if(!(F instanceof Array))throw Error("Ag");var R=F.length,O=F.push.apply(F,_.Td(y));y.length&&Gx_(this,F,I,R,y.length,[]);return O};
D8.prototype.splice=function(I,y,D){var F=_.go.apply(3,arguments),R=this,O=_.iS(function(){return R.getWithPath(I)});
if(!(O instanceof Array))throw Error("Bg");y<0?y=O.length-Math.floor(-y):y&&(y=Math.floor(y));var w=O.splice.apply(O,[y,D].concat(_.Td(F)));(F.length||w.length)&&Gx_(this,O,I,y,F.length,w);return w};
D8.prototype.unshift=function(I){var y=_.go.apply(1,arguments),D=this,F=_.iS(function(){return D.getWithPath(I)});
if(!(F instanceof Array))throw Error("Cg");var R=F.unshift.apply(F,_.Td(y));y.length&&Gx_(this,F,I,0,y.length,[]);return R};var FN=function(I,y,D){this.model=I;this.unknownSignalResolver=y;this.options=D;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];y=_.J(jpL());I=y.next().value;y=y.next().value;this.owner=I;this.disposeImpl=y};
FN.prototype.dispose=function(){if(!this.isDisposed){for(var I=_.J(this.childSignalProxies),y=I.next();!y.done;y=I.next())y.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var fc_=function(I,y){I=fe(I.owner);try{y()}finally{fe(I)}};
FN.prototype.effect=function(I){fc_(this,function(){_.JI(I,"j")})};
var nHu=function(I,y){I.options!=null||(I.options={});var D;(D=I.options).immutableProps!=null||(D.immutableProps=new Set);I.options.immutableProps.add(y)},BxW=function(I,y){y=""+y;
pN_(I,y);var D,F;if((D=I.options)==null?0:(F=D.immutableProps)==null?0:F.has(y))return!0;var R;if((R=I.model.__signalCache)==null?0:R.has(y))D=I.model.__signalCache.get(y),Array.isArray(D)&&nHu(I,y);var O,w,v;return(v=(O=I.options)==null?void 0:(w=O.immutableProps)==null?void 0:w.has(y))!=null?v:!1},mdO=function(I,y){var D;
I.unknownSignalResolver&&(D=I.unknownSignalResolver(y));var F,R;((F=I.options)==null?0:(R=F.immutableProps)==null?0:R.has(y))?D!=null||(D=new qFz(_.$M(I.model[y],void 0,"By5iP"))):D!=null||(D=new D8(_.$M(I.model[y],void 0,"CXghNc")));var O=I.model.hostElement;Object.defineProperty(I.model,y,{get:function(){CGe(O,y);return D.getWithPath([])},
set:function(w){bI(O,y);I.setWithPath([y],w)},
configurable:!0});return D},pN_=function(I,y){var D,F,R;
((D=I.model.__signalCache)==null||!D.has(y))&&((F=I.options)==null?0:(R=F.externalSignalProps)==null?0:R.has(y))&&I.model[y]},R6=function(I,y){y=""+y;
var D=I.signalCache[y];if(D!==void 0)return D;D=!1;pN_(I,y);var F;if((F=I.model.__signalCache)==null?0:F.has(y))if(D=I.model.__signalCache.get(y),Array.isArray(D))D=!0,nHu(I,y);else return I.signalCache[y]=I.model.__signalCache.get(y).signal,I.signalCache[y];var R,O;F=(O=(R=I.options)==null?void 0:R.reactivityMode)!=null?O:0;var w,v;if(!((w=I.options)==null?0:(v=w.reactiveProps)==null?0:v.has(y))&&!D&&F===1)throw Error("Dg`"+y);R=D?M8O(I,y):mdO(I,y);return I.signalCache[y]=R},M8O=function(I,y){var D=
Object.getOwnPropertyDescriptor(I.model.constructor.prototype,y),F=function(){return I.model[y]};
return new qFz(D&&D.get&&!D.set?F:[F,function(R){I.model[y]=R}])};
FN.prototype.getWithPath=function(I){var y=_.J(I);I=y.next().value;y=GO(y);CGe(this.model.hostElement,""+I);return R6(this,I).getWithPath(y)};
FN.prototype.setWithPath=function(I,y){if(I.length){bI(this.model.hostElement,I.join("."));var D=_.J(I);I=D.next().value;D=GO(D);R6(this,I).setWithPath(D,y)}};
FN.prototype.getPathMutationSignal=function(I){var y=_.J(I);I=y.next().value;y=GO(y);return R6(this,I).getPathMutationSignal(y)};
FN.prototype.notifyPath=function(I,y){var D=_.J(I);I=D.next().value;D=GO(D);R6(this,I).notifyPath(D,y)};
var zIz=function(I,y){if(y.type==="literal")return function(){return{rootWasDefined:!0,value:y.value}};
var D=Dd(y.path),F=_.J(D),R=F.next().value;F=GO(F);var O,w;if(y.type==="path"&&(D.length===1||((O=I.options)==null?0:(w=O.immutableProps)==null?0:w.has(R))))return function(){var N=I.getWithPath(D.slice(0,1));N=Lbq(N,D.slice(1));return{rootWasDefined:R6(I,D[0]).wasDefined,value:N}};
var v=R6(I,R);if(y.type==="path"){var P=v.getPathMutationSignal(F);return function(){var N,h=(N=P())==null?void 0:N.value;return{rootWasDefined:v.wasDefined,value:h}}}if(y.type==="splices"){var K=v.getSplicesSignal(F);
return function(){var N=K();return{rootWasDefined:v.wasDefined,value:N}}}var r=v.getChangeRecordSignal(F,""+R);
return function(){var N=r();return{rootWasDefined:v.wasDefined,value:N}}},Kbq=function(I,y,D){var F=D.map(function(v){return zIz(I,v)}),R=D.length===0,O=[],w=D.length!==1||D[0].type!=="path"?!1:!0;
I.effect(function(){for(var v=F.length,P=[],K=!!O.length,r=0;r<v;r++){var N=F[r](),h=N.rootWasDefined;N=N.value;R||(R=h);P[r]=N;w&&(P[r+v]=K?O[r]:P[r],O[r]=N)}R&&Uf(I.owner,function(){return void y.apply(null,_.Td(P))})})},wAS=function(I,y,D,F,R){var O=R6(I,y);
R!==void 0&&O.setWithPath([],R);Kbq(I,function(){var w=_.go.apply(0,arguments);bI(I.model.hostElement,y,!0);O.setWithPath([],D.apply(null,_.Td(w)))},F)};
FN.prototype.arrayPush=function(I){var y=_.go.apply(1,arguments),D=_.J(I),F=D.next().value;D=GO(D);F=R6(this,F);return F.push.apply(F,[D].concat(_.Td(y)))};
FN.prototype.arraySplice=function(I,y,D){var F=_.go.apply(3,arguments),R=_.J(I),O=R.next().value;R=GO(R);O=R6(this,O);return O.splice.apply(O,[R,y,D].concat(_.Td(F)))};
FN.prototype.arrayUnshift=function(I){var y=_.go.apply(1,arguments),D=_.J(I),F=D.next().value;D=GO(D);F=R6(this,F);return F.unshift.apply(F,[D].concat(_.Td(y)))};
FN.prototype.notifySplices=function(I,y){var D=_.J(I);I=D.next().value;D=GO(D);R6(this,I).notifySplices(D,y)};var kxW=!0,ddM=!1,iq5=!1,ace=!1,coG=0;ace=!1;coG=0;kxW=!0;ddM=iq5=!1;var uZe=/([^\s]+?)\(([\s\S]*)\)/,hxq=/\.([^.]+)$/,Ea5=/\\,/g,oa5=/&comma;/g,Nx_=/\\(.)/g,qVH=[],xZB={"*":"wildcard",splices:"splices"};var zxJ=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"),naB=/[A-Z]/,WoW=["class","hidden","id","on-dom-change"],dZC=new Set([].concat(_.Td(WoW),
["if","notify-dom-change","restamp"])),axB=new Set([].concat(_.Td(WoW),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),cbH=new Set(["restamp"]);var ddJ=new Set(["className","id"]);var AbJ=Symbol(),VH_=window;var Oq_=window;var PNW=0,w3S=0,Ov=[],tcL=0,JHq=!1,ShW=document.createTextNode("");(new window.MutationObserver(vJo)).observe(ShW,{characterData:!0});var JC=new Map,LQ=0,CBM=function(I){this.mappedHandleId=I},U7J=function(I,y,D,F){this.mappedHandleId=I;
var R=this;this.mappedHandleId=I;this.callback=y;this.waitTime=D;this.schedulerPriority=F;this.handleId=_.w2.addJob(function(){R.callback();JC.delete(R.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.E(U7J,CBM);U7J.prototype.cancel=function(){_.w2.cancelJob(this.handleId);JC.delete(this.mappedHandleId)};
var rHL=function(I,y){this.mappedHandleId=I;var D=this;this.mappedHandleId=I;this.callback=y;this.handleId=KiB(function(){D.callback();JC.delete(D.mappedHandleId)})};
_.E(rHL,CBM);rHL.prototype.cancel=function(){var I=this.handleId-w3S;I<0||Ov.length<=I||(Ov[I]=null);JC.delete(this.mappedHandleId)};var hhe=function(){};
hhe.prototype.cancel=function(){this.jobHandle!==void 0&&(jxJ(this.jobHandle),this.jobHandle=void 0)};
hhe.prototype.run=function(I,y,D){var F=this;this.cancel();this.callback=I;this.jobHandle=_.wy(function(){I();F.callback=void 0},y,D)};
hhe.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var oJW=new WeakMap;var BfP=lM(function(I){for(var y=I,D=0;D<3;D++)y=Object.getPrototypeOf(y);delete y.prototype.connectedCallback;var F=function(){return I.apply(this,arguments)||this};
_.E(F,I);F.prototype._attachDom=function(R){if(!R)return null;var O=(0,_.ng)(this.hostElement);O.attachShadow({mode:"open",shadyUpgradeFragment:R});O.shadowRoot.appendChild(R);return O.shadowRoot};
F.prototype._takeAttributes=function(){for(var R=this.hostElement.attributes,O=0;O<R.length;O++){var w=R[O],v=void 0,P=void 0;(P=(v=this).__attributeReaction)==null||P.call(v,w.name,null,w.value)}};
F.prototype._readyClients=function(){I.prototype._readyClients.call(this);this.root=this};
F.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);I.prototype.connectedCallback.call(this)};
_.mD.Object.defineProperties(F,{template:{configurable:!0,enumerable:!0,get:function(){return F.prototype._template}}});
return F}),iXM=lM(function(I){var y=function(){return I.apply(this,arguments)||this};
_.E(y,I);y.prototype.created=function(){if(this.__notifyEffects)for(var D=_.J(Object.values(this.__notifyEffects)),F=D.next();!F.done;F=D.next()){F=_.J(F.value);for(var R=F.next();!R.done;R=F.next())R.value.fn=qhJ}if(this.__reflectEffects)for(D=_.J(Object.values(this.__reflectEffects)),F=D.next();!F.done;F=D.next())for(F=_.J(F.value),R=F.next();!R.done;R=F.next())R.value.fn=EJ4};
y.prototype._addEventListenerToNode=function(D,F,R){D=SE(D);tp(D,F,R)||I.prototype._addEventListenerToNode.call(this,D,F,R)};
y.prototype._removeEventListenerFromNode=function(D,F,R){D=SE(D);Pr(D,F,R)||I.prototype._removeEventListenerFromNode.call(this,D,F,R)};
y.prototype._propertiesChanged=function(D,F,R){if(this.__dataToNotify&&this.__notifyEffects)for(var O=_.J(Object.keys(this.__dataToNotify)),w=O.next();!w.done;w=O.next()){w=w.value;var v=uFA(w);this.__notifyEffects[v]||delete this.__dataToNotify[w]}else this.__dataToNotify=null;I.prototype._propertiesChanged.call(this,D,F,R)};
y.prototype.fire=function(D,F,R){F=F===void 0?{}:F;var O;return _.lj(SE((O=R==null?void 0:R.node)!=null?O:this),D,F,R)};
y.prototype._ensureAttribute=function(D,F){var R=SE(this);R.hasAttribute(D)||Ff(R,F,D)};
y.prototype.isLightDescendant=function(D){var F=SE(this);return SE(F)!==D&&_.XB(F).contains(D)&&_.XB(F).getRootNode()===_.XB(D).getRootNode()};
return y});
_.BZ.ready=function(){var I;((I=this.hostElement)!=null?I:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var y;((y=this.hostElement)!=null?y:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.sD._subscribeIronResize=function(I){var y;((y=I.hostElement)!=null?y:I).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.sD._unsubscribeIronResize=function(I){var y;((y=I.hostElement)!=null?y:I).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Qx4=[Array,Boolean,Date,Number,Object,String],P4=function(I,y,D,F){this.polySiInfo=I;this.polySiParams=y;this.polySiContext=D;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;F||this instanceof HTMLElement&&(F=this);if(!F)throw Error("Kg");this.allowedProps=y.allowedProps;this.hostElement=F;this.is=I.is;this.upgradeDisabled=!!y.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");I=new Set(y.reactiveSchemas.filter(function(R){return R.type!==
"observe"}).map(function(R){return R.propertyKey}));
this.signalProxy=new FN(this,void 0,{reactiveProps:I,reactivityMode:y.reactivityMode});this.__dataHasAccessor={};y=_.J(y.reactiveSchemas);for(I=y.next();!I.done;I=y.next())I=I.value,I.type==="signal"&&(this.__dataHasAccessor[I.propertyKey]=!0);this.upgradeDisabled||Ao_(this)};
P4.prototype.getExtraMethodsToForward=function(){return[]};
var Ao_=function(I){I.polySiContext.didRegister||(I.registered(),I.polySiContext.didRegister=!0);I.polySiContext.finalizedTemplate||(I.polySiContext.finalizedTemplate={},I.polySiParams.templateGetter&&(I.polySiContext.finalizedTemplate.processedTemplate=LiW(I.polySiParams.templateGetter,I.polySiParams.is)));$dP(I);var y=I.hostElement;y.loggingStatus!=null||(y.loggingStatus={});y.loggingStatus.isInitializing=!0;_.iS(function(){return void I.created()});
y.loggingStatus.isInitializing=!1;I.isPolySiElementConnected&&bX_(I)},bX_=function(I){I.didCallReady||(_.iS(function(){return void I.ready()}),I.didCallReady=!0);
I.isAttached=!0;I.attached()};
_.L=P4.prototype;_.L.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||bX_(this)};
_.L.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.L.attributeChangedCallback=function(I,y,D){if(this.upgradeDisabled)I==="disable-upgrade"&&D===null&&(this.upgradeDisabled=!1,Ao_(this));else if(y!==D){var F=_.zG(I),R=this.polySiContext.typesForSignals[F];if(R&&(!this.reflecting||_.l("polysi_attribute_changed_serializing_killswitch"))){switch(R){case Object:try{var O=JSON.parse(D)}catch(v){O=D}break;case Array:try{O=JSON.parse(D)}catch(v){O=null}break;case Date:O=isNaN(D)?String(D):Number(D);O=new Date(O);break;case Boolean:O=D!==null;break;case Number:O=
Number(D);break;default:O=D}this[F]=O}F=_.J(this.polySiParams.behaviors);for(R=F.next();!R.done;R=F.next())O=void 0,(O=R.value.attributeChanged)==null||O.call(this,I,y,D);var w;(w=this.attributeChanged)==null||w.call(this,I,y,D)}};
_.L.attributeChangedCallbackWrapper=function(I,y,D){this.attributeChangedCallback(I,y,D)};
_.L.setPropertiesFromInitialAttributeValues=function(){for(var I=0;I<this.hostElement.attributes.length;I++){var y=this.hostElement.attributes[I];(y.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(y.name))&&this.attributeChangedCallback(y.name,null,y.value)}};
_.L.created=function(){this.provide=this.polySiParams.provide;var I;(I=this.initializeInjection)==null||I.call(this);I=_.J(this.polySiParams.reactiveSchemas);for(var y=I.next();!y.done;y=I.next())y=y.value,y.type==="signal"&&(this.mutablePropNames.add(y.propertyKey),R6(this.signalProxy,y.propertyKey));X3J(this,this.polySiInfo,this.polySiParams.behaviors);I=_.J(this.polySiParams.reactiveSchemas);for(y=I.next();!y.done;y=I.next())y=y.value,y.type==="signal"&&y.value!==void 0&&(this.signalProxy.model[y.propertyKey]=
typeof y.value==="function"?y.value.call(this):y.value);if(this.polySiParams.signalProperties)for(I=_.J(this.polySiParams.signalProperties),y=I.next();!y.done;y=I.next()){y=y.value;var D=void 0;((D=this.__signalCache)==null?0:D.has(y))||(this.signalProxy.model[y]=void 0)}ace||HXP(this);Gl5(this);I=_.J(this.polySiParams.behaviors);for(y=I.next();!y.done;y=I.next())D=void 0,(D=y.value.created)==null||D.call(this);var F;(F=this.polySiInfo.created)==null||F.call(this)};
_.L.registered=function(){var I=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var y=Object.getPrototypeOf(this);y.addReactiveSchema=function(v){I.polySiParams.reactiveSchemas.push(v)};
for(var D=_.J(this.polySiParams.behaviors),F=D.next();!F.done;F=D.next()){var R=void 0;(R=F.value.beforeRegister)==null||R.call(y)}var O;(O=this.polySiInfo.beforeRegister)==null||O.call(y);y.addReactiveSchema=fHe;D=_.J(this.polySiParams.behaviors);for(F=D.next();!F.done;F=D.next())R=void 0,(R=F.value.registered)==null||R.call(y);var w;(w=this.polySiInfo.registered)==null||w.call(y)};
_.L.ready=function(){var I;(I=this.beforeReady)==null||I.call(this);ace&&HXP(this);var y;if(I=(y=this.polySiContext.finalizedTemplate)==null?void 0:y.processedTemplate){I=Rh4(I.template,I.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:I.hasInsertionPoint,thisCtx:this});y=I.nodesById;I=I.root;var D=this.hostElement;var F=F===void 0?!1:F;D=(0,_.ng)(D);if(!D.attachShadow)throw Error("Id");if(!D.shadowRoot||F)D.attachShadow({mode:"open",shadyUpgradeFragment:I}),D.shadowRoot.appendChild(I);
this.root=D.shadowRoot;this.$=y}eI_(this);F=_.J(this.polySiParams.behaviors);for(y=F.next();!y.done;y=F.next())I=void 0,(I=y.value.ready)==null||I.call(this);var R;(R=this.polySiInfo.ready)==null||R.call(this)};
_.L.attached=function(){for(var I=_.J(this.polySiParams.behaviors),y=I.next();!y.done;y=I.next()){var D=void 0;(D=y.value.attached)==null||D.call(this)}var F;(F=this.polySiInfo.attached)==null||F.call(this)};
_.L.detached=function(){for(var I=_.J(this.polySiParams.behaviors),y=I.next();!y.done;y=I.next()){var D=void 0;(D=y.value.detached)==null||D.call(this)}var F;(F=this.polySiInfo.detached)==null||F.call(this)};
var $dP=function(I){for(var y=_.J(I.polySiParams.behaviors),D=y.next();!D.done;D=y.next())if(D=D.value,D.listeners)for(var F in D.listeners)FiB(I,I.hostElement,F,D.listeners[F]);if(I.polySiInfo.listeners)for(var R in I.polySiInfo.listeners)FiB(I,I.hostElement,R,I.polySiInfo.listeners[R])},FiB=function(I,y,D,F,R){I=Ooo(I,F,R);
tp(y,D,I)||y.addEventListener(D,I);return I},HXP=function(I){for(var y=_.J(I.polySiParams.reactiveSchemas),D=y.next();!D.done;D=y.next())D=D.value,D.type==="compute"||D.type==="computeWithMethod"?vaA(I.signalProxy,D,I):D.type==="redux"?PA4(I.signalProxy,D,I.store):D.type==="signal"&&D.readOnly&&tHt(I.signalProxy,D)},eI_=function(I){for(var y=_.J(I.polySiParams.reactiveSchemas),D=y.next(),F={};!D.done;F={schema$jscomp$12:void 0},D=y.next())F.schema$jscomp$12=D.value,F.schema$jscomp$12.type==="notify"?
UZo(I.signalProxy,F.schema$jscomp$12,I.hostElement):F.schema$jscomp$12.type==="observe"?rbS(I.signalProxy,F.schema$jscomp$12,I):F.schema$jscomp$12.type==="reflect"&&I.signalProxy.effect(function(O){return function(){var w=I.signalProxy.getWithPath([O.schema$jscomp$12.propertyKey]);
I.reflecting=!0;XA4(I.hostElement,O.schema$jscomp$12.propertyKey,w,!0);I.reflecting=!1}}(F));
if(I.reflectedAttributes)for(y=_.J(Object.entries(I.reflectedAttributes)),F=y.next(),D={};!F.done;D={key$jscomp$938:void 0,value$jscomp$10285:void 0},F=y.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;D.key$jscomp$938=F;D.value$jscomp$10285=R;I.signalProxy.effect(function(O){return function(){I.reflecting=!0;XA4(I.hostElement,O.key$jscomp$938,(0,O.value$jscomp$10285)(),!0);I.reflecting=!1}}(D))}};
_.L=P4.prototype;_.L._setPendingProperty=function(I,y){this.set(I,y);return!1};
_.L._enableProperties=function(){};
_.L._setPendingPropertyOrPath=function(I,y){this.notifyPath(I,y);return!1};
_.L._addPropertyEffect=function(){};
_.L._stampTemplate=function(){throw Error("Lg");};
_.L.fire=function(I,y,D){y=y===void 0?{}:y;D=D===void 0?{}:D;var F,R,O={bubbles:(F=D.bubbles)!=null?F:!0,cancelable:!!D.cancelable,composed:(R=D.composed)!=null?R:!0},w;return _.lj(nJL((w=D.node)!=null?w:this.hostElement),I,y,O)};
_.L.get=function(I,y){var D=Dd(I);return y?Lbq(y,D):I==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(D)};
_.L.linkPaths=function(){};
_.L.listen=function(I,y,D){I=nJL(I);this.boundListeners!=null||(this.boundListeners=new WeakMap);var F=this.boundListeners.get(I);F||(F={},this.boundListeners.set(I,F));var R=y+D;F[R]||(F[R]=FiB(this,I,y,D))};
_.L.notifyPath=function(I,y){this.signalProxy.notifyPath(Dd(I),arguments.length===2?{value:y}:void 0)};
_.L.canNotifyPath=function(I){return this.mutablePropNames.has(I)&&!BxW(this.signalProxy,I)};
_.L.notifySplices=function(I,y){this.signalProxy.notifySplices(Dd(I),y)};
_.L.pop=function(I){var y=this.signalProxy;I=Dd(I);var D=_.J(I);I=D.next().value;D=GO(D);return R6(y,I).pop(D)};
_.L.push=function(I){var y=_.go.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Dd(I)].concat(_.Td(y)))};
_.L.set=function(I,y,D){if(D)throw Error("Mg");I==="hidden"?this.hostElement.hidden=!!y:this.signalProxy.setWithPath(Dd(I),y)};
_.L.setProperties=function(I){I=_.J(Object.entries(I));for(var y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;this[y]=D}};
_.L.splice=function(I,y,D){var F=_.go.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Dd(I),y,D].concat(_.Td(F)))};
_.L.unlinkPaths=function(){};
_.L.unlisten=function(I,y,D){I=nJL(I);if(this.boundListeners){var F=this.boundListeners.get(I);if(F){D=y+D;var R=F[D];R&&(Pr(I,y,R)||I.removeEventListener(y,R),delete F[D])}}};
_.L.unshift=function(I){var y=_.go.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Dd(I)].concat(_.Td(y)))};
_.mD.Object.defineProperties(P4.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 B_o=[Array,Boolean,Date,Number,Object,String];var $7S=!1;var Rm=function(){var I=HTMLElement.apply(this,arguments)||this;I.restamp=!1;I.notifyDomChange=!1;I.JSC$13898_didCallConnected=!1;I.JSC$13898_renderDebouncer=null;I.disableTemplateUpdateSignalImpl=KQ()?void 0:_.$M(!1,void 0,"OUmlUc");var y;I.getDisableTemplateUpdate=(y=I.disableTemplateUpdateSignalImpl)==null?void 0:y[0];var D;I.setDisableTemplateUpdate=(D=I.disableTemplateUpdateSignalImpl)==null?void 0:D[1];return I};
_.E(Rm,HTMLElement);var Tfe=function(I){I.conditionSignalImpl!=null||(I.conditionSignalImpl=new D8(_.$M(!1,void 0,"Mh1Uwb")));return I.conditionSignalImpl};
_.L=Rm.prototype;_.L.showHideChildren=function(I){sWa(this,I,this.if)};
_.L.attributeChangedCallback=function(I,y,D){if(this.JSC$13898_didCallConnected)throw Error("Qg`"+I);I==="notify-dom-change"?this.notifyDomChange=D!==null:I==="restamp"&&(this.restamp=D!==null)};
_.L.debounceRender=function(){this.JSC$13898_renderDebouncer=_.mz(this.JSC$13898_renderDebouncer,U1,this.JSC$13898_renderImpl.bind(this));_.Mn(this.JSC$13898_renderDebouncer)};
_.L.disconnectedCallback=function(){var I=(0,_.ng)(this).parentNode;(!I||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in I&&!I.host)&&V8M(this)};
_.L.connectedCallback=function(){var I=this;if(_.l("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13898_didCallConnected=!0,kxW?bqW():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.l("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){Tfe(I).getWithPath([]);I.debounceRender()});
else{var y=(0,_.ng)(this).parentNode,D={parentNode:y==null?void 0:y.nodeName};y instanceof Element&&(D.parentClassName=y.className);_.tq(new _.g6("PsDomIf connected with undefined parentSignalProxy",D))}};
_.L.render=function(){_.aZ()};
_.L.JSC$13898_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var I=this.if,y=!1;if(I){this.hasInstance()||(ZXW(this),y=!0);a:{var D=(0,_.ng)(this).parentNode;if(this.hasInstance()){var F=this.instance.children;if((F==null?0:F.length)&&(0,_.ng)(this).previousSibling!==F[F.length-1])for(var R=0;R<F.length;R++)(0,_.ng)(D).insertBefore(F[R],this)}else{if(!D){D=!1;break a}gH_(this,D)}D=!0}if(!D)return}else this.restamp&&V8M(this);sWa(this,!1,I);I&&!y&&ZXW(this);ddM&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.L.hasInstance=function(){return!!this.instance};
var gH_=function(I,y){var D=I.parentSignalProxy;if(KQ()){var F=_.J(_.$M(!0,void 0,"QhELFb"));var R=F.next().value;F=F.next().value;D=I.parentSignalProxy}else{var O;var w=new FN((O=Ib_(I))!=null?O:{},function(P){var K=R6(I.parentSignalProxy,P).getChangeRecordSignal([]);P=_.$M(void 0,void 0,"RUDHfc");var r=new D8(P);w.effect(function(){if(I.getDisableTemplateUpdate&&!I.getDisableTemplateUpdate()){var N=K();r.notifyPath(Dd(N.path),{value:N.value})}});
return r});
I.parentSignalProxy.childSignalProxies.push(w);var v=D=w}D=Rh4(I.templateInfo,I.templateInfo.nodeInfoList,D,{eventListenerHost:I.eventListenerHost,hasInsertionPoint:I.templateInfo.hasInsertionPoint,thisCtx:I.eventListenerHost,enabledSignal:KQ()?R:void 0,getModel:function(){return Ib_(I)}}).root;
I.instance={root:D,children:[],hidden:!1,signalProxy:v,getTemplateUpdatesEnabled:R,setTemplateUpdatesEnabled:F};v=_.J(D.childNodes);for(R=v.next();!R.done;R=v.next())I.instance.children.push(R.value);(0,_.ng)(y).insertBefore(I.instance.root,I)},Ib_=function(I){if((I=I.parentSignalProxy.model)&&!I.hostElement){var y={},D;
for(D in I)I.hasOwnProperty(D)&&(y[D]=I[D]);return y}},V8M=function(I){if(I.instance){var y=I.instance.children;
if(y.length){var D=(0,_.ng)(y[0]).parentNode;if(D){D=(0,_.ng)(D);for(var F=0;F<y.length;F++)D.removeChild(y[F])}}KQ()?I.instance.setTemplateUpdatesEnabled(!1):I.instance.signalProxy.dispose();I.instance=void 0}},sWa=function(I,y,D){y=y||!D;
I.instance&&I.instance.hidden!==y&&(I.instance.hidden=y,AHJ(y,I.instance.children))},ZXW=function(I){if(KQ()){var y=I.instance;
y&&Uf(I.parentSignalProxy.owner,function(){return!y.getTemplateUpdatesEnabled()})&&y.setTemplateUpdatesEnabled(!0)}else I.setDisableTemplateUpdate(!1)};
_.mD.Object.defineProperties(Rm.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var I=this;return Uf(this.parentSignalProxy.owner,function(){return Tfe(I).getWithPath([])})},
set:function(I){I||(KQ()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));Tfe(this).setWithPath([],!!I)}}});
_.mD.Object.defineProperties(Rm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Rm);var yD_=[],OY=function(){var I=HTMLElement.apply(this,arguments)||this;I.as="item";I.indexAs="index";I.itemsIndexAs="itemsIndex";I.targetFramerate=20;I.notifyDomChange=!1;I.isDetached=!1;I.JSC$13905_renderDebouncer=null;I.instances=[];I.chunkingId=null;I.chunkCount=null;I.shouldMeasureChunk=!1;I.shouldContinueChunking=!1;I.renderStartTime=null;I.JSC$13905_didCallConnected=!1;return I};
_.E(OY,HTMLElement);var DNR=function(I){I.itemSignalImpl!=null||(I.itemSignalImpl=new D8(_.$M(yD_,void 0,"sOVFgf")));return I.itemSignalImpl},Fun=function(I,y){Array.isArray(y)||(y=yD_);
DNR(I).setWithPath([],y)};
_.L=OY.prototype;_.L.showHideChildren=function(I){for(var y=_.J(this.instances),D=y.next();!D.done;D=y.next())AHJ(I,D.value.children)};
_.L.notifyPath=function(I,y){I=Dd(I);I[0]==="items"&&(I.length===1?Fun(this,y):DNR(this).setWithPath(I.slice(1),y))};
_.L.canNotifyPath=function(I){return I==="items"};
_.L.attributeChangedCallback=function(I,y,D){if(this.JSC$13905_didCallConnected)throw Error("Rg`"+I);I==="as"?this.as=D:I==="index-as"?this.indexAs=D:I==="items-index-as"?this.itemsIndexAs=D:I==="initial-count"?this.initialCount=Number(D):I==="notify-dom-change"?this.notifyDomChange=D!==null:I==="target-framerate"&&(this.targetFramerate=Number(D))};
_.L.disconnectedCallback=function(){this.isDetached=!0;for(var I=0;I<this.instances.length;I++)R7f(this,I);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.L.connectedCallback=function(){var I=this;if(_.l("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var y=DNR(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var R=y(),O=Dd(R.path);if(O[0]===void 0||O[0]==="splices"||O[0]==="length")I.debounceRender();else{var w=O[0];if(w=I.instances[typeof w==="string"?Math.floor(Number(w)):w])O=[I.as].concat(_.Td(O.slice(1))),w.signalProxy.notifyPath(O,R)}});
this.JSC$13905_didCallConnected=!0;kxW?bqW():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var D=(0,_.ng)((0,_.ng)(this).parentNode),F=0;F<this.instances.length;F++)D.insertBefore(this.instances[F].root,this);this.chunkingId&&this.render()}}else D=(0,_.ng)(this).parentNode,F={parentNode:D==null?void 0:D.nodeName},D instanceof Element&&(F.parentClassName=D.className),_.tq(new _.g6("PsDomRepeat connected with undefined parentSignalProxy",F))};
_.L.debounceRender=function(){this.JSC$13905_renderDebouncer=_.mz(this.JSC$13905_renderDebouncer,U1,this.JSC$13905_renderImpl.bind(this));_.Mn(this.JSC$13905_renderDebouncer)};
_.L.render=function(){this.debounceRender();_.aZ()};
_.L.JSC$13905_renderImpl=function(){var I=this;if(!this.parentSignalProxy.isDisposed){var y=this.items,D=OL_(this,y.length);LuR(this,y,D);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){I.chunkingId=null;if(I.shouldMeasureChunk){var F=performance.now()-I.renderStartTime;I.chunkCount=Math.round(Math.ceil(1E3/I.targetFramerate)/F*I.chunkCount)||1}I.shouldContinueChunking&&I.debounceRender()}));
ddM&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var OL_=function(I,y){var D=y,F=I.instances.length;if(I.initialCount){if(I.chunkCount){var R=Math.min(Math.max(y-F,0),I.chunkCount);D=Math.min(F+R,y)}else D=Math.min(y,I.initialCount),R=Math.max(D-F,0),I.chunkCount=R||1;I.shouldMeasureChunk=R===I.chunkCount;I.shouldContinueChunking=D<y;I.renderStartTime=performance.now()}return D},LuR=function(I,y,D){for(var F=0;F<D;F++){var R=I.instances[F],O=y[F];
R?(R.signalProxy.setWithPath([I.as],O),R.signalProxy.setWithPath([I.indexAs],F)):JDf(I,O,F)}for(y=I.instances.length-1;y>=F;y--)D=I,R=y,R7f(D,R),_.J(D.instances.splice(R,1)).next().value.signalProxy.dispose()},R7f=function(I,y){I=I.instances[y];
y=(0,_.ng)(I.root);for(var D=0;D<I.children.length;D++)y.appendChild(I.children[D])},JDf=function(I,y,D){var F={};
y=Object.assign({},wTu(I),(F[I.as]=y,F[I.indexAs]=D,F[I.itemsIndexAs]=D,F));var R=new FN(y,function(w){if(w!==I.as&&w!==I.indexAs){if(w===I.itemsIndexAs)return R6(R,I.indexAs);var v=R6(I.parentSignalProxy,w).getChangeRecordSignal([]);w=_.$M(void 0,void 0,"DS4mcc");var P=new D8(w);R.effect(function(){var K=v();P.notifyPath(Dd(K.path),{value:K.value})});
return P}});
I.parentSignalProxy.childSignalProxies.push(R);F=Rh4(I.templateInfo,I.templateInfo.nodeInfoList,R,{eventListenerHost:I.eventListenerHost,getModel:function(){var w={};return Object.assign({},wTu(I),(w[I.as]=R.model[I.as],w[I.indexAs]=R.model[I.indexAs],w[I.itemsIndexAs]=R.model[I.indexAs],w))},
hasInsertionPoint:I.templateInfo.hasInsertionPoint,thisCtx:I.eventListenerHost,methodInvocationRequirement:coG,enabledSignal:I.stampingEnabled}).root;y={root:F,children:[],signalProxy:R};F=_.J(F.childNodes);for(var O=F.next();!O.done;O=F.next())y.children.push(O.value);F=(F=I.instances[D+1])?F.children[0]:I;(0,_.ng)((0,_.ng)(I).parentNode).insertBefore(y.root,F);I.instances[D]=y},wTu=function(I){if((I=I.parentSignalProxy.model)&&!I.hostElement){var y={},D;
for(D in I)I.hasOwnProperty(D)&&(y[D]=I[D]);return y}};
OY.prototype.itemForElement=function(I){var y=this,D=this.instances.find(function(F){return F.children.includes(I)});
if(D)return Uf(this.parentSignalProxy.owner,function(){return D.signalProxy.getWithPath([y.as])})};
OY.prototype.indexForElement=function(I){var y=this.instances.findIndex(function(D){return D.children.includes(I)});
return y>=0?y:void 0};
_.mD.Object.defineProperties(OY.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var I=this;return Uf(this.parentSignalProxy.owner,function(){return DNR(I).getWithPath([])})},
set:function(I){Fun(this,I)}},
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}}});
_.mD.Object.defineProperties(OY,{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",OY);var vha,SrM;_.LM=new _.uk("STATE_STORE_TOKEN");vha=new _.uk("SELECT_TOKEN");SrM=new _.uk("DISPATCH_TOKEN");var ZqJ={getSelectFn:function(){var I;return(I=_.nR().resolve(_.fR(vha)))!=null?I:Hqt},
getDispatchFn:function(){var I;return(I=_.nR().resolve(_.fR(SrM)))!=null?I:_.Uv().dispatch.bind(_.Uv())},
getAppStore:function(){return _.nR().resolve(_.LM)}},ehS,VcC=!1;var OXA=function(){};var DdJ=void 0;var tSP=function(){};
tSP.prototype.hasAttribute=function(I){if(I==="dir")return!1;if(I==="disable-upgrade"){var y,D;return(D=(y=this.hostElement)==null?void 0:y.hasAttribute("disable-upgrade"))!=null?D:!1}throw Error("Sg`"+I);};
tSP.prototype.attributeChangedCallbackWrapper=function(I,y,D){if(I==="disable-upgrade"&&this.__isUpgradeDisabled&&D===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var F;((F=this.hostElement)!=null?F:this).isConnected&&this.connectedCallback()}else y===D||this.__isReflecting||this.attributeChangedCallback(I,y,D)};
tSP.prototype.getExtraMethodsToForward=function(){for(var I=this,y=[],D=_.J(Phg),F=D.next(),R={};!F.done;R={tagName$jscomp$67:void 0,name$jscomp$630:void 0},F=D.next())R.name$jscomp$630=F.value,F=void 0,R.name$jscomp$630==="_setPendingProperty"?(R.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),F=function(O){return function(w,v,P){$e(O.tagName$jscomp$67,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return I._setPendingProperty(w,v,P)}}(R)):F=function(O){return function(){return I[O.name$jscomp$630].apply(I,
_.Td(_.go.apply(0,arguments)))}}(R),y.push([R.name$jscomp$630,
F]);return y};
for(var wNA=iXM(BfP((0,_.Ht)(tSP))),PBJ=["disabled","disable-upgrade"],Kug=(0,_.Ht)(function(){}),UNW=new Set(Object.getOwnPropertyNames(Kug.prototype)),oHH=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Td(UNW))),Udo=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Phg=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),rDG=new Set([].concat(_.Td(Udo),_.Td(Phg),_.Td(UNW))),jya=_.J(rDG),oha=jya.next();!oha.done;oha=jya.next())dk5.add(oha.value);var jWJ={created:function(){Gl5(this);this.initializeInjection()}};var XNL=!1,Ev=window.ShadyDOM,zIS=["appendChild","insertBefore","removeChild","replaceChild"],M8q=[Node];Ev&&M8q.push(Ev.Wrapper);var BfA,iXJ,bX5={};var Gv,V8J=new WeakMap,eI5=new Set;var DNC=new Set("context didCallReady is info params signalProxy".split(" ")),R7W="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),OL5="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var NSn=RV({entities:Fe_}),h7P=new j7(NSn);var xN_=function(){return _.Wp.apply(this,arguments)||this};
_.E(xN_,_.Wp);_.mD.Object.defineProperties(xN_.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return h7P}}});
_.W([_.Cg()],xN_);_.J2=[Im.prototype,xN_.prototype];_.wi={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var I=this,y={};setTimeout(function(){var D;return _.lj((D=I.hostElement)!=null?D:I,"yt-live-chat-add-tooltip-target",y)},0);
this.handler_=y.handler},
detached:function(){if(this.handler_){var I;this.handler_.removeElementFromSupportingTooltips((I=this.hostElement)!=null?I:this)}this.handler_=null}}};_.mZ=new _.uk("ICON_MANAGER_TOKEN");var lbM=[48,20,18,16,15,13,12],Gco=new Map,lbJ=new Set,NS4=new Set,xN5=new Set,ohe=new Set,h7A=new Set,qrq=new Promise(function(I){var y=!1,D=!1,F=!1,R=[],O=function(w){if("detail"in w)if(w=w.detail,w.name==="yt-icons")u2H(w),y=!0;else if(w.name==="yt-sys-icons")u2H(w),D=!0;else{var v;((v=w.name)==null?0:v.includes("yt-sys-icons"))&&w.size!==24&&(u2H(w,!0),R.push(w.size),R.length===lbM.length&&(F=!0))}y&&D&&F&&(window.removeEventListener("iron-iconset-added",O),I())};
window.addEventListener("iron-iconset-added",O)}),u2G=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"]]);_.vb={};_.vb.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.rY,computeHref_:function(I,y){y=y===void 0?!1:y;if(!I||I.commandExecutorCommand)return null;var D=KK5(I,y);return y||D!==null?D?_.l("enable_polymer_resin")?_.VA(D).toString():D:null:(_.tq(new _.g6("computeHref was null",this.is,I)),null)},
computeOptionalHref_:function(I){return this.computeHref_(I,!0)},
computeNofollow_:function(I){return I?Rb_(I)?"nofollow":null:null},
computeIcon_:function(I){return I&&I.iconType?_.pQ(I.iconType):""},
resolveCommand:function(I,y,D){y=y===void 0?{}:y;return _.zv(I,this.hostElement,y,D===void 0?!1:D)}};var Ehn,Sr;_.qrO={};Ehn=null;
Sr={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_=raW(this.viewroot));_.wy(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var I=this;this.unobserve_();if(_.l("kevlar_vimio_use_shared_monitor"))dy(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 y=[];this.visibilityOptionVisible_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&y.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=y}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){XTA(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 I=_.gB(this.parentNode,function(D){var F,R=(F=D.polymerController)!=null?F:D;return!!R.getVisibilityObserverForChild&&R.getVisibilityObserverForChild()},!0);
if(I){var y;this.localVisibilityObserver_=((y=I.polymerController)!=null?y:I).getVisibilityObserverForChild()}else Ehn||(Ehn=raW()),this.localVisibilityObserver_=Ehn;return this.localVisibilityObserver_},visibilityCallback:function(I){I?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.l("kevlar_use_vimio_behavior")||(Sr={});Sr&&!_.l("kevlar_use_vimio_behavior")&&(delete Sr.attached,delete Sr.detached);_.qrO.YtVisibilityObserverBehavior=[Sr];var Gce={};Gce.YtVisualElementBehavior=[_.qrO.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.l("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.l("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var I=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportShown(this,void 0,I)}},
onHidden:function(){if(_.l("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.l("kevlar_vimio_use_shared_monitor")){var I=this.getScreenLayer&&this.getScreenLayer(),y=this.getVisibilityLogger();y&&y.reportHidden(this,void 0,I)}},
getVisibilityLogger:function(){return _.l("kevlar_use_vimio_behavior")?_.a6():null},
shouldSkipLogging:function(){if(_.Pi("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var I=this.getParentRenderer&&this.getParentRenderer();if(!I)return!1;var y,D=(y=I.polymerController)!=null?y:I;if(!D.data)return!1;I=this.data.trackingParams;I=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:I;var F;y=(F=D.data)==null?void 0:F.trackingParams;var R,O;y=((R=D.data)==null?0:R.loggingDirectives)?(O=D.data)==null?void 0:O.loggingDirectives.trackingParams:y;return I&&y&&I===
y}}];var mNq=new Map,$E;var EdL=function(I){this.layer=I},zr=function(I){return I.layer!==void 0?I.layer:I.parent?zr(I.parent):I.layer=0};var cDq;_.V={};cDq=0;_.V.YtRendererBehavior=[_.vb.YtComponentBehavior,Gce.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_:_.l("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var I,y;(y=(I=this.monitorScrollElement)!=null?I:this.hostElement)==null||y.removeEventListener("scroll",_.MX(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();nhW(this.hostElement);i3(_.$D(),this.hostElement);KC.delete(this.hostElement)},
registerRenderer:function(I){var y;((y=I.polymerController)!=null?y:I).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(I),this.markDirty())},
unregisterRenderer_:function(I){this.useVimio_||(this.childCache_.delete(I),this.markDirty())},
attached:function(){var I=this,y=this.getParentRenderer();if(y){var D,F,R;(F=(D=(R=y.polymerController)!=null?R:y).registerRenderer)==null||F.call(D,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var O,w;(w=(O=this.monitorScrollElement)!=null?O:this.hostElement)==null||w.addEventListener("scroll",_.MX(this,this.onScroll))}_.w2.addJob(function(){MS4(I.hostElement)},8);
D=new EdL(this.screenLayer||void 0);(y=KC.get(y))&&y.layerNode&&(D.parent=y.layerNode);y={};EDB(this.hostElement,(y.isRenderer=!0,y.layerNode=D,y[Gy5]=this.data,y))},
getParentRenderer:function(){for(var I=this.hostElement.parentNode,y,D;I&&((y=KC.get(I))==null||!y.isRenderer)&&!((D=I.polymerController)!=null?D:I).isRenderer_;)I=I.parentNode||I.host;return I},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.l("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.KR("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.l("debug_web_ve_data")&&this.data.trackingParams){var I="";try{I=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(D){_.vu(D)}if(I){var y=MI_(I,1);y!==void 0&&(this.hostElement.dataset.veIndex=String(y));I=MI_(I,2);
I!==void 0&&(this.hostElement.dataset.ve=String(I))}}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,_.l("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.AC(this.data.loggingDirectives.trackingParams)),this.visualElement=_.c4(_.W4(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var I=this.data.targetId;_.Ax(_.$D(),I,this.hostElement)}else i3(_.$D(),this.hostElement)},
onScroll:function(){var I=Date.now();I-this.lastHandledScroll_<50||(this.lastHandledScroll_=I,this.markDirty())},
markDirty:function(){_.l("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():WuH(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var I=this.getParentRenderer();if(I&&(I=KC.get(I))&&I.layerNode)return zr(I.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Td(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var I=0;I<this.data.impressionEndpoints.length;I++)this.sendImpression(this.data.impressionEndpoints[I]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(I){I.clickTrackingParams&&delete I.clickTrackingParams;var y,D;(I==null?0:(y=I.commandMetadata)==null?0:(D=y.webCommandMetadata)==null?0:D.sendPost)?_.E$(this.hostElement,[I,{impression:!0}]):_.GC(this.hostElement,[I],this.hostElement)},
logExplicitClick:function(I){var y=_.VO(this.getScreenLayer());if(y){var D,F=(D=I.polymerController)!=null?D:I;I=F.visualElement;F=F.trackingParams||F.clickTrackingParams;!I&&F&&(I=_.AC(F));I&&_.SI(y,I)}}}];var XTP={},t2=function(){return _.Wp.apply(this,arguments)||this};
_.E(t2,_.Wp);t2.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
t2.prototype.onPdgItemBehaviorClick=t2.prototype.onPdgItemBehaviorClick;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],t2.prototype,"data",void 0);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],t2.prototype,"onPdgItemBehaviorClick",null);_.W([_.Cg()],t2);XTP.YtPdgLiveChatItemBehavior=[t2.prototype,_.V.YtRendererBehavior];var Qyf;var Yrc;_.Pb={};_.Pb.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KM=function(){var I=zt.apply(this,arguments)||this;I.switchTemplateAtRegistration=!1;return I};
_.E(KM,zt);KM.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||ADo(this),_.x75(this,"doRender"),this.doRender())};
KM.prototype.debounceRender=function(){this.templatingFn&&_.v4(this,"doRender",this.doRender)};
KM.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.vu(Error("bh"))};
KM.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.W([yPB()],KM);var fbO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,UY={},e7e=(UY[1]={filterString:null,isUnwrappable:null,unwrap:null},UY[2]={filterString:function(I,y,D){return Xp(D)},
isUnwrappable:function(I){return I instanceof Dt},
unwrap:function(I){return RB(I)}},UY[3]={filterString:function(I,y,D){return fbO.test(D)?D:sx.toString()},
isUnwrappable:function(I){return ba(I)},
unwrap:function(I){return _.H$(I)}},UY[4]={filterString:function(){return sx.toString()},
isUnwrappable:function(I){return I instanceof an},
unwrap:function(I){return _.W$(I).toString()}},UY[5]={filterString:function(I,y,D){return D},
isUnwrappable:function(I){return typeof I==="string"},
unwrap:function(I){return I.toString()}},UY[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(I){return I instanceof _.SY},
unwrap:function(I){return Pd(I)}},UY[8]={filterString:function(I,y,D){D=String(D).toLowerCase();
return q1W(I,y,D)?D:"zClosurez"},
isUnwrappable:null,unwrap:null},UY[10]={filterString:null,isUnwrappable:null,unwrap:null},UY);Q9[oU["default"]]=syq;var VSt=[];(function(){var I=GB;GB=function(y){I==null||I(y);Tv(function(){for(var D=0;D<y.length;D++)ZLq(y[D])})}})();var nhf=function(){var I=_.Wp.apply(this,arguments)||this;I.hasUnmounted=!1;return I};
_.E(nhf,_.Wp);_.L=nhf.prototype;_.L.beforeRegister=function(){var I=this.doIdomRender;this.templatingFn?_.vu(Error("ah")):(this.templatingFn=I,this.switchTemplateAtRegistration=!0,HLq(this))};
_.L.attached=function(){};
_.L.detached=function(){ZLq(this.hostElement)};
_.L.renderIdom=function(){throw Error("dh");};
_.L.doIdomRender=function(){var I=this;qA5(this.hostElement,function(){I.renderIdom()})};
_.W([_.Cg()],nhf);var pTW=[KM.prototype,nhf.prototype];var mNc,MSn=function(){return mNc!==void 0?mNc:mNc=document.createElement("template")};
document.head.appendChild(MSn().content);var z7f;var kcW,dNW=function(){return kcW!==void 0?kcW:kcW=document.createElement("template")};
document.head.appendChild(dNW().content);var abM;var cDO=document.head,WuG=cDO.appendChild,ChR;if(abM===void 0){var BSR=document.createElement("template");_.G(BSR,"\x3c!--css-build:shady--\x3e");BSR.content.insertBefore(dNW().content.cloneNode(!0),BSR.content.firstChild);abM=BSR}ChR=abM;WuG.call(cDO,ChR.content);var iLu,ADe=function(){return iLu!==void 0?iLu:iLu=document.createElement("template")};
document.head.appendChild(ADe().content);var $Ng;var bLM=document.head,HLO=bLM.appendChild,e7a;if($Ng===void 0){var TSO=document.createElement("template");_.G(TSO,"\x3c!--css-build:shady--\x3e");TSO.content.insertBefore(ADe().content.cloneNode(!0),TSO.content.firstChild);$Ng=TSO}e7a=$Ng;HLO.call(bLM,e7a.content);var syc=document.head,VSW=syc.appendChild,ZLc;if(z7f===void 0){var ghG=document.createElement("template");_.G(ghG,"\x3c!--css-build:shady--\x3e");ghG.content.insertBefore(MSn().content.cloneNode(!0),ghG.content.firstChild);z7f=ghG}ZLc=z7f;VSW.call(syc,ZLc.content);var ISP,yXn=function(){return ISP!==void 0?ISP:ISP=document.createElement("template")};
document.head.appendChild(yXn().content);var Dme;_.cS=new _.uk("DARK_THEME_TOKEN");var FT_=new _.lk("accessibilityProperties");var RTW=new _.lk("layoutProperties");var OO_=new _.lk("imageType");var LTa={};if("ytAttributedStringLinkHoverColor"in LTa)throw Error("gh`ytAttributedStringLinkHoverColor");(function(I,y){LTa[I]="value"in y&&"unit"in y?FT5(I,y):function(D){try{return y(D)}catch(F){throw Error("eh`"+I+"`"+F.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var JXM=function(I){var y=this;this.holdTime=I===void 0?500:I;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(D){var F=new CustomEvent("LONG_PRESS"),R;(R=D.changedTouches[0].target)==null||R.dispatchEvent(F)};
this.ontouchstart=function(D){y.longPressTimeout=_.k1(_.w2,function(){y.onlongpress(D);y.longPressOccurred=!0},y.holdTime)};
this.ontouchmove=function(){_.w2.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!0};
this.ontouchend=function(D){if(y.longPressTimeout&&!y.longPressOccurred&&!y.moveOccurred){var F;(F=D.changedTouches[0].target)==null||F.dispatchEvent(new Event("click"))}_.w2.cancelJob(y.longPressTimeout);y.longPressTimeout=NaN;y.longPressOccurred=!1;y.moveOccurred=!1}};var lSL=function(I,y){JXM.call(this,y);var D=this;this.callback=I;this.onlongpress=function(F){var R;(R=D.callback)==null||R.call(D,F)}};
_.E(lSL,JXM);var uCJ=function(I,y){var D=Object.assign({},y);I=_.J(new Map([["ontouchstart",I.ontouchstart],["ontouchend",I.ontouchend],["ontouchmove",I.ontouchmove]]));for(var F=I.next(),R={};!F.done;R={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},F=I.next()){var O=_.J(F.value);F=O.next().value;O=O.next().value;R.eventName$jscomp$103=F;R.eventHandler$jscomp$2=O;y[R.eventName$jscomp$103]=function(w){return function(v){var P;(P=D[w.eventName$jscomp$103])==null||P.call(D,v);(0,w.eventHandler$jscomp$2)(v)}}(R)}};_.MC=new _.uk("COMMAND_HANDLER_TOKEN");var OO5=new _.lk("parallelCommand");var wYH=new _.lk("performOnceCommand");var JXJ=new _.lk("serialCommand");var v5S=void 0;var wYG=function(){this.data=[];this.consumer=null};
wYG.prototype.push=function(I){this.consumer?this.consumer(I):this.data.push(I)};var tU={};_.$M(tU,void 0,"sgPmTd");_.$M(null,void 0,"jypsq");_.$M(null,void 0,"mWiOof");var NL5=new wYG;var o5q=[hDR,x_e,lta,qkc,uyz,Nj_,EQn,GdG];var v5z=new _.lk("bracketTextDecorator");var wV=new _.lk("highlightTextDecorator");_.JU=new _.uk("APP_DIRECTION_TOKEN");var pYH={calledOnce:!1,state:"visible"},n5B={calledOnce:!1,state:"hidden"};var Spg=new _.uk("ICON_WIZ_COMPONENT_TOKEN");_.mj=_.d(function(I){var y=I.icon;var D=I.active;var F=I.className;var R=I.style;var O=I.dataSelected;var w=I.dataDisabled;var v=I.role;var P=I.animateIcon;var K=I.themeOverride;var r=I.ariaHidden;var N=I.ariaExpanded;var h=I.ariaLabel;var x=I.tabindex;var q=I.id;var X=I.size;var f=I.iconFilter;var m=I.gradientColor;var z=I.onKeydown;var B=I.title;return _.t(_.U,{cond:y,then:function(){var C=_.nR().resolve(Spg);return _.t(C,{icon:y,dataSelected:O,dataDisabled:w,animateIcon:P,themeOverride:K,ariaExpanded:N,
tabindex:x,id:q,active:D,size:X,role:v,className:F,ariaHidden:r,ariaLabel:h,style:function(){return R!=null&&R()||X==null||!X()?R==null?void 0:R():"width: "+(X==null?void 0:X())+"px;height: "+((X==null?void 0:X())+"px;")},
title:B,iconFilter:f,gradientColor:m,onKeydown:z})}})},"p");
_.mj.idomCompat={callbacks:{onKeydown:!0}};var Bd5=new _.lk("borderImageProcessor");var $mC=window.devicePixelRatio||1;var TdB=new Map([["yt_outline_bag_black_24","bag"]]);var ri=function(I){var y=this;this.margin=.1;this.whenInViewportWithMargin=I;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){y.requestScan()});
window.addEventListener("touchend",function(){y.requestScan()});
window.addEventListener("updateui",function(){y.requestScan()});
var D=new _.n4((0,_.iD)(this.requestScan,this),100);window.addEventListener("scroll",function(){D.fire()},!0);
window.addEventListener("resize",(0,_.iD)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){y.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.iD)(this.requestScan,this))};
ri.prototype.observe=function(I){this.observationTargets.includes(I)||this.observationTargets.push(I)};
ri.prototype.unobserve=function(I){this.observationTargets=this.observationTargets.filter(function(y){return y!==I})};
ri.prototype.requestScan=function(){var I=this;this.scanRequested||(Tv(function(){tBc(I)}),this.scanRequested=!0)};
var tBc=function(I){var y=(1+I.margin)*(document.documentElement.clientHeight||window.innerHeight);I.observationTargets=I.observationTargets.filter(function(D){var F=D.getBoundingClientRect();(F=y>F.top&&!!F.height)&&I.whenInViewportWithMargin(D);return!F&&D.parentNode});
I.scanRequested=!1};
ri.prototype.disconnect=function(){this.observationTargets=[]};var Pen,Umu;Pen=_.J(_.$M(IE4(),void 0,"O3X2wd"));_.KTz=Pen.next().value;Umu=Pen.next().value;window.addEventListener("resize",function(){Umu(IE4())});var rXe={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},j$u=void 0,o5O=window.innerWidth,NdM=window.innerHeight;window.addEventListener("resize",function(){j$u=void 0});var hTM;if("IntersectionObserver"in window)hTM=FmJ();else{if(j$u===void 0){var xmP;xmP="matchMedia"in window?window.matchMedia(rXe.landscape+","+rXe.portrait).matches:void 0;j$u=xmP!==void 0?xmP:o5O>=930&&NdM>=550||o5O>=550&&NdM>=930}hTM=j$u?{observe:function(I){Tv(function(){var y;(y=I.onViewportEntered)==null||y.call(I)})},
unobserve:function(){}}:new ri(function(I){Tv(function(){var y;
(y=I.onViewportEntered)==null||y.call(I)})})}var y7L=hTM;var lSM=_.d(function(I){var y=!1,D=_.DF("img",function(F){_.tI(function(){y=!0;F.onload=null})});
_.wZ(function(){var F,R=(F=I.data)==null?void 0:F.call(I),O,w=(O=I.getSrc)==null?void 0:O.call(I).cb,v;F=(v=I.config)==null?void 0:v.call(I);if(v=D.value)if(O=function(K,r){if(!y)return w?w(K,r):K},Lm4(v,F),_.l("web_image_dont_reload_same_src")&&O84(v,R,O))_.l("web_image_dont_reload_same_src_simulate_load")&&v.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var P;RF4(v,R||null,O,F,(P=I.lazy)==null?void 0:P.call(I))}},"zS0jKb");
return _.t("img",{el:D})},"r");
lSM.idomCompat=!0;_.UE=_.d(function(I){var y=function(){var D,F=I.data(),R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq,$A,BH,jf;var yg={contentMode:(R=I.contentMode)==null?void 0:R.call(I),loadedClass:(O=I.loadedClass)==null?void 0:O.call(I),isPreloaded:(w=I.isPreloaded)==null?void 0:w.call(I),notifyOnLoaded:(v=I.notifyOnLoaded)==null?void 0:v.call(I),notifyOnUnloaded:(P=I.notifyOnUnloaded)==null?void 0:P.call(I),preferredThumbnail:(K=I.preferredThumbnail)==null?void 0:K.call(I),preserveHeight:(r=I.preserveHeight)==
null?void 0:r.call(I),preserveWidth:(N=I.preserveWidth)==null?void 0:N.call(I),objectPosition:(h=I.objectPosition)==null?void 0:h.call(I),targetWidth:(x=I.targetWidth)==null?void 0:x.call(I),targetHeight:(q=I.targetHeight)==null?void 0:q.call(I),shouldShowPlaceholder:(X=I.shouldShowPlaceholder)==null?void 0:X.call(I),useWidth:(f=I.useWidth)==null?void 0:f.call(I),isToggled:(m=I.isToggled)==null?void 0:m.call(I),alt:(z=I.alt)==null?void 0:z.call(I),className:(B=I.className)==null?void 0:B.call(I),
onerror:I.onerror,onload:I.onload,style$:((C=I.style$)==null?void 0:C.call(I))||((H=I.style)==null?void 0:H.call(I)),color:(e=I.color)==null?void 0:e.call(I),width:(T=I.width)==null?void 0:T.call(I),height:(L5=I.height)==null?void 0:L5.call(I),"aria-hidden$":(BH=(vH=I["aria-hidden$"])==null?void 0:vH.call(I))!=null?BH:(u_=I.ariaHidden)==null?void 0:u_.call(I),draggable:(jW=I.draggable)==null?void 0:jW.call(I),"data-disabled$":(jf=(xA=I["data-disabled$"])==null?void 0:xA.call(I))!=null?jf:(dq=I.dataDisabled)==
null?void 0:dq.call(I),size:($A=I.size)==null?void 0:$A.call(I)};return wl4(F,yg,(D=I.hideOn404)==null?void 0:D.call(I))};
return _.t(_.I8,null,_.t(_.Vj,{when:function(){var D;return((D=y())==null?void 0:D.type)==="image"}},function(){return _.t(lSM,{data:function(){return y().image},
getSrc:{cb:function(D,F){var R=y().image.sources,O=y().config.isPreloaded,w=y().config.useWidth,v=y().config.targetWidth,P=y().config.targetHeight,K=y().config.preferredThumbnail;return _.bOo(F,R,O,w,v,P,K)||""}},
config:function(){var D=y().config,F;for(F in D)D[F]===void 0&&delete D[F];return D},
lazy:I.renderLazy})}),_.t(_.Vj,{when:function(){var D;
return((D=y())==null?void 0:D.type)==="icon"}},function(){return _.t(_.mj,{icon:function(){return y().iconName},
role:function(){return y().config.role},
className:function(){return y().config.className},
style:function(){return y().config.style$+";width: "+(y().config.width+"px;height: ")+(y().config.height+"px;color: ")+(y().config.color+";")},
ariaLabel:function(){return y().config["aria-label$"]},
ariaHidden:function(){return y().config["aria-hidden$"]},
dataDisabled:function(){return y().config["data-disabled$"]},
active:function(){return y().config.isToggled},
size:function(){return y().config.size}})}))},"s");
_.UE.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var uCM=_.d(function(I){var y=function(R){var O,w,v=_.K4(function(x){O=R();w=PV(function(){for(var q=_.J(N()),X=q.next();!X.done;X=q.next()){X=P44(X.value);X=typeof X==="string"?document.createTextNode(X):X;if(!(X instanceof Node)){q=new _.g6("Part is not a node",X,typeof X);_.vu(q);break}x.appendChild(X)}})}),P=_.jE(I.config),K=function(){var x,q=R();
return!((x=P())==null||!x.ariaLabel)||!(q.commandRuns&&q.commandRuns.length!==0||q.paragraphStyleRuns&&q.paragraphStyleRuns.length!==0)},r=S8S(P,{isEqual:Uut}),N=function(){var x=R(),q=r(),X=[],f=x.content.length,m,z=(m=_.nR().resolve(_.fR(_.cS)))==null?void 0:m();
if(x.paragraphStyleRuns)for(var B=_.J(x.paragraphStyleRuns),C=B.next();!C.done;C=B.next()){var H=X.push,e=H.apply;var T=void 0,L5=C.value;if((T=L5.listGroup)!=null&&T.listItems){var vH=[];b:switch(L5.listGroup.listType){case "LIST_TYPE_BULLET":var u_="ul";break b;default:u_="span"}vH.push(L4({run:L5,textLength:f,tag:u_,config:{className:"yt-core-attributed-string__list-group"},startIndex:L5.startIndex,length:L5.length}));for(var jW=_.J(L5.listGroup.listItems),xA=jW.next();!xA.done;xA=jW.next()){var dq=
xA.value;b:switch(L5.listGroup.listType){case "LIST_TYPE_BULLET":var $A="li";break b;default:$A="span"}vH.push(L4({run:L5,textLength:f,tag:$A,startIndex:dq.startIndex,length:dq.length}))}var BH=vH}else BH=[];e.call(H,X,_.Td(BH))}if(x.styleRuns&&(q==null||!q.noStyleRuns))for(var jf=_.J(x.styleRuns),yg=jf.next();!yg.done;yg=jf.next()){var eW=yg.value,oe=eW,xP=z,XW=q,zo=GsW({extension:_.u(oe.styleRunExtensions,chM),isDarkTheme:xP===void 0?!1:xP,runColor:oe.fontColor}),Ub=void 0,rq=oe,ao=[];zo&&ao.push("yt-core-attributed-string--link-inherit-color");
rq.italic&&ao.push("yt-core-attributed-string--italicized");rq.underline&&rq.strikethrough?ao.push("yt-core-attributed-string--underline-strikethrough",Q$A(rq.underline)):rq.underline?ao.push("yt-core-attributed-string--underlined",Q$A(rq.underline)):rq.strikethrough&&ao.push("yt-core-attributed-string--strikethrough",Q$A(rq.strikethrough));if(rq.baselineOffset){a:switch(rq.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Ub="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Ub=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Ub="yt-core-attributed-string--baseline-offset-unknown"}ao.push(Ub)}var rc=ao.join(" ");var Ta=oe,f_=zo,mM={};if(Ta.weight||Ta.weightLabel)mM.fontWeight=XYt(Ta,XW==null?void 0:XW.isHeadline).toString();f_&&(mM.color=f_);X.push(L4({run:eW,textLength:f,tag:"span",config:{className:rc,style:mM},startIndex:eW.startIndex,length:eW.length}))}if(x.decorationRuns)for(var M_=_.J(x.decorationRuns),ZR=M_.next();!ZR.done;ZR=M_.next()){var rG=
ZR.value,$P={};if(rG.textDecorator){var HC=rG.textDecorator,vG=z===void 0?!1:z,jg=[],UO=_.u(HC,wV),HG=_.u(HC,v5z);if(UO){var cG=jg,vC=cG.concat,AV=[],AM=GsW({extension:_.u(UO.highlightTextDecoratorExtensions,akc),isDarkTheme:vG,runColor:UO.backgroundColor});AM&&AV.push("background-color: "+AM+";");UO.backgroundCornerRadius!==void 0&&AV.push("border-radius: "+UO.backgroundCornerRadius+"px;");UO.leftPadding!==void 0&&AV.push("padding-left: "+UO.leftPadding+"px;");UO.rightPadding!==void 0&&AV.push("padding-right: "+
UO.rightPadding+"px;");UO.topPadding!==void 0&&AV.push("padding-top: "+UO.topPadding+"px;");UO.bottomPadding!==void 0&&AV.push("padding-bottom: "+UO.bottomPadding+"px;");jg=vC.call(cG,AV)}else if(HG){var oT=jg,ZQ=oT.concat,Ox=vG?"#2ba640":"#107516",qa=HG.color?E5W(HG.color):Ox;jg=ZQ.call(oT,["padding: 2px;","border-top: solid "+qa+" 2px;","border-bottom: solid "+qa+" 2px;","background: linear-gradient(135deg, "+qa+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+qa+" 3px, rgba(0, 0, 0, 0) 3px);"])}var aB=
jg.join(" ");$P.style$=aB;var mE=rG.textDecorator,Eu=[],cd=_.u(mE,v5z);_.u(mE,wV)?Eu.push("yt-core-attributed-string--highlight-text-decorator"):cd&&Eu.push("yt-core-attributed-string--bracket-text-decorator");var G8=Eu.join(" ");$P.className=G8;$P.dir="auto"}var YA=_.u(rG.textDecorator,wV),cH=_.u(rG.textDecorator,v5z),Te=_.u(rG.textDecorator,wV),lu=_.u(rG.textDecorator,v5z);X.push(L4({run:rG,textLength:f,tag:"span",config:$P,startIndex:(YA==null?void 0:YA.startIndex)||(cH==null?void 0:cH.startIndex)||
0,length:(Te==null?void 0:Te.length)||(lu==null?void 0:lu.length)||0}))}if(x.commandRuns&&(q==null||!q.noEndpoints))for(var uR=_.J(x.commandRuns),QA=uR.next();!QA.done;QA=uR.next()){var Yy=QA.value,Ga=qpo(Yy,q);X.push(L4({run:Yy,textLength:f,tag:"a",config:Ga,startIndex:Yy.startIndex,length:Yy.length}))}if(x.attachmentRuns)for(var qz=_.J(x.attachmentRuns),iR=qz.next();!iR.done;iR=qz.next()){var JV=iR.value,Nz=void 0,z_=void 0,gM={className:"yt-core-attributed-string--inline-block-mod"};if((z_=JV.element)==
null?0:z_.properties){var $s=(Nz=JV.element)==null?void 0:Nz.properties,jT=[],DT=_.u($s,RTW);if(DT==null?0:DT.margin){var fZ=DT.margin;fZ.left&&jT.push("margin-left: "+gy(fZ.left)+";");fZ.right&&jT.push("margin-right: "+gy(fZ.right)+";");fZ.top&&jT.push("margin-top: "+gy(fZ.top)+";");fZ.bottom&&jT.push("margin-bottom: "+gy(fZ.bottom)+";")}var ye=jT.length!==0?jT.join(" "):void 0;gM.style$=ye}var xE=gM,CJ=void 0,Xg={alt:"",preserveHeight:!0,preserveWidth:!0},ib=["yt-core-attributed-string__image-element"];
if(JV.alignment){a:switch(JV.alignment){case "ALIGNMENT_BASELINE":var nZ="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":nZ="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:nZ="yt-core-attributed-string__image-element--image-alignment-bottom"}ib.push(nZ)}if((CJ=JV.element)==null?0:CJ.properties){var Ek=[],lV=_.u(JV.element.properties,RTW);(lV==null?0:lV.height)&&Ek.push("height: "+gy(lV.height)+
";");(lV==null?0:lV.width)&&Ek.push("width: "+gy(lV.width)+";");var B_=Ek.length!==0?Ek.join(" "):void 0;Xg.style$=B_;var i9=void 0;var Bf=((i9=_.u(JV.element.properties,FT_))==null?void 0:i9.label)||"";Xg.alt=Bf}Xg.className=ib.join(" ");var cn=Xg,AP=void 0;var $R=void 0,V9=void 0;var bb=((V9=JV.element)==null?0:V9.type)?($R=_.u(JV.element.type,OO_))==null?void 0:$R.image:void 0;X.push(L4({run:JV,textLength:f,tag:"img",image:bb,imageConfig:cn,imageWrapperConfig:xE,startIndex:JV.startIndex,length:(AP=
JV.length)!=null?AP:0}))}if(q==null?0:q.headerRuns)for(var CM=_.J(q.headerRuns),Ie=CM.next();!Ie.done;Ie=CM.next()){var wG=Ie.value;if(wG.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(wG.headerMapping)){a:{switch(wG.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var XY="yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":XY=
"yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":XY="yt-core-attributed-string--heading-3";break a}XY=void 0}X.push(L4({run:wG,textLength:f,tag:"span",config:XY?{className:XY}:void 0,startIndex:wG.startIndex,length:wG.length}))}}var Rn=r();if(Rn==null?0:Rn.userInput)for(var fG=_.J(X),DZ=fG.next();!DZ.done;DZ=fG.next()){var y2=DZ.value;if(y2.tag!=="a"&&y2.tag!=="li"){var WW=void 0;(WW=y2).config||(WW.config={});y2.config.dir=y2.tag==="ul"?_.nR().resolve(_.JU):
"auto"}}if(R().content){var L2=R().content;dmt(X);for(var rs={data:null,start:0,end:L2.length,parts:[]},wu_=_.J(X),ji=wu_.next();!ji.done;ji=wu_.next()){var ov=ji.value;zTB(rs,ov.startIndex,ov.endIndex,ov)}ksS(L2,rs);var vn4=rs.parts}else vn4=[];return vn4},h=!0;
_.wZ(function(){R();r();if(h&&(h=!1,t6o(R(),O)))return;var x=N();Promise.resolve().then(function(){var q=v.value;if(q){q.innerText="";var X;(X=w)==null||X();w=_.R8(q,function(){return _.t(KmC,{parts:x})},"t")}})},"Dfzccf");
return _.t("span",{el:v,class:function(){var x;if(x=R()){x=R();var q=P(),X=[];X.push("yt-core-attributed-string");(q==null?0:q.className)&&X.push(q==null?void 0:q.className);(q==null?0:q.ellipsisTruncate)?X.push("yt-core-attributed-string--ellipsis-truncate"):(q==null?0:q.noWrap)?X.push("yt-core-attributed-string--white-space-no-wrap"):(q==null?0:q.noPreWrap)||X.push("yt-core-attributed-string--white-space-pre-wrap");(q==null?0:q.linkInheritColor)&&X.push("yt-core-attributed-string--link-inherit-color");
x.alignment&&X.push(Ypq(x.alignment));x.lineBreakMode&&X.push("yt-core-attributed-string--word-wrapping");x=X.join(" ")}return x},
dir:function(){var x;return((x=P())==null?0:x.userInput)?"auto":void 0},
"aria-label":function(){var x;return K()?(x=P())==null?void 0:x.ariaLabel:void 0},
role:function(){return K()?"text":void 0}})},D=S8S(function(){var R,O=(R=I.text)==null?void 0:R.call(I);
if(O)return R=_.Sp(O)?O:_.Vd(O),(R==null?0:R.content)?R:void 0},{isEqual:t6o}),F;
return((F=I.config)==null?0:F.contentAsserted)?y(D):_.t(_.U,{cond:D,then:y})},"v");
uCM.idomCompat=!0;_.jr=_.d(function(I){var y=_.jE(I.text),D=r7t(I);I.contentAsserted!==void 0&&(D.contentAsserted=!0);return _.t(uCM,{text:y,config:D})},"w");
_.jr.idomCompat=!0;var jGH=function(I,y,D){y=y===void 0?"unknown":y;D=D===void 0?{}:D;_.g6.call(this,I+" ("+y+")",Object.assign({},{name:"YtWcwError",tagName:y},D));Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(jGH,_.g6);_.ou=new WeakMap;_.jp=!1;var lEe,u$q,xuS;_.om=Symbol("ih");_.rV=Symbol("jh");lEe=Symbol("kh");u$q=new Set(Object.getOwnPropertyNames(Element.prototype));xuS=Symbol("lh");var qpe=_.d(function(I){return _.t("yt-attributed-string",{"aria-label":I.ariaLabel,hidden:I.hidden,id:I.id,class:I.className,"force-default-style":I.forceDefaultStyle},_.t(_.jr,{text:I.data,ariaLabel:I.ariaLabel,ellipsisTruncate:I.ellipsisTruncate,isOverlay:I.isOverlay,linkInheritColor:I.linkInheritColor,noPreWrap:I.noPreWrap,noWrap:I.noWrap,userInput:I.userInput,noEndpoints:I.noEndpoints,headerRuns:I.headerRuns,isHeadline:I.isHeadline}))},"x");
_.l("web_wiz_attributed_string")&&_.NK(qpe,"yt-attributed-string",{props:{ariaHidden:_.om,ariaLabel:_.om,className:_.om,ellipsisTruncate:_.om,isOverlay:_.om,linkInheritColor:_.om,noEndpoints:_.om,noStyleRuns:_.om,noLinkColor:_.om,noPreWrap:_.om,noWrap:_.om,skipOnClick:_.om,userInput:_.om,headerRuns:_.om,isHeadline:_.om,id:_.om,data:_.om,hidden:_.om,forceDefaultStyle:_.om,text:_.rV,disableUpgrade:_.rV,disable:_.rV,slot:_.rV}});var Ny=function(){return _.k.apply(this,arguments)||this};
_.E(Ny,_.k);Ny.prototype.renderIdom=function(){if(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};var I=this.data,y=this.config;I&&(I=_.Sp(I)?I:_.Vd(I),I!=null&&I.content&&(y=y||{},y.contentAsserted=!0,g5t(uCM)({text:I,config:y})))}};
_.W([_.Q(pTW),_.A("design:type",Object)],Ny.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ny.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ny.prototype,"ariaLabel",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"disable",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"ellipsisTruncate",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"isOverlay",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"linkInheritColor",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"noPreWrap",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"noWrap",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"userInput",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ny.prototype,"noEndpoints",void 0);_.W([_.M(),_.A("design:type",Array)],Ny.prototype,"headerRuns",void 0);
_.W([_.I6({is:"yt-attributed-string",disableElementRegistration:!0})],Ny);
_.l("web_wiz_attributed_string")||_.a(Ny,"yt-attributed-string",function(){if(Dme===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
I.content.insertBefore(yXn().content.cloneNode(!0),I.content.firstChild);Dme=I}I=Dme;return I},{mode:2});var E5f,Gsf,fEJ;E5f=function(){this.firstThumbnailLoaded=!1};
_.XYW=function(){Gsf||(Gsf=new E5f);return Gsf};
fEJ=function(I){var y=_.XYW();y.firstThumbnailLoaded||(y.firstThumbnailLoaded=!0,_.V_("ftl",I))};
E5f.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Evo=0,Y8A=new WeakMap,Xlq=0,lO=new Set;var Q$P,YpO=function(){return Q$P!==void 0?Q$P:Q$P=document.createElement("template")};
document.head.appendChild(YpO().content);var fSR;var M6W,kfq,h2;_.EE=_.Ft.caches;h2=function(){};
h2.prototype.open=function(I){return _.EE.open(n5g(I))};
h2.prototype.has=function(I){return _.EE.has(n5g(I))};
h2.prototype.delete=function(I){return _.EE.delete(n5g(I))};
h2.prototype.match=function(I,y){var D=this,F,R,O,w,v,P;return _.S(function(K){switch(K.nextAddress){case 1:return K.yield(D.keys(),2);case 2:F=K.yieldResult,R=_.J(F),O=R.next();case 3:if(O.done){K.jumpTo(5);break}w=O.value;return K.yield(D.open(w),6);case 6:return v=K.yieldResult,K.yield(v.match(I,y),7);case 7:if(P=K.yieldResult)return K.return(P);O=R.next();K.jumpTo(3);break;case 5:return K.return()}})};
var du_=function(){};
_.E(du_,h2);var n5g=function(I){if(I.includes(":"))throw Error("oh`"+I);return I+":"+_.VV("CacheStorage get")};
du_.prototype.keys=function(){var I,y,D,F,R,O,w,v,P;return _.S(function(K){if(K.nextAddress==1)return I=[],y=_.VV("CacheStorage keys"),K.yield(_.EE.keys(),2);D=K.yieldResult;F=_.J(D);for(R=F.next();!R.done;R=F.next())O=R.value,w=_.muo(O),v=w.originalName,P=w.datasyncId,P===y&&I.push(v);return K.return(I)})};var xp=function(){var I=_.k.apply(this,arguments)||this;I.objectURL=null;I.loadTime=Infinity;return I};
_.E(xp,_.k);_.L=xp.prototype;
_.L.renderIdom=function(){plS(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var I=this.config,y=this.shouldRenderLazy;g5t(_.UE)({contentMode:I.contentMode,loadedClass:I.loadedClass,isPreloaded:I.isPreloaded,notifyOnLoaded:I.notifyOnLoaded,notifyOnUnloaded:I.notifyOnUnloaded,preferredThumbnail:I.preferredThumbnail,preserveHeight:I.preserveHeight,preserveWidth:I.preserveWidth,objectPosition:I.objectPosition,targetWidth:I.targetWidth,
targetHeight:I.targetHeight,shouldShowPlaceholder:I.shouldShowPlaceholder,useWidth:I.useWidth,isToggled:I.isToggled,alt:I.alt,className:I.className,onerror:I.onerror,onload:I.onload,style$:I.style$,color:I.color,width:I.width,height:I.height,"aria-hidden$":I["aria-hidden$"],draggable:I.draggable,"data-disabled$":I["data-disabled$"],data:this.data,callback:void 0,renderLazy:y===void 0?!0:y,hideOn404:!1})}}};
_.L.objectFitToContentMode=function(I){switch(I){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.L.logThumbnailFailureVe=function(){var I=_.QM(197497);_.aj(_.W4(),I);var y=_.VO();y&&I&&y&&_.wH(y,[I])};
_.L.loadImageFromCacheIfExists=function(I){var y=this,D=I.target;(D==null?0:D.src)&&c7q(D.src).then(function(F){y.objectURL=_.Z0(F).toString();y.setSrc(D,y.objectURL)}).catch(function(){})};
_.L.onError=function(I){var y=this;if(_.l("web_use_cache_for_image_fallback")){var D=I.target;D&&c7q(D.src).then(function(F){y.objectURL=_.Z0(F).toString();y.setSrc(D,y.objectURL)}).catch(function(){_.l("kevlar_woffle_log_thumbnail_failure_ve")&&y.logThumbnailFailureVe();
_.l("kevlar_woffle_fallback_image")&&y.setSrc(D,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.L.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.L.setConfig=function(){var I=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(y){I.loadImageFromCacheIfExists(y);I.revokeObjectURL();nvA(I.hostElement)},
onerror:function(y){I.onError(y)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.l("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.L.setSrc=function(I,y){y&&(I.src=y)};
_.W([_.Q(pTW),_.A("design:type",Object)],xp.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],xp.prototype,"alt",void 0);_.W([_.M(),_.A("design:type",Boolean)],xp.prototype,"ftlEligible",void 0);_.W([_.M(),_.A("design:type",Number)],xp.prototype,"height",void 0);_.W([_.M(),_.A("design:type",Boolean)],xp.prototype,"notifyOnLoaded",void 0);
_.W([_.M(),_.A("design:type",Boolean)],xp.prototype,"notifyOnUnloaded",void 0);_.W([_.M(),_.A("design:type",String)],xp.prototype,"objectFit",void 0);_.W([_.M(),_.A("design:type",String)],xp.prototype,"objectPosition",void 0);_.W([_.M(),_.A("design:type",String)],xp.prototype,"preferredThumbnail",void 0);_.W([_.M(),_.A("design:type",Boolean)],xp.prototype,"preserveHeight",void 0);_.W([_.M(),_.A("design:type",Boolean)],xp.prototype,"preserveWidth",void 0);
_.W([_.M({value:!0}),_.A("design:type",Boolean)],xp.prototype,"useWidth",void 0);_.W([_.M({value:function(){return!_.KR("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.A("design:type",Boolean)],xp.prototype,"shouldRenderLazy",void 0);_.W([_.M(),_.A("design:type",Number)],xp.prototype,"width",void 0);_.W([_.I6({is:"yt-image",disableElementRegistration:!0})],xp);
_.a(xp,"yt-image",function(){if(fSR===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(YpO().content.cloneNode(!0),I.content.firstChild);
fSR=I}I=fSR;return I},{mode:2});var lC=function(){return _.k.apply(this,arguments)||this};
_.E(lC,_.k);lC.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var I=_.yz(this.data.onVisibleCommand);I&&this.ytComponentBehavior.resolveCommand(I)}};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],lC.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],lC.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lC.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],lC);
_.a(lC,"yt-bumper-user-edu-content-view-model",function(){if(Yrc===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Qyf===void 0&&(Qyf=document.createElement("template"));var F=Qyf;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Yrc=I}I=Yrc;return I},{mode:0});var pYG;var mmf,MBO=function(){if(mmf!==void 0)return mmf;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;pYG===void 0&&(pYG=document.createElement("template"));var F=pYG;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return mmf=I};var zTg;_.uC={};zTg=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"]);_.uC.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var I=this.getContext_();return I?I.getTaskManager():_.w2},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var I=_.lj(this.hostElement,"yt-get-context-provider",{});I.detail&&I.detail.contextProvider?this.cachedProviderNode_=I.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return zTg.has(this.hostElement.localName)},
getNetworkManager:function(){var I=this.getContext_();if(I)return I.getNetworkManager()}};var $ut,ksz,aSn,dmW;_.qy=function(I){var y=ksz.get(I);if(y&&(y=y.pop()))return dmW++,y;aSn++;try{var D=document.createElement(I)}catch(F){throw new _.g6("ElementPool failed to create element",I,F.message);}return D};
$ut=function(I){var y=I.is;if(y){var D=ksz.get(y);D||(D=[],ksz.set(y,D));var F=_.Pi("ELEMENT_POOL_CONFIG")||{};D.length>=(F[y]!==void 0?F[y]:_.Pi("ELEMENT_POOL_DEFAULT_CAP",0))||D.push(I)}else _.tq(new _.g6("Element pool should only handle custom elements:",I.nodeName))};
ksz=new Map;aSn=0;dmW=0;var GJ=new WeakMap,A7_=new WeakMap;var WTW;_.EY=function(I,y,D){D=D===void 0?_.Tr():D;this.JSC$14171_defaultPriority=I;this.signal=y;this.scheduler=D;this.nextJobDescriptor=0;this.JSC$14171_parkedJobs=[];this.scheduledJobs=new Map};
_.G1=function(I,y){if(y){var D=_.oJ();I.signal&&!_.NF(D,I.signal)?(D.addListener(I.signal,function(){I.processSignal()}),I.JSC$14171_parkedJobs.push({job:y,
priority:void 0})):cXe(I,y)}};
WTW=function(I,y){if(y!==I.JSC$14171_defaultPriority){I.JSC$14171_defaultPriority=y;for(var D=_.J(I.scheduledJobs.values()),F=D.next();!F.done;F=D.next())F=F.value,I.scheduler.cancelJob(F.jobId),F.jobId=I.scheduler.addJob(F.jobWrapper,y)}};
_.EY.prototype.flushJobs=function(){WTW(this,10);this.processSignal()};
_.EY.prototype.cancel=function(){for(var I=_.J(this.scheduledJobs),y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;this.scheduler.cancelJob(D.jobId);this.scheduledJobs.delete(y)}this.JSC$14171_parkedJobs=[]};
_.EY.prototype.processSignal=function(){for(var I=_.J(this.JSC$14171_parkedJobs),y=I.next();!y.done;y=I.next())y=y.value,cXe(this,y.job,y.priority);this.JSC$14171_parkedJobs=[]};
var cXe=function(I,y,D){D=D||I.JSC$14171_defaultPriority;if(D===10)uO(y);else{var F=I.nextJobDescriptor++,R=function(){y();I.scheduledJobs.delete(F)},O=I.scheduler.addJob(R,D);
I.scheduledJobs.set(F,{jobWrapper:R,jobId:O,priority:D})}};var Cef;_.XN={};Cef={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.XN.YtRendererstamperBehavior=[_.uC.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 I in this.stampDom){var y=this.stampDom[I];y&&y.id&&this.addReactiveSchema({type:"observe",method:{methodName:C4q(y.id),args:[{type:"wildcard",path:I}]}})}else{(I=(this.constructor.generatedFrom||this).observers)||(I=[]);for(y in this.stampDom){var D=this.stampDom[y];D&&D.id&&I.push(C4q(D.id)+"("+y+".*)")}this.constructor.generatedFrom.observers=I}},
addStampDomObserverFns_:function(){for(var I in this.stampDom){var y=this.stampDom[I];y.id?(this[C4q(y.id)]=this.rendererStamperObserver_.bind(this,I,y.id),this.hasDataPath_[I]=!1):(y=new _.g6("Bad rendererstamper config",this.is+":"+I),_.vu(y))}},
rendererStamperObserver_:function(I,y,D){if(D.path==I){if(D.value===void 0&&!this.hasDataPath_[I])return;this.hasDataPath_[I]=D.value!==void 0}this.rendererStamperApplyChangeRecord_(I,y,D)},
rendererStamperApplyChangeRecord_:function(I,y,D){var F=this.renderJobsMap_[y],R=null;I==D.path?(D=D.value,_.i_(D)||(D=D===void 0||D===null?[]:[D]),I=this.stampDom[I],I.mapping&&(R=this.stampDomArray_.bind(this,D,y,I.mapping,I.reuseComponents,I.events,I.stamperStableList)),F&&F.cancel(),D=I.usePageScheduler?this.getTaskManager():void 0,F||I.initialRenderPriority==void 0)?I.renderPriority==void 0||F||(F=new _.EY(I.renderPriority,I.waitForSignal,D),this.renderJobsMap_[y]=F):(F=new _.EY(I.initialRenderPriority,
I.waitForSignal,D),this.renderJobsMap_[y]=F,R=function(O,w){O();WTW(w,10)}.bind(this,R,F)):R=I+".splices"==D.path?this.stampDomArraySplices_.bind(this,I,y,D.value):this.forwardRendererStamperChanges_.bind(this,I,y,D);
F?_.G1(F,R):R()},
forwardRendererStamperChanges_:function(I,y,D){var F=D.path.slice(I.length+1),R=this.getStampContainer_(y),O=F.indexOf("."),w=F.substring(0,O),v=!1,P=0,K=parseInt(w,0);if(w[0]=="#"){v=parseInt(w.substring(1),0);K=this.get(I);var r=this.get([I,w]);K[v]==r?P=v:P=K.indexOf(r);v=!0}else isNaN(K)||(P=K,v=!0);v&&(F=F.substring(w.length+1),O=F.indexOf("."));w=this.polymerDom(R).children[P];var N;if(R=(N=w==null?void 0:w.polymerController)!=null?N:w)F="data"+F.slice(O),typeof R.notifyPath!=="function"?_.tq(new _.g6("notifyPath missing",
this.is+": "+I+", "+y)):D.value?R.notifyPath(F,D.value):R.notifyPath(F)},
stampDomArraySplices_:function(I,y,D){if(D&&D.indexSplices){var F=this.getStampContainer_(y);if(F){for(var R=this.polymerDom(F),O=i8W(this.stampDom[I].reuseComponents),w=D.indexSplices.length,v=0;v<w;v++){for(var P=D.indexSplices[v],K=R.children[P.index],r=P.removed.length;r>0;r--)K&&K.parentElement&&(this.polymerDom(K.parentElement).removeChild(K),O&&$ut(K),K=R.children[P.index]);r=this.stampDom[I].mapping;for(var N=P.index+P.addedCount,h=document.createDocumentFragment(),x=O,q=P.index;q<N;q++){var X=
P.object[q],f=WmJ(r,X);if(f){var m=r[f];X=X[f];f=this.getComponentName_(m,X);var z=K?GJ.has(K):!1;x&&K&&K.is==f&&z?(f=K,this.telemetry_.reuse++,K=K.nextElementSibling):x&&K&&z?(f=this.createComponent_(m,X,O),z=this.polymerDom(K).nextElementSibling,R.insertBefore(f,z),H8q(this.is,R,K,O),K=z):(x=!1,f=this.createComponent_(m,X,O),h.appendChild(f));this.deferRenderStamperBinding_(f,m,X)}else m=new _.g6("Unimplemented type",I,y,F.tagName,Object.keys(X)[0]),_.vu(m)}R.insertBefore(h,K)}this.flushRenderStamperComponentBindings_();
this.stampDom[I].events&&_.lj(this.hostElement,"yt-rendererstamper-finished",{container:F})}else I=new _.g6("Container object not found",y,this.hostElement?this.hostElement.is:""),_.vu(I)}},
stampDomArray_:function(I,y,D,F,R,O){var w=this.getStampContainer_(y);if(w)if(y=this.polymerDom(w),F=i8W(F),I){var v=0,P=0,K;if(O=O===void 0?_.KR("STAMPER_STABLE_LIST",!1):O||!1)for(K=y.firstElementChild;K&&!GJ.has(K)&&I.length>P;){O=I[P];var r=WmJ(D,O);if(r){if(this.getComponentName_(D[r],O[r])!=K.is){var N=this.createComponent_(D[r],O[r],F),h=this.polymerDom(K).nextElementSibling;h?y.insertBefore(N,h):y.appendChild(N);H8q(this.is,y,K,F);K=N}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(K,
D[r],O[r]);v++;P++;K=this.polymerDom(K).nextElementSibling}else P++}eFW(this.is,y,v,F);v=K;if(I.length>P){O=document.createDocumentFragment();for(r=I.length;P<r;P++)if(N=I[P],h=WmJ(D,N))K=this.createComponent_(D[h],N[h],F),this.deferRenderStamperBinding_(K,D[h],N[h]),O.appendChild(K);v&&this.polymerDom(v).parentNode&&K&&!GJ.has(K)?y.insertBefore(O,v):y.appendChild(O)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();R&&_.lj(this.hostElement,"yt-rendererstamper-finished",
{container:w})}else eFW(this.is,y,0,F);else I=new _.g6("Container object not found",y,this.hostElement?this.hostElement.is:""),_.vu(I)},
polymerDom:function(I){return this.minimizePipBreakages?I:_.Bx(I)},
getStampContainer_:function(I){return this.$&&this.$[I]||_.XB(this.hostElement).querySelector("#"+I)},
getComponentName_:function(I,y){return typeof I==="string"?I:I.matcher?I.matcher.call(this,y):I.component},
createComponent_:function(I,y,D){I=this.getComponentName_(I,y);try{var F=eI5.has(I);if(D&&!F){var R=_.qy(I);try{_.pg(R)}catch(O){D="Failed to clear styles for "+I+".",O.message&&(D+=" Original error: "+O.message),_.tq(new _.g6(D))}}else R=document.createElement(I)}catch(O){return R="YtRendererStamperBehavior failed to create "+I+".",O.message&&(R+=" Original description: "+O.message),O.message="YtRendererStamperBehavior failed to create element",_.Pu(O,R),Cef.hasOwnProperty(I)?_.tq(O):_.vu(O),document.createElement("SPAN")}this.telemetry_.create++;
return R},
deferRenderStamperBinding_:function(I,y,D){this.deferredBindingTasks_.push({component:I,typeOrConfig:y,data:D})},
flushRenderStamperComponentBindings_:function(){for(var I=0,y=this.deferredBindingTasks_.length;I<y;I++){var D=this.deferredBindingTasks_[I];if(!D)break;var F=void 0,R=void 0,O=void 0,w=void 0,v=D.component,P=D.typeOrConfig;D=D.data;var K=(w=v.polymerController)!=null?w:v;w=v.loggingStatus;try{w&&(w.isRendererStamper=!0);if(typeof P!=="string"){for(O in P.attributes)P.attributes[O]===!0?v.setAttribute(O,""):P.attributes[O]===!1?v.removeAttribute(O):v.setAttribute(O,P.attributes[O]);for(R in P.params)K[R]=
P.params[R],v!==K&&$e(v.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(F in P.properties){var r=P.properties[F];if(r){var N=Brt(r);K[F]=this.get(N);v!==K&&$e(v.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(F==="on-tap"||F==="on-click"){var h=this.get(N);v.addEventListener("click",h);A7_.set(v,{property:F,listener:{type:"element",eventName:"click",handler:h}})}}else{var x=new _.g6("Undefined property binding",F);_.vu(x)}}}if(P.classListBinding){var q=Brt(P.classListBinding),
X=q?this[q]:null;if(X)for(F=0;F<X.length;F++)_.Ye(v,X[F],!0)}K.data=D}finally{w&&(w.isRendererStamper=!1)}if(F=GJ.get(v))v.hidden=!1,GJ.delete(v),_.w2.cancelJob(F)}this.deferredBindingTasks_.length=0}}];_.NK(_.d(function(I){function y(){D().seconds&&O(Jlo({seconds:Number(D().seconds)-Date.now()/1E3}))}
var D=I.targetTimestamp;I=I.className;var F=_.J(_.$M("",void 0,"U1Q8Ae")),R=F.next().value,O=F.next().value;_.OJ(function(){y();var w=setInterval(function(){y()},1E3);
_.tI(function(){clearInterval(w)})});
return _.t("yt-countdown",{class:_.XH("ytCountDownHost",I)},_.t("div",null,R))},"z"),"yt-countdown",{props:{targetTimestamp:_.om,
className:_.rV}});_.Q3=new _.uk("KEY_MANAGER_TOKEN");var Dh_={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"};_.Yp=_.d(function(I){var y=_.DF("a",I.ref),D=I.aTagConfig?I.aTagConfig:_.su(function(){var F,R,O,w,v;var P=(v=_.yz((O=I.command)==null?void 0:O.call(I)))!=null?v:(w=I.command)==null?void 0:w.call(I);return _.FH({innertubeCommand:P,skipOnClick:(F=I.skipOnClick)==null?void 0:F.call(I),defaultTarget:(R=I.target)==null?void 0:R.call(I)})||{}},void 0,"TAvz0");
_.wZ(function(){_.l("mweb_get_endpoint_from_atag_command")||(y.value._data=D()._data,y.value.params=D().params)},"dcjvAe");
return _.t("a",{el:y,href:function(){return D().href$},
rel:function(){return D().rel$},
class:function(){var F,R;return(R=D().className)!=null?R:(F=I.className)==null?void 0:F.call(I)},
style:function(){var F;if((F=I.style)==null?0:F.call(I))return I.style();var R;return((R=I.disabled)==null?0:R.call(I))?"pointer-events:none":""},
"aria-haspopup":function(){return!!D()["aria-haspopup$"]},
"force-new-state":f4(function(){return D()["force-new-state$"]}),
title:f4(function(){var F,R;return(R=D().title$)!=null?R:(F=I.title)==null?void 0:F.call(I)}),
role:f4(function(){var F;return((F=I.role)==null?void 0:F.call(I))||D().role$}),
target:f4(function(){return D().target$}),
dir:f4(function(){var F;return((F=I.dir)==null?void 0:F.call(I))||D().dir}),
tabindex:function(){var F;return D().tabindex$?Number(D().tabindex$):(F=I.tabIndex)==null?void 0:F.call(I)},
"aria-hidden":function(){var F,R;return(R=D()["aria-hidden$"])!=null?R:(F=I.ariaHidden)==null?void 0:F.call(I)},
"aria-label":function(){var F,R;return(R=D()["aria-label$"])!=null?R:(F=I.ariaLabel)==null?void 0:F.call(I)},
"aria-current":I.ariaCurrent,"aria-disabled":I.disabled,"aria-labelledby":I.ariaLabelledby,"aria-describedby":I.ariaDescribedby,"aria-selected":I.ariaSelected,"tab-identifier":I.tabIdentifier,"on:pointerdown":_.YY(function(F){var R,O;return void((O=(R=D()).onpointerdown)==null?void 0:O.call(R,F))}),
"on:click":_.YY(function(F){var R,O;(O=(R=D()).onclick)==null||O.call(R,F);var w;(w=I.onClick)==null||w.call(I,F)}),
"on:focusin":_.YY(function(F){var R;(R=I.onFocusin)==null||R.call(I,F)}),
"on:focusout":_.YY(function(F){var R;(R=I.onFocusout)==null||R.call(I,F)})},I.children)},"B");var STq={duration:1E3,easing:"ease",fill:"forwards"};vq5.componentType=gR;var KY_={duration:1E3,easing:"ease",fill:"forwards"},AXu=_.d(function(I){var y=_.DF("animated-rolling-character"),D=void 0,F=function(){var v,P;return KE((v=I.character)==null?void 0:v.call(I))||KE((P=I.previousCharacter)==null?void 0:P.call(I))},R=_.J(_.$M(0,void 0,"CYT8Ob")),O=R.next().value,w=R.next().value;
_.OJ(function(){if(window.ResizeObserver&&_.l("web_fix_rolling_numbers_zoom_safari")){var v=new _.n4(function(){var K,r,N=Math.round(((r=(K=y.value.querySelector("div"))==null?void 0:K.getBoundingClientRect().height)!=null?r:0)*100)/100;N&&w(N)},500),P=new ResizeObserver(function(){v.fire()});
P.observe(y.value);_.tI(function(){P.disconnect();v.dispose()})}});
_.wZ(function(){var v=_.l("web_fix_rolling_numbers_zoom_safari")?O:I.marginMultiplier;if(v()){var P;(P=D)==null||P.cancel();if(F()){var K;P=((K=I.previousCharacter)==null?0:K.call(I))?Number(I.previousCharacter())+10:I.rollUp()?0:30;var r;if((r=I.shouldAnimate)==null||!r.call(I)){var N,h;P-=PT_((N=I.character)==null?void 0:N.call(I),(h=I.previousCharacter)==null?void 0:h.call(I),I.rollUp(),P)}}else{P=I.rollUp()?0:2;var x;(x=I.shouldAnimate)!=null&&x.call(I)||(K=P,r=I.rollUp()?-1:1,P=K-r)}y.value.style.marginTop=
"-"+P*v()+"px";var q;if((q=I.shouldAnimate)==null?0:q.call(I)){var X,f;D=UhB(y.value,(X=I.character)==null?void 0:X.call(I),(f=I.previousCharacter)==null?void 0:f.call(I),I.rollUp(),P,F(),v())}else{var m;y.value.style.display=((m=I.character)==null?0:m.call(I))?"":"none"}}},"CA6Pmf");
return _.t("animated-rolling-character",{el:y,class:"animatedRollingCharacterHost"},_.t(_.U,{cond:F,then:function(){return _.t(Bd_,null)},
else:function(){return _.t(iOR,{character:I.character})}}))},"E");
AXu.idomCompat=!0;var rN_=_.l("web_enable_sink_animated_rolling_character_and_number")?AXu:vq5,$mR=_.l("web_enable_sink_animated_rolling_character_and_number")?AXu:t3o(vq5),Bd_=_.d(function(){for(var I=[],y=1;y<30;y++)I.push(_.t("div",null,y%10));return _.t(_.ni,null,_.t("div",null,"\u00a0"),I,_.t("div",null,"\u00a0"))},"F"),iOR=_.d(function(I){var y=I.character;
return _.t(_.ni,null,_.t("div",null,"\u00a0"),_.t(_.U,{cond:function(){return!(y==null?0:y())||_.wq(y==null?void 0:y())},
then:function(){return _.t("div",null,"\u00a0")},
else:function(){return _.t("div",null,y)}}),_.t("div",null,"\u00a0"))},"G");jwB.componentType=gR;var bOe=_.d(function(I){var y=void 0,D=void 0,F=function(){var O;return((O=I.fontSizeMultiplier)==null?0:O.call(I))?I.heightPx()*I.fontSizeMultiplier():I.heightPx()},R=_.su(function(){if(!I.numberText())return[];
var O,w,v=((O=I.forceRollUp)==null?void 0:O.call(I))||!D||!((w=I.numberValue)==null?0:w.call(I))||D<I.numberValue(),P,K=I.numberText();O=F();w=!((P=I.shouldAnimate)==null||!P.call(I));P=[];var r=0,N=0,h=(y?y.replace(/\D/g,"").length:0)-(K?K.replace(/\D/g,"").length:0),x=y?y.split(/(\d)/).filter(Boolean):[];for(K=K.split(/(\d)/).filter(Boolean);h<0;){var q=K[N];P.push({character:q,rollUp:v,marginMultiplier:O,shouldAnimate:w});N++;KE(q)&&h++}for(;r<h;)q=x[r],P.push({previousCharacter:q,rollUp:v,marginMultiplier:O,
shouldAnimate:w}),r++,KE(q)||h++;for(;N<K.length;)h=K[N],q=x[r],KE(h)===KE(q)?(N++,r++):KE(h)?(r++,h=void 0):KE(q)&&(N++,q=void 0),P.push({character:h,previousCharacter:q,rollUp:v,marginMultiplier:O,shouldAnimate:w});y=I.numberText();var X;D=(X=I.numberValue)==null?void 0:X.call(I);return P},void 0,"kWiBv");
return _.t("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return I.numberText()?["height: "+F()+"px;","line-height: "+I.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.t(_.gZ,{each:R,keyBy:"INDEX"},function(O){return _.t($mR,{character:function(){return O().character},
previousCharacter:function(){return O().previousCharacter},
marginMultiplier:function(){return O().marginMultiplier},
rollUp:function(){return O().rollUp},
shouldAnimate:function(){return O().shouldAnimate}})}))},"H");
bOe.idomCompat=!0;_.HOc=_.l("web_enable_sink_animated_rolling_character_and_number")?bOe:t3o(jwB);var eTW=function(I,y){this.fillAnimation=new Animation(xhe(I),document.timeline);this.strokeAnimation=new Animation(lD_(y),document.timeline)};
eTW.prototype.play=function(){var I,y;(y=(I=this.fillAnimation).play)==null||y.call(I);var D,F;(F=(D=this.strokeAnimation).play)==null||F.call(D)};
eTW.prototype.cancel=function(){var I,y;(y=(I=this.fillAnimation).cancel)==null||y.call(I);var D,F;(F=(D=this.strokeAnimation).cancel)==null||F.call(D)};_.fM=_.d(function(I){var y=I.model;var D=I.pointerDownEvent;var F=I.pointerUpEvent;var R=I.pointerLeaveEvent;var O=I.hovered;I=_.DF("yt-touch-feedback-shape");var w=_.DF("div"),v=_.DF("div"),P=_.J(_.N4(function(){return(F==null?0:F())||(R==null?0:R())?!1:!(D==null||!D())||!1})),K=P.next().value,r=P.next().value,N=void 0,h=function(){!N&&v.value&&w.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(N=new eTW(v.value,w.value));
var z;(z=N)==null||z.play()},x=function(){var z;
(z=N)==null||z.cancel()},q=function(){var z;
(z=N)==null||z.cancel()};
_.wZ(function(){(F==null?0:F())&&h()},"bg756c");
_.wZ(function(){(D==null?0:D())&&x()},"QAes8c");
_.wZ(function(){(R==null?0:R())&&q()},"YaFbrc");
P=_.YY(function(){h();r(!1)});
var X=_.YY(function(){x();r(!0)}),f=_.YY(function(){q();
r(!1)});
_.tI(function(){if(N){var z;(z=N)==null||z.cancel();N=void 0}});
var m={};K=_.XH("yt-spec-touch-feedback-shape",function(){return uz_(y().color)},function(){return qTJ(y().thumbnailSize,!!y().isExtended)},(m["yt-spec-touch-feedback-shape--focused"]=function(){return!!y().focused&&!y().disabled},m["yt-spec-touch-feedback-shape--circular"]=function(){return!!y().circular},m["yt-spec-touch-feedback-shape--down"]=K,m["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!y().triggerEvents},m["yt-spec-touch-feedback-shape--hovered"]=function(){return O==
null?void 0:O()},m));
return _.t("yt-touch-feedback-shape",{el:I,class:K,style:_.p4({"margin-top":function(){return y().customTopExtend?"-"+y().customTopExtend+"px":void 0}}),
"on:mousedown":X,"on:mouseup":P,"on:pointerleave":f,"on:touchstart":X,"on:touchend":P,"aria-hidden":!0},_.t(_.U,{cond:function(){return!!y().hoverEffect},
then:function(){return _.t("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.p4({"border-radius":function(){return y().borderRadius},
background:function(){var z;if(z=y().hoverEffect){for(var B=[],C=_.J((z==null?void 0:z.lightingTechniques)||[]),H=C.next();!H.done;H=C.next())switch(H.value){case 2:var e=H=void 0,T=void 0,L5=void 0;B.push("linear-gradient(180deg, "+((H=z)==null?void 0:(e=H.palette)==null?void 0:e.keyLight)+", "+((T=z)==null?void 0:(L5=T.palette)==null?void 0:L5.background)+")")}var vH,u_;B.push((vH=y().hoverEffect)==null?void 0:(u_=vH.palette)==null?void 0:u_.background);z=B.join(", ")}else z=void 0;return z}})})}}),
_.t("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.p4({"border-radius":function(){return y().borderRadius},
"border-color":function(){var z,B;return(z=y().touchEffect)==null?void 0:(B=z.palette)==null?void 0:B.background}}),
el:w}),_.t("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.p4({"border-radius":function(){return y().borderRadius},
"background-color":function(){var z,B;return(z=y().touchEffect)==null?void 0:(B=z.palette)==null?void 0:B.background}}),
el:v}))},"L");
_.fM.idomCompat=!0;var Tdg={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 nM=_.oo();nM=nM.toLowerCase();if(_.SW(nM,"android")){var s$P=nM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);s$P&&parseFloat(s$P[1])<100||nM.match("("+Object.keys(Tdg).join("|")+")")};var VBg=_.d(function(I){return _.t(_.U,{cond:I.aTagConfig,then:function(y){return _.t(_.Yp,{aTagConfig:y,disabled:I.disabled,className:I.className,style:I.style,title:I.title,ariaLabel:I.ariaLabel,ariaCurrent:function(){var D,F;return((D=I.toggleable)==null?void 0:D.call(I))&&((F=I.toggled)==null?void 0:F.call(I))},
ref:I.ref},I.children)},
else:function(){return _.t("button",{el:_.K4(I.ref),"on:click":_.YY(function(y){var D;return(D=I.onClick)==null?void 0:D.call(I,y)}),
class:I.className,title:I.title,style:I.style,disabled:I.disabled,"aria-pressed":function(){var y,D;return((y=I.toggleable)==null?0:y.call(I))?!((D=I.toggled)==null||!D.call(I)):void 0},
"aria-label":I.ariaLabel,"aria-disabled":I.visiblyDisabled,"aria-hidden":I.ariaHidden,tabindex:I.tabIndex},I.children)}})},"M"),g5W=_.d(function(I){var y=I.data;
var D=I.hasIconLeading;var F=I.hasIconLeadingTrailing;var R=I.hasIconTrailing;var O=I.iconButton;var w=I.iconClassName;var v=I.secondaryIconClassName;var P=I.icon;var K=I.secondaryIcon;var r=I.textContentClassName;return _.t(pM,{className:"",style:"display: inherit; justify-content: center"},_.t(_.U,{debugInstance:"V4z1Uc",cond:function(){return P&&(D()||F()||(O==null?void 0:O()))},
then:function(){return _.t(pM,null,_.t("div",{class:w,"aria-hidden":"true"},P==null?void 0:P()))}}),_.t(_.U,{debugInstance:"ok3btb",
cond:function(){return(y().buttonText||y().animatedTextProps||y().formattedButtonText)&&!(O==null?0:O())},
then:function(){return _.t(pM,null,_.t(ZOR,{className:r,iconPosition:function(){return y().iconPosition},
text:function(){return y().buttonText},
oneOffCustomTextWrap:function(){return y().oneOffCustomTextWrap},
formattedButtonText:function(){return y().formattedButtonText},
animatedTextProps:function(){return y().animatedTextProps}}))}}),_.t(_.U,{debugInstance:"DO5Rz",
cond:R,then:function(){return _.t(pM,null,_.t("div",{class:w},P==null?void 0:P()))}}),_.t(_.U,{debugInstance:"bnojSc",
cond:F,then:function(){return _.t(pM,null,_.t("div",{class:v},K==null?void 0:K()))}}),_.t(_.U,{debugInstance:"HN3kad",
cond:function(){return!y().disabled&&!0},
then:function(){return _.t(_.fM,{model:function(){var N=y();return{color:N.style==="overlay-dark"?4:N.style==="overlay"?N.type==="filled"?4:3:N.type==="filled"||N.style==="call-to-action-inverse"||N.style==="mono-inverse"?2:1}}})}}))},"N"),ZOR=_.d(function(I){var y=function(){var D,F;
return((D=I.iconPosition)==null?void 0:D.call(I))==="icon-with-label"||((F=I.oneOffCustomTextWrap)==null?void 0:F.call(I))};
return _.t("div",{class:I.className,"aria-hidden":function(){var D,F,R;return((D=I.ariaHidden)==null?void 0:D.call(I))&&(!((F=I.animatedTextProps)==null||!F.call(I))||!((R=I.formattedButtonText)==null||!R.call(I)))}},_.t(_.I8,null,_.t(_.Vj,{when:function(){var D;
return(D=I.animatedTextProps)==null?void 0:D.call(I)}},function(){return _.t(_.HOc,{numberText:function(){return I.animatedTextProps().numberText},
numberValue:function(){return I.animatedTextProps().numberValue},
heightPx:function(){return I.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return I.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return I.animatedTextProps().shouldAnimate},
forceRollUp:function(){return I.animatedTextProps().forceRollUp}})}),_.t(_.Vj,{when:function(){var D;
return(D=I.formattedButtonText)==null?void 0:D.call(I)}},function(){return _.t(_.jr,{text:function(){return Object.assign({},I.formattedButtonText(),{lineBreakMode:y()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":I.formattedButtonText().lineBreakMode,
alignment:y()?"TEXT_ALIGNMENT_CENTER":I.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!y()}})}),_.t(_.Vj,{when:function(){var D,F;
return((D=I.iconPosition)==null?void 0:D.call(I))==="icon-with-label"&&((F=I.text)==null?void 0:F.call(I))}},function(){return _.t(_.jr,{text:function(){return{content:I.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.t(_.Z4,null,function(){return I.text})))},"O"),IEn=_.d(function(I){return _.t(_.U,{debugInstance:"kM7Sgc",
cond:I.hasLabel,then:function(){var y;return _.t("label",{class:I.className},I.children,(y=I.textContent)==null?void 0:y.call(I))},
else:function(){return I.children}})},"P"),pM=_.d(function(I){return I.children},"Q");var y7M=_.d(function(I){function y(){O(void 0);v(void 0);K(void 0)}
var D=_.K4(),F=_.J(_.$M(void 0,void 0,"Ug77pc")),R=F.next().value,O=F.next().value;F=_.J(_.$M(void 0,void 0,"XGf7Zb"));var w=F.next().value,v=F.next().value,P=_.J(_.$M(void 0,void 0,"w55oqd"));F=P.next().value;var K=P.next().value;P=_.J(_.$M(0,void 0,"rBgpzc"));var r=P.next().value,N=P.next().value;P=_.YY(function(){switch(r()){case 1:N(2);break;case 3:var x,q;(q=(x=D.value).hidePopover)==null||q.call(x);N(0);y()}});
_.wZ(function(){if(I.show()){var x;O((x=I.children)==null?void 0:x.call(I));var q;v((q=I.location)==null?void 0:q.call(I));var X;K((X=I.classNames)==null?void 0:X.call(I));switch(r()){case 0:var f,m;(m=(f=D.value).showPopover)==null||m.call(f);N(1);break;case 3:N(1);var z,B;(B=(z=D.value).hidePopover)==null||B.call(z);var C,H;(H=(C=D.value).showPopover)==null||H.call(C)}}else switch(r()){case 2:N(3);break;case 1:var e,T;(T=(e=D.value).hidePopover)==null||T.call(e);y();N(0)}},"Z8V4Qb");
_.LR(function(){});
var h={};return _.t("yt-popover",{popover:"manual",el:D,style:_.p4({left:function(){var x;return(x=w())==null?void 0:x.left},
top:function(){var x;return(x=w())==null?void 0:x.top},
bottom:function(){var x;return(x=w())==null?void 0:x.bottom},
right:function(){var x;return(x=w())==null?void 0:x.right}}),
class:_.XH("ytPopoverComponentHost",F,(h.ytPopoverComponentHostClosing=function(){return r()===3},h.ytPopoverComponentHostSeeThrough=function(){var x;
return((x=I.seeThrough)==null?void 0:x.call(I))===!0},h)),
"on:animationend":P},R)},"S");var DuW={left:"0px",right:"auto",top:"0px",bottom:"auto"},FmM=function(){var I=this;this.registerTooltipElement=function(D){var F;I.tooltipElement=(F=D.querySelector("yt-popover"))!=null?F:void 0};
var y=_.J(_.$M(void 0,void 0,"EIh5sc"));this.state=y.next().value;this.setState=y.next().value;y=_.J(_.$M(void 0,void 0,"PC1M0b"));this.schedulerJobID=y.next().value;this.setSchedulerJobID=y.next().value},mhq=function(I,y){var D=zJ,F=_.w2.addJob(function(){var R=RFn(D,I,y);
D.currentConfig=y;D.setState({text:y.text,location:_.l("web_tooltip_location_fix")?void 0:R,anchor:I,offset:y.offset,style:y.style})},4,y.delay);
D.setSchedulerJobID(F)},M3_=function(){var I=zJ,y=I.schedulerJobID();
y&&(_.w2.cancelJob(y),I.setSchedulerJobID(void 0));I.setState(void 0);I.currentConfig=void 0};
FmM.prototype.notify=function(I,y){var D;((D=this.state())==null?void 0:D.anchor)===I&&(D=RFn(this,I,y),this.currentConfig=y,this.setState({text:y.text,location:_.l("web_tooltip_location_fix")?void 0:D,anchor:I,offset:y.offset,style:y.style}))};
var RFn=function(I,y,D){var F=y.getBoundingClientRect();y=window.innerWidth;var R=window.innerHeight,O=D.location,w=D.offset;D=D.text;if(I=I.tooltipElement){var v=getComputedStyle(I);I=v.font;var P=MK(v.lineHeight),K=MK(v.paddingLeft),r=MK(v.paddingRight),N=MK(v.paddingTop);v=MK(v.paddingBottom);var h=document.createElement("canvas").getContext("2d");h.font=I;D={width:h.measureText(D).width+K+r,height:P+N+v}}else D=void 0;I=D;if(!I)return DuW;D=I.width;I=I.height;K=w+I;N=w+D;P=F.top>=K;K=R-F.bottom>=
K;r=F.left>=N;N=y-F.right>=N;v=O;switch(O){case "top":!P&&K&&(v="bottom");break;case "bottom":!K&&P&&(v="top");break;case "left":!r&&N&&(v="right");break;case "right":!N&&r&&(v="left")}switch(v){case "top":O=F.left+F.width/2-D/2;F=F.top-I-w;break;case "bottom":O=F.left+F.width/2-D/2;F=F.bottom+w;break;case "left":O=F.left-D-w;F=F.top+F.height/2-I/2;break;case "right":O=F.right+w;F=F.top+F.height/2-I/2;break;default:O=F.left+F.width/2-D/2,F=F.bottom+w}w=Object.assign({},DuW);O+D>y?(w.right="0px",w.left=
"auto"):(w.left=Math.round(Math.max(0,O)+window.scrollX)+"px",w.right="auto");F+I>R?(w.bottom="0px",w.top="auto"):(w.top=Math.round(Math.max(0,F)+window.scrollY)+"px",w.bottom="auto");return w};var zJ;zJ=new FmM;_.O8n=_.d(function(){var I=_.su(function(){var R;return(R=zJ.state())==null?void 0:R.anchor},void 0,"tiGUn"),y=_.su(function(){var R;
return(R=zJ.state())==null?void 0:R.text},void 0,"TA2GQe"),D=_.su(function(){var R;
return(R=zJ.state())==null?void 0:R.style},void 0,"ucvFsf"),F=_.l("web_tooltip_location_fix")?_.su(function(){var R=I();
var O=zJ.currentConfig;if(R&&O)return RFn(zJ,R,O)},void 0,"EpDz6"):_.su(function(){var R;
return(R=zJ.state())==null?void 0:R.location},void 0,"aRJtfd");
return _.t("yt-tooltip",{class:"ytTooltipContainerHost",el:_.K4(zJ.registerTooltipElement),"aria-hidden":"true"},_.t(y7M,{classNames:function(){switch(D()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:F,show:function(){return!!y()&&!!F()},
seeThrough:!0},y))},"T");var d5q=pe("stamper-context");_.me=_.d(function(I){var y=I.data;var D=I.icon;var F=I.iconName;var R=I.animateIcon;var O=I.secondaryIcon;var w=I.secondaryIconName;var v=I.focusedOverride;var P=I.clientOnlyWizTooltipsEnabled;kZB();var K=Eqt(y),r=K.size,N=K.style;I=K.disabled;var h=K.onTap,x=K.alignByText,q=K.aTagConfig,X=K.customColors,f=K.segmentedPosition,m=K.toggled,z=K.toggleable,B=K.accessibilityLabel,C=K.onToggle,H=K.iconPosition,e=K.oneOffCustomTextWrap,T=K.disableTextEllipsis,L5=K.disableBackdropFilter,vH=K.tooltipText,
u_=K.ariaHidden,jW=K.tabIndex,xA=K.buttonText,dq=K.formattedButtonText,$A=K.animatedTextProps,BH=K.onClickRateLimitMs,jf=YTW(y,D,O,F,w,v,R),yg=jf.type;D=jf.shouldFocus;F=jf.hasIconLeading;R=jf.hasIconTrailing;var eW=jf.hasIconLeadingTrailing,oe=jf.hasIconOnly;O=jf.hasIconOnly40;var xP=jf.hasIconWithLabel;w=jf.iconButton;var XW=jf.visiblyDisabled;v=jf.overrideSmallSizeIcon;var zo=jf.iconToRender;jf=jf.secondaryIconToRender;var Ub=_.J(zEe(vH,K.tooltipShape)).next().value,rq=function(f_){h==null||h(f_);
z()&&(C==null||C(f_))},ao=_.su(function(){return BH==null?void 0:BH()},void 0,"siKywb"),rc=_.su(function(){return ao()?Pla(rq,ao()):rq},void 0,"wDTcN");
K={};var Ta={};return _.t(IEn,{className:_.XH("yt-spec-button-shape-with-label",(K["yt-spec-button-shape-with-label--is-overlay"]=function(){return N()==="overlay"||N()==="overlay-dark"},K)),
hasLabel:xP,textContent:function(){return _.t(ZOR,{text:xA,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:e,iconPosition:H,formattedButtonText:dq,animatedTextProps:$A})}},_.t(VBg,{aTagConfig:q,
className:_.XH("yt-spec-button-shape-next",function(){return fDq(yg())},function(){return XW()?void 0:nq4(N())},function(){return pDB(r())},(Ta["yt-spec-button-shape-next--disabled"]=XW,Ta["yt-spec-button-shape-next--focused"]=D,Ta["yt-spec-button-shape-next--icon-trailing"]=R,Ta["yt-spec-button-shape-next--icon-leading"]=F,Ta["yt-spec-button-shape-next--icon-leading-trailing"]=eW,Ta["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return eW()&&!(xA()||dq())},Ta["yt-spec-button-shape-next--icon-button"]=
function(){return oe()||xP()},Ta["yt-spec-button-shape-next--icon-only-default"]=O,Ta["yt-spec-button-shape-next--align-by-text"]=x,Ta["yt-spec-button-shape-next--segmented-start"]=function(){return f()==="start"},Ta["yt-spec-button-shape-next--segmented-end"]=function(){return f()==="end"},Ta["yt-spec-button-shape-next--override-small-size-icon"]=v,Ta["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=e,Ta["yt-spec-button-shape-next--disable-text-ellipsis"]=T,Ta["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!L5()&&!_.l("web_disable_backdrop_filter")},Ta)),
style:function(){var f_=X();if(f_){var mM=f_.color;var M_=f_.backgroundColor;f_=f_.borderColor;var ZR="";mM&&(ZR+="color: "+mM+";");M_&&(ZR+="background-color: "+M_+";");f_&&(ZR+="border-color: "+f_+";");mM={style:ZR}}else mM={};return mM.style},
onClick:function(f_){rc()(f_)},
disabled:I,ariaLabel:B,toggleable:z,toggled:m,title:function(){return(P==null?0:P())||!vH()?"":vH()},
visiblyDisabled:XW,ariaHidden:u_,tabIndex:jW,ref:function(f_){(P==null?0:P())&&Ub(f_)}},_.t(g5W,{data:y,
hasIconLeading:F,hasIconLeadingTrailing:eW,hasIconTrailing:R,iconButton:w,icon:zo,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:jf})))},"V");
_.me.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.My=_.d(function(I){var y=I.data;var D=I.className;var F=I.style;var R=I.useOutlinedIcon;var O=I.buttonOverrides;var w=I.animatedTextProps;var v=I.onClick;var P=I.target;var K=_.DF("button-view-model",function(C){C.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var H=y().targetId;H&&_.Ax(_.$D(),H,C);return function(){i3(_.$D(),C)}}),r=function(){return y().iconName},N=_.dV(function(C){a:{var H=y().entityKey,e=y().buttonEntitySelectorType;
if(e&&H)switch(e){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":C=(C=_.Qz(C,H))?{isHidden:C.adsState==="ADS_STATE_NONE"||C.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:C={isHidden:!1};break a}C=void 0}return C}),h,x=(h=_.nR().resolve(_.fR(_.cS)))==null?void 0:h(),q=function(){var C=y();
var H=O==null?void 0:O(),e=w==null?void 0:w(),T=P==null?void 0:P();if(C){var L5=ANo(C.type);var vH=!!C.title||!!C.titleFormatted;var u_=!(!C.iconName&&!C.iconImage);vH=u_&&!vH?"icon-only":u_?C.iconTrailing||C.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;vH==="icon-only-40"&&(L5="text");var jW;u_=(jW=H==null?void 0:H.state)!=null?jW:$ht(C.state);var xA,dq=(xA=H==null?void 0:H.disabled)!=null?xA:C.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||C.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.l("web_button_vm_refactor_disabled")){var $A;dq=($A=H==null?void 0:H.disabled)!=null?$A:u_==="disabled"}e=e&&e.numberText&&!isNaN(Number(e.numberValue))?e:void 0;xA=Object;$A=xA.assign;jW=C.title;var BH=C.titleFormatted,jf=C.accessibilityText,yg=irW(C.style),eW=br4(C.buttonSize);T=Bwo(C,K,dq,v,T);dq=dq&&!C.onDisabledTap;var oe=WYt(C,K),xP=C.customFontColor,XW=C.customBackgroundColor;var zo=C.customBorderColor;var Ub=C.customDarkThemeFontColor,rq=C.customDarkThemeBackgroundColor,ao=C.customDarkThemeBorderColor;
xP=x&&Ub?Ub:xP;XW=x&&rq?rq:XW;zo=x&&ao?ao:zo;zo={color:xP?_.Z7(xP):void 0,backgroundColor:XW?_.Z7(XW):void 0,borderColor:zo?_.Z7(zo):void 0};if(ao=_.u(C.tooltipData,fWn)){var rc;XW={text:(rc=ao.tooltipText)!=null?rc:"",location:aDW(ao.placement),style:ao.style}}else XW=void 0;C=$A.call(xA,{},{buttonText:jW,formattedButtonText:BH,animatedTextProps:e,accessibilityLabel:jf,style:yg,type:L5,state:u_,size:eW,iconPosition:vH,onTap:T,disabled:dq,aTagConfig:oe,customColors:zo,tooltipText:C.tooltip,tooltipShape:XW},
H)}else C={style:"mono",type:"text",state:"active",size:"M"};C.focused=m();return C},X=function(){return XDS(q(),!!y().iconName)};
I=_.J(_.$M(!1,void 0,"yZ8hab"));h=I.next().value;var f=I.next().value,m=h;I=_.YY(function(){var C=_.nR().resolve(_.fR(_.Q3));C&&f(C.isKeyBoardInUse());return!0});
h=_.YY(function(){f(!1);return!0});
_.wZ(function(){var C,H=_.u(y==null?void 0:(C=y())==null?void 0:C.onVisible,_.Iu);H&&_.Do(H,{disableClickTracking:!0})},"G9MlKd");
var z=function(){var C;return(y==null?0:(C=y())==null?0:C.iconImage)?{sources:[y().iconImage]}:void 0},B=_.l("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.t("button-view-model",{el:K,class:_.XH("ytSpecButtonViewModelHost",D),"on:focusin":I,"on:focusout":h},_.t(_.U,{cond:function(){var C,H;return!((H=y().entityKey&&y().buttonEntitySelectorType&&((C=N())==null?void 0:C.isHidden))!=null&&H)},
then:function(){return _.t(_.U,{cond:z,then:function(C){return _.t(_.me,{data:q,icon:function(){return _.t(_.UE,{data:C,alt:"",targetWidth:X,targetHeight:X,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:B})},
else:function(){return _.t(_.me,{data:q,icon:function(){return _.t(_.mj,{icon:r,active:function(){return(R==null?0:R())?!1:q().toggled},
animateIcon:function(){var C;return!!(F==null?0:(C=F())==null?0:C.animateIcon)},
size:X})},
clientOnlyWizTooltipsEnabled:B})}})}}))},"X");
_.My.idomCompat={callbacks:{onClick:!0}};_.NK(_.d(function(I){return _.t("yt-button-view-model",{id:I.id,class:_.XH(I.scopingClassName,I.classes),icon:function(){var y;return(y=I.icon)==null?void 0:y.call(I)},
"dialog-dismiss":function(){var y;return((y=I.dialogDismiss)==null?0:y.call(I))?"":void 0}},_.t(_.My,{data:function(){var y;
return(y=I.data)==null?void 0:y.call(I)},
className:function(){var y;return(y=I.className)==null?void 0:y.call(I)},
style:function(){var y;return(y=I.style)==null?void 0:y.call(I)},
useOutlinedIcon:function(){var y;return(y=I.useOutlinedIcon)==null?void 0:y.call(I)},
buttonOverrides:function(){var y;return(y=I.buttonOverrides)==null?void 0:y.call(I)},
animatedTextProps:function(){var y;return(y=I.animatedTextProps)==null?void 0:y.call(I)},
onClick:function(y){var D;return(D=I.onClick)==null?void 0:D.call(I,y)}}))},"Y"),"yt-button-view-model",{props:{data:_.om,
className:_.om,style:_.om,useOutlinedIcon:_.om,buttonOverrides:_.om,animatedTextProps:_.om,onClick:_.rV,scopingClassName:_.om,id:_.om,icon:_.om,dialogDismiss:_.om,classes:_.om,target:_.rV}});_.NK(_.d(function(I){var y=I.data;var D=I.id;var F=I.className;var R=I.iconName;var O=I.animateIcon;var w=I.secondaryIconName;I=_.J(_.$M(!1,void 0,"TtJl8"));var v=I.next().value,P=I.next().value,K=function(){var N=_.nR().resolve(_.fR(_.Q3));N&&P(N.isKeyBoardInUse())},r=function(){P(!1)};
I=_.DF("yt-button-shape",function(N){if(_.nR().resolve(_.fR(_.Q3)))return N.addEventListener("focusin",K),N.addEventListener("focusout",r),function(){N.removeEventListener("focusin",K);N.removeEventListener("focusout",r)}});
return _.t("yt-button-shape",{el:I,id:D,class:F},_.t(_.U,{cond:y,then:function(){return _.t(_.me,{data:y,iconName:R,secondaryIconName:w,focusedOverride:v,animateIcon:O})}}))},"Z"),"yt-button-shape",{props:{data:_.om,
id:_.om,className:_.om,iconName:_.om,animateIcon:_.om,secondaryIconName:_.om,clientOnlyWizTooltipsEnabled:_.om,disableUpgrade:_.om},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var z1=function(){var I=_.k.apply(this,arguments)||this;I.isGoalActive=!0;return I};
_.E(z1,_.k);z1.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
z1.prototype.progressBarChanged=function(){var I=_.XB(this.hostElement).querySelector("#progress-bar-progress"),y,D,F,R=(F=Number((y=this.creatorGoalState)==null?void 0:y.currentGoalCount)/Number((D=this.creatorGoalState)==null?void 0:D.totalGoalCount)*100)!=null?F:0,O;I.style.width=((O=Math.min(R,100))!=null?O:0)+"%"};
z1.prototype.goalStateChanged=function(){var I;this.isGoalActive=((I=this.creatorGoalState)==null?void 0:I.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var y;I={"--yt-progress-bar-color":ChC((y=this.creatorGoalState)==null?void 0:y.progressBarColor)};_.pg(this.hostElement,I)};
z1.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.mD.Object.defineProperties(z1.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var I;return this.isGoalActive&&!((I=this.creatorGoalState)==null||!I.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.creatorGoalState)==null?0:I.endTimestampMs){var y;I=Number((y=this.creatorGoalState)==null?void 0:y.endTimestampMs)/1E3;return{seconds:String(I)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.creatorGoalState)==null?0:I.themedTargetImage){var y;I=_.u((y=this.creatorGoalState)==null?void 0:y.themedTargetImage,hGO);return this.isAppDarkTheme()?I==null?void 0:I.imageDark:I==null?void 0:I.imageLight}}}});
_.mD.Object.defineProperties(z1,{template:{configurable:!0,enumerable:!0,get:function(){return MBO()}}});
z1.prototype.goalStateChanged=z1.prototype.goalStateChanged;z1.prototype.progressBarChanged=z1.prototype.progressBarChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],z1.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);
_.W([_.M({selectorArgs:["data.creatorGoalEntityKey"],selector:function(I,y){return _.nC(I.entities,"creatorGoalEntity",y)}}),
_.A("design:type",Object)],z1.prototype,"creatorGoalState",void 0);_.W([_.M(),_.A("design:type",Object)],z1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],z1.prototype,"isGoalActive",void 0);_.W([_.Y("creatorGoalState","isGoalActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],z1.prototype,"shouldShowCountdown",null);_.W([_.Y("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],z1.prototype,"endTimestamp",null);
_.W([_.Y("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],z1.prototype,"targetIconThemedImage",null);_.W([_.ke("creatorGoalState.currentGoalCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z1.prototype,"progressBarChanged",null);_.W([_.ke("creatorGoalState.creatorGoalState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z1.prototype,"goalStateChanged",null);
_.W([_.I6({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],z1);_.a(z1,"yt-creator-goal-progress-flow-view-model",function(){return MBO()},{mode:0});var Lmn;var J7z;var kp=function(){return _.k.apply(this,arguments)||this};
_.E(kp,_.k);kp.prototype.attached=function(){var I,y,D;if(this==null?0:(I=this.data)==null?0:(y=I.pdgPurchasedBumperLoggingDirectives)==null?0:(D=y.loggingDirectives)==null?0:D.trackingParams){var F,R,O;TwS(this==null?void 0:(F=this.data)==null?void 0:(R=F.pdgPurchasedBumperLoggingDirectives)==null?void 0:(O=R.loggingDirectives)==null?void 0:O.trackingParams)}};
kp.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],kp.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kp.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],kp);
_.a(kp,"yt-live-chat-item-bumper-view-model",function(){if(J7z===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Lmn===void 0&&(Lmn=document.createElement("template"));var F=Lmn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);J7z=I}I=J7z;return I},{mode:0});var wln;var vvM;_.tZ=function(I,y){this.data=I;this.actions=y;this.data=I;this.actions=y};
_.RP=function(){};_.di={};_.di.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(I,y){swS(this.hostElement,I,y)},
getNavigationEndpointPopupAction:function(I){return V3B(I,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(I,y){ZrJ(this.hostElement,I,y,this.openPopupConfig)}};var wLW=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.am={};
_.am.YtEndpointBehavior=[_.di.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Pi("openPopupConfig");(this.useClickHandler=_.KR("useClickHandler",!1))?this.hostElement.addEventListener("click",mh(this,this.onEndpointClick_)):(tp(this.hostElement,"tap",mh(this,this.onEndpointTap_)),tp(this.hostElement,"touchend",mh(this,this.onEndpointTouchEnd_)));tp(this.hostElement,"touchstart",mh(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
mh(this,this.onEndpointTapStart_))},
onEndpointClick_:function(I){y8q(this.hostElement,I,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(I){var y=this.hostElement,D=this.openPopupConfig,F=this.disableCommandHandlerOverride;F=F===void 0?!1:F;var R=gqH(I);if(R){R.href&&DN(R.href);var O=I.detail;var w=O.sourceEvent;O=O.preventer;w=w.button!==void 0?w.button===0&&!au(w):O?!au(O):!0;R.data&&w&&I9A(y,R,I,D,F)}},
onEndpointTouchEnd_:function(I){au(I)||gqH(I)&&I.preventDefault()},
onEndpointTapStart_:function(I){LpB(I)}}];_.cb={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(I){for(var y=_.uK.getInstance(),D=_.J(Object.keys(I)),F=D.next();!F.done;F=D.next()){var R=F.value;F=I[R];if(this&&this[F]){var O=y.actionRoutingMap.get(R);O||(O=new Map,y.actionRoutingMap.set(R,O));y.registerActionHandler(this,R,this[F].bind(this),O)}else R=Error("nd"),R.params=F,_.UJ(R)}},
unregisterActionMap:function(I){_.EN(_.uK.getInstance(),I,this)}}]};var C4=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_"+(_.l("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.l("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.l("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:_.l("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:_.l("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:_.l("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var WU;var BU=new Map;var U6o=window.matchMedia("(forced-colors: active)").matches;var S8z;var t6e;var P4n=new _.uk("LOTTIE_LOADER_TOKEN");_.Wb=_.d(function(I){var y=I.data;var D=I.className;var F=I.animationName;var R=I.animationRef;var O=I.elRefForInterop;var w=_.Fh("lottie-component"),v;_.tI(function(){var K;return void((K=v)==null?void 0:K.destroy())});
var P;_.wZ(function(){var K=_.Ki(F);if(K!==P){P=K;var r=Object.assign({},{animationName:K,animationRef:_.Ki(R)},_.Ki(y));try{_.nR().resolve(P4n)().then(function(x){var q;(q=v)==null||q.destroy();var X,f;q=(f=O==null?void 0:(X=O())==null?void 0:X.value)!=null?f:w.value;X=r.animationRef;f=r.listeners;x=x.loadAnimation(Object.assign({},{container:q},r.animationConfig));X&&(X.lottieEl=x);if(f)for(q=_.J(Object.entries(f)),X=q.next();!X.done;X=q.next())f=_.J(X.value),X=f.next().value,(f=f.next().value)&&
x.addEventListener(X,f);v=x})}catch(x){K=x;
var N="LottieComponent error.";K.message&&(N+=" Original description: "+K.message);_.Pu(K,N);_.tq(K);var h;((h=r.listeners)==null?0:h.error)&&r.listeners.error(K)}}},"nrJISd");
return _.t(OEq,{cond:function(){return!(O==null?0:O())},
then:function(){return _.t("lottie-component",{class:_.XH("ytLottieComponentHost",D),el:w})}})},"aa");_.NK(_.d(function(I){return _.t("ytd-lottie-player",{id:I.id,hidden:I.hidden,class:I.className,"aria-label":I.ariaLabel,style:"display: block;"},_.t(_.Wb,{data:I.data,animationName:function(){var y;return((y=I.data().animationConfig)==null?void 0:y.name)||""},
animationRef:function(){return I.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.om,
id:_.om,hidden:_.om,className:_.om,ariaLabel:_.om}});var A2=function(){var I=_.k.apply(this,arguments)||this;I.animationRef={};I.delhiIconsEnabled=_.l("enable_web_delhi_icons");return I};
_.E(A2,_.k);_.L=A2.prototype;
_.L.handlePropertyChange=function(){var I=this.animatedIcon,y=this.active,D=this.isDarkTheme;if(I){var F=this.previousActive!==y;this.previousActive=y;this.animationRef.lottieEl?F?this.toggleAnimation(y,I.totalFrames):_.l("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(y,I.totalFrames):y?this.initializeAnimationAsToggled(I.lottiePlayerProps,I.totalFrames):this.initializeAnimationAsUntoggled(I.lottiePlayerProps);I.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
I.type;this.lottiePlayerProps=this.computeLottiePlayerProps(I,D)}};
_.L.computeLottiePlayerProps=function(I,y){var D=this.deepCloneLottiePlayerProps(I);y?(y=I.nameDarkTheme,I=I.pathDarkTheme):(y=I.name,I=I.path);D.animationConfig.name=y;(y=BU.get(I))?D.animationConfig.animationData=y:D.animationConfig.path=I;return D};
_.L.initializeAnimationAsToggled=function(I,y){I.animationConfig.initialSegment=[y-1,y]};
_.L.initializeAnimationAsUntoggled=function(I){I.animationConfig.initialSegment=void 0};
_.L.toggleAnimation=function(I,y){if(I){var D;(D=this.animationRef.lottieEl)==null||D.playSegments([0,y],!0)}else{var F;(F=this.animationRef.lottieEl)==null||F.playSegments([0,1],!0)}};
_.L.setAnimationState=function(I,y){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(I?y-1:0,!0)};
_.L.deepCloneLottiePlayerProps=function(I){var y=Object.assign({},I.lottiePlayerProps.animationConfig);I=Object.assign({},I.lottiePlayerProps);I.animationConfig=y;return I};
A2.prototype.handlePropertyChange=A2.prototype.handlePropertyChange;_.W([_.M(),_.A("design:type",Object)],A2.prototype,"animatedIcon",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],A2.prototype,"active",void 0);_.W([_.M(),_.A("design:type",Boolean)],A2.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],A2.prototype,"animatedIconType",void 0);_.W([_.M(),_.A("design:type",Boolean)],A2.prototype,"previousActive",void 0);
_.W([_.M(),_.A("design:type",Object)],A2.prototype,"lottiePlayerProps",void 0);_.W([_.M(),_.A("design:type",Object)],A2.prototype,"animationRef",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],A2.prototype,"delhiIconsEnabled",void 0);_.W([_.ke("animatedIcon","active","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A2.prototype,"handlePropertyChange",null);_.W([_.I6({is:"yt-animated-icon",disableElementRegistration:!0})],A2);
_.a(A2,"yt-animated-icon",function(){if(t6e===void 0){var I=document.createElement("template");_.G(I,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;S8z===void 0&&(S8z=document.createElement("template"));var F=S8z;D.call(y,F.content.cloneNode(!0),I.content.firstChild);t6e=I}I=t6e;return I},{mode:2});var KmR;var UuW;_.iO=_.d(function(I){var y={value:null,cancelled:!1};_.tI(function(){y.cancelled=!0});
var D=_.su(I.data,{equals:function(F,R){return F.iconName===R.iconName&&F.iconStyle===R.iconStyle&&F.iconSize===R.iconSize&&F.iconSetName===R.iconSetName&&F.iconSelected===R.iconSelected}},"ck24jb");
return _.t("span",{class:"yt-icon-shape",el:_.K4(function(F){_.wZ(function(){var R,O=(R=I.options)==null?void 0:R.call(I);R=D();hKq(F,y,R,O)},"v878Je")})})},"da");
_.iO.idomCompat=!0;var azo=["youtube_fill","youtube_outline"];var r7W=new _.b8({type:"iconset",value:void 0}),$p=function(){var I=_.k.apply(this,arguments)||this;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.iconName="";I.iconsetName="yt-icons";I.iconset=null;I.missingIconSet=!1;I.iconType=null;I.iconShapeDataSignal=_.$M(void 0,void 0,"TaEgXd");I.renderingOptionsSignal=_.$M({iconWidth:"100%",iconHeight:"100%",iconFilter:I.iconFilter,iconColor:I.gradientColor},void 0,"a1vqYe");I.wizHasRendered=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return I};
_.E($p,_.k);$p.prototype.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
$p.prototype.handlePropertyChange=function(){var I=this,y,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m;return _.S(function(z){switch(z.nextAddress){case 1:if(y=!I.icon&&!I.iconName||!I.isAttached)return z.return();D=I;F=D.icon;R=D.size;O=D.defaultToFilled;w=D.active;v=D.targetContainer;I.toggleContainerClass(v);_.l("kevlar_use_wil_icons")&&F&&(P=jye(F),I.iconType=P.length?P[1]:null);if(F){z.jumpTo(2);break}I.iconsetName="";I.iconName="";return z.yield(I.renderIcon(v,F),3);case 3:return z.return();case 2:K=jGG(F);
r=jye(K);r.length&&(I.iconsetName=r[0],I.iconName=r[1]);if(!_.l("kevlar_use_wil_icons")){z.jumpTo(4);break}N=$p;h=ov_;x=I.iconType;q=I.active;X=I.defaultToFilled;f=I.size;m=I.iconsetName;return z.yield(NrW(),6);case 6:return z.yield(h.call(N,x,q,X,f,m,z.yieldResult),5);case 5:I.iconShapeData=z.yieldResult;case 4:if(I.shouldRenderIconShape(v)){z.jumpTo(7);break}return z.yield(I.determineIconSet(K,w,O,R,v),7);case 7:return z.yield(I.renderIcon(v,F),0)}})};
$p.prototype.toggleContainerClass=function(I){I?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var jGG=function(I){return!_.l("default_to_innertube_icon")||I.indexOf(":")>0?I:_.pQ(I)};
_.L=$p.prototype;_.L.determineIconSet=function(I,y,D,F){var R=this;return _.S(function(O){return O.nextAddress==1?_.l("kevlar_system_icons")||_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?O.yield(R.switchToYtSysIconset(I,y,D,F),3):O.jumpTo(2):O.nextAddress!=2?O.return():O.yield(R.useYtSysIconsetForMissingIcons(I,y,D,F),0)})};
_.L.switchToYtSysIconset=function(I,y,D,F){var R=this,O,w,v,P,K,r,N;return _.S(function(h){switch(h.nextAddress){case 1:if(!I||R.iconsetName!=="yt-icons"&&R.iconsetName!=="yt-sys-icons"){h.jumpTo(0);break}O=jye(I);w=O[1];var x=w;if(Eh4(x))w=x;else{var q=x=x.toLowerCase();(x=u2G.get(x))&&(q=x);w=q}_.l("enable_polymer_icons_replace_underscores_dash")&&w.includes("_filled")&&(w=w.replace(/_filled/g,"-filled"));return h.yield(nQ(w,!0),3);case 3:return v=h.yieldResult,h.yield(nQ(w,!1),4);case 4:if((P=
h.yieldResult)||y&&v)R.iconsetName="yt-sys-icons";R.iconName=R.getIconName(w,y,D,P,v);if(F===24){h.jumpTo(0);break}K="yt-sys-icons"+F+":"+R.iconName;return h.yield(nQ(K,!1,!0),6);case 6:return r=h.yieldResult,h.yield(nQ(K,!0,!0),7);case 7:N=h.yieldResult;R.iconName=R.getIconName(w,y,D,r,N);if(!y&&r||y&&N)R.iconsetName="yt-sys-icons"+F;_.Cj(h)}})};
_.L.getIconName=function(I,y,D,F,R){I.includes("-filled")&&(I=I.replace("-filled",""));return R&&(y||D)?I+"-filled":I};
_.L.useYtSysIconsetForMissingIcons=function(I,y,D,F){var R=this,O,w;return _.S(function(v){if(v.nextAddress==1)return R.iconsetName!=="yt-icons"?v.jumpTo(0):v.yield(nQ(R.iconName,!1,!1,!0),3);if(v.nextAddress!=4)return O=v.yieldResult,v.yield(nQ(R.iconName,!1),4);w=v.yieldResult;if(O||!w)return v.jumpTo(0);R.iconsetName="yt-sys-icons";return v.yield(R.switchToYtSysIconset(I,y,D,F),0)})};
_.L.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var NrW=function(){return _.S(function(I){try{return I.return(_.nR().resolve(_.mZ))}catch(y){return I.return(new Promise(function(D){_.oJ().parkOrScheduleJob(function(){D(_.nR().resolve(_.mZ))},2,"ci")}))}})},ov_=function(I,y,D,F,R,O){F=F===void 0?24:F;
if(I){I=I.toLowerCase();var w=I.endsWith("_filled")||I.endsWith("-filled");y={iconName:I,iconStyle:(y===void 0?0:y)||(D===void 0?0:D)||w?"youtube_fill":"youtube_outline",iconSize:F,iconSetName:R===void 0?"yt-icons":R};D=!!O.resolveIcon(y);D||(y.iconSize=void 0,D=!!O.resolveIcon(y));!D&&w&&(y.iconName=I.substring(0,I.length-7),y.iconSize=F,D=!!O.resolveIcon(y),D||(y.iconSize=void 0,D=!!O.resolveIcon(y)));D||(y.iconStyle=void 0,D=!!O.resolveIcon(y));D||_.tq(new _.g6("Icon not supported",{iconName:y.iconName,
iconStyle:y.iconStyle,iconSize:y.iconSize,iconType:I}));return D?y:void 0}};
_.L=$p.prototype;_.L.shouldRenderIconShape=function(I){if(!_.l("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;I=this.getContainer(I);return!r85(I,this.icon)};
_.L.renderIcon=function(I,y){var D=this,F,R,O,w,v,P,K,r;return _.S(function(N){switch(N.nextAddress){case 1:if(y&&D.icon!==y)return N.return();F=D.getContainer(I);R=r85(F,D.icon);if(D.shouldRenderIconShape(I)&&D.iconType)return D.applyIconShape(R,F),N.return();D.removeIconShape();if(!F)return N.return();D.iconName===""&&D.iconset&&F&&(D.removeStaticIcon(D.iconset,F),R&&D.removeAnimatedIcon(F));if(D.iconName===""&&D.iconset||!D.iconsetName||!r7W)return N.return();D.iconset=r7W.byKey(D.iconsetName);
if(!D.iconset)return D.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.MX(D,D.onIconsetAdded)),N.return();D.missingIconSet&&(D.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.MX(D,D.onIconsetAdded)));w=(O=R||D.isAnimatedIcon?PYW(D.icon):void 0)&&!O.lazyLoad;P=O&&((v=O)==null?void 0:v.lazyLoad)&&(O.lottiePlayerProps.animationConfig.animationData?!0:BU.get(D.isDarkTheme?O.pathDarkTheme:O.path)?!0:!1);if(w||P)return D.applyAnimatedIcon(F,O,D.iconset),N.return();if(P||
(K=O)==null||!K.lazyLoad){N.jumpTo(2);break}r=oO_(O,D.isDarkTheme);D.applyStaticIcon(D.iconset,F,D.iconName,I,R);return N.yield(r,3);case 3:return N.yield(D.renderIcon(D.targetContainer,D.icon),4);case 4:return N.return();case 2:D.applyStaticIcon(D.iconset,F,D.iconName,I,R),_.Cj(N)}})};
_.L.getContainer=function(I){var y,D=(y=Ipo(this.hostElement))==null?void 0:y.host;y=!!D&&!!D.polymerController;if(!I||y)return I?this.getTargetContainer(I,D):this.hostElement};
_.L.getTargetContainer=function(I,y){var D=_.XB(y).querySelector("#"+I);D||(I=new _.g6("yt-icon container missing",y.is,I),_.vu(I));return D};
_.L.applyStaticIcon=function(I,y,D,F,R){R&&this.removeAnimatedIcon(y);this.removeIconShape();R=R&&!!this.iconType&&!!this.iconShapeData&&_.l("kevlar_use_wil_icons");try{R?this.applyIconShape(!1,y):I.applyIcon(y,D)}catch(O){this.handleError(O,F,y)}};
_.L.applyIconShape=function(I,y){this.iconset&&y&&(this.removeStaticIcon(this.iconset,y),I&&this.removeAnimatedIcon(y));I={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var D=_.J(this.iconShapeDataSignal);y=D.next().value;D=D.next().value;var F=_.J(this.renderingOptionsSignal),R=F.next().value;F=F.next().value;D(this.iconShapeData);F(I);if(!this.wizHasRendered)for(this.wizHasRendered=!0,I=_.J(x6q(y,R)).next().value;I.firstChild;)_.XB(this.hostElement).appendChild(I.firstChild)};
_.L.removeIconShape=function(){if(_.l("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.L.removeStaticIcon=function(I,y){I.removeIcon(y)};
_.L.applyAnimatedIcon=function(I,y,D){this.removeStaticIcon(D,I);this.removeIconShape();var F;D=this.animatedIconElement&&((F=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:F.type)===y.type;if(this.animatedIconElement&&D){this.animatedIconElement.polymerController.animatedIcon=y;var R;((R=this.animatedIconElement)==null?void 0:R.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(I),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=y,this.animatedIconElement.polymerController.active=this.active,_.l("delhi_modern_web_player_icons")?(y=KpL(I,this.icon)&&I.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=y?y.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.l("kevlar_use_wil_icons")?
I.insertBefore(this.animatedIconElement,I.childNodes[0]):(I=_.XB(I),I.insertBefore(this.animatedIconElement,I.childNodes[0]))};
_.L.removeAnimatedIcon=function(I){_.l("kevlar_use_wil_icons")?this.animatedIconElement&&I.contains(this.animatedIconElement)&&I.removeChild(this.animatedIconElement):(I=_.XB(I),this.animatedIconElement&&I.contains(this.animatedIconElement)&&I.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.L.handleError=function(I,y,D){_.Pu(I,this.iconName,y,D);y=r85(D,this.icon);var F=!1;window.location.href.includes("JpymaW6Lh2w")?F=!0:D._svgIcon&&(D=(D=D._svgIcon.parentNode)?D.tagName:"unknown",_.Pu(I,D),D==="YT-ICON"&&I.name==="NotFoundError"?F=!0:I.name==="NotFoundError"&&y&&(F=!0));F?_.tq(I):_.vu(I)};
_.mD.Object.defineProperties($p,{template:{configurable:!0,enumerable:!0,get:function(){if(UuW===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;
KmR===void 0&&(KmR=document.createElement("template"));var F=KmR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);UuW=I}I=UuW;return I}}});
$p.prototype.handlePropertyChange=$p.prototype.handlePropertyChange;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],$p.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",String)],$p.prototype,"icon",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],$p.prototype,"active",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],$p.prototype,"defaultToFilled",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],$p.prototype,"isAnimatedIcon",void 0);
_.W([_.M({value:24}),_.A("design:type",Number)],$p.prototype,"size",void 0);_.W([_.M({value:""}),_.A("design:type",String)],$p.prototype,"targetContainer",void 0);_.W([_.M(),_.A("design:type",Object)],$p.prototype,"animatedIconElement",void 0);_.W([_.M(),_.A("design:type",Object)],$p.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],$p.prototype,"ariaHidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],$p.prototype,"ariaLabel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],$p.prototype,"role",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],$p.prototype,"tabindex",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],$p.prototype,"title",void 0);_.W([_.M(),_.A("design:type",String)],$p.prototype,"style",void 0);_.W([_.M(),_.A("design:type",String)],$p.prototype,"iconFilter",void 0);_.W([_.M(),_.A("design:type",String)],$p.prototype,"gradientColor",void 0);
_.W([_.ke("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],$p.prototype,"handlePropertyChange",null);_.W([_.I6({is:"yt-icon",noInjection:!0})],$p);var l9S="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),qoA=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var hFg={};hFg.YtPlaintextBehavior=[_.CP,{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(I){I.preventDefault();I=I.clipboardData.getData("text/plain");document.execCommand("insertText",!1,I)},
preventRichTextFormatting_:function(I){_.mr&&(I=I.detail.keyboardEvent,I.stopImmediatePropagation(),I.preventDefault())}}];var xuz;var lEa;var bC=function(){var I=_.k.apply(this,arguments)||this;I.ignoreShadyDom=!1;I.hasChange_=!1;I.hasSetTitle_=!1;I.useIOObserverForVisibilityLogging_=_.l("kevlar_use_vimio_behavior")&&_.Pi("INNERTUBE_CLIENT_NAME")==="WEB";I.ytFormattedStringObserverHandlerKeys_=void 0;return I};
_.E(bC,_.k);_.L=bC.prototype;_.L.created=function(){this.useIOObserverForVisibilityLogging_=_.l("kevlar_use_vimio_behavior")&&_.Pi("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.L.ready=function(){_.Pi("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_()};
_.L.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.L.detached=function(){this.unobserveIOObservers_()};
_.L.clearContents_=function(){for(var I=this.getRoot(),y=I.lastChild;y&&y.tagName!=="STYLE";){try{I.removeChild(y)}catch(D){break}y=I.lastChild}};
_.L.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var I=_.J(this.ytFormattedStringObserverHandlerKeys_),y=I.next();!y.done;y=I.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(y.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.L.resetForAttributedString=function(){var I=this.getRoot();!I.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),I.appendChild(this.ytAttributedStringElementRef))};
_.L.resetForFormattedString=function(){var I=this.getRoot(),y=I.querySelector("yt-attributed-string");y&&(this.ytAttributedStringElementRef=I.removeChild(y))};
_.L.textChanged=function(){this.textChanged_(this.text)};
_.L.textChanged_=function(I){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!I||!I.runs&&!I.simpleText;if(_.l("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var y=this.hostElement.firstChild;y&&y.nodeName==="FONT";){var D=y;y=y.nextSibling;this.hostElement.removeChild(D)}y=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
D=I.simpleText;var F;!D&&((F=I.runs)==null?void 0:F.length)===1&&this.isSimpleString_(I.runs[0])&&(D=I.runs[0].text);D!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Pi("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(D!==void 0){try{y.textContent=D}catch(R){}y.textContent||(this.isEmpty=!0)}else I=I.runs,D!==void 0&&(I=[{text:D}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),I&&this.updateText_(I),
y.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.L.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)};
_.L.computeAriaLabel_=function(I){return I};
_.L.computeEllipsisTruncateStyling=function(I,y){return I&&!y};
_.L.computeUseAttributedString=function(I){return _.l("web_replace_formatted_with_attributed_string")&&Dmo(I)&&!this.disableAttributedString&&!this.enableContentEditable};
_.L.setNodeStyle_=function(I,y){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.l("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?y.removeAttribute("dir"):y.setAttribute("dir","auto");y.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");y.style.color="";var D=null;this.noStyles||(I.bold&&(y.classList.add("bold"),D="bold"),I.deemphasize&&(y.classList.add("deemphasize"),D="deemphasize"),I.italics&&y.classList.add("italic"),
I.strikethrough&&y.classList.add("strikethrough"),I.errorUnderline&&(y.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),I.bracket&&y.classList.add("bracket"),I.textColor&&(y.style.color=_.Vp(I.textColor)));D!==y.getAttribute("style-target")&&(D?y.setAttribute("style-target",D):y.removeAttribute("style-target"))};
_.L.setUpVisibilityLogging_=function(I,y){var D=this;this.setNodeTrackingParams_(I,y);var F;((F=y.data)==null?0:F.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(I=this.ytRendererBehavior.visibilityObserver.observe(y,function(R){var O=D.ytRendererBehavior.getVisibilityLogger();O&&O.reportShown(R)},this.ytRendererBehavior.visibilityOptionVisible_),y=this.ytRendererBehavior.visibilityObserver.observe(y,function(R){var O=D.ytRendererBehavior.getVisibilityLogger();
O&&O.reportHidden(R)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(I),this.ytFormattedStringObserverHandlerKeys_.push(y))};
_.L.setNodeTrackingParams_=function(I,y){y.data||(y.data={});if((I=I.loggingDirectives?I.loggingDirectives.trackingParams:null)||y.data.trackingParams)y.data.trackingParams=I};
_.L.computeHasLinkOnly_=function(I){return!(!I||I.length!==1||this.noEndpoints||!I[0].navigationEndpoint)};
_.L.getRoot=function(){var I=this.buildScopeDomOptions();return this.enableContentEditable?_.XB(_.XB(this.hostElement,I).querySelector("[contenteditable]")):_.XB(this.hostElement,I)};
_.L.fixContenteditableScope=function(){var I=function(y){y&&(y.nodeType===1&&y.classList&&(y.classList.add("style-scope"),y.classList.add("yt-formatted-string")),y.childNodes&&y.childNodes.forEach(function(D){I(D)}))};
I(this.getRoot())};
_.L.updateText_=function(I){for(var y=I.length,D=this.getRoot(),F=D.firstChild;F&&F.nodeName==="STYLE";)F=F.nextSibling;for(var R=0;R<y&&F;){var O=I[R],w=_.l("remove_cr_char")&&O.text?O.text.replace("\r",""):O.text;if(this.isSimpleString_(O)&&!this.useMixedDirectionFormattedStrings)if(F.nodeName==="#text"){F.textContent!=w&&(F.textContent=w);R++;F=F.nextSibling;continue}else break;if(_.u(O,Zd))break;else if(!this.noEndpoints&&O.navigationEndpoint){if(F.nodeName!=="A")break;this.setDataOnAnchor_(F,
O.navigationEndpoint)}else if(F.nodeName!=="SPAN")break;this.setNodeStyle_(O,F);this.setUpVisibilityLogging_(O,F);F.textContent!=w&&(F.textContent=w);R++;F=F.nextSibling}if(F)for(O=D.lastChild,F=R?F.previousSibling:null;O&&O!=F;){try{D.removeChild(O)}catch(v){break}O=D.lastChild}R!==y&&this.addTextNodes_(I,R)};
_.L.addTextNodes_=function(I,y){for(var D=document.createDocumentFragment(),F=I.length;y<F;y++){var R=I[y],O=_.l("remove_cr_char")&&R.text?R.text.replace("\r",""):R.text;if(this.isSimpleString_(R)&&!this.useMixedDirectionFormattedStrings)D.appendChild(document.createTextNode(O));else{var w=_.u(R,Zd);if(w){if(w.image){var v=document.createElement("img");w.isCustomEmoji||v.classList.add("small-emoji");v.classList.add("emoji");w.isCustomEmoji&&(v.dataset.emojiId=w.emojiId);v.src=_.hf(w.image.thumbnails,
this.emojiSize);(R=this.get("image.accessibility.accessibilityData.label",w))?v.alt=R:w.shortcuts&&w.shortcuts.length>0?v.alt=w.shortcuts[0]:w.emojiId&&(v.alt=w.emojiId);D.appendChild(v);this.hasEmoji=!0}}else!this.noEndpoints&&R.navigationEndpoint?(v=document.createElement("a"),v.classList.add("yt-simple-endpoint"),v.setAttribute("spellcheck","false"),this.setDataOnAnchor_(v,R.navigationEndpoint)):v=document.createElement("span"),this.setNodeStyle_(R,v),this.setUpVisibilityLogging_(R,v),v.appendChild(document.createTextNode(O)),
D.appendChild(v)}}this.getRoot().appendChild(D)};
_.L.isSimpleString_=function(I){return(this.noEndpoints||!I.navigationEndpoint)&&!_.u(I,Zd)&&(this.noStyles||!(I.bold||I.deemphasize||I.italics||I.strikethrough||I.errorUnderline||I.bracket||I.textColor))&&!I.loggingDirectives};
_.L.getRawText=function(){return _.rY(this.text)};
_.L.getFirstRunText=function(){var I;if(((I=this.text)==null?0:I.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.L.setFirstRunText=function(I){var y;((y=this.text)==null?0:y.runs)&&this.text.runs[0]&&(this.text.runs[0].text=I,this.textChanged_(this.text))};
_.L.setDataOnAnchor_=function(I,y){var D=this;!_.l("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(y)||this.isSignalServiceEndpoint_(y)?(I.onclick=this.serviceEndpointHandler_(y),yr(I,"#")):D5W({text:this.text,command:y},function(){U5H(I,y,D.target)})};
_.L.isServiceEndpoint_=function(I){var y;return!((y=_.u(I==null?void 0:I.commandMetadata,_.nE))==null||!y.sendPost)};
_.L.isSignalServiceEndpoint_=function(I){return!!_.u(I,_.fE)};
_.L.serviceEndpointHandler_=function(I){var y=this;return function(D){_.E$(y.hostElement,[I]);D.preventDefault()}};
_.L.overrideAriaLabelChanged_=function(){var I=this.getRoot();this.enableContentEditable&&I&&I.setAttribute("aria-label",this.overrideAriaLabel)};
_.L.enableContentEditableChanged_=function(){var I=this,y=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),y=_.XB(this.hostElement,y),!y.lastChild||y.lastChild instanceof HTMLElement&&y.lastChild.id!=="contenteditable-root"){var D=document.createElement("div");D.id="contenteditable-root";D.setAttribute("contenteditable","true");D.setAttribute("dir","auto");D.onfocus=function(){I.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
y.appendChild(D);this.overrideAriaLabel&&D.setAttribute("aria-label",this.overrideAriaLabel)}}else D=_.QU(this.hostElement).firstChild,D instanceof HTMLElement&&D.id==="contenteditable-root"&&_.XB(this.hostElement,y).removeChild(D)};
_.L.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.L.getNodesForVisibilityLogging_=function(){return _.Qt(this.getRoot().childNodes,function(I){var y;return!((y=I.data)==null||!y.trackingParams)})};
_.L.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.L.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var I=this.ytRendererBehavior.getVisibilityLogger();I&&this.getNodesForVisibilityLogging_().forEach(function(y){I.reportShown(y)})}};
_.L.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var I=this.ytRendererBehavior.getVisibilityLogger();I&&this.getNodesForVisibilityLogging_().forEach(function(y){I.reportHidden(y)})}};
_.mD.Object.defineProperties(bC.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.l("enable_mixed_direction_formatted_strings")}}});
bC.prototype.enableContentEditableChanged_=bC.prototype.enableContentEditableChanged_;bC.prototype.overrideAriaLabelChanged_=bC.prototype.overrideAriaLabelChanged_;bC.prototype.ellipsisTruncateChanged_=bC.prototype.ellipsisTruncateChanged_;bC.prototype.textChanged=bC.prototype.textChanged;_.W([_.Q(hFg.YtPlaintextBehavior),_.A("design:type",Object)],bC.prototype,"ytPlaintextBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bC.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bC.prototype,"text",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"noEndpoints",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"noStyles",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],bC.prototype,"isDarkTheme",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],bC.prototype,"splitLines",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],bC.prototype,"forceDefaultStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],bC.prototype,"ellipsisTruncate",void 0);_.W([_.M(),_.A("design:type",Object)],bC.prototype,"ignoreShadyDom",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.A("design:type",Boolean)],bC.prototype,"ellipsisTruncateStyling",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.A("design:type",String)],bC.prototype,"ariaLabel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],bC.prototype,"isEmpty",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.A("design:type",Boolean)],bC.prototype,"hasLinkOnly_",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"hasEmoji",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"disableAttributedString",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"isOverlay",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"linkInheritColor",void 0);
_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"noPreWrap",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"userInput",void 0);_.W([_.M({value:16}),_.A("design:type",Number)],bC.prototype,"emojiSize",void 0);_.W([_.M(),_.A("design:type",String)],bC.prototype,"target",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"enableContentEditable",void 0);_.W([_.M(),_.A("design:type",String)],bC.prototype,"overrideAriaLabel",void 0);
_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"respectHtmlDir",void 0);_.W([_.M(),_.A("design:type",Boolean)],bC.prototype,"respectLangDir",void 0);_.W([_.Y("plaintextOnly"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],bC.prototype,"useMixedDirectionFormattedStrings",null);_.W([_.M({computed:"computeUseAttributedString(text)"}),_.A("design:type",Boolean)],bC.prototype,"useYtAttributedString",void 0);
_.W([_.ke("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"textChanged",null);_.W([_.ke("ellipsisTruncate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"ellipsisTruncateChanged_",null);_.W([_.ke("overrideAriaLabel"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"overrideAriaLabelChanged_",null);
_.W([_.ke("enableContentEditable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"enableContentEditableChanged_",null);_.W([_.I6({is:"yt-formatted-string",disableElementRegistration:!0})],bC);
_.a(bC,"yt-formatted-string",function(){if(lEa===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;xuz===void 0&&(xuz=document.createElement("template"));var F=xuz;D.call(y,F.content.cloneNode(!0),I.content.firstChild);lEa=I}I=lEa;return I});var u$c;var q8e;var Eve;var Gff;var Hb=function(){var I=_.k.apply(this,arguments)||this;I.focused=!1;I.disabled=!1;I.isOverlay=!1;return I};
_.E(Hb,_.k);Hb.prototype.triggerDown=function(){if(!this.disabled){_.Ye(this.hostElement,"down",!0);var I;(I=this.currentAnimation)==null||I.cancel()}};
Hb.prototype.triggerUp=function(){if(!this.disabled){_.Ye(this.hostElement,"down",!1);var I=this.fillElement;var y=this.strokeElement;typeof GroupEffect==="function"?(I=new GroupEffect([xhe(I),lD_(y)]),I=new Animation(I,document.timeline)):I=new eTW(I,y);this.currentAnimation=I;var D;(D=this.currentAnimation)==null||D.play()}};
_.W([_.a0(".stroke"),_.A("design:type",HTMLElement)],Hb.prototype,"strokeElement",void 0);_.W([_.a0(".fill"),_.A("design:type",HTMLElement)],Hb.prototype,"fillElement",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Hb.prototype,"focused",void 0);_.W([_.M(),_.A("design:type",Object)],Hb.prototype,"disabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Hb.prototype,"isOverlay",void 0);_.W([_.I6({is:"yt-interaction",disableElementRegistration:!0})],Hb);
_.a(Hb,"yt-interaction",function(){if(Gff===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Eve===void 0&&(Eve=document.createElement("template"));var F=Eve;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Gff=I}I=Gff;return I},{mode:2});var er=function(){return _.k.apply(this,arguments)||this};
_.E(er,_.k);_.L=er.prototype;_.L.ready=function(){var I=this,y=_.XB(this.hostElement).querySelector("#button");y.addEventListener("focus",function(){N_W||(N_W=new oJf);I.keyboardFocused=N_W.isKeyBoardInUse()});
y.addEventListener("blur",function(){I.keyboardFocused=!1;I.rippleUp_()})};
_.L.computeTabIndex_=function(I){return I?-1:0};
_.L.computeButtonAriaPressed_=function(I){if(this.toggleable)return I?"true":"false"};
_.L.rippleDown_=function(){_.XB(this.hostElement).querySelector("#interaction").triggerDown()};
_.L.rippleUp_=function(){_.XB(this.hostElement).querySelector("#interaction").triggerUp()};
_.L.onPressedChanged_=function(){var I=_.QU(_.XB(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.QU(_.XB(this.hostElement).querySelector("#button")).children[0];I&&(I.active=this.pressed)};
er.prototype.onPressedChanged_=er.prototype.onPressedChanged_;er.prototype.rippleUp_=er.prototype.rippleUp_;er.prototype.rippleDown_=er.prototype.rippleDown_;_.W([_.M(),_.A("design:type",String)],er.prototype,"label",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],er.prototype,"disabled",void 0);_.W([_.M(),_.A("design:type",Boolean)],er.prototype,"pressed",void 0);_.W([_.M(),_.A("design:type",Object)],er.prototype,"toggleable",void 0);
_.W([_.M(),_.A("design:type",Boolean)],er.prototype,"untabbable",void 0);_.W([_.M(),_.A("design:type",Boolean)],er.prototype,"keyboardFocused",void 0);_.W([_.z4("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],er.prototype,"rippleDown_",null);_.W([_.z4("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],er.prototype,"rippleUp_",null);
_.W([_.ke("pressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],er.prototype,"onPressedChanged_",null);_.W([_.I6({is:"yt-icon-button",disableElementRegistration:!0})],er);
_.a(er,"yt-icon-button",function(){if(q8e===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;u$c===void 0&&(u$c=document.createElement("template"));var F=u$c;D.call(y,F.content.cloneNode(!0),I.content.firstChild);q8e=I}I=q8e;return I},{mode:2});var XlO;var QGG=function(){var I=document.body,y=I.appendChild;if(XlO===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>');
XlO=D}D=XlO;y.call(I,D.content)};
document.body?QGG():window.addEventListener("DOMContentLoaded",QGG);var Y8P=_.UI(["aria-"]),T1={};T1.YtRenderButtonBehavior=[_.V.YtRendererBehavior,_.am.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!!_.nR().resolve(_.fR(_.Q3))&&_.l("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 I=this.computeHref_(this.endpoint,!0);I?yr(this.elements_.endpoint,I):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){I=this.buttonClass.split(" ");I=_.J(I);for(var y=I.next();!y.done;y=I.next())y=y.value,_.Ye(this.hostElement,y,!0),this.elements_.button&&_.Ye(this.elements_.button,y,!0),this.elements_.text&&_.Ye(this.elements_.text,y,!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&&(I=null,this.buttonAccessibility&&(I=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=I:I?_.jY([_.ll(Y8P)],this.elements_.button,"aria-label",I):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var I=_.nR().resolve(_.fR(_.Q3));I&&(this.keyboardFocused=I.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.qy("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,_.Bx(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Bx(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(I,y){if(y)for(I=y.split(" "),I=_.J(I),y=I.next();!y.done;y=I.next())y=y.value,_.Ye(this.hostElement,y,!1),this.elements_.button&&_.Ye(this.elements_.button,y,!1),this.elements_.text&&_.Ye(this.elements_.text,y,!1)},
buttonIconChanged_:function(I){this.elements_.icon?I?(this.elements_.icon.icon=I,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Bx(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.fg(this.hostElement,"is-paper-button-with-icon",!1)):I&&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"&&_.Bx(this.elements_.button).appendChild(this.elements_.icon):_.Bx(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.fg(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(I){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,I){var y=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(I){case "yt_icon_button_with_label":y=!0;_.Ye(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();I=_.Bx(this.elements_.button).firstElementChild;
this.elements_.icon=I;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Bx(this.elements_.endpoint).appendChild(this.elements_.button);_.Bx(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.qy("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;_.Bx(this.elements_.button).appendChild(this.elements_.text);_.Bx(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":y=!0,this.elements_.button=this.getYtIconButton_(),I=_.Bx(this.elements_.button).firstElementChild,this.elements_.icon=I,this.setIconActive_(this.elements_.icon),
_.Bx(this.elements_.endpoint).appendChild(this.elements_.button)}_.fg(this.hostElement,"is-icon-button",y);_.fg(this.hostElement,"is-paper-button",!y);_.fg(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;_.XB((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&&_.Bx(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(I){if(I!=void 0||this.disabled)this.disabled=I,this.elements_.button&&(this.elements_.button.disabled=I)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(I){_.l("kevlar_system_icons")&&I&&this.data&&(this.data.isSelected!==void 0?I.active=this.data.isSelected:this.data.isToggled!==void 0&&(I.active=this.data.isToggled))},
observeBasicPalette_:function(I){_.Af(this.hostElement,I)},
disabledChanged_:function(I){this.data&&this.set("data.isDisabled",I)},
onYtButtonTap_:function(I){if(this.disabled)I.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.E$(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(I=this.disableCommandHandlerOverride,!this.data||!this.data.command||I||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.l("handle_service_request_actions")||_.E$(this.hostElement,[this.serviceEndpoint]),
_.lj(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.l("handle_service_request_actions")?(I=[],this.serviceEndpoint&&I.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&I.push(this.data.command),I.length&&_.GC(this.hostElement,I,this.hostElement)):this.data&&this.data.command&&(I=this.data.command,I.accountUnlinkCommand||I.accountLinkCommand||I.insertAdCommand||I.insertHighlightMarkerCommand||
I.createLivestreamHighlightClipCommand||I.getVideoUploadFeedbackCommand||I.musicDeletePrivatelyOwnedEntityCommand||I.ypcCancelRecurrenceEndpoint||I.getMultiSelectCommandEndpoint?_.E$(this.hostElement,[I]):_.GC(this.hostElement,[I],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 I,y=_.XB((I=this.container.hostElement)!=null?I:this.container);y.lastChild&&y.lastChild.tagName!="STYLE";)try{y.removeChild(y.lastChild)}catch(D){break}},
getYtIconButton_:function(){var I=this.reuseEnabled_()?_.qy("yt-icon-button"):document.createElement("yt-icon-button"),y=_.Bx(I).firstElementChild;if(y&&y.is!="yt-icon"){for(y=_.Bx(I);y.lastChild;)y.removeChild(y.lastChild);y=null}y||(y=this.getIcon_(),this.setIconActive_(y),_.Bx(I).appendChild(y));return I},
reuseEnabled_:function(){return _.l("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.qy("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.qy("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.fEM={};
_.fEM.YtButtonBehavior=[T1.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var I=this.data;I&&(this._setEndpoint(this.computeEndpoint_(I)),this._setServiceEndpoint(this.computeServiceEndpoint_(I)),this._setCommand(this.computeCommand_(I)),this._setButtonIcon(this.computeButtonIcon_(I)),this._setButtonText(this.computeButtonText_(I,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(I)),this._setButtonTooltip(this.computeTooltip_(I)),this._setButtonClass(this.computeButtonClass_(I)),this._setIconPositionType(this.computeIconPositionType_(I)),this.updateRenderedElements())},
setPressedState:function(I){var y;if((y=this.elements_)==null?0:y.button)this.elements_.button.pressed=!!I},
computeIconPositionType_:function(I){return I&&I.iconPosition||null},
computeEndpoint_:function(I){var y=I&&I.navigationEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.url"),F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:I&&I.command&&I.command.modalEndpoint?I.command:D&&!F&&I.command?I.command:null},
computeServiceEndpoint_:function(I){var y=I&&I.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:D&&I.command?I.command:null},
computeCommand_:function(I){return I&&I.command||null},
computeButtonIcon_:function(I){return I&&I.icon&&I.icon.iconType?_.pQ(I.icon.iconType):null},
computeButtonText_:function(I,y){return!y&&I&&I.text||null},
computeAccessibility_:function(I){return this.get("accessibilityData.accessibilityData",I)||I&&I.accessibility||(I&&I.text?{label:this.getSimpleString(I.text)}:null)},
computeTooltip_:function(I){return I?I.isDisabled&&I.disabledTooltip||I.tooltip||null:null},
computeButtonClass_:function(I){var y=I&&I.style?I.style.toLowerCase().replace(/_/g,"-")+" ":"";y+=I&&I.size?I.size.toLowerCase().replace(/_/g,"-")+" ":"";I.colorData&&I.colorData.basicColorPaletteData&&I.colorData.basicColorPaletteData.borderColor&&(y+="palette-with-border");return y.trim()}}];var $Y={};var nvP;var plz;var mue,M6f=function(){return mue!==void 0?mue:mue=document.createElement("template")};
document.head.appendChild(M6f().content);var zFM;var kfO,duu=function(){return kfO!==void 0?kfO:kfO=document.createElement("template")};
document.head.appendChild(duu().content);var aEO;var c7c,WmM=function(){return c7c!==void 0?c7c:c7c=document.createElement("template")};
document.head.appendChild(WmM().content);var C4O;var BrW=document.head,i8f=BrW.appendChild,A7u;if(C4O===void 0){var $uW=document.createElement("template");_.G($uW,"\x3c!--css-build:shady--\x3e");$uW.content.insertBefore(WmM().content.cloneNode(!0),$uW.content.firstChild);C4O=$uW}A7u=C4O;i8f.call(BrW,A7u.content);var b8a=document.head,H8c=b8a.appendChild,eFf;if(aEO===void 0){var TrO=document.createElement("template");_.G(TrO,"\x3c!--css-build:shady--\x3e");TrO.content.insertBefore(duu().content.cloneNode(!0),TrO.content.firstChild);aEO=TrO}eFf=aEO;H8c.call(b8a,eFf.content);var sGM=document.head,V6c=sGM.appendChild,Z8R;if(zFM===void 0){var gvO=document.createElement("template");_.G(gvO,"\x3c!--css-build:shady--\x3e");gvO.content.insertBefore(M6f().content.cloneNode(!0),gvO.content.firstChild);zFM=gvO}Z8R=zFM;V6c.call(sGM,Z8R.content);var IDW;_.bO("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");IDW=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live");_.sY=function(){return _.k.apply(this,arguments)||this};
_.E(_.sY,_.k);_.sY.prototype.created=function(){this.openPopupConfig=_.Pi("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.sY.prototype.onYtNavigate_=function(I){var y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);y&&(this.ytOpenPopupBehavior.openPopup(y),I.stopPropagation(),I.preventDefault())};
_.mD.Object.defineProperties(_.sY,{template:{configurable:!0,enumerable:!0,get:function(){if(plz===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;nvP===void 0&&(nvP=document.createElement("template"));var F=nvP;D.call(y,F.content.cloneNode(!0),I.content.firstChild);plz=I}I=plz;return I}}});
_.sY.prototype.onYtNavigate_=_.sY.prototype.onYtNavigate_;_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],_.sY.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Q(_.fEM.YtButtonBehavior),_.A("design:type",Object)],_.sY.prototype,"ytButtonBehavior",void 0);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.sY.prototype,"onYtNavigate_",null);
_.W([_.I6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:IDW})],_.sY);var yNf;var Dhu=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live"),V3=function(){var I=_.k.apply(this,arguments)||this;I.isPressed=!1;I.forceIconButton=!1;I.forceIconOnly=!1;I.forceModernIconButton=!1;I.skipCommandHandling=!1;I.alignByText=!1;I.fitToVisibleBounds=!0;I.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};I.onTap=function(y){_.lj(I.hostElement,"yt-service-request-sent-button-renderer",y)};
return I};
_.E(V3,_.k);_.L=V3.prototype;_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.L.onClick=function(I){var y,D=this.disabled||((y=this.data)==null?void 0:y.isDisabled);y=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");D&&y&&I.stopPropagation()};
_.L.computeIcon=function(){var I,y,D=(I=this.data)==null?void 0:(y=I.icon)==null?void 0:y.iconType;if(D)return _.pQ(D)};
_.L.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.L.handleUpdateButtonAction=function(I){I=_.u(I,g0W);var y=_.u(I==null?void 0:I.updatedButton,_.S1);if(this.data&&I&&y){var D=this.data;D.targetId&&I.targetId&&D.targetId===I.targetId&&(this.data=y)}};
_.mD.Object.defineProperties(V3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var I=this;if(this.data){var y=f9L({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.lj(I.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.lj(I.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});y.alignByText=this.alignByText;return y}}}});
_.mD.Object.defineProperties(V3,{template:{configurable:!0,enumerable:!0,get:function(){if(yNf===void 0){var I=document.createElement("template");_.G(I,'\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>');yNf=I}I=yNf;return I}}});
V3.prototype.onClick=V3.prototype.onClick;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],V3.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"isPressed",void 0);
_.W([_.M(),_.A("design:type",Object)],V3.prototype,"forceIconButton",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"forceIconOnly",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"forceModernIconButton",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"skipCommandHandling",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"alignByText",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"buttonTooltipPosition",void 0);
_.W([_.M(),_.A("design:type",Object)],V3.prototype,"fitToVisibleBounds",void 0);_.W([_.M({computed:"computeTooltip(data)"}),_.A("design:type",Object)],V3.prototype,"tooltip",void 0);_.W([_.M(),_.A("design:type",Object)],V3.prototype,"overrides",void 0);_.W([_.M(),_.A("design:type",Boolean)],V3.prototype,"disabled",void 0);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],V3.prototype,"onClick",null);
_.W([_.Y("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.A("design:type",Object),_.A("design:paramtypes",[])],V3.prototype,"computedButtonShape",null);_.W([_.I6({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Dhu,cssBuildOptOut:!0}),_.I6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Dhu,cssBuildOptOut:!0})],V3);var FYe;var REM;var Z8=function(){var I=_.k.apply(this,arguments)||this;I.empty_=!0;I.loadTime=Infinity;I.pendingPaint=!1;I.hasChange_=!1;I.oldThumbnail_=null;I.oldDelayedSrc_="";I.objectURL_=null;return I};
_.E(Z8,_.k);_.L=Z8.prototype;_.L.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.L.ready=function(){var I=this.shouldShowPlaceholder_();_.Ye(this.hostElement,"no-transition",!0);I&&this.hostElement.classList.add("with-placeholder")};
_.L.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.L.isThumbPreloaded_=function(I){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",I)};
_.L.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||Oru};
_.L.computeThumbnailSrc_=function(I){return I&&I.thumbnails?_.hf(I.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.L.computeAlt_=function(){var I=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&I||""};
_.L.thumbnailChanged_=function(){var I=_.J([this.thumbnail,this.oldThumbnail_]),y=I.next().value;I=I.next().value;this.oldThumbnail_=y;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(I=this.computeThumbnailSrc_(I),this.computeThumbnailSrc_(y)===I))return;_.l("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(y)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):y&&_.KR("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.YC(this,this.onReload_):_.YC(this,this.onShow_):this.resetImage_();y&&(this.hostElement.style.opacity=""+y.opacity)}};
_.L.delayedSrcChanged_=function(){var I=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===I||this.resetImage_()};
_.L.setSrc_=function(I){I?(_.XB(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.XB(this.hostElement).querySelector("#img").src=I):(_.XB(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.L.resetImage_=function(){plS(this.hostElement);this.empty_=!0;this.setSrc_(Oru);this.ytRendererBehavior.invalidate(!1)};
_.L.observePlaceholderColor_=function(){var I=this.thumbnail&&this.thumbnail.placeholderColor;I?this.hostElement.style.backgroundColor=_.Vp(I):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.L.onLoad_=function(){_.XB(this.hostElement).querySelector("#img").src&&_.XB(this.hostElement).querySelector("#img").src!==Oru&&(nvA(this.hostElement),this.notifyOnLoaded&&_.lj(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.L.onError_=function(){var I=this;if(_.l("web_use_cache_for_image_fallback"))c7q(_.XB(this.hostElement).querySelector("#img").src).then(function(y){I.objectURL_=_.Z0(y).toString();I.setSrc_(I.objectURL_)}).catch(function(){_.l("kevlar_woffle_fallback_image")&&I.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.L.onPrescanVisible=function(){this.onShow_()};
_.L.onVisible=function(){if(_.l("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.L.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var I=this.computeSrc_();I!==_.XB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(I))}};
_.L.onReload_=function(){this.empty_=!1;var I=this.computeSrc_();I!==_.XB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(I))};
_.L.shouldShowPlaceholder_=function(){return _.l("kevlar_thumbnail_bg")};
Z8.prototype.observePlaceholderColor_=Z8.prototype.observePlaceholderColor_;Z8.prototype.delayedSrcChanged_=Z8.prototype.delayedSrcChanged_;Z8.prototype.thumbnailChanged_=Z8.prototype.thumbnailChanged_;_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"alt",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Z8.prototype,"ariaHidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"ariaLabel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"hidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"id",void 0);_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],Z8.prototype,"ytVisibilityBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",String)],Z8.prototype,"delayedSrc",void 0);
_.W([_.M(),_.A("design:type",Object)],Z8.prototype,"thumbnail",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"loaded",void 0);_.W([_.M(),_.A("design:type",Boolean)],Z8.prototype,"notifyOnLoaded",void 0);_.W([_.M(),_.A("design:type",Number)],Z8.prototype,"height",void 0);_.W([_.M(),_.A("design:type",Number)],Z8.prototype,"width",void 0);_.W([_.M({value:function(){return"width"}}),
_.A("design:type",String)],Z8.prototype,"dimension",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"fit",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"fitHeight",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"fitWidth",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"objectFit",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"objectPosition",void 0);_.W([_.M(),_.A("design:type",String)],Z8.prototype,"preferredThumbnail",void 0);_.W([_.M({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.A("design:type",String)],Z8.prototype,"alt_",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Z8.prototype,"sharedTooltipText",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Z8.prototype,"ftlEligible",void 0);_.W([_.M({value:void 0}),_.A("design:type",String)],Z8.prototype,"observeHiddenOption",void 0);_.W([_.M({value:"observe_once"}),_.A("design:type",String)],Z8.prototype,"observePrescanOption",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Z8.prototype,"roundedContainer",void 0);
_.W([_.Bp("thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z8.prototype,"thumbnailChanged_",null);_.W([_.Bp("delayedSrc"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z8.prototype,"delayedSrcChanged_",null);_.W([_.ke("thumbnail.placeholderColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Z8.prototype,"observePlaceholderColor_",null);
_.W([_.I6({is:"yt-img-shadow",disableElementRegistration:!0})],Z8);var Oru=_.KR("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Xf()(Z8,"yt-img-shadow",function(){if(REM===void 0){var I=document.createElement("template");_.G(I,'\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">');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;FYe===void 0&&(FYe=document.createElement("template"));var F=FYe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);REM=I}I=REM;return I},{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 CJL;_.gi=new _.uk("SCREEN_MANAGER_TOKEN");CJL=new _.uk("LOG_INITIAL_SCREEN_TOKEN");var LYP=ep({entities:{}});_.It=TJ(LYP)(LYP.entities,{selectSfvAudioItemPlaybackState:function(I,y){var D,F;I=(F=_.nC(I,"sfvAudioItemCurrentlyPlayingEntity",y))!=null?F:void 0;return(D=I==null?void 0:I.sfvAudioItemPlaybackState)!=null?D:void 0},
playlistLoopStateEntitySelector:m6q,toggleMenuServiceItemEntitySelector:Mmo});_.yJ=_.d(function(I){function y(T){return _.u(T,_.Kb)}
function D(){var T=F().isTogglingDisabled||X()&&F().toggledIsTogglingDisabled,L5=T||h()?X():!X();f(L5);z(!1);if(!T){var vH;(vH=w)==null||vH(!!L5)}var u_;((u_=O)==null?0:u_())||_.Cb(_.nR().resolve(_.gi),F().trackingParams);var jW;if(!L5||!y(F().defaultButtonViewModel)||(jW=O)!=null&&jW()){var xA;!y(F().toggledButtonViewModel)||((xA=O)==null?0:xA())||_.Cb(_.nR().resolve(_.gi),y(F().toggledButtonViewModel).trackingParams)}else _.Cb(_.nR().resolve(_.gi),y(F().defaultButtonViewModel).trackingParams)}
var F=I.data,R=I.buttonShapeOverrides,O=I.disableExplicitClickLogging,w=I.onToggle,v=I.style,P=I.useOutlinedIcon,K=I.className,r=function(){var T,L5;return X()?(T=I.animatedTextPropsToggled)==null?void 0:T.call(I):(L5=I.animatedTextPropsDefault)==null?void 0:L5.call(I)},N=_.su(function(){return r()?Object.assign({},r(),{shouldAnimate:m()}):void 0},void 0,"Zp4uoe"),h=function(){var T;
return((T=H())==null?void 0:T.isToggled)!==void 0},x=_.J(_.N4(function(){var T,L5,vH;
return h()?(T=H())==null?void 0:T.isToggled:(vH=R==null?void 0:(L5=R())==null?void 0:L5.toggled)!=null?vH:F().isToggled})),q=x.next().value;
x=x.next().value;var X=q,f=x;x=_.J(_.N4(function(){var T,L5;return(T=I.animatedTextPropsToggled)==null?void 0:(L5=T.call(I))==null?void 0:L5.shouldAnimate}));
q=x.next().value;x=x.next().value;var m=q,z=x;q=_.J(_.$M(!1,void 0,"mq3Zfe"));var B=q.next().value,C=q.next().value,H=_.dV(function(T){a:{var L5=F().entityKey,vH=F().toggledStateEntitySelectorType;if(vH)switch(vH){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!L5)break;T=_.It.selectSfvAudioItemPlaybackState(T,L5);if(T==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){T={isToggled:!0};break a}if(T){T={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":T={isToggled:_.a9q(T).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":T={isToggled:_.a9q(T).includes("engagement-panel-live-chat-item-section")};break a;default:_.tq(new _.g6("Error: entitySelectorType defined but not matched in selector.",T,vH))}T=void 0}return T}),e=function(){return Object.assign({},R==null?void 0:R(),{onToggle:D,
toggleable:!0,toggled:X(),focused:B()})};
return _.t("toggle-button-view-model",{"on:focusin":_.YY(function(){var T=_.nR().resolve(_.fR(_.Q3));T&&C(T.isKeyBoardInUse());return!1}),
"on:focusout":_.YY(function(){C(!1);return!1})},_.t(_.U,{cond:function(){return X()?y(F().toggledButtonViewModel):y(F().defaultButtonViewModel)},
then:function(T){return _.t(_.My,{data:T,className:K,style:v,useOutlinedIcon:P,buttonOverrides:e,animatedTextProps:N})}}))},"fa");
_.yJ.idomCompat={callbacks:{onToggle:!0}};_.NK(_.d(function(I){return _.t("yt-toggle-button-view-model",{class:function(){var y;return(y=I.scopingClassName)==null?void 0:y.call(I)}},_.t(_.yJ,{data:function(){var y;
return(y=I.data)==null?void 0:y.call(I)},
buttonShapeOverrides:function(){var y;return(y=I.overrides)==null?void 0:y.call(I)},
animatedTextPropsDefault:function(){var y;return(y=I.animatedTextPropsDefault)==null?void 0:y.call(I)},
animatedTextPropsToggled:function(){var y;return(y=I.animatedTextPropsToggled)==null?void 0:y.call(I)},
disableExplicitClickLogging:function(){var y;return(y=I.disableExplicitClickLogging)==null?void 0:y.call(I)},
onToggle:function(y){var D;return(D=I.onToggle)==null?void 0:D.call(I,y)},
style:function(){var y;return(y=I.style)==null?void 0:y.call(I)},
useOutlinedIcon:function(){var y;return(y=I.useOutlinedIcon)==null?void 0:y.call(I)},
className:function(){var y;return(y=I.className)==null?void 0:y.call(I)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.om,
buttonShapeOverrides:_.om,overrides:_.om,animatedTextPropsDefault:_.om,animatedTextPropsToggled:_.om,disableExplicitClickLogging:_.om,onToggle:_.rV,style:_.om,useOutlinedIcon:_.om,className:_.om,scopingClassName:_.om}});var Dg=function(){return _.k.apply(this,arguments)||this};
_.E(Dg,_.k);Dg.prototype.onTap=function(I){I.stopPropagation();I=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.V0("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:I})):this.ytLiveChatReduxBehavior.dispatch(_.WS("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:I}))};
_.mD.Object.defineProperties(Dg.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.engagementState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=_.u(this.data.toggleButton,_.r7),y;if(Number(((y=this.likeCountState)==null?void 0:y.likeCountIfIndifferentNumber)||"0")===0){var D;y=((D=this.data.likeCountPlaceholder)==null?void 0:D.content)||""}else{var F,R,O;y=((F=this.likeCountState)==null?void 0:(R=F.likeCountIfIndifferent)==null?void 0:R.content)||((O=this.data.likeCountPlaceholder)==null?void 0:O.content)||""}var w,v;D=((w=this.likeCountState)==null?void 0:(v=
w.likeCountIfLiked)==null?void 0:v.content)||"1";w=_.u(I.toggledButtonViewModel,_.Kb);return Object.assign({},I,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.u(I.defaultButtonViewModel,_.Kb),{title:y})},toggledButtonViewModel:{buttonViewModel:Object.assign({},w,{title:D})}})}}}});
Dg.prototype.onTap=Dg.prototype.onTap;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Dg.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],Dg.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dg.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.likeCountEntityKey"],selector:c8J}),_.A("design:type",Object)],Dg.prototype,"likeCountState",void 0);_.W([_.M({selectorArgs:["data.engagementStateKey"],selector:HrB}),_.A("design:type",Object)],Dg.prototype,"engagementState",void 0);_.W([_.Y("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Dg.prototype,"isLiked",null);
_.W([_.Y("data","likeCountState","isLiked"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dg.prototype,"toggleButton",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Dg.prototype,"onTap",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Dg);
_.a(Dg,"yt-live-chat-like-button-view-model",function(){if(vvM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;wln===void 0&&(wln=document.createElement("template"));var F=wln;D.call(y,F.content.cloneNode(!0),I.content.firstChild);vvM=I}I=vvM;return I},{mode:0});var JNu;var wDz;var FX=function(){return _.k.apply(this,arguments)||this};
_.E(FX,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FX.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],FX);
_.a(FX,"yt-live-chat-paid-message-footer-renderer",function(){if(wDz===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;JNu===void 0&&(JNu=document.createElement("template"));var F=JNu;D.call(y,F.content.cloneNode(!0),I.content.firstChild);wDz=I}I=wDz;return I},{mode:0});var vq_;var STc;var t3e;var PTu,KYu=function(){if(PTu!==void 0)return PTu;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;t3e===void 0&&(t3e=document.createElement("template"));var F=t3e;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return PTu=I};var Rt=function(){return _.k.apply(this,arguments)||this};
_.E(Rt,_.k);Rt.prototype.onTap=function(I){I.stopPropagation()};
_.mD.Object.defineProperties(Rt.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=_.u(this.data.replyButton,_.Kb),y,D,F,R,O,w,v,P=Number(((y=this.replyCountState)==null?void 0:y.replyCountNumber)||"0")===0?(D=this.data)==null?void 0:(F=D.replyCountPlaceholder)==null?void 0:F.content:((R=this.replyCountState)==null?void 0:(O=R.replyCount)==null?void 0:O.content)||((w=this.data)==null?void 0:(v=w.replyCountPlaceholder)==null?void 0:v.content)||"",K;return Object.assign({},
I,{title:P,accessibilityText:(K=this.replyCountState)==null?void 0:K.replyButtonAccessibilityText})}}}});
_.mD.Object.defineProperties(Rt,{template:{configurable:!0,enumerable:!0,get:function(){return KYu()}}});
Rt.prototype.onTap=Rt.prototype.onTap;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],Rt.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Rt.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.replyCountEntityKey"],selector:function(I,y){return _.nC(I.entities,"replyCountEntity",y)}}),
_.A("design:type",Object)],Rt.prototype,"replyCountState",void 0);_.W([_.Y("data","replyCountState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rt.prototype,"buttonViewModel",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Rt.prototype,"onTap",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Rt);_.a(Rt,"yt-live-chat-reply-button-view-model",function(){return KYu()},{mode:0});var Uhg;var rNu;var Oy=function(){var I=_.k.apply(this,arguments)||this;I.ariaLabel="";return I};
_.E(Oy,_.k);
Oy.prototype.dataChanged=function(){for(var I=(0,_.ng)(_.XB(this.hostElement).querySelector("#image"));I.firstChild;)I.removeChild(I.firstChild);if(this.data)if(this.data.icon){var y=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(y.polymerController.icon="yt-sys-icons:shield_empty",y.polymerController.defaultToFilled=!0):y.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();I.appendChild(y)}else if(this.data.customThumbnail){y=document.createElement("img");
var D=_.q8o(this.data.customThumbnail.thumbnails,16);D?(y.src=D,I.appendChild(y),y.setAttribute("alt",this.hostElement.ariaLabel||"")):_.tq(new _.g6("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Oy.prototype.identity=function(I){return I};
Oy.prototype.computeType=function(I){return YE(I||void 0)};
Oy.prototype.dataChanged=Oy.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],Oy.prototype,"data",void 0);_.W([_.M({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.A("design:type",Object)],Oy.prototype,"ariaLabel",void 0);_.W([_.M({computed:"computeType(data)",reflectToAttribute:!0}),_.A("design:type",String)],Oy.prototype,"type",void 0);
_.W([_.M({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.A("design:type",String)],Oy.prototype,"sharedTooltipText",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_new_shield_moderator_badge")}}),
_.A("design:type",Boolean)],Oy.prototype,"enableNewModeratorBadge",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oy.prototype,"dataChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Oy);
_.a(Oy,"yt-live-chat-author-badge-renderer",function(){if(rNu===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Uhg===void 0&&(Uhg=document.createElement("template"));var F=Uhg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);rNu=I}I=rNu;return I},{mode:0});var jwg;var oqR;var LY=function(){return _.k.apply(this,arguments)||this};
_.E(LY,_.k);_.L=LY.prototype;_.L.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"}}}}};
_.L.computeBadgesInsideChip=function(I){return I?I.filter(function(y){return YE(y.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.L.computeBadgesOutsideChip=function(I){return this.prependChatBadges||!I?[]:I.filter(function(y){y=YE(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"})};
_.L.computeBadgesBeforeChip=function(I){return this.prependChatBadges&&I?I.filter(function(y){y=YE(y.liveChatAuthorBadgeRenderer);return y!=="verified"&&y!=="owner"}):[]};
_.L.computeIsHighlighted=function(I,y){var D=!!wT_(I,"owner"),F=!!wT_(I,"verified");I=!!wT_(I,"moderator");return(D||F&&!I)&&!y};
_.L.computeAuthorType=function(I){return JDW(I)};
_.L.computeAuthorClass=function(I,y){return y?(I?I+" ":"")+"single-line":I};
_.L.onSeedColorChanged=function(){_.l("live_chat_author_name_color_usernames")||_.l("live_chat_seed_color_usernames")||_.l("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):_.l("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
LY.prototype.onSeedColorChanged=LY.prototype.onSeedColorChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],LY.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],LY.prototype,"authorName",void 0);_.W([_.M(),_.A("design:type",Array)],LY.prototype,"authorBadges",void 0);
_.W([_.M({computed:"computeAuthorType(authorBadges)"}),_.A("design:type",String)],LY.prototype,"authorType",void 0);_.W([_.M({computed:"computeAuthorClass(authorType, singleLine)"}),_.A("design:type",String)],LY.prototype,"authorClass",void 0);_.W([_.M({computed:"computeBadgesInsideChip(authorBadges)"}),_.A("design:type",Array)],LY.prototype,"badgesInsideChip",void 0);_.W([_.M({computed:"computeBadgesOutsideChip(authorBadges)"}),_.A("design:type",Array)],LY.prototype,"badgesOutsideChip",void 0);
_.W([_.M({computed:"computeBadgesBeforeChip(authorBadges)"}),_.A("design:type",Array)],LY.prototype,"badgesBeforeChip",void 0);_.W([_.M({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.A("design:type",Boolean)],LY.prototype,"isHighlighted",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_new_shield_moderator_badge")}}),
_.A("design:type",Boolean)],LY.prototype,"enableNewModeratorTextColor",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],LY.prototype,"singleLine",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],LY.prototype,"disableHighlighting",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],LY.prototype,"dashboardMoneyFeed",void 0);_.W([_.M({value:_.l("live_chat_prepend_badges"),reflectToAttribute:!0}),_.A("design:type",Boolean)],LY.prototype,"prependChatBadges",void 0);
_.W([_.M(),_.A("design:type",String)],LY.prototype,"authorNameColor",void 0);_.W([_.a0("#author-name"),_.A("design:type",HTMLDivElement)],LY.prototype,"username",void 0);_.W([_.ke("authorNameColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LY.prototype,"onSeedColorChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],LY);
_.a(LY,"yt-live-chat-author-chip",function(){if(oqR===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;jwg===void 0&&(jwg=document.createElement("template"));var F=jwg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);oqR=I}I=oqR;return I},{mode:0});var Nwg;var hEM;var Jm=function(){var I=_.k.apply(this,arguments)||this;I.debounceCommand=_.TQ(function(y){I.ytComponentBehavior.resolveCommand(y)},1500);
return I};
_.E(Jm,_.k);Jm.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var I=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",y,D,F=this.isHearted?(y=this.data)==null?void 0:y.unheartCommand:(D=this.data)==null?void 0:D.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.V0("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:I}));(I=_.yz(F))&&this.debounceCommand(I)}};
_.mD.Object.defineProperties(Jm.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var I,y;if(!((I=this.data)==null?0:(y=I.creatorThumbnail)==null?0:y.sources))return{};I={thumbnails:[]};y={};y.url=this.data.creatorThumbnail.sources[0].url;I.thumbnails.push(y);return I}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.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}}});
Jm.prototype.onTap=Jm.prototype.onTap;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],Jm.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Jm.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.engagementStateKey"],selector:HrB}),_.A("design:type",Object)],Jm.prototype,"engagementState",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jm.prototype,"thumbnailDetails",null);_.W([_.Y("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jm.prototype,"isHearted",null);_.W([_.Y("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jm.prototype,"isEditable",null);
_.W([_.Y("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jm.prototype,"showCreatorView",null);_.W([_.Y("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Jm.prototype,"showButton",null);_.W([_.Y("data","isHearted"),_.A("design:type",String),_.A("design:paramtypes",[])],Jm.prototype,"label",null);_.W([_.Y("data","isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jm.prototype,"heartHoverText",null);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jm.prototype,"onTap",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Jm);
_.a(Jm,"yt-live-chat-creator-heart-view-model",function(){if(hEM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Nwg===void 0&&(Nwg=document.createElement("template"));var F=Nwg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);hEM=I}I=hEM;return I},{mode:0});var xha=function(){this.internalMap={}};
_.L=xha.prototype;_.L.contains=function(I){return Object.prototype.hasOwnProperty.call(this.internalMap,I)};
_.L.get=function(I){if(this.contains(I))return this.internalMap[I]};
_.L.set=function(I,y){this.internalMap[I]=y};
_.L.getKeys=function(){return Object.keys(this.internalMap)};
_.L.remove=function(I){delete this.internalMap[I]};var wQ=function(){this.mappings=new xha;this.errorCallbacks=new Set};
wQ.prototype.getModuleId=function(I){return I.serviceId.getModuleId()};
wQ.prototype.get=function(I){a:{var y=this.mappings.get(I.toString());switch(y.type){case "mapping":I=y.value;break a;case "factory":y=y.value();this.mappings.set(I.toString(),{type:"mapping",value:y});I=y;break a;default:I=_.ya(y)}}return I};
wQ.prototype.registerService=function(I,y){this.mappings.set(I.toString(),{type:"mapping",value:y});return I};
wQ.prototype.onLoadError=function(I){var y=this;this.errorCallbacks.add(I);return function(){y.errorCallbacks.delete(I)}};
new wQ;var lDu=function(){};
_.L=lDu.prototype;
_.L.JSC$14445_getRequest=function(I,y,D){y=y===void 0?{}:y;D=D===void 0?fLn:D;var F=y;if(this.isNavigationCommand()){var R,O=(R=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:R.url;F=_.P$o(I.clickTrackingParams,!0,!1,O,this.JSC$14445_getClientScreen(F))}else F=_.P$o(I.clickTrackingParams,!1,this.includeCsn);F={context:F};if(R=this.getExtension(I))return this.JSC$14445_buildRequest(F,R,y),R=this.getApiUrl(I),O=Object.assign({},{command:I},this.getRequestConfig(I,y)),F={input:R,requestShell:vg(R),
innerTubeRequest:F,config:O},F.config.authStrategy?F.config.authStrategy.identity=D:F.config.authStrategy={identity:D},(I=this.JSC$14445_getRequestKey(I,y))&&!F.config.requestKey&&(F.config.requestKey=I),F;I=new _.g6("Error: Failed to create Request from Command.",I);_.vu(I)};
_.L.getApiUrl=function(I){var y=_.NP(this.getApiPaths(I)),D;(I=(D=_.u(I.commandMetadata,_.nE))==null?void 0:D.apiUrl)&&(y=I);return TbS(eRH(y))};
_.L.isNavigationCommand=function(){return!1};
_.L.JSC$14445_getClientScreen=function(){};
_.L.JSC$14445_getRequestKey=function(){};
_.L.getRequestConfig=function(){};
_.mD.Object.defineProperties(lDu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var v9=function(){};
_.E(v9,lDu);v9.prototype.JSC$14452_getStoreKey=function(){};
v9.prototype.JSC$14445_getRequestKey=function(I,y){y=y===void 0?{}:y;return this.JSC$14452_getStoreKey(I,y)};var Sx=function(){};
_.E(Sx,v9);Sx.prototype.JSC$14445_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:vg("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Sx.prototype.getApiPaths=function(){return[]};
Sx.prototype.getExtension=function(){};
Sx.prototype.JSC$14445_buildRequest=function(){};var uzu={},qTM=(uzu.GET_DATASYNC_IDS=yM(Sx),uzu);var EqW,GZu,XDz,mhO,tm,nqn,Qwz,fDO,YTf;EqW="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");GZu=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.Lt=function(I,y,D,F,R,O,w,v,P){this.endpointMap=I;this.networkManager=y;this.authService=D;this.responseProcessorMap=F;this.innertubeResponseStore=R;this.contextProcessors=O;this.asyncContextProcessors=w;this.localInnertubeRouter=v;this.requestSequencer=P;this.inflightRequests=new Map;I.signalEndpointMap||(I.signalEndpointMap={});I.signalEndpointMap=Object.assign({},qTM,I.signalEndpointMap)};
XDz=function(I,y,D,F,R,O,w,v,P){if(_.Lt.instance!==void 0){if(F=_.Lt.instance,I=[I!==F.endpointMap,y!==F.networkManager,D!==F.authService,R!==F.innertubeResponseStore,O!==F.contextProcessors,w!==F.asyncContextProcessors,v!==F.localInnertubeRouter],I.some(function(K){return K}))throw new _.g6("InnerTubeTransportService is already initialized",I);
}else _.Lt.instance=new _.Lt(I,y,D,F,R,O,w,v,P)};
_.wP=function(I,y,D){var F=F===void 0?fLn:F;var R=Qwz(I,y);return R?new _.AO(function(O,w){var v,P,K,r,N;return _.S(function(h){switch(h.nextAddress){case 1:return h.yield(R,2);case 2:v=h.yieldResult;P=v.JSC$14445_getRequest(y,D,F);if(!P){w(new _.g6("Error: Failed to build request for command.",y));h.jumpTo(0);break}DN(P.input);r=((K=P.requestShell)==null?void 0:K.mode)==="cors"?"cors":void 0;if(I.authService.syncHeaders){N=YTf(P.config,r);h.jumpTo(4);break}return h.yield(fDO(P.config,r),5);case 5:N=
h.yieldResult;case 4:O(nqn(I,P,N)),_.Cj(h)}})}):_.eE(new _.g6("Error: No request builder found for command.",y))};
mhO=function(I,y,D,F){var R=R===void 0?fLn:R;var O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e;return _.S(function(T){switch(T.nextAddress){case 1:O=iI5(y,I.endpointMap);if(!O)throw new _.g6("Error: No streaming request builder found for command",y);w=O.JSC$14445_getRequest(y,D,R);if(!w)throw new _.g6("Failed to build YtRequest for streaming Command",y);if((v=I.localInnertubeRouter)==null||!v.shouldPreferLocalResponse(w.input,w.innerTubeRequest)){T.jumpTo(2);break}return T.yield(I.localInnertubeRouter.localInnertubeResponse(w.input,
w.innerTubeRequest),3);case 3:return P=T.yieldResult,K={},P.playerResponse&&(tm(I,P.playerResponse,w),K.player=P.playerResponse,(r=F)==null||r(K,P)),P.watchNextResponse&&(tm(I,P.watchNextResponse,w),K.content=P.watchNextResponse,(N=F)==null||N(K,P)),T.return(K);case 2:x=((h=w.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(I.authService.syncHeaders){q=YTf(w.config,x);T.jumpTo(4);break}return T.yield(fDO(w.config,x),5);case 5:q=T.yieldResult;case 4:return m=(f=(X=w.requestShell)==null?
void 0:X.headers)!=null?f:{},w.requestShell=Object.assign({},w.requestShell,{headers:Object.assign({},m,q)}),z=Object.assign({},w.requestShell),B=JSON.stringify(w.innerTubeRequest),w.requestShell.method==="POST"&&(z=Object.assign({},z,{body:B})),C=function(L5,vH){tm(I,vH.playerResponse||vH.watchNextResponse||vH.reelItemWatchResponse||vH.reelWatchSequenceResponse,w);F==null||F(L5,vH);_.l("web_watch_stop_scheduler_on_player_response")&&vH.playerResponse&&z3_()},H={},T.yield(pDg(I.networkManager,w.input,
z,C),6);
case 6:return H=T.yieldResult,((e=w.config)==null?0:e.responseTick)&&_.V_(w.config.responseTick),T.return(H)}})};
_.U3=function(I,y,D,F,R){R=R===void 0?{authStrategy:{identity:fLn}}:R;var O=O===void 0?!0:O;var w=function(){};
w=RSo(DF_(D));y.context||(y.context=_.P$o(F,O));return new _.AO(function(v){var P,K,r,N,h;return _.S(function(x){if(x.nextAddress==1)return P=eRH(D),K=_.we(P),I.authService.syncHeaders?(r=YTf(R,K),x.jumpTo(2)):x.yield(fDO(R,K),3);x.nextAddress!=2&&(r=x.yieldResult);N=TbS(eRH(D));h={input:N,requestShell:vg(N),innerTubeRequest:y,config:R};v(nqn(I,h,r,w));_.Cj(x)})})};
tm=function(I,y,D){var F;if(y&&!(y==null?0:(F=y.sequenceMetaData)==null?0:F.skipProcessing)&&I.responseProcessorMap){F=_.J(EqW);for(var R=F.next();!R.done;R=F.next())R=R.value,I.responseProcessorMap[R]&&I.responseProcessorMap[R].handleResponse(y,D)}};
nqn=function(I,y,D,F){F=F===void 0?function(){}:F;
var R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq,$A,BH,jf,yg,eW,oe,xP,XW,zo,Ub,rq,ao,rc,Ta,f_;return _.S(function(mM){switch(mM.nextAddress){case 1:w=(R=y.config)==null?void 0:(O=R.storeStrategy)==null?void 0:O.storeKey;if(!(w&&I.innertubeResponseStore&&I.innertubeResponseStore.has(w))||((v=y.config)==null?0:(P=v.storeStrategy)==null?0:P.disableCache)){mM.jumpTo(2);break}return mM.yield(I.innertubeResponseStore.get(w),3);case 3:K=mM.yieldResult;if(!K||K.isExpired()){mM.jumpTo(2);break}r=
_.qv(K);if(!_.l("web_process_response_store_responses")||K.isProcessed()){mM.jumpTo(5);break}tm(I,r,y);return mM.yield(I.innertubeResponseStore.markAsProcessed(w),5);case 5:return mM.return(Promise.resolve(r));case 2:if(!((N=y)==null?0:(h=N.innerTubeRequest)==null?0:h.context)){mM.jumpTo(7);break}x=y.innerTubeRequest.context;if(!(I.asyncContextProcessors&&I.asyncContextProcessors.length>0)){mM.jumpTo(8);break}q=[];X=_.J(I.asyncContextProcessors);for(f=X.next();!f.done;f=X.next())m=f.value,z=m.processContext(y),
z.wrappedPromise_&&q.push(z.wrappedPromise_);if(!(q.length>0)){mM.jumpTo(8);break}return mM.yield(Promise.all(q),8);case 8:B=_.J(I.contextProcessors||[]),C=B.next();case 11:if(C.done){mM.jumpTo(7);break}H=C.value;return mM.yield(H.processContext(x),12);case 12:C=B.next();mM.jumpTo(11);break;case 7:if((e=I.localInnertubeRouter)==null||!e.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){mM.jumpTo(15);break}return mM.yield(I.localInnertubeRouter.localInnertubeResponse(y.input,y.innerTubeRequest),
16);case 16:return T=mM.yieldResult,tm(I,T,y),mM.return(T);case 15:return(u_=(vH=y.config)==null?void 0:vH.requestKey)&&I.inflightRequests.has(u_)?L5=I.inflightRequests.get(u_):(jW=JSON.stringify(y.innerTubeRequest),$A=(dq=(xA=y.requestShell)==null?void 0:xA.headers)!=null?dq:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},$A,D)}),BH=Object.assign({},y.requestShell),y.requestShell.method==="POST"&&(BH=Object.assign({},BH,{body:jW})),((jf=y.config)==null?0:jf.requestTick)&&
_.V_(y.config.requestTick),yg=function(){return I.networkManager.fetch(y.input,BH,y.config)},L5=I.requestSequencer?M3u(I.requestSequencer,y,yg):yg(),u_&&I.inflightRequests.set(u_,L5)),mM.yield(L5,17);
case 17:(eW=mM.yieldResult)&&_.l("web_streaming_player")&&Array.isArray(eW)&&(eW=eW[0].playerResponse);if(eW&&"error"in eW&&((oe=eW)==null?0:(xP=oe.error)==null?0:xP.details))for(XW=eW.error.details,zo=_.J(XW),Ub=zo.next();!Ub.done;Ub=zo.next())rq=Ub.value,(ao=rq["@type"])&&GZu.indexOf(ao)>-1&&(delete rq["@type"],eW=rq);u_&&I.inflightRequests.has(u_)&&I.inflightRequests.delete(u_);((rc=y.config)==null?0:rc.responseTick)&&_.V_(y.config.responseTick);if(eW||(Ta=I.localInnertubeRouter)==null||!Ta.canProvideFallbackResponse(y.input,
y.innerTubeRequest)){mM.jumpTo(18);break}return mM.yield(I.localInnertubeRouter.localFallbackInnertubeResponse(y.input,y.innerTubeRequest),19);case 19:eW=mM.yieldResult;case 18:return tm(I,eW,y),((f_=y.config)==null?0:f_.processorTick)&&_.V_(y.config.processorTick),F(),mM.return(eW||void 0)}})};
_.JZ=function(I,y){return Bgq(y,I.endpointMap)};
Qwz=function(I,y){I=A8W(y,I.endpointMap);if(I!==void 0)return Promise.resolve(I)};
fDO=function(I,y){var D,F,R,O;return _.S(function(w){if(w.nextAddress==1){R=(D=I)==null?void 0:(F=D.authStrategy)==null?void 0:F.sessionIndex;var v=w.yield;var P=_.Xs(V7J({sessionIndex:R}));return v.call(w,P,2)}O=w.yieldResult;return w.return(Promise.resolve(Object.assign({},$6t(y),O)))})};
YTf=function(I,y){var D;I=I==null?void 0:(D=I.authStrategy)==null?void 0:D.sessionIndex;D=V7J({sessionIndex:I});return Object.assign({},$6t(y),D)};var zEa,kZg,dhG,aDf,cNa,WYW,irf,ANe,Uy,$hW,brn,Bwe,Hrg;zEa=0;kZg=/tone[1-5]/;dhG=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");aDf="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
cNa=Number.MAX_SAFE_INTEGER;WYW=RegExp("\ufe0f","g");_.P9=function(I){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;I&&_.CTO(this,I)};
_.CTO=function(I,y){try{_.AG(y,{context:I,onSuccess:function(F,R){Array.isArray(R)?I.load(R):(F=new _.g6("Emoji manager JSON response was not an array!",{response:R}),_.vu(F))},
onError:function(F){F=new _.g6("Failed to retrieve emoji manager initial JSON data!",{url:y,statusCode:_.ci(F).toString()});_.tq(F)}})}catch(F){var D=new _.g6("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:y});
_.tq(D)}};
_.P9.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.P9.prototype.load=function(I,y){if(y)if(I.length)I=I.concat(y.emojis);else{this.emojis=y.emojis;this.emojiMap=y.emojiMap;this.emojiShortcutMap=y.emojiShortcutMap;this.emojiShortcutCharMap=Bwe(y);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=y.emojiRegex;return}this.emojis=[].concat(_.Td(new Set(this.emojis.concat(I))));this.hasInitializedShortcutCharMap=!1;I=Array(this.emojis.length);for(y=0;y<this.emojis.length;y++){var D=this.emojis[y];if(D.emojiId){this.emojiMap[D.emojiId]=D;this.emojiMap[D.emojiId].index=
y;for(var F=0;D.shortcuts&&F<D.shortcuts.length;F++)this.emojiShortcutMap[D.shortcuts[F].toLocaleLowerCase()]=D;I[y]=D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId}}I.sort(function(R,O){return O.length-R.length});
if(I.length)try{this.emojiRegex=new RegExp(I.join("|").replace("*","\\*"),"gi")}catch(R){this.emojiRegex=/$./}else this.emojiRegex=/$./};
irf=function(I,y){y=_.J(y);for(var D=y.next();!D.done;D=y.next()){var F=D.value;if(F.emojiId&&I.emojiMap[F.emojiId]){D=Object.assign({},I.emojiMap[F.emojiId],F);I.emojiMap[F.emojiId]=D;var R=void 0;D.index&&((R=I.emojis[D.index])==null?void 0:R.emojiId)===F.emojiId&&(I.emojis[D.index]=D);F=void 0;if((F=D.shortcuts)==null?0:F.length)for(I.hasInitializedShortcutCharMap=!1,F=_.J(D.shortcuts),R=F.next();!R.done;R=F.next())I.emojiShortcutMap[R.value.toLocaleLowerCase()]=D}}};
ANe=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(_.DI.getInstance(),2);if(F.nextAddress!=3)return(y=F.yieldResult)?F.yield(y.get("ytlc-emoji-pref"),3):F.return();(D=F.yieldResult)&&irf(I,Object.keys(D).map(function(R){return{emojiId:R,stickyPrefId:D[R]}}).filter(function(R){return!!R.emojiId&&!!R.stickyPrefId}));
_.Cj(F)})};
_.KY=function(I,y,D){return(I=I.emojiMap[y])&&(!I.isLocked||D!==void 0&&D)?I:void 0};
Uy=function(I,y,D){D=_.KY(I,y,D===void 0?!1:D);var F=y.match("\u200d");D&&I.skinTone!==0&&(I=(F==null?void 0:F.length)===1?_.KY(I,y.replace("\u200d",dhG[I.skinTone]+"\u200d")):_.KY(I,y+dhG[I.skinTone]))&&(D=I);return D};
$hW=function(I,y){var D=I.emojiMap[y];return(D==null?0:D.stickyPrefId)?I.emojiMap[D.stickyPrefId]:Uy(I,y)};
_.GE=function(I,y){I=I.emojiShortcutMap[y.toLocaleLowerCase()];return!I||I.isLocked?null:I};
brn=function(I,y,D){return Bwe(I,D===void 0?!1:D)[y]||{}};
Bwe=function(I,y){y=y===void 0?!1:y;if(!I.hasInitializedShortcutCharMap){I.hasInitializedShortcutCharMap=!0;for(var D=0;D<I.emojis.length;D++){var F=I.emojis[D];if(!(F.isLocked||y&&F.isCustomEmoji&&F.emojiId&&!I.pickerCustomEmojiIds.includes(F.emojiId)))for(var R=0;F.shortcuts&&R<F.shortcuts.length;R++){var O=F.shortcuts[R];O.startsWith(":_")&&F.isCustomEmoji&&(I.emojiShortcutCharMap[":_"]==null&&(I.emojiShortcutCharMap[":_"]=Object.create(null)),I.emojiShortcutCharMap[":_"][O]=F);if(!(O.length<3||
!F.isCustomEmoji&&kZg.test(O))){var w=O.substr(0,3).toLocaleLowerCase();I.emojiShortcutCharMap[w]==null&&(I.emojiShortcutCharMap[w]=Object.create(null));I.emojiShortcutCharMap[w][O]=F}}}}return I.emojiShortcutCharMap};
_.P9.prototype.createEmoji=function(I,y){y=y===void 0?!0:y;var D=document.createElement("img");I.isCustomEmoji||D.classList.add("small-emoji");D.classList.add("emoji");D.classList.add("yt-formatted-string");D.src=I.image?_.hf(I.image.thumbnails,this.emojiSize)||"":"";var F=void 0;I.image&&I.image.accessibility&&I.image.accessibility.accessibilityData&&(F=I.image.accessibility.accessibilityData.label);D.alt=F?F:(I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId)||"";I.isCustomEmoji&&(D.dataset.emojiId=
I.emojiId);_.fz&&(D.setAttribute("contenteditable","false"),D.setAttribute("unselectable","on"));y&&(I.shortcuts&&I.shortcuts.length&&D.setAttribute("shared-tooltip-text",I.shortcuts[0]),D.id="emoji-"+zEa++);return D};
_.P9.prototype.createDocumentFragment=function(I,y,D,F){y=y===void 0?!1:y;D=D===void 0?!0:D;F=F===void 0?!1:F;I=I.replace(WYW,"");for(var R=document.createDocumentFragment(),O=0,w,v=0;(w=this.emojiRegex.exec(I))!=null;){var P=_.KY(this,w[0])||_.GE(this,w[0]);!P||P.isCustomEmoji&&!y||(P=this.createEmoji(P,D),O!==w.index&&R.appendChild(document.createTextNode(I.substring(O,w.index))),R.appendChild(P),O=w.index+w[0].length,v++)}if(!F||v)return R.appendChild(document.createTextNode(I.substr(O))),R};
Hrg=function(I,y,D){var F,R,O,w,v,P,K,r,N;return _.S(function(h){if(h.nextAddress==1){if(!y.emojiId||!I.emojiMap[y.emojiId])return h.return();F=Object.assign({},I.emojiMap[y.emojiId],{stickyPrefId:D});I.emojiMap[y.emojiId]=F;y.index&&((R=I.emojis[y.index])==null?void 0:R.emojiId)===y.emojiId&&(I.emojis[y.index]=F);if((O=y.shortcuts)==null?0:O.length)for(I.hasInitializedShortcutCharMap=!1,w=_.J(y.shortcuts),v=w.next();!v.done;v=w.next())P=v.value,I.emojiShortcutMap[P.toLocaleLowerCase()]=F;return h.yield(_.DI.getInstance(),
2)}if(h.nextAddress!=4)return(K=h.yieldResult)?h.yield(K.get("ytlc-emoji-pref"),4):h.jumpTo(0);N=(r=h.yieldResult)!=null?r:{};N[y.emojiId]=D;return h.yield(K.set("ytlc-emoji-pref",N,cNa),0)})};
_.rQ=new _.P9;var swz;_.jx={};
swz={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.l("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:_.l("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 K0(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 I=_.XB(this.hostElement||this).querySelector("#inline-action-button-container");I&&I.setAttribute("aria-hidden","true");this.menuButton=_.XB(this.hostElement).querySelector("#menu-button")},
attached:function(){var I=this.menuButton;I&&(I.addEventListener("focusin",_.MX(this,this.onMenuButtonFocus_)),I.addEventListener("focusout",_.MX(this,this.onMenuButtonBlur_)))},
detached:function(){var I=this.menuButton;I&&(I.removeEventListener("focusin",_.MX(this,this.onMenuButtonFocus_)),I.removeEventListener("focusout",_.MX(this,this.onMenuButtonBlur_)))},
identity:_.mJ,truthy:function(I){return!!I},
computeTimestampString:function(I){return I?I.timestampText?this.getSimpleString(I.timestampText):this.TIME_FORMATTER.format(new Date(I.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(I){return I},
computeMenuVisible_:function(I,y){return I||y},
computeHasInlineActionButtons:function(I){if(!I)return!1;var y,D;return!((y=I.inlineActionButtons)==null||!y.length)||!((D=I.additionalInlineActionButtons)==null||!D.length)},
createDocumentFragmentFromString:function(I){var y=_.rQ.createDocumentFragment.bind(_.rQ),D;if((D=this.participantsManager)==null||!D.viewerRegex)return y(I);D=document.createDocumentFragment();for(var F=0,R;(R=this.participantsManager.viewerRegex.exec(I))!=null;){if(R.index>0){var O=":"+R[0]+":";if((_.KY(_.rQ,O)||_.GE(_.rQ,O))&&I.indexOf(O)===R.index-1)continue}D.appendChild(y(I.substring(F,R.index)));F=document.createElement("span");F.appendChild(y(R[0]));F.classList.add("mention");D.appendChild(F);
F=R.index+R[0].length}D.appendChild(y(I.substring(F)));return D},
createDocumentFragment:function(I){var y=document.createDocumentFragment();if(I.simpleText)return y.appendChild(this.createDocumentFragmentFromString(I.simpleText)),y;if(!I.runs)return y;for(var D=0;D<I.runs.length;D++){var F=I.runs[D];if(F.emoji)y.appendChild(_.rQ.createEmoji(F.emoji));else if(F.text)if(F.navigationEndpoint){var R=document.createElement("a");R.classList.add("yt-simple-endpoint");U5H(R,F.navigationEndpoint);_.XB(R).appendChild(this.createDocumentFragmentFromString(F.text));y.appendChild(R)}else y.appendChild(this.createDocumentFragmentFromString(F.text))}return y},
hasModerationOverlayVisible:function(){var I;return((I=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:I.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(I){I.composedPath().some(function(y){return(y=y instanceof Element?y:null)?y.tagName&&(y.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||y.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.l("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(I)},
colorFromDecimal:function(I){return ChC(I)},
markAsDeleted:function(I,y){this.set("data.deletedStateMessage",I);this.set("data.showOriginalContentMessage",y)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(I){if(this.data.contextMenuEndpoint){var y=_.nR().resolve(_.BF),D=this.data.contextMenuEndpoint,F;(F=_.Lt.instance)&&_.JZ(F,D)?(y=eEz(y,D),F=_.U3(F,{},y)):F=_.Twz(y,D);F.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);I&&I.stopPropagation()}},
handleGetContextMenuResponse_:function(I){var y=_.Lt.instance;y&&_.JZ(y,{liveChatEndpoint:{}})||(I=I.response);I.liveChatItemContextMenuSupportedRenderers&&I.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(I.liveChatItemContextMenuSupportedRenderers.menuRenderer);I.actions&&_.uj(this.hostElement,"yt-live-chat-actions",[I.actions])},
handleGetContextMenuError:function(I){if(I instanceof Error||I instanceof Object||I instanceof String)var y=I;_.vu(new _.g6("Error encountered calling GetLiveChatItemContextMenu",y))},
showContextMenu_:function(I){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.lj(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.lj(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.jx.YtLiveChatItemBehavior=[swz,_.vb.YtComponentBehavior,_.di.YtOpenPopupBehavior];_.ot=function(){};var V3g;var ZrM;var gqG;var I9P;var NT=function(){var I=_.k.apply(this,arguments)||this;I.active=!1;I.identity=_.mJ;return I};
_.E(NT,_.k);NT.prototype.dataChanged=function(){this.active=!1};
NT.prototype.onClick=function(){_.lj(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
NT.prototype.dataChanged=NT.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],NT.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"active",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NT.prototype,"dataChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],NT);
_.a(NT,"yt-live-chat-text-input-field-suggestion",function(){if(I9P===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;gqG===void 0&&(gqG=document.createElement("template"));var F=gqG;D.call(y,F.content.cloneNode(!0),I.content.firstChild);I9P=I}I=I9P;return I},{mode:0});_.hm=function(I,y,D){return CustomEvent.call(this,I,{detail:{value:y,path:D}})||this};
_.E(_.hm,CustomEvent);_.x3=function(){var I=_.k.apply(this,arguments)||this;I.viewerName=null;I.actionMap={"yt-live-chat-actions":"onChatMessage_"};I.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];I.PARTICIPANT_TIME_USEC_=3E8;return I};
_.E(_.x3,_.k);_.L=_.x3.prototype;_.L.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.L.addParticipant=function(I){var y=_.ke_(this.participants,I,function(F,R){F=F[Object.keys(F)[0]];R=R[Object.keys(R)[0]];F=String(_.rY(F.authorName)).toLowerCase();R=String(_.rY(R.authorName)).toLowerCase();return F<R?-1:F==R?0:1}.bind(this));
if(y>=0){var D=this.participants[y];D[Object.keys(D)[0]].timestampUsec&&this.splice("participants",y,1,I)}else this.splice("participants",-y-1,0,I);I=I[Object.keys(I)[0]];y=_.rY(I.authorName).toLocaleLowerCase();D=y.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(D)||(this.allParticipantsCharMap_[D]={});this.allParticipantsCharMap_[D][y]=I};
_.L.getAuthorsFromPrefix=function(I){return this.allParticipantsCharMap_.hasOwnProperty(I)?this.allParticipantsCharMap_[I]:null};
_.L.computeViewerRegex_=function(I){if(!I)return null;I=I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var y=I.indexOf("@")===0&&_.l("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(y+I.replace(/ /g,"\\s*")+"|^"+I.replace(/ /g,"\\s*")+"$|^"+I.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+I.replace(/ /g,"\\s*")+"$|(?<=\\s)"+I.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.L.checkForStaleParticipants_=function(){var I=this;this.trimOldParticipants_();this.asyncHandle_&&jxJ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.wy(function(){I.checkForStaleParticipants_()},3E4))};
_.L.onChatMessage_=function(I){var y=this,D=Date.now()*1E3;I.forEach(function(F){if(F=_.u(F,mHR)){F=F.item;var R=Object.keys(F)[0];y.SUPPORTED_ITEM_TYPES_.indexOf(R)!=-1&&F[R].timestampUsec>=D-y.PARTICIPANT_TIME_USEC_&&y.addParticipant(F)}},this);
this.checkForStaleParticipants_()};
_.L.trimOldParticipants_=function(){for(var I=Date.now()*1E3,y=this.participants.length-1;y>=0;y--){var D=this.participants[y];D=D[Object.keys(D)[0]];D.timestampUsec&&D.timestampUsec<I-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",y,1)}};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],_.x3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],_.x3.prototype,"viewerName",void 0);_.W([_.M({computed:"computeViewerRegex_(viewerName)"}),_.A("design:type",Object)],_.x3.prototype,"viewerRegex",void 0);_.W([_.M({value:function(){return[]},
notify:!0}),_.A("design:type",Array)],_.x3.prototype,"participants",void 0);_.W([_.I6({is:"yt-live-chat-participants-manager",noInjection:!0})],_.x3);var y8O=/.*([:@#].*?)$/,lq=/\u00a0/g,D6u=String.fromCharCode(160),FpW={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"},uq=function(){var I=_.k.apply(this,arguments)||this;I.disabled=!1;I.liveChatRichMessageInput=null;I.messageInput=null;I.isValidWithNoInputText=!1;I.suggestions=[];I.emojiManager=_.rQ;I.inputMethodEditorActive=
!1;I.suggestionIndex=-1;I.JSC$14503_lastSuggestionRange=null;return I};
_.E(uq,_.k);_.L=uq.prototype;_.L.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.L.attached=function(){_.Wr&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.L.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.L.dataChanged=function(){if(!this.ignoreColorMapping){var I=!1,y={},D;for(D in FpW)this.data&&this.data.hasOwnProperty(D)&&(y[FpW[D]]=this.colorFromDecimal(this.data[D]),I=!0);I&&_.pg(this.hostElement,y)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.L.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.L.colorFromDecimal=function(I){I=Math.floor(Number(I));return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
_.L.preventDrag=function(I){I.dataTransfer&&(I.dataTransfer.dropEffect="none");I.preventDefault()};
_.L.preventResize=function(I){I.returnValue=!1};
_.L.onInputChange=function(){var I=this.characterCount,y=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&y&&y.remove();if(!y&&this.characterCount>this.maxCharacterLimit){var D=window.getSelection();if(D){var F=D.getRangeAt(0);D.removeAllRanges();D.addRange(F)}}if(D=this.getCurrentRange())F=this.calculateTextBeforeRange(D),this.completeEmojisInRange(D,F,!0)||this.updateSuggestions(D,F);F=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(F);
_.lj(this.hostElement,"yt-live-chat-message-input-change",F);y&&this.characterCount===0&&y.remove();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>I):D&&!D.collapsed&&D.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(I=this.input.childNodes.length-1;I>=0;I--)this.input.childNodes[I].nodeName==="BR"&&this.input.childNodes[I].remove()};
_.L.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.L.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var I=this.getCurrentRange();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.L.mergeOverflowText=function(I){if(I){var y=document.createRange();y.selectNodeContents(I);y=y.extractContents();this.input.insertBefore(y,I)}};
_.L.checkRangeAtEndOfInput=function(){var I=this.getCurrentRange();if(I){var y=_.XB(this.hostElement).querySelector("#overflow-text"),D=document.createRange();y&&y.previousSibling?y.previousSibling instanceof HTMLImageElement?D.selectNode(y.previousSibling):D.selectNodeContents(y.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(I.startContainer,
I.startOffset)}return!1};
_.L.handleOverflowText=function(I){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var y=_.XB(this.hostElement).querySelector("#overflow-text"),D=this.getCurrentRange();this.input.normalize();I=this.checkRangeAtEndOfInput()&&I;this.mergeOverflowText(y);for(var F,R=0,O=0,w,v=this.input.childNodes,P=0;P<v.length;P++){var K=v[P];K instanceof Text?(O+=K.textContent.length,O>this.maxCharacterLimit&&(F=K,R=this.maxCharacterLimit+K.textContent.length-O)):K instanceof HTMLImageElement&&
(F=void 0,O=K.dataset.emojiId&&((F=this.data)==null?0:F.emojiCharacterCount)?O+this.data.emojiCharacterCount:O+K.alt.length,F=this.input,R=P);if(O>this.maxCharacterLimit&&F){w=document.createRange();w.collapse(!1);y?(O=this.input.lastChild.previousSibling,O instanceof Text?w.setEnd(this.input.lastChild.previousSibling,O.textContent.length):O instanceof HTMLImageElement&&w.setEnd(this.input,this.input.childNodes.length-1)):w.selectNodeContents(this.input);w.setStart(F,R);break}}w&&(F=!1,D&&(I=w.isPointInRange(D.startContainer,
D.startOffset-1)),y||(y=document.createElement("span"),y.id="overflow-text",y.textContent="",y.setAttribute("contenteditable","true"),_.XB(_.XB(this.hostElement).querySelector("#input")).appendChild(y),F=!0),y&&(D=w.extractContents(),y.insertBefore(D,y.firstChild),I&&y.firstChild&&(D=document.createRange(),F?D.setStartAfter(y.lastChild):D.setStartAfter(y.firstChild),D.collapse(!0),y=window.getSelection(),y.removeAllRanges(),y.addRange(D))))}};
_.L.checkForDuplicateSpans=function(){for(var I=0;I<this.input.childNodes.length;I++){var y=this.input.childNodes[I];if(y.nodeName==="SPAN"){var D=document.createRange();D.selectNodeContents(y);D=D.extractContents();this.input.insertBefore(D,y);y.remove()}}this.handleOverflowText(!0)};
_.L.getCurrentRange=function(){var I=window.getSelection();return I&&I.rangeCount?I.getRangeAt(0).cloneRange():null};
_.L.getInputRange=function(){var I=this.getCurrentRange();if(I){for(var y=I.commonAncestorContainer,D=!1,F=_.XB(this.hostElement).querySelector("#input");y;){if(y===F){D=!0;break}y=y.parentNode}D||(I=null)}I||(I=this.getRangeAtEnd());return I};
_.L.getRangeAtEnd=function(){var I=document.createRange(),y=_.XB(this.hostElement).querySelector("#input").lastChild;!y||y.nodeName!=="#text"&&y.nodeName!=="SPAN"?(I.selectNodeContents(_.XB(this.hostElement).querySelector("#input")),I.collapse(!1)):y.nodeName==="#text"?I.setStart(y,y.textContent.length):I.setStart(y,y.childNodes.length);return I};
_.L.getChatParticipantSuggestions=function(I,y,D,F){var R=_.l("live_chat_enable_handles_web_text_input_update");if(y)for(var O in y)if(O.indexOf(I)===0||R&&O.indexOf(D+I)===0){var w=y[O],v=_.rY(w.authorName);F.push({suggestion:{author:!0,authorType:D,image:w.authorPhoto,alt:v,text:v}});if(F.length>=64)break}};
_.L.getSuggestions=function(I){var y=[],D=I.substring(0,3),F=brn(_.rQ,D,!0);if(F)for(var R in F)if(R.toLocaleLowerCase().indexOf(I)===0){var O=F[R];if(O&&O.emojiId){if(O=$hW(_.rQ,O.emojiId)){var w=void 0,v=void 0,P=void 0,K=void 0,r=((w=O.image)==null?0:(v=w.accessibility)==null?0:(P=v.accessibilityData)==null?0:P.label)||O.isCustomEmoji?(K=O.shortcuts)==null?void 0:K[0]:O.emojiId;y.push({suggestion:{emoji:!0,image:O.image,alt:r,text:R,textToInsertWhenSelected:O.isCustomEmoji?R:r}})}if(y.length>=
64)break}}if(!this.participantsManager)return null;if(D.indexOf("@")===0||D.indexOf("#")===0)F=D.charAt(0),I=I.substring(1),R=_.l("live_chat_enable_handles_web_text_input_update"),D.indexOf("@")===0&&R&&(R=this.participantsManager.getAuthorsFromPrefix(D.substring(0,2)),this.getChatParticipantSuggestions(I,R,F,y)),D=D.substring(1),D=this.participantsManager.getAuthorsFromPrefix(D),this.getChatParticipantSuggestions(I,D,F,y);return y?y.sort(function(N,h){return h.suggestion.text<N.suggestion.text?-1:
h.suggestion.text===N.suggestion.text?0:1}):null};
_.L.insertSuggestion=function(I){var y=_.l("live_chat_enable_handles_web_text_input_update"),D=I.authorType;y=I.text.indexOf(D)===0&&y?I.text+D6u:D+I.text+D6u;I.emoji?this.insertTextAtRange(this.JSC$14503_lastSuggestionRange,I.textToInsertWhenSelected||""):I.author&&this.insertTextAtRange(this.JSC$14503_lastSuggestionRange,y)};
_.L.updateSuggestionsAtCaret=function(){var I=this.getCurrentRange();I&&this.updateSuggestions(I,this.calculateTextBeforeRange(I))};
_.L.offsetStartOfRangeBy=function(I,y){for(;y>0;)if(I.startOffset-y>=0){I.setStart(I.startContainer,I.startOffset-y);break}else{y=I.startContainer instanceof HTMLImageElement?y-I.startContainer.alt.length:y-I.startOffset;var D=I.startContainer.previousSibling;if(!D){I.setStart(I.startContainer,0);break}if(_.l("live_chat_require_space_for_autocomplete_emoji")){var F=void 0,R=void 0;I.setStart(D,((F=D)==null?void 0:(R=F.textContent)==null?void 0:R.length)||0)}else I.setStart(D,D.childNodes.length||
0)}};
_.L.updateSuggestions=function(I,y){var D=this;this.JSC$14503_lastSuggestionRange&&(this.JSC$14503_lastSuggestionRange.detach(),this.JSC$14503_lastSuggestionRange=null);if((y=y8O.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2&&(this.offsetStartOfRangeBy(I,y.length),this.JSC$14503_lastSuggestionRange=I,(I=this.getSuggestions(y))&&I.length))){this.suggestions=I;_.YC(this,function(){_.XB(D.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(I.length-1);return}this.dropdown.opened=!1};
_.L.completeEmojisInRange=function(I,y,D){var F=y.replace(/[\s\xa0]+$/,"");y=y.length-F.length;F=F.split(" ");F=F[F.length-1].trim().toLocaleLowerCase();var R=F.lastIndexOf(":");if(D&&!y&&R!==F.length-1)return!1;R!==-1&&(D=F.lastIndexOf(":",R-1),D!==-1&&(F=F.substring(D)));if((D=_.GE(_.rQ,F))&&D.emojiId){D=$hW(_.rQ,D.emojiId)||null;this.offsetStartOfRangeBy(I,F.length+y);var O,w,v,P;F=(((O=D)==null?0:O.isCustomEmoji)?(w=D)==null?void 0:(v=w.shortcuts)==null?void 0:v[0]:(P=D)==null?void 0:P.emojiId)||
"";y&&(F+=D6u);this.insertTextAtRange(I,F);this.dropdown.opened=!1;return!0}return!1};
_.L.onSuggestion=function(I){this.insertSuggestion(I.detail);this.dropdown.opened=!1};
_.L.onKeyPress=function(I){I.keyCode===13&&(I.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.lj(this.hostElement,"yt-live-chat-send-message"))};
_.L.completeEmojis=function(){var I=document.createRange(),y=_.XB(this.hostElement).querySelector("#input").lastChild;y?I.setStart(y,y.childNodes.length):(I.selectNodeContents(_.XB(this.hostElement).querySelector("#input")),I.collapse(!1));this.completeEmojisInRange(I,this.calculateTextBeforeRange(I),_.l("live_chat_require_space_for_autocomplete_emoji"))};
_.L.maybePreventTextFormatting=function(I){!_.mr||!I.ctrlKey&&!I.metaKey||I.keyCode!==66&&I.keyCode!==73||(I.stopImmediatePropagation(),I.preventDefault())};
_.L.onKeyDown=function(I){this.maybePreventTextFormatting(I);if(this.dropdown.opened)switch(I.keyCode){case 27:this.dropdown.opened=!1;I.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;I.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);I.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),I.preventDefault()}};
_.L.onKeyUp=function(I){switch(I.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.fz)this.onInputChange()};
_.L.changeSuggestionIndex=function(I){if(this.dropdown.opened){var y=_.XB(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<y.children.length&&(y.children[this.suggestionIndex].active=!1);var D=this.suggestions.length;this.suggestionIndex=(I+D)%D;I=y.children[this.suggestionIndex];I.active=!0;y.scrollTop=I.offsetTop}};
_.L.onInputPaste=function(I){I.preventDefault();(I=I.clipboardData)&&I.types&&(I=I.getData("text/plain")||"",I=I.replace(/\n/g,""),this.insertText(I));(I=this.getCurrentRange())&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.L.onFocus=function(){this._setFocused(!0)};
_.L.onBlur=function(){this._setFocused(!1)};
_.L.insertText=function(I){this.insertTextAtRange(this.getInputRange(),I)};
_.L.insertTextAtRange=function(I,y){if(I&&(I.collapsed||I.deleteContents(),y=_.rQ.createDocumentFragment(y,!0,!1))){for(var D=_.J((y==null?void 0:y.childNodes)||[]),F=D.next();!F.done;F=D.next()){F=F.value;var R=void 0,O=void 0,w=void 0,v=void 0,P=void 0;(w=(R=window)==null?void 0:(O=R.ShadyCSS)==null?void 0:O.ScopingShim)==null||(P=(v=w).scopeNode)==null||P.call(v,F,this.hostElement.localName)}D=y.lastChild;I.insertNode(y);this.focused||this.input.focus();if(this.focused){I=I.cloneRange();I.selectNodeContents(D);
I.collapse(!1);if(y=window.getSelection())y.removeAllRanges(),y.addRange(I);I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}I=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(I);_.lj(this.hostElement,"yt-live-chat-message-input-change",I)}};
_.L.setLiveChatRichMessageInput=function(I){_.XB(_.XB(this.hostElement).querySelector("#input")).textContent="";if(I&&I.textSegments){for(var y=0;y<I.textSegments.length;y++){var D=I.textSegments[y];D.text?_.XB(_.XB(this.hostElement).querySelector("#input")).appendChild(_.rQ.createDocumentFragment(D.text,!0,!1)):D.emojiId&&(D=_.KY(_.rQ,D.emojiId))&&_.XB(_.XB(this.hostElement).querySelector("#input")).appendChild(_.rQ.createEmoji(D,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.L.setText=function(I){this.setLiveChatRichMessageInput(I?{textSegments:[{text:I}]}:null)};
_.L.calculateTextBeforeRange=function(I){var y="",D=I.startContainer;if(D&&D instanceof Text){var F;y=((F=D.textContent)==null?void 0:F.substring(0,I.startOffset))||"";D=D.previousSibling}for(;D&&D instanceof Text;)y=D.textContent+y,D=D.previousSibling;return y.replace(lq," ")};
_.L.calculateLiveChatRichMessageInput=function(){for(var I=[],y="",D=_.XB(_.XB(this.hostElement).querySelector("#input")).childNodes,F=0;F<D.length;F++){var R=D[F];R instanceof Text?y+=R.textContent:R instanceof HTMLImageElement&&(R.dataset.emojiId?(y&&(I.push({text:y.replace(lq," ")}),y=""),I.push({emojiId:R.dataset.emojiId})):y+=R.alt)}y&&I.push({text:y.replace(lq," ")});if(D=_.XB(this.hostElement).querySelector("#overflow-text")){y="";D=D.childNodes;for(F=0;F<D.length;F++)R=D[F],R instanceof Text?
y+=R.textContent:R instanceof HTMLImageElement&&(R.dataset.emojiId?(y&&(I.push({text:y.replace(lq," ")}),y=""),I.push({emojiId:R.dataset.emojiId})):y+=R.alt);y&&I.push({text:y.replace(lq," ")})}return{textSegments:I}};
_.L.computeCharacterCount=function(I){if(!I||!I.textSegments)return 0;for(var y=0,D=0;D<I.textSegments.length;D++){var F=I.textSegments[D];if(F.text)y+=F.text.length;else if(F.emojiId){var R=void 0;if((R=this.data)==null?0:R.emojiCharacterCount)y+=this.data.emojiCharacterCount;else{var O=R=void 0,w=void 0;y+=((O=_.KY(_.rQ,(R=F)==null?void 0:R.emojiId))==null?void 0:(w=O.shortcuts)==null?void 0:w[0].length)||0}}}return y};
_.L.characterCountChanged=function(){_.lj(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.L.focusedChanged=function(){this.hostElement.dispatchEvent(new _.hm("focused-changed",this.focused))};
_.L.focus=function(){this.setFocus(!1)};
_.L.focusAtEnd=function(){this.setFocus(!0)};
_.L.setFocus=function(I){I=I?this.getRangeAtEnd():this.getInputRange();_.XB(this.hostElement).querySelector("#input").focus();var y=window.getSelection();y&&(y.removeAllRanges(),y.addRange(I))};
_.L.insertEmoji=function(I){var y,D=((I==null?0:I.isCustomEmoji)?(y=I.shortcuts)==null?void 0:y[0]:I==null?void 0:I.emojiId)||"";this.insertText(D)};
_.L.computeText=function(I){if(!I||!I.textSegments)return"";for(var y="",D=0;D<I.textSegments.length;D++){var F=I.textSegments[D];if(F.text)y+=F.text;else if(F.emojiId){var R=void 0,O=void 0,w=void 0;y+=((O=_.KY(_.rQ,(R=F)==null?void 0:R.emojiId))==null?void 0:(w=O.shortcuts)==null?void 0:w[0])||""}}return y};
_.L.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.mD.Object.defineProperties(uq.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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}}});
uq.prototype.focusedChanged=uq.prototype.focusedChanged;uq.prototype.characterCountChanged=uq.prototype.characterCountChanged;uq.prototype.onSuggestion=uq.prototype.onSuggestion;uq.prototype.onMessageSet=uq.prototype.onMessageSet;uq.prototype.dataChanged=uq.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],uq.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],uq.prototype,"disabled",void 0);_.W([_.Y("disabled"),_.A("design:type",Number),_.A("design:paramtypes",[])],uq.prototype,"inputTabIndex",null);_.W([_.Y("data.maxCharacterLimit"),_.M({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],uq.prototype,"maxCharacterLimit",null);
_.W([_.Y("liveChatRichMessageInput"),_.M({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],uq.prototype,"characterCount",null);_.W([_.Y("maxCharacterLimit, characterCount"),_.M({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],uq.prototype,"remainingCharacterCount",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],uq.prototype,"isChatMessageInput",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],uq.prototype,"inputExpanded",void 0);_.W([_.M({readOnly:!0,notify:!0}),_.A("design:type",Object)],uq.prototype,"liveChatRichMessageInput",void 0);_.W([_.M(),_.A("design:type",Object)],uq.prototype,"messageInput",void 0);_.W([_.M(),_.A("design:type",Boolean)],uq.prototype,"ignoreColorMapping",void 0);_.W([_.Y("characterCount"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uq.prototype,"hasText",null);
_.W([_.M(),_.A("design:type",Object)],uq.prototype,"isValidWithNoInputText",void 0);_.W([_.Y("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.M(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uq.prototype,"isInputValid",null);_.W([_.M({readOnly:!0,value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],uq.prototype,"focused",void 0);_.W([_.M(),_.A("design:type",Array)],uq.prototype,"suggestions",void 0);
_.W([_.M(),_.A("design:type",_.P9)],uq.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",_.x3)],uq.prototype,"participantsManager",void 0);_.W([_.M(),_.A("design:type",Boolean)],uq.prototype,"noUnderline",void 0);_.W([_.M(),_.A("design:type",Object)],uq.prototype,"inputMethodEditorActive",void 0);_.W([_.a0("#dropdown"),_.A("design:type",Object)],uq.prototype,"dropdown",void 0);_.W([_.a0("#input"),_.A("design:type",HTMLElement)],uq.prototype,"input",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uq.prototype,"dataChanged",null);_.W([_.ke("messageInput"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uq.prototype,"onMessageSet",null);_.W([_.z4("yt-live-chat-select-suggestion"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],uq.prototype,"onSuggestion",null);
_.W([_.ke("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uq.prototype,"characterCountChanged",null);_.W([_.ke("focused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uq.prototype,"focusedChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],uq);
_.RKO=_.a(uq,"yt-live-chat-text-input-field-renderer",function(){if(ZrM===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;V3g===void 0&&(V3g=document.createElement("template"));var F=V3g;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ZrM=I}I=ZrM;return I},{mode:0});var qT=function(){var I=_.k.apply(this,arguments)||this;I.buttonOverrides={style:"overlay",type:"filled"};I.allowAnimations=!1;I.modern=_.l("web_button_rework_with_live");I.noPadding=!1;return I};
_.E(qT,_.k);_.L=qT.prototype;_.L.shouldSupportInlineActionButtons=function(){return!0};
_.L.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"}}}}};
_.L.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.L.attached=function(){this.allowAnimations=!1};
_.L.dataChanged=function(){if(this.data){var I={"--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)};_.pg(this.hostElement,I);this.allowAnimations=!0}};
_.L.messageChanged=function(){var I,y=(I=this.data)==null?void 0:I.message;I=_.XB(_.XB(this.hostElement).querySelector("#message"));I.textContent="";y&&I.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.L.computeShowOnlyHeader=function(I,y){return!I||I.pdgLikeButton||I.replyButton||I.buyFlowButton?!1:this.isEmpty(I,y)&&!I.footer};
_.L.computeShowFooterDivider=function(I,y,D){return I?!!I.footer&&!this.isEmpty(I,y)&&!D:!1};
_.L.computeIsUserEditable=function(I){return!!I.inputField};
_.L.computeHasHeartButton=function(I){return(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.L.computeNoveltyImage=function(I){if(I.headerOverlayImage&&I.headerOverlayImage.thumbnails.length){var y=I.headerOverlayImage.thumbnails[0],D,F;if((D=I.pdgPurchasedNoveltyLoggingDirectives)==null?0:(F=D.loggingDirectives)==null?0:F.trackingParams){var R,O;TwS((R=I.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(O=R.loggingDirectives)==null?void 0:O.trackingParams)}return y.width||0}return 0};
_.L.computeAuthorPhotoSize=function(I){return(I==null?0:I.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.L.inputFocus=function(){var I=_.XB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");I&&I.focus()};
_.L.inputInsertEmoji=function(I){var y=_.XB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");y&&y.insertEmoji(I)};
_.L.inputMessage=function(){var I=_.XB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),y;return I&&((y=this.data)==null?0:y.inputField)?(I.completeEmojis(),_.Fp(I.liveChatRichMessageInput)):null};
_.L.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.L.isEmpty=function(I,y){return I?I.empty||!(I.message||I.inputField||y):!0};
_.L.onLowerBuyButtonClick=function(){var I,y=_.u((I=this.data)==null?void 0:I.buyButton,_.S1);y&&y.trackingParams&&!iL_(y.command)&&(I=_.AC(y.trackingParams))&&(y=_.VO())&&_.SI(y,I)};
_.L.shouldSupportWholeItemClick=function(){return!0};
_.mD.Object.defineProperties(qT.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
qT.prototype.isDeletedChanged=qT.prototype.isDeletedChanged;qT.prototype.messageChanged=qT.prototype.messageChanged;qT.prototype.dataChanged=qT.prototype.dataChanged;_.W([_.Q(XTP.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],qT.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],qT.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],qT.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qT.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:HrB}),_.A("design:type",Object)],qT.prototype,"engagementState",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.A("design:type",Boolean)],qT.prototype,"isUserEditable",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.A("design:type",Boolean)],qT.prototype,"hasHeartButton",void 0);_.W([_.M({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Boolean)],qT.prototype,"showOnlyHeader",void 0);
_.W([_.M({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.A("design:type",Boolean)],qT.prototype,"showFooterDivider",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],qT.prototype,"allowAnimations",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],qT.prototype,"dashboardMoneyFeed",void 0);_.W([_.M({computed:"computeNoveltyImage(data)"}),_.A("design:type",Number)],qT.prototype,"noveltyWidth",void 0);
_.W([_.M({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],qT.prototype,"authorPhotoSize",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qT.prototype,"modern",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qT.prototype,"noPadding",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qT.prototype,"dataChanged",null);
_.W([_.ke("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qT.prototype,"messageChanged",null);_.W([_.Y("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qT.prototype,"hideLowerBumper",null);_.W([_.ke("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qT.prototype,"isDeletedChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],qT);
_.a(qT,"yt-live-chat-paid-message-renderer",function(){if(STc===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;vq_===void 0&&(vq_=document.createElement("template"));var F=vq_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);STc=I}I=STc;return I},{mode:0});var OIg;var Lpg;var Ey=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;return I};
_.E(Ey,_.Wp);Ey.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Pi("openPopupConfig")};
_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],Ey.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Cg()],Ey);_.G2=[_.di.YtOpenPopupBehavior,Ey.prototype];var J8g;var wsL=[_.kc,wta,_.gT,_.uXa,_.Kt,_.nFM,_.Lb,_.WF,_.dY,_.BQO,_.t9];_.l("web_show_ep_endpoint_response_received")&&wsL.push(_.Z3);var R4z=new _.uk("RESPONSE_RECEIVED_COMMANDS"),JEe=new _.uk("RESPONSE_RECEIVED_COMMANDS");var IAt="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),gOo=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],ZIH=["GET_UNSEEN_NOTIFICATION_COUNT"];var XX=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;I.serviceEndpointHandlers=[];return I};
_.E(XX,_.Wp);XX.prototype.created=function(){var I=this;this.endpointHandlerActionMap={"yt-service-request":function(y,D,F,R){var O;return Vm5(I.hostElement,y,D,F,R,I.serviceEndpointHandlers,(O=I.onEntitiesUpdated)==null?void 0:O.bind(I))}}};
XX.prototype.attached=function(){_.qM(_.uK.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
XX.prototype.detached=function(){_.EN(_.uK.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.W([_.Cg()],XX);_.wLf=[XX.prototype];var vOP,SoM=function(){return vOP!==void 0?vOP:vOP=document.createElement("template")};
document.head.appendChild(SoM().content);var tmn;var PYf=document.head,KpM=PYf.appendChild,U6e;if(tmn===void 0){var r8_=document.createElement("template");_.G(r8_,"\x3c!--css-build:shady--\x3e");r8_.content.insertBefore(SoM().content.cloneNode(!0),r8_.content.firstChild);tmn=r8_}U6e=tmn;KpM.call(PYf,U6e.content);var jgW,oOu=function(){return jgW!==void 0?jgW:jgW=document.createElement("template")};
document.head.appendChild(oOu().content);var NgO;var hKc=document.head,x6O=hKc.appendChild,l9z;if(NgO===void 0){var u3u=document.createElement("template");_.G(u3u,"\x3c!--css-build:shady--\x3e");u3u.content.insertBefore(oOu().content.cloneNode(!0),u3u.content.firstChild);NgO=u3u}l9z=NgO;x6O.call(hKc,l9z.content);var qoP;_.bO("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.bO("sharingRendererButtons","buttonRenderer","ytd-button-renderer");qoP=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live");_.QJ=function(){var I=_.k.apply(this,arguments)||this;I.isPressed=!1;I.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return I};
_.E(_.QJ,_.k);_.L=_.QJ.prototype;_.L.created=function(){this.showTooltips=!0};
_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.onHintIdChanged=function(){var I=this,y,D,F=(y=this.ytButtonBehavior.data)==null?void 0:(D=y.hint)==null?void 0:D.hintRenderer;if(F&&F.hintId){y=_.qr(this.hostElement,"yt-get-opened-popups-action");y=(y&&y.length===1?y[0]:[]).length>0;var R=null;F.hintId!=="sponsor-pre-purchase"||y?F.hintId.startsWith("sponsor-post-purchase")&&!y?R=Kig("membership-manage"):F.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!y&&(R=Kig("membership-freebie-join")):R=Kig("membership-join");R&&_.w2.addLowPriorityJob(function(){for(var O=
_.J(R),w=O.next();!w.done;w=O.next())I.ytComponentBehavior.resolveCommand(w.value)})}};
_.L.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.L.onYtNavigate=function(I){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);y&&(I.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.L.onYtServiceRequestSent=function(I,y){this.handleServiceRequestActions(y);_.lj(this.hostElement,"yt-service-request-sent-button-renderer")};
_.L.onServiceRequestCompleted=function(I,y){this.handleServiceRequestActions(y);_.lj(this.hostElement,"yt-service-request-completed-button-renderer")};
_.L.updateButton=function(I){var y;if(I=(y=_.u(I,g0W))==null?void 0:y.updatedButton)this.ytButtonBehavior.data=_.u(I,_.S1)};
_.L.handleUpdateButtonAction=function(I){var y=this.ytButtonBehavior.data;y.targetId&&I.updateButtonAction.targetId&&y.targetId===I.updateButtonAction.targetId&&this.updateButton(I)};
_.L.handleServiceRequestActions=function(I){if(I=I.actions)for(var y=0;y<I.length;y++)this.updateButton(I[y])};
_.mD.Object.defineProperties(_.QJ,{template:{configurable:!0,enumerable:!0,get:function(){if(J8g===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);J8g=I}I=J8g;return I}}});
_.QJ.prototype.onServiceRequestCompleted=_.QJ.prototype.onServiceRequestCompleted;_.QJ.prototype.onYtServiceRequestSent=_.QJ.prototype.onYtServiceRequestSent;_.QJ.prototype.onYtNavigate=_.QJ.prototype.onYtNavigate;_.QJ.prototype.onPressedStateChanged=_.QJ.prototype.onPressedStateChanged;_.QJ.prototype.onHintIdChanged=_.QJ.prototype.onHintIdChanged;_.W([_.M(),_.A("design:type",Object)],_.QJ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],_.QJ.prototype,"isPressed",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],_.QJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.fEM.YtButtonBehavior),_.A("design:type",Object)],_.QJ.prototype,"ytButtonBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],_.QJ.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],_.QJ.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(T1.YtRenderButtonBehavior),_.A("design:type",Object)],_.QJ.prototype,"ytRenderButtonBehavior",void 0);_.W([_.ke("data.hint.hintRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.QJ.prototype,"onHintIdChanged",null);_.W([_.ke("isPressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.QJ.prototype,"onPressedStateChanged",null);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.QJ.prototype,"onYtNavigate",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],_.QJ.prototype,"onYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],_.QJ.prototype,"onServiceRequestCompleted",null);_.W([_.yd({is:"ytd-button-renderer",disableElementRegistration:qoP})],_.QJ);var Y3=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.E(Y3,_.k);_.L=Y3.prototype;_.L.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"}}}}};
_.L.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.L.dataChanged=function(){if(this.data&&this.data.sticker){var I=_.hf(this.data.sticker.thumbnails,this.stickerWidth);I||_.U9J(I).thenCatch(function(){_.tq(new _.g6("Failed to load Super Sticker with url",I))})}};
_.L.computeAuthorPhotoSize=function(I){return(I==null?0:I.isV2Style)?32:40};
_.L.computeIsV2Style=function(I){return(I==null?0:I.isV2Style)?!0:!1};
_.L.onStickerLoaded=function(I){var y,D,F;(y=_.jv(I))==null||(D=y.parentNode)==null||(F=D.classList)==null||F.add("sticker-loaded")};
_.L.computeNoveltyImageWidth=function(I){var y,D;if(I==null?0:(y=I.headerOverlayImage)==null?0:(D=y.thumbnails)==null?0:D.length){y=I.headerOverlayImage.thumbnails[0];var F,R;if((F=I.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=F.loggingDirectives)==null?0:R.trackingParams){var O,w;TwS((O=I.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(w=O.loggingDirectives)==null?void 0:w.trackingParams)}return y.width||0}return 0};
_.L.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.L.updateStickerStyles=function(){var I=this.data;I&&(I={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.authorNameTextColor)},
_.pg(this.hostElement,I))};
_.L.onBuyButtonClick=function(){var I,y=_.u((I=this.data)==null?void 0:I.buyButton,_.S1);y&&!iL_(y.command)&&this.ytRendererBehavior.logExplicitClick(y)};
_.L.shouldSupportWholeItemClick=function(){return!0};
_.mD.Object.defineProperties(Y3.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 I;return((I=this.data)==null?0:I.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Y3.prototype.updateStickerStyles=Y3.prototype.updateStickerStyles;Y3.prototype.isDeletedChanged=Y3.prototype.isDeletedChanged;Y3.prototype.onStickerLoaded=Y3.prototype.onStickerLoaded;Y3.prototype.dataChanged=Y3.prototype.dataChanged;_.W([_.Q(XTP.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],Y3.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Y3.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],Y3.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Y3.prototype,"data",void 0);
_.W([_.M({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],Y3.prototype,"authorPhotoSize",void 0);_.W([_.M(),_.A("design:type",Boolean)],Y3.prototype,"isDeleted",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Y3.prototype,"dashboardMoneyFeed",void 0);_.W([_.M({computed:"computeNoveltyImageWidth(data)"}),_.A("design:type",Number)],Y3.prototype,"noveltyWidth",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Y3.prototype,"modern",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.A("design:type",Boolean)],Y3.prototype,"isV2Style",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y3.prototype,"dataChanged",null);_.W([_.z4("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Y3.prototype,"onStickerLoaded",null);
_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Y3.prototype,"stickerWidth",null);_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Y3.prototype,"stickerHeight",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Y3.prototype,"hasHeartButton",null);_.W([_.Y("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Y3.prototype,"hideLowerBumper",null);
_.W([_.ke("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y3.prototype,"isDeletedChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y3.prototype,"updateStickerStyles",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Y3);
_.a(Y3,"yt-live-chat-paid-sticker-renderer",function(){if(Lpg===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;OIg===void 0&&(OIg=document.createElement("template"));var F=OIg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Lpg=I}I=Lpg;return I},{mode:0});var EOW;var GYR;var XLM,Qgz=function(){return XLM!==void 0?XLM:XLM=document.createElement("template")};
document.head.appendChild(Qgz().content);var Yoe,f9M=function(){return Yoe!==void 0?Yoe:Yoe=document.createElement("template")};
document.head.appendChild(f9M().content);var nOn;var pLg,m6O=function(){return pLg!==void 0?pLg:pLg=document.createElement("template")};
document.head.appendChild(m6O().content);var Mme;var zKa=document.head,kYg=zKa.appendChild,d6c;if(Mme===void 0){var a9c=document.createElement("template");_.G(a9c,"\x3c!--css-build:shady--\x3e");a9c.content.insertBefore(m6O().content.cloneNode(!0),a9c.content.firstChild);Mme=a9c}d6c=Mme;kYg.call(zKa,d6c.content);var c8M=document.head,Wpu=c8M.appendChild,CYM;if(nOn===void 0){var fY=document.createElement("template");_.G(fY,"\x3c!--css-build:shady--\x3e");fY.content.insertBefore(f9M().content.cloneNode(!0),fY.content.firstChild);fY.content.insertBefore(Qgz().content.cloneNode(!0),fY.content.firstChild);nOn=fY}CYM=nOn;Wpu.call(c8M,CYM.content);var nY=function(){var I=_.Wp.apply(this,arguments)||this;I.focusedIndex=0;I.verticalOffset=0;I.verticalAlign="top";I.dynamicAlign=!0;return I};
_.E(nY,_.Wp);nY.prototype.emojiUrl=function(I){I=_.KY(this.emojiManager,I);if(!I)return"";var y;I=(y=I.image)==null?void 0:y.thumbnails;return _.hf(I,24)||""};
var Bgc=function(I){var y;I.emojiVariants&&(y=I.data)!=null&&y.target&&_.YC(I,function(){I.set("verticalOffset",-1*I.hostElement.clientHeight);var D=_.XB(I.hostElement).querySelector("img");D&&D.focus()})};
_.L=nY.prototype;_.L.onKeyboardEnter=function(){};
_.L.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.L.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.L.onKeyDown=function(I){switch(I.keyCode){case 13:this.onKeyboardEnter();I.preventDefault();break;case 40:this.changeFocus(1);I.preventDefault();break;case 38:this.changeFocus(-1);I.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.L.onYtEmojiSelect=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1)return F=(D=y.data)==null?void 0:D.emoji,w=((R=F)==null?void 0:R.stickyPrefId)||((O=F)==null?void 0:O.emojiId),P=(v=I.detail)==null?void 0:v.emojiId,w&&P&&w!==P?r.yield((K=y.emojiManager)==null?void 0:Hrg(K,F,P),2):r.return();_.uj(y.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[F,P]);_.Cj(r)})};
_.L.changeFocus=function(I){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+I+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(I=_.XB(this.hostElement).querySelector("#variants"))&&I.children[this.focusedIndex].focus())};
_.mD.Object.defineProperties(nY.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
nY.prototype.onYtEmojiSelect=nY.prototype.onYtEmojiSelect;nY.prototype.onKeyDown=nY.prototype.onKeyDown;nY.prototype.onEmojiVariantsChanged=nY.prototype.onEmojiVariantsChanged;nY.prototype.onVerticalOffsetOrPositionTargetChanged=nY.prototype.onVerticalOffsetOrPositionTargetChanged;_.W([_.Q(_.Pc),_.A("design:type",Object)],nY.prototype,"ironOverlayBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nY.prototype,"data",void 0);_.W([_.M(),_.A("design:type",_.P9)],nY.prototype,"emojiManager",void 0);
_.W([_.M(),_.A("design:type",Object)],nY.prototype,"emojiVariants",void 0);_.W([_.M(),_.A("design:type",Object)],nY.prototype,"focusedIndex",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nY.prototype,"positionTarget",null);_.W([_.M({reflectToAttribute:!0}),_.Y("verticalOffset","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nY.prototype,"isPositioned",null);_.W([_.M(),_.A("design:type",Object)],nY.prototype,"verticalOffset",void 0);
_.W([_.M(),_.A("design:type",Object)],nY.prototype,"verticalAlign",void 0);_.W([_.M(),_.A("design:type",Object)],nY.prototype,"dynamicAlign",void 0);_.W([_.ke("verticalOffset","positionTarget"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nY.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.W([_.ke("emojiVariants"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nY.prototype,"onEmojiVariantsChanged",null);
_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],nY.prototype,"onKeyDown",null);_.W([_.z4("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],nY.prototype,"onYtEmojiSelect",null);_.W([_.Cg()],nY);var iI_=[nY.prototype];var A8f;var $6W;var bIf=/medium-light|medium-dark|light|medium|dark/,HIM=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,eKn=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),pY=function(){var I=_.k.apply(this,arguments)||this;I.userSelection={left:null,right:null};I.scrollAction="lock";I.isEmojiDraftInProgress=!1;return I};
_.E(pY,_.k);_.L=pY.prototype;_.L.onClick=function(I){I=_.jv(I);I instanceof HTMLImageElement&&this.selectOrUpdateEmoji(I)};
_.L.selectOrUpdateEmoji=function(I){var y=I.getAttribute("selection");y&&(y==="default"?_.lj(this.hostElement,"yt-emoji-select",_.KY(this.emojiManager,I.id)):y==="left"?this.userSelection=Object.assign({},this.userSelection,{left:I.src}):y==="right"?this.userSelection=Object.assign({},this.userSelection,{right:I.src}):y==="user"&&this.userSelection.left&&this.userSelection.right&&_.lj(this.hostElement,"yt-emoji-select",_.KY(this.emojiManager,I.id)))};
_.L.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.L.onMultiSelectorThumbnailRowChanged=function(){var I,y,D;((I=this.data)==null?0:(y=I.emoji)==null?0:(D=y.multiSelectorThumbnailRow)==null?0:D.length)&&this.openSelector()};
_.L.getThumbnailFromEmojiRow=function(I){var y,D;return(I==null?void 0:(y=I.thumbnails)==null?void 0:(D=y[0])==null?void 0:D.url)||""};
_.L.getEmojiAltTextForPartialSelector=function(I){var y;return((y=this.getThumbnailFromEmojiRow(I).match(HIM))==null?void 0:y[0])||""};
_.L.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.L.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.L.getRowSelection=function(I){return["left","right"][I]};
_.L.getIdFromComposedEmoji=function(I){return(I==null?void 0:I.emojiId)||""};
_.L.getEmojiFromPartialSelections=function(I,y){if(!I&&!y)return null;var D,F,R=(D=this.data)==null?void 0:(F=D.emoji)==null?void 0:F.variantIds;if(!R||!R.length)return null;var O;I=(O=I.match(bIf))==null?void 0:O[0];var w;y=(w=y.match(bIf))==null?void 0:w[0];if(!I||!y)return null;var v=eKn.get(I);w=eKn.get(y);if(v===w){w=Array.from(eKn.values()).filter(function(K){return K!==v}).join("|");
var P=new RegExp("^((?!("+w+")).)*"+v+"$")}else P=new RegExp(v+".*"+w);return(R=R.find(function(K){return P.test(K)}))&&_.KY(this.emojiManager,R)||null};
_.L.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var I,y=this.ytEmojiSelectorBehavior.emojiUrl(((I=this.data.emoji)==null?void 0:I.emojiId)||"");_.XB(this.hostElement).querySelector('[selection="user"]').src.includes(y)||(this.isEmojiDraftInProgress=!0)}};
_.L.onDomChange=function(){Bgc(this.ytEmojiSelectorBehavior)};
_.L.getFocusableElements=function(){return _.XB(this.hostElement).querySelectorAll("img").filter(function(I){return I.getAttribute("role")==="option"})};
_.L.changeFocus=function(I){var y=this.getFocusableElements();y!=null&&y.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+I+y.length)%y.length,this.ytEmojiSelectorBehavior.focusedIndex<y.length&&(I=y[this.ytEmojiSelectorBehavior.focusedIndex])&&I.focus())};
_.L.onKeyboardEnter=function(){var I=this.getFocusableElements();I!=null&&I.length&&(I=I[this.ytEmojiSelectorBehavior.focusedIndex])&&I instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(I),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.mD.Object.defineProperties(pY.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D,F;return this.emojiManager&&((y=this.data)==null?0:(D=y.emoji)==null?0:(F=D.variantIds)==null?0:F.length)?this.data.emoji.variantIds.map(function(R){return!!R&&_.KY(I.emojiManager,R)}).filter(function(R){return!!R}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var I,y=(I=this.userSelection)==null?void 0:I.left,D;I=(D=this.userSelection)==null?void 0:D.right;return y&&I?this.getEmojiFromPartialSelections(y,I):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.composedEmojiSelection)==null?0:I.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var y;I=(y=this.userSelection)==null?void 0:y.left;var D;y=(D=this.userSelection)==null?void 0:D.right;if(!I&&!y){var F;return this.ytEmojiSelectorBehavior.emojiUrl(((F=this.data.emoji)==null?void 0:F.emojiId)||"")}return I&&!y?I:!I&&y?y:""}}});
pY.prototype.onMultiSelectorThumbnailRowChanged=pY.prototype.onMultiSelectorThumbnailRowChanged;pY.prototype.onClick=pY.prototype.onClick;_.W([_.Q(_.Pc),_.A("design:type",Object)],pY.prototype,"ironOverlayBehavior",void 0);_.W([_.Q(iI_),_.A("design:type",Object)],pY.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pY.prototype,"data",void 0);_.W([_.M(),_.A("design:type",_.P9)],pY.prototype,"emojiManager",void 0);
_.W([_.M(),_.A("design:type",Object)],pY.prototype,"userSelection",void 0);_.W([_.M(),_.A("design:type",Object)],pY.prototype,"scrollAction",void 0);_.W([_.M(),_.A("design:type",Object)],pY.prototype,"isEmojiDraftInProgress",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],pY.prototype,"emojiVariants",null);_.W([_.Y("data","userSelection"),_.A("design:type",Object),_.A("design:paramtypes",[])],pY.prototype,"composedEmojiSelection",null);
_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],pY.prototype,"onClick",null);_.W([_.ke("data.emoji.multiSelectorThumbnailRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pY.prototype,"onMultiSelectorThumbnailRowChanged",null);_.W([_.Y("data","userSelection","composedEmojiSelection"),_.A("design:type",String),_.A("design:paramtypes",[])],pY.prototype,"draftEmojiUrl",null);
_.W([_.I6({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],pY);
_.a(pY,"yt-emoji-multi-person-selector",function(){if($6W===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;A8f===void 0&&(A8f=document.createElement("template"));var F=A8f;D.call(y,F.content.cloneNode(!0),I.content.firstChild);$6W=I}I=$6W;return I},{mode:2});var TgM;var sgO;var mk=function(){var I=_.k.apply(this,arguments)||this;I.tooltip_=null;return I};
_.E(mk,_.k);_.L=mk.prototype;_.L.dataChanged_=function(){var I;if((I=this.data)==null?0:I.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.XB(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.ng)(this.tooltip_).textContent=this.data.tooltip};
_.L.computeTargetId=function(){var I;return((I=this.data)==null?void 0:I.targetId)||""};
_.L.computeId_=function(I){return I};
_.L.computeIcon_=function(I){return _.pQ(I)};
_.L.onTap_=function(){this.active=!this.active;_.lj(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.L.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("active-changed",this.active))};
_.mD.Object.defineProperties(mk.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var I,y;if((I=this.data)==null?0:(y=I.icon)==null?0:y.iconType)return this.data.icon.iconType==="SUPER_STICKER";var D,F;return((D=this.data)==null?void 0:(F=D.icon)==null?void 0:F.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
mk.prototype.activeChangedForBinding=mk.prototype.activeChangedForBinding;mk.prototype.dataChanged_=mk.prototype.dataChanged_;_.W([_.Q(_.wi.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],mk.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mk.prototype,"data",void 0);_.W([_.M({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.A("design:type",String)],mk.prototype,"id",void 0);
_.W([_.M({computed:"computeTargetId(data.targetId)"}),_.A("design:type",String)],mk.prototype,"targetId",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],mk.prototype,"active",void 0);_.W([_.M({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.A("design:type",String)],mk.prototype,"icon",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mk.prototype,"dataChanged_",null);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mk.prototype,"iconFilled",null);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mk.prototype,"activeChangedForBinding",null);_.W([_.I6({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],mk);
_.a(mk,"yt-emoji-picker-category-button-renderer",function(){if(sgO===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;TgM===void 0&&(TgM=document.createElement("template"));var F=TgM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);sgO=I}I=sgO;return I},{mode:2});var Vm_;var ZIG;var MT=function(){var I=_.k.apply(this,arguments)||this;I.ariaLabel=null;I.ariaActivedescendant=null;I.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};I.JSC$14568_ignoreNextFocus_=!1;I.longPressTimeoutId=-1;return I};
_.E(MT,_.k);_.L=MT.prototype;_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.L.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.L.emojiChanged_=function(){this.changeFocus_(0,!1);for(var I=_.W4(),y=0;y<this.emoji.length;y++){var D={veType:88013,elementIndex:y},F=this.emoji[y];F.isCustomEmoji&&(F=document.querySelector(("#"+F.emojiId).replace("/","\\/")))&&(D=_.c4(I,D))&&(F.visualElement=D)}};
_.L.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.L.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.L.emojiSkinToneChanged_=function(I){this.skinTone=I};
_.L.dataChanged=function(){this.data&&this.data.emojiData&&irf(this.emojiManager,this.data.emojiData)};
_.L.emojiUrl=function(I){I=this.getEmoji(I);if(!I)return"";var y;I=(y=I.image)==null?void 0:y.thumbnails;return _.hf(I,24)||""};
_.L.emojiAlt=function(I){var y=this.get("image.accessibility.accessibilityData.label",I);return y?y:I.isCustomEmoji?I.shortcuts[0]:I.emojiId};
_.L.emojiAriaLabel=function(I){return I.shortcuts?I.shortcuts[0]:""};
_.L.emojiAriaSelected=function(I,y,D){return I&&D==y?"true":"false"};
_.L.getEmoji=function(I){if(this.emojiManager)return this.shouldUseStickyPreferences?$hW(this.emojiManager,I):Uy(this.emojiManager,I)};
_.L.computeId_=function(I){return I.categoryId||""};
_.L.computeEmoji=function(I){var y=this;return this.emojiManager?I.emojiIds?I.emojiIds.map(function(D){return D?_.KY(y.emojiManager,D):null}).filter(rEJ):I.emojiData?I.emojiData.map(function(D){var F=!!D.emojiId&&_.KY(y.emojiManager,D.emojiId);
return F?Object.assign({},F,D):null}).filter(rEJ):[]:[]};
_.L.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.L.computeAriaLabel_=function(I){return _.rY(I)};
_.L.computeAriaActivedescendant_=function(I,y){return I&&I[y]?I[y].emojiId||"":""};
_.L.handleLongPressEmojiWithVariants=function(I,y){this.changeFocusToEmoji(I.emojiId,!1);this.openVariantSelector(I,y)};
_.L.onMouseDown=function(I){var y=this;this.hostElement!==document.activeElement&&(this.JSC$14568_ignoreNextFocus_=!0);if(I.button===0){var D=_.jv(I);if(D instanceof HTMLImageElement){var F=_.XB(this.hostElement).querySelector("#repeat").itemForElement(D);this.emojiContainsVariants(F)&&(this.longPressTimeoutId=setTimeout(function(){y.handleLongPressEmojiWithVariants(F,D)},500))}}};
_.L.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.L.onFocus=function(){this.JSC$14568_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14568_ignoreNextFocus_=!1};
_.L.onBlur_=function(){this.showFocus=!1};
_.L.emojiContainsVariants=function(I){return!!(I&&I.variantIds&&I.variantIds.length)};
_.L.onClick=function(I){clearTimeout(this.longPressTimeoutId);I=_.jv(I);if(I instanceof HTMLImageElement){var y=I.id;this.changeFocusToEmoji(y,!1);var D=this.getEmoji(y),F;if(F=this.shouldUseStickyPreferences&&this.emojiContainsVariants(D)){var R;F=!((R=this.emojiManager.emojiMap[y])!=null&&R.stickyPrefId)}F?(R=_.XB(this.hostElement).querySelector("#repeat").itemForElement(I),this.openVariantSelector(R,I)):_.lj(this.hostElement,"yt-emoji-select",D)}};
_.L.isActiveEmojiWithVariants=function(I,y){return I&&y?y.stickyPrefId?I===y.stickyPrefId:I===y.emojiId:!1};
_.L.onCloseEmojiVariantSelector=function(I){this.activeEmojiWithVariantsId===I&&(this.activeEmojiWithVariantsId="")};
_.L.onMouseOver_=function(I){I=_.jv(I);I instanceof HTMLImageElement&&_.lj(this.hostElement,"yt-emoji-hover",_.KY(this.emojiManager,I.id))};
_.L.changeFocus_=function(I,y){this.focusedIndex=(this.focusedIndex+I+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(I=this.emoji[this.focusedIndex],y&&(this.showFocus=!0,_.XB(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.lj(this.hostElement,"yt-emoji-hover",I)))};
_.L.changeFocusToEmoji=function(I,y){if(I){var D=this.emoji.findIndex(function(F){return F.emojiId===I});
D!==-1&&this.changeFocus_(D-this.focusedIndex,y)}};
_.L.onKeyDown_=function(I){switch(I.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var y=this.emoji[this.focusedIndex];if(y&&y.emojiId){if(this.emojiContainsVariants(y)){var D=_.XB(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(y,D)}else _.lj(this.hostElement,"yt-emoji-select",Uy(this.emojiManager,y.emojiId)),this.hostElement.focus();I.preventDefault()}}break;case 40:this.changeFocus_(1,!0);I.preventDefault();break;case 38:this.changeFocus_(-1,!0),
I.preventDefault()}};
_.L.onEmojiStickyPreferenceChanged=function(I,y){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&I.emojiId&&I.variantIds&&I.variantIds.includes(y)&&this.activeEmojiWithVariantsId!==y&&this.setStickyEmojiPreference(I.emojiId,y)};
_.L.openVariantSelector=function(I,y){this.activeEmojiWithVariantsId=I.stickyPrefId||I.emojiId||"";_.lj(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:I,target:y})};
_.L.setStickyEmojiPreference=function(I,y){if(this.data){var D=this.emoji.findIndex(function(R){return R.emojiId===I});
if(D!==-1){var F=this.emoji[D];F.stickyPrefId=y;this.set("emoji."+D,Object.assign({},F));this.activeEmojiWithVariantsId=y}}};
MT.prototype.onKeyDown_=MT.prototype.onKeyDown_;MT.prototype.onMouseOver_=MT.prototype.onMouseOver_;MT.prototype.onClick=MT.prototype.onClick;MT.prototype.onBlur_=MT.prototype.onBlur_;MT.prototype.onFocus=MT.prototype.onFocus;MT.prototype.onMouseUp=MT.prototype.onMouseUp;MT.prototype.onMouseDown=MT.prototype.onMouseDown;MT.prototype.dataChanged=MT.prototype.dataChanged;MT.prototype.disableIncrementalLoadingChanged_=MT.prototype.disableIncrementalLoadingChanged_;MT.prototype.emojiManagerChanged_=MT.prototype.emojiManagerChanged_;
MT.prototype.emojiChanged_=MT.prototype.emojiChanged_;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],MT.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],MT.prototype,"data",void 0);_.W([_.M({computed:"computeId_(data)"}),_.A("design:type",String)],MT.prototype,"id",void 0);_.W([_.M({computed:"computeEmoji(data)"}),_.A("design:type",Array)],MT.prototype,"emoji",void 0);_.W([_.M(),_.A("design:type",Number)],MT.prototype,"skinTone",void 0);
_.W([_.M(),_.A("design:type",_.P9)],MT.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Boolean)],MT.prototype,"disableIncrementalLoading",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],MT.prototype,"focusedIndex",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],MT.prototype,"showFocus",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.A("design:type",Object)],MT.prototype,"ariaLabel",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.A("design:type",Object)],MT.prototype,"ariaActivedescendant",void 0);_.W([_.M({value:60}),_.A("design:type",Number)],MT.prototype,"domRepeatTargetFramerate",void 0);_.W([_.M({value:1}),_.A("design:type",Number)],MT.prototype,"domRepeatInitialCount",void 0);_.W([_.M({value:""}),_.A("design:type",String)],MT.prototype,"activeEmojiWithVariantsId",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],MT.prototype,"shouldUseStickyPreferences",void 0);_.W([_.ke("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"emojiChanged_",null);_.W([_.ke("emojiManager"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"emojiManagerChanged_",null);
_.W([_.ke("disableIncrementalLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"disableIncrementalLoadingChanged_",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"dataChanged",null);_.W([_.z4("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],MT.prototype,"onMouseDown",null);
_.W([_.z4("mouseup"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"onMouseUp",null);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"onFocus",null);_.W([_.z4("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"onBlur_",null);
_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MT.prototype,"onClick",null);_.W([_.z4("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MT.prototype,"onMouseOver_",null);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],MT.prototype,"onKeyDown_",null);
_.W([_.I6({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],MT);
_.a(MT,"yt-emoji-picker-category-renderer",function(){if(ZIG===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Vm_===void 0&&(Vm_=document.createElement("template"));var F=Vm_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ZIG=I}I=ZIG;return I},{mode:2});var gOe;var IAW;var yEP;var D9O;var z2=function(){var I=_.k.apply(this,arguments)||this;I.ariaLabel=null;I.ariaActivedescendant=null;I.getFormattedStringRawText=_.rY;I.JSC$14574_ignoreNextFocus_=!1;return I};
_.E(z2,_.k);_.L=z2.prototype;_.L.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")};
_.L.emojiUrl=function(I){var y,D;I=(y=Uy(this.emojiManager,I,!0))==null?void 0:(D=y.image)==null?void 0:D.thumbnails;return _.hf(I,24)||""};
_.L.emojiAlt=function(I){var y=this.get("image.accessibility.accessibilityData.label",I);return y?y:I.isCustomEmoji?I.shortcuts[0]:I.emojiId};
_.L.emojiId=function(I){return"emoji"+I};
_.L.computeId_=function(I){return I.categoryId||""};
_.L.computeAriaActivedescendant_=function(I){return this.emoji&&I<this.emoji.length?this.emojiId(I):""};
_.L.emojiChanged_=function(){this.changeFocus_(0,!1);for(var I=_.W4(),y=0;y<this.emoji.length;y++){var D={veType:88013,elementIndex:y},F=this.emoji[y];F.isCustomEmoji&&(F=document.querySelector(("#"+F.emojiId).replace("/","\\/")))&&(D=_.c4(I,D))&&(F.visualElement=D)}};
_.L.computeEmoji_=function(I){var y=this;return this.emojiManager?I.emojiIds.map(function(D){return _.KY(y.emojiManager,D,!0)}).filter(jXo):[]};
_.L.titleOffsetChanged_=function(){var I=this.hostElement.getBoundingClientRect(),y=_.XB(this.hostElement).querySelector("#title").getBoundingClientRect();I=Math.max(0,Math.min(this.titleOffset,I.height-y.height));_.XB(this.hostElement).querySelector("#title").style.top=I+"px"};
_.L.onEmojiMouseOver_=function(I){_.lj(this.hostElement,"yt-emoji-hover",I.model.item)};
_.L.onEmojiTap_=function(I){this.data.command&&(I=Fpt(_.nR().resolve(_.fR(xn)),this.data.command,I),_.lj(this.hostElement,"yt-navigate",I))};
_.L.emojiAriaLabel=function(I){return I.shortcuts[0]};
_.L.emojiAriaSelected=function(I,y,D){return I&&D==y?"true":"false"};
_.L.changeFocus_=function(I,y){var D=this.emoji.length;this.focusedIndex=(this.focusedIndex+I+D)%D;I=this.emoji[this.focusedIndex];if(y){var F;(F=_.XB(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||F.scrollIntoView(!1);_.lj(this.hostElement,"yt-emoji-hover",I)}};
_.L.onMouseDown_=function(){this.JSC$14574_ignoreNextFocus_=!0};
_.L.onFocus_=function(){this.JSC$14574_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14574_ignoreNextFocus_=!1};
_.L.onBlur_=function(){this.showFocus=!1};
_.L.onKeyDown_=function(I){switch(I.keyCode){case 13:this.onEmojiTap_(I);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);I.preventDefault();break;case 38:this.changeFocus_(-1,!0),I.preventDefault()}};
z2.prototype.onKeyDown_=z2.prototype.onKeyDown_;z2.prototype.onBlur_=z2.prototype.onBlur_;z2.prototype.onFocus_=z2.prototype.onFocus_;z2.prototype.onMouseDown_=z2.prototype.onMouseDown_;z2.prototype.onEmojiTap_=z2.prototype.onEmojiTap_;z2.prototype.titleOffsetChanged_=z2.prototype.titleOffsetChanged_;z2.prototype.emojiChanged_=z2.prototype.emojiChanged_;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],z2.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],z2.prototype,"data",void 0);_.W([_.M({computed:"computeId_(data)"}),_.A("design:type",String)],z2.prototype,"id",void 0);_.W([_.M({computed:"computeEmoji_(data)"}),_.A("design:type",Array)],z2.prototype,"emoji",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],z2.prototype,"titleOffset",void 0);_.W([_.M({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.A("design:type",Object)],z2.prototype,"ariaLabel",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.A("design:type",Object)],z2.prototype,"ariaActivedescendant",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],z2.prototype,"showFocus",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],z2.prototype,"focusedIndex",void 0);_.W([_.M(),_.A("design:type",_.P9)],z2.prototype,"emojiManager",void 0);
_.W([_.ke("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z2.prototype,"emojiChanged_",null);_.W([_.ke("titleOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z2.prototype,"titleOffsetChanged_",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],z2.prototype,"onEmojiTap_",null);
_.W([_.z4("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z2.prototype,"onMouseDown_",null);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z2.prototype,"onFocus_",null);_.W([_.z4("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],z2.prototype,"onBlur_",null);
_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],z2.prototype,"onKeyDown_",null);_.W([_.I6({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],z2);
_.a(z2,"yt-emoji-picker-upsell-category-renderer",function(){if(D9O===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;yEP===void 0&&(yEP=document.createElement("template"));var F=yEP;D.call(y,F.content.cloneNode(!0),I.content.firstChild);D9O=I}I=D9O;return I},{mode:2});var Fvu;var Rwz;var k3=function(){var I=_.k.apply(this,arguments)||this;I.scrollAction="lock";I.verticalAlign="top";return I};
_.E(k3,_.k);_.L=k3.prototype;_.L.onClick=function(I){I=_.jv(I);I instanceof HTMLImageElement&&_.lj(this.hostElement,"yt-emoji-select",_.KY(this.emojiManager,I.id))};
_.L.openSelector=function(){this.ironOverlayBehavior.open()};
_.L.onDomChange=function(){Bgc(this.ytEmojiSelectorBehavior)};
_.L.computeIsFamilySelector=function(I){var y;return(I==null?void 0:(y=I.emoji)==null?void 0:y.emojiId)==="\ud83d\udc6a"};
_.L.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var I=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];I&&I.emojiId&&(_.lj(this.hostElement,"yt-emoji-select",_.KY(this.emojiManager,I.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.mD.Object.defineProperties(k3.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D,F;return this.emojiManager&&((y=this.data)==null?0:(D=y.emoji)==null?0:(F=D.variantIds)==null?0:F.length)?this.data.emoji.variantIds.map(function(R){return!!R&&_.KY(I.emojiManager,R)}).filter(function(R){return!!R}):[]}}});
k3.prototype.onClick=k3.prototype.onClick;_.W([_.Q(_.Pc),_.A("design:type",Object)],k3.prototype,"ironOverlayBehavior",void 0);_.W([_.Q(iI_),_.A("design:type",Object)],k3.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],k3.prototype,"data",void 0);_.W([_.M(),_.A("design:type",_.P9)],k3.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Object)],k3.prototype,"scrollAction",void 0);_.W([_.M(),_.A("design:type",Object)],k3.prototype,"verticalAlign",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.A("design:type",Boolean)],k3.prototype,"isFamilySelector",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],k3.prototype,"emojiVariants",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],k3.prototype,"onClick",null);_.W([_.I6({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],k3);
_.a(k3,"yt-emoji-variant-selector",function(){if(Rwz===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Fvu===void 0&&(Fvu=document.createElement("template"));var F=Fvu;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Rwz=I}I=Rwz;return I},{mode:2});var OK_=/:/g,Lvn=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],dQ=function(){var I=_.k.apply(this,arguments)||this;I.emojiVariantSelector=null;I.emojiMultiPersonSelector=null;I.identity=_.mJ;I.lastAnimationTime_=0;I.animationStart_=null;I.animationEnd_=null;return I};
_.E(dQ,_.k);_.L=dQ.prototype;
_.L.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}}};
_.L.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.rQ)};
_.L.attached=function(){_.fz&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ANe(this.emojiManager)};
_.L.dataChanged=function(){var I;if((I=this.data)==null?0:I.categories){I=this.emojiManager;var y=this.getCustomEmojiIds();I.pickerCustomEmojiIds=[].concat(_.Td(aDf),_.Td(y))}};
_.L.getCustomEmojiIds=function(){var I,y=(I=this.data.categories)==null?void 0:I.find(function(O){var w;return((w=O.emojiPickerCategoryRenderer)==null?void 0:w.categoryId)&&Lvn.includes(O.emojiPickerCategoryRenderer.categoryId)}),D;
I=(D=this.data.categories)==null?void 0:D.find(function(O){return O.emojiPickerUpsellCategoryRenderer});
var F,R;return[y==null?void 0:(F=y.emojiPickerCategoryRenderer)==null?void 0:F.emojiIds,I==null?void 0:(R=I.emojiPickerUpsellCategoryRenderer)==null?void 0:R.emojiIds].flat().filter(function(O){return!!O})};
_.L.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.L.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.L.updateCategoriesAndPlaceholderInternal=function(I,y){var D=this;I&&y&&(this.categories=I.categories||[],this.categoryButtons=I.categoryButtons||[],this.resetPlaceholder(),this.search="",_.wy(function(){D.updateButtons_()}))};
_.L.computeId_=function(I){return I.id||""};
_.L.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(I){return I.emojiPickerCategoryRenderer&&I.emojiPickerCategoryRenderer.emojiData}):!1};
_.L.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.L.onShowEmojiVariantSelector=function(I){var y=I.detail.emojiData;y.variantIds&&y.variantIds.length&&(y.multiSelectorThumbnailRow&&y.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:y,target:I.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:y,target:I.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.L.onIronOverlayClosed=function(I){var y=$hW(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");y&&I.composedPath&&(I.composedPath().includes(_.XB(this.hostElement).querySelector("#emoji-variant-selector"))||I.composedPath().includes(_.XB(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.uj(this.hostElement,"yt-close-emoji-variant-selector",[y.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.L.onEmojiVariantSelectorMouseup=function(I){var y=I.target.firstChild;this.variantSelectorOpened&&y&&_.wy(function(){y.noCancelOnOutsideClick=!1},100)};
_.L.onEmojiVariantSelectorMousedown=function(I){I=I.target.firstChild;this.variantSelectorOpened&&I&&(I.noCancelOnOutsideClick=!1)};
_.L.onSelectCategory_=function(I){var y=this.search!="";this.search="";for(var D=_.XB(this.hostElement).querySelector("#categories").children,F=0;F<D.length;F++){var R=D[F];if(R.id==I.detail.categoryId){y?(_.XB(this.hostElement).querySelector("#categories").scrollTop=R.offsetTop,this.updateButtons_()):(this.animationStart_=_.XB(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=R.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.L.onEmojiHover_=function(I){this.placeholder=I.detail.shortcuts?I.detail.shortcuts[0]:""};
_.L.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.L.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.L.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.L.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.L.computeSearchCategory_=function(I){I=I.replace(OK_,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();I=I.split(" ");for(var y=[],D=this.emojiManager.emojis,F=0;F<D.length;F++){var R=D[F];if(R.searchTerms)for(var O=0;O<R.searchTerms.length;O++){for(var w=R.searchTerms[O].toLocaleLowerCase(),v=!1,P=0;P<I.length;P++)if(w.indexOf(I[P])!=-1){v=!0;break}if(v&&(!R.isCustomEmoji||!R.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(R.emojiId))){y.push(R.emojiId);
break}}}return{categoryId:-1,emojiIds:y}};
_.L.computeSearchEmptyMessage_=function(I,y){return I&&y&&y.emojiIds&&y.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.L.computeSearching_=function(I){return this.emojiManager&&I.replace(OK_,"").length>1};
_.L.computeSkinToneHidden=function(){var I;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((I=this.data)==null||!I.hideSkinTonePicker)};
_.L.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.L.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.L.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.L.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.L.selectSkinTone_=function(I){I=Number(I.target.getAttribute("tone"));this.set("emojiManager.skinTone",I);_.uj(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[I]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.L.skinToneChanged_=function(){_.XB(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var I=_.XB(this.hostElement).querySelector("#dropdown-content").children,y=0;y<I.length;y++)y===this.skinTone?I[y].setAttribute("selected",""):I[y].removeAttribute("selected")};
_.L.animateScroll_=function(I){this.lastAnimationTime_||(this.lastAnimationTime_=I);I-=this.lastAnimationTime_;I<200?(_.XB(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*I/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.XB(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.L.searchChanged_=function(){this.updateButtons_()};
_.L.updateButtons_=function(){var I=null;if(!this.search)for(var y=_.XB(this.hostElement).querySelector("#categories").scrollTop,D=_.XB(this.hostElement).querySelector("#categories").children,F=0;F<D.length;F++){var R=D[F];R.offsetTop<=y&&(I=R.id)}y=_.XB(this.hostElement).querySelector("#category-buttons").children;for(D=0;D<y.length;D++)F=y[D],F.active=F.id===I};
dQ.prototype.searchChanged_=dQ.prototype.searchChanged_;dQ.prototype.skinToneChanged_=dQ.prototype.skinToneChanged_;dQ.prototype.onEmojiHover_=dQ.prototype.onEmojiHover_;dQ.prototype.onSelectCategory_=dQ.prototype.onSelectCategory_;dQ.prototype.onShowEmojiVariantSelector=dQ.prototype.onShowEmojiVariantSelector;dQ.prototype.updateCategoriesAndPlaceholder_=dQ.prototype.updateCategoriesAndPlaceholder_;dQ.prototype.dataChanged=dQ.prototype.dataChanged;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],dQ.prototype,"data",void 0);_.W([_.M({value:function(){return[]}}),
_.A("design:type",Array)],dQ.prototype,"categories",void 0);_.W([_.M({value:function(){return[]}}),
_.A("design:type",Array)],dQ.prototype,"categoryButtons",void 0);_.W([_.M({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.A("design:type",Boolean)],dQ.prototype,"disableScroll",void 0);_.W([_.M({computed:"computeId_(data)",reflectToAttribute:!0}),_.A("design:type",String)],dQ.prototype,"id",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],dQ.prototype,"selected",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],dQ.prototype,"disableIncrementalLoading",void 0);_.W([_.M(),_.A("design:type",String)],dQ.prototype,"placeholder",void 0);_.W([_.M({value:""}),_.A("design:type",String)],dQ.prototype,"search",void 0);_.W([_.M({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.A("design:type",Boolean)],dQ.prototype,"searching",void 0);_.W([_.M({computed:"computeSearchCategory_(search)"}),_.A("design:type",Object)],dQ.prototype,"searchCategory",void 0);
_.W([_.M({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.A("design:type",Object)],dQ.prototype,"searchEmptyMessage",void 0);_.W([_.M({computed:"identity(emojiManager.skinTone)"}),_.A("design:type",Number)],dQ.prototype,"skinTone",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],dQ.prototype,"skinToneOpened",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],dQ.prototype,"variantSelectorOpened",void 0);
_.W([_.M({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.A("design:type",Boolean)],dQ.prototype,"skinToneHidden",void 0);_.W([_.M(),_.A("design:type",_.P9)],dQ.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Object)],dQ.prototype,"emojiVariantSelector",void 0);_.W([_.M(),_.A("design:type",Object)],dQ.prototype,"emojiMultiPersonSelector",void 0);
_.W([_.M({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.A("design:type",Boolean)],dQ.prototype,"shouldUseStickyPreferences",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"dataChanged",null);_.W([_.ke("data","selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"updateCategoriesAndPlaceholder_",null);
_.W([_.z4("yt-show-emoji-variant-selector"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dQ.prototype,"onShowEmojiVariantSelector",null);_.W([_.z4("yt-emoji-picker-select-category"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dQ.prototype,"onSelectCategory_",null);_.W([_.z4("yt-emoji-hover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dQ.prototype,"onEmojiHover_",null);
_.W([_.ke("skinTone"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"skinToneChanged_",null);_.W([_.ke("search"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"searchChanged_",null);_.W([_.I6({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],dQ);
_.a(dQ,"yt-emoji-picker-renderer",function(){if(IAW===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;gOe===void 0&&(gOe=document.createElement("template"));var F=gOe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);IAW=I}I=IAW;return I},{mode:2});var at=function(){var I=_.k.apply(this,arguments)||this;I.emojiManager=_.rQ;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.selectedIndex=1;I.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return I};
_.E(at,_.k);_.L=at.prototype;_.L.handleEmojiCustomizationVisible=function(I){this.emojiPickerRenderer.selected=I;this.selectedIndex=1;I?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.L.emojiCustomizationSetChanged=function(){var I;(I=this.data)!=null&&I.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.sq(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.L.updateSaveButtonState=function(I){var y;(y=this.data)!=null&&y.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.WS("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:I}))};
_.L.emojiUrl=function(I){I=_.KY(this.emojiManager,I);if(!I)return"";var y;I=(y=I.image)==null?void 0:y.thumbnails;return _.hf(I,24)||""};
_.L.emojiAlt=function(I){var y=_.KY(this.emojiManager,I);if(!y)return I;var D,F,R,O=(y==null?void 0:(D=y.image)==null?void 0:(F=D.accessibility)==null?void 0:(R=F.accessibilityData)==null?void 0:R.label)||"";return O?O:y.isCustomEmoji?y.shortcuts[0]:y.emojiId||I};
_.L.emojiAriaLabel=function(I){var y,D;return((y=_.KY(this.emojiManager,I))==null?void 0:(D=y.shortcuts)==null?void 0:D[0])||I};
_.L.onEmojiClick=function(I){I.model.index!==0&&(this.selectedIndex=I.model.index)};
_.L.onEmojiSelect=function(I){I=I.detail;var y,D;((y=this.data)==null?0:y.emojiCustomizationSetEntityKey)&&((D=this.emojiCustomizationSet)==null?0:D.emojiId)&&I.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,I.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.WS("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,I.emojiId,this.selectedIndex)}))};
_.L.canEditEmoji=function(I,y,D){I=I.indexOf(y);return I===D||I===0||D===0?!1:!0};
_.L.getUpdatedEmojiIdList=function(I,y,D){var F=I.indexOf(y);I=[].concat(_.Td(I));F>=0&&(I[F]=I[D]);I[D]=y;return I};
_.mD.Object.defineProperties(at,{template:{configurable:!0,enumerable:!0,get:function(){if(GYR===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;EOW===void 0&&(EOW=document.createElement("template"));var F=EOW;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GYR=I}I=GYR;return I}}});
at.prototype.onEmojiSelect=at.prototype.onEmojiSelect;_.W([_.Q(_.J2),_.A("design:type",Object)],at.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],at.prototype,"ytActionHandlerBehavior",void 0);_.W([_.a0("yt-emoji-picker-renderer"),_.A("design:type",Object)],at.prototype,"emojiPickerRenderer",void 0);
_.W([_.M({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(I,y){return _.nC(I.entities,"emojiCustomizationSetEntity",y)},
observer:"emojiCustomizationSetChanged"}),_.A("design:type",Object)],at.prototype,"emojiCustomizationSet",void 0);_.W([_.M(),_.A("design:type",Object)],at.prototype,"originalEmojiSet",void 0);_.W([_.M(),_.A("design:type",_.P9)],at.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Object)],at.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],at.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],at.prototype,"selectedIndex",void 0);
_.W([_.z4("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],at.prototype,"onEmojiSelect",null);_.W([_.I6({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],at);var JEa;var wsM;var vN_;var SBP;var c9=function(){var I=_.k.apply(this,arguments)||this;I.authorBadges=[];return I};
_.E(c9,_.k);_.L=c9.prototype;_.L.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.L.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]]"}}}}}};
_.L.dataChanged=function(){var I=JDW(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",I)};
_.L.updateMessage=function(){var I=this.data.message,y=_.XB(_.XB(this.hostElement).querySelector("#message"));y.textContent="";I&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I))};
_.L.shouldSupportWholeItemClick=function(){return!0};
_.L.onShowOriginalClick=function(I){I.preventDefault();this.showOriginal=!0};
_.L.computeShowBar=function(I,y,D){return I&&y||D};
_.L.computeAuthorBadges=function(I){return I.authorBadges||[]};
_.L.computeAuthorIsOwner=function(I){return!!wT_(I.authorBadges,"owner")};
_.L.computeAuthorNameColor=function(I){var y;if(_.l("live_chat_author_name_color_usernames")&&(I==null?0:(y=I.authorName)==null?0:y.simpleText))return _.UNt(_.rDH(I.authorName.simpleText));if(_.l("live_chat_seed_color_usernames")&&(I==null?0:I.authorSeedColorArgb))return _.UNt(_.fQ(I.authorSeedColorArgb));if(_.l("live_chat_colored_usernames"))return"#cc0000";var D;return _.l("live_chat_simple_color_usernames")&&(I==null?0:(D=I.authorName)==null?0:D.simpleText)&&(I==null?0:I.authorUsernameColorLight)&&
(I==null?0:I.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.fQ(I.authorUsernameColorDark):_.fQ(I.authorUsernameColorLight):""};
c9.prototype.updateMessage=c9.prototype.updateMessage;c9.prototype.dataChanged=c9.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],c9.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],c9.prototype,"data",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"showOriginal",void 0);_.W([_.M({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"isDimmed",void 0);_.W([_.M({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"showBar",void 0);
_.W([_.M({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],c9.prototype,"authorBadges",void 0);_.W([_.M({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"authorIsOwner",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"inCollapsedBanner",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"inBanner",void 0);
_.W([_.M({value:_.l("live_chat_hide_avatars"),reflectToAttribute:!0}),_.A("design:type",Boolean)],c9.prototype,"avatarHidden",void 0);_.W([_.M({computed:"computeAuthorNameColor(data)"}),_.A("design:type",String)],c9.prototype,"authorNameColor",void 0);_.W([_.M(),_.A("design:type",_.x3)],c9.prototype,"participantsManager",void 0);_.W([_.M({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.A("design:type",Object)],c9.prototype,"filledButtonOverrides",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c9.prototype,"dataChanged",null);_.W([_.ke("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c9.prototype,"updateMessage",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],c9);
_.a(c9,"yt-live-chat-text-message-renderer",function(){if(SBP===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;vN_===void 0&&(vN_=document.createElement("template"));var F=vN_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);SBP=I}I=SBP;return I},{mode:0});var W9=function(){var I=_.k.apply(this,arguments)||this;I.tonalButtonOverrides={type:"tonal",style:"overlay"};return I};
_.E(W9,_.k);
W9.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]]"}}}}}};
W9.prototype.shouldSupportInlineActionButtons=function(){return!0};
W9.prototype.shouldSupportWholeItemClick=function(){return!0};
_.mD.Object.defineProperties(W9.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],W9.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],W9.prototype,"data",void 0);_.W([_.M(),_.A("design:type",_.x3)],W9.prototype,"participantsManager",void 0);
_.W([_.M(),_.A("design:type",Object)],W9.prototype,"tonalButtonOverrides",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.infoDialogButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],W9.prototype,"hasInfoDialogButton",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],W9);
_.a(W9,"yt-live-chat-auto-mod-message-renderer",function(){if(wsM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;JEa===void 0&&(JEa=document.createElement("template"));var F=JEa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);wsM=I}I=wsM;return I},{mode:0});var tdg;var Psn;var Kvu;var U9M=function(){return _.k.apply(this,arguments)||this};
_.E(U9M,_.k);_.W([_.M(),_.A("design:type",Object)],U9M.prototype,"data",void 0);_.W([_.yd({is:"ytd-factoid-renderer",disableElementRegistration:!0})],U9M);
_.a(U9M,"ytd-factoid-renderer",function(){if(Kvu!==void 0)return Kvu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Kvu=I},{mode:1});var CY=function(){return _.k.apply(this,arguments)||this};
_.E(CY,_.k);CY.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.W([_.M(),_.A("design:type",Object)],CY.prototype,"data",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],CY);
_.a(CY,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Psn===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;tdg===void 0&&(tdg=document.createElement("template"));var F=tdg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Psn=I}I=Psn;return I},{mode:0});var rEM;var jXe;var B9=function(){return _.k.apply(this,arguments)||this};
_.E(B9,_.k);B9.prototype.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Boolean)],B9.prototype,"menuFocused",void 0);_.W([_.M(),_.A("design:type",Object)],B9.prototype,"data",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],B9.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],B9);
_.a(B9,"yt-live-chat-donation-announcement-renderer",function(){if(jXe===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;rEM===void 0&&(rEM=document.createElement("template"));var F=rEM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);jXe=I}I=jXe;return I},{mode:0});var oNz;var N9e,hwO=function(){if(N9e!==void 0)return N9e;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;oNz===void 0&&(oNz=document.createElement("template"));var F=oNz;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return N9e=I};var iq=function(){return _.k.apply(this,arguments)||this};
_.E(iq,_.k);_.mD.Object.defineProperties(iq,{template:{configurable:!0,enumerable:!0,get:function(){return hwO()}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],iq.prototype,"data",void 0);_.W([_.I6({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],iq);_.a(iq,"yt-live-chat-empty-feed-view-model",function(){return hwO()},{mode:0});var x9g;var lA_;var Am=function(){return _.k.apply(this,arguments)||this};
_.E(Am,_.k);Am.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"}}}}}};
_.mD.Object.defineProperties(Am.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var I,y;return{runs:[{text:(I=this.data)==null?void 0:(y=I.channelName)==null?void 0:y.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var I=[],y;if((y=this.data)==null||!y.channelBadges)return I;var D;y=_.J((D=this.data)==null?void 0:D.channelBadges);for(D=y.next();!D.done;D=y.next()){D=_.u(D.value,K7z);var F=void 0,R=void 0;if((F=D)==null?0:(R=F.badgeImage)==null?0:R.sources)F=void 0,R={liveChatAuthorBadgeRenderer:{tooltip:D.tooltip,accessibility:{accessibilityData:{label:(F=_.u(D.rendererContext,_.W_))==null?void 0:F.label}}}},D.badgeImage.sources[0].clientResource?R.liveChatAuthorBadgeRenderer.icon=
{iconType:D.badgeImage.sources[0].clientResource.imageName}:R.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:D.badgeImage.sources},I.push(R)}return I}}});
_.W([_.M(),_.A("design:type",Object)],Am.prototype,"data",void 0);_.W([_.Y("data.channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],Am.prototype,"channelName",null);_.W([_.Y("data.channelBadges"),_.A("design:type",Array),_.A("design:paramtypes",[])],Am.prototype,"channelBadges",null);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Am);
_.a(Am,"yt-live-chat-identity-view-model",function(){if(lA_===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;x9g===void 0&&(x9g=document.createElement("template"));var F=x9g;D.call(y,F.content.cloneNode(!0),I.content.firstChild);lA_=I}I=lA_;return I},{mode:0});var uQW;var qBM;var ENu;var GbM;var $3=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;I.supportsInlineActionButtons=!0;return I};
_.E($3,_.k);$3.prototype.ready=function(){var I;((I=document.querySelector("yt-live-chat-app"))==null?0:I.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
$3.prototype.dataChanged=function(I){var y=(0,_.ng)(_.XB(this.hostElement).querySelector("#detail-text"));y.textContent="";(I==null?0:I.detailText)&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I.detailText))};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],$3.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({observer:"dataChanged"}),_.A("design:type",Object)],$3.prototype,"data",void 0);
_.W([_.M({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],$3.prototype,"hidden",void 0);_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],$3);
_.a($3,"yt-live-chat-legacy-paid-message-renderer",function(){if(GbM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ENu===void 0&&(ENu=document.createElement("template"));var F=ENu;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GbM=I}I=GbM;return I},{mode:0});var Xsz;var QXM;var YBz={},bq=function(){return _.Wp.apply(this,arguments)||this};
_.E(bq,_.Wp);bq.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
bq.prototype.onLiveChatMembershipItemBehaviorClick=bq.prototype.onLiveChatMembershipItemBehaviorClick;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bq.prototype,"data",void 0);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],bq.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.W([_.Cg()],bq);
YBz.YtLiveChatMembershipItemBehavior=[bq.prototype,_.V.YtRendererBehavior];var H9=function(){var I=_.k.apply(this,arguments)||this;I.supportsInlineActionButtons=!0;I.hasPrimaryHeaderText=!1;I.showOnlyHeader=!1;I.authorBadges=[];I.modern=_.l("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.E(H9,_.k);_.L=H9.prototype;_.L.shouldSupportInlineActionButtons=function(){return!0};
_.L.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.L.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.L.messageChanged=function(){var I=this.data.message,y=(0,_.ng)(_.XB(this.hostElement).querySelector("#message"));y.textContent="";I&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I))};
_.L.computeHasPrimaryHeaderText=function(I){return!(!I||!I.headerPrimaryText)};
_.L.computeShowOnlyHeader=function(I,y){return this.isMessageEmpty(I,y)};
_.L.computeAuthorBadges=function(I){return I.authorBadges||[]};
_.L.isMessageEmpty=function(I,y){return!I||I.empty?!0:!I.message&&!I.inputField&&!y};
_.L.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.L.getInputElement=function(){return _.XB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.L.inputFocus=function(){var I=this.getInputElement();I&&I.focus()};
_.L.inputInsertEmoji=function(I){var y=this.getInputElement();y&&y.insertEmoji(I)};
_.L.inputMessage=function(){var I=this.getInputElement();return I&&this.data.inputField?(I.completeEmojis(),_.Fp(I.liveChatRichMessageInput)):null};
_.L.onFooterButtonClick=function(){this.data.footerButton&&_.lj(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.L.shouldSupportWholeItemClick=function(){return!0};
H9.prototype.isDeletedChanged=H9.prototype.isDeletedChanged;H9.prototype.messageChanged=H9.prototype.messageChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],H9.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(YBz.YtLiveChatMembershipItemBehavior),_.A("design:type",Object)],H9.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],H9.prototype,"data",void 0);_.W([_.M({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.A("design:type",Object)],H9.prototype,"hasPrimaryHeaderText",void 0);_.W([_.M({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],H9.prototype,"showOnlyHeader",void 0);
_.W([_.M({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],H9.prototype,"authorBadges",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],H9.prototype,"modern",void 0);_.W([_.ke("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H9.prototype,"messageChanged",null);_.W([_.ke("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H9.prototype,"isDeletedChanged",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],H9);
_.a(H9,"yt-live-chat-membership-item-renderer",function(){if(QXM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Xsz===void 0&&(Xsz=document.createElement("template"));var F=Xsz;D.call(y,F.content.cloneNode(!0),I.content.firstChild);QXM=I}I=QXM;return I},{mode:0});var fA_;var nNP;var ex=function(){return _.k.apply(this,arguments)||this};
_.E(ex,_.k);ex.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ex.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],ex);
_.a(ex,"yt-live-chat-mode-change-message-renderer",function(){if(nNP===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;fA_===void 0&&(fA_=document.createElement("template"));var F=fA_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);nNP=I}I=nNP;return I},{mode:0});var psc;var m9u;var T2=function(){return _.k.apply(this,arguments)||this};
_.E(T2,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],T2.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],T2.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],T2);
_.a(T2,"yt-live-chat-moderation-message-renderer",function(){if(m9u===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;psc===void 0&&(psc=document.createElement("template"));var F=psc;D.call(y,F.content.cloneNode(!0),I.content.firstChild);m9u=I}I=m9u;return I},{mode:0});var Mdg;var zwn;var sy=function(){return _.k.apply(this,arguments)||this};
_.E(sy,_.k);sy.prototype.onClick=function(){var I;if((I=this.data)!=null&&I.onClickCommand){var y;_.M4.instance.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],sy.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],sy.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sy.prototype,"data",void 0);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],sy);
_.a(sy,"yt-live-chat-offer-click-count-message-renderer",function(){if(zwn===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Mdg===void 0&&(Mdg=document.createElement("template"));var F=Mdg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);zwn=I}I=zwn;return I},{mode:0});var kb_;var d9_=function(){return _.k.apply(this,arguments)||this};
_.E(d9_,_.k);_.W([_.M(),_.A("design:type",Object)],d9_.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],d9_);
_.a(d9_,"yt-live-chat-placeholder-item-renderer",function(){if(kb_===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);kb_=I}I=kb_;return I},{mode:0});var aAO;var cEc;var Wvc=new K0(7),VJ=function(){var I=_.k.apply(this,arguments)||this;I.data={};return I};
_.E(VJ,_.k);VJ.prototype.dataChanged=function(){var I;((I=this.data)==null?0:I.class)&&_.Ye(this.hostElement,this.data.class,!0);var y;((y=this.oldData)==null?0:y.class)&&_.Ye(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
VJ.prototype.computeTimestampString=function(I){return Wvc.format(new Date(I/1E3))};
VJ.prototype.dataChanged=VJ.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],VJ.prototype,"data",void 0);_.W([_.M({computed:"computeTimestampString(data.timestampUsec)"}),_.A("design:type",String)],VJ.prototype,"timestampString",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VJ.prototype,"dataChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],VJ);
_.a(VJ,"yt-live-chat-server-error-message",function(){if(cEc===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;aAO===void 0&&(aAO=document.createElement("template"));var F=aAO;D.call(y,F.content.cloneNode(!0),I.content.firstChild);cEc=I}I=cEc;return I},{mode:0});var Cse;var B9a;var Zg=function(){var I=_.k.apply(this,arguments)||this;I.defaultToFilledIcon=!1;return I};
_.E(Zg,_.k);Zg.prototype.computeHasPrimaryColorIcon=function(I){return I==="SPARK"||I==="SPONSORSHIP_STAR"};
Zg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],Zg.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zg.prototype,"defaultToFilledIcon",void 0);_.W([_.M(),_.A("design:type",Object)],Zg.prototype,"data",void 0);
_.W([_.M({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Zg.prototype,"hasPrimaryColorIcon",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Zg);
_.a(Zg,"yt-live-chat-viewer-engagement-message-renderer",function(){if(B9a===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Cse===void 0&&(Cse=document.createElement("template"));var F=Cse;D.call(y,F.content.cloneNode(!0),I.content.firstChild);B9a=I}I=B9a;return I},{mode:0});var iKf;var gQ=function(){var I=_.k.apply(this,arguments)||this;I.modernUpdate=!1;I.buttonStyle="overlay";I.buttonType="filled";return I};
_.E(gQ,_.k);gQ.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
gQ.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gQ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],gQ.prototype,"modernUpdate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],gQ.prototype,"buttonStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],gQ.prototype,"buttonType",void 0);
_.W([_.yd({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],gQ);
_.a(gQ,"ytd-ad-hover-text-button-renderer",function(){if(iKf!==void 0)return iKf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return iKf=I},{mode:1});var AEz;var IK=function(){var I=_.k.apply(this,arguments)||this;I.buttonOverrides={size:"XS"};return I};
_.E(IK,_.k);IK.prototype.onHelpTap=function(I){this.data&&this.data.informationDialog&&(_.lj(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),I.preventDefault(),I.stopPropagation())};
_.W([_.M(),_.A("design:type",Object)],IK.prototype,"buttonOverrides",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IK.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],IK);
_.a(IK,"ytd-live-chat-purchased-product-message-renderer",function(){if(AEz!==void 0)return AEz;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return AEz=I},{mode:1});var $9g;var bKG;var y5=function(){var I=_.k.apply(this,arguments)||this;I.isContainerDeleted=!1;return I};
_.E(y5,_.k);y5.prototype.onContextMenuClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
y5.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))};
y5.prototype.isContainerDeletedChanged=y5.prototype.isContainerDeletedChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],y5.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],y5.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],y5.prototype,"isContainerDeleted",void 0);
_.W([_.M(),_.A("design:type",String)],y5.prototype,"deletedStateMessage",void 0);_.W([_.ke("isContainerDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y5.prototype,"isContainerDeletedChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],y5);
_.a(y5,"ytd-sponsorships-live-chat-header-renderer",function(){if(bKG!==void 0)return bKG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return bKG=I},{mode:1});var DW=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.E(DW,_.k);DW.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]]"}}}}}};
DW.prototype.onCtaButtonClick=function(){var I,y=_.u((I=this.data)==null?void 0:I.optInPrompt,_.S1);if(I=this.maybeGetButtonCommand(y)){var D;(D=_.W4())==null||D.clickCommand(I)}};
DW.prototype.maybeGetButtonCommand=function(I){return!I||!I.command||_.u(I.command,g3f)===void 0&&_.u(I.command,ZYe)===void 0?null:I.command};
DW.prototype.shouldHideOptinPrompt=function(I,y){return!I||y};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],DW.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],DW.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],DW.prototype,"modern",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],DW);
_.a(DW,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if($9g!==void 0)return $9g;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return $9g=I},{mode:1});var HKM;var Fb=function(){return _.k.apply(this,arguments)||this};
_.E(Fb,_.k);Fb.prototype.onContextMenuClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
Fb.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))};
Fb.prototype.isDeletedChanged=Fb.prototype.isDeletedChanged;_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],Fb.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Fb.prototype,"data",void 0);_.W([_.ke("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fb.prototype,"isDeletedChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Fb);
_.a(Fb,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(HKM!==void 0)return HKM;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return HKM=I},{mode:1});var RK=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return I};
_.E(RK,_.k);_.L=RK.prototype;
_.L.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"}}}};
_.L.handleLiveChatAction=function(I){_.u(I,zRP)?this.handleMarkChatItemAsDeletedAction(_.u(I,zRP)):_.u(I,MJz)&&this.handleRemoveChatItemAction(_.u(I,MJz))};
_.L.handleLiveChatActions=function(I){I.forEach(this.handleLiveChatAction,this)};
_.L.handleMarkChatItemAsDeletedAction=function(I){var y=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(F,R){var O=Object.keys(F)[0];Object.values(F)[0].id===I.targetItemId&&y.markAsDeleted("data.items",R,O,I.deletedStateMessage,I.showOriginalContentMessage)})};
_.L.handleRemoveChatItemAction=function(I){var y=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(F,R){Object.values(F)[0].id===I.targetItemId&&y.splice("data.items",R,1)})};
_.L.markAsDeleted=function(I,y,D,F,R){I=[I,y,D].join(".");this.set(I+".deletedStateMessage",F);this.set(I+".showOriginalContentMessage",R)};
_.W([_.M(),_.A("design:type",Object)],RK.prototype,"data",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],RK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],RK);
_.a(RK,"yt-live-chat-item-display-list-renderer",function(){if(qBM===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;uQW===void 0&&(uQW=document.createElement("template"));var F=uQW;D.call(y,F.content.cloneNode(!0),I.content.firstChild);qBM=I}I=qBM;return I},{mode:0});var ew_;var T9O,sXO=function(){if(T9O!==void 0)return T9O;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;ew_===void 0&&(ew_=document.createElement("template"));var F=ew_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return T9O=I};var OC=function(){var I=_.k.apply(this,arguments)||this;I.isHeader=!1;return I};
_.E(OC,_.k);OC.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.mD.Object.defineProperties(OC,{template:{configurable:!0,enumerable:!0,get:function(){return sXO()}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OC.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],OC.prototype,"isHeader",void 0);_.W([_.I6({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],OC);_.a(OC,"yt-live-chat-item-display-renderer",function(){return sXO()},{mode:0});var Vd_,ZKG,FxR,DWa;
Vd_={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}};ZKG={home:"eohps",search:"eosps",watch:"eowps"};_.gNc=["watch","search","home"];
_.LN=function(){this.JSC$14685_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14685_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Pi("PRECONSTRUCTION_DELAY",0);this.signals_=_.oJ();this.targetPage_=""};
_.LN.prototype.init=function(I,y){I=I===void 0?"":I;y=y===void 0?null:y;if(this.JSC$14685_isInitialized_)this.abort();else if(this.JSC$14685_isInitialized_=!0,I&&_.Iue(this,I),y){var D=_.NF(this.signals_,"pcl")?0:10,F=function(){for(var R=0,O;O=_.gNc[R++];)O!=I&&O!=y&&this.pendingPages_.push(O);_.ycP(this)}.bind(this);
this.signals_.parkOrScheduleJob(F,D,"pcl")}};
_.LN.prototype.abort=function(){this.fragmentJobId_&&(_.w2.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);DWa(this)};
_.Iue=function(I,y){I.JSC$14685_isInitialized_&&!I.targetPage_&&(I.targetPage_=y,FxR(I,y),I.isInitialPass_=!1,FxR(I,y),I.signals_.processSignal(ZKG[I.targetPage_]),DWa(I),_.ycP(I))};
_.ycP=function(I){I.pendingPages_.length&&!I.pagePreparerJobId_&&(I.pagePreparerJobId_=_.y9(_.w2,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Iue(this,this.pendingPages_.shift())}.bind(I),I.DEFAULT_DELAY_))};
FxR=function(I,y){if(y=Vd_[y])for(var D in y){var F=!1,R=D;D.charAt(0)=="~"&&(F=!0,R=D.substring(1));var O=y[D];O=typeof O=="object"?O:{count:O};y[D]=O;O.componentName=R;O.count>0&&(I.isInitialPass_?F||I.isSeenDuringInitialPass_[R]||(I.JSC$14685_queue_.push({componentName:R,count:1,signals:O.signals}),I.isSeenDuringInitialPass_[R]=!0,O.count--):I.JSC$14685_queue_.push(O))}};
DWa=function(I){I.JSC$14685_queue_.length=0;I.targetPage_="";I.isInitialPass_=!0;I.signals_.processSignal("eop")};
_.LN.getInstance=function(){return _.l0(_.LN)};var Rmg=function(){this.signals=_.oJ();this.init()};
Rmg.prototype.startPreconstruction=function(){_.LN.getInstance().init(_.KR("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Rmg.prototype.init=function(){Owc(this);window.Polymer&&UrO&&Fce();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var I=_.Ft.ytcsi;if(I&&I.gt&&(I=I.gt())&&I.tick&&(I.tick.aft>0||I.tick.pbs>0)&&(_.KR("IS_HOMEPAGE_COLD")||_.KR("IS_RESULTS_PAGE_COLD")||_.KR("IS_WATCH_PAGE_COLD"))){Lxz(this);break a}ig5(HbJ,this.onNotifications,this)}};
var Owc=function(I){var y=function(){I.signals.processSignal("dl")};
document.readyState==="complete"?(_.o8(Error("uh"),"WARNING"),y()):_.NVC(window,"load",y)};
Rmg.prototype.onNotifications=function(I){I.timer||(_.KR("IS_HOMEPAGE_COLD")||_.KR("IS_RESULTS_PAGE_COLD")||_.KR("IS_WATCH_PAGE_COLD"))&&Lxz(this)};
var Lxz=function(I){I.signals.parkOrScheduleJob(function(){I.signals.processSignal("eocs")},10,"eor")};
new Rmg;var Jca=function(){return _.Wp.apply(this,arguments)||this};
_.E(Jca,_.Wp);_.mD.Object.defineProperties(Jca.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_entity_store_from_dependency_injection")?_.Uv():_.oq()}}});
_.W([_.Cg()],Jca);_.Jl=[Im.prototype,Jca.prototype];var wMM=["ytd-rich-shelf-renderer"],wp=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;I.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";I.followUpDialogPromise=null;I.followUpDialogPromiseResolve=null;I.followUpDialogPromiseReject=null;return I};
_.E(wp,_.Wp);_.L=wp.prototype;_.L.dismissibleItemIsDismissedChanged_=function(I){_.l("kevlar_fluid_dismiss")&&(I?_.lj(this.hostElement,"yt-dismissible-item-dismissed"):_.lj(this.hostElement,"yt-dismissible-item-undismissed"))};
_.L.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.L.dismissibleItemReset_=function(){var I=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 _.AO(function(y,D){I.followUpDialogPromiseResolve=y;I.followUpDialogPromiseReject=D});
_.lj(this.hostElement,"yt-enable-lockup-interaction")};
_.L.dismissibleItemOnYtServiceRequestSent_=function(I,y){y.actions&&this.dismissibleItemProcessActions(y.actions,I)};
_.L.dismissibleItemOnRequestSent=function(I){for(var y=_.J(I.detail),D=y.next();!D.done;D=y.next()){var F=void 0;(D=(F=_.u(D.value,_.fE))==null?void 0:F.actions)&&this.dismissibleItemProcessActions(D,I)}};
_.L.dismissibleItemOnCommandSent=function(I,y){y&&this.dismissibleItemProcessActions(y,I)};
_.L.setAndGetDismissedContentId=function(I){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+I};
_.L.replayDismissAction=function(I){this.dismissibleItemProcessActions([I])};
_.L.dismissibleItemProcessActions=function(I,y){for(var D=0;D<I.length;D++){var F=I[D],R=void 0;((R=_.u(F,_.Q_))==null?0:R.commands)&&this.dismissibleItemProcessActions(_.u(F,_.Q_).commands,y);if(_.u(F,_.iE)){if(R=_.u(F,_.iE),!R.replaceParentSection||wMM.includes(this.hostElement.nodeName.toLowerCase()))R.groupDismissal&&oNS(this,R.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(R),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.WS("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:F})),F=void 0,(F=y)==null||F.stopPropagation()}else if(_.u(F,XRM))this.dismissibleItemHandleHideEnclosingAction_(),F=void 0,(F=y)==null||F.stopPropagation();else if(_.u(F,Z3M))F=_.u(F,Z3M),R=void 0,((R=F)==null?0:R.targetGroupId)&&oNS(this,{targetGroupId:F.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.WS("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
F=void 0,(F=y)==null||F.stopPropagation();else if(_.u(F,_.fE))(F=_.u(F,_.fE).actions)&&_.GC(this.hostElement,F,this.hostElement),F=void 0,(F=y)==null||F.stopPropagation();else{var O=R=void 0;((R=_.u(F,_.hq))==null?void 0:R.signal)!=="TELL_US_WHY"||((O=_.u(F,_.hq))==null?0:O.targetId)&&_.l("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),F=void 0,(F=y)==null||F.stopPropagation())}}};
_.L.dismissibleItemOnYtServiceRequestCompleted_=function(I,y){var D=this.get("feedbackResponses.0.followUpDialog",y.data);D?this.followUpDialogPromiseResolve(D):y.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(y.actions,I)};
_.L.dismissibleItemHandleReplaceEnclosingAction_=function(I){this.dismissedRenderer=I.item;this.isDismissed=!0;var y=null;(y=_.XB(this.hostElement).querySelector("#dismissed"))&&_.YC(this,function(){_.E6(y)});
_.lj(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.L.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.L.dismissibleItemHandleUndoFeedbackAction_=function(){_.lj(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.L.dismissibleItemHandleTellUsWhySignalAction_=function(){var I=this;this.followUpDialogPromise.then(function(y){I.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:y}})})};
wp.prototype.dismissibleItemOnYtServiceRequestCompleted_=wp.prototype.dismissibleItemOnYtServiceRequestCompleted_;wp.prototype.dismissibleItemOnCommandSent=wp.prototype.dismissibleItemOnCommandSent;wp.prototype.dismissibleItemOnRequestSent=wp.prototype.dismissibleItemOnRequestSent;wp.prototype.dismissibleItemOnYtServiceRequestSent_=wp.prototype.dismissibleItemOnYtServiceRequestSent_;wp.prototype.dismissibleItemDataChanged_=wp.prototype.dismissibleItemDataChanged_;
wp.prototype.dismissibleItemIsDismissedChanged_=wp.prototype.dismissibleItemIsDismissedChanged_;_.W([_.Q(_.G2),_.A("design:type",Object)],wp.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],wp.prototype,"ytdReduxBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],wp.prototype,"isDismissed",void 0);_.W([_.M(),_.A("design:type",Object)],wp.prototype,"dismissedRenderer",void 0);
_.W([_.ke("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],wp.prototype,"dismissibleItemIsDismissedChanged_",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wp.prototype,"dismissibleItemDataChanged_",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],wp.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.W([_.z4("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wp.prototype,"dismissibleItemOnRequestSent",null);
_.W([_.z4("yt-dismissible-item-action"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Array]),_.A("design:returntype")],wp.prototype,"dismissibleItemOnCommandSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],wp.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.W([_.Cg()],wp);_.vy=[_.G2,_.Jl,wp.prototype];var So=function(){var I=_.Wp.apply(this,arguments)||this;I.disableGridStateAware=!1;I.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};I.currentGridClass="";return I};
_.E(So,_.Wp);So.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.YC(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var I=this.gridStateAwareGetElement();_.Ye(I,"grid",!0)}};
So.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
So.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.XB(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
So.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var I="grid-disabled";else{I=_.MF.getInstance();var y=this.get("pageSubtype");I=y&&U7M.includes(y)?"grid-disabled":I.currentSnapState_?I.currentSnapState_.className:null}(y=this.gridStateAwareGetElement())&&I!==this.currentGridClass&&(I&&_.Ye(y,I,!0),this.currentGridClass&&_.Ye(y,this.currentGridClass,!1),this.currentGridClass=I)};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",String)],So.prototype,"gridStateAwareSizingElementSelector",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],So.prototype,"disableGridStateAware",void 0);_.W([_.Cg()],So);_.tl=[So.prototype,_.cb.YtActionHandlerBehavior];_.Py=new _.uk("GUIDE_TOKEN");var UC;_.KN={};UC=function(){var I=_.Wp.apply(this,arguments)||this;I.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 I};
_.E(UC,_.Wp);_.L=UC.prototype;_.L.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.L.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var I=_.nR().resolve(_.fR(_.Py));I&&(this.guidePersistentAndVisible=I.getGuidePersistentAndVisible(),this.activeEndpoint=I.getActiveEndpoint(),this.guideOpened=I.getGuideOpened(),this.miniGuideVisible=I.getMiniGuideVisible())};
_.L.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.L.handleGuideStateAction=function(I){this.guidePersistentAndVisible=I};
_.L.handleMiniGuideStateAction=function(I){this.miniGuideVisible=I};
_.L.handleGuideOpenedAction=function(I){this.guideOpened=I};
_.L.handleActiveEndpointAction=function(I){this.activeEndpoint=I};
UC.prototype.onActiveEndpointChange=UC.prototype.onActiveEndpointChange;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],UC.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"guidePersistentAndVisible",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"miniGuideVisible",void 0);_.W([_.M(),_.A("design:type",Object)],UC.prototype,"activeEndpoint",void 0);
_.W([_.ke("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UC.prototype,"onActiveEndpointChange",null);_.W([_.M(),_.A("design:type",Boolean)],UC.prototype,"guideOpened",void 0);_.W([_.Cg()],UC);_.KN.YtdGuideStateAwareBehavior=[];_.KN.YtdGuideStateAwareBehavior.push(UC.prototype,_.cb.YtActionHandlerBehavior);var vog=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],rp=function(){var I=_.Wp.apply(this,arguments)||this;I.hoverJobId=0;I.JSC$14712_touched=!1;return I};
_.E(rp,_.Wp);_.L=rp.prototype;_.L.created=function(){this.useExpandableTooltip=!vog.includes(this.is)};
_.L.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.L.detached=function(){this.useExpandableTooltip=!1};
_.L.lockupOnDown=function(I){this.interactionElement&&!_.UP(_.r4(I),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.L.lockupOnUp=function(I){this.interactionElement&&!_.UP(_.r4(I),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.L.onTouchStart=function(){this.JSC$14712_touched=!0};
_.L.lockupOnMouseEnter=function(){var I=this,y=_.kf("kevlar_lockup_hover_delay",-1);this.JSC$14712_touched&&y>=0?(_.w2.cancelJob(this.hoverJobId),this.hoverJobId=_.w2.addJob(function(){I.lockupIsHovered=!0},8,y),this.JSC$14712_touched=!1):this.lockupIsHovered=!0};
_.L.lockupOnMouseLeave=function(){this.hoverJobId&&(_.w2.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.L.lockupOnPopupClosed=function(I,y){var D;((D=y.popupRenderer)==null?void 0:D.is)==="ytd-menu-popup-renderer"&&(I=y.popupRenderer.veData,y=_.VO(),I&&y&&_.vW(y,[I]))};
_.L.lockupOnLockupRequested=function(I){var y=I.detail.videoIds[0],D;I.detail&&y===((D=this.data)==null?void 0:D.videoId)&&(I.detail.returnValue=[this.data])};
_.L.lockupOnYtServiceRequestSent=function(I,y){if(I=y.actions)for(var D=0;D<I.length;D++){var F=I[D];if(F.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&y.ajaxPromise){var R=void 0,O=(R=_.u(y.endpoint,_.Lb))==null?void 0:R.playlistId;R=void 0;F=(R=F.removedVideoId)!=null?R:"";cbG(_.xD(),F,O)}else F.action==="ACTION_REMOVE_VIDEO"&&y.ajaxPromise&&(O=void 0,F=(O=F.setVideoId)!=null?O:"",_.Wbn(_.xD(),F))}};
_.L.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.L.lockupOnLockupEnabled=function(){if(!this.$){var I=_.nR().resolve(_.ja).getCurrentPage(),y=this.getParentRenderer?this.getParentRenderer():void 0;_.tq(new _.g6("component not ready",this.is,this.isAttached,I==null?void 0:I.is,y==null?void 0:y.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
rp.prototype.lockupOnLockupEnabled=rp.prototype.lockupOnLockupEnabled;rp.prototype.lockupOnLockupDisabled=rp.prototype.lockupOnLockupDisabled;rp.prototype.lockupOnYtServiceRequestSent=rp.prototype.lockupOnYtServiceRequestSent;rp.prototype.lockupOnLockupRequested=rp.prototype.lockupOnLockupRequested;rp.prototype.lockupOnPopupClosed=rp.prototype.lockupOnPopupClosed;rp.prototype.lockupOnMouseLeave=rp.prototype.lockupOnMouseLeave;rp.prototype.lockupOnMouseEnter=rp.prototype.lockupOnMouseEnter;
rp.prototype.onTouchStart=rp.prototype.onTouchStart;rp.prototype.lockupOnUp=rp.prototype.lockupOnUp;rp.prototype.lockupOnDown=rp.prototype.lockupOnDown;_.W([_.M(),_.A("design:type",Object)],rp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],rp.prototype,"lockupIsHovered",void 0);_.W([_.M(),_.A("design:type",Boolean)],rp.prototype,"lockupTouchTriggered",void 0);_.W([_.M(),_.A("design:type",Boolean)],rp.prototype,"useExpandableTooltip",void 0);
_.W([_.a0("#interaction"),_.A("design:type",Object)],rp.prototype,"interactionElement",void 0);_.W([_.z4("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rp.prototype,"lockupOnDown",null);_.W([_.z4("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rp.prototype,"lockupOnUp",null);
_.W([_.z4("touchstart"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rp.prototype,"onTouchStart",null);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rp.prototype,"lockupOnMouseEnter",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rp.prototype,"lockupOnMouseLeave",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],rp.prototype,"lockupOnPopupClosed",null);_.W([_.z4("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],rp.prototype,"lockupOnLockupRequested",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],rp.prototype,"lockupOnYtServiceRequestSent",null);_.W([_.z4("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rp.prototype,"lockupOnLockupDisabled",null);
_.W([_.z4("yt-enable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rp.prototype,"lockupOnLockupEnabled",null);_.W([_.Cg()],rp);_.jo=[rp.prototype];_.Sjf={YtdReduxBehavior:[]};_.Sjf.YtdReduxBehavior.push.apply(_.Sjf.YtdReduxBehavior,_.Jl);var oK=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;I.disableNowPlaying=!1;I.disableTooltips=!1;I.useHoveredProperty=!1;I.hovered=!1;I.isThumbnailHovered_=!1;I.addBackground=_.l("kevlar_thumbnail_bg");I.nowPlaying=!1;I.disableRounding=!1;I.size="small";return I};
_.E(oK,_.Wp);_.L=oK.prototype;_.L.computeThumbnailOverlaySidePanelWidth_=function(I,y){return I-y};
_.L.computeSize=function(I,y){if(!this.disableRounding){if(!I&&!y)return"small";I=Math.max(I||0,y||0);return I>=256?"large":I>=96?"medium":"small"}};
_.L.computeFinalHoveredState_=function(I,y,D){return this.nowPlaying?!1:_.l("kevlar_thumbnail_fluid")&&I?y:D};
_.L.computeHoverOverlays_=function(I,y){return I&&y?y:void 0};
_.L.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.L.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.L.checkMiniplayer_=function(){var I;if(((I=this.data)==null?0:I.playlistSetVideoId)&&_.l("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{I=_.bW();var y=I.currentEndpoint;!this.disableNowPlaying&&y&&_.u(y,_.t9)&&this.data?(y=_.u(y,_.t9),this.nowPlaying=this.data.playlistId?y.playlistId===this.data.playlistId:y.videoId===this.data.videoId,this.isVideoPlaying=I==null?void 0:I.isVideoPlaying):this.nowPlaying=!1}};
oK.prototype.checkMiniplayer_=oK.prototype.checkMiniplayer_;oK.prototype.onMouseLeave_=oK.prototype.onMouseLeave_;oK.prototype.onMouseEnter_=oK.prototype.onMouseEnter_;oK.prototype.computeHoverOverlays_=oK.prototype.computeHoverOverlays_;oK.prototype.computeFinalHoveredState_=oK.prototype.computeFinalHoveredState_;oK.prototype.computeSize=oK.prototype.computeSize;oK.prototype.computeThumbnailOverlaySidePanelWidth_=oK.prototype.computeThumbnailOverlaySidePanelWidth_;
_.W([_.Q(_.Jl),_.A("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],oK.prototype,"height",void 0);_.W([_.M(),_.A("design:type",Boolean)],oK.prototype,"bottomSidePanel",void 0);_.W([_.M(),_.A("design:type",Number)],oK.prototype,"width",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"disableNowPlaying",void 0);
_.W([_.M({selector:_.Iq}),_.A("design:type",Boolean)],oK.prototype,"miniplayerIsActive",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"disableTooltips",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"useHoveredProperty",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"hovered",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"isThumbnailHovered_",void 0);
_.W([_.M({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.A("design:type",Boolean)],oK.prototype,"finalHoveredState_",void 0);_.W([_.M({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.A("design:type",Number)],oK.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],oK.prototype,"addBackground",void 0);
_.W([_.M({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.A("design:type",Object)],oK.prototype,"hoverOverlays_",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],oK.prototype,"nowPlaying",void 0);_.W([_.M(),_.A("design:type",Boolean)],oK.prototype,"isVideoPlaying",void 0);_.W([_.M(),_.A("design:type",Object)],oK.prototype,"disableRounding",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.A("design:type",Object)],oK.prototype,"size",void 0);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oK.prototype,"onMouseEnter_",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oK.prototype,"onMouseLeave_",null);
_.W([_.ke("data","disableNowPlaying","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oK.prototype,"checkMiniplayer_",null);_.W([_.Cg()],oK);var tLu=[oK.prototype];_.NG={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(I,y){return I+":"+_.HH(y)},
getPlayerListener_:function(I,y,D){I=this.getPlayerListenerKey_(I,y);y=this.playerListeners_.get(I);D&&this.playerListeners_.delete(I);return y},
savePlayerListener_:function(I,y){var D=y.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(I,y),D);return D},
listenToPlayerEvent:function(I,y,D){D=this.savePlayerListener_(y,D);I.addEventListener(y,D)},
listenToPlayerEvents:function(I,y){y.forEach(function(D,F){this.listenToPlayerEvent(I,F,D)}.bind(this))},
unlistenFromPlayerEvent:function(I,y,D){D=this.getPlayerListener_(y,D,!0);I.removeEventListener(y,D)},
unlistenFromPlayerEvents:function(I,y){y.forEach(function(D,F){this.unlistenFromPlayerEvent(I,F,D)}.bind(this))}}};
_.hl=function(){};_.Pwu=new _.uk("PLAYER_API_TOKEN");var lA5=!1,GbL,qBL=!1,QXJ;var lp=function(I,y,D,F,R){_.B5.call(this);var O=this;this.playerId=y;this.webPlayerContextConfig=F;this.cWu=R;this.q99=!1;this.api={};this.lSv=this.yoc=null;this.m5t=new _.bP;this.qq={};this.qFn=this.xAv=this.elementId=this.vre=this.config=null;this.yuv=!1;this.lb=this.wJg=null;this.nbg={};this.sbz=["onReady"];this.lastError=null;this.nYO=NaN;this.zDe={};this.iQK=0;this.a5=this.targetElement=I;_.pW(this,this.m5t);Kxf(this);D?this.iQK=setTimeout(function(){O.loadNewVideoConfig(D)},0):F&&(UWW(this),
rcP(this))};
_.E(lp,_.B5);lp.prototype.getId=function(){return this.playerId};
lp.prototype.loadNewVideoConfig=function(I){if(!this.isDisposed()){this.iQK&&(clearTimeout(this.iQK),this.iQK=0);var y=I||{};y instanceof $1e||(y=new $1e(y));this.config=y;this.setConfig(I);rcP(this);this.isReady()&&j9e(this)}};
var UWW=function(I){var y;I.webPlayerContextConfig?y=I.webPlayerContextConfig.rootElementId:y=I.config.attrs.id;I.elementId=y||I.elementId;I.elementId==="video-player"&&(I.elementId=I.playerId,I.webPlayerContextConfig?I.webPlayerContextConfig.rootElementId=I.playerId:I.config.attrs.id=I.playerId);var D;((D=I.a5)==null?void 0:D.id)===I.elementId&&(I.elementId+="-player",I.webPlayerContextConfig?I.webPlayerContextConfig.rootElementId=I.elementId:I.config.attrs.id=I.elementId)};
lp.prototype.setConfig=function(I){this.vre=I;this.config=oou(I);UWW(this);if(!this.xAv){var y;this.xAv=NFf(this,((y=this.config.args)==null?void 0:y.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)I=this.config.attrs,(y=I.width)&&this.a5&&(this.a5.style.width=Se(Number(y)||y,!0)),(I=I.height)&&this.a5&&(this.a5.style.height=Se(Number(I)||I,!0))};
lp.prototype.getConfig=function(){return this.vre};
var j9e=function(I){if(I.config&&I.config.loaded!==!0)if(I.config.loaded=!0,!I.config.args||I.config.args.autoplay!=="0"&&I.config.args.autoplay!==0&&I.config.args.autoplay!==!1){var y;I.api.loadVideoByPlayerVars((y=I.config.args)!=null?y:null)}else I.api.cueVideoByPlayerVars(I.config.args)},xWz=function(I){var y=!0,D=I.getPlayerElement();
D&&I.config&&(y=D.dataset.version===hmM(I));return y&&!!_.jF("yt.player.Application.create")},rcP=function(I){if(!I.isDisposed()&&!I.yuv){var y=xWz(I);
if(y&&(I.getPlayerElement()?"html5":null)==="html5")I.qFn="html5",I.isReady()||luR(I);else if(uaf(I),I.qFn="html5",y&&I.lb&&I.targetElement)I.targetElement.appendChild(I.lb),luR(I);else{I.config&&(I.config.loaded=!0);var D=!1;I.wJg=function(){D=!0;var F=qjW(I,"player_bootstrap_method")?_.jF("yt.player.Application.createAlternate")||_.jF("yt.player.Application.create"):_.jF("yt.player.Application.create");var R=I.config?oou(I.config):void 0;F&&F(I.targetElement,R,I.webPlayerContextConfig,I.cWu);luR(I)};
I.yuv=!0;y?I.wJg():(_.R1(hmM(I),I.wJg),(y=Eoz(I))&&jj_(y||""),Ggn(I)&&!D&&_.fv("yt.player.Application.create",null))}}};
lp.prototype.getPlayerElement=function(){var I=_.xz(document,this.elementId);!I&&this.a5&&this.a5.querySelector&&(I=this.a5.querySelector("#"+this.elementId));return I};
var luR=function(I){if(!I.isDisposed()){var y=I.getPlayerElement(),D=!1;y&&y.getApiInterface&&y.getApiInterface()&&(D=!0);if(D){I.yuv=!1;if(!qjW(I,"html5_remove_not_servable_check_killswitch")){var F;if((y==null?0:y.isNotServable)&&I.config&&(y==null?0:y.isNotServable((F=I.config.args)==null?void 0:F.video_id)))return}XMM(I)}else I.nYO=setTimeout(function(){luR(I)},50)}},XMM=function(I){Kxf(I);
I.q99=!0;var y=I.getPlayerElement();if(y){I.yoc=Q9a(I,y,"addEventListener");I.lSv=Q9a(I,y,"removeEventListener");var D=y.getApiInterface();D=D.concat(y.getInternalApiInterface());for(var F=I.api,R=0;R<D.length;R++){var O=D[R];F[O]||(F[O]=Q9a(I,y,O))}}for(var w in I.qq)I.qq.hasOwnProperty(w)&&I.yoc&&I.yoc(w,I.qq[w]);j9e(I);I.xAv&&I.xAv(I.api);I.m5t.publish("onReady",I.api)},Q9a=function(I,y,D){var F=y[D];
return function(){var R=_.go.apply(0,arguments);try{return I.lastError=null,F.apply(y,R)}catch(O){if(D!=="sendAbandonmentPing")throw O.params=D,I.lastError=O,R=new _.g6("PlayerProxy error in method call",{error:O,method:D,playerId:I.playerId}),R.level="WARNING",R;}}},Kxf=function(I){I.q99=!1;
if(I.lSv)for(var y in I.qq)I.qq.hasOwnProperty(y)&&I.lSv(y,I.qq[y]);for(var D in I.zDe)I.zDe.hasOwnProperty(D)&&clearTimeout(Number(D));I.zDe={};I.yoc=null;I.lSv=null;y=I.api;for(var F in y)y.hasOwnProperty(F)&&(y[F]=null);y.addEventListener=function(R,O){I.addEventListener(R,O)};
y.removeEventListener=function(R,O){I.removeEventListener(R,O)};
y.destroy=function(){I.dispose()};
y.getLastError=function(){return I.getLastError()};
y.getPlayerType=function(){return I.getPlayerType()};
y.getCurrentVideoConfig=function(){return I.getConfig()};
y.loadNewVideoConfig=function(R){I.loadNewVideoConfig(R)};
y.isReady=function(){return I.isReady()}};
lp.prototype.isReady=function(){return this.q99};
lp.prototype.addEventListener=function(I,y){var D=this;this.isDisposed();var F=NFf(this,y);F&&(_.kA(this.sbz,I)||this.qq[I]||(y=YjG(this,I),this.yoc&&this.yoc(I,y)),this.m5t.subscribe(I,F),I==="onReady"&&this.isReady()&&setTimeout(function(){F(D.api)},0))};
lp.prototype.removeEventListener=function(I,y){this.isDisposed()||(y=NFf(this,y))&&this.m5t.unsubscribe(I,y)};
var NFf=function(I,y){var D=y;if(typeof y==="string"){if(I.nbg[y])return I.nbg[y];D=function(){var F=_.go.apply(0,arguments),R=_.jF(y);if(R)try{R.apply(_.Ft,F)}catch(O){throw F=new _.g6("PlayerProxy error when executing callback",{error:O}),F.level="ERROR",F;}};
I.nbg[y]=D}return D?D:null},YjG=function(I,y){var D=function(F){var R=function(){I.isDisposed();
if(!I.isDisposed())try{I.m5t.publish(y,F!=null?F:void 0)}catch(v){var w=new _.g6("PlayerProxy error when creating global callback",{error:v.message,event:y,playerId:I.playerId,data:F,originalStack:v.stack,componentStack:v.componentStack});w.level="WARNING";throw w;}};
if(qjW(I,"web_player_publish_events_immediately"))R();else{var O=setTimeout(function(){R();_.e$.remove(I.zDe,String(O))},0);
_.e$.add(I.zDe,String(O),!0)}};
return I.qq[y]=D};
lp.prototype.getPlayerType=function(){return this.qFn||(this.getPlayerElement()?"html5":null)};
lp.prototype.getLastError=function(){return this.lastError};
var uaf=function(I){I.cancel();Kxf(I);I.qFn=null;I.config&&(I.config.loaded=!1);var y=I.getPlayerElement();y&&(xWz(I)||!Ggn(I)?I.lb=y:(y&&y.destroy&&y.destroy(),I.lb=null));I.targetElement&&_.RR(I.targetElement)};
lp.prototype.cancel=function(){this.wJg&&_.$H5(hmM(this),this.wJg);clearTimeout(this.nYO);this.yuv=!1};
lp.prototype.disposeInternal=function(){uaf(this);if(this.lb&&this.config&&this.lb.destroy)try{this.lb.destroy()}catch(y){var I=new _.g6("PlayerProxy error during disposal",{error:y});I.level="ERROR";throw I;}this.nbg=null;for(I in this.qq)this.qq.hasOwnProperty(I)&&delete this.qq[I];this.vre=this.config=this.api=null;delete this.targetElement;delete this.a5;_.B5.prototype.disposeInternal.call(this)};
var Ggn=function(I){var y,D;I=(y=I.config)==null?void 0:(D=y.args)==null?void 0:D.fflags;return!!I&&I.indexOf("player_destroy_old_version=true")!==-1},hmM=function(I){return I.webPlayerContextConfig?I.webPlayerContextConfig.jsUrl:(I=I.config.assets)?I.js:""},Eoz=function(I){return I.webPlayerContextConfig?I.webPlayerContextConfig.cssUrl:(I=I.config.assets)?I.css:""},qjW=function(I,y){if(I.webPlayerContextConfig)var D=I.webPlayerContextConfig.serializedExperimentFlags;
else{var F;if((F=I.config)==null?0:F.args)D=I.config.args.fflags}return(D||"").split("&").includes(y+"=true")},oou=function(I){for(var y={},D=_.J(Object.keys(I)),F=D.next();!F.done;F=D.next()){F=F.value;
var R=I[F];y[F]=typeof R==="object"?_.e$.clone(R):R}return y};var m9_={},psq="player_uid_"+(Math.random()*1E9>>>0);var xg=function(I,y,D,F,R,O){y=y===void 0?document.createElement("div"):y;this.webPlayerContextConfig=I;this.container=y;this.commandResolver=D;this.apiResolver=kb5();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.n0;F||O?fuP(this):noc(this);this.pendingPlayerResponse=F;this.pendingWatchNextResponse=R;this.pendingPlayerVars=O;pMu(this)};
xg.prototype.loadVideoWithPlayerResponse=function(I,y,D){this.loadVideo(I,y,D)};
xg.prototype.loadVideoWithPlayerVars=function(I){return this.loadVideo(void 0,void 0,I)};
xg.prototype.destroy=function(I){if(I=_.xz(document,I))I=psq+"_"+_.HH(I),(I=m9_[I])&&I.dispose()};
var MLa=function(I,y){var D;_.S(function(F){if(F.nextAddress==1)return I.pendingWatchNextResponse=y,I.synchronousApi?(D=I.synchronousApi,F.jumpTo(2)):F.yield(I.api,3);F.nextAddress!=2&&(D=F.yieldResult);if(!mWg(I,D))return F.return();I.pendingWatchNextResponse&&(D.updateVideoData({raw_watch_next_response:I.pendingWatchNextResponse}),I.pendingWatchNextResponse=void 0);_.Cj(F)})},mWg=function(I,y){var D;
if(!(y==null?0:(D=y.isReady)==null?0:D.call(y))){var F;_.tq(new _.g6("playerApi is falsey",{synchronousApi:I.synchronousApi,apiResolved:I.apiResolver.resolved,playerApiUndefined:y===void 0,playerApiNull:y===null,playerApiReady:(y==null?void 0:(F=y.isReady)==null?void 0:F.call(y))===!0,playerApiMethods:y?Object.keys(y):[]}));return!1}return!0},zmc=function(I,y){if(typeof I[y]==="function")return I[y]()},kga=function(I){var y=window,D,F=(D=y.ytplayer)==null?void 0:D.bootstrapPlayerContainer;
if((D=F==null?void 0:F.firstElementChild)&&_.hd(D,"html5-video-player")){var R,O,w=(R=y.ytplayer)==null?void 0:(O=R.bootstrapWebPlayerContextConfig)==null?void 0:O.contextId;R=I.webPlayerContextConfig.contextId;if(w&&w===R){F!==I.container&&(F=!1,zmc(D,"getPlayerState")===2&&(F=!0),I.container.appendChild(D),F||zmc(D,"playVideo"));var v;if((v=y.ytplayer)==null?0:v.bootstrapPlayerResponse)I.bootstrapPlayerResponse=y.ytplayer.bootstrapPlayerResponse}}},pMu=function(I){var y,D,F,R,O;
_.S(function(w){if(w.nextAddress==1)return I.pageReadyOrDataAvailable?w.jumpTo(2):w.yield(I.pageReadyOrDataAvailableResolver.promise,2);if(w.nextAddress!=4)return!_.l("kevlar_player_unified_player_loading")||uQt()&&EN_()?w.jumpTo(4):w.yield(fA5(),4);kga(I);if(I.pendingPlayerResponse||I.pendingPlayerVars)y=nNA(I.pendingPlayerResponse,I.pendingWatchNextResponse,I.pendingPlayerVars),I.pendingPlayerResponse&&I.pendingPlayerResponse===I.bootstrapPlayerResponse&&(y.loaded=!0),I.bootstrapPlayerResponse=
void 0;D=zw4(I.container,y,I.webPlayerContextConfig);((F=y)==null?0:F.loaded)&&I.pendingWatchNextResponse?(MLa(I,I.pendingWatchNextResponse),I.pendingPlayerResponse=void 0,I.pendingPlayerVars=void 0):dWn(I);R=function(v){D.removeEventListener("onReady",R);I.synchronousApi=v;I.apiResolver.resolve(v)};
D.addEventListener("onReady",R);I.commandResolver!==void 0&&(O=I.commandResolver,D.addEventListener("innertubeCommand",function(v){O(v)}));
_.Cj(w)})};
xg.prototype.loadVideo=function(I,y,D){var F=this,R,O,w,v,P,K,r,N,h;return _.S(function(x){if(x.nextAddress==1)return F.pendingPlayerResponse=I,F.pendingWatchNextResponse=y,F.pendingPlayerVars=D,fuP(F),F.synchronousApi?(R=F.synchronousApi,x.jumpTo(2)):x.yield(F.api,3);x.nextAddress!=2&&(R=x.yieldResult);if(!mWg(F,R))return x.return(new Promise(function(){}));
w=new Promise(function(q){O=q});
v=function(){var q=R.getPlayerResponse();q&&(R.removeEventListener("onVideoDataChange",v),O(q))};
R.addEventListener("onVideoDataChange",v);if(F.pendingPlayerResponse||F.pendingPlayerVars)F.pendingPlayerResponse&&F.pendingPlayerResponse===F.bootstrapPlayerResponse?(O(F.pendingPlayerResponse),F.pendingWatchNextResponse&&MLa(F,F.pendingWatchNextResponse)):(P=nNA(F.pendingPlayerResponse,F.pendingWatchNextResponse,F.pendingPlayerVars),(h=(K=F.pendingPlayerResponse)==null?void 0:(r=K.playerConfig)==null?void 0:(N=r.playbackStartConfig)==null?void 0:N.startPaused)?R.cueVideoByPlayerVars(P.args):R.loadVideoByPlayerVars(P.args)),
dWn(F),F.bootstrapPlayerResponse=void 0;return x.return(w)})};
var noc=function(I){if(document.readyState==="complete"||document.readyState==="interactive")fuP(I);else{var y=function(){document.removeEventListener("DOMContentLoaded",y);fuP(I)};
document.addEventListener("DOMContentLoaded",y)}},fuP=function(I){I.pageReadyOrDataAvailable=!0;
I.pageReadyOrDataAvailableResolver.resolve()},dWn=function(I){I.pendingPlayerResponse=void 0;
I.pendingWatchNextResponse=void 0;I.pendingPlayerVars=void 0};
_.mD.Object.defineProperties(xg.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var lL=function(I){DB.call(this,I===void 0?"document_active":I);var y=this;this.overridePriority=10;this.JSC$14745_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){y.transition("document_disposed",{event:D})});
window.addEventListener("beforeunload",function(D){y.transition("document_disposed_preventable",{event:D})});
window.addEventListener("unload",function(D){y.transition("document_disposed",{event:D});y.JSC$14745_hasRun=new Map})};
_.E(lL,DB);
lL.prototype.runPreventableDispose=function(I,y){if(!this.JSC$14745_hasRun.get("document_disposed_preventable")){I(y==null?void 0:y.event);var D,F;if((y==null?0:(D=y.event)==null?0:D.defaultPrevented)||(y==null?0:(F=y.event)==null?0:F.returnValue)){y.event.returnValue||(y.event.returnValue=!0);y.event.defaultPrevented||y.event.preventDefault();this.JSC$14745_hasRun=new Map;this.transition("document_active");return}}this.JSC$14745_hasRun.set("document_disposed_preventable",!0);this.JSC$14745_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
lL.prototype.runDispose=function(I,y){this.JSC$14745_hasRun.get("document_disposed")?this.transition("document_active"):(I(y==null?void 0:y.event),this.JSC$14745_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
lL.prototype.runFlush=function(I,y){I(y==null?void 0:y.event);this.transition("document_active")};
lL.prototype.runActive=function(){};var uL=function(I){DB.call(this,I===void 0?"document_visibility_unknown":I);var y=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"?y.transition("document_visible",{event:D}):y.transition("document_hidden",
{event:D})});
_.l("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(D){y.transition("document_backgrounded",{event:D})}),window.addEventListener("focus",function(D){y.transition("document_foregrounded",{event:D})}))};
_.E(uL,DB);uL.prototype.runVisible=function(I,y){I(y==null?void 0:y.event);_.l("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
uL.prototype.runHidden=function(I,y){I(y==null?void 0:y.event);_.l("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
uL.prototype.runBackgrounded=function(I,y){I(y==null?void 0:y.event)};
uL.prototype.runForegrounded=function(I,y){I(y==null?void 0:y.event)};var qG=function(){this.teardownLifecycle=new lL;this.visibilityLifecycle=new uL};
qG.prototype.install=function(){var I=_.go.apply(0,arguments),y=this;I.forEach(function(D){y.teardownLifecycle.install(D)});
I.forEach(function(D){y.visibilityLifecycle.install(D)})};var EC=function(){qG.call(this);var I={};this.install((I.document_disposed={callback:this.abortSlisAndFlush},I));_.l("combine_ve_grafts")&&(I={},this.install((I.document_disposed={callback:this.flushInteractionLoggingAttachVes},I)));I={};this.install((I.flush_logs={callback:this.logFinalPayload},I));_.l("web_log_cfg_cee_ks")||_.y9(_.w2,auf)};
_.E(EC,qG);var d95=function(){EC.loggingInstance||(EC.loggingInstance=new EC);return EC.loggingInstance};
EC.prototype.logFinalPayload=function(){if(_.l("web_fp_via_jspb")){var I=new A_c,y=_.VO();y&&_.BB(I,1,y);y=_.l("jspb_sparse_encoded_pivot")?new If([{}]):new If;_.Mg(y,380,$lg,I);ze_("finalPayload",y);_.l("web_fp_via_jspb_and_json")&&_.Jq("finalPayload",{csn:_.VO()})}else _.Jq("finalPayload",{csn:_.VO()})};
EC.prototype.abortSlisAndFlush=function(){Q2M(oj);NE!=null&&NE.flush()};
EC.prototype.flushInteractionLoggingAttachVes=function(){slP(_.W4())};
var auf=function(){var I=_.Pi("CLIENT_EXPERIMENT_EVENTS");if(I){var y=vPB();I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,y(D)&&_.Jq("genericClientExperimentEvent",{eventType:D});delete _.SF.CLIENT_EXPERIMENT_EVENTS}};var ccG={};
ccG.YtPlayerBehavior=[_.NG.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 I=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.n0;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;aAq(function(){I.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.KZ(this,"pan-down"),_.l("kevlar_pinch_fullscreen")&&_.b3().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.l("kevlar_pinch_fullscreen")&&_.b3().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(I,y,D){var F=this;up(this.useUnifiedPlayer_());if(this.mainAppPlayer_)up(!1,"MainAppPlayer already created.");else{var R=_.l("kevlar_player_container_query_killswitch")?this.$.container:_.XB(this.hostElement).querySelector("#container");this.mainAppPlayer_=new xg(this.getWebPlayerContextConfig_(),R,function(O){return _.zv(O,F.hostElement)},I,y,D);
this.mainAppPlayer_.api.then(function(O){F.player_=O;F.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Vtz.resolve(O)})}},
loadVideoWithPlayerResponse:function(I,y){var D=this;if(this.useUnifiedPlayer_()){var F=this.watchNextData,R,O=(R=I.videoDetails)==null?void 0:R.videoId,w,v,P;(R=(w=this.watchNextData)==null?void 0:(v=w.currentVideoEndpoint)==null?void 0:(P=v.watchEndpoint)==null?void 0:P.videoId)&&O!=R&&(F=void 0,_.l("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(I,F,y):this.createMainAppPlayer_(I,F,y);this.mainAppPlayer_.api.then(function(){_.lj(D.hostElement,
"yt-player-updated")})}else this.update(N9o(I,y))},
loadVideoWithPlayerVars:function(I){var y=this;this.useUnifiedPlayer_()?(_.l("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(I):this.createMainAppPlayer_(void 0,void 0,I),this.mainAppPlayer_.api.then(function(){_.lj(y.hostElement,"yt-player-updated")})):this.update({args:I})},
update:function(I){var y=this;if(this.useUnifiedPlayer_())up(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(I);var D=IfW(I.args);D&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==D&&Object.assign(I.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(I).then(function(F){_.lj(y.hostElement,"yt-player-updated",_.l("kevlar_player_updated_obsolete_player_killswitch")?
F:void 0)})}_.Sb(new _.g6("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.getPlayerPromise(),2);D=F.yieldResult;if(!D)throw Error("wh");I&&y.updatePlayerPlaylist_(I);_.Cj(F)})},
acquireApi_:function(I){var y=this;if(this.useUnifiedPlayer_())up(!1,"Invalid method call in kevlar_unified_player.");else return _.w2.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(up(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(D){y.shouldAutoplay_(I)?D.loadVideoByPlayerVars(I.args):D.cueVideoByPlayerVars(I.args)})):this.initPlayerPromise_=this.initPlayerContainer_(I),this.initPlayerPromise_},
initPlayerContainer_:function(I){var y=this;if(this.useUnifiedPlayer_())up(!1,"Invalid method call in kevlar_unified_player.");else return up(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.tq(Error("xh")),up(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.l("kevlar_player_container_query_killswitch")?this.$.container:_.XB(this.hostElement).querySelector("#container"),fA5().then(function(){var D=y.initPlayer_(I);y.playerResolver_.resolve(D);
return D})},
onPlayerReady_:function(I,y){this.useUnifiedPlayer_()?up(!1,"Invalid method call in kevlar_unified_player."):(I.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Vtz.resolve(I),y(I))},
maybeCallApiMethodOnElement_:function(I,y){if(typeof I[y]==="function")return I[y]()},
maybeAdoptBootstrapPlayer_:function(){var I=window,y,D=(y=I.ytplayer)==null?void 0:y.bootstrapPlayerContainer;if((y=D==null?void 0:D.firstElementChild)&&y.classList.contains("html5-video-player")){var F,R,O=(F=I.ytplayer)==null?void 0:(R=F.bootstrapWebPlayerContextConfig)==null?void 0:R.contextId;F=this.getWebPlayerContextConfig_().contextId;if(O&&O===F){D!==this.playerContainer_&&(D=!1,this.maybeCallApiMethodOnElement_(y,"getPlayerState")===2&&(D=!0),this.playerContainer_.appendChild(y),D||this.maybeCallApiMethodOnElement_(y,
"playVideo"));var w;if((w=I.ytplayer)==null?0:w.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=I.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(I){var y=this;if(this.useUnifiedPlayer_())up(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(D){y.maybeAdoptBootstrapPlayer_();var F=I?hwq(I):void 0;F&&F==y.bootstrapPlayerResponse_&&(I.loaded=!0);F=y.playerContainer_;var R=y.getWebPlayerContextConfig_();F=zw4(F,I,R);y.player_=F;y.onPlayerReadyEvent_=y.onPlayerReady_.bind(y,y.player_,D);y.player_.addEventListener("onReady",y.onPlayerReadyEvent_);y.player_.addEventListener("innertubeCommand",
y.onPlayerInnerTubeCommand_.bind(y))})},
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(I){I.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(I){I.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var I=_.nR().resolve(_.ja).getCurrentPage();I&&I.getScrollTop()<=0?_.KZ(this,"pan-down"):_.KZ(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(I){I.isFullscreen()||I.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(I){I.isFullscreen()&&I.toggleFullscreen()})},
updatePlayerPlaylist_:function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1)return D=_.nR().resolve(_.fR(_.rE)),F=!!(D&&D.playlistComponent&&D.playlistComponent.loopOn),O.yield(y.getPlayerPromise(),2);var w=R=O.yieldResult,v=w.updatePlaylist,P=[];if(_.l("kevlar_player_playlist_use_local_index")){var K,r;var N=(r=(K=I.localCurrentIndex)!=null?K:I.currentIndex)!=null?r:0}else{var h;N=(h=I.currentIndex)!=null?h:0}if(I.contents)for(K=0;K<I.contents.length;K++)if((r=I.contents[K])&&r.playlistPanelVideoRenderer)if(eHt(r)){r=
r.playlistPanelVideoRenderer;h="";r.shortBylineText&&(h=_.rY(r.shortBylineText));var x="";r.title?x=_.rY(r.title):r.unplayableText&&(x=_.rY(r.unplayableText));P.push({author:h,title:x,encrypted_id:r.videoId})}else K<N&&--N;v.call(w,{index:N,list:I.playlistId?I.playlistId:"",loop:F,playlist_title:I.title,playlist_length:P.length,video:P,fetch:0,external_list:"1",title:I.title?I.title:"",playlist_author:I.ownerName?_.rY(I.ownerName):void 0});_.Cj(O)})},
focusOnPlayer:function(){_.YC(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var I=this.playerContainer_.querySelector(".html5-video-player");I&&(_.G$(_.nR().resolve(_.cU)),I.focus())}})},
preparePlayer:function(){var I=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(y){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")y();else{var D=function(){document.removeEventListener("DOMContentLoaded",D);y()};
document.addEventListener("DOMContentLoaded",D)}})).then(function(){return fA5()}).then(function(){I.initPlayerPromise_||I.preparePlayerJobId_||(I.preparePlayerJobId_=_.y9(_.w2,function(){I.initPlayerPromise_||(I.initPlayerPromise_=I.initPlayerContainer_())}))}):_.Sb(new _.g6("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(I){this.useUnifiedPlayer_()?up(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(I)||(I.args.autoplay="0")},
shouldAutoplay_:function(I){if(this.useUnifiedPlayer_())up(!1,"Invalid method call in kevlar_unified_player.");else{var y=this.get("args.el",I);return y&&y!="detailpage"&&this.isMiniplayerActive_()||y&&(y=="sponsorshipsoffer"||y=="handlesclaiming")&&this.get("args.autoplay",I)=="0"?!1:(I=hwq(I))&&this.get("playerConfig.playbackStartConfig.startPaused",I)?!1:!0}},
isMiniplayerActive_:function(){return _.nR().resolve(_.OI).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var I=this.getPlayer();if(I){var y=I.getPlayerState();_.l("kevlar_player_check_ad_state_on_stop")&&(y=I.getPlayerState(I.getPresentingPlayerType()));y!=5&&I.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(I,y,D){D=D===void 0?!1:D;var F=this,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return y||(y=F.hostElement),R=F.useUnifiedPlayer_()?!!F.mainAppPlayer_:!!F.initPlayerPromise_,R?P.yield(F.getPlayerPromise(),2):(D?I.insertBefore(y,I.firstChild):I.appendChild(y),P.return());O=P.yieldResult;w=O.getPlayerState(O.getPresentingPlayerType());v=!1;if(w==-1||w==1||w==3)v=!0;D?I.insertBefore(y,I.firstChild):I.appendChild(y);v&&O.playVideo();O.setSize(NaN,NaN);_.Cj(P)})},
watchNextDataChanged_:function(I){var y=this;I&&(this.useUnifiedPlayer_()&&_.l("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&MLa(this.mainAppPlayer_,I):this.getPlayerPromise().then(function(D){D.updateVideoData(y.computeWatchNextPlayerVars_(I))}))},
computeWatchNextPlayerVars_:function(I){if(this.useUnifiedPlayer_()&&_.l("kevlar_unified_player_update_watch_next_killswitch"))up(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:I}},
maybeSendAbandonmentPing_:function(){var I=this.getPlayer();I&&I.getPlayerState()!=5&&I.getPlayerState()!=0&&I.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var I=_.Pi("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(I=Object.assign({},I),I.rootElementId=this.playerId);I.serializedExperimentIds&&I.serializedExperimentFlags||_.tq(Error("yh"));return I},
hasWebPlayerContextConfig_:function(){return!!_.Pi("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(I){this.useUnifiedPlayer_()?up(!1,"Invalid method call in kevlar_unified_player."):_.zv(I,this.hostElement)},
useUnifiedPlayer_:function(){var I=_.l("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.l("kevlar_unified_player")||I}}];var WxW={};WxW.YtPlaylistPanelBehavior=[_.V.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(I){I=I.detail;if(I.actions.loop!=void 0||I.actions["yt-icons:loop"]!=void 0)this.loopOn=I.actions.loop||I.actions["yt-icons:loop"];if(I.actions.shuffle!=void 0||I.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=I.actions.shuffle||I.actions["yt-icons:shuffle"]},
setMenuData_:function(I){if(!I||!I.playlistButtons||I.isInfinite)return null;for(var y=I.playlistButtons.menuRenderer.topLevelButtons,D=y.length,F=0;F<D;F++)if(y[F].toggleButtonRenderer){var R=y[F].toggleButtonRenderer;R.defaultIcon.iconType=="LOOP"&&this.loopOn?R.isToggled=this.loopOn:R.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(R.isToggled=this.shuffleOn)}return I.playlistButtons}}];_.Xb={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(I,y,D){var F=this.getClickTarget_(y);if(F&&this.isClickAllowed_(F)){y.preventDefault();I=(0,_.e$.unsafeClone)(I);var R=this.getContainerBoundingRect();y=this.getRelativeClickXy_(y,R);this.expandEndpointUrlMacros_(I,{NX:y[0],NY:y[1],NB:F.code});D&&this.truncateWebCommendMetadataUrl_(I);_.lj(this.hostElement,"yt-navigate",{endpoint:I})}},
getClickTarget_:function(I){if(!this.clickTargetMap)return null;I=_.r4(I)||[];I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;if(y===_.XB(this.hostElement).querySelector("#menu"))break;if(y=this.clickTargetMap.get(y.id))return y}return null},
getRelativeClickXy_:function(I,y){var D=Math.round(I.detail.x-y.left);I=Math.round(I.detail.y-y.top);return D<0||I<0?[null,null]:[D,I]},
getContainerBoundingRect:function(){return _.XB(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(I,y){for(var D=_.J(I.loggingUrls||[]),F=D.next();!F.done;F=D.next())F=F.value,F.baseUrl&&(F.baseUrl=Yut(F.baseUrl,y));I.urlEndpoint&&I.urlEndpoint.url&&(I.urlEndpoint.url=Yut(I.urlEndpoint.url,y));I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url&&(I.commandMetadata.webCommandMetadata.url=Yut(I.commandMetadata.webCommandMetadata.url,y))},
truncateWebCommendMetadataUrl_:function(I){if(I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url){var y=I.commandMetadata.webCommandMetadata.url,D=y.indexOf("&pp=");if(D>0){var F=y.indexOf("&",D+1);I.commandMetadata.webCommandMetadata.url=F>D&&F<y.length?y.slice(0,D)+y.slice(F):y.slice(0,D)}}},
configureClickTargets:function(I,y,D){this.containerId=I;this.clickTargetMap=new Map;I=_.J(y);for(y=I.next();!y.done;y=I.next())if(y=y.value,y.location){var F=D.get(y.location);F&&(_.Ye(_.XB(this.hostElement).querySelector("#"+F),"yt-simple-endpoint",this.isClickAllowed_(y)),this.clickTargetMap.set(F,y))}},
isClickAllowed_:function(I){return I.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Q5={};
_.Q5.YtLazyListBehavior=[_.uC.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 I=(this.constructor.generatedFrom||this).observers;I||(I=[]);I.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
I}},
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 I=this.renderElementsOutsideVisibleArea_;I&&(WTW(I,4),I.processSignal())},
deepLazyListObserver_:function(I){var y=this;if(I){var D=I.value||[];if(this.itemsPath==I.path){var F=this.nonDeferredItemCount;I=0;F>-1&&D.length>F&&(I=_.Pi("REMAINING_DOVA_DEFERRED_CHUNKS",-1));I>0?(F>0&&(F=D.slice(0,F),this.setInitialItemsOnDataChanged(F)),(F=this.renderElementsOutsideVisibleArea_)?F.cancel():(F=this.renderElementsOutsideVisibleArea_=new _.EY(2,"eocs"),_.NVC(window,"scroll",function(){return y.renderDeferredElements()})),_.G1(F,function(){y.setInitialItemsOnDataChanged(D)}),_.tG("REMAINING_DOVA_DEFERRED_CHUNKS",
I-1)):this.setInitialItemsOnDataChanged(D)}else if(this.itemsPath+".splices"==I.path)this.onItemsUpdated_(D);
else F="shownItems"+I.path.substr(this.itemsPath.length),this.useSignals&&F==="shownItems.length"||this.notifyPath(F,I.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(I){I&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(I),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(I){I=I.indexSplices;for(var y=0,D=I.length;y<D;y++){var F=I[y];if(F.index<this.shownCount&&(F.removed&&this.splice("shownItems",F.index,F.removed.length),F.addedCount)){var R=F.object.slice(F.index,F.index+F.addedCount);F=["shownItems",F.index,0];F.push.apply(F,R);this.splice.apply(this,F)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(I){this.cancelPendingTasks_();I||(I=[]);this.items_=I;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&&(_.KR("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.YC(this,this.tryRenderChunk_)))},
fillRange_:function(I,y){this.canShowMore&&this.items_&&(I=this.items_.slice(I,y),I.unshift("shownItems"),this.push.apply(this,I),this.shownCount=y,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var I=this;this.canShowMore&&_.v4(this,"renderChunk",function(){I.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.KR("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.ip(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var I=this.renderElementsOutsideVisibleArea_;I&&(I.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var I=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(I-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=I;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(I){return Math.ceil(1E3/I)},
onCanShowMoreUpdated_:function(I){this.data&&this.items_!==null&&(I?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(I){!this.shouldUseTaskManager()&&this.data&&(!I&&this.canShowMore?(_.x75(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):I&&this.partiallyRenderedItems_.has(this.items_)&&(_.l("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var nN;_.Yg={};
nN=function(){var I=_.Wp.apply(this,arguments)||this;I.atStart=!0;I.atEnd=!0;I.startIndex=0;I.endIndex=0;I.scrollCount=0;I.initialStartIndex=0;I.disableScrollEventListener=!1;I.useFloorScrolling=!1;I.isSearch=!1;I.dragging=!1;I.dragMouseStart=0;I.dragOffsetStart=0;I.disableWheelScroll=!1;I.centerListItems=!1;I.offset=0;I.minComponentWidth=0;I.marginWidthRight=0;I.marginWidthLeft=0;I.setButtonsStateRequested=!1;I.itemsVisibilityObserver=null;I.fullyVisibleItemsIndices=[];I.JSC$14774_onWheelScroll=function(y){if(I.isSearch&&
!I.disableWheelScroll&&_.l("desktop_enable_dmpanel_wheel_scroll")){var D=y.shiftKey?Math.abs(y.deltaY)>Math.abs(y.deltaX)?y.deltaY:y.deltaX:y.deltaX;D!==0&&(y.preventDefault(),I.ytLazyListBehavior.fillRemainingListItems(),I.offset+=D,fN(I),I.reposition_())}};
I.onPointerDown=function(y){Cwf(I)&&(I.dragMouseStart=y.clientX,I.dragOffsetStart=I.offset,I.dragging=!0)};
I.onPointerMove=function(y){Cwf(I)&&I.dragging&&(I.ytLazyListBehavior.fillRemainingListItems(),I.offset=I.dragOffsetStart-(y.clientX-I.dragMouseStart),fN(I),I.reposition_())};
I.onPointerUp=function(){Cwf(I)&&(I.dragging=!1)};
return I};
_.E(nN,_.Wp);var BF_=function(I){var y=_.XB(I.hostElement).querySelector("#items").children;if(!y)return 0;var D=0;I=_.J(I.fullyVisibleItemsIndices);for(var F=I.next();!F.done;F=I.next())D+=y[F.value].clientWidth;return D},Cwf=function(I){return I.isSearch&&_.l("desktop_enable_dmpanel_click_drag_scroll")};
nN.prototype.created=function(){this.cachedViewportWidth=_.Pi("initialInnerWidth")||window.innerWidth;this.JSC$14774_cachedViewportHeight=_.Pi("initialInnerHeight")||window.innerHeight;_.Pi("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.tG("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
nN.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.l("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();iwM(this)};
nN.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.l("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var I;(I=this.itemsVisibilityObserver)==null||I.disconnect();this.itemsVisibilityObserver=null;var y;(y=this.itemsObserver)==null||y.disconnect()};
var iwM=function(I){var y=_.XB(I.hostElement).querySelector("#scroll-container");if(y){if(!I.itemsVisibilityObserver){var D=window.getComputedStyle(y).marginRight;I.itemsVisibilityObserver=new IntersectionObserver(function(F){AcG(I,F)},{root:y,
rootMargin:D,threshold:.98})}if(y=_.XB(I.hostElement).querySelector("#items"))I.itemsObserver=new NyR(y,function(F){$WR(I,F)})}},$WR=function(I,y){bwe(I)&&(Array.from(y.addedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){I.itemsVisibilityObserver&&I.itemsVisibilityObserver.observe(D)}),Array.from(y.removedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){I.itemsVisibilityObserver&&I.itemsVisibilityObserver.unobserve(D)}))},
AcG=function(I,y){var D=new Set(I.fullyVisibleItemsIndices);
y=_.J(y);for(var F=y.next();!F.done;F=y.next()){F=F.value;var R=F.target.parentElement;R?(R=Array.from(R.children).indexOf(F.target),F.isIntersecting?D.add(R):D.has(R)&&D.delete(R)):_.tq(new _.g6("Parent element not found",F.target.nodeName))}I.fullyVisibleItemsIndices=Array.from(D).sort(function(O,w){return O-w});
D.size===0?_.tq(new _.g6("No visible entries in horizontal list")):(I.startIndex=I.fullyVisibleItemsIndices[0],I.endIndex=I.fullyVisibleItemsIndices[I.fullyVisibleItemsIndices.length-1])},bwe=function(I){I.data?I=(I=I.data)&&I.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===I.itemSizeConstraint:!1:I=!1;
return I};
_.L=nN.prototype;_.L.addScrollEventListeners=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container");I.style.touchAction="pan-y";I.addEventListener("wheel",this.JSC$14774_onWheelScroll);I.addEventListener("pointerdown",this.onPointerDown);I.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.L.removeScrollEventListeners=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container");I.removeEventListener("wheel",this.JSC$14774_onWheelScroll);I.removeEventListener("pointerdown",this.onPointerDown);I.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.L.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.YC(this,this.setStartIndex,[this.initialStartIndex])};
_.L.reposition_=function(){var I=_.Pi("HTML_DIR")=="rtl"?"":"-",y=_.XB(this.hostElement).querySelector("#items");y&&(y.style.transform="translateX("+I+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.L.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.YC(this,this.setButtonsState_))};
_.L.setButtonsState_=function(){this.setButtonsStateRequested=!1;var I=_.XB(this.hostElement).querySelector("#items").firstElementChild;if(I){this.minComponentWidth||(this.minComponentWidth=Hwa(this,I));I=_.XB(this.hostElement).querySelector("#scroll-container").clientWidth;var y=_.XB(this.hostElement).querySelector("#items");y=_.l("kevlar_horizontal_list_scroll_width_killswitch")?y.clientWidth:y.scrollWidth;var D=this.get(this.ytLazyListBehavior.itemsPath,this);if(D){var F=Math.round(I/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+F,D.length)-1)}this.ytLazyListBehavior.canShowMore?y+this.minComponentWidth>=this.offset+I&&(this.atEnd=!1):this.atEnd=this.offset+I>=y-20?!0:!1;this.atStart=this.offset<=20}};
_.L.setStartIndex=function(I){if(!this.minComponentWidth){var y=_.XB(this.hostElement).querySelector("#items").firstElementChild;if(!y)return;this.minComponentWidth=Hwa(this,y)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*I;fN(this);this.reposition_()};
_.L.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.aZ();var I=_.XB(this.hostElement).querySelector("#scroll-container").clientWidth;_.l("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Hwa(this,_.XB(this.hostElement).querySelector("#items").firstElementChild));I=this.useFloorScrolling?Math.floor(I/this.minComponentWidth)||1:Math.round(I/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&emM(this);this.offset+=bwe(this)?
BF_(this):I*this.minComponentWidth;fN(this);this.reposition_();this.scrollCount++};
_.L.prevClick_=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container").clientWidth;I=this.useFloorScrolling?Math.floor(I/this.minComponentWidth)||1:Math.round(I/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=bwe(this)?BF_(this):this.minComponentWidth*this.scrollCount-1):this.offset-=bwe(this)?BF_(this):I*this.minComponentWidth;this.centerListItems&&emM(this);fN(this);this.reposition_()};
_.L.onIronResize_=function(){this.resizeSupportEnabled&&_.YC(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.L.onItemsTransitionEnd_=function(I){_.jv(I)===_.XB(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.L.onChildElementFocus_=function(I){I=I.target.closest("#items > *");var y=_.XB(this.hostElement).querySelector("#scroll-container");if(y.contains(I)){if(_.l("web_horizontal_list_behavior_focus_killswitch"))if(I.offsetLeft<this.offset)this.offset=Math.abs(I.offsetLeft)<I.clientWidth?0:I.offsetLeft;else if(I.offsetLeft+I.clientWidth>this.offset+y.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.aZ(),this.offset=I.offsetLeft+I.clientWidth-y.clientWidth;else return;else{var D=_.XB(this.hostElement).querySelector("#items"),
F=_.Pi("HTML_DIR")==="rtl",R=F?D.clientWidth-I.offsetLeft:I.offsetLeft;D=F?D.clientWidth-(I.offsetLeft+I.clientWidth):I.offsetLeft+I.clientWidth;var O=F?R>this.offset+y.clientWidth:R<this.offset,w=F?D<this.offset:D>this.offset+y.clientWidth,v=F?O:w;if(F?w:O)y=F?D:R,this.offset=Math.abs(y)<I.clientWidth?0:y;else if(v)this.ytLazyListBehavior.fillRemainingListItems(),_.aZ(),this.offset=(F?R:D)-y.clientWidth;else return}fN(this);this.reposition_()}};
_.L.observeShownItems_=function(){this.reset()};
_.L.checkComponentWidthResize=function(){var I=_.XB(this.hostElement).querySelector("#items").firstElementChild;I&&(I=Hwa(this,I),this.centerListItems||I!==this.minComponentWidth)&&(this.minComponentWidth=I,this.offset=I*this.scrollCount,this.centerListItems&&emM(this),fN(this),this.reposition_())};
var Hwa=function(I,y){var D=window.getComputedStyle(y).marginRight;D=Math.floor(Number(D.replace("px","")));var F=window.getComputedStyle(y).marginLeft;F=Math.floor(Number(F.replace("px","")));I.centerListItems&&!I.marginWidthRight&&(I.marginWidthRight=D,I.marginWidthLeft=F);return I.resizeSupportEnabled?y.getBoundingClientRect().width+D:y.offsetWidth+D},fN=function(I){var y=_.XB(I.hostElement).querySelector("#scroll-container").clientWidth,D=_.XB(I.hostElement).querySelector("#items").clientWidth;
I.offset<0?I.offset=0:I.offset+y>=D&&(I.offset=D-y)},emM=function(I){I.offset-=(_.XB(I.hostElement).querySelector("#scroll-container").clientWidth+I.marginWidthRight-I.minComponentWidth)/2-I.marginWidthLeft};
_.mD.Object.defineProperties(nN.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var I=_.Pi("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(I==-1)I=this.JSC$14774_cachedViewportHeight,I=I>1320?5:I>1020?4:I>730?3:I>430?2:1;else if(I==0)return 0;_.tG("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",I-1);I=_.Pi("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(I>-1)return I;I=this.cachedViewportWidth;I=I>1600?6:I>1400?5:I>1300?4:I>1090?5:I>870?4:I>660?3:2;_.tG("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
I);return I},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.l("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
nN.prototype.observeShownItems_=nN.prototype.observeShownItems_;nN.prototype.onChildElementFocus_=nN.prototype.onChildElementFocus_;nN.prototype.onItemsTransitionEnd_=nN.prototype.onItemsTransitionEnd_;nN.prototype.onIronResize_=nN.prototype.onIronResize_;nN.prototype.prevClick_=nN.prototype.prevClick_;nN.prototype.nextClick_=nN.prototype.nextClick_;nN.prototype.setButtonsState_=nN.prototype.setButtonsState_;nN.prototype.requestButtonsStateUpdate_=nN.prototype.requestButtonsStateUpdate_;
nN.prototype.reposition_=nN.prototype.reposition_;nN.prototype.reset=nN.prototype.reset;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],nN.prototype,"ytLazyListBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],nN.prototype,"atStart",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],nN.prototype,"atEnd",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"startIndex",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"endIndex",void 0);_.W([_.M({value:6}),_.A("design:type",Number)],nN.prototype,"initialCount",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"scrollCount",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"initialStartIndex",void 0);
_.W([_.M(),_.A("design:type",Object)],nN.prototype,"disableScrollEventListener",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"supportComponentResize",void 0);_.W([_.M({value:function(){var I=this;return function(){return I.prevClick_()}}}),
_.A("design:type",Function)],nN.prototype,"boundPrevClick",void 0);_.W([_.M({value:function(){var I=this;return function(){return I.nextClick_()}}}),
_.A("design:type",Function)],nN.prototype,"boundNextClick",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"useFloorScrolling",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"isSearch",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"dragging",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"dragMouseStart",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"dragOffsetStart",void 0);
_.W([_.M(),_.A("design:type",Object)],nN.prototype,"disableWheelScroll",void 0);_.W([_.M(),_.A("design:type",Object)],nN.prototype,"centerListItems",void 0);_.W([_.z4("iron-resize"),_.ke("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nN.prototype,"onIronResize_",null);_.W([_.z4("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nN.prototype,"onItemsTransitionEnd_",null);
_.W([_.z4("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nN.prototype,"onChildElementFocus_",null);_.W([_.ke("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nN.prototype,"observeShownItems_",null);_.W([_.Cg()],nN);_.Yg.YtdHorizontalListBehavior=[];_.Yg.YtdHorizontalListBehavior.push(_.sD,_.V.YtRendererBehavior,_.Q5.YtLazyListBehavior,_.KN.YtdGuideStateAwareBehavior,nN.prototype);var Wvq=["APP_STATE","PI"];var pN,mf=function(I){this.hostElement=I},MG=function(I,y){if(y&&(AES(y.viewableCommands)||AES(y.endOfSessionCommands))){var D=bKH(y.viewableCommands);
y=bKH(y.endOfSessionCommands);if(!pN){var F=_.kf("custom_active_view_tos_timeout_ms");pN=F>0&&F!==36E5?new UbJ($9B(),F):new UbJ($9B())}jHL(pN,I.hostElement);ot5(pN,I.hostElement,D,y)}},z$=function(I){pN&&jHL(pN,I.hostElement)};var TFc=_.UI(["about:blank"]),s9e={pushState:window.history.pushState,replaceState:window.history.replaceState};var kg=function(I){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=I;this.internalPushState=I.pushState.bind(I);this.internalReplaceState=I.replaceState.bind(I)};
kg.prototype.init=function(){this.initialized=!0};
kg.prototype.pushState=function(I,y){this.initialized||this.init();this.internalPushState&&this.internalPushState(I,"",y)};
kg.prototype.replaceState=function(I,y){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(I,"",y)};
kg.prototype.getState=function(){return this.history&&this.history.state};var VLn=function(I){var y=function(){var D=I.apply(this,arguments)||this;D.boundHistoryPushState=!1;D.boundHistoryReplaceState=!1;D.debugInfo={};return D};
_.E(y,I);y.prototype.init=function(){var D=_.kW("IFRAME");_.Ok(D,_.Et(TFc));D.sandbox="allow-same-origin";D.style.display="none";this.iframe=D;document.body.appendChild(D);this.bindHistoryStateFunctions();I.prototype.init.call(this)};
y.prototype.bindHistoryStateFunctions=function(){var D=this,F=[],R;this.iframe&&((R=this.iframe.contentWindow)==null?0:R.history)&&(R=this.iframe.contentWindow.history)&&(F.push(R),Object.getPrototypeOf(R)&&F.push(Object.getPrototypeOf(R)));window.history&&F.push(window.history);R=window.history;Object.getPrototypeOf(R)&&F.push(Object.getPrototypeOf(R));F.push(s9e);R=function(w){for(var v=null,P=0;P<F.length;P++){var K=F[P][w];if(typeof K==="function"){v=K.bind(window.history);D.debugInfo[w]=P;break}}return v};
if(!this.boundHistoryReplaceState){var O=R("replaceState");O&&(this.internalReplaceState=O,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(R=R("pushState"))&&(this.internalPushState=R,this.boundHistoryPushState=!0)};
return y}(kg),Zwa=function(){return VLn.call(this,window.history)||this};
_.E(Zwa,VLn);Zwa.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var dp=function(I){this.browserHistory=I;this.initialized=!1};
dp.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
dp.prototype.pushState=function(I,y){this.initialized||this.init();this.browserHistory.pushState(I,y)};
dp.prototype.replaceState=function(I,y){this.initialized||this.init();this.browserHistory.replaceState(I,y)};
dp.prototype.handlePopstate=function(I){return I.state};_.goW=function(I,y,D,F,R){this.endpoint=I;this.forward=y;this.historyEntry=D;this.JSC$31091_savedComponentState=F;this.legacyBorder=R===void 0?!1:R};var IeO=function(I,y){this.rootData=I;this.scrollTop=y};_.aK=new _.uk("EPHEMERAL_STORE_TOKEN");_.cy=function(I){this.data=Object.assign({},I);var y;(y=this.data.innertubeResponse)==null||delete y.frameworkUpdates};
_.cy.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.m_)()};
_.cy.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.qv=function(I){return Object.assign({},I.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var yAR=function(){this.maxSize=100;this.timeToDataCache=new Map};
yAR.prototype.get=function(I){var y=this.timeToDataCache.get(I);y&&(this.timeToDataCache.delete(I),this.timeToDataCache.set(I,y));if(y&&y.rootData&&(_.l("web_use_response_store_for_history_cache")||_.l("mweb_use_new_history_manager"))){var D=_.nR().resolve(_.aK),F=Dsg(y),R=!!F;if(F){if(F.content){var O=Wy(D,F.content);R&&O?y.rootData.response=_.qv(O):R=!1}F.player&&(O=Wy(D,F.player),R&&O?y.rootData.playerResponse=_.qv(O):R=!1);F.reelSequence&&(D=Wy(D,F.reelSequence),R&&D?y.rootData.reelWatchSequenceResponse=
_.qv(D):R=!1)}R||(this.timeToDataCache.delete(I),y=void 0)}return y};
yAR.prototype.set=function(I,y){if(y.rootData&&(_.l("web_use_response_store_for_history_cache")||_.l("mweb_use_new_history_manager"))){var D=Dsg(y),F=Object.assign({},y.rootData);D&&(D.content&&y.rootData.response&&(F0n(this,D.content,y.rootData.response),F.response=null),D.player&&y.rootData.playerResponse&&(F0n(this,D.player,y.rootData.playerResponse),F.playerResponse=null),D.reelSequence&&y.rootData.reelWatchSequenceResponse&&(F0n(this,D.reelSequence,y.rootData.reelWatchSequenceResponse),F.reelWatchSequenceResponse=
null));y=new IeO(F,y.scrollTop)}this.timeToDataCache.has(I)?this.timeToDataCache.delete(I):this.timeToDataCache.size>=this.maxSize&&(D=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(D.value));this.maxSize!==0&&this.timeToDataCache.set(I,y)};
yAR.prototype.clear=function(){this.timeToDataCache.clear()};
var Dsg=function(I){var y=_.nR().resolve(_.fR(_.b0)),D;if((D=I.rootData)==null?0:D.endpoint)return y==null?void 0:Zmt(y,I.rootData.endpoint);var F;_.tq(new _.g6("History snapshot response data does not contain endpoint",(F=I.rootData)==null?void 0:F.url));return null},F0n=function(I,y,D){if(I.maxSize>0){var F;
(I=(F=D.responseContext)==null?void 0:F.maxAgeSeconds)&&Number(I)>0&&(F=_.nR().resolve(_.aK),D=Gj(D,I),F.put(y,new _.cy(D)))}};var RcM=function(I,y,D){this.endpoint=y;this.JSC$31097_savedComponentState=D===void 0?null:D;this.entryTime=I};var T9q=1;var CN=function(I){var y=function(){var D=I.apply(this,[].concat(_.Td(_.go.apply(0,arguments))))||this;D.historyEntryTime=0;D.historySnapshotCache=D.createHistoryCache();return D};
_.E(y,I);y.prototype.createHistoryCache=function(){return new yAR};
y.prototype.saveAndReplace=function(D,F,R){var O=window.location.href;var w=w===void 0?{}:w;var v=(v=this.browserHistory.getState())&&v.entryTime?v.entryTime:sXq();D=this.createNewHistoryEntry(D,w,v);this.saveSnapshot(v,F,R);this.replaceState(D,O||window.location.href)};
y.prototype.saveAndPush=function(D,F,R,O,w){w=w===void 0?{}:w;this.saveSnapshot(this.historyEntryTime,R,O);R=this.historySnapshotCache;O=this.historyEntryTime;var v=R.timeToDataCache.keys();v=_.J(v);for(var P=v.next();!P.done;P=v.next())P=P.value,P>O&&R.timeToDataCache.delete(P);F=this.createNewHistoryEntry(F,w);this.pushState(F,D)};
y.prototype.saveSnapshot=function(D,F,R){this.historySnapshotCache.set(D,new IeO(F,R))};
y.prototype.createNewHistoryEntry=function(D,F,R){R=R===void 0?sXq():R;return new RcM(R,D,F)};
y.prototype.handlePopstate=function(D){var F=I.prototype.handlePopstate.call(this,D),R=null,O=null,w=!1,v=null;F&&F.entryTime&&(v=this.historySnapshotCache.get(F.entryTime)||null,w=F.entryTime>this.historyEntryTime,this.historyEntryTime=F.entryTime,R=F.endpoint,O=F.JSC$31097_savedComponentState);this.handleHistoryCacheLoad(new _.goW(R,w,v,O),D);return F};
y.prototype.pushState=function(D,F){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);I.prototype.pushState.call(this,D,F)};
y.prototype.replaceState=function(D,F){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);I.prototype.replaceState.call(this,D,F)};
y.prototype.handleHistoryCacheLoad=function(){};
return y}(dp),OdR=function(){var I=CN.call(this,new Zwa)||this;
I.dispatchElement=null;I.entryIndex=0;return I};
_.E(OdR,CN);_.L=OdR.prototype;_.L.init=function(I){I=I===void 0?!0:I;CN.prototype.init.call(this);this.initialized||(I||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.L.handlePopstate=function(I){var y=null;I.state||(y="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return CN.prototype.handlePopstate.call(this,I);var D=new CustomEvent("yt-history-pop",{cancelable:!0});_.uj(this.dispatchElement,"yt-history-pop",[D,{errorMsg:y}]);_.qr(this.dispatchElement,"yt-close-all-popups-action");if(!D.defaultPrevented){D=_.nR().resolve(_.ja);y=D.getCurrentData();var F=D.getCurrentPage();D=0;F?(F=_.uj(this.dispatchElement,"yt-get-page-offset",
[F]),F.length>0&&(D=F[0])):_.tq(new _.g6("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:y?y.page:"undefined"}));y&&(y.csn=_.VO());this.saveSnapshot(this.historyEntryTime,y,D)}return CN.prototype.handlePopstate.call(this,I)};
_.L.handleHistoryCacheLoad=function(I,y){I.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.J(_.qr(this.dispatchElement,"yt-history-will-navigate",[y])).next().value||_.uj(this.dispatchElement,"yt-history-load",[y,I]))};
_.L.pushState=function(I,y){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var D=new _.g6("history.pushState is not a function",this.getDebugString());_.vu(D)}CN.prototype.pushState.call(this,I,y)};
_.L.replaceState=function(I,y){if(!this.browserHistory.boundHistoryReplaceState){var D=new _.g6("history.replaceState is not a function",this.getDebugString());_.vu(D)}CN.prototype.replaceState.call(this,I,y)};
_.L.saveAndPush=function(I,y,D,F,R){R=R===void 0?{}:R;D&&(D.csn=_.VO());CN.prototype.saveAndPush.call(this,I,y,D,F,R)};
_.L.getDebugString=function(){var I=[];this.initialized&&I.push("i");this.browserHistory.boundHistoryReplaceState&&I.push("bhr");this.browserHistory.boundHistoryPushState&&I.push("bhs");"replaceState"in this.browserHistory.debugInfo&&I.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&I.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&I.push("ei:"+String(this.entryIndex));return I.join(",")};
_.By=function(I,y){I.init(!0);var D=I.browserHistory.getState();I.replaceState(D,EP(y))};
OdR.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.iL=new _.uk("DESKTOP_HISTORY_MANAGER_TOKEN");var L0M=[10,20,30,40,50,60],Al=function(){this.currentPartitionIndex=0},JAO=function(I){kRM({mainAppWeb:_.tt(),
survivalSli:{partitionMinute:I,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},wzc=function(I){kRM({mainAppWeb:_.tt(),
survivalSli:{partitionMinute:I,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},vVP=function(I){return I.currentPartitionIndex>=0&&I.currentPartitionIndex<L0M.length?L0M[I.currentPartitionIndex]:-1},S9a=function(I){return I.currentPartitionIndex>0&&I.currentPartitionIndex-1<L0M.length?L0M[I.currentPartitionIndex-1]:-1};
Al.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var I=S9a(this);I>0&&wzc(I);I=vVP(this);I>0&&JAO(I);tKn(this)}};
var tKn=function(I){var y=vVP(I);if(y>0){var D=S9a(I);D<0&&(D=0);I.intervalId=_.w2.addJob(function(){var F=S9a(I);F>0&&wzc(F);F=vVP(I);F>0&&JAO(F);tKn(I)},3,(y-D)*6E4);
I.currentPartitionIndex+=1}else I.currentPartitionIndex=-1};var P2_=function(I){Hr.call(this,I,132);this.isDocument=I===document.documentElement};
_.E(P2_,Hr);P2_.prototype.calculateScrollDelta=function(I,y,D){var F=0;I<y?F=I<y-100?-48:-8:I>y+D&&(F=I>y+D+100?48:8);return F};
P2_.prototype.JSC$11669_onMouseMove=function(I){this.isDocument||(I.clientX=I.event_.pageX,I.clientY=I.event_.pageY);Hr.prototype.JSC$11669_onMouseMove.call(this,I)};_.K0c=function(I,y){var D=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14828_dragListGroup=null;this.onDraggerCreated=function(F){var R=F.JSC$11665_dragger;R.scrollTarget_=D.scrollElement;F=F.draggerEl;R&&F.menuOpened&&R.setEnabled(!1)};
this.onDragStart=function(F){var R=F.draggerEl;F=F.currDragItem;var O=Object.assign({},F==null?void 0:F.data);O.trackingParams=void 0;R.data=O;R.style.position="absolute";R.style.width=(F==null?void 0:F.clientWidth)+"px";R.style.zIndex="2030";R.onDrag&&R.onDrag();F=_.VE(R);(O=F.querySelector("ytd-app"))?_.XB(O).appendChild(R):F.body.appendChild(R);D.dragScrollSupport=new P2_(D.scrollElement);D.dragScrollSupport.horizontalScrolling_=!1;R=D.dragScrollSupport;R.constrainScroll_=!!R.margin_&&!1};
this.onDrop=function(F){D.handleDrop(F);D.dragScrollSupport&&(_.rM(D.dragScrollSupport),D.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(D.JSC$14828_dragListGroup){var F=D.JSC$14828_dragListGroup;dKa(F,F.currDragItem_)}};
this.handleDrop=y};
_.$g=function(I){I.JSC$14828_dragListGroup&&(_.V1(I.JSC$14828_dragListGroup,Qug,I.onDragStart),_.V1(I.JSC$14828_dragListGroup,pUg,I.onDragStart),I.JSC$14828_dragListGroup.dispose(),I.JSC$14828_dragListGroup=null);I.dragScrollSupport&&(_.rM(I.dragScrollSupport),I.dragScrollSupport=null);I.scrollElement.removeEventListener("scroll",I.onReorderableScroll)};
_.UsM=function(I,y,D,F){F=F===void 0?"":F;_.$g(I);D&&(I.scrollElement=D);I.JSC$14828_dragListGroup=new OD;I.JSC$14828_dragListGroup.hysteresisDistance_=2;Mpe(I.JSC$14828_dragListGroup,y);I.JSC$14828_dragListGroup.draggerElClasses_=K5("dragging").split(" ");F&&zgP(I.JSC$14828_dragListGroup,function(R){var O=R||document,w=null;O.getElementsByClassName?w=O.getElementsByClassName(F)[0]:w=k_M("*",F,R);return w||R});
_.bV(I.JSC$14828_dragListGroup,GJz,I.onDraggerCreated);_.bV(I.JSC$14828_dragListGroup,Qug,I.onDragStart);_.bV(I.JSC$14828_dragListGroup,pUg,I.onDrop);I.JSC$14828_dragListGroup.init();I.scrollElement.addEventListener("scroll",I.onReorderableScroll,{passive:!0})};
_.mD.Object.defineProperties(_.K0c.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var rAa=function(){this.skipNextNavigation=!1},j3c=function(I,y,D){if(!y)return!1;
if(I.skipNextNavigation)return I.skipNextNavigation=!1;if(_.u(D,_.lK))return!1;var F,R,O;if((F=_.u(D,_.kc))==null?0:(R=F.browseEndpointContextSupportedConfigs)==null?0:(O=R.browseEndpointContextMainConfig)==null?0:O.skipConfirmation)return!1;var w;return((w=_.u(y.commandMetadata,_.nE))==null?void 0:w.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
rAa.prototype.showConfirmationDialog=function(I,y){this.navigateParams=y;this.customConfirmationCommand?_.nR().resolve(_.MC).resolveCommand(this.customConfirmationCommand):(y={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Ug(_.zC("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Ug(_.zC("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Ug(_.zC("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Ug(_.zC("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.uK.getInstance().triggerAction("yt-open-popup-action",y,I))};
rAa.prototype.cancelPendingNavigation=function(){var I;((I=this.navigateParams)==null?void 0:I.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var oVP=function(){},hca=function(I,y,D,F,R,O,w){D=D===void 0?{}:D;
w=w===void 0?{}:w;var v=_.nR().resolve(_.b0),P,K=(P=_.u(y,_.lK))==null?void 0:P.url;return K?c1o(v,K,D,window.location.href,function(r,N){NkM(I,r,N,!1,!0,D,O,F)},function(){return!1}):wu(v,y,D,window.location.href,aq(y),function(r,N){NkM(I,r,N,!1,!0,D,O,F)},R,w)},NkM=function(I,y,D,F,R,O,w,v){if(!I.JSC$14843_chunkHandler)if(D.page==="learning_journey_watch"&&_.l("web_enable_canvas_on_learning_journey")){var P=!_.u(v,_.kc);
R=R||F;if(P)if(R){if(_.l("kevlar_continue_playback_without_player_response")){var K;var r=(K=_.u(v,_.t9))==null?void 0:K.videoId}F={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:F,previousVideoId:r},tempData:O}}else F={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else F={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};I.JSC$14843_chunkHandler=new JHc(_.NY,F,w,P,R)}else if(D.page==="watch"||D.page==="learning_journey_watch")if(R||F){if(_.l("kevlar_continue_playback_without_player_response")){var N;
P=(N=_.u(v,_.t9))==null?void 0:N.videoId}I.JSC$14843_chunkHandler=new Shf(_.NY,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:F,previousVideoId:P},tempData:O},w)}else I.JSC$14843_chunkHandler=new Oqu(_.NY);else D.page==="shorts"&&R&&!F?I.JSC$14843_chunkHandler=new vJe(_.NY,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:O},w):I.JSC$14843_chunkHandler=new Lif(w);I.JSC$14843_chunkHandler.processChunk({endpoint:y,data:D});return I.JSC$14843_chunkHandler.eV.promise},
xsW=function(I,y,D,F,R){(D=_.EJn(D))&&NkM(I,y,D,!1,!0,F,void 0,R)};_.leM=new _.uk("NAVIGATION_SERVICE_TOKEN");var uee=function(){this.pendingNavigationPromise=null};
_.L=uee.prototype;_.L.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.L.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.L.addEventListener=function(){throw Error("zh");};
_.L.dispatchEvent=function(){throw Error("zh");};
_.L.removeEventListener=function(){throw Error("zh");};var q9R=new _.uk("APP_ROOT");var ZKH=null;var EVa=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],bL=function(){_.Zw.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];GXf(this)};
_.E(bL,_.Zw);bL.prototype.verifyUser=function(){var I=GXf(this),y=I.logout;if(!I.sessionChange)return!0;this.dispatchEvent("ytsessionchange");y&&this.dispatchEvent("ytuserinvalid");return!1};
var GXf=function(I){var y=EVa.map(function(R){var O;return(O=_.eF.get(R))!=null?O:""}),D=y.some(function(R,O){return I.sessionCookies&&I.sessionCookies[O]!==""&&R===""}),F=y.some(function(R,O){return I.sessionCookies&&I.sessionCookies[O]!==R});
I.sessionCookies=y;return{logout:D,sessionChange:F}};
bL.prototype.clearTimeout=function(){this.scheduledJobId&&(_.w2.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var RmB=new _.uk("POSTMESSAGE_TUNNEL_TOKEN");var ycA=["/parent_tools","/file_download","/artist_roster"],Jce=[hDR,x_e,lta,qkc,uyz,Nj_,EQn,GdG];var Hy=new _.uk("NAVIGATION_CONFIRMATION_SERVICE");var XzW="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Q3R=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],eo=function(I,y){this.pendingNavigationPromise=null;this.JSC$14866_clientRoot=I;this.historyManager=y;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 oVP;this.debugString=I.is;I={"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};_.qM(_.uK.getInstance(),I,this.JSC$14866_clientRoot)},msG,MKg,zcn,kXG,pzW;
_.E(eo,uee);eo.prototype.reload=function(){_.FB(window.location.href)};
var Qxn=function(I){I.currentEndpoint&&_.u(I.currentEndpoint,_.WF)?I.reload():I.currentEndpoint&&I.navigate(I.currentEndpoint,!0,void 0,{disableCache:!0})};
eo.prototype.navigate=function(I,y,D,F,R,O,w,v){y=y===void 0?!1:y;D=D===void 0?{}:D;F=F===void 0?{}:F;var P=_.nR().resolve(Hy),K;if(!w&&j3c(P,(K=this.currentEndpoint)!=null?K:void 0,I))return P.showConfirmationDialog(this.JSC$14866_clientRoot.parentElement,{endpoint:I,reload:y,params:D,tempData:F,requestType:R,createScreenConfig:O}),!1;var r=_.oJ();_.NF(r,"eocs")||r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor");
gNq();w=aq(I);P=F.autonav==="1";K=_.VO();bL.instance||(bL.instance=new bL);var N=bL.instance.verifyUser(),h;if(_.l("enable_dark_theme_only_on_shorts")){var x=document.documentElement.hasAttribute("dark"),q=_.Jt(!0)==="USER_INTERFACE_THEME_DARK";if(w==="shorts"){if(!x)if(_.l("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var X;_.FB((X=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:X.url,void 0,void 0,window.top)}}else{var f;_.FB(_.uP((f=_.u(I==
null?void 0:I.commandMetadata,_.nE))==null?void 0:f.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.l("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!x){var m;_.FB(_.uP((m=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:m.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(q!==x){var z;_.FB(_.uP((z=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:z.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(w==="watch"){if(Y9M(_.nR().resolve(_.OI),
I)&&(N||_.l("fix_miniplayer_navigation_killswitch")))return!1;_.l("block_all_player_prefetch_requests")||(h=Gl_(_.l0(_.cf),I,P))}else{var B,C=(B=_.u(this.currentEndpoint,_.t9))==null?void 0:B.videoId;C&&_.DI.getInstance().then(function(dq){dq&&dq.set("yt-miniplayer-shown-video-id",C)})}h&&(D.frags=h.missingFragments_.join(","));
X=null;var H;f=(H=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:H.ignoreNavigation;if(!f)if(_.l("kevlar_command_url")){var e;X=(e=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?void 0:e.url}else X=_.FKo(I,D);if(X&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&X==this.lastNavigationUrl)return _.ek({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Mv(Fs(),"CANCELLED")}X&&(this.lastNavigationUrl=X);IVq();_.tG("IS_HOMEPAGE_COLD",
!1);_.tG("IS_RESULTS_PAGE_COLD",!1);_.tG("IS_WATCH_PAGE_COLD",!1);I.loggingUrls&&I.loggingUrls.forEach(function(dq){dq.baseUrl&&_.Nw(dq.baseUrl)});
_.tL_(I,O?O.layer:0)&&_.l("kevlar_flush_logs_on_away_navigation")&&_.wI();if(wMJ(I))return!1;LoM(w,R);if(!X)return f||_.tq(new _.g6("Can't construct url for endpoint",I)),_.Mv(Fs(),"FAILURE"),!1;_.Iuo();H=I&&_.u(I,_.kc)&&_.u(I,_.kc).browseId.startsWith("UC");D=(e=_.l("enable_dark_theme_only_on_shorts")&&w==="shorts"?!1:_.w4()&&document.documentElement.hasAttribute("dark")!==_.Lg())?{themeRefresh:1}:{};e&&!_.sJ()&&_.Jt()==="USER_INTERFACE_THEME_DARK"&&(D.theme="dark");H=e||fea(X)&&!H&&!_.l("kevlar_disable_url_allowlist");
N||(H=!0);if(H||_.Pi("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var T;var L5=(T=window.top)==null?void 0:T.location.href}catch(dq){var vH;L5=(vH=dq)==null?void 0:vH.message}_.tq(new _.g6("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:L5}))}I=_.l("kevlar_redirect_on_window_killswitch")?window.top:window;DN(X);_.FB(_.uP(X,D),void 0,void 0,I);_.Mv(Fs(),"ABORTED");return!1}_.l("kevlar_early_popup_close")&&_.uj(this.JSC$14866_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14843_chunkHandler=void 0;var u_;L5=aq((u_=this.currentEndpoint)!=null?u_:void 0);(u_=w==="shorts"&&L5==="shorts")||_.V1W();_.r6(W7W)("nr",void 0);P&&_.ek({webInfo:{navigationReason:"an"}});I.clickTrackingParams&&(F.itct=I.clickTrackingParams,F.csn=K);sF4(F);F.endpoint=JSON.stringify(I);_.l("enable_unknown_lact_fix_on_html5")&&(_.nR().resolve(_.cU),F.lact=_.m$());_.e$.isEmpty(F)||_.re(X,F);!_.l("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(O=Object.assign({},{layer:0},O,{parentLayer:3}));this.pendingNavigationPromise=O=hca(this.pageFetcher,I,F,this.currentEndpoint,this.JSC$14866_isNetworkPromiseStale.bind(this),O,v);O=O.then(this.handleNavigateSuccess.bind(this,O,I,h,F),this.handleNavigateFail.bind(this,O,I));_.bW().navigationFinishPromise=O;y={endpoint:I,pageType:w,url:EP(X),reload:!!y,noProgressBar:u_};R&&(y.type=R);var jW;R=_.zF((jW=this.currentEndpoint)!=null?jW:null);jW=_.zF(I!=null?I:null);this.fireEvent("yt-navigate-start",
y);var xA;(xA=_.nR().resolve(_.fR(_.leM)))==null||xA.publish("navigation-start",{sourcePageSubtype:R,destinationPageSubtype:jW});h&&xsW(this.pageFetcher,I,h,F,this.currentEndpoint);return!0};
eo.prototype.JSC$14866_isNetworkPromiseStale=function(I){return I!=this.pendingNavigationPromise};
var nVc=function(I,y,D,F,R){var O=aq(y);y={endpoint:y,pageType:O};R&&(y.errorMessage=R);_.tq(D);y.navigationDoneMs=_.V_("nd");y.navigationErrorReason=F;I.fireEvent("yt-navigate-error",y)};
eo.prototype.handleNavigateFail=function(I,y,D){var F=void 0;D instanceof _.F9&&(F=D,yUe(D));if(this.JSC$14866_isNetworkPromiseStale(I))return _.eE(F);_.Mv(Fs(),"FAILURE");nVc(this,y,D,"101");return _.eE(D)};
eo.prototype.handleNavigateSuccess=function(I,y,D,F,R){if(this.JSC$14866_isNetworkPromiseStale(I))return _.Xs();this.pendingNavigationPromise=null;if(!R)return y=new _.g6("Missing data in response for navigation endpoint",y),_.eE(y);if(R.reload)return window.location.reload(!0),_.Xs();D&&(I={},_.e$.extend(I,_.EJn(D),R),R=I);var O,w;D=(O=R)==null?void 0:(w=O.timing)==null?void 0:w.responseStart;D!=null&&_.V_("srt",D);_.V_("pdc");var v,P;O=(v=R)==null?void 0:(P=v.timing)==null?void 0:P.info;O!=null&&
(v=_.r6(_.ibW)(O),_.ek(v));_.Mv(Fs(),"SUCCESS");pzW(this,y,R,1,F);return _.Xs()};
var fea=function(I){var y=I;_.l("kevlar_no_redirect_to_classic_2_ks")||(y=(new _.Pg(I)).getPath());if(y==="/"||y==="/red")return!1;var D=!0;XzW.forEach(function(F){I.indexOf(F)===0&&(D=!1)});
Q3R.forEach(function(F){var R=F.url;_.l(F.expFlag)&&I.indexOf(R)===0&&(D=!1)});
return D};
eo.prototype.publishPageData=function(I){this.fireEvent("yt-page-data-fetched",{pageData:I})};
msG=function(I,y,D,F,R,O){var w=null;y.page!=="watch"&&y.page!=="learning_journey_watch"||F?y.filler||_.uj(I.JSC$14866_clientRoot,"yt-stop-old-player",[y]):w=NkM(I.pageFetcher,R,y,D,!1,O,void 0,I.currentEndpoint);if(w)return w.then(I.publishPageData.bind(I,y));I.publishPageData(y);return _.Xs()};
MKg=function(I,y,D){var F=null;if(!D)return F=new _.g6("Empty data",I.debugString,y);var R=D.response;if(!R)return F;var O={endpointType:aq(y)||"unknown"};R.responseContext?(R=R.responseContext.errors)&&(F=new _.g6("Errors in response context",I.debugString,y,R,O)):F=R.error||R.errorMetadata?new _.g6("Errors in response",I.debugString,y,R.error,R.errorMetadata,O):new _.g6("responseContext missing",I.debugString,y,Object.keys(R).sort().join(","),O);var w,v,P,K;if(I=D==null?void 0:(w=D.response)==null?
void 0:(v=w.responseContext)==null?void 0:(P=v.webResponseContextExtensionData)==null?void 0:(K=P.webResponseContextDebugData)==null?void 0:K.debugErrorMessages)for(w=0;w<I.length;w++);return F};
zcn=function(I){var y,D,F,R;return I==null?void 0:(y=I.response)==null?void 0:(D=y.responseContext)==null?void 0:(F=D.errors)==null?void 0:(R=F.error)==null?void 0:R["0"]};
kXG=function(I,y){var D;if(D=y.url&&!y.url.startsWith("/clip"))D=y.url,D=!_.l("webfe_parse_debug_param_in_resolveurl_service")&&I.searchDebugUrlMatcher.test(D)||Pot(D)?!0:!1;if(D)Pot(y.url)&&_.lP(window.location.href).themeRefresh?(y=_.jk(y.url,"themeRefresh"),_.By(I.historyManager,y)):y.url&&!HKL(y.url)&&_.By(I.historyManager,y.url);else if(y.endpoint){var F,R,O;(D=(F=y.endpoint)==null?void 0:(R=F.commandMetadata)==null?void 0:(O=R.webCommandMetadata)==null?void 0:O.url)&&!HKL(D)&&_.By(I.historyManager,
D);D&&y.url&&D!=y.url&&!y.url.match("playnext=1")&&new _.g6("Response url mismatch in response data",I.debugString,D,y.url)}};
_.dsg=function(I,y,D,F,R,O,w,v){O=O===void 0?!1:O;var P=_.nR().resolve(Hy),K;if(!v&&j3c(P,(K=I.currentEndpoint)!=null?K:void 0,y))return P.showConfirmationDialog(I.JSC$14866_clientRoot.parentElement,{endpoint:y,data:D,navigationType:F,tempData:R,isMiniplayer:O,isForwardHistoryNavigation:w==null?void 0:w.forward}),_.Xs();I.pageFetcher.JSC$14843_chunkHandler=void 0;return pzW(I,y,D,F,R,O)};
pzW=function(I,y,D,F,R,O){O=O===void 0?!1:O;I.isMiniplayerExpansion=O;var w=F===2;I.currentEndpoint=y;I.numNavigations++;I.numNavigations&&(dDe.navigationCount=I.numNavigations);_.tG("NUM_NAV",I.numNavigations);var v=MKg(I,y,D);if(v)return nVc(I,y,v,"102",zcn(D)),_.eE(v);var P,K,r,N;v=D.rootVe||(D==null?void 0:(P=D.response)==null?void 0:(K=P.responseContext)==null?void 0:(r=K.webResponseContextExtensionData)==null?void 0:(N=r.ytConfigData)==null?void 0:N.rootVisualElementType);!w&&D&&kXG(I,D);var h,
x;P=D==null?void 0:(h=D.response)==null?void 0:(x=h.responseContext)==null?void 0:x.maxAgeSeconds;if(!w&&!isNaN(P)){var q;_.l("kevlar_use_response_ttl_to_invalidate_cache")?q=(0,_.m_)()+1E3*P:_.l("kevlar_always_invalidate_cache")&&(q=0);isNaN(q)||(D.expirationTime=q)}_.l0(_.cf).prefetchCache_.clear();w||D.page!=="watch"||F!==1?F=msG(I,D,w,!!O,y,R):(I.publishPageData(D),F=_.Xs());R=F.then(function(){var X=aq(y);X={endpoint:y,pageType:X,fromHistory:w,response:D};X.navigationDoneMs=_.V_("nd");I.fireEvent("yt-navigate-finish",
X);var f;(f=_.nR().resolve(_.fR(_.leM)))==null||f.publish("navigation-end")});
D.csn&&v&&D.clientSideGrafts&&F.then(I.attachClientSideGrafts.bind(I,D,_.s_()));return R};
_.L=eo.prototype;_.L.attachClientSideGrafts=function(I,y){I.clientSideGrafts&&y&&I.clientSideGrafts.forEach(function(D){if(y&&D){var F=_.AC(D);_.l("combine_ve_grafts")?_.W4().graftServerVe(D,y):_.Oc(I.csn,y,F)}})};
_.L.handleSignalActionHistoryBack=function(){window.history.back()};
_.L.handleSignalActionCloseWindow=function(){window.close()};
_.L.handleSignalActionReloadPage=function(){this.reload()};
_.L.handleSignalActionSoftReloadPage=function(){Qxn(this)};
_.L.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.L.fireEvent=function(I,y){I=new CustomEvent(I,{bubbles:!0,cancelable:!1,composed:!0,detail:y});this.dispatchEvent(I)};
_.L.addEventListener=function(I,y){this.JSC$14866_clientRoot.addEventListener(I,y)};
_.L.dispatchEvent=function(I){return this.JSC$14866_clientRoot.dispatchEvent(I)};
_.L.removeEventListener=function(I,y){this.JSC$14866_clientRoot.removeEventListener(I,y)};
eo[mw]=[q9R,_.iL];var aeW;var cAf=function(){return _.k.apply(this,arguments)||this};
_.E(cAf,_.k);_.mD.Object.defineProperties(cAf,{template:{configurable:!0,enumerable:!0,get:function(){if(aeW===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);aeW=I}I=aeW;return I}}});
_.W([_.Q(ccG.YtPlayerBehavior),_.A("design:type",Object)],cAf.prototype,"ytPlayerBehavior",void 0);_.W([_.yd({is:"ytd-player"})],cAf);var W0R;var C2R;var BkO;var T$=function(){var I=_.k.apply(this,arguments)||this;I.forceModernIconButton=!1;I.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return I};
_.E(T$,_.k);T$.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]]"}}}}}};
T$.prototype.handleAccountLinkingStateChangedCommand=function(I){if(I=_.u(I,tJM)){var y,D=(y=this.data)==null?void 0:y.providerKey;y=I.providerKey;D&&y&&D.id===y.id&&D.subject===y.subject&&(I=I.linked,I!==void 0&&(this.set("data.linked",I),this.notifyPath("data.linked"),_.l("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(I)))}};
T$.prototype.setPlayerAccountLinkState=function(I){var y=new QjG;YZR(y,GVz(new EjG,I));var D=_.NY();D&&D.getPlayerPromise().then(function(F){F.setAccountLinkState(_.VB(y.JSC$12597_serializeBinary(),4));F.updateAccountLinkingConfig(I)})};
T$.prototype.handleShowAccountLinkDialog=function(){var I=this.get("button.buttonRenderer.command");I&&_.YI([I],this.hostElement)};
_.mD.Object.defineProperties(T$.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}}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.W([_.Q([_.cb.YtActionHandlerBehavior]),_.A("design:type",Object)],T$.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],T$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],T$.prototype,"overrides",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],T$.prototype,"forceModernIconButton",void 0);_.W([_.M({value:"bottom"}),_.A("design:type",String)],T$.prototype,"buttonTooltipPosition",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],T$.prototype,"forceIconButton",void 0);_.W([_.M(),_.A("design:type",Boolean)],T$.prototype,"disableTextTransform",void 0);
_.W([_.Y("data","data.linked","data.isWarning"),_.A("design:type",Object),_.A("design:paramtypes",[])],T$.prototype,"button",null);_.W([_.yd({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],T$);
_.a(T$,"ytd-account-link-button-renderer",function(){if(BkO!==void 0)return BkO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return BkO=I},{mode:1});var id_;var AAM=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],sC=function(){return _.k.apply(this,arguments)||this};
_.E(sC,_.k);sC.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
sC.prototype.updateButtonActiveState=function(){var I=this,y=!!AAM.find(function(D){return I.currentState===D});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.l("enable_web_delhi_icons")&&(y=!1);this.button&&(this.button.isPressed=y)};
_.mD.Object.defineProperties(sC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.playlistLoopStateEntity)==null?void 0:I.state)||((y=this.data)==null?void 0:y.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var I=void 0,y;if(this.currentState&&((y=this.data)==null?0:y.states)){y=_.J(this.data.states);for(var D=y.next();!D.done;D=y.next()){D=_.u(D.value,_.XZu);var F=void 0;if(((F=D)==null?void 0:F.state)===this.currentState){I=D;break}}}return I}}});
sC.prototype.updateButtonActiveState=sC.prototype.updateButtonActiveState;_.W([_.Q(_.Jl),_.A("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.It.playlistLoopStateEntitySelector}),_.A("design:type",Object)],sC.prototype,"playlistLoopStateEntity",void 0);_.W([_.M(),_.A("design:type",Object)],sC.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],sC.prototype,"forceIconOnly",void 0);_.W([_.a0("ytd-button-renderer"),_.A("design:type",_.QJ)],sC.prototype,"button",void 0);
_.W([_.Y("data","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],sC.prototype,"currentState",null);_.W([_.ke("currentButtonStateRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sC.prototype,"updateButtonActiveState",null);_.W([_.Y("currentState"),_.A("design:type",Object),_.A("design:paramtypes",[])],sC.prototype,"currentButtonStateRenderer",null);
_.W([_.yd({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],sC);
_.a(sC,"ytd-playlist-loop-button-renderer",function(){if(id_!==void 0)return id_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return id_=I},
{mode:1});var $se;var bdg=_.zC("DOWNLOAD",{},"Download"),Hdu=_.zC("DOWNLOADING",{},"Downloading"),ecg=_.zC("DOWNLOADED",{},"Downloaded"),TkO=_.zC("RETRY",{},"Retry"),V5=function(){var I=_.k.apply(this,arguments)||this;I.forceIconButton=!1;I.forceIconOnly=!1;I.overrides=!1;I.buttonTooltipPosition=!1;I.styleActionButton=!1;I.disableTextTransform=!1;I.downloadProgress=0;I.isDownloadComplete=!1;I.isHidden=!0;I.transferState="TRANSFER_STATE_UNKNOWN";I.isVideoDeletedByUser=!1;I.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return I};
_.E(V5,_.k);_.L=V5.prototype;_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.dataChanged=function(){var I;(I=this.data)!=null&&I.text||(I=_.FM(_.oq().getState(),this.videoId),this.updateButtonState(I))};
_.L.computeVideoId=function(I){return I};
_.L.computePlayerStateEntityKey=function(I){return I};
_.L.showHideButton=function(){this.updateButtonVisibility()};
_.L.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var I;((I=this.playerStateEntity)==null?void 0:I.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.L.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.L.updateButtonState=function(I){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Hdu||!_.BW(I))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(I){case "TRANSFER_STATE_UNKNOWN":I=bdg;var y="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":I=TkO;y="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":I=ecg;y="OFFLINE_PIN";D="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":I=
Hdu;y="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":I=TkO;y="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;default:I=bdg,y="OFFLINE_DOWNLOAD",D="ACTION_ADD"}this.isVideoDeletedByUser&&(I=bdg,y="OFFLINE_DOWNLOAD",D="ACTION_ADD");var F=Object.assign({},this.data);F.text=_.Ug(I);F.tooltip=I;F.icon={iconType:y};F.size="SIZE_DEFAULT";F.style="STYLE_DEFAULT";_.u(F.command,_.mC)&&(_.u(F.command,_.mC).action=D);this.set("data",F)}};
_.L.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var I="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?I="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?I="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?I="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?I="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?I="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(I="OFFLINE_PIN",this.isDownloadComplete=!0);var y;I!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.text=_.Ug(Hdu),y.tooltip=Hdu,y.icon={iconType:I},_.u(y.command,_.mC)&&(_.u(y.command,_.mC).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
V5.prototype.updateProgress=V5.prototype.updateProgress;V5.prototype.onTransferStateChanged=V5.prototype.onTransferStateChanged;V5.prototype.showHideButton=V5.prototype.showHideButton;V5.prototype.dataChanged=V5.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],V5.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"forceIconButton",void 0);
_.W([_.M(),_.A("design:type",Object)],V5.prototype,"forceIconOnly",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"overrides",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"buttonTooltipPosition",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"styleActionButton",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"disableTextTransform",void 0);
_.W([_.M({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.A("design:type",String)],V5.prototype,"videoId",void 0);_.W([_.M({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.A("design:type",String)],V5.prototype,"playerStateEntityKey",void 0);_.W([_.M(),_.A("design:type",Object)],V5.prototype,"data",void 0);_.W([_.M({selector:Og,selectorArgs:["videoId"]}),_.A("design:type",Object)],V5.prototype,"downloadProgress",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],V5.prototype,"isDownloadComplete",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],V5.prototype,"isHidden",void 0);_.W([_.M({selector:_.FM,selectorArgs:["videoId"]}),_.A("design:type",String)],V5.prototype,"transferState",void 0);_.W([_.M({selector:_.DGJ,selectorArgs:["videoId"]}),_.A("design:type",Object)],V5.prototype,"isVideoDeletedByUser",void 0);
_.W([_.M({selector:st_,selectorArgs:["videoId"]}),_.A("design:type",Object)],V5.prototype,"offlineabilityState",void 0);_.W([_.M({selector:_.Qz,selectorArgs:["playerStateEntityKey"]}),_.A("design:type",Object)],V5.prototype,"playerStateEntity",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],V5.prototype,"showTooltips",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],V5.prototype,"sendCommandWhenDisabled",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],V5.prototype,"disabled",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V5.prototype,"dataChanged",null);_.W([_.Bp("offlineabilityState","playerStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V5.prototype,"showHideButton",null);
_.W([_.Bp("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V5.prototype,"onTransferStateChanged",null);_.W([_.Bp("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V5.prototype,"updateProgress",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],V5);
_.a(V5,"ytd-download-button-renderer",function(){if($se!==void 0)return $se;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return $se=I},{mode:2});var s3_;var VKc,Zdc=function(){if(VKc!==void 0)return VKc;var I=document.createElement("template");_.G(I,'\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 VKc=I};var gVW=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live"),Iqg=_.kf("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,ZW=function(){var I=_.k.apply(this,arguments)||this;I.isPressed=!1;I.forceIconButton=!1;I.forceIconOnly=!1;I.forceModernIconButton=!1;I.alignByText=!1;I.isShorts=!1;I.animatedText=!1;I.shouldAnimate=!1;I.JSC$14904_browserSupportsAnimation=_.l("web_supports_animations_api");I.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};I.onTap=function(){var y;if((y=I.data)==null||!y.defaultNavigationEndpoint){var D;y=!((D=I.data)==null?0:D.isToggled);var F;if((F=I.data)==null||!F.preventAutoToggle){I.shouldAnimate=!1;I.disableTextUpdateJobId&&_.w2.cancelJob(I.disableTextUpdateJobId);I.disableTextUpdateJobId=_.w2.addLowPriorityJob(function(){I.disableTextUpdateJobId=void 0},Iqg);
var R;I.set("data.isToggled",!((R=I.data)==null?0:R.isToggled));D=I.getInnertubeIcon();F={toggled:y,actions:{}};D&&(F.actions[D.toLowerCase()]=y);_.lj(I.hostElement,"yt-toggle-button",F)}}};
return I};
_.E(ZW,_.k);_.L=ZW.prototype;_.L.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.w2.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.toggle=function(I){var y;this.set("data.isToggled",I!==void 0?I:!((y=this.data)==null?0:y.isToggled))};
_.L.handleUpdateToggleButtonStateCommand=function(I){if(this.data){I=_.u(I,oFG);var y,D,F,R=(y=this.data)==null?void 0:(D=y.toggleButtonSupportedData)==null?void 0:(F=D.toggleButtonIdData)==null?void 0:F.id;R&&I&&R===(I==null?void 0:I.buttonId)&&this.set("data.isToggled",I.toggled)}};
_.L.handleUpdateToggleButtonTextAction=function(I){if(this.data){I=_.u(I,WfM);var y,D,F,R=(y=this.data)==null?void 0:(D=y.toggleButtonSupportedData)==null?void 0:(F=D.toggleButtonIdData)==null?void 0:F.id;R&&I&&R===(I==null?void 0:I.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=I.defaultNumericalValue,this.set("data.defaultText",I.defaultText),this.set("data.toggledText",I.toggledText),this.shouldAnimate=!1)}};
_.L.getInnertubeIcon=function(){var I=this.data;if(I){var y,D,F=((y=I.defaultIcon)==null?0:y.iconType)?(D=I.defaultIcon)==null?void 0:D.iconType:null,R,O;y=((R=I.toggledIcon)==null?0:R.iconType)?(O=I.toggledIcon)==null?void 0:O.iconType:F;return I.isToggled?y:F}};
_.L.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.mD.Object.defineProperties(ZW.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I={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$14904_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var y=I.renderer;var D=I.element;var F=I.toggled;var R=I.onTapCallback;var O=I.commandClientArgs;var w=I.overrides;var v=I.forceIcon;var P=I.forceModernIconButton;var K=I.forceDisabled;var r=I.useAnimatedText;var N=I.animatedTextProps;I=UWt(y,F);v=!y.defaultIcon||!v&&y.defaultText?y.defaultIcon?"leading":void 0:P?"icon-only":"icon-only-40";v==="icon-only-40"&&(I.type="text");var h;P=Object;var x=P.assign,q;a:switch((q=
y.style)==null?void 0:q.styleType){case "STYLE_COMPACT_GRAY":q={size:"S"};break a;default:q={size:"M"}}var X=!!F;var f=(f=F&&y.toggledText||y.defaultText)?_.Vd(f):void 0;r?(r=_.rY(F&&y.toggledText||y.defaultText))&&N&&!isNaN(Number(N.numberValue))?(N.numberText=r,F&&(N.numberValue+=1),r=N):r=void 0:r=void 0;var m,z,B,C;var H=(N=((z=F?y.toggledAccessibilityData||((H=y.toggledText)==null?void 0:H.accessibility):y.accessibilityData||((m=y.defaultText)==null?void 0:m.accessibility))==null?void 0:(B=z.accessibilityData)==
null?void 0:B.label)||((C=y.accessibility)==null?void 0:C.label))?N:_.rY(F&&y.toggledText||y.defaultText);K=K===void 0?y.isDisabled:K;D=KxW(y,F,R,D,O);F=Pw_(y,F);F!=null&&F.length?(F=_.FH({innertubeCommand:rXo(F),forceNewState:!0}),F=Ru(F)?F:void 0):F=void 0;y=x.call(P,{},I,q,{iconPosition:v},w,{focused:!1,toggled:X,toggleable:!0,formattedButtonText:f,animatedTextProps:r,accessibilityLabel:H,disabled:K,onTap:D,aTagConfig:F},EOt((h=y.colorData)==null?void 0:h.basicColorPaletteData));y.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(y.type="filled");return y}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var I=this.getInnertubeIcon();if(I)return _.pQ(I)}}});
ZW.prototype.resetAnimation=ZW.prototype.resetAnimation;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ZW.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"isPressed",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"forceIconButton",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"forceIconOnly",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"forceModernIconButton",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"alignByText",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"overrides",void 0);
_.W([_.M(),_.A("design:type",Boolean)],ZW.prototype,"disabled",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"isShorts",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"buttonTooltipPosition",void 0);_.W([_.M(),_.A("design:type",Object)],ZW.prototype,"animatedText",void 0);_.W([_.M(),_.A("design:type",String)],ZW.prototype,"textNumberValue",void 0);_.W([_.M({computed:"computeTooltip(data, data.isToggled)"}),_.A("design:type",Object)],ZW.prototype,"tooltip",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZW.prototype,"resetAnimation",null);_.W([_.Y("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.A("design:type",Object),_.A("design:paramtypes",[])],ZW.prototype,"computedButtonShape",null);_.W([_.Y("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],ZW.prototype,"computedIcon",null);
_.W([_.yd({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],ZW);gVW&&_.a(ZW,"ytd-toggle-button-renderer",Zdc,{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var yjg=_.d(function(I){function y(K){var r;return _.S(function(N){if(N.nextAddress==1)return(r=!j9o(K,v())||!v().enabled)?N.jumpTo(2):N.yield(luC(),3);N.nextAddress!=2&&(r=N.yieldResult);if(r)return N.return();D();setTimeout(function(){w(!1)},1500);
_.Cj(N)})}
function D(){setTimeout(function(){w(!0);var K;(K=F.lottieEl)==null||K.goToAndPlay(0)},150)}
var F=_.nt(),R=_.J(_.$M(!1,void 0,"UfUosc")),O=R.next().value,w=R.next().value,v=_.jE(I.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.LR(function(){var K,r;((K=I.settings)==null?void 0:(r=K.call(I))==null?void 0:r.uniqueId)==="this is not intended behavior"&&_.tq(new _.g6("Smartimation Settings is undefined"))});
_.wZ(function(){v().experimentEnabled&&(v().enabled?oo_(y):(w(!1),NFW(y)),_.tI(function(){NFW(y)}))},"IHhVmc");
_.wZ(function(){v().timings.join("");v().experimentEnabled&&(hmJ(v()),_.tI(function(){xWS(v())}))},"fsfhOe");
var P=_.su(function(){var K=F,r=v().uniqueId+"-border",N,h;var x="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((h=(N=_.nR().resolve(_.fR(_.cS)))==null?void 0:N())!=null&&h?"dark":"light")+"_v2.json";return{animationRef:K,animationConfig:{name:r,autoplay:!1,loop:!1,path:x}}},void 0,"UWvUGe");
R={};return _.t("yt-smartimation",{class:_.XH(I.className,"smartimation",(R["smartimation--experiment-enabled"]=function(){return v().experimentEnabled},R["smartimation--active-border"]=O,R["smartimation--enable-masking"]=uaW(),R))},_.t(_.U,{cond:function(){return v().experimentEnabled},
then:function(){return _.t("div",{class:"smartimation__border"},_.t(_.Wb,{className:"smartimation__border-gradient",data:P,animationName:function(){return P().animationConfig.name}}))}}),_.t("div",{class:"smartimation__content"},I.children))},"ja");
yjg.idomCompat=!0;_.NK(yjg,"yt-smartimation",{props:{className:_.om,settings:_.om}});var gp=function(){var I=_.k.apply(this,arguments)||this;I.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};I.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};I.shouldEnableSmartimation=!1;return I};
_.E(gp,_.k);gp.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
gp.prototype.onDataChanged=function(){var I,y;this.shouldEnableSmartimation=(((I=this.data)==null?void 0:(y=I.timedAnimationData)==null?void 0:y.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
gp.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var I=_.u(this.data.likeButton,_.tz),y=_.u(this.data.dislikeButton,_.tz);return!!((I==null?0:I.isToggled)||(y==null?0:y.isToggled))};
gp.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]]"}}}}}};
_.mD.Object.defineProperties(gp.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var I,y,D=((I=this.data)==null?void 0:(y=I.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:D,enabled:this.shouldEnableSmartimation,experimentEnabled:D.length>0}}}});
gp.prototype.onDataChanged=gp.prototype.onDataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],gp.prototype,"likeButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],gp.prototype,"dislikeButtonOverride",void 0);
_.W([_.Y("shouldEnableSmartimation"),_.A("design:type",Object),_.A("design:paramtypes",[])],gp.prototype,"smartimationSettings",null);_.W([_.ke("data"),_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gp.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],gp);
_.a(gp,"ytd-segmented-like-dislike-button-renderer",function(){if(s3_!==void 0)return s3_;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return s3_=I},{mode:1});var Dqe;var FLf;(FLf=document.body)==null||FLf.setAttribute("rounded-container","");var RaM={};RaM.YtToggleButtonBehavior=[_.cb.YtActionHandlerBehavior,T1.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 I=this.data.isToggled;if(!this.isModal_(I)){if(!this.data.preventAutoToggle){this.toggle();var y={toggled:this.data.isToggled,actions:{}};y.actions[this.buttonIcon]=this.data.isToggled;_.lj(this.hostElement,"yt-toggle-button",y)}y=this.data.defaultServiceEndpoint||null;var D=this.data.toggledServiceEndpoint||null;if(y&&D||y&&this.data.preventAutoToggle)I=I?D:y,y=this.disableCommandHandlerOverride,_.l("killswitch_toggle_button_behavior_resolve_command")||y?_.E$(this.hostElement,
[I]):_.zv(I,this.hostElement),_.lj(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:I})}},
stateChanged_:function(){var I=this.data;if(I){var y=I.isToggled;this._setEndpoint(this.computeEndpoint_(I));this._setServiceEndpoint(this.computeServiceEndpoint_(I));this._setButtonIcon(this.computeButtonIcon_(I,y));this._setButtonText(this.computeButtonText_(I,y));this._setButtonAccessibility(this.computeAccessibility_(I,y));this._setButtonTooltip(this.computeTooltip_(I,y));this._setButtonClass(this.computeButtonClass_(I,y));this._setIconPositionType(this.computeIconPositionType_(I));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=y):this.elements_.button.setAttribute("aria-pressed",y));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=y)}},
shouldSetIconActiveState_:function(){return _.l("kevlar_system_icons")},
toggle:function(I){this.set("data.isToggled",I!==void 0?I:!this.data.isToggled);_.l("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(I){if(I){var y,D;return!!((y=this.data)==null?0:(D=y.toggledServiceEndpoint)==null?0:D.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(I){return I&&I.defaultNavigationEndpoint||null},
computeButtonIcon_:function(I,y){var D=I&&I.defaultIcon?_.pQ(I.defaultIcon.iconType):null;I=I&&I.toggledIcon?_.pQ(I.toggledIcon.iconType):D;return y?I:D},
handleUpdateToggleButtonStateCommand_:function(I){I=I.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==I.buttonId&&this.toggle(I.toggled)},
computeButtonText_:function(I,y){return I?y&&I.toggledText||I.defaultText||null:null},
computeAccessibility_:function(I,y){return I?(y?this.get("toggledAccessibilityData.accessibilityData",I):this.get("accessibilityData.accessibilityData",I))||I.accessibility||null:null},
computeTooltip_:function(I,y){return I?y&&I.toggledTooltip||I.defaultTooltip||null:null},
computeButtonClass_:function(I,y){if(!I)return"";var D="",F=I.toggledStyle||I.style;if(y=y?F:I.style){y.styleType&&(y=y.styleType);try{D+=y.toLowerCase().replace(/_/g,"-")+" "}catch(R){_.Pu(R,y,typeof y),_.tq(R)}}if(I=I.size){I.sizeType&&(I=I.sizeType);try{D+=I.toLowerCase().replace(/_/g,"-")+" "}catch(R){_.Pu(R,I,typeof I),_.tq(R)}}return D.trim()},
computeIconPositionType_:function(I){return I&&I.iconPosition||null},
computeServiceEndpoint_:function(I){var y=I&&I.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return y?y:D&&I.command?I.command:null},
handleUpdateToggleButtonTextAction_:function(I){I=I.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==I.buttonId&&(this.set("data.defaultText",I.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",I.toggledText),this.notifyPath("data.toggledText"))}}];_.bO("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Okf=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live"),I_=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.roundedContainer=!0;return I};
_.E(I_,_.k);I_.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
I_.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var I=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var y={toggled:!!this.data.isToggled,actions:{}};y.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var D,F;y.actions.playlistId=(D=this.data.defaultServiceEndpoint)==null?void 0:(F=D.playlistEditEndpoint)==null?void 0:F.playlistId;_.lj(this.hostElement,"yt-toggle-button",y)}(I=I?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(I)}};
I_.prototype.onYtNavigate=function(I){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);y&&(I.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(y))};
_.mD.Object.defineProperties(I_,{template:{configurable:!0,enumerable:!0,get:function(){if(Dqe===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);Dqe=I}I=Dqe;return I}}});
I_.prototype.onYtNavigate=I_.prototype.onYtNavigate;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],I_.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],I_.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(RaM.YtToggleButtonBehavior),_.A("design:type",Object)],I_.prototype,"ytToggleButtonBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],I_.prototype,"data",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],I_.prototype,"showTooltips",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],I_.prototype,"systemIcons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],I_.prototype,"roundedContainer",void 0);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],I_.prototype,"onYtNavigate",null);
_.W([_.yd({is:"ytd-toggle-button-renderer",disableElementRegistration:Okf})],I_);var LLP,JjP;_.yR=new _.uk("PANEL_CONTROLLER_TOKEN");_.DP=new _.uk("SHEET_CONTROLLER_TOKEN");_.Fu=new _.uk("DIALOG_CONTROLLER_TOKEN");LLP=new _.uk("DIALOG_CONTAINER_TOKEN");JjP=new _.uk("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.R_=new _.uk("PERSISTENT_PANEL_CONTROLLER_TOKEN");var pM_=_.zC("DOWNLOAD",{},"Download"),mWB=_.zC("DOWNLOADING",{},"Downloading"),MLe=_.zC("DOWNLOADED",{},"Downloaded"),zmq=_.zC("RETRY",{},"Retry");var wk_=_.d(function(I){var y=Wxt,D=function(){return""},F=kge(I.data),R=dW4(I.data),O=auW(I.data),w=ccH(I.data);
y=function(){var v=I.data(),P=fuA(v,F(),R(),O(),w()),K=!!v.videoId,r=P.text;return{title:K?r:void 0,tooltip:K?void 0:r,accessibilityText:r,onTap:P.onTap,iconName:P.iconType,style:v.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:P.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:v.buttonSize}};
D={};D=_.XH("ytDownloadButtonViewModelHost",(D.ytDownloadButtonViewModelIsHidden=function(){var v=I.data(),P=w();return v.playlistId||P()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||P()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},D));
return _.t("download-button-view-model",{class:D},_.t(_.My,{data:y}))},"ka");
wk_.idomCompat=!0;var TFq=new _.uk("SUBMIT_API_SERVICE_TOKEN");var bwo,Hwe,s9o={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var UsJ=new _.uk("RENDERER_LOGGER_TOKEN");var S9e=new _.uk("RENDERER_STAMPER_OPTIONS_TOKEN");var Zwe;_.dP=new q5C;Zwe=new Map;var tK4="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),K0q=["notificationTextRenderer","notificationMultiActionRenderer"],
P25="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),vVA=got(function(I){return _.Ki(I==null?void 0:I.targetId)}).useUpdatableData;var wzq=0,L0L=new Set;_.aP.debugName="EjJbCe";var v9P=_.d(function(I){var y=I.data;I=I.className;_.OJ(function(){y().formId||_.vu(Error("Dh"))});
var D=_.$WC(function(){return y().formId},function(){return y().beforeSubmitCommand},function(){return y().afterSubmitCommand}),F=D.submitForm,R=D.isValid,O=D.isSubmitting,w=function(){return{state:y().isDisabled||!R()||O()?"disabled":"active"}};
return _.t("yt-submit-button-view-model",{class:_.XH("ytSubmitButtonViewModelHost",I)},_.t(_.aP,{data:function(){return y().button}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
buttonOverrides:w,onClick:F})}}))},"na");var tPf=_.d(function(I){var y=I.backgroundLottieRef;var D=I.foregroundLottieRef;var F=I.children;var R=I.wrapperClass;var O=I.disableAnimation;I=function(){return(_.l("web_animated_actions")||_.l("web_animated_actions_v2"))&&!(O==null?0:O())};
return _.t("yt-animated-action",{class:_.XH("ytAnimatedActionHost",R)},_.t("div",{class:"ytAnimatedActionContentWithBackground"},_.t(_.U,{cond:I,then:function(){return _.t(Sng,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(rAe()?"dark":"light")+"_v5.json"}}}})}}),F),_.t(_.U,{cond:I,
then:function(){return _.t(Sng,{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_"+(rAe()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
tPf.idomCompat=!0;var Sng=_.d(function(I){var y=I.wrapperClass;var D=I.lottieClass;var F=I.lottiePlayerProps;return _.t("div",{class:_.XH("ytAnimatedActionLottie",y),"aria-hidden":"true"},_.t(_.Wb,{className:D,data:F,animationName:function(){return F().animationConfig.name}}))},"pa");var j3q={isOpen:!1};var NkJ={isAllowed:!1};var xst={errorMessage:"",title:"",privacy:"",isDisabled:!0};var ueo={isOpen:!1};var EVe={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var PtM={response:void 0};var Xzt=function(I,y){I=I===void 0?PtM:I;switch(y.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},I,{response:y.payload});default:return I}};var KLG={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Q3C=function(I,y){I=I===void 0?KLG:I;switch(y.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},I,{nextDisabled:y.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},I,{nextCommand:y.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},I,{footerSubmissionData:y.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},I,{isImpersonationValid:y.payload});default:return I}};var UqM={reportFormData:void 0,reportDetailsFormData:void 0};var Y9J=function(I,y){I=I===void 0?UqM:I;switch(y.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},I,{reportFormData:y.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},I,{reportDetailsFormData:y.payload});default:return I}};var rjg=void 0;_.l("mweb_enable_redux_store_on_demand")||(rjg=new j7(fee()));var OG=_.l("enable_web_delhi_icons");var jif=_.d(function(I){I=_.o6(I,{themeOverride:void 0,animationRef:{}});var y=I.animatedIconType,D=I.active,F=I.themeOverride,R=I.animationRef;I=I.staticIconFn;var O=_.J(_.$M(void 0,void 0,"l48agc")),w=O.next().value,v=O.next().value,P=function(){a:{var f=y();var m=F==null?void 0:F();var z;m=(m==null?void 0:m.useDarkTheme)||((z=_.nR().resolve(_.fR(_.cS)))==null?void 0:z());switch(f){case "LIKE":rjg||(rjg=new j7(fee()));f=(f=yNW(rjg.getState()))&&f.animationLightUrl&&f.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:m?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:m?f.animationDarkUrl:f.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(f){m=f;break a}m="animated_like_icon_"+(m?"dark":"light")+"_"+(OG?"v5":"v4");m={lottiePlayerProps:{animationConfig:{name:m,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+m+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(OG?" animated-like-icon-delhi":"")}}},totalFrames:OG?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":m={lottiePlayerProps:{animationConfig:{name:m?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(m?"dark":"light")+(OG?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(OG?" animated-subscribe-icon-delhi":"")}}},totalFrames:OG?120:79,lazyLoad:!1};break a}m=
void 0}return m},K=function(){var f,m;
return(m=(f=P())==null?void 0:f.lottiePlayerProps.animationConfig.name)!=null?m:""},r=function(){if(P()){var f=P().lottiePlayerProps.animationConfig.path;
return BU.get(f)||w()}};
O=_.J(_.$M(!1,void 0,"sDrGId"));var N=O.next().value;O=O.next().value;var h=pzt(O),x=function(){var f=P(),m,z,B;return(B=f==null?void 0:(m=f.lottiePlayerProps.animationConfig)==null?void 0:(z=m.rendererSettings)==null?void 0:z.className)!=null?B:""},q=void 0,X=void 0;
_.wZ(function(){var f=P(),m=K(),z=r(),B=N(),C=D();if(f&&(X!==m&&(X=m,q=C,m=R(),h.animationConfig=f.lottiePlayerProps.animationConfig,h.animationRef=m,z&&(h.animationConfig.animationData=z,h.animationConfig.path=void 0),m=f.lottiePlayerProps.animationConfig.path,!BU.get(m)&&f.lazyLoad&&m&&nVq(m,v)),!(B||f.lazyLoad&&!z))){if(z=!R().lottieEl)C?(B=f.totalFrames,h.animationConfig.initialSegment=[B-1,B]):h.animationConfig.initialSegment=void 0;if(q!==C&&!z)if(z=R(),C){var H;(H=z.lottieEl)==null||H.playSegments([0,
f.totalFrames],!0)}else{var e;(e=z.lottieEl)==null||e.playSegments([0,1],!0)}q=C}},"RQVZ1d");
return _.t("animated-icon",{class:"ytAnimatedIconHost"},_.t(_.U,{cond:function(){var f,m;return!((f=P())==null||!f.lottiePlayerProps.animationConfig.path||((m=P())==null?0:m.lazyLoad)&&!r()||N())},
then:function(){return _.t(_.Wb,{data:h,animationName:K,className:x,animationRef:R})},
else:I}))},"ra");_.Lc=_.d(function(I){var y=_.DF("yt-subscribe-button-view-model"),D=_.DF("div"),F=_.DF("div"),R=_.nt(),O=_.nt(),w=_.nt(),v=_.zj(kXH,function(){return I.data().stateEntityStoreKey}),P=_.zj(dsB,function(){var eW,oe;
return(oe=(eW=I.data().notificationStateEntityStoreKeys)==null?void 0:eW.subsNotificationStateKey)!=null?oe:""}),K=function(){return!I.data().enableSubscribeButtonPostClickAnimation},r=_.J(_.$M(0,void 0,"YtsSKb")),N=r.next().value,h=r.next().value;
r=_.J(_.$M(0,void 0,"V6JxRe"));var x=r.next().value,q=r.next().value;r=_.J(_.$M(!1,void 0,"JUCSZ"));var X=r.next().value,f=r.next().value;r=_.J(_.$M(!1,void 0,"oV6jwf"));var m=r.next().value,z=r.next().value;r=_.J(_.$M(!1,void 0,"hK1Whe"));var B=r.next().value,C=r.next().value,H;r=_.J(_.$M(!1,void 0,"Asaolf"));var e=r.next().value,T=r.next().value,L5=function(){z(!0);_.ip(_.w2,function(){z(!1)},1500)};
_.wZ(function(){var eW=m();_.iS(function(){eW&&!K()&&v()&&s35(R,O,w)})},"Qq6Hsf");
_.wZ(function(){var eW=v();_.iS(function(){if(!K()&&eW){var oe;((oe=I.animateWidth)==null?0:oe.call(I))&&Tkq(y.value,!!eW.subscribed,N(),x());var xP,XW;((xP=H)==null?0:xP.subscribed)||!eW.subscribed||eW.key!==((XW=H)==null?void 0:XW.key)||L5();H=eW}})},"hog8te");
r=_.su(function(){var eW,oe,xP,XW=I.data(),zo=!((eW=v())==null||!eW.subscribed);eW=!((oe=I.isOverlay)==null||!oe.call(I));oe=X()?y:void 0;var Ub=(xP=P())==null?void 0:xP.state;xP=e();ecB(XW,Ub);return zc4({model:XW,subscribed:zo,isOverlay:eW,element:oe,notificationState:Ub,disableTextEllipsis:!0,focused:xP})},void 0,"hc1PRd");
var vH=function(){var eW;if(!K()&&((eW=I.animateWidth)==null?0:eW.call(I))&&(D==null?0:D.value)&&(F==null?0:F.value)&&!B()){eW=v();var oe=_.J((eW==null?0:eW.subscribed)?[D,F]:[F,D]),xP=oe.next().value;oe=oe.next().value;xP=Math.ceil(xP.value.getBoundingClientRect().width);oe=Math.ceil(oe.value.getBoundingClientRect().width);h(xP);q(oe);Tkq(y.value,!(eW==null||!eW.subscribed),xP,oe);C(!0)}},u_=_.YY(function(eW){vH();
var oe=v();oe&&(eW.detail.endpoint.subscribeEndpoint||eW.detail.endpoint.unsubscribeEndpoint)&&$so(y.value,!oe.subscribed,oe)}),jW=function(){var eW=_.nR().resolve(_.fR(_.Q3));
eW&&T(eW.isKeyBoardInUse())},xA=function(){T(!1)};
_.GU("yt-player-subscribe",function(eW){var oe=v();oe&&eW===I.data().channelId&&$so(y.value,!0,oe)});
_.GU("yt-player-unsubscribe",function(eW){var oe=v();oe&&eW===I.data().channelId&&$so(y.value,!1,oe)});
_.GU("yt-update-subscribe-button-action",function(eW){eW=_.u(eW,IUO);var oe=v();oe&&eW&&eW.channelId===I.data().channelId&&$so(y.value,!!eW.subscribed,oe)});
_.LR(function(){y.value&&(y.value.addEventListener("focusin",jW),y.value.addEventListener("focusout",xA));var eW=_.y9(_.w2,function(){vH()});
f(!0);_.tI(function(){_.w2.cancelJob(eW);y.value&&(y.value.removeEventListener("focusin",jW),y.value.removeEventListener("focusout",xA))})});
var dq=function(){var eW,oe,xP;if(xP=!((eW=v())==null||!eW.subscribed))eW=!!I.data().disableNotificationBell,xP=(oe=P())==null?void 0:oe.state,xP=!eW&&!!xP;return xP},$A=function(){var eW;
return!((eW=v())==null?0:eW.subscribed)},BH=function(){var eW,oe;
if(oe=$A()){oe=!!I.data().disableNotificationBell;var xP=(eW=P())==null?void 0:eW.state;oe=!oe&&!!xP}return oe},jf={},yg={};
return _.t("yt-subscribe-button-view-model",{class:_.XH(I.className,"ytSubscribeButtonViewModelHost",(jf.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var eW,oe;return!((eW=v())==null||!eW.subscribed)&&((oe=I.animateWidth)==null?void 0:oe.call(I))&&m()},jf.ytSubscribeButtonViewModelHostHidden=function(){var eW;
return!((eW=v())==null?0:eW.subscribed)&&I.data().hideWhenUnsubscribed},jf)),
el:y,"on:yt-service-request-sent":u_},_.t(tPf,{backgroundLottieRef:R,foregroundLottieRef:O,wrapperClass:_.XH("ytSubscribeButtonViewModelAnimatedActionWrapper",(yg.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var eW;return((eW=I.animateWidth)==null?void 0:eW.call(I))&&m()},yg.ytSubscribeButtonViewModelStaticWidth=function(){var eW;
return!((eW=I.animateWidth)==null?0:eW.call(I))},yg)),
disableAnimation:K},_.t("div",{el:D,class:"ytSubscribeButtonViewModelContainer"},_.t(_.me,{data:r,icon:function(){return _.t(_.U,{cond:dq,then:function(){var eW=function(){var oe;return AAJ((oe=P())==null?void 0:oe.state)};
return _.t(_.U,{cond:function(){return K()||eW()!=="NOTIFICATIONS_NONE"},
then:function(){return _.t(_.mj,{icon:eW})},
else:function(){return _.t(jif,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:w})}})}})},
secondaryIconName:function(){return dq()?"EXPAND":void 0}}))),_.t("div",{el:F,
class:"ytSubscribeButtonViewModelInvisible"},_.t(_.U,{cond:function(){var eW;return((eW=I.animateWidth)==null?void 0:eW.call(I))&&!K()&&!B()},
then:function(){return _.t(_.me,{data:_.su(function(){var eW;return zc4({model:I.data(),subscribed:$A(),isOverlay:!((eW=I.isOverlay)==null||!eW.call(I)),element:y,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var eW;return BH()?AAJ((eW=P())==null?void 0:eW.state):void 0},
secondaryIconName:function(){return BH()?"EXPAND":void 0}})}})))},"ua");
_.Lc.idomCompat=!0;var o9g=_.d(function(I){var y=I.data;var D=_.zj(kXH,function(){return y().subscriptionStateEntityKey});
return _.t(_.U,{cond:function(){var F=y(),R=D();return!F.hideWhenUnsubscribed||(R==null?0:R.subscribed)?_.u(y().button,_.Kb):void 0},
then:function(F){return _.t("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.t(_.My,{data:F,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
o9g.idomCompat=!0;var NAP,J5;NAP=_.d(function(I){return _.t(_.aP,{data:function(){return I.actionRow().actions}},{buttonViewModel:function(y){var D=y.data;
return _.t(J5,{isRow:I.isRow,isIconOnlyButton:function(){return VKq(D())},
useIntrinsicWidth:I.useIntrinsicWidth},_.t(_.My,{data:D}))},
subscribeButtonViewModel:function(y){return _.t(J5,{isRow:I.isRow},_.t(_.Lc,{data:y.data,isOverlay:!1,animateWidth:function(){return!I.isRow()}}))},
downloadButtonViewModel:function(y){var D=y.data;return _.t(J5,{isRow:I.isRow,isIconOnlyButton:function(){return!!D().playlistId}},_.t(wk_,{data:D}))},
submitButtonViewModel:function(y){var D=y.data;return _.t(J5,{isRow:I.isRow,isIconOnlyButton:function(){var F=D();return VKq(_.u(F==null?void 0:F.button,_.Kb))}},_.t(v9P,{data:D}))},
toggleButtonViewModel:function(y){var D=y.data;return _.t(J5,{isRow:I.isRow,isIconOnlyButton:function(){var F=D();return VKq(_.u(F.isToggled?F.toggledButtonViewModel:F.defaultButtonViewModel,_.Kb))}},_.t(_.yJ,{data:D}))},
subscribePlusButtonViewModel:function(y){return _.t(J5,{isRow:I.isRow},_.t(o9g,{data:y.data}))}})},"wa");
J5=_.d(function(I){var y={};return _.t("div",{class:_.XH("ytFlexibleActionsViewModelAction",(y.ytFlexibleActionsViewModelActionRowAction=I.isRow,y.ytFlexibleActionsViewModelActionIntrinsicWidth=I.useIntrinsicWidth,y.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,y.ytFlexibleActionsViewModelActionIconOnlyButton=I.isIconOnlyButton,y))},I.children)},"xa");
_.wK=_.d(function(I){var y=function(){var F;return((F=I.layout)==null?void 0:F.call(I))===1},D={};
return _.t("yt-flexible-actions-view-model",{class:_.XH("ytFlexibleActionsViewModelHost",I.className,(D.ytFlexibleActionsViewModelInline=function(){return!y()},D.ytFlexibleActionsViewModelScrollable=function(){return I.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},D))},_.t(_.gZ,{each:function(){return I.data().actionsRows||[]}},function(F){return _.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"ytFlexibleActionsViewModelActionRow"},_.t(NAP,{actionRow:F,isRow:y,useIntrinsicWidth:function(){return!!I.data().respectActionIntrinsicWidth}}))},
else:function(){return _.t(NAP,{actionRow:F,isRow:y})}})}))},"ya");_.NK(_.wK,"yt-flexible-actions-view-model",{props:{data:_.om,layout:_.om,justifyContentOverride:_.om,className:_.om}});_.vQ=_.d(function(I){var y=_.zj(_.gV,function(){var R;return(R=I.data().dislikeEntityKey)!=null?R:""}),D=_.su(function(){var R=y();
return R?R.likeStatus==="DISLIKE":_.u(I.data().toggleButtonViewModel,_.r7).isToggled},void 0,"fNr9he"),F=_.su(function(){return Object.assign({},_.u(I.data().toggleButtonViewModel,_.r7),{isToggled:D()})},void 0,"AezoCc");
return _.t("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.t(_.yJ,{data:F,buttonShapeOverrides:I.buttonShapeOverrideables,onToggle:function(R){var O=y();O&&R!==(O.likeStatus==="DISLIKE")&&O.key&&_.ry(_.V0("likeStatusEntity",O.key,{likeStatus:R?"DISLIKE":"INDIFFERENT",hadUserInteraction:R}))}}))},"za");
_.vQ.idomCompat=!0;_.SD=_.d(function(I){var y=_.l("web_supports_animations_api"),D=S8S(function(h){var x=K();if(!h){var q,X;return{numberText:(X=x==null?void 0:(q=x.likeCountIfIndifferent)==null?void 0:q.content)!=null?X:"",numberValue:Number(x==null?void 0:x.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var f;q=(x==null?void 0:(f=x.likeCountIfIndifferent)==null?void 0:f.content)!==h.numberText;if(v()||!q)return h;var m;return{numberText:(x==null?void 0:(m=x.likeCountIfIndifferent)==null?void 0:m.content)||
"",numberValue:Number(x==null?void 0:x.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!x}}),F=S8S(function(h){var x=K();
if(!h){var q,X;return{numberText:(X=x==null?void 0:(q=x.likeCountIfLiked)==null?void 0:q.content)!=null?X:"",numberValue:Number(x==null?void 0:x.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var f;q=(x==null?void 0:(f=x.likeCountIfIndifferent)==null?void 0:f.content)!==h.numberText;if(v()||!q)return h;var m;return{numberText:(x==null?void 0:(m=x.likeCountIfLiked)==null?void 0:m.content)||"",numberValue:Number(x==null?void 0:x.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!x}}),R=_.J(_.$M(void 0,
void 0,"xYSlUe")),O=R.next().value,w=R.next().value,v=O,P=_.zj(_.gV,function(){var h,x;
return(x=(h=I.data())==null?void 0:h.likeStatusEntityKey)!=null?x:""}),K=_.zj(c8J,function(){var h,x;
return((h=I.likeCountEntity)==null?void 0:(x=h.call(I))==null?void 0:x.key)||""}),r=_.su(function(){var h;
return((h=P())==null?void 0:h.likeStatus)==="LIKE"},void 0,"DG5Osd"),N=function(){var h;
return y&&!((h=I.likeCountEntity)==null||!h.call(I))};
return _.t("like-button-view-model",{class:_.XH("ytLikeButtonViewModelHost",I.className)},_.t(_.yJ,{data:function(){var h=Object,x=h.assign,q;var X=_.u((q=I.data())==null?void 0:q.toggleButtonViewModel,_.r7);return x.call(h,{},X||{},{isToggled:r()})},
buttonShapeOverrides:I.buttonShapeOverrideables,animatedTextPropsDefault:function(){return N()?D():void 0},
animatedTextPropsToggled:function(){return N()?F():void 0},
onToggle:function(h){Zdq(h,P(),v(),w)},
style:function(){var h;return((h=I.disableIconAnimation)==null?0:h.call(I))?void 0:{animateIcon:"true"}}}))},"Aa");
_.SD.idomCompat=!0;var haO=_.d(function(I){var y=function(){return _.u(I.data().likeButtonViewModel,_.Lz)},D=function(){var R;
return((R=y())==null?void 0:R.likeStatusEntityKey)||""},F=_.su(function(){var R,O;
var w=(O=_.zj(_.gV,D)())!=null?O:(R=y())==null?void 0:R.likeStatusEntity;R=I.data();var v;R=(R==null?void 0:(v=R.timedAnimationData)==null?void 0:v.animationTiming)||[];return{uniqueId:"like-dislike",timings:R,enabled:(w==null?void 0:w.likeStatus)==="INDIFFERENT"&&R.length>0,experimentEnabled:R.length>0}},void 0,"zZ3GQb");
return _.t("segmented-like-dislike-button-view-model",{class:_.XH("ytSegmentedLikeDislikeButtonViewModelHost",I.className),"button-renderer":!0},_.t(yjg,{settings:F},_.t("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.t(_.U,{cond:y,then:function(R){return _.t(_.SD,{data:R,likeCountEntity:function(){return I.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.l("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.t(_.U,{cond:function(){return _.u(I.data().dislikeButtonViewModel,_.JT)},
then:function(R){return _.t(_.vQ,{data:R,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
haO.idomCompat=!0;_.NK(haO,"segmented-like-dislike-button-view-model",{props:{data:_.om,className:_.om}});var xqM=_.d(function(I){var y=I.data;var D=I.className;var F=I.setMinWidth;var R=I.forceIconOnly;var O=_.DF("account-link-button-view-model"),w=_.zj(_.gVt,function(){var h;return(h=y().accountLinkStatusEntityKey)!=null?h:""}),v=_.zj(_.gVt,function(){var h;
return(h=y().accountLinkStatusSecondaryEntityKey)!=null?h:""}),P=function(){if(!_.l("web_account_link_secondary_killswitch")){var h,x;
return((h=w())==null?void 0:h.linked)||((x=v())==null?void 0:x.linked)}var q;return(q=w())==null?void 0:q.linked};
_.wZ(function(){var h=w();if(h){var x=YZR(new QjG,GVz(new EjG,!!h.linked));_.Yz().then(function(q){q&&(q.setAccountLinkState(_.VB(x.JSC$12597_serializeBinary(),4)),q.updateAccountLinkingConfig(!!h.linked))})}},"IvZF7");
var K=function(){return _.u(y().toggleButtonViewModel,_.r7)};
_.GU("yt-signal-action-show-account-link-dialog",function(){if(K()){var h=P()?K().toggledButtonViewModel:K().defaultButtonViewModel;h=_.u(h,_.Kb);var x;if((x=w())==null?0:x.isWarning){x=_.u(y().warningButtonViewModel,_.Kb);if(!x){_.o8(Error("Eh"));return}h=x}var q;(x=_.yz((q=h)==null?void 0:q.onTap))&&_.YI([x],O.value)}else _.o8(Error("Fh"))});
var r=function(){var h=K();return Object.assign({},h,{isToggled:P()})},N=function(){return(R==null?0:R())?{iconPosition:"icon-only"}:{}};
return _.t("account-link-button-view-model",{class:_.XH("ytwAccountLinkButtonViewModelHost",D,function(){return(F==null?0:F())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:O,"button-renderer":!0},_.t("div",null,_.t(_.U,{cond:function(){var h;if((h=w())==null?0:h.isWarning)return(h=_.u(y().warningButtonViewModel,_.Kb))||_.o8(Error("Eh")),h},
then:function(h){return _.t(_.My,{data:h,buttonOverrides:N})},
else:function(){return _.t(_.yJ,{data:r,buttonShapeOverrides:N})}})))},"Da");_.NK(xqM,"account-link-button-view-model",{props:{data:_.om,className:_.rV,setMinWidth:_.rV,forceIconOnly:_.rV}});_.bO("menuRenderer","menuRenderer","ytd-menu-renderer");
var lq_={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"}},
urg=_.l("web_fix_missing_action_buttons")?100:200,t5=function(){var I=_.k.apply(this,arguments)||this;I.safeArea=!_.l("kevlar_flex_menu_safe_area_killswitch");I.tonalOverride=!1;I.threeDotSize="M";I.isOverlay=!1;I.useOverlayDark=!1;I.topLevelIconsOnly=!1;I.JSC$15038_lastWidth=0;I.maybeUpdateFlexibleMenu=function(){_.l("web_fix_missing_action_buttons")?requestAnimationFrame(I.maybeUpdateFlexibleMenuImpl):I.maybeUpdateFlexibleMenuImpl()};
I.maybeUpdateFlexibleMenuImpl=function(){var y;if((y=I.data)!=null&&y.flexibleItems){I.maybeFlushDebouncer();y=I.hostElement.clientWidth;var D=y>I.JSC$15038_lastWidth,F,R=((F=I.topLevelButtonsContainer)==null?void 0:F.scrollHeight)||0,O;F=((O=I.flexibleItemButtonsContainer)==null?void 0:O.scrollHeight)||0;O=I.hostElement.scrollHeight>Math.max(R,F)+8;D?(I.resetFlexibleItems(),I.JSC$15038_lastWidth=I.hostElement.clientWidth,I.maybeUpdateFlexibleMenu()):O&&(I.shrinkFlexibleMenu(),I.JSC$15038_lastWidth=
y)}};
I.computeThreeDotButtonShape=function(){if(I.tonalOverride)return Object.assign({},{onTap:function(){I.onOverflowTap()},
iconPosition:"icon-only",style:I.isOverlay?I.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:I.threeDotSize,state:"active",accessibilityLabel:I.computeAccessibilityLabel(I.data)},I.threeDotButtonOverride)};
I.onOverflowTap=function(){var y,D,F,R,O,w;_.S(function(v){switch(v.nextAddress){case 1:if(I.data.fetchMenuCommand)return y=_.nR().resolve(_.MC),y.resolveCommand(I.data.fetchMenuCommand,{form:{element:I.hostElement}}),v.return();if(I.data.isDisabled&&I.data.disabledCommand)return _.zv(I.data.disabledCommand,I.hostElement),v.return();D=I.createMenuRendererVe();F={items:I.items};I.data.menuPopupAccessibility&&(F.menuPopupAccessibility=I.data.menuPopupAccessibility);I.data.footer&&(F.footer=I.data.footer);
R={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:F},veData:D}};O=_.nR().resolve(_.DP);if(!_.l("ytd-menu-singleton-sheet-killswitch")){v.jumpTo(2);break}return v.yield(O.openSheet({openPopupActionCommand:R},I.hostElement),3);case 3:return v.return();case 2:return v.yield(O.isSheetOpen(),4);case 4:return(w=v.yieldResult)?v.yield(O.closeSheet(),0):v.yield(O.openSheet({openPopupActionCommand:R},I.hostElement),0)}})};
return I};
_.E(t5,_.k);_.L=t5.prototype;_.L.updateButtonOverrides=function(){if(!_.l("menu_renderer_label_update_upkillswitch")){var I=_.XB(this.hostElement).querySelector("yt-button-view-model");I&&(I.buttonOverrides=this.buttonOverrides)}};
_.L.computeHasItems=function(){var I;return((I=this.topLevelButtonData)==null?void 0:I.length)||this.hasFlexibleItems};
_.L.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.L.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.pg(this.hostElement,{"--ytd-menu-renderer-button-color":_.Vp(this.data.iconColor)}))};
_.L.onStamperFinished=function(){this.JSC$15038_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.L.setupFlexibleMenu=function(){var I=this,y;(y=this.data)!=null&&y.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.n4(this.maybeUpdateFlexibleMenu,urg,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){I.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))};
_.L.maybeFlushDebouncer=function(){if(_.l("web_replace_formatted_with_attributed_string")){var I;(I=this.topLevelButtons)==null||I.forEach(function(D){var F;(D=(F=D.getElementsByTagName("yt-attributed-string"))==null?void 0:F[0])&&lHt(D)});
var y;(y=this.flexibleItemButtons)==null||y.forEach(function(D){var F;(D=(F=D.getElementsByTagName("yt-attributed-string"))==null?void 0:F[0])&&lHt(D)})}};
_.L.resetFlexibleItems=function(){var I;if((I=this.data)!=null&&I.flexibleItems){_.l("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var y;this.flexAsTopLevelButtons=(y=this.data.flexibleItems)==null?void 0:y.map(function(D){return _.u(D,_.v3M).topLevelButton});
_.l("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.L.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.L.shrinkFlexibleMenu=function(){var I;(I=this.flexAsTopLevelButtons)!=null&&I.length&&(this.flexAsTopLevelButtons=[].concat(_.Td(this.flexAsTopLevelButtons.slice(0,-1))))};
_.L.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:lq_,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:lq_,events:!0}}};
_.L.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.L.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.L.detached=function(){this.icon="MORE_VERT"};
_.L.computeTopLevelButtonData=function(I){if(!I)return[];var y;I=(y=I==null?void 0:I.topLevelButtons)!=null?y:[];return _.e$.unsafeClone([].concat(_.Td(I)))};
_.L.computeItems=function(I,y){if(!I)return[];var D=[];if(y){var F=(I.flexibleItems||[]).map(function(w){return _.u(w,_.v3M)});
F=_.J(F);for(var R=F.next();!R.done;R=F.next())R=R.value,y.includes(R.topLevelButton)||(R=R.menuItem)&&D.push(R)}var O;I=(O=I==null?void 0:I.items)!=null?O:[];return[].concat(_.Td(D),_.Td(I))};
_.L.computeMenuActive=function(I,y){return I||y};
_.L.onPopupOpened=function(){this.overlayOpen=!0;_.lj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.L.onPopupClosed=function(){this.overlayOpen=!1;_.lj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.L.onPopupCanceled=function(){this.overlayOpen=!1;_.lj(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.L.computeAccessibilityLabel=function(I){return this.get("accessibility.accessibilityData.label",I)};
_.L.isHidden=function(I,y){return this.tonalOverride||!I?!0:I.fetchMenuCommand||I.isDisabled&&I.disabledCommand?!1:!(y==null?0:y.length)};
_.L.isModernOverflowHidden=function(I,y){return this.tonalOverride&&I?I.fetchMenuCommand?!1:!(y==null?0:y.length):!0};
_.L.createMenuRendererVe=function(){var I=this.data.trackingParams,y=_.VO(),D=_.s_();return I&&y&&D?(I=_.AC(I),D=_.QM(7591),_.l("combine_ve_grafts")?_.aj(_.W4(),D,I):_.Oc(y,I,D),D):null};
_.mD.Object.defineProperties(t5.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.flexAsTopLevelButtons)==null||!I.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
t5.prototype.onPopupCanceled=t5.prototype.onPopupCanceled;t5.prototype.onPopupClosed=t5.prototype.onPopupClosed;t5.prototype.onPopupOpened=t5.prototype.onPopupOpened;t5.prototype.tonalOverrideChanged=t5.prototype.tonalOverrideChanged;t5.prototype.resetFlexibleItems=t5.prototype.resetFlexibleItems;t5.prototype.setupFlexibleMenu=t5.prototype.setupFlexibleMenu;t5.prototype.iconButtonColorChanged=t5.prototype.iconButtonColorChanged;t5.prototype.updateButtonOverrides=t5.prototype.updateButtonOverrides;
_.W([_.Q(_.G2),_.A("design:type",Object)],t5.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#button-shape"),_.A("design:type",HTMLElement)],t5.prototype,"buttonShape",void 0);_.W([_.a0("#button"),_.A("design:type",Object)],t5.prototype,"button",void 0);
_.W([_.M(),_.A("design:type",Object)],t5.prototype,"data",void 0);_.W([_.M({computed:"computeTopLevelButtonData(data)"}),_.A("design:type",Array)],t5.prototype,"topLevelButtonData",void 0);_.W([_.M(),_.A("design:type",Array)],t5.prototype,"flexAsTopLevelButtons",void 0);_.W([_.M({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.A("design:type",Array)],t5.prototype,"items",void 0);_.W([_.M({value:"MORE_VERT"}),_.A("design:type",String)],t5.prototype,"icon",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t5.prototype,"safeArea",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.A("design:type",Boolean)],t5.prototype,"menuActive",void 0);_.W([_.M(),_.A("design:type",Boolean)],t5.prototype,"menuFocused",void 0);_.W([_.M({value:"bottom"}),_.A("design:type",String)],t5.prototype,"buttonTooltipPosition",void 0);_.W([_.M(),_.A("design:type",Boolean)],t5.prototype,"overlayOpen",void 0);
_.W([_.M({value:!0}),_.A("design:type",Boolean)],t5.prototype,"forceIconButton",void 0);_.W([_.M(),_.A("design:type",Boolean)],t5.prototype,"styleActionButton",void 0);_.W([_.M(),_.A("design:type",Boolean)],t5.prototype,"disableTextTransformOnButtons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t5.prototype,"tonalOverride",void 0);_.W([_.M(),_.A("design:type",Object)],t5.prototype,"threeDotSize",void 0);
_.W([_.M(),_.A("design:type",Object)],t5.prototype,"threeDotButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],t5.prototype,"isOverlay",void 0);_.W([_.M(),_.A("design:type",Object)],t5.prototype,"useOverlayDark",void 0);_.W([_.M({computed:"computeButtonOverride(tonalOverride)"}),_.A("design:type",Object)],t5.prototype,"buttonOverride",void 0);_.W([_.M(),_.A("design:type",Boolean)],t5.prototype,"minimizePipBreakages",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],t5.prototype,"hasCustomIconColor",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("flexAsTopLevelButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],t5.prototype,"hasFlexibleItems",null);_.W([_.M({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.A("design:type",Boolean)],t5.prototype,"hasItems",void 0);_.W([_.M(),_.A("design:type",Object)],t5.prototype,"topLevelIconsOnly",void 0);
_.W([_.ke("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"updateButtonOverrides",null);_.W([_.Y("topLevelIconsOnly"),_.A("design:type",Object),_.A("design:paramtypes",[])],t5.prototype,"buttonOverrides",null);_.W([_.a0("#top-level-buttons-computed"),_.A("design:type",HTMLElement)],t5.prototype,"topLevelButtonsContainer",void 0);_.W([_.cp(".top-level-buttons > *"),_.A("design:type",Array)],t5.prototype,"topLevelButtons",void 0);
_.W([_.a0("#flexible-item-buttons"),_.A("design:type",HTMLElement)],t5.prototype,"flexibleItemButtonsContainer",void 0);_.W([_.cp("#flexible-item-buttons > *"),_.A("design:type",Array)],t5.prototype,"flexibleItemButtons",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"iconButtonColorChanged",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"setupFlexibleMenu",null);_.W([_.Bp("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"resetFlexibleItems",null);_.W([_.ke("tonalOverride"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"tonalOverrideChanged",null);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"onPopupOpened",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"onPopupClosed",null);_.W([_.z4("yt-popup-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"onPopupCanceled",null);
_.a(t5,"ytd-menu-renderer",function(){if(C2R===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);C2R=I}I=C2R;return I},{mode:2});var qnM;var E9a;_.PQ=_.d(function(I){var y=I.data;var D=function(){if(y().icon)a:{var R={iconName:y().icon};for(var O=_.nR().resolve(_.mZ),w=_.J([12,24]),v=w.next();!v.done;v=w.next()){var P=v.value;v=Object.assign({},R,{iconStyle:"youtube_fill",iconSize:P});P=Object.assign({},R,{iconStyle:"youtube_outline",iconSize:P});if(O.resolveIcon(v)){R=v;break a}if(O.resolveIcon(P)){R=P;break a}}R=void 0}else R=void 0;return R};
I={};var F={};return _.t("badge-shape",{class:_.XH("yt-badge-shape",function(){return OkW(y().type)},(I["yt-badge-shape--overlay"]=function(){return y().isOverlay},I["yt-badge-shape--ads-include-dot"]=function(){return y().adsIncludeDot},I["yt-badge-shape--thumbnail-badge"]=function(){a:switch(y().type){case 17:case 18:case 19:var R=!0;
break a;default:R=!1}return R},I["yt-badge-shape--status-badge"]=function(){a:switch(y().type){case 12:case 13:case 14:case 15:case 16:var R=!0;
break a;default:R=!1}return R},I["yt-badge-shape--no-text"]=function(){return!y().text},I["yt-badge-shape--modern"]=function(){return y().modern||_.l("web_modern_badge_shape")},I["yt-badge-shape--typography"]=function(){a:{var R=y();
if(R.shouldInheritTypography)switch(R.type){case 0:case 1:case 9:R=!0;break a;default:R=!1}else R=!1}return!R},I)),
style:_.p4({"background-color":function(){var R;return(R=y().customColors)==null?void 0:R.backgroundColor}}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},_.t(_.U,{cond:function(){return y().animation},
then:function(R){return _.t(_.Wb,{className:"yt-badge-shape__icon",data:R,animationName:function(){return R().animationConfig.name||""}})}}),_.t(_.U,{cond:function(){var R;
return D()&&!((R=y())==null?0:R.animation)},
then:function(){return _.t("div",{class:"yt-badge-shape__icon"},_.t(_.iO,{data:function(){return D()}}))}}),_.t("div",{class:_.XH("yt-badge-shape__text",(F["yt-badge-shape__text--clip-text-overflow"]=function(){return y().clipTextOverflow},F["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(y().numBadgesInRow||0)>1},F))},function(){var R;
return(R=y())==null?void 0:R.text}))},"Ea");
_.PQ.idomCompat=!0;_.NK(_.PQ,"badge-shape",{props:{data:_.om}});var Kc=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.animated=_.l("animated_live_badge_icon");I.useBadgeShape=_.l("web_badge_shape_defrag");return I};
_.E(Kc,_.k);_.L=Kc.prototype;_.L.addTooltips=function(){for(var I=_.XB(this.hostElement).querySelectorAll(".badge"),y=0,D;D=I[y++];){var F=this.repeatElement.itemForElement(D);D=_.XB(D);D.lastChild&&D.lastChild.is==="tp-yt-paper-tooltip"&&D.removeChild(D.lastChild);if(F=F.metadataBadgeRenderer&&F.metadataBadgeRenderer.tooltip){var R=_.qy("tp-yt-paper-tooltip");(0,_.ng)(R).textContent=F;R.setAttribute("position","top");R.setAttribute("aria-hidden","true");D.appendChild(R)}}};
_.L.badgesChanged=function(){var I=this;_.oJ().parkOrScheduleJob(function(){I.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.L.standaloneRoundedBadgeChanged=function(){var I=this.useRoundedBadge?this.useRoundedBadge:void 0;I&&(this.useRoundedBadge=I)};
_.L.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.L.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.L.computeStyle=function(I){_.l("kevlar_ytb_live_badges")&&I==="BADGE_STYLE_TYPE_LIVE_NOW"&&(I="badge-style-type-live-now-alternate");return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeRole=function(I){return this.computeAriaLabel(I)?"img":"status"};
_.L.computeAriaLabel=function(I){var y;return(I==null?void 0:(y=I.accessibilityData)==null?void 0:y.label)||(I==null?void 0:I.label)};
_.L.computeBadgeShape=function(I){if(I){var y,D;var F=FLW(I.style);var R=RaJ(I.style),O=I.label,w=((y=I.accessibilityData)==null?void 0:y.label)||I.label;a:switch(I.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":y=!0;break a;default:y=!1}var v=(D=I.icon)==null?void 0:D.iconType;a:switch(I.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":I=!0;break a;default:I=!1}F={type:F,brNzRatingBadgeType:R,text:O,accessibilityText:w,
isOverlay:y,icon:v!=="PREMIUM"?v:void 0,modern:_.l("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:I}}else F={};return F};
_.L.updateComputedBadges=function(I,y,D){var F=this;(y=y?[y]:D?[D]:void 0)?this.computedBadges=y:this.computedBadges=I==null?void 0:I.filter(function(R){var O;if((O=R.metadataBadgeRenderer)==null?0:O.groups){O=!1;R=_.J(R.metadataBadgeRenderer.groups);for(var w=R.next();!w.done;w=R.next()){w=w.value;var v=void 0;O=O||((v=F.hiddenBadgeGroups)==null?void 0:v.includes(w))}return!O}return!0})};
_.L.useFilledIcons=function(I){return _.l("kevlar_system_icons")&&(I==="AUDIO_BADGE"||I==="CHECK_CIRCLE_THICK"||I==="OFFICIAL_ARTIST_BADGE"||I==="SPONSORSHIP_STAR"||I==="PERSON_RADAR_FILLED"||I==="PERSON_RADAR")};
_.L.computeBadgeShapeStyle=function(I){return this.useBadgeShape?I==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||I==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":I==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.L.computeIcon=function(I){var y,D;I=I==null?void 0:(y=I.metadataBadgeRenderer)==null?void 0:(D=y.icon)==null?void 0:D.iconType;if(I!=="PREMIUM"&&I)return _.pQ(I)};
_.L.computeStandaloneBadge=function(I){var y;I=I==null?void 0:(y=I.icon)==null?void 0:y.iconType;return I==="PREMIUM_STANDALONE"||I==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Kc.prototype.hiddenBadgeGroupsChanged=Kc.prototype.hiddenBadgeGroupsChanged;Kc.prototype.standaloneBadgeChanged=Kc.prototype.standaloneBadgeChanged;Kc.prototype.standaloneRoundedBadgeChanged=Kc.prototype.standaloneRoundedBadgeChanged;Kc.prototype.badgesChanged=Kc.prototype.badgesChanged;_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"hidden",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Kc.prototype,"componentBehavior",void 0);
_.W([_.M(),_.A("design:type",Array)],Kc.prototype,"badges",void 0);_.W([_.M(),_.A("design:type",Object)],Kc.prototype,"topStandaloneBadge",void 0);_.W([_.M(),_.A("design:type",Object)],Kc.prototype,"bottomStandaloneBadge",void 0);_.W([_.M(),_.A("design:type",Object)],Kc.prototype,"computedBadges",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"mediumFontAdBadge",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"useRoundedBadge",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"largeFontAdBadge",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"overlayAd",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"overlayPremium",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"noDotAdBadge",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"collectionTruncate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"isThumbnailBadge",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kc.prototype,"wrapBadges",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],Kc.prototype,"numBadgesInRow",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kc.prototype,"systemIcons",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kc.prototype,"animated",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kc.prototype,"useBadgeShape",void 0);_.W([_.M({value:[]}),_.A("design:type",Array)],Kc.prototype,"hiddenBadgeGroups",void 0);_.W([_.a0("#repeat"),_.A("design:type",sM)],Kc.prototype,"repeatElement",void 0);_.W([_.Bp("badges"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kc.prototype,"badgesChanged",null);
_.W([_.Bp("useRoundedBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kc.prototype,"standaloneRoundedBadgeChanged",null);_.W([_.Bp("topStandaloneBadge","bottomStandaloneBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kc.prototype,"standaloneBadgeChanged",null);_.W([_.Bp("hiddenBadgeGroups"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kc.prototype,"hiddenBadgeGroupsChanged",null);
_.W([_.yd({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Kc);
var GWa=_.Xf()(Kc,"ytd-badge-supported-renderer",function(){if(E9a===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);E9a=I}I=E9a;return I},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Qd("kevlar_poly_si_batch_j053")?1:2});var UG=function(){var I=_.k.apply(this,arguments)||this;I.iconType="STAR";I.plaMedium=_.l("enable_pla_resizing_for_desktop_medium");I.plaLarge=_.l("enable_pla_resizing_for_desktop_large");I.plaExtraLarge=_.l("enable_pla_resizing_for_desktop_extra_large");I.standardizeIconSize=_.l("kevlar_system_icons");I.mediaHoverOverlayInitialVisibility=_.l("enable_top_landscape_image_button_command_web");I.noBottomMargin=!1;I.thumbnailObjectFit="CONTAIN";I.thumbnailFitHeight=!0;I.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return I};
_.E(UG,_.k);_.L=UG.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.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"}}}};
_.L.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",UG.JSC$15051_DEFAULT_CLICK_LOCATION_BEHAVIOR,UG.JSC$15051_CLICK_LOCATION_ID_MAP))};
_.L.onTap=function(I){this.onTapOrClick(I)};
_.L.onTapOrClick=function(I){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,I,!1)};
_.L.updateMediaBackgroundImage=function(){var I=this.get("data.image.thumbnail.thumbnails");I&&(I=_.hf(I,0))&&_.pg(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+I+")"})};
_.L.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var I=0;I<this.data.impressionEndpoints.length;I++){var y=this.data.impressionEndpoints[I];y.clickTrackingParams&&delete y.clickTrackingParams;_.nR().resolve(_.MC).resolveCommand(y,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var D;((D=this.data)==null?0:D.activeView)&&MG(this.activeView,this.data.activeView)}};
_.L.handleMuteAd=function(){};
_.L.attached=function(){var I=this;_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.detached=function(){_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
_.mD.Object.defineProperties(UG.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.titleText)return"";var y;return _.zC("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((y=this.data)==null?void 0:y.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.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 I;return!((I=this.data)==null||!I.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"}}});
UG.prototype.onTap=UG.prototype.onTap;UG.prototype.dataChanged=UG.prototype.dataChanged;
UG.JSC$15051_CLICK_LOCATION_ID_MAP=_.l("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"]]);
UG.JSC$15051_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.l("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"}];_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.vy),_.A("design:type",Object)],UG.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],UG.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],UG.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.Q([_.cb.YtActionHandlerBehavior]),_.A("design:type",Object)],UG.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UG.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],UG.prototype,"clickCommand",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],UG.prototype,"miniMode",void 0);_.W([_.M(),_.A("design:type",String)],UG.prototype,"iconType",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"plaMedium",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"plaLarge",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"plaExtraLarge",void 0);_.W([_.Y("data.titleText"),_.A("design:type",String),_.A("design:paramtypes",[])],UG.prototype,"titleAriaLabel",null);_.W([_.Y("data.rating"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"getRating",null);_.W([_.Y("data.price"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"getPrice",null);
_.W([_.Y("data.thirdLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"getThirdLine",null);_.W([_.Y("data.fourthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"getFourthLine",null);_.W([_.Y("data.fifthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"getFifthLine",null);_.W([_.Y("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computeRatingHidden",null);
_.W([_.Y("getPrice"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computePriceHidden",null);_.W([_.Y("getThirdLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computeThirdLineHidden",null);_.W([_.Y("getFourthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computeFourthLineHidden",null);_.W([_.Y("getFifthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computeFifthLineHidden",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.energyIcon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"hasEnergyIcon",null);_.W([_.Y("computePriceHidden","computeRatingHidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"computeSecondaryTextHidden",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"standardizeIconSize",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UG.prototype,"noBottomMargin",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.layout"),_.A("design:type",String),_.A("design:paramtypes",[])],UG.prototype,"layout",null);_.W([_.Y("data.layout"),_.A("design:type",Object),_.A("design:paramtypes",[])],UG.prototype,"mediaThumbnailWidth",null);
_.W([_.Y("layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"useRoundedBadge",null);_.W([_.M(),_.A("design:type",String)],UG.prototype,"thumbnailObjectFit",void 0);_.W([_.M(),_.A("design:type",Object)],UG.prototype,"thumbnailFitHeight",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UG.prototype,"dataChanged",null);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UG.prototype,"onTap",null);_.W([_.yd({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],UG);
_.a(UG,"ytd-display-ad-renderer",function(){if(qnM!==void 0)return qnM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qnM=I},{mode:1});var Xka;var QiP;var Ynn;var LLA=new Map;var fqO=!1;var rK=function(){var I=_.k.apply(this,arguments)||this;I.DEFAULT_TOOLTIP_OFFSET="10";I.TOOLTIP_OFFSET_NO_BANNER="-8";I.badges=null;I.noEndpoints=!1;I.wrapText=!1;I.forceVerified=!1;I.tooltipPosition="top";I.compactStyle=!1;I.height=0;I.lineHeight=0;return I};
_.E(rK,_.k);_.L=rK.prototype;_.L.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.L.attached=function(){var I=this;this.observer=new MutationObserver(function(y,D){I.handleResized();D.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.L.detached=function(){this.observer&&this.observer.disconnect()};
_.L.logTooltipEvent=function(){_.l("kevlar_wiz_tooltip_event_killswitch")||fqO||(_.JjA("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),fqO=!0)};
_.L.handleWindowResized=function(){this.handleResized()};
_.L.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")))};
_.L.onHeightChanged=function(){if(this.verified){var I=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Pi("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=I:this.textContainerEl.style.marginRight=I}};
_.L.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Pi("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.L.handleResized=function(){var I=this;this.verified&&_.w2.addLowPriorityJob(function(){I.fitBackgroundToText();var y=getComputedStyle(I.hostElement).lineHeight;y&&(y=y.match(/\d+/))&&y.length&&(I.lineHeight=Number(y[0]));I.height=I.lineHeight&&!I.wrapText?I.lineHeight:I.textEl.offsetHeight})};
_.L.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var I=document.createRange(),y=_.XB(this.textEl).children;y.length>0?I.selectNodeContents(y[0]):I.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(I.getBoundingClientRect().width)+"px"}};
_.L.computeChannelBadgeStyle=function(I){var y;if((I==null?0:(y=I.runs)==null?0:y.length)&&I.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Vp(I.runs[0].textColor)+";"};
_.mD.Object.defineProperties(rK.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"?_.Ug(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var I=this.get("badges.0.metadataBadgeRenderer.tooltip");if(I)return I}return _.rY(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
rK.prototype.onLineHeightChanged=rK.prototype.onLineHeightChanged;rK.prototype.onHeightChanged=rK.prototype.onHeightChanged;rK.prototype.onChannelNameChanged=rK.prototype.onChannelNameChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],rK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"badges",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"channelName",void 0);
_.W([_.M(),_.A("design:type",Object)],rK.prototype,"noEndpoints",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"wrapText",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"forceVerified",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"tooltipPosition",void 0);_.W([_.M(),_.A("design:type",String)],rK.prototype,"tooltip",void 0);_.W([_.M(),_.A("design:type",Boolean)],rK.prototype,"hasChannelArt",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],rK.prototype,"compactStyle",void 0);_.W([_.a0("#text-container"),_.A("design:type",HTMLElement)],rK.prototype,"textContainerEl",void 0);_.W([_.a0("#text"),_.A("design:type",Object)],rK.prototype,"textEl",void 0);_.W([_.a0("#verified-tooltip"),_.A("design:type",HTMLElement)],rK.prototype,"verifiedTooltip",void 0);_.W([_.M(),_.A("design:type",Object)],rK.prototype,"height",void 0);
_.W([_.M(),_.A("design:type",Object)],rK.prototype,"lineHeight",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("badges","forceVerified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rK.prototype,"verified",null);_.W([_.Y("badges","verified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rK.prototype,"hideBadges",null);_.W([_.Y("channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],rK.prototype,"formattedName",null);
_.W([_.Y("badges","verified","formattedName"),_.A("design:type",String),_.A("design:paramtypes",[])],rK.prototype,"tooltipText",null);_.W([_.Y("hasChannelArt"),_.A("design:type",String),_.A("design:paramtypes",[])],rK.prototype,"tooltipOffset",null);_.W([_.ke("channelName"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rK.prototype,"onChannelNameChanged",null);
_.W([_.ke("height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rK.prototype,"onHeightChanged",null);_.W([_.ke("lineHeight","height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rK.prototype,"onLineHeightChanged",null);_.W([_.yd({is:"ytd-channel-name",disableElementRegistration:!0})],rK);
_.a(rK,"ytd-channel-name",function(){if(Ynn!==void 0)return Ynn;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ynn=I},{mode:_.Qd("kevlar_poly_si_batch_j036")?1:2});var jD=function(){var I=_.k.apply(this,arguments)||this;I.standardizeIconSize=_.l("kevlar_system_icons");return I};
_.E(jD,_.k);jD.prototype.basicPaletteChanged=function(){var I;(I=this.data.color)!=null&&I.basicColorPaletteData&&_.Af(this.hostElement,this.data.color.basicColorPaletteData)};
jD.prototype.useFilledIcons=function(I){return _.l("kevlar_system_icons")&&(I==="CHECK_CIRCLE_THICK"||I==="OFFICIAL_ARTIST_BADGE")};
_.mD.Object.defineProperties(jD.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return this.data.authorCreator||((I=this.data)==null?void 0:(y=I.color)==null?void 0:(D=y.basicColorPaletteData)==null?void 0:D.backgroundColor)}}});
jD.prototype.basicPaletteChanged=jD.prototype.basicPaletteChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jD.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],jD.prototype,"standardizeIconSize",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.authorUnifiedVerified"),_.A("design:type",Object),_.A("design:paramtypes",[])],jD.prototype,"verified",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],jD.prototype,"creator",null);_.W([_.ke("data.color.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jD.prototype,"basicPaletteChanged",null);_.W([_.yd({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],jD);
_.a(jD,"ytd-author-comment-badge-renderer",function(){if(QiP!==void 0)return QiP;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return QiP=I},{mode:1});var n9O;var o_=function(){return _.k.apply(this,arguments)||this};
_.E(o_,_.k);o_.prototype.computeThumbnailWidth=function(I){if(I==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],o_.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],o_.prototype,"icon",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],o_.prototype,"surface",void 0);
_.W([_.M({reflectToAttribute:!0,value:_.l("enable_shrink_image_size_on_web_posts_singleton")}),_.A("design:type",Boolean)],o_.prototype,"searchSxsUx",void 0);_.W([_.M({reflectToAttribute:!0,value:_.l("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],o_.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.yd({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],o_);
_.a(o_,"ytd-backstage-image-renderer",function(){if(n9O!==void 0)return n9O;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return n9O=I},{mode:1});var pkW;var Ni=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;I.selectedItemIndex=-1;return I};
_.E(Ni,_.k);_.L=Ni.prototype;_.L.computeIsChannelOwner=function(I){if(!I)return!0;I=I[0];return!(I&&(I.signinEndpoint||I.selectServiceEndpoint))};
_.L.computeIsImagePoll=function(I){return(I==null?void 0:I.type)==="POLL_TYPE_IMAGE"};
_.L.computeIsTotalVotesDisabled=function(I){return!(I==null?0:I.totalVotes)};
_.L.thumbnailSrc=function(I){var y,D,F,R;return(I==null?0:(y=I.thumbnails)==null?0:(D=y[0])==null?0:D.url)?_.VA((F=I.thumbnails)==null?void 0:(R=F[0])==null?void 0:R.url):void 0};
_.L.progressWidth=function(I){return"width:"+(I?I*100:0)+"%;"};
_.L.textAreaWidth=function(I){return this.isImagePoll?null:"width:"+(I?I*100:0)+"%;"};
_.L.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.L.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var I=this.data.choices,y=0;y<I.length;y++)if(I[y].selected){this.selectedItemIndex=y;break}};
_.L.onPopupClosed=function(I,y){I=Number(this.pollVotes.selected);y.confirmed&&(this.selectChoice(I,!1),_.uj(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.L.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.L.onYtCommentPollRevert=function(I,y){y&&(this.selectChoice(y.selectedChoiceIndex,!0),this.set("data.totalVotes",y.totalVotes))};
_.L.onYtServiceRequestSent=function(I,y){if(y.actions)for(I=0;I<y.actions.length;I++){var D=y.actions[I];_.u(D,bE)&&this.set("data.totalVotes",_.u(D,bE).totalVotes)}};
_.L.onYtServiceRequestCompleted=function(I){var y=this.get("detail.data.actionResults.0.feedback",I);I=this.get("detail.data.actionResults.0.status",I);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,I==="STATUS_FAILED"?_.lj(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.L.getEndpoint=function(I,y){return y===I?this.data.choices[y].deselectServiceEndpoint||null:this.data.choices[I].selectServiceEndpoint||null};
_.L.selectChoice=function(I,y){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var D=0;D<this.data.choices.length;D++){var F;if(I===this.selectedItemIndex){var R=!1;var O=F=null}else F=(R=D===I)?this.data.choices[D].voteRatioIfSelected:this.data.choices[D].voteRatioIfNotSelected,O=R?this.data.choices[D].votePercentageIfSelected:this.data.choices[D].votePercentageIfNotSelected;this.set("data.choices."+D+".voteRatio",F);
this.set("data.choices."+D+".votePercentage",O);this.set("data.choices."+D+".selected",R)}y||(this.isLoading=!0,(y=this.getEndpoint(I,this.selectedItemIndex))&&_.nR().resolve(_.MC).resolveCommand(y,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===I?-1:I};
_.mD.Object.defineProperties(Ni.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Ni.prototype.onYtServiceRequestCompleted=Ni.prototype.onYtServiceRequestCompleted;Ni.prototype.onYtServiceRequestSent=Ni.prototype.onYtServiceRequestSent;Ni.prototype.onYtCommentPollRevert=Ni.prototype.onYtCommentPollRevert;Ni.prototype.onPopupClosed=Ni.prototype.onPopupClosed;Ni.prototype.dataChanged=Ni.prototype.dataChanged;_.W([_.Q(_.rb),_.A("design:type",Object)],Ni.prototype,"paperItemBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],Ni.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ni.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Ni.prototype,"isLoading",void 0);_.W([_.M({computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],Ni.prototype,"isChannelOwner",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.A("design:type",Boolean)],Ni.prototype,"isImagePoll",void 0);_.W([_.M({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],Ni.prototype,"isTotalVotesDisabled",void 0);_.W([_.M(),_.A("design:type",Object)],Ni.prototype,"previousPollInfo",void 0);_.W([_.M(),_.A("design:type",Object)],Ni.prototype,"selectedItemIndex",void 0);_.W([_.a0("#poll-votes"),_.A("design:type",Object)],Ni.prototype,"pollVotes",void 0);
_.W([_.Y("isChannelOwner"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ni.prototype,"endpointStyle",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ni.prototype,"dataChanged",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ni.prototype,"onPopupClosed",null);
_.W([_.z4("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ni.prototype,"onYtCommentPollRevert",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],Ni.prototype,"onYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ni.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Ni);
_.a(Ni,"ytd-backstage-poll-renderer",function(){if(pkW!==void 0)return pkW;var I=document.createElement("template");_.G(I,'\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" aria-selected$="[[item.selected]]">\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return pkW=I},{mode:2});var mqP;var MPO={autoplay:!1,loop:!1},zaM={simpleText:""},h5=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;I.usesPanelLockup=!1;I.selectedItemIndex=-1;I.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},MPO,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});I.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},MPO,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});I.correctnessAnimationProps=[];I.correctnessAnimationRefs=[];return I};
_.E(h5,_.k);_.L=h5.prototype;_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.L.computeIsChannelOwner=function(I){if(!I)return!0;I=I[0];return!(I&&(I.signinEndpoint||I.selectServiceEndpoint))};
_.L.computeIsTotalVotesDisabled=function(I){return!(I==null?0:I.totalVotes)};
_.L.computeIsImageQuiz=function(I){return(I==null?void 0:I.type)==="POLL_TYPE_IMAGE"};
_.L.onExplanationChanged=function(){this.expander.reset()};
_.L.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var I=this.data.choices;if(I){this.maybeInitializeQuizLotties(I);for(var y=0;y<I.length;y++)if(I[y].isSelected||this.isChannelOwner&&I[y].isCorrect){this.selectedItemIndex=y;return}this.selectedItemIndex=-1}}};
_.L.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var I=this.selectedItemIndex,y=Number(this.quizVotes.selected);this.selectChoice(y);this.sendVoteAction(y,I);this.quizVotes.selected=-1;var D;I=!((D=this.data)==null?0:D.enableAnimation);this.maybePlayAnswerAnimations(I)}};
_.L.onYtCommentPollRevert=function(I,y){y&&(this.selectChoice(y.selectedChoiceIndex),this.set("data.totalVotes",y.totalVotes))};
_.L.onYtServiceRequestSent=function(I,y){if(y.actions)for(I=_.J(y.actions),y=I.next();!y.done;y=I.next())(y=_.u(y.value,bE))&&this.set("data.totalVotes",y.totalVotes)};
_.L.onYtServiceRequestCompleted=function(I){var y=this.get("detail.data.actionResults.0.feedback",I);I=this.get("detail.data.actionResults.0.status",I);if(y==="FEEDBACK_DESELECT"||y==="FEEDBACK_SELECT")this.isLoading=!1,I==="STATUS_FAILED"?_.lj(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.L.getAnimationPropsForChoiceIndex=function(I,y){return y[I]};
_.L.maybePlayAnswerAnimations=function(I){I=I===void 0?!1:I;var y;if((y=this.data)!=null&&y.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){y=_.J(this.correctnessAnimationRefs);for(var D=y.next();!D.done;D=y.next()){var F=void 0,R=void 0;(F=D.value)==null||(R=F.lottieEl)==null||R.stop()}if(!(this.selectedItemIndex<0)){y=0;I&&(y=this.isCorrect?37:25);var O,w;(O=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(w=O.lottieEl)==null||w.goToAndPlay(I?y:0,!0);if(!(this.isCorrect||
(O=this.data.choices.findIndex(function(r){return r.isCorrect}),O<0))){var v,P;
(P=(v=this.correctnessAnimationRefs[O])==null?void 0:v.lottieEl)==null||P.goToAndPlay(37,!0);var K;v=(K=this.fadeContainers)==null?void 0:K.item(O);!I&&v&&this.fadeIn(v)}}}};
_.L.thumbnailSrc=function(I){var y,D,F,R;return(I==null?0:(y=I.thumbnails)==null?0:(D=y[0])==null?0:D.url)?_.VA((F=I.thumbnails)==null?void 0:(R=F[0])==null?void 0:R.url):void 0};
_.L.a11yVotedText=function(I,y){var D,F,R=((D=this.data)==null?void 0:(F=D.correctVotedText)==null?void 0:F.simpleText)||"",O,w;D=((O=this.data)==null?void 0:(w=O.votedText)==null?void 0:w.simpleText)||"";if(!y)return"";var v,P;if((v=this.data)==null?0:(P=v.choices)==null?0:P[I].isCorrect)return R;var K,r;return((K=this.data)==null?0:(r=K.choices)==null?0:r[I].isSelected)?D:""};
_.L.getEndpoint=function(I,y){return y===I?this.data.choices[I].deselectServiceEndpoint||null:this.data.choices[I].selectServiceEndpoint||null};
_.L.sendVoteAction=function(I,y){if(I=this.getEndpoint(I,y))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(I)};
_.L.selectChoice=function(I){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++)this.set("data.choices."+y+".isSelected",I===this.selectedItemIndex?!1:y===I);this.selectedItemIndex=this.selectedItemIndex===I?-1:I};
_.L.maybeInitializeQuizLotties=function(I){var y=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=I.map(function(D){return{animationConfig:D.isCorrect?y.baseCorrectLottiePlayerAnimationConfig:y.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){y.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(D){return D.animationRef||{}})};
_.L.fadeIn=function(I){I.classList.add("fade-in");_.qK(_.w2,function(){I.classList.remove("fade-in")},900)};
_.mD.Object.defineProperties(h5.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.rY(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 I,y;return((I=this.data)==null?void 0:(y=I.choices)==null?void 0:y.some(function(D){return D.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null||!I.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?zaM:this.data.choices[this.selectedItemIndex].explanation||zaM}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null||!I.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
h5.prototype.onYtServiceRequestCompleted=h5.prototype.onYtServiceRequestCompleted;h5.prototype.onYtServiceRequestSent=h5.prototype.onYtServiceRequestSent;h5.prototype.onYtCommentPollRevert=h5.prototype.onYtCommentPollRevert;h5.prototype.dataChanged=h5.prototype.dataChanged;h5.prototype.onExplanationChanged=h5.prototype.onExplanationChanged;_.W([_.Q(_.rb),_.A("design:type",Object)],h5.prototype,"paperItemBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],h5.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.uC.YtTaskEmitterBehavior),_.A("design:type",Object)],h5.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],h5.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],h5.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],h5.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Object)],h5.prototype,"usesPanelLockup",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],h5.prototype,"isChannelOwner",void 0);_.W([_.M({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],h5.prototype,"isTotalVotesDisabled",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.A("design:type",Boolean)],h5.prototype,"isImageQuiz",void 0);_.W([_.M(),_.A("design:type",Object)],h5.prototype,"previousQuizInfo",void 0);_.W([_.M(),_.A("design:type",Object)],h5.prototype,"selectedItemIndex",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data","usesPanelLockup"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"shouldUseModernUi",null);
_.W([_.cp(".fade-container"),_.A("design:type",Object)],h5.prototype,"fadeContainers",void 0);_.W([_.M(),_.A("design:type",Array)],h5.prototype,"correctnessAnimationProps",void 0);_.W([_.Y("explanation","showCorrectAnswer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"showExplanation",null);_.W([_.Y("isChannelOwner","isAttempted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"showCorrectAnswer",null);
_.W([_.Y("isChannelOwner","isAttempted","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"isQuizAnsweringDisabled",null);_.W([_.Y("isQuizAnsweringDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],h5.prototype,"endpointStyle",null);_.W([_.Y("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"isAttempted",null);
_.W([_.Y("data","selectedItemIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],h5.prototype,"explanation",null);_.W([_.Y("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],h5.prototype,"isCorrect",null);_.W([_.a0("ytd-expander"),_.A("design:type",Object)],h5.prototype,"expander",void 0);_.W([_.a0("#quiz-votes"),_.A("design:type",Object)],h5.prototype,"quizVotes",void 0);
_.W([_.ke("explanation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h5.prototype,"onExplanationChanged",null);_.W([_.ke("data","isChannelOwner"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h5.prototype,"dataChanged",null);_.W([_.z4("yt-comment-quiz-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],h5.prototype,"onYtCommentPollRevert",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],h5.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],h5.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],h5);
_.a(h5,"ytd-backstage-quiz-renderer",function(){if(mqP!==void 0)return mqP;var I=document.createElement("template");_.G(I,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return mqP=I},{mode:1});var kWR;var xS=function(){return _.k.apply(this,arguments)||this};
_.E(xS,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xS.prototype,"data",void 0);_.W([_.yd({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],xS);
_.a(xS,"ytd-post-uploaded-video-renderer",function(){if(kWR!==void 0)return kWR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kWR=I},{mode:1});var dq_;var lz=function(){return _.k.apply(this,arguments)||this};
_.E(lz,_.k);lz.prototype.useFilledIcons=function(I){return I==="SPONSORSHIP_STAR"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lz.prototype,"data",void 0);_.W([_.yd({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],lz);
var aqP=_.Xf()(lz,"ytd-sponsors-only-badge-renderer",function(){if(dq_===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);dq_=I}I=dq_;return I},{allowedProps:["data"],
mode:1});var cju;var uz=function(){return _.k.apply(this,arguments)||this};
_.E(uz,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],uz.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uz.prototype,"data",void 0);_.W([_.yd({is:"ytd-child-video-renderer",disableElementRegistration:!0})],uz);
_.a(uz,"ytd-child-video-renderer",function(){if(cju!==void 0)return cju;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return cju=I},{mode:1});var WLc;var Ctg;var qi=function(){var I=_.k.apply(this,arguments)||this;I.size=0;I.fallbackImageSize={height:void 0,width:9999};I.webModernCollections=!1;return I};
_.E(qi,_.k);_.L=qi.prototype;_.L.computeBlurredImageSize=function(I){return I?{height:I*2,width:I*2}:this.fallbackImageSize};
_.L.computeImageSize=function(I){return I?{height:I,width:I}:this.fallbackImageSize};
_.L.computeObjectFit=function(I){return I?"FILL":"CONTAIN"};
_.L.computePreserve=function(I){return I?!0:!1};
_.L.setBackground=function(){var I,y;if((I=this.data)==null?0:(y=I.thumbnail)==null?0:y.sampledThumbnailColor)I=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+I.red+","+I.green+","+I.blue+",1)"};
qi.prototype.setBackground=qi.prototype.setBackground;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],qi.prototype,"watchFeedThumbnail",void 0);_.W([_.M(),_.A("design:type",Object)],qi.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],qi.prototype,"size",void 0);
_.W([_.M({computed:"computeBlurredImageSize(size)"}),_.A("design:type",Object)],qi.prototype,"blurredImageSize",void 0);_.W([_.M({computed:"computeImageSize(size)"}),_.A("design:type",Object)],qi.prototype,"imageSize",void 0);_.W([_.M({computed:"computePreserve(size)"}),_.A("design:type",String)],qi.prototype,"preserve",void 0);_.W([_.M({computed:"computeObjectFit(size)"}),_.A("design:type",String)],qi.prototype,"objectFit",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qi.prototype,"webModernCollections",void 0);_.W([_.ke("data.thumbnail.sampledThumbnailColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qi.prototype,"setBackground",null);_.W([_.yd({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],qi);
_.a(qi,"ytd-playlist-custom-thumbnail-renderer",function(){if(Ctg!==void 0)return Ctg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ctg=I},{mode:1});var BAf;var EG=function(){return _.k.apply(this,arguments)||this};
_.E(EG,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],EG.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],EG.prototype,"width",void 0);_.W([_.yd({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],EG);
_.a(EG,"ytd-playlist-video-thumbnail-renderer",function(){if(BAf!==void 0)return BAf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return BAf=I},{mode:1});var ikG;var Gi=function(){return _.k.apply(this,arguments)||this};
_.E(Gi,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gi.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],Gi.prototype,"width",void 0);_.W([_.yd({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Gi);
_.a(Gi,"ytd-show-custom-thumbnail-renderer",function(){if(ikG!==void 0)return ikG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ikG=I},{mode:1});var Ajn;var Xu=function(){return _.k.apply(this,arguments)||this};
_.E(Xu,_.k);Xu.prototype.useFilledIcons=function(I){return I==="MUSIC"||I==="COURSE"};
Xu.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=gY(this.overlayColor,"0.8");else if(this.overlayColor){var I=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+I.red+","+I.green+","+I.blue+",0.8)"}};
_.mD.Object.defineProperties(Xu.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)}}});
Xu.prototype.overlayColorChanged=Xu.prototype.overlayColorChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Xu.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Xu.prototype,"overlayColor",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],Xu.prototype,"overlayStyle",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],Xu.prototype,"overlayTextStyle",null);_.W([_.ke("overlayColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xu.prototype,"overlayColorChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Xu);
_.a(Xu,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Ajn!==void 0)return Ajn;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Ajn=I},{mode:1});var $qf;var QR=function(){var I=_.k.apply(this,arguments)||this;I.active=!1;return I};
_.E(QR,_.k);QR.prototype.computeIsSpinnerHidden=function(I){return(I==null?void 0:I.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
QR.prototype.computeOverlayIcon=function(I){return(I==null?void 0:I.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(I==null?void 0:I.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QR.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],QR.prototype,"active",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],QR);
_.a(QR,"ytd-thumbnail-overlay-downloading-renderer",function(){if($qf!==void 0)return $qf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $qf=I},{mode:1});var bkM;var YS=function(){return _.k.apply(this,arguments)||this};
_.E(YS,_.k);_.mD.Object.defineProperties(YS.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],YS.prototype,"data",void 0);_.W([_.Y("data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],YS.prototype,"text",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],YS);
_.a(YS,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(bkM!==void 0)return bkM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return bkM=I},{mode:1});var Hke,eaf=function(){if(Hke!==void 0)return Hke;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Hke=I};var fc=function(){return _.k.apply(this,arguments)||this};
_.E(fc,_.k);_.mD.Object.defineProperties(fc,{template:{configurable:!0,enumerable:!0,get:function(){return eaf()}}});
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],fc.prototype,"animateEqualizer",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],fc);_.Xf()(fc,"ytd-thumbnail-overlay-equalizer",function(){return eaf()},{allowedProps:["animateEqualizer"],
mode:1});var TAR;var nc=function(){var I=_.k.apply(this,arguments)||this;I.nowPlayingBadge=_.l("web_now_playing_badge");I.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return I};
_.E(nc,_.k);nc.prototype.activeChanged=function(){var I=this;_.l("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.YC(this,function(){_.lj(I.hostElement,"yt-playlist-lockup-now-playing-active",I)})};
nc.prototype.onMiniplayerPlayStateChanged=function(I){var y,D=(y=_.u(_.bW().currentEndpoint,_.t9))==null?void 0:y.videoId;this.isVideoPlaying=I&&(_.l("web_limit_now_playing_animation_killswitch")||this.videoId===D)};
nc.prototype.activeChanged=nc.prototype.activeChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],nc.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nc.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],nc.prototype,"isVideoPlaying",void 0);_.W([_.M(),_.A("design:type",String)],nc.prototype,"videoId",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],nc.prototype,"equalizerOnly",void 0);_.W([_.M(),_.A("design:type",Boolean)],nc.prototype,"isActive",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],nc.prototype,"nowPlayingBadge",void 0);_.W([_.ke("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nc.prototype,"activeChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],nc);
_.a(nc,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(TAR!==void 0)return TAR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return TAR=I},{mode:1});var sic;var pc=function(){return _.k.apply(this,arguments)||this};
_.E(pc,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pc.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],pc);
_.a(pc,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(sic!==void 0)return sic;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return sic=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var VPf;var mn=function(){return _.k.apply(this,arguments)||this};
_.E(mn,_.k);mn.prototype.onDurationChanged=function(){var I,y;_.XB(this.hostElement).querySelector("#progress").style.width=((y=(I=this.data)==null?void 0:I.percentDurationWatched)!=null?y:0)+"%"};
mn.prototype.onDurationChanged=mn.prototype.onDurationChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],mn.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mn.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],mn.prototype,"isLive",void 0);_.W([_.ke("data.percentDurationWatched"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mn.prototype,"onDurationChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],mn);
_.a(mn,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(VPf!==void 0)return VPf;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return VPf=I},{mode:1});var Zka;var Mi=function(){var I=_.k.apply(this,arguments)||this;I.bottomPanel=!1;I.richGridOverlay=!1;I.watchFeedOverlay=!1;I.isCompact=!1;return I};
_.E(Mi,_.k);Mi.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.mD.Object.defineProperties(Mi.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.icon)==null?void 0:y.iconType)==="PLAY_ALL"&&_.l("kevlar_system_icons")}}});
Mi.prototype.widthChanged=Mi.prototype.widthChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Mi.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],Mi.prototype,"width",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Mi.prototype,"bottomPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Mi.prototype,"richGridOverlay",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Mi.prototype,"watchFeedOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Mi.prototype,"isCompact",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Mi.prototype,"isIconFilled",null);_.W([_.ke("width","watchFeedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mi.prototype,"widthChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Mi);
_.a(Mi,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Zka!==void 0)return Zka;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Zka=I},{mode:1});var g9M;var IKP=["CLIP","SHORTS"],zi=function(){var I=_.k.apply(this,arguments)||this;I.animated=_.l("animated_live_badge_icon");I.hasIcon=!1;I.updateTimerIntervalId=0;I.timeSinceLive=0;return I};
_.E(zi,_.k);_.L=zi.prototype;_.L.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.L.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.L.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.L.hasIconOrText=function(){var I,y;return!!(((I=this.data)==null?0:I.icon)||((y=this.data)==null?0:y.text))};
_.L.initializeLiveBadgeTimer=function(){var I=this,y,D=(y=this.liveBadgeData)==null?void 0:y.startTimestampSec;if(D&&this.canShowLiveBadgeTimer()){var F;y=Number((F=this.liveBadgeData)==null?void 0:F.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(D);this.updateTimerIntervalId=_.CR(function(){I.canShowLiveBadgeTimer()?I.timeSinceLive++:(I.timeSinceLive=0,window.clearInterval(I.updateTimerIntervalId))},y)}else this.timeSinceLive=0};
_.L.canShowLiveBadgeTimer=function(){var I=Date.now(),y,D;return I<(Number((y=this.liveBadgeData)==null?void 0:y.endTimestampSec)-1)*1E3&&I>Number((D=this.liveBadgeData)==null?void 0:D.startTimestampSec)*1E3};
_.mD.Object.defineProperties(zi.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.wk5(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.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 IKP.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
zi.prototype.initializeLiveBadgeTimer=zi.prototype.initializeLiveBadgeTimer;zi.prototype.dataChanged=zi.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],zi.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zi.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],zi.prototype,"icon",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],zi.prototype,"animated",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.A("design:type",Boolean)],zi.prototype,"hideTimeStatus",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zi.prototype,"hasIcon",void 0);_.W([_.M(),_.A("design:type",Object)],zi.prototype,"timeSinceLive",void 0);_.W([_.Y("data","timeSinceLive"),_.A("design:type",Object),_.A("design:paramtypes",[])],zi.prototype,"badgeShapeData",null);
_.W([_.Y("data","overlayType"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zi.prototype,"hideBadgeShape",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zi.prototype,"dataChanged",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],zi.prototype,"overlayStyle",null);
_.W([_.Y("data.liveBadgeData"),_.A("design:type",Object),_.A("design:paramtypes",[])],zi.prototype,"liveBadgeData",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.type"),_.A("design:type",Object),_.A("design:paramtypes",[])],zi.prototype,"overlayType",null);_.W([_.Y("overlayType","overlayStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zi.prototype,"useFilledIcon",null);
_.W([_.Bp("liveBadgeData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zi.prototype,"initializeLiveBadgeTimer",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],zi);
_.a(zi,"ytd-thumbnail-overlay-time-status-renderer",function(){if(g9M!==void 0)return g9M;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return g9M=I},{mode:_.Qd("kevlar_poly_si_batch_j035")?1:2});var yJM;var kS=function(){return _.k.apply(this,arguments)||this};
_.E(kS,_.k);kS.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"}}}}};
kS.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(I){if(this.hasPlaybackProgressBar)return{percentDurationWatched:I.percentDurationWatched}};
kS.prototype.computeHasPlaybackProgressBar=function(I){return!!I.percentDurationWatched&&I.percentDurationWatched>0};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kS.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.A("design:type",Boolean)],kS.prototype,"hasPlaybackProgressBar",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],kS);
_.a(kS,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(yJM!==void 0)return yJM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yJM=I},{mode:1});var D$c;var FGu=_.d(function(I){var y=I.data;var D=I.children;var F=function(){return!!y().doubleStack},R=function(){return!!y().includeStackHeight};
return _.t("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!y().experimentEnabled}},_.t(_.U,{cond:y,
then:function(){var O={};return _.t(_.ni,null,_.t(_.U,{cond:R,then:function(){var w={};return _.t("div",{class:_.XH("ytCollectionsStackSpacer",(w.ytCollectionsStackSpacerDoubleStack=F,w))})}}),_.t("div",{class:_.XH((O.ytCollectionsStackRelativeStack=R,O))},_.t(_.U,{cond:F,
then:function(){var w={};return _.t("div",{class:_.XH("ytCollectionsStackCollectionStack2",function(){return y().customClassName2ndStack},(w.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return y().enableResponsiveMode},w)),
style:_.p4({"background-color":function(){return SnB(y())}})})}}),_.t("div",{class:_.XH("ytCollectionsStackCollectionStack1",function(){return y().customClassName1stStack},function(){return v9A(y().thumbnailSize?y().thumbnailSize:"medium")}),
style:_.p4({"background-color":function(){return SnB(y())}})}),D))}}))},"Fa");_.NK(FGu,"yt-collections-stack",{props:{data:_.om}});var dK=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};I.webModernCollections=!1;I.isSearch=!1;I.isDoubleStack=!1;I.thumbnailSize="medium";return I};
_.E(dK,_.k);_.L=dK.prototype;
_.L.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]]"}}}}}};
_.L.getThumbnailDetails=function(I){if(I!=null&&I.thumbnailRenderer){var y=I.thumbnailRenderer,D;if((D=y.playlistVideoThumbnailRenderer)==null?0:D.thumbnail)return y.playlistVideoThumbnailRenderer.thumbnail;var F;if((F=y.playlistCustomThumbnailRenderer)==null?0:F.thumbnail)return y.playlistCustomThumbnailRenderer.thumbnail;I=I.thumbnailRenderer;var R;if((R=I.showCustomThumbnailRenderer)==null?0:R.thumbnail)return I.showCustomThumbnailRenderer.thumbnail}};
_.L.computeOverlayColor=function(I){var y,D;if((y=this.getThumbnailDetails(I))==null?0:(D=y.darkColorPalette)==null?0:D.section2Color)return this.getThumbnailDetails(I).darkColorPalette.section2Color;var F;return(F=this.getThumbnailDetails(I))==null?void 0:F.sampledThumbnailColor};
_.L.computeWebModernCollections=function(I){if(I==null||!I.thumbnailOverlays)return!1;I=_.J(I.thumbnailOverlays);for(var y=I.next();!y.done;y=I.next()){var D=void 0;if((D=y.value)==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.L.computeNavigationEndpoint=function(I){return WNW(I==null?void 0:I.navigationEndpoint)};
_.mD.Object.defineProperties(dK.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:I==null?void 0:I.sampledThumbnailColor,vibrantColorPalette:I==null?void 0:I.vibrantColorPalette,darkColorPalette:I==null?void 0:I.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],dK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(tLu),_.A("design:type",Object)],dK.prototype,"ytdThumbnailBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],dK.prototype,"componentBehavior",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],dK.prototype,"watchFeedThumbnail",void 0);_.W([_.M(),_.A("design:type",Number)],dK.prototype,"customThumbnailSize",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],dK.prototype,"hideAria",void 0);_.W([_.M(),_.A("design:type",Object)],dK.prototype,"data",void 0);_.W([_.M({computed:"computeOverlayColor(data)"}),_.A("design:type",Object)],dK.prototype,"overlayColor",void 0);
_.W([_.M({computed:"computeWebModernCollections(data)"}),_.A("design:type",Object)],dK.prototype,"webModernCollections",void 0);_.W([_.M({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],dK.prototype,"computedNavigationEndpoint",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],dK.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],dK.prototype,"isDoubleStack",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],dK.prototype,"thumbnailSize",void 0);_.W([_.Y("data","isDoubleStack","thumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],dK.prototype,"collectionStack",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],dK);
_.a(dK,"ytd-playlist-thumbnail",function(){if(D$c!==void 0)return D$c;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return D$c=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var Rif;_.NK(_.d(function(I){return _.t("yt-text-view-model",{class:_.XH("ytTextViewModelHost")},_.t(_.jr,{text:function(){return I.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.om}});var a_=function(){var I=_.k.apply(this,arguments)||this;I.noEndpoints=!1;I.amsterdamPostMvp=_.l("web_amsterdam_post_mvp_playlists");I.badges=[];I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.E(a_,_.k);_.L=a_.prototype;_.L.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.L.getMetadata=function(I){if(!I)return[];var y=[],D=I.shortViewCountText||I.viewCountText;D&&y.push(_.rY(D));I.publishedTimeText&&y.push(_.rY(I.publishedTimeText));I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&y.push(_.AZ(_.rY(I.upcomingEventData.upcomingEventText),Number(I.upcomingEventData.startTime)));return y};
_.L.observeDataForBylineSeparator=function(){this.data&&_.Ye(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.L.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Vp(this.metadataColor)};
_.L.getSimpleString=function(I){return _.rY(I)};
_.L.isBylineHidden=function(I){return this.noByline||!((I==null?0:I.longBylineText)||(I==null?0:I.shortBylineText))};
_.L.isMetadataHidden=function(I){var y;return((y=this.getMetadata(I))==null?void 0:y.length)===0};
_.L.isBylineMetadataSeparatorHidden=function(I){return this.isMetadataHidden(I)||!this.shouldShowVideoInfo};
_.L.isLongByline=function(I,y){return y&&!(I==null||!I.longBylineText)};
_.mD.Object.defineProperties(a_.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var I;return this.amsterdamPostMvp&&!((I=this.data)==null||!I.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
a_.prototype.metadataColorChanged=a_.prototype.metadataColorChanged;a_.prototype.observeDataForBylineSeparator=a_.prototype.observeDataForBylineSeparator;_.W([_.Q(_.Jl),_.A("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],a_.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],a_.prototype,"noEndpoints",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"isSlimShort",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"radioMeta",void 0);_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],a_.prototype,"isGridViewEnabled",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"richMeta",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],a_.prototype,"amsterdamPostMvp",void 0);
_.W([_.M(),_.A("design:type",Boolean)],a_.prototype,"noByline",void 0);_.W([_.M({computed:"isLongByline(data, radioMeta)"}),_.A("design:type",Boolean)],a_.prototype,"longByline",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"truncateMetadataLine",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"miniMode",void 0);_.W([_.M(),_.A("design:type",Number)],a_.prototype,"metadataColor",void 0);
_.W([_.M(),_.A("design:type",Array)],a_.prototype,"badges",void 0);_.W([_.M({selector:_.FM,selectorArgs:["data.videoId"]}),_.A("design:type",String)],a_.prototype,"transferState",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"isDownloading",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],a_.prototype,"typographyBump",void 0);_.W([_.a0("#metadata-line"),_.A("design:type",HTMLElement)],a_.prototype,"metadataLine",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],a_.prototype,"observeDataForBylineSeparator",null);_.W([_.ke("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],a_.prototype,"metadataColorChanged",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],a_.prototype,"shouldShowVideoInfo",null);
_.W([_.Y("badges"),_.A("design:type",String),_.A("design:paramtypes",[])],a_.prototype,"inlineBadgeClass",null);_.W([_.Y("longByline"),_.A("design:type",String),_.A("design:paramtypes",[])],a_.prototype,"longBylineClass",null);_.W([_.Y("data","longByline"),_.A("design:type",Object),_.A("design:paramtypes",[])],a_.prototype,"bylineText",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],a_.prototype,"hasAttributedBylineText",null);
_.W([_.Y("isGridViewEnabled","data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],a_.prototype,"watchFeedBigThumbs",null);_.W([_.yd({is:"ytd-video-meta-block",disableElementRegistration:!0})],a_);
_.a(a_,"ytd-video-meta-block",function(){if(Rif!==void 0)return Rif;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Rif=I},{mode:_.Qd("kevlar_poly_si_batch_j080")?1:2});_.bO("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var cQ=function(){var I=_.k.apply(this,arguments)||this;I.displayItemCount=2;I.isBackstagePlaylist=!1;I.isPostCompactPlaylist=!1;I.shouldShowChannelThumbnail=!1;return I};
_.E(cQ,_.k);_.L=cQ.prototype;_.L.computeFirstVideos=function(I,y){return I===void 0||y===void 0?[]:I.slice(0,y)};
_.L.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var I=this.data.thumbnailRenderer;I.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",I.playlistVideoThumbnailRenderer.thumbnail);I.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",I.playlistCustomThumbnailRenderer.thumbnail)}};
_.L.computeThumbnailHeight=function(I,y,D,F,R){return F?R==="BIG"?280:R==="MASSIVE"?337:234:D?240:y?72:I?118:138};
_.L.computeThumbnailWidth=function(I,y,D,F,R){return F?R==="MEDIUM"?450:R==="BIG"?500:R==="MASSIVE"?600:420:D?360:y?128:I?210:246};
_.L.computeUseBiggerThumbs=function(I){return I&&_.l("enable_desktop_search_bigger_thumbs")};
_.L.computeShouldShowChannelThumbnail=function(I,y){return I&&!(y==null||!y.channelThumbnail)};
_.mD.Object.defineProperties(cQ.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
cQ.prototype.dataChanged=cQ.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],cQ.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],cQ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],cQ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],cQ.prototype,"displayItemCount",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cQ.prototype,"isBackstagePlaylist",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cQ.prototype,"isPostCompactPlaylist",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],cQ.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.A("design:type",Boolean)],cQ.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],cQ.prototype,"biggerThumbsStyle",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],cQ.prototype,"isDownloads",void 0);_.W([_.M({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.A("design:type",Object)],cQ.prototype,"shouldShowChannelThumbnail",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cQ.prototype,"dataChanged",null);
_.W([_.Y("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],cQ.prototype,"stackThumbnailSize",null);_.W([_.yd({is:"ytd-playlist-renderer",disableElementRegistration:!0})],cQ);
_.a(cQ,"ytd-playlist-renderer",function(){if(WLc===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);WLc=I}I=WLc;return I},{mode:1});var O7R;var LGR;var WQ=function(){var I=_.k.apply(this,arguments)||this;I.startX=0;return I};
_.E(WQ,_.k);WQ.prototype.onEndpointMouseDown=function(I){this.startX=I.clientX};
WQ.prototype.onEndpointClick=function(I){this.startX!==I.clientX&&(I.preventDefault(),I.stopPropagation())};
WQ.prototype.computeObjectFit=function(I){return I==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||I==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||I==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
WQ.prototype.computeCardStyle=function(I){return I?I.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.mD.Object.defineProperties(WQ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.searchRefinementCardRendererStyle)==null?void 0:y.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],WQ.prototype,"data",void 0);_.W([_.M({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",Number)],WQ.prototype,"objectFit",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",String)],WQ.prototype,"cardStyle",void 0);
_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],WQ.prototype,"roundContainer",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],WQ.prototype,"isAlbumCard",null);_.W([_.Y("data","isAlbumCard"),_.A("design:type",Object),_.A("design:paramtypes",[])],WQ.prototype,"collectionStack",null);_.W([_.yd({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],WQ);
_.a(WQ,"ytd-search-refinement-card-renderer",function(){if(LGR!==void 0)return LGR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return LGR=I},{mode:1});var JJR;var Cc=function(){var I=_.k.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.E(Cc,_.k);_.W([_.M(),_.A("design:type",Object)],Cc.prototype,"data",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Cc.prototype,"componentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Cc.prototype,"ytdReduxBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Cc.prototype,"isRichGrid",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],Cc.prototype,"miniMode",void 0);
_.W([_.yd({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Cc);
_.a(Cc,"ytd-game-details-renderer",function(){if(JJR!==void 0)return JJR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return JJR=I},{mode:1});var wIR;var v2e;var BQ=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return I};
_.E(BQ,_.k);_.L=BQ.prototype;_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.currentStateData=function(I){var y=I||this.data;return y&&y.states&&y.currentStateId!=null?y.states.find(function(D){return D.stateId===y.currentStateId})||null:null};
_.L.currentStateRendererData=function(I){return(I=this.currentStateData(I))&&I.state&&I.state.buttonRenderer?I.state.buttonRenderer:null};
_.L.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())};
_.L.computeButtonIcon=function(I){I=this.currentStateRendererData(I);var y;return(I==null?0:(y=I.icon)==null?0:y.iconType)?I.icon.iconType.toLowerCase():null};
_.L.computeAccessibility=function(I){return(I=this.currentStateRendererData(I))&&I.accessibilityData?I.accessibilityData.accessibilityData||null:null};
_.L.computeButtonClass=function(I){var y=this.currentStateRendererData(I);if(!y)return"";I="";var D=y.style;D&&(I+=D.toLowerCase().replace(/_/g,"-")+" ");(y=y.size)&&(I+=y.toLowerCase().replace(/_/g,"-")+" ");return I.trim()};
_.L.computeServiceEndpoint=function(I){if(!I)return null;var y=I&&I.serviceEndpoint,D=this.get("command.commandMetadata.webCommandMetadata.sendPost",I);return y?y:D&&I.command?I.command:null};
_.L.computeBellMenuItemParams=function(I){var y;I=(y=_.u(I==null?void 0:I.command,_.Q_))==null?void 0:y.commands;if(!I||I.length===0)return null;y=_.u(I[0],_.Hc);var D,F;return(y==null?0:(D=y.popup)==null?0:(F=D.menuPopupRenderer)==null?0:F.items)?y.popup.menuPopupRenderer.items.map(function(R){return R.menuServiceItemRenderer.trackingParams}):null};
_.L.handleBellMenuOpenSelectedAction=function(I){var y=I.trackingParams,D=this.computeBellMenuItemParams(this.data);this.data&&y&&D&&D.includes(y)&&this.ytRenderButtonBehavior._setButtonIcon(I.icon.iconType.toLowerCase())};
_.L.onYtServiceRequestCompleted=function(I,y){(I=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))&&this.set("data",I)};
_.L.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.L.resetState=function(){this.set("data.currentStateId",3)};
_.L.onYtButtonTapHandler=function(){if(this.data){var I=this.currentStateRendererData(this.data);I&&this.ytRendererBehavior.logExplicitClick(I)}};
BQ.prototype.onYtServiceRequestError=BQ.prototype.onYtServiceRequestError;BQ.prototype.onYtServiceRequestCompleted=BQ.prototype.onYtServiceRequestCompleted;BQ.prototype.stateChanged=BQ.prototype.stateChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],BQ.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(T1.YtRenderButtonBehavior),_.A("design:type",Object)],BQ.prototype,"ytRenderButtonBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BQ.prototype,"data",void 0);_.W([_.Bp("data","data.currentStateId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BQ.prototype,"stateChanged",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],BQ.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],BQ.prototype,"onYtServiceRequestError",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],BQ);
_.a(BQ,"ytd-subscription-notification-toggle-button-renderer",function(){if(v2e!==void 0)return v2e;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return v2e=I},{mode:1});var SSW;var iz=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};I.tapHandler=function(){if(I.data){var y=I.currentStateRendererData();y&&I.ytRendererBehavior.logExplicitClick(y)}};
return I};
_.E(iz,_.k);_.L=iz.prototype;_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.currentStateData=function(){var I=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(y){return y.stateId===I.data.currentStateId})||null:null};
_.L.currentStateRendererData=function(){var I=this.currentStateData();return I&&I.state&&I.state.buttonRenderer?I.state.buttonRenderer:null};
_.L.computeAccessibilityLabel=function(){var I,y,D;return(I=this.currentStateRendererData())==null?void 0:(y=I.accessibilityData)==null?void 0:(D=y.accessibilityData)==null?void 0:D.label};
_.L.computeBellMenuItemParams=function(){var I,y,D=(y=_.u((I=this.data)==null?void 0:I.command,_.Q_))==null?void 0:y.commands;if(!D||D.length===0)return null;I=_.u(D[0],_.Hc);var F,R;return(I==null?0:(F=I.popup)==null?0:(R=F.menuPopupRenderer)==null?0:R.items)?I.popup.menuPopupRenderer.items.map(function(O){return O.menuServiceItemRenderer.trackingParams}):null};
_.L.handleBellMenuOpenSelectedAction=function(I){var y=I.trackingParams,D=this.computeBellMenuItemParams();if(this.data&&y&&D&&D.includes(y)&&(I==null||!I.isDisabled)){var F;((F=_.u(I.serviceEndpoint,_.fE))==null?void 0:F.signal)!=="CLIENT_SIGNAL"&&(this.icon=I.icon.iconType)}};
_.L.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.L.onYtServiceRequestCompleted=function(I,y){if(I=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",y))this.icon=void 0,this.set("data",I)};
_.L.onYtServiceRequestError=function(){this.icon=void 0};
_.mD.Object.defineProperties(iz.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=this.data,y=this.textLabel,D=this.hostElement,F=this.computeAccessibilityLabel(),R=this.tapHandler,O=this.isOverlay?"overlay":"mono",w=(I==null?0:I.disableButton)?"disabled":"active";y=y?_.Vd(y):void 0;return{style:O,type:"tonal",state:w,size:"M",focused:!1,formattedButtonText:y,iconPosition:"leading-trailing",onTap:PtJ(I,R,D),accessibilityLabel:F}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var I=this.currentStateRendererData(),y,D,F=(D=this.icon)!=null?D:I==null?void 0:(y=I.icon)==null?void 0:y.iconType;if(F)return _.pQ(F)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.secondaryIcon)==null?void 0:y.iconType;if(D)return _.pQ(D)}}});
iz.prototype.onYtServiceRequestError=iz.prototype.onYtServiceRequestError;iz.prototype.onYtServiceRequestCompleted=iz.prototype.onYtServiceRequestCompleted;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],iz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],iz.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],iz.prototype,"textLabel",void 0);
_.W([_.M(),_.A("design:type",String)],iz.prototype,"icon",void 0);_.W([_.M(),_.A("design:type",Boolean)],iz.prototype,"isOverlay",void 0);_.W([_.Y("data.*","textLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],iz.prototype,"computedButtonShape",null);_.W([_.Y("data.*","icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],iz.prototype,"computedIcon",null);_.W([_.Y("computedIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],iz.prototype,"computedAnimateIcon",null);
_.W([_.Y("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],iz.prototype,"computedSecondaryIcon",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],iz.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],iz.prototype,"onYtServiceRequestError",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],iz);
_.a(iz,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(SSW!==void 0)return SSW;var I=document.createElement("template");_.G(I,'\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 SSW=I},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var tNg;_.NK(tPf,"yt-animated-action",{props:{backgroundLottieRef:_.om,foregroundLottieRef:_.om,wrapperClass:_.om,disableAnimation:_.om},unsafeExternallySettableAttributes:new Set(["key"])});var A5=function(){var I=_.k.apply(this,arguments)||this;I.animatedActionEnabled=_.l("web_animated_actions");I.foregroundLottieRef={};I.backgroundLottieRef={};I.forceIconOnly=!1;I.showTextWhileAnimating=!1;I.keyboardFocused=!1;I.isAnimating=!1;I.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return I};
_.E(A5,_.k);_.L=A5.prototype;_.L.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.L.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]]"}}}}}};
_.L.attached=function(){this.keyboardFocused=!1};
_.L.onYtServiceRequestSent=function(I,y){(this.get("endpoint.subscribeEndpoint",y)||this.get("endpoint.unsubscribeEndpoint",y))&&this.updateSubscriptionState(!this.subscribed)};
_.L.onYtServiceRequestCompleted=function(I,y){(I=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",y.data))&&this.bellButton&&(this.bellButton.data=I)};
_.L.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.pg(this.hostElement)};
_.L.onPlayerSubscribe=function(I){this.isCompactRed()||I!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.L.onPlayerUnsubscribe=function(I){this.isCompactRed()||I!==this.data.channelId||this.updateSubscriptionState(!1)};
_.L.handleUpdateSubscribeButtonAction=function(I){I=_.u(I,IUO);var y;I&&I.channelId===((y=this.data)==null?void 0:y.channelId)&&this.updateSubscriptionState(!!I.subscribed)};
_.L.computeButtonStyle=function(I){return this.get("style.styleType",I)||null};
_.L.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.L.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.L.updateSubscriptionState=function(I){if(I!==this.subscribed){this.set("data.subscribed",I);var y,D=(y=this.data)==null?void 0:y.subscribedEntityKey;D&&this.ytdReduxBehavior.dispatch(_.WS("subscriptionStateEntity",D,{key:D,subscribed:I}));this.isCompactRed()||_.lj(this.hostElement,"yt-subscription-changed",I);I||(_.uj(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!I),I&&this.hasBellButton&&this.startAnimation())}};
_.L.startAnimation=function(){var I=this;if(!this.isAnimating){var y=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var D;(D=this.backgroundLottieRef.lottieEl)==null||D.goToAndPlay(0);var F;(F=this.foregroundLottieRef.lottieEl)==null||F.goToAndPlay(0);_.w2.addJob(function(){I.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.w2.addJob(function(){I.updateContainerToFitContent(!!I.subscribed,!0)},2,1500);
_.w2.addJob(function(){I.isAnimating=!1},2,y)}};
_.L.maybeAnimateBellIcon=function(){var I=_.QU(this.hostElement).querySelector("yt-animated-icon");if(I){var y;(y=I.animationRef.lottieEl)==null||y.goToAndPlay(0)}};
_.L.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.L.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.L.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var I;this.unsubscribedWidth=(I=this.subscribeButtonShape)==null?void 0:I.getBoundingClientRect().width}var y;this.subscribedWidth=(y=this.bellButton)==null?void 0:y.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.L.updateContainerToFitContent=function(I,y){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(I?(I=this.subscribedWidth,y=this.isAnimating&&!y,this.subscribedIconOnlyWidth===void 0||y||(I=this.subscribedIconOnlyWidth),this.hostElement.style.width=I+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.L.clearContainerSize=function(){this.hostElement.style.width=""};
_.L.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.L.maybeSetSubscribedButtonIconOnlyWidth=function(){var I=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 y;I.subscribedIconOnlyWidth=(y=I.bellButton)==null?void 0:y.getBoundingClientRect().width;requestAnimationFrame(function(){if(I.bellButton){var D;I.bellButton.textLabel=
(D=I.data)==null?void 0:D.subscribedButtonText}})})))};
_.mD.Object.defineProperties(A5.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 I;return(I=this.data)==null?void 0:I.subscribedButtonText}var y;return this.forceIconOnly?void 0:(y=this.data)==null?void 0:y.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var I,y,D=((I=this.data)==null?void 0:(y=I.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"subscribe",timings:D,enabled:D.length>0&&!this.subscribed,experimentEnabled:D.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!this.subscribed&&((I=this.data)==null?void 0:I.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 I={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var y=I.renderer;var D=I.element;var F=I.subscribed;var R=I.commandController;var O=I.isOverlay;I=I.stopPropagation;var w=jiW(y,F);O&&(w.style="overlay");O=Object;var v=O.assign,P;a:switch((P=y.style)==null?void 0:P.styleType){case "COMPACT_GRAY":case "COMPACT_RED":P={size:"S"};break a;default:P={size:"M"}}var K=rjB(y,
F);var r=(r=F?y.subscribedButtonText:y.unsubscribedButtonText)?_.Vd(r):void 0;return v.call(O,{},w,P,{focused:!1,toggled:F,accessibilityLabel:K,formattedButtonText:r,onTap:UqL(y,F,D,R,I)})}}}});
A5.prototype.onMouseDown=A5.prototype.onMouseDown;A5.prototype.onDataChanged=A5.prototype.onDataChanged;A5.prototype.observedSubscribed=A5.prototype.observedSubscribed;A5.prototype.onYtServiceRequestCompleted=A5.prototype.onYtServiceRequestCompleted;A5.prototype.onYtServiceRequestSent=A5.prototype.onYtServiceRequestSent;A5.prototype.maybeUpdateBellButtonText=A5.prototype.maybeUpdateBellButtonText;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],A5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],A5.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],A5.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.subscribedEntityKey"],selector:kXH}),_.A("design:type",Object)],A5.prototype,"subscriptionStateEntity",void 0);_.W([_.M({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.A("design:type",Boolean)],A5.prototype,"subscribed",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],A5.prototype,"branded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],A5.prototype,"animatedActionEnabled",void 0);
_.W([_.M(),_.A("design:type",Object)],A5.prototype,"foregroundLottieRef",void 0);_.W([_.M(),_.A("design:type",Object)],A5.prototype,"backgroundLottieRef",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],A5.prototype,"overlayButton",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.A("design:type",Object)],A5.prototype,"buttonStyle",void 0);_.W([_.M(),_.A("design:type",Object)],A5.prototype,"forceIconOnly",void 0);
_.W([_.M(),_.A("design:type",Object)],A5.prototype,"showTextWhileAnimating",void 0);_.W([_.M({value:function(){return!!_.nR().resolve(_.fR(_.Q3))&&_.l("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],A5.prototype,"useKeyboardFocused",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],A5.prototype,"keyboardFocused",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],A5.prototype,"isAnimating",void 0);_.W([_.Y("data.notificationPreferenceButton.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"hasBellButton",null);
_.W([_.ke("subscribedButtonText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A5.prototype,"maybeUpdateBellButtonText",null);_.W([_.Y("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"subscribedButtonText",null);_.W([_.Y("data.timedAnimationData.animationTiming","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"smartimationSettings",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"subscribeButtonHidden",null);_.W([_.M({reflectToAttribute:!0}),_.Y("subscribed","hasBellButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"subscribeButtonInvisible",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"unsubscribeButtonHidden",null);_.W([_.a0("ytd-subscription-notification-toggle-button-renderer-next"),_.A("design:type",Object)],A5.prototype,"bellButton",void 0);_.W([_.a0("#subscribe-button-shape"),_.A("design:type",HTMLElement)],A5.prototype,"subscribeButtonShape",void 0);
_.W([_.Y("overlayButton","subscribed","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],A5.prototype,"buttonShape",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],A5.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],A5.prototype,"onYtServiceRequestCompleted",null);
_.W([_.ke("subscribed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A5.prototype,"observedSubscribed",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A5.prototype,"onDataChanged",null);_.W([_.z4("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],A5.prototype,"onMouseDown",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],A5);
_.a(A5,"ytd-subscribe-button-renderer",function(){if(tNg!==void 0)return tNg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return tNg=I},{mode:1});var $S=function(){var I=_.k.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.E($S,_.k);$S.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$S.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],$S.prototype,"isRichGrid",void 0);_.W([_.yd({is:"ytd-game-card-renderer",disableElementRegistration:!0})],$S);
_.a($S,"ytd-game-card-renderer",function(){if(wIR!==void 0)return wIR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wIR=I},{mode:1});var bz={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.l("defer_menus")&&!CNu?0:void 0,waitForSignal:"eocs"};var Pvn;var KG_;var HQ=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return I};
_.E(HQ,_.k);_.L=HQ.prototype;_.L.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.L.onSeriesReminderStateEntityChange=function(){var I,y,D;((I=this.eventReminderStateEntity)==null?0:I.key)&&((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((D=this.eventReminderStateEntity)==null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.WS("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.L.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.L.onYtServiceRequestError=function(){var I;this.updateReminderStateEntitiesFromButtonState((I=this.data)==null?void 0:I.currentState)};
_.L.handleUpdateUpcomingEventReminderButtonStateCommand=function(I){if(I=_.u(I,ylM)){var y,D=(y=this.data)==null?void 0:y.targetId;D&&I.targetId===D&&_.wy(this.updateReminderStateEntitiesFromButtonState.bind(this,I.state))}};
_.L.getButtonStateFromReminderState=function(){var I;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var y;if(((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var D,F;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((F=this.eventReminderStateEntity)==
null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var R;return(R=this.data)==null?void 0:R.currentState};
_.L.updateReminderStateEntitiesFromButtonState=function(I){if(I){switch(I){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":I="UPCOMING_EVENT_REMINDER_STATE_NONE";var y="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":I="UPCOMING_EVENT_REMINDER_STATE_SINGLE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":I="UPCOMING_EVENT_REMINDER_STATE_NONE";y="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var D;
((D=this.eventReminderStateEntity)==null?0:D.key)&&this.ytdReduxBehavior.dispatch(_.WS("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:I})));var F;((F=this.seriesReminderStateEntity)==null?0:F.key)&&this.ytdReduxBehavior.dispatch(_.WS("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:y})))}};
_.mD.Object.defineProperties(HQ.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var I=this.getButtonStateFromReminderState(),y,D;if(I&&((y=this.data)==null?0:(D=y.states)==null?0:D.length))for(y=_.J(this.data.states),D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;if(((F=_.u(D,DGM))==null?void 0:F.state)===I)return _.u(D,DGM)}}}});
HQ.prototype.onYtServiceRequestError=HQ.prototype.onYtServiceRequestError;HQ.prototype.onYtServiceRequestCompleted=HQ.prototype.onYtServiceRequestCompleted;HQ.prototype.onSeriesReminderStateEntityChange=HQ.prototype.onSeriesReminderStateEntityChange;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],HQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HQ.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:aet}),_.A("design:type",Object)],HQ.prototype,"eventReminderStateEntity",void 0);
_.W([_.M({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(I,y){return _.nC(I.entities,"sportsSeriesReminderStateEntity",y)}}),
_.A("design:type",Object)],HQ.prototype,"seriesReminderStateEntity",void 0);_.W([_.Y("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],HQ.prototype,"currentButtonStateRenderer",null);_.W([_.ke("seriesReminderStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HQ.prototype,"onSeriesReminderStateEntityChange",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HQ.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HQ.prototype,"onYtServiceRequestError",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],HQ);
_.a(HQ,"ytd-upcoming-event-reminder-button-renderer",function(){if(KG_!==void 0)return KG_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return KG_=I},{mode:1});var U$f;var eD=function(){return _.k.apply(this,arguments)||this};
_.E(eD,_.k);eD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.mD.Object.defineProperties(eD.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(_.l("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],eD.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],eD.prototype,"shelfDismissal",void 0);_.W([_.Y("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],eD.prototype,"text",null);
_.W([_.Y("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],eD.prototype,"textAriaLabel",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],eD);
_.a(eD,"ytd-notification-multi-action-renderer",function(){if(U$f!==void 0)return U$f;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return U$f=I},{mode:1});var rJa;var Ti=function(){return _.k.apply(this,arguments)||this};
_.E(Ti,_.k);Ti.prototype.ready=function(){var I=this;_.XB(this.hostElement).querySelector("#undo").addEventListener("tap",function(){I.onUndoTap()})};
Ti.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ti.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Ti);
_.a(Ti,"ytd-notification-text-renderer",function(){if(rJa!==void 0)return rJa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rJa=I},{mode:1});var jE_;var sG=function(){var I=_.k.apply(this,arguments)||this;I.mouseOverDelayJobId=0;I.fadeInImageDelayJobId=0;I.startTimeMs=-1;I.loadingStartTimeMs=-1;I.loadingEndTimeMs=-1;I.hasVideoPreview=!1;return I};
_.E(sG,_.k);_.L=sG.prototype;_.L.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.L.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.L.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.L.showThumbnail=function(){var I=this;this.csn=_.VO();_.ZL("fmth");_.w2.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.qK(_.w2,function(){I.loadingStartTimeMs=(0,_.m_)();var y=_.XB(I.hostElement).querySelector("#thumbnail");y.complete?I.displayMouseOverImage():y.addEventListener("load",_.MX(I,I.displayMouseOverImage))},150):_.Ye(_.XB(this.hostElement).querySelector("#play"),"show",!0)};
_.L.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.L.onTap=function(){this.removeVideoPreview()};
_.L.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var I=this.videoId,y=this.csn,D=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,F=this.startTimeMs,R=this.hasVideoPreview,O=_.AC(this.trackingParams),w={isMovingThumbnail:R};R&&F>0&&(D>0&&(w.movingThumbnailLoadingDurationMs=Math.round(D)),w.durationHoveredMs=Math.round((0,_.m_)()-F));I&&(w.videoId=I);_.t_(y,O,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:w});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.L.removeVideoPreview=function(){_.w2.cancelJob(this.mouseOverDelayJobId);_.w2.cancelJob(this.fadeInImageDelayJobId);var I=_.XB(this.hostElement).querySelector("#thumbnail");_.Ye(I,"fade-in",!1);I.removeEventListener("load",_.MX(this,this.displayMouseOverImage));I=_.XB(this.hostElement).querySelector("#play");_.Ye(I,"fade-in",!1);_.Ye(I,"show",!1)};
_.L.displayMouseOverImage=function(){var I=_.XB(this.hostElement).querySelector("#thumbnail"),y=_.XB(this.hostElement).querySelector("#play");this.isImageAvailable(I)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.m_)(),this.startTimeMs=(0,_.m_)(),this.fadeInImageDelayJobId=_.qK(_.w2,function(){_.Ye(I,"fade-in",!0)},50)):_.Ye(y,"fade-in",!0)};
_.L.computeThumbnail=function(I,y){var D;I&&I.movingThumbnailDetails&&I.movingThumbnailDetails.thumbnails&&y?D=_.hf(I.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):D=y?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(D)return _.VA(D)};
_.L.isImageAvailable=function(I){return!(!I.src||I.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||I.naturalWidth===120)};
sG.prototype.onTap=sG.prototype.onTap;sG.prototype.dataChanged=sG.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],sG.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sG.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],sG.prototype,"csn",void 0);_.W([_.M(),_.A("design:type",Object)],sG.prototype,"trackingParams",void 0);
_.W([_.M(),_.A("design:type",String)],sG.prototype,"videoId",void 0);_.W([_.M(),_.A("design:type",Boolean)],sG.prototype,"isAttachedAndDataSet",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sG.prototype,"dataChanged",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sG.prototype,"onTap",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],sG);
_.a(sG,"ytd-moving-thumbnail-renderer",function(){if(jE_!==void 0)return jE_;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return jE_=I},{mode:1});var o2g;_.fx=function(I){this.hostElement=I;this.eventSink=null;this.eventList=[]};
_.fx.prototype.shouldForward=function(){var I,y;return(y=(I=this.eventSink)==null?void 0:I.isConnected)!=null?y:document.body.contains(this.eventSink)};
_.fx.prototype.start=function(I,y){this.eventSink&&this.stop();for(var D=0;D<I.length;D++)this.hostElement.addEventListener(I[D],_.MX(this,this.forwardEvent));var F;this.eventSink=(F=y.hostElement)!=null?F:y;this.eventList=I};
_.fx.prototype.stop=function(){for(var I=0;I<this.eventList.length;I++)this.hostElement.removeEventListener(this.eventList[I],_.MX(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.fx.prototype.forwardEvent=function(I,y){this.shouldForward()&&(I.stopPropagation(),this.eventSink instanceof Element?_.lj(this.eventSink,I.type,y):_.tq(new _.g6("eventSink is not an element")))};_.VR={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.fx(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(I,y){this.forwarder_.start(I,y)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ZP=function(){return _.k.apply(this,arguments)||this};
_.E(ZP,_.k);_.L=ZP.prototype;_.L.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=_.Pi("HTML_DIR")==="rtl"?"right":"left"};
_.L.dataChanged=function(){this.popupOpen=!1};
_.L.computeAriaLabel=function(I){return _.u(I,NXW).label};
_.L.onTap=function(I){I.stopPropagation();I.preventDefault();this.data.command&&_.nR().resolve(_.MC).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.L.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.L.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ZP.prototype.onPopupClosed=ZP.prototype.onPopupClosed;ZP.prototype.onPopupOpened=ZP.prototype.onPopupOpened;ZP.prototype.onTap=ZP.prototype.onTap;ZP.prototype.dataChanged=ZP.prototype.dataChanged;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],ZP.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.ZU),_.A("design:type",Object)],ZP.prototype,"ironButtonState",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ZP.prototype,"componentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],ZP.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:-1}),_.A("design:type",Number)],ZP.prototype,"tabindex",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.A("design:type",Object)],ZP.prototype,"ariaLabel",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],ZP.prototype,"disableTooltips",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ZP.prototype,"popupOpen",void 0);
_.W([_.M(),_.A("design:type",Element)],ZP.prototype,"eventSink",void 0);_.W([_.a0("#tooltip"),_.A("design:type",Object)],ZP.prototype,"tooltip",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZP.prototype,"dataChanged",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ZP.prototype,"onTap",null);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZP.prototype,"onPopupOpened",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZP.prototype,"onPopupClosed",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ZP);
_.a(ZP,"ytd-thumbnail-overlay-button-renderer",function(){if(o2g!==void 0)return o2g;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return o2g=I},{mode:1});var Naa;var gK=function(){return _.k.apply(this,arguments)||this};
_.E(gK,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gK.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],gK.prototype,"disableAnimation",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],gK.prototype,"rounded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],gK.prototype,"transparentBackground",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],gK.prototype,"noPadding",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],gK);
_.a(gK,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Naa!==void 0)return Naa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Naa=I},{mode:1});var hic;var I2=function(){return _.k.apply(this,arguments)||this};
_.E(I2,_.k);I2.prototype.computeIconPosition=function(I){return this.get("iconPosition",I)||null};
I2.prototype.computeIconStyle=function(I){return this.get("iconStyle",I)||null};
I2.prototype.computeIsIconStyleFilled=function(I){if(!I)return!1;var y;return I.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((y=I.icon)==null?void 0:y.iconType)==="ERROR_BLACK"};
_.W([_.M(),_.A("design:type",Object)],I2.prototype,"data",void 0);_.W([_.M({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.A("design:type",Object)],I2.prototype,"iconPosition",void 0);_.W([_.M({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.A("design:type",Object)],I2.prototype,"iconStyle",void 0);_.W([_.M({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],I2.prototype,"iconStyleFilled",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],I2);
_.a(I2,"ytd-thumbnail-overlay-icon-renderer",function(){if(hic!==void 0)return hic;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hic=I},{mode:1});var x$G;var yC=function(){return _.k.apply(this,arguments)||this};
_.E(yC,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yC.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],yC);
_.a(yC,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(x$G!==void 0)return x$G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return x$G=I},{mode:1});var lKc;var Dk=function(){var I=_.k.apply(this,arguments)||this;I.isPreviewLoading=!1;return I};
_.E(Dk,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dk.prototype,"isPreviewLoading",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Dk);
_.a(Dk,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(lKc!==void 0)return lKc;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lKc=I},{mode:1});var ukW;var FL=function(){return _.k.apply(this,arguments)||this};
_.E(FL,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FL.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],FL);
_.a(FL,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ukW!==void 0)return ukW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ukW=I},{mode:1});var qSO;var R2=function(){var I=_.k.apply(this,arguments)||this;I.disableTooltips=!1;I.isLoading=!1;I.useExpandableTooltip=!1;I.toggled=!1;I.hovered=!1;I.mouseoverDelayJobId=0;I.toggleDelayJobId=0;I.expandAnimationDelayJobId=0;return I};
_.E(R2,_.k);_.L=R2.prototype;_.L.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");_.XB(this.hostElement).querySelector("#tooltip").position=_.Pi("HTML_DIR")==="rtl"?"right":"left"};
_.L.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.w2.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.w2.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.w2.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.L.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.w2.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.w2.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.w2.cancelJob(this.expandAnimationDelayJobId)};
_.L.computeIcon=function(I,y,D){return(I=D?y:I)&&I.iconType?_.pQ(I.iconType):void 0};
_.L.computeAriaLabel=function(I,y,D){return _.u(D?y:I,NXW).label};
_.L.computeTooltip=function(I,y,D){return D?y:I};
_.L.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.L.computeIconOnHover=function(I,y){if((I==null?0:I.iconType)&&!y)return _.pQ(I.iconType)};
_.L.onTap=function(I){var y=this;I.stopPropagation();I.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(I=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(I),this.useExpandableTooltip&&(this.toggleDelayJobId=_.qK(_.w2,function(){y.hovered=!1;y.data&&!y.data.toggledServiceEndpoint&&(y.expandAnimationDelayJobId=_.qK(_.w2,function(){y.set("data.isToggled",
!1)},200))},2E3))};
_.L.onMouseenter=function(){var I=this;this.mouseoverDelayJobId=_.qK(_.w2,function(){I.hovered=!0},300)};
_.L.onMouseleave=function(){_.w2.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.L.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.L.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.L.onServiceRequestCompleted=function(I,y){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(y)||this.set("data.isToggled",!this.data.isToggled)};
_.L.serviceRequestWasSuccessful=function(I){return _.u(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Lb)?I.data.status==="STATUS_SUCCEEDED":!0};
R2.prototype.onServiceRequestCompleted=R2.prototype.onServiceRequestCompleted;R2.prototype.onPopupClosed=R2.prototype.onPopupClosed;R2.prototype.onPopupOpened=R2.prototype.onPopupOpened;R2.prototype.onMouseleave=R2.prototype.onMouseleave;R2.prototype.dataChanged=R2.prototype.dataChanged;_.W([_.Q(_.ZU),_.A("design:type",Object)],R2.prototype,"ironButtonState",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],R2.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],R2.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.A("design:type",Object)],R2.prototype,"ariaLabel",void 0);_.W([_.M(),_.A("design:type",Object)],R2.prototype,"disableTooltips",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],R2.prototype,"popupOpen",void 0);_.W([_.M(),_.A("design:type",Object)],R2.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Element)],R2.prototype,"eventSink",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],R2.prototype,"useExpandableTooltip",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.A("design:type",Object)],R2.prototype,"toggled",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],R2.prototype,"hovered",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.A("design:type",Object)],R2.prototype,"iconOnHover",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R2.prototype,"dataChanged",null);
_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R2.prototype,"onMouseleave",null);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R2.prototype,"onPopupOpened",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R2.prototype,"onPopupClosed",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],R2.prototype,"onServiceRequestCompleted",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],R2);
_.a(R2,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(qSO!==void 0)return qSO;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qSO=I},{mode:_.Qd("kevlar_poly_si_batch_j053")?1:2});var E2f;var GuG=_.d(function(I){var y=I.data;var D=I.thumbnailSize;var F=function(){return y().enableSegmentView};
return _.t("yt-thumbnail-overlay-progress-bar-view-model",{class:_.XH("ytThumbnailOverlayProgressBarHost",function(){return o9B(D==null?void 0:D())})},_.t(_.U,{cond:F,
then:function(){return _.t("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.t("div",{class:_.bp("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+y().startPercent+"%"}}),_.t("div",{class:_.bp("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+y().segmentDurationPercent+"%"}},_.t("div",{class:_.bp("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.t("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.t("div",null," ",function(){return y().segmentLabel})),_.t("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.t("div",{class:_.bp("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.t(_.U,{cond:function(){return!F()&&y().startPercent},
then:function(){var R={};return _.t("div",{class:_.bp("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(R.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.l("web_enable_modern_progress_bar_overlay"),R))},_.t("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+y().startPercent+"%"}}))}}))},"Ha");
GuG.idomCompat=!0;_.XIG=_.d(function(I){var y=_.nt(),D=_.dV(function(R){var O,w,v;a:{var P=(O=I.data())==null?void 0:O.animationActivationTargetId;O=((w=I.data())==null?void 0:w.animationActivationEntityKey)||"";w=(v=I.data())==null?void 0:v.animationActivationEntitySelectorType;if(O&&P)switch(w){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":R=_.Qz(R,O);v=_.nR().resolve(_.fR(_.OI));P=!!(R&&R.videoId===P&&(v==null?0:v.isMiniplayerActive()));P={activated:P,playAnimation:P&&R.playerState==="PLAYER_STATE_PLAYING"};
break a}P=void 0}return P});
_.wZ(function(){var R;if((R=D())==null?0:R.activated){var O;if((O=D())==null?0:O.playAnimation){var w;(w=y.lottieEl)==null||w.goToAndPlay(0)}else{var v;(v=y.lottieEl)==null||v.goToAndStop(0)}}},"DbQiXd");
var F=function(){var R,O=!((R=D())==null||!R.activated);if(I.data()){R=I.data();var w=void 0;R.icon&&(w=_.CeW(R.icon),w=s$A(w));var v=void 0,P;if((P=R.backgroundColor)==null?0:P.lightTheme){var K;v={backgroundColor:gY((K=R.backgroundColor)==null?void 0:K.lightTheme,"0.8")}}if(R.text||w||O){if(O&&R.lottieData&&y){K=R.lottieData;var r,N,h;P={animationConfig:{name:K.url,path:K.url,autoplay:(r=K.settings)==null?void 0:r.autoplay,loop:(h=(N=K.settings)==null?void 0:N.loop)!=null?h:!0},animationRef:y}}else P=
void 0;if(O)r=17;else b:switch(R.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":r=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":r=19;break b;default:r=17}O={type:r,text:O&&R.animatedText?R.animatedText:R.text,icon:w,customColors:v,animation:P}}else O=void 0}else O=void 0;return O};
return _.t("yt-thumbnail-badge-view-model",{class:_.XH("ytThumbnailBadgeViewModelHost",I.class)},_.t(_.U,{cond:F,then:function(){return _.t(_.PQ,{data:function(){return F()}})}}))},"Ja");var QEO=_.d(function(I){var y={},D={};return _.t("yt-thumbnail-bottom-overlay-view-model",{class:_.XH("ytThumbnailBottomOverlayViewModelHost",(y.ytThumbnailBottomOverlayViewModelHostBackground=function(){return I.data().enableGradientBackground},y))},_.t(_.aP,{data:function(){return I.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(F){return _.t(GuG,{data:F.data,
thumbnailSize:I.thumbnailSize})}}),_.t("div",{class:_.XH("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var F;
return NAA((F=I.thumbnailSize)==null?void 0:F.call(I))},(D.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var F;
return(F=I.isClip)==null?void 0:F.call(I)},D.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var F;
return!_.l("web_enable_modern_progress_bar_overlay")&&((F=I.thumbnailSize)==null?void 0:F.call(I))==="small"},D))},_.t(_.aP,{data:function(){return I.data().badge}},{thumbnailBadgeViewModel:function(F){return _.t(_.XIG,{data:F.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.t(_.aP,{data:function(){return I.data().badges}},{thumbnailBadgeViewModel:function(F){return _.t(_.XIG,{data:F.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
QEO.idomCompat=!0;_.NK(QEO,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.rV,thumbnailSize:_.rV,isClip:_.rV}});var OH=_.d(function(I){var y=I.data;var D=I.className;I=I.alwaysShow;var F=_.lq5(),R={};return _.t("thumbnail-hover-overlay-view-model",{el:_.K4(_.VM(function(){return y().rendererContext})),
class:_.XH("ytThumbnailHoverOverlayViewModelHost",D,(R.ytThumbnailHoverOverlayViewModelHostForceHover=I,R)),"aria-label":function(){var O;return(O=_.u(y().rendererContext,_.W_))==null?void 0:O.label},
role:function(){return _.Tj(y().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Tj(y().rendererContext)!==void 0?0:void 0},
"on:keypress":F},_.t("div",{class:_.XH("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(y().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var O="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:O="ytThumbnailHoverOverlayViewModelStyleCover"}return O})},_.t(_.U,{cond:function(){return y().icon},
then:function(O){return _.t(_.UE,{data:O,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.t(_.U,{cond:function(){return y().text},
then:function(O){return _.t(_.jr,{text:O,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
OH.idomCompat=!0;var YSa=_.d(function(I){var y=I.data;return _.t(_.aP,{data:function(){return y==null?void 0:y().overlays}},{thumbnailHoverOverlayViewModel:OH})},"Na");
YSa.idomCompat=!0;var fKz={};var n2O=_.d(function(I){var y=I.data;var D=I.image;var F=I.state;var R=I.iconType;var O=I.overlays;var w=I.isOverlay;var v=_.Fh("div");I=_.J(_.$M(!0,void 0,"AA4e7b"));var P=I.next().value,K=I.next().value,r=function(){return!!y().onTap},N=_.jE(R,"LIVE");
_.wZ(function(){var x=y();requestAnimationFrame(function(){if(v.value===null)var q=!0;else{var X=v.value;q=x.badgeText;var f=fqq(x.size);q in fKz?X=fKz[q]:(X=X.clientWidth,fKz[q]=X);(q=X>f)?v.value.style.display="none":v.value.style.visibility="visible"}K(q)})},"vNdN8b");
var h=function(){var x={};return x["yt-spec-avatar-shape__image"]=!0,x["yt-spec-avatar-shape__image--ads-app"]=y().type===1,x["yt-spec-avatar-shape__image--inscribed-square"]=y().type===2,x};
return _.t("yt-avatar-shape",null,_.t("div",{el:_.K4(pkt(r,{keydown:function(x){if(x.key==="Enter"){var q;(q=x.currentTarget)==null||q.click()}},
click:function(x){var q,X;return void((X=(q=y()).onTap)==null?void 0:X.call(q,x))}})),
class:function(){var x={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},q=y();x=(x[q.clusterLayoutConfig?zaL(q.clusterLayoutConfig):kWC(q.size)]=!0,x["yt-spec-avatar-shape__button--tappable"]=r(),x);(q=y().avatarButtonCustomClassName)&&(x[q]=!0);return _.bp(x)},
"aria-label":function(){return r()?y().accessibilityText:""},
role:function(){return r()?"button":void 0},
tabindex:function(){return r()?0:void 0}},_.t("div",{class:function(){var x,q=y(),X=F==null?void 0:F(),f=w==null?void 0:w(),m=!((x=q.decorations)==null||!x.includes(2)||q.size!=="medium"&&q.size!=="large"),z=q.size==="tiny"||q.size==="extra-small",B,C,H,e,T={};
x=(T["yt-spec-avatar-shape--live-ring"]=!!(((B=q.decorations)==null?0:B.includes(0))&&aqA(q.size)),T["yt-spec-avatar-shape--stories-watched"]=m&&!(X==null||!X.storiesWatched),T["yt-spec-avatar-shape--stories-unwatched"]=m&&!(X==null?0:X.storiesWatched),T["yt-spec-avatar-shape--background-border"]=cj_(q.decorations)&&!z,T["yt-spec-avatar-shape--background-border-thin"]=cj_(q.decorations)&&z,T["yt-spec-avatar-shape__on-select-border"]=!((C=q.decorations)==null||!C.includes(4)),T["yt-spec-avatar-shape__white-border"]=
!((H=q.decorations)==null||!H.includes(5)),T["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((e=q.decorations)==null?0:e.includes(5))&&z),T["yt-spec-avatar-shape--is-overlay"]=!!f,T);return _.bp(x)},
style:function(){a:{var x=y().clusterLayoutConfig;if(x){b:{var q=x.numAvatarsInCluster;var X=x.avatarIndex;if(X!==q-1){switch(x.clusterSize){case "small":x="32";break;case "medium":x="36";break;case "40":x="40";break;default:q=void 0;break b}q="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+x+"x"+x+"_avatars_"+q+"_index_"+X+".svg"}else q=void 0}if(q){q=_.p4({"-webkit-mask-image":"url("+q+")","mask-image":"url("+q+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}q=void 0}return q}},_.t("div",{class:function(){var x={};
var q=y();x=(x[q.clusterLayoutConfig?mqA(q.clusterLayoutConfig):MPq(q.size)]=!0,x["yt-spec-avatar-shape--no-margin"]=cj_(y().decorations),x["yt-spec-avatar-shape--square"]=y().type===2,x);return _.bp(x)}},_.t(_.UE,{data:D,
alt:function(){return!r()&&y().accessibilityText?y().accessibilityText:""},
targetWidth:function(){return dq5(y().size)},
targetHeight:function(){return dq5(y().size)},
className:function(){return _.bp(h())}}),_.t(_.U,{cond:function(){var x;
return((x=y().decorations)==null?void 0:x.includes(0))&&aqA(y().size)},
then:function(){return _.t("div",{class:function(){var x={};x=(x["yt-spec-avatar-shape__live-badge"]=!0,x["yt-spec-avatar-shape__live-badge--badge-small"]=y().size==="small",x["yt-spec-avatar-shape__live-badge--badge-medium"]=y().size==="medium"||y().size==="48",x["yt-spec-avatar-shape__live-badge--badge-large"]=y().size==="large",x["yt-spec-avatar-shape__live-badge--badge-extra-large"]=y().size==="extra-large"||y().size==="extra-extra-large"||y().size==="giant",x);return _.bp(x)}},_.t(_.U,{cond:function(){return y().badgeText},
then:function(x){return _.t("div",{class:"yt-spec-avatar-shape__badge-text",el:v},x)}}),_.t(_.U,{cond:P,
then:function(){return _.t("div",{class:"yt-spec-avatar-shape__badge-icon"},_.t(_.mj,{icon:N,size:function(){a:switch(y().size){case "extra-large":var x=16;break a;default:x=13}return x}}))}}))}}),_.t(_.U,{cond:function(){var x,q;
return((x=y().decorations)==null?void 0:x.includes(1))||((q=y().decorations)==null?void 0:q.includes(0))&&!aqA(y().size)},
then:function(){return _.t("div",{class:function(){var x=y(),q,X,f={};var m=(f["yt-spec-avatar-shape__live-dot"]=!((q=x.decorations)==null||!q.includes(0)||aqA(x.size)),f["yt-spec-avatar-shape__new-content"]=!((X=x.decorations)==null||!X.includes(1)),f);return _.bp(m)}})}}),_.t(_.U,{cond:function(){return!!O},
then:function(){return _.t("div",{class:function(){var x={};x=Object.assign((x["yt-spec-avatar-shape__image-overlays"]=!0,x),h());return _.bp(x)}},O==null?void 0:O())}})))))},"Qa");
n2O.idomCompat={callbacks:{overlays:!0}};_.LF=_.d(function(I){function y(){D().endpoint&&_.OE(D().endpoint)}
var D=I.data;var F=I.decorations;var R=I.avatarButtonCustomClassName;var O=I.isOverlay;var w=I.clusterLayoutConfig;return _.t("avatar-view-model",null,_.t(_.U,{cond:function(){return D().image},
then:function(v){return _.t(n2O,{data:function(){return CtB({data:D(),onTap:D().endpoint?y:void 0,decorations:F==null?void 0:F(),badgeText:void 0,accessibilityText:D().accessibilityText,avatarButtonCustomClassName:R==null?void 0:R(),clusterLayoutConfig:w==null?void 0:w()})},
image:v,iconType:"RADAR_LIVE",overlays:function(){return _.t(YSa,{data:D})},
isOverlay:O})}}))},"Ra");
_.LF.idomCompat=!0;_.Jh=_.d(function(I){var y=I.data;I=I.className;var D=_.Fh("yt-decorated-avatar-view-model"),F=function(){return _.u(y().avatar,_.gP)},R=_.su(function(){var O,w=y(),v=F(),P=_.Tj(y().rendererContext),K=(O=D.value)!=null?O:void 0,r;
if(v){K={data:w,avatar:v,onTap:P,element:K};O=K.data;w=K.avatar;v=K.onTap;P=K.element;K=K.commandController;v=v?$qW(v,P,K):void 0;P=[];O.liveData&&P.push(0);var N;K=(N=O.liveData)==null?void 0:N.liveBadgeText;N=(r=_.u(O.rendererContext,_.W_))==null?void 0:r.label;r=CtB({data:w,onTap:v,decorations:P,badgeText:K,accessibilityText:N?N:O.a11yLabel})}else r={size:"medium"};return r},void 0,"c00kWd");
return _.t("yt-decorated-avatar-view-model",{class:_.XH("ytDecoratedAvatarViewModelHost",I),el:D},_.t(_.U,{cond:function(){var O;return(O=F())==null?void 0:O.image},
then:function(O){return _.t(n2O,{data:R,image:O,iconType:"RADAR_LIVE",overlays:function(){return _.t(YSa,{data:F})}})}}))},"Sa");
_.Jh.idomCompat=!0;_.wm=_.d(function(I){var y=function(){var v;return Object.assign({},I.data(),(v=I.overrides)==null?void 0:v.call(I))},D=function(){return _.sP(y().rendererContext)},F=function(){var v=y().avatars,P,K;
return(K=(P=(v==null?0:v[0])?_.u(v[0],_.gP):void 0)==null?void 0:P.avatarImageSize)!=null?K:"AVATAR_SIZE_UNKNOWN"},R=function(){return Aj4(y())},O=function(){if(y().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var v=void 0;
else if((v=I.decorations)==null?0:v.call(I))v=I.decorations();else{v=y();var P=0;v.avatars&&(P+=v.avatars.length);v.decoratedText&&(P+=1);v=P>1?[3]:[]}return v},w={};
return _.t("yt-avatar-stack-view-model",{el:_.K4(_.VM(function(){return y().rendererContext})),
class:_.XH("yt-avatar-stack-view-model",I.className,(w["yt-avatar-stack-view-model--tappable"]=D,w["yt-avatar-stack-view-model--is-overlay"]=I.isOverlay,w["yt-avatar-stack-view-model--medium-text"]=I.useMediumText,w)),tabindex:function(){return D()?0:void 0},
role:function(){return D()?"link":void 0},
"aria-label":function(){var v,P;return(P=(v=_.u(y().rendererContext,_.W_))==null?void 0:v.label)!=null?P:""}},_.t(_.U,{cond:function(){var v;
return y().avatars&&!((v=I.hideAvatar)==null?0:v.call(I))},
then:function(){return _.t("div",{class:"yt-avatar-stack-view-model__avatars"},_.t(_.U,{cond:function(){return y().decoratedText},
then:function(v){var P={};return _.t("div",{class:_.XH("yt-avatar-stack-view-model__text-container",(P["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return F()==="AVATAR_SIZE_XXS"||F()==="AVATAR_SIZE_XS"},P["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var K;
return((K=I.isOverlay)==null?void 0:K.call(I))&&(F()==="AVATAR_SIZE_XXS"||F()==="AVATAR_SIZE_XS")},P)),
style:_.p4({width:function(){return R().avatarSizeInPx+"px"},
height:function(){return R().avatarSizeInPx+"px"}})},_.t(_.jr,{text:v,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.t("div",{style:function(){return _.p4(R().avatarStackStyle)()},
class:function(){return R().avatarStackClass}},_.t(_.aP,{data:function(){return R().avatars.reverse()}},{avatarViewModel:function(v,P){return _.t("div",{style:function(){var K,r;
return _.p4((r=(K=R()).avatarStyle)==null?void 0:r.call(K,P()))()},
class:function(){return R().avatarClass}},_.t(_.LF,{data:v.data,
decorations:O,avatarButtonCustomClassName:function(){return R().avatarButtonCustomClassName},
isOverlay:I.isOverlay,clusterLayoutConfig:function(){var K,r;return(r=(K=R()).clusterLayoutConfig)==null?void 0:r.call(K,P())}}))},
decoratedAvatarViewModel:function(v,P){return _.t("div",{style:function(){var K,r;return _.p4((r=(K=R()).avatarStyle)==null?void 0:r.call(K,P()))()},
class:function(){return R().avatarClass}},_.t(_.Jh,{data:v.data}))}})))}}),_.t(_.U,{cond:function(){return y().text},
then:function(v){return _.t(_.jr,{text:v,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.wm.idomCompat=!0;_.NK(_.d(function(I){var y=I.data;var D=I.thumbnailSize;return _.t("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.t("div",{class:_.XH("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return bkL(D==null?void 0:D())})},_.t(_.aP,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(F){return _.t(_.wm,{data:F.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.om,
thumbnailSize:_.om}});var pIP=_.d(function(I){I=_.o6(I,{hidden:!1});var y=I.data;I=I.hidden;return _.t("yt-thumbnail-overlay-title-view-model",{class:_.XH("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(y().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var D="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:D="ytThumbnailOverlayTitleViewModelPositionTop"}return D}),
hidden:I},_.t(_.U,{cond:function(){return y().leadingContent},
then:function(D){return _.t("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.t(_.aP,{data:D},{decoratedAvatarViewModel:_.Jh}))}}),_.t("div",null,_.t(_.jr,{text:function(){return y().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(){return _.t(_.jr,{text:function(){return y().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
pIP.idomCompat=!0;_.NK(pIP,"yt-thumbnail-overlay-title-view-model",{props:{data:_.om,hidden:_.om}});_.m$M=_.d(function(I){I=_.o6(I,{isClip:!1});var y=I.data,D=I.thumbnailSize,F={};return _.t("yt-thumbnail-overlay-badge-view-model",{class:_.XH("yt-thumbnail-overlay-badge-view-model",function(){a:switch(y().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var R="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:R="yt-thumbnail-overlay-badge-view-model--bottom-end"}return R},function(){return Hko(D==null?void 0:D())},(F["yt-thumbnail-overlay-badge-view-model--clip"]=I.isClip,
F))},_.t(_.aP,{data:function(){return y().thumbnailBadges}},{thumbnailBadgeViewModel:function(R){return _.t(_.XIG,{data:R.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.m$M.idomCompat=!0;_.NK(_.m$M,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.om,thumbnailSize:_.om,isClip:_.om}});var MNz=_.d(function(I){var y=I.data;I=I.hidden;var D=_.su(function(){return y().indicatorCount||0},void 0,"AbKnMc"),F={};
return _.t("yt-page-indicator-view-model",{class:_.XH("ytPageIndicatorViewModelHost",(F.ytPageIndicatorViewModelIndicatorHidden=function(){return!y().indicatorCount},F)),
hidden:I},_.t(_.gZ,{each:function(){return Array(D())}},function(R,O){var w={};
return _.t("div",{class:_.XH("ytPageIndicatorViewModelIndicator",(w.ytPageIndicatorViewModelIndicatorSelected=function(){return y().selectedIndex===O()},w))})}))},"Xa");
MNz.idomCompat=!0;_.NK(MNz,"yt-page-indicator-view-model",{props:{data:_.om,hidden:_.om}});var v7=function(){var I=_.k.apply(this,arguments)||this;I.eventSink=function(){return I};
I.disableInteraction=!1;I.noRoundedCorners=!1;I.isPreviewLoading=!1;I.isOriginalAspectRatio=!1;I.computedObjectFit=!1;I.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return I};
_.E(v7,_.k);_.L=v7.prototype;
_.L.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:_.l("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"}}};
_.L.onImageLoaded=function(){this.loaded=!0};
_.L.onImageUnloaded=function(){this.loaded=!1};
_.L.computeRichThumbnail=function(I,y,D,F){if(I&&y&&!F&&!_.l("disable_moving_thumbs_handling")&&!D)return y};
_.L.computeImageWidth=function(I,y){return y||9999};
_.L.computeIsOriginalAspectRatio=function(I){return I};
_.L.computeIsLive=function(I){if(I==null?0:I.badges)for(var y=0;y<I.badges.length;y++){var D=I.badges[y];if(D.metadataBadgeRenderer&&D.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(I==null?0:I.thumbnailOverlays)for(y=0;y<I.thumbnailOverlays.length;y++)if(D=I.thumbnailOverlays[y],D.thumbnailOverlayTimeStatusRenderer&&D.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.L.computeObjectFit=function(I,y){return y||(I?"CONTAIN":"")};
_.L.computeNavigationEndpoint=function(I,y,D){return I?y:D};
_.L.computeHasClip=function(I){I=_.J(I||[]);for(var y=I.next();!y.done;y=I.next())if(y.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.L.computeOverlayColor=function(I){var y;return(I==null?0:(y=I.darkColorPalette)==null?0:y.section2Color)?I.darkColorPalette.section2Color:I==null?void 0:I.sampledThumbnailColor};
_.mD.Object.defineProperties(v7.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.NwB(this.width)}}});
v7.prototype.onImageUnloaded=v7.prototype.onImageUnloaded;v7.prototype.onImageLoaded=v7.prototype.onImageLoaded;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(tLu),_.A("design:type",Object)],v7.prototype,"ytdThumbnailBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],v7.prototype,"componentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],v7.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],v7.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],v7.prototype,"circular",void 0);
_.W([_.M({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.A("design:type",Object)],v7.prototype,"richThumbnail",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.A("design:type",Boolean)],v7.prototype,"hasClip",void 0);_.W([_.M(),_.A("design:type",Object)],v7.prototype,"eventSink",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],v7.prototype,"queued",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],v7.prototype,"richGridThumbnail",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],v7.prototype,"useExpandableTooltip",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],v7.prototype,"useUntranslatedNavigationEndpoint",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],v7.prototype,"disableInteraction",void 0);
_.W([_.M({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.A("design:type",Object)],v7.prototype,"computedNavigationEndpoint",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],v7.prototype,"nowPlayingEqualizerOnly",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],v7.prototype,"hidePlaybackStatus",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],v7.prototype,"objectFit",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],v7.prototype,"noRoundedCorners",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],v7.prototype,"watchFeedThumbnail",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],v7.prototype,"isPreviewLoading",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.A("design:type",Object)],v7.prototype,"isOriginalAspectRatio",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.A("design:type",Object)],v7.prototype,"computedObjectFit",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.A("design:type",Boolean)],v7.prototype,"isLiveVideo",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],v7.prototype,"loaded",void 0);_.W([_.M({computed:"computeOverlayColor(data.thumbnail)"}),_.A("design:type",Object)],v7.prototype,"overlayColor",void 0);_.W([_.M(),_.A("design:type",Boolean)],v7.prototype,"minimizePipBreakages",void 0);_.W([_.M({selector:_.cme}),_.A("design:type",Boolean)],v7.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.M(),_.A("design:type",Number)],v7.prototype,"width",void 0);
_.W([_.Y("inlinePreviewIsEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],v7.prototype,"isPreviewDisabled",null);_.W([_.Y("width"),_.A("design:type",String),_.A("design:paramtypes",[])],v7.prototype,"thumbnailSize",null);_.W([_.z4("image-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v7.prototype,"onImageLoaded",null);
_.W([_.z4("image-unloaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v7.prototype,"onImageUnloaded",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-thumbnail"})],v7);
_.Xf()(v7,"ytd-thumbnail",function(){if(E2f===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);E2f=I}I=E2f;return I},{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 minimizePipBreakages".split(" "),mode:2});var siq=function(I){var y=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15311_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15311_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(D){zie(y,D)};
this.onLockupMouseLeaveFn=function(D){D=D.relatedTarget;var F,R;((F=document.getElementsByTagName("ytd-video-preview"))==null?0:(R=F.item(0))==null?0:R.contains(D))||(y.terminateVideoPreview(),S9(y))};
this.onThumbnailMouseDownFn=function(){y.terminateVideoPreview();S9(y)};
this.onTouchStart=function(){y.JSC$15311_touched=!0};
this.mediaRenderer=I.mediaRenderer;this.thumbnailElement=I.thumbnailElement;this.lockupElement=I.lockupElement;this.videoPreviewOptsInput=I.videoPreviewOpts;kuu(this);th(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)):
_.tq(Error("Gh")):_.tq(Error("Hh")):d$M(this)},Nv=function(I){d$M(I);
var y;(y=I.lockupElement)==null||y.removeEventListener("mouseenter",I.onMouseMoveFn);var D;(D=I.lockupElement)==null||D.removeEventListener("mouseleave",I.onLockupMouseLeaveFn);var F;(F=I.lockupElement)==null||F.removeEventListener("touchstart",I.onTouchStart);var R;(R=I.thumbnailElement)==null||R.removeEventListener("mousedown",I.onThumbnailMouseDownFn);S9(I)},kuu=function(I){I.inlinePreviewIsEnabledForUser=_.oq().getState().ui.inlinePreviewIsEnabled;
I.unsubscribeFromInlinePreviewIsEnabled=_.TV(_.oq(),_.cme,function(y){(I.inlinePreviewIsEnabledForUser=y)||S9(I)});
I.JSC$15311_unsubscribeFromInlinePreviewIsActive=_.TV(_.oq(),_.agA,function(y){(I.inlinePreviewIsActive=y)||S9(I)})},d$M=function(I){I.unsubscribeFromInlinePreviewIsEnabled();
I.unsubscribeFromInlinePreviewIsEnabled=function(){};
I.JSC$15311_unsubscribeFromInlinePreviewIsActive();I.JSC$15311_unsubscribeFromInlinePreviewIsActive=function(){}},zie=function(I,y){y.buttons>0||(y=_.kf("kevlar_lockup_hover_delay",-1),I.JSC$15311_touched&&y>=0?(_.w2.cancelJob(I.videoPreviewJobId),I.videoPreviewJobId=_.qK(_.w2,function(){aKf(I)},y),I.JSC$15311_touched=!1):aKf(I))},$I4=function(I){I.videoPreviewJobId=_.qK(_.w2,function(){return _.S(function(y){return y.yield(cJG(I,{isAutoplay:!0}),0)})})},aKf=function(I){!I.previewTriggered&&th(I)&&
(I.inlinePreviewIsActive&&I.terminateVideoPreview(),I.previewTriggered=!0,I.mediaRenderer.isInlinePreviewTriggered=!0,_.w2.cancelJob(I.videoPreviewJobId),I.videoPreviewJobId=_.qK(_.w2,function(){return _.S(function(y){return y.yield(cJG(I),0)})}))},cJG=function(I,y){y=y===void 0?{}:y;
var D=y.isAutoplay===void 0?!1:y.isAutoplay;var F,R,O,w;return _.S(function(v){if(v.nextAddress==1){if(!th(I))return v.return();F=I.getVideoPreviewOpts();if(!F)return v.return();D&&(F.isAutoplay=!0);return(O=(R=_.qr(I.mediaRenderer.hostElement,"yt-open-video-preview-action",[F]))&&R[0])?v.yield(R[0],3):v.jumpTo(2)}v.nextAddress!=2&&(O=v.yieldResult===1);if(O){var P=(w=I.mediaRenderer)==null?void 0:w.data;P&&(TAC(P)?delete P.inlinePlayerData:"inlinePlaybackEndpoint"in P&&delete P.inlinePlaybackEndpoint)}_.Cj(v)})};
siq.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var I,y;if((y=(I=this.videoPreviewOptsInput)==null?void 0:I.videoPreviewData)!=null)I=y;else if(I=this.mediaRenderer.data)if(TAC(I))I={inlinePlaybackEndpoint:_.yz(I.inlinePlayerData.onVisible),navigationEndpoint:_.yz(I.onTap),thumbnail:"image"in I?I.image:I.thumbnail,thumbnailOverlays:void 0,accessibilityText:eaW(I)};else if("multipleInlinePlaybackEndpoint"in I){var D=_.u(_.u(I.multipleInlinePlaybackEndpoint,k5G),dLM);if(D!=
null&&D.playerDescriptors){y=[];D=_.J(D.playerDescriptors);for(var F=D.next();!F.done;F=D.next())F=F.value,y.push({inlinePlaybackEndpoint:F.inlinePlaybackEndpoint,navigationEndpoint:F.navigationEndpoint,thumbnail:F.thumbnail,thumbnailOverlays:F.thumbnailOverlays,accessibilityText:eaW(I)});I=y}else I=void 0}else I={inlinePlaybackEndpoint:I.inlinePlaybackEndpoint,navigationEndpoint:I.navigationEndpoint,thumbnail:I.thumbnail,thumbnailOverlays:I.thumbnailOverlays,accessibilityText:eaW(I)};else I=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:I,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var th=function(I){var y;if(y=I.inlinePreviewIsEnabledForUser)y=(I=I.mediaRenderer.data)?"inlinePlaybackEndpoint"in I&&I.inlinePlaybackEndpoint||TAC(I)&&I.inlinePlayerData||"multipleInlinePlaybackEndpoint"in I&&I.multipleInlinePlaybackEndpoint?!0:!1:!1;return y};
siq.prototype.terminateVideoPreview=function(){_.uj(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var S9=function(I){_.w2.cancelJob(I.videoPreviewJobId);I.inlinePreviewIsActive=!1;I.previewTriggered=!1;I.mediaRenderer.isInlinePreviewTriggered=!1};var WGM=_.UI(["#"]),P7=function(){var I=_.k.apply(this,arguments)||this;I.isDisabled=!1;return I};
_.E(P7,_.k);_.L=P7.prototype;
_.L.configureRendererStamper=function(){return{"data.menu":bz,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.L.attached=function(){this.updateInlinePreviewHoverListeners()};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.getMetadata=function(I){var y=[];if(I.metadataText&&Object.keys(I.metadataText).length>0){var D=this.ytRendererBehavior.getSimpleString(I.metadataText);I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&(D=_.AZ(D,Number(I.upcomingEventData.startTime)));y.push(D)}else I.shortViewCountText&&y.push(this.ytRendererBehavior.getSimpleString(I.shortViewCountText)),I.publishedTimeText&&y.push(this.ytRendererBehavior.getSimpleString(I.publishedTimeText)),I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&
(D=this.ytRendererBehavior.getSimpleString(I.upcomingEventData.upcomingEventText),y.push(_.AZ(D,Number(I.upcomingEventData.startTime))));return y};
_.L.calculateBylineText=function(I){return I.shortBylineText?I.shortBylineText:I.bylineText?I.bylineText:null};
_.L.calculateIsDisabled=function(I){return!!I.isDisabled};
_.L.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I)||_.uyS(WGM)};
_.L.onDetailsTap=function(I){var y=this.data&&this.data.navigationEndpoint;y&&!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.l("kevlar_grid_video_renderer_killswitch")?_.lj(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.L.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15318_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:_.XB(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.XB(this.hostElement).querySelector("ytd-thumbnail")})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$15318_inlinePreviewHoverListener)==null||Nv(I)};
_.L.computeThumbnailWidth=function(I,y){return y&&y>0?y:I?360:210};
_.L.computeNumBadgesInRow=function(I){var y;return((y=I.badges)==null?void 0:y.length)||0};
_.L.computeShowChannelThumbnail=function(I,y){var D;return y&&!!(I==null?0:(D=I.channelThumbnailSupportedRenderers)==null?0:D.channelThumbnailWithLinkRenderer)};
_.mD.Object.defineProperties(P7.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$15318_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
P7.prototype.dataChanged=P7.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],P7.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],P7.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.jo),_.A("design:type",Object)],P7.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],P7.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],P7.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],P7.prototype,"noEndpoints",void 0);_.W([_.M({computed:"calculateBylineText(data)"}),_.A("design:type",Object)],P7.prototype,"bylineText",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],P7.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],P7.prototype,"isDownloading",void 0);_.W([_.M({reflectToAttribute:!0,value:0}),_.A("design:type",Number)],P7.prototype,"width",void 0);_.W([_.M({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.A("design:type",Object)],P7.prototype,"isDisabled",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P7.prototype,"dataChanged",null);_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P7.prototype,"isHovered",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P7.prototype,"hasAttributedBylineText",null);
_.W([_.Y("bylineText","hasAttributedBylineText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P7.prototype,"showBylineText",null);_.W([_.yd({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],P7);
_.a(P7,"ytd-grid-video-renderer",function(){if(Pvn!==void 0)return Pvn;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Pvn=I},{mode:_.Qd("kevlar_poly_si_batch_j047")?1:2});var Cvu;var KF=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.skipRoundingTop=!1;I.disableTopPadding=!1;I.amsterdamEnabled=_.l("enable_desktop_amsterdam_info_panels");I.extractOverlay=!1;return I};
_.E(KF,_.k);KF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
KF.prototype.onClick=function(I){var y,D=(y=this.data)==null?void 0:y.sourceEndpoint;!_.UP(_.r4(I),this.hostElement,["A".toString()])&&D&&_.lj(this.hostElement,"yt-navigate",{endpoint:D})};
_.mD.Object.defineProperties(KF.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 I;return!((I=this.data)==null||!I.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.data)==null?void 0:I.paragraphMaxLines)!=null?y:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],KF.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KF.prototype,"showVerticalDividers",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KF.prototype,"roundedContainer",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KF.prototype,"skipRoundingTop",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KF.prototype,"disableTopPadding",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],KF.prototype,"amsterdamEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KF.prototype,"extractOverlay",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],KF.prototype,"showMetadataAtTop",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],KF.prototype,"showMetadataBelowTitle",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],KF.prototype,"hasMenu",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.truncateParagraphs"),_.A("design:type",Object),_.A("design:paramtypes",[])],KF.prototype,"truncateParagraphs",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.paragraphMaxLines"),_.A("design:type",Number),_.A("design:paramtypes",[])],KF.prototype,"paragraphMaxLines",null);
_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],KF.prototype,"background",null);_.W([_.yd({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],KF);
_.a(KF,"ytd-info-panel-content-renderer",function(){if(Cvu!==void 0)return Cvu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Cvu=I},{mode:_.Qd("kevlar_poly_si_batch_j076")?1:2});var Baz;var i7e;var AJM;var $$P;var UH=function(){return _.k.apply(this,arguments)||this};
_.E(UH,_.k);UH.prototype.computeStyle=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],UH.prototype,"style_",void 0);_.W([_.I6({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],UH);
_.a(UH,"yt-channel-thumbnail-with-link-renderer",function(){if($$P===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;AJM===void 0&&(AJM=document.createElement("template"));var F=AJM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);$$P=I}I=$$P;return I},{mode:2});var rm=function(){return _.k.apply(this,arguments)||this};
_.E(rm,_.k);rm.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"}}}};
rm.prototype.computeTitleStyle=function(I){return I||null};
rm.prototype.computeAvatarStyle=function(I){return I||null};
rm.prototype.computeShowNavigationButton=function(I,y){return!(I==null||!I.navigationButton||y)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rm.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.A("design:type",String)],rm.prototype,"titleStyle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.A("design:type",String)],rm.prototype,"avatarStyle",void 0);_.W([_.M(),_.A("design:type",Boolean)],rm.prototype,"hideNavigationButton",void 0);_.W([_.yd({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],rm);
_.a(rm,"ytd-rich-list-header-renderer",function(){if(i7e!==void 0)return i7e;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return i7e=I},{mode:_.Qd("kevlar_poly_si_batch_j058")?1:2});var j9=function(){return _.k.apply(this,arguments)||this};
_.E(j9,_.k);j9.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]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],j9.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],j9.prototype,"isSearch",void 0);_.W([_.yd({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],j9);
_.a(j9,"ytd-preview-card-renderer",function(){if(Baz!==void 0)return Baz;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Baz=I},{mode:1});var b7z;var o2=function(){return _.k.apply(this,arguments)||this};
_.E(o2,_.k);o2.prototype.configureRendererStamper=function(){return{"data.menu":bz}};
o2.prototype.dataChanged=function(){var I=this.get("colorExtractionPalette.section1Color",this.data);I=_.Vp(I);_.pg(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":I})};
o2.prototype.computeCardStyle=function(I){return this.get("style.value",I)||null};
o2.prototype.dataChanged=o2.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],o2.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],o2.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.A("design:type",String)],o2.prototype,"cardStyle",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],o2.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],o2);
_.a(o2,"ytd-compact-channel-recommendation-card-renderer",function(){if(b7z!==void 0)return b7z;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return b7z=I},{mode:1});var H7g;var ei_;var N1=function(){var I=_.k.apply(this,arguments)||this;I.alignAuto=!1;I.collapsed=!0;I.isToggled=!1;I.alwaysCollapsed=!1;I.canToggle=!0;I.collapsedHeight=80;I.disableToggle=!1;I.alwaysToggleable=!1;I.reversed=!1;I.shouldUseNumberOfLines=!1;I.recomputeOnResize=!1;I.canToggleJobId=0;I.lastReversed=!1;return I};
_.E(N1,_.k);_.L=N1.prototype;_.L.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.L.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.L.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var I=_.XB(this.hostElement),y=I.childNodes,D=document.createDocumentFragment(),F=I.childNodes.length-1;F>=0;F--)_.XB(D).appendChild(y[F]);_.l("enable_shadydom_free_scoped_node_methods")?_.QU(this.hostElement).appendChild(D):I.appendChild(D)}};
_.L.ready=function(){var I=this;_.wy(function(){I.initChildrenObserver()},1)};
_.L.attached=function(){var I;(I=this.resizeObserver)==null||I.observe(this.content)};
_.L.detached=function(){this.detachObserver()};
_.L.toggle=function(I,y){this.canToggle&&(this.isToggled=y,_.lj(this.hostElement,"yt-refit"),I&&I.stopPropagation())};
_.L.reset=function(){this.childrenChanged()};
_.L.onIronResize=function(){this.recomputeOnResize&&!_.l("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.L.computeIsMoreVisible=function(I,y){return I&&!y};
_.L.computeShouldUseNumberOfLines=function(I){try{return!!I&&window.CSS.supports("-webkit-line-clamp","1")}catch(y){}return!1};
_.L.computeIsLessVisible=function(I,y){return I&&y};
_.L.observeCollapsedHeightAndMaxLines=function(){var I=this.collapsedHeight,y=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.pg(this.hostElement,{"--ytd-expander-max-lines":""+y,"--ytd-expander-collapsed-height":""}):_.pg(this.hostElement,{"--ytd-expander-collapsed-height":I+"px","--ytd-expander-max-lines":""})};
_.L.handleMoreTap=function(I){this.disableToggle||(_.lj(this.hostElement,"yt-expander-more-tapped"),this.toggle(I,!0))};
_.L.handleLessTap=function(I){_.lj(this.hostElement,"yt-expander-less-tapped");this.toggle(I,!1)};
_.L.initChildrenObserver=function(){var I=this;this.observer=new MutationObserver(function(){I.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.l("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.n4(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var y;(y=I.resizeThrottle)==null||y.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.L.childrenChanged=function(){var I=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){uO(function(){I.canToggleJobId=0;I.calculateCanCollapse()})}))};
_.L.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};
_.L.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.L.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("collapsed-changed",this.collapsed))};
_.L.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("is-toggled-changed",this.isToggled))};
_.L.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("can-toggle-changed",this.canToggle))};
_.mD.Object.defineProperties(N1.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
N1.prototype.canToggleChangedForBinding=N1.prototype.canToggleChangedForBinding;N1.prototype.isToggledChangedForBinding=N1.prototype.isToggledChangedForBinding;N1.prototype.collapsedChangedForBinding=N1.prototype.collapsedChangedForBinding;N1.prototype.observeCollapsedHeightAndMaxLines=N1.prototype.observeCollapsedHeightAndMaxLines;N1.prototype.onIronResize=N1.prototype.onIronResize;N1.prototype.reversedChanged=N1.prototype.reversedChanged;N1.prototype.toggledChanged=N1.prototype.toggledChanged;
N1.prototype.alwaysToggleableChanged=N1.prototype.alwaysToggleableChanged;_.W([_.Q(_.sD),_.A("design:type",Object)],N1.prototype,"ironResizableBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],N1.prototype,"alignAuto",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],N1.prototype,"collapsed",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"isToggled",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"alwaysCollapsed",void 0);
_.W([_.M(),_.A("design:type",Object)],N1.prototype,"canToggle",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"collapsedHeight",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"disableToggle",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"alwaysToggleable",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"reversed",void 0);_.W([_.M(),_.A("design:type",Number)],N1.prototype,"maxNumberOfLines",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.A("design:type",Object)],N1.prototype,"shouldUseNumberOfLines",void 0);_.W([_.M(),_.A("design:type",Object)],N1.prototype,"recomputeOnResize",void 0);_.W([_.a0("#content"),_.A("design:type",HTMLDivElement)],N1.prototype,"content",void 0);_.W([_.Bp("alwaysToggleable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"alwaysToggleableChanged",null);
_.W([_.Bp("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"toggledChanged",null);_.W([_.Y("canToggleJobId"),_.A("design:type",Object),_.A("design:paramtypes",[])],N1.prototype,"isResetting",null);_.W([_.ke("reversed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"reversedChanged",null);
_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"onIronResize",null);_.W([_.ke("maxNumberOfLines","collapsedHeight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"observeCollapsedHeightAndMaxLines",null);_.W([_.ke("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"collapsedChangedForBinding",null);
_.W([_.ke("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"isToggledChangedForBinding",null);_.W([_.ke("canToggle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N1.prototype,"canToggleChangedForBinding",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-expander"})],N1);
_.a(N1,"ytd-expander",function(){if(ei_!==void 0)return ei_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ei_=I},{mode:1});var hh=function(){return _.k.apply(this,arguments)||this};
_.E(hh,_.k);hh.prototype.computeIsCarousel=function(I){return!!I.isCarousel};
hh.prototype.observeLightsourcePalette=function(){var I,y=(I=this.data)==null?void 0:I.vibrantsourceColorPaletteData;y&&_.Af(this.hostElement,y)};
hh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
hh.prototype.observeLightsourcePalette=hh.prototype.observeLightsourcePalette;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hh.prototype,"data",void 0);_.W([_.M({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],hh.prototype,"isCarousel",void 0);
_.W([_.ke("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hh.prototype,"observeLightsourcePalette",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],hh);
_.a(hh,"ytd-media-upsell-renderer",function(){if(H7g!==void 0)return H7g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H7g=I},{mode:2});var Tau;var xZ=function(){var I=_.k.apply(this,arguments)||this;I.JSC$15345_playerEvents=new Map;I.listeningToPlayer=!1;I.startX=0;I.active=!1;I.shouldShowButtons=_.l("web_buttons_hidden_killswitch");I.isHighlighted=!1;I.useHighlightStyling=_.l("web_enable_deeper_metadata_highlight_styling");I.enableProblemWalkthrough=_.l("problem_walkthrough_sd");return I};
_.E(xZ,_.k);_.L=xZ.prototype;
_.L.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}}}}}};
_.L.created=function(){this.JSC$15345_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.L.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.MX(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.MX(this,this.onActiveUpdate))};
_.L.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.MX(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.MX(this,this.onActiveUpdate))};
_.L.onDataChanged=function(){this.removePlayerListeners()};
_.L.onColorPaletteChange=function(){var I={},y;if(_.Jt()==="USER_INTERFACE_THEME_DARK"&&((y=this.data)==null?0:y.darkColorPalette)){var D=this.data.darkColorPalette;I["--ytd-macro-markers-list-item-background-color"]=_.Z7(this.get("section2Color",D))}else{var F;_.Jt()==="USER_INTERFACE_THEME_LIGHT"&&((F=this.data)==null?0:F.lightColorPalette)&&(D=this.data.lightColorPalette,I["--ytd-macro-markers-list-item-background-color"]=_.Z7(this.get("section3Color",D)))}D?(I["--ytd-macro-markers-list-item-title-color"]=
_.Z7(this.get("primaryTitleColor",D)),I["--ytd-macro-markers-list-item-secondary-color"]=_.Z7(this.get("secondaryTitleColor",D)),I["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Z7(this.get("section1Color",D)),this.customButtonProperties={customColors:{color:_.Z7(this.get("primaryTitleColor",D))}},this.useColorSampling=!0):(I["--ytd-macro-markers-list-item-background-color"]="initial",I["--ytd-macro-markers-list-item-title-color"]="initial",I["--ytd-macro-markers-list-item-secondary-color"]=
"initial",I["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.pg(this.hostElement,I)};
_.L.onEndpointMouseDown=function(I){this.startX=I.clientX};
_.L.onEndpointClick=function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1){if(y.startX!==I.clientX)return I.preventDefault(),O.return();y.data&&y.ytRendererBehavior.logExplicitClick(y.data);if(!y.seekWithAnimationOnClick)return O.jumpTo(0);if(I.button!==0||I.shiftKey||I.altKey||I.metaKey||I.ctrlKey||_.UP(_.r4(I),y.hostElement,["BUTTON".toString()]))return O.return();I.stopPropagation();I.preventDefault();return y.data?O.yield(_.hZ().getPlayerPromise(),3):O.return()}D=O.yieldResult;
R=(F=_.u(y.data.onTap,_.t9))==null?void 0:F.startTimeSeconds;R!==void 0&&D.seekToTimeWithAnimation(R*1E3,_.rY(y.data.title));_.Cj(O)})};
_.L.computeLayout=function(I){return I};
_.L.computeIsHighlighted=function(I){return!!I};
_.L.computeCarouselType=function(I){return I};
_.L.hideCarousel=function(I){return this.hideThumbnail(I)};
_.L.hideThumbnail=function(I){return this.enableProblemWalkthrough&&I!==null&&I==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.L.onRepeatButtonToggle=function(I){var y=this;I.detail.toggled&&_.hZ().getPlayerPromise().then(function(D){y.ytPlayerListenerBehavior.listenToPlayerEvents(D,y.JSC$15345_playerEvents);y.listeningToPlayer=!0})};
_.L.onLoopRangeChange=function(I){var y=_.XB(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(y){var D=y.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",y.polymerController.data);if(D){var F=Number(D.endTimeMs);if(Number(D.startTimeMs)!==(I==null?void 0:I.startTimeMs)||F!==(I==null?void 0:I.endTimeMs))y.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.L.removePlayerListeners=function(){var I=this;this.listeningToPlayer&&_.hZ().getPlayerPromise().then(function(y){I.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,I.JSC$15345_playerEvents);I.listeningToPlayer=!1})};
_.L.onActiveUpdate=function(I){this.active=I.detail.active};
xZ.prototype.onColorPaletteChange=xZ.prototype.onColorPaletteChange;xZ.prototype.onDataChanged=xZ.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],xZ.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],xZ.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],xZ.prototype,"useCustomColors",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xZ.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],xZ.prototype,"shouldShowButtons",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.A("design:type",String)],xZ.prototype,"layout",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.A("design:type",Object)],xZ.prototype,"isHighlighted",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xZ.prototype,"useHighlightStyling",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xZ.prototype,"enableProblemWalkthrough",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.A("design:type",String)],xZ.prototype,"carouselType",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],xZ.prototype,"useColorSampling",void 0);_.W([_.M(),_.A("design:type",Boolean)],xZ.prototype,"seekWithAnimationOnClick",void 0);_.W([_.M(),_.A("design:type",Object)],xZ.prototype,"customButtonProperties",void 0);
_.W([_.a0("#repeat-button"),_.A("design:type",HTMLElement)],xZ.prototype,"repeatButton",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xZ.prototype,"onDataChanged",null);_.W([_.ke("data.lightColorPalette","data.darkColorPalette"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xZ.prototype,"onColorPaletteChange",null);
_.W([_.yd({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],xZ);
_.a(xZ,"ytd-macro-markers-list-item-renderer",function(){if(Tau!==void 0)return Tau;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Tau=I},{mode:1});var sEG;var VNG;var l1=function(){return _.k.apply(this,arguments)||this};
_.E(l1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],l1.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],l1);
_.a(l1,"ytd-title-and-button-list-header-renderer",function(){if(VNG!==void 0)return VNG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return VNG=I},{mode:1});var Z7f;var g2g=new _.uk("BUTTON_RENDERER_TOKEN");_.u1=_.d(function(I){var y=_.nR().resolve(g2g);return _.t(y,Object.assign({},I,{overrides:I.buttonOverrides}))},"Ya");var Ira=_.d(function(I){var y=I.data,D=_.jE(I.useSquareAspectRatio,!1);return _.t("dismissed-mini-game-card-view-model",null,_.t(_.U,{cond:function(){var F,R;return(F=y().responseText)==null?void 0:(R=F.runs)==null?void 0:R.length},
then:function(){var F={};return _.t("div",{class:_.XH("yt-mini-game-card-view-model__dismissed-card",(F["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!D()},F["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.l("web_game_card_force_2_by_3")},F["yt-mini-game-card-view-model--dismissed-square-card"]=D,F))},_.t("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.t(_.U,{cond:function(){return y().responseText.runs[0].text},
then:function(R){return _.t("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:R},R)}}),_.t(_.aP,{data:function(){return y().buttons}},{buttonRenderer:_.u1,
buttonViewModel:_.My})))}}))},"Za");var yQR=_.d(function(I){var y=I.data;return _.t("br-nz-badge-shape",{class:_.XH(function(){return VPW(y().brNzRatingBadgeType)}),
role:function(){return y().accessibilityText?"img":void 0},
"aria-label":function(){return y().accessibilityText}},function(){var D;
return(D=y())==null?void 0:D.text})},"$a");_.q1=_.d(function(I){var y=function(){var D=I.data(),F,R,O,w,v;if(D){var P=!((F=I.workaroundShortsIsThumbnailBadge)==null||!F.call(I));F=(R=I.modern)==null?void 0:R.call(I);R=(O=I.numBadgesInRow)==null?void 0:O.call(I);O=(w=I.clipTextOverflow)==null?void 0:w.call(I);w=(v=I.inheritTypography)==null?void 0:v.call(I);var K;a:switch(D.badgeStyle){case "BADGE_OVERLAY":v=!0;break a;default:v=!1}D={type:P?17:Zke(D.badgeStyle),brNzRatingBadgeType:g9L(D.badgeStyle),text:D.badgeText,icon:D.iconName,isOverlay:v,
modern:F||_.l("web_modern_badge_view_model"),accessibilityText:D.accessibilityLabel||((K=_.u(D.rendererContext,_.W_))==null?void 0:K.label),numBadgesInRow:R,clipTextOverflow:O,shouldInheritTypography:w}}else D=void 0;return D};
return _.t("yt-badge-view-model",{class:_.XH("ytBadgeViewModelHost",I.class)},_.t(_.I8,null,_.t(_.Vj,{when:function(){var D;return!((D=y())==null||!D.brNzRatingBadgeType)}},function(){return _.t(yQR,{data:function(){return y()}})}),_.t(_.Vj,{when:function(){return!!y()&&!y().brNzRatingBadgeType}},function(){return _.t(_.PQ,{data:function(){return y()}})})))},"ab");
_.q1.idomCompat=!0;var vte=_.d(function(I){I=_.o6(I,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var y=I.data,D=I.useFullWidth,F=I.isDesktopWeb,R=I.addSearchResultTopMargin,O=function(){return y().layout},w=function(){return y().title},v=function(){return y().metadataText?y().metadataText:y().genre},P=function(){return y().channelName},K=function(){return y().image},r=function(){return y().colorPalette},N=function(){return y().actionButton},h=function(){return y().overflowButton},
x=function(){return y().avatar},q=function(){return y().ageRating},X=function(){var B={};
B=_.XH("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(B["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return F()},B));
return _.t("div",{class:B},_.t(Dbg,{imageData:K,colorPalette:r}),_.t(F8f,{onTap:function(){return y().onTap},
imageData:K,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:F}),_.t(_.U,{cond:function(){return!F()},
then:function(){return _.t(_.ni,null,_.t(RUM,{layout:O,colorPalette:r,isDesktopWeb:F,overflowButton:h,avatar:x,onTap:function(){return y().onTap},
genre:v,title:w,channelName:P}),_.t(OsM,{actionButton:N}))}}))},f=function(){var B={};
B=_.XH((B["yt-mini-game-card-view-model--search-result-desktop"]=function(){return F()},B["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!F()},B["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return R()},B));
return _.t("div",{class:B},X(),_.t(L8P,{description:function(){return y().description},
isDesktopWeb:F,title:w,genre:v,onTap:function(){return y().onTap},
actionButton:N,overflowButton:h,avatar:x,channelName:P}))},m=function(){var B={};
B=_.XH("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(B["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return F()},B["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return F()&&y().width===135},B["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return F()},B["yt-mini-game-card-view-model--big-metadata-font"]=function(){return y().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},B["yt-mini-game-card-view-model--use-full-width"]=
function(){return D()},B["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.l("web_game_card_force_2_by_3")},B));
return _.t("div",{class:B},_.t(JQR,{colorPalette:r,isDesktopWeb:F,onTap:function(){return y().onTap},
accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
actionButton:N,imageData:K}),_.t(RUM,{layout:O,colorPalette:r,isDesktopWeb:F,overflowButton:h,avatar:x,onTap:function(){return y().onTap},
genre:v,title:w,channelName:P}),_.t(_.U,{cond:q,then:function(C){return _.t(wXn,{ageRating:C})}}))},z=function(){var B={};
B=_.XH("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(B["yt-mini-game-card-view-model--square-card-desktop"]=function(){return F()},B["yt-mini-game-card-view-model--use-full-width"]=function(){return D()},B));
return _.t("div",{class:B},_.t(F8f,{onTap:function(){return y().onTap},
imageData:K,accessibilityText:function(){return y().accessibilityText},
overlayBadgeText:function(){return y().overlayBadgeText},
iconName:function(){return y().iconName},
unplayableInlinePlaybackIconName:function(){return y().unplayableInlinePlaybackIconName},
isDesktopWeb:F}),_.t(RUM,{layout:O,colorPalette:r,isDesktopWeb:F,overflowButton:h,avatar:x,onTap:function(){return y().onTap},
genre:v,title:w,channelName:P}),_.t(_.U,{cond:q,then:function(C){return _.t(wXn,{ageRating:C})}}))};
return _.t("mini-game-card-view-model",{class:I.className},_.t(_.I8,null,_.t(_.Vj,{when:function(){return O()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return m()}),_.t(_.Vj,{when:function(){return O()==="MINI_APP_LAYOUT_SQUARE"}},function(){return z()}),_.t(_.Vj,{when:function(){return O()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return f()})))},"bb");
vte.idomCompat=!0;var OsM=_.d(function(I){var y=_.jE(I.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.t(_.aP,{data:I.actionButton},{buttonViewModel:function(D){return _.t("div",{class:y},_.t(_.My,{data:D.data}))}})},"cb"),F8f=_.d(function(I){var y=I.onTap;
var D=I.imageData;var F=I.accessibilityText;var R=I.overlayBadgeText;var O=I.iconName;var w=I.unplayableInlinePlaybackIconName;I=I.isDesktopWeb;return _.t(_.Yp,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:y},_.t(_.UE,{data:D,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(F==null?void 0:F())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.t(SQn,{overlayBadgeText:R,iconName:O,unplayableInlinePlaybackIconName:w,isDesktopWeb:I}))},"db"),SQn=_.d(function(I){var y=I.overlayBadgeText;
var D=I.iconName;var F=I.unplayableInlinePlaybackIconName;var R=I.isDesktopWeb;return _.t("div",{class:"yt-mini-game-card-view-model__badge-container"},_.t(_.U,{cond:D,then:function(O){return _.t("div",{class:"yt-mini-game-card-view-model__badge"},_.t("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.t(_.mj,{icon:O,className:"yt-mini-game-card-view-model__icon",size:12}),_.t("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},y)))}}),_.t(_.U,{cond:function(){return!D()&&
y()},
then:function(){return _.t("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},y)}}),_.t(_.U,{cond:function(){return F()&&R()},
then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.t(_.mj,{icon:F,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),Dbg=_.d(function(I){var y=I.colorPalette;
var D=I.imageData;var F=function(){return y().vibrantColorPalette?y().vibrantColorPalette.section2Color:y().sectionTwoColor};
return _.t(_.ni,null,_.t("div",{class:"yt-mini-game-card-view-model__background-base",style:_.p4({"background-color":function(){return gY(F(),"1")}})}),_.t("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.p4({"background-image":function(){return"url("+D().sources[0].url+")"}})}),_.t("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.p4({background:function(){return"linear-gradient(180deg,\n    "+gY(F(),".8")+" 0%,\n    "+gY(F(),".4")+" 25%,\n    "+gY(y().vibrantColorPalette?y().vibrantColorPalette.section4Color:y().sectionFourColor,".8")+" 100%)"}})}))},"fb"),RUM=_.d(function(I){var y=I.layout;
var D=I.colorPalette;var F=I.overflowButton;var R=I.avatar;var O=I.onTap;var w=I.title;var v=I.channelName;var P=I.genre;var K=function(){var r;return y()!=="MINI_APP_LAYOUT_SQUARE"&&((r=D())==null?0:r.textPrimaryColor)?"color: "+gY(D().textPrimaryColor,".7"):""};
return _.t("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.t(_.U,{cond:R,then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__avatar"},_.t(_.aP,{data:R},{avatarViewModel:_.LF}))}}),_.t(_.Yp,{command:O,
className:"yt-mini-game-card-view-model__metadata-details"},_.t("h3",{class:"yt-mini-game-card-view-model__title",title:w},w),_.t(_.U,{cond:R,then:function(){return _.t("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.t("span",{class:"yt-mini-game-card-view-model__genre",title:v,style:K},v),_.t("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:K},P))},
else:function(){return _.t("span",{class:"yt-mini-game-card-view-model__genre",title:P},P)}})),_.t("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.t(_.aP,{data:F},{buttonViewModel:function(r){var N=r.data;
return _.t(_.My,{data:function(){return Object.assign({},N(),{customFontColor:y()==="MINI_APP_LAYOUT_SINGLETON"?N().customFontColor:void 0})}})}})))},"gb"),JQR=_.d(function(I){var y=I.colorPalette;
var D=I.isDesktopWeb;var F=I.onTap;var R=I.accessibilityText;var O=I.overlayBadgeText;var w=I.iconName;var v=I.unplayableInlinePlaybackIconName;var P=I.actionButton;I=I.imageData;return _.t("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.t(Dbg,{imageData:I,colorPalette:y}),_.t(F8f,{onTap:F,imageData:I,accessibilityText:R,overlayBadgeText:O,iconName:w,unplayableInlinePlaybackIconName:v,isDesktopWeb:D}),_.t(_.U,{cond:function(){return P==null?void 0:P()},
then:function(){return _.t(OsM,{actionButton:P})}}))},"hb"),L8P=_.d(function(I){var y=I.description;
var D=I.isDesktopWeb;var F=I.title;var R=I.genre;var O=I.onTap;var w=I.actionButton;var v=I.overflowButton;var P=I.avatar;I=I.channelName;var K={};K=_.XH("yt-mini-game-card-view-model--search-result-metadata-wrapper",(K["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=D,K["yt-mini-game-card-view-model--show-unplayable-on-hover"]=D,K["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!D()},K));
var r={};r=_.XH("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 _.t("div",{class:K},_.t("div",{class:r},_.t(_.Yp,{command:O,className:"yt-mini-game-card-view-model__metadata-details"},_.t("h3",{class:"yt-mini-game-card-view-model__title",title:F},F),_.t("span",{class:"yt-mini-game-card-view-model__genre",title:R},R)),_.t(OsM,{actionButton:w,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.t("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.t(_.aP,{data:v},{buttonViewModel:_.My}))),_.t("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.t("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.t("div",{class:"yt-mini-game-card-view-model__avatar"},_.t(_.aP,{data:P},{avatarViewModel:function(N){var h=N.data;return _.t(_.LF,{data:function(){return Object.assign({},h(),{avatarImageSize:D()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.t(_.Yp,{command:O,
className:"yt-mini-game-card-view-model__description"},_.t("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},I)),_.t(_.Yp,{command:O,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.t("div",null)))),_.t(_.U,{cond:D,then:function(){return _.t(_.Yp,{command:O,className:"yt-mini-game-card-view-model__description"},y)}}))},"ib"),wXn=_.d(function(I){var y=I.ageRating;
return _.t("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.t(_.UE,{data:function(){return{sources:[{url:y().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.t(_.q1,{data:function(){return{badgeText:y().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.NK(vte,"mini-game-card-view-model",{props:{data:_.om,className:_.om,useFullWidth:_.om,isDesktopWeb:_.om,addSearchResultTopMargin:_.om}});_.NK(Ira,"dismissed-mini-game-card-view-model",{props:{data:_.om,useSquareAspectRatio:_.om}});var EH=function(){var I=_.k.apply(this,arguments)||this;I.isSearch=!1;I.isRichGrid=!1;return I};
_.E(EH,_.k);_.L=EH.prototype;_.L.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.L.dismissibleItemOnYtServiceRequestSent=function(I,y){y.actions&&this.dismissibleItemProcessActions(I,y.actions)};
_.L.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.L.dataChanged=function(){this.dismissibleItemReset()};
_.L.dismissibleItemProcessActions=function(I,y){for(var D=0;D<y.length;D++){var F=y[D];_.u(F,_.iE)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.u(F,_.iE)),I.stopPropagation())}};
_.L.dismissibleItemHandleReplaceEnclosingAction=function(I){this.dismissedRenderer=I.item;this.isDismissed=!0};
_.mD.Object.defineProperties(EH.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var I;return!!this.data&&!((I=this.dismissedRenderer)==null?0:I.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.dismissedRenderer)==null||!I.notificationMultiActionRenderer)}}});
EH.prototype.dataChanged=EH.prototype.dataChanged;EH.prototype.dismissibleItemOnRequestSent=EH.prototype.dismissibleItemOnRequestSent;EH.prototype.dismissibleItemOnYtServiceRequestSent=EH.prototype.dismissibleItemOnYtServiceRequestSent;_.W([_.M(),_.A("design:type",Object)],EH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],EH.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],EH.prototype,"isDismissed",void 0);
_.W([_.M(),_.A("design:type",Object)],EH.prototype,"dismissedRenderer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],EH.prototype,"isRichGrid",void 0);_.W([_.Y("data.layout"),_.A("design:type",Object),_.A("design:paramtypes",[])],EH.prototype,"useSquareAspectRatio",null);_.W([_.Y("data","dismissedRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],EH.prototype,"showCard",null);
_.W([_.Y("data","dismissedRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],EH.prototype,"showDismissed",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],EH.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],EH.prototype,"dismissibleItemOnRequestSent",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EH.prototype,"dataChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],EH);
_.a(EH,"ytd-mini-game-card-view-model",function(){if(Z7f!==void 0)return Z7f;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Z7f=I},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var tsn;var PfP;var GR=function(){return _.MQ.apply(this,arguments)||this};
_.E(GR,_.MQ);GR.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
GR.prototype.getContinuationUrl=function(I){var y={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.qC(I,y)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GR.prototype,"data",void 0);_.W([_.I6({is:"yt-reload-continuation",noInjection:!0})],GR);var K8O;var UbM;var XL=function(){var I=_.k.apply(this,arguments)||this;I.notificationData={};return I};
_.E(XL,_.k);_.L=XL.prototype;_.L.isMenuExpanded=function(I){return I&&I.length<=1?"undefined":"false"};
_.L.dataChanged_=function(){this.selected=void 0;var I=this.computeSelectedIndex_(this.data);I>=0&&(this.selected=I);I=this.data&&this.data.length>1;_.Ye(this.hostElement,"has-items",I);_.XB(this.hostElement).querySelector("#label").tabIndex=I?0:-1};
_.L.onDropdownOpen=function(){var I=_.VO();if(this.parentTrackingParams&&this.data){var y=_.AC(this.parentTrackingParams);this.data.forEach(function(D){I&&y&&D.trackingParams&&(D=_.AC(D.trackingParams),_.Oc(I,y,D),_.wH(I,[D]))})}else this.parentTrackingParams||_.tq(new _.g6("No parent tracking params passed in for yt-dropdown-menu."))};
_.L.hasNotification=function(I){var y;if(I.targetId&&((y=this.notificationData)==null?0:y.targetId)){var D;return I.targetId===((D=this.notificationData)==null?void 0:D.targetId)}};
_.L.computeSelectedIndex_=function(I){if(I)for(var y=0,D=I.length;y<D;y++)if(I[y].selected)return y;return-1};
_.L.computeLabel_=function(I){return this.data&&I!=void 0?this.data[I].title:""};
_.L.computeShowIcon_=function(I,y){return!y&&!!I};
_.L.computeVerticalOffset_=function(I){return I?36:0};
_.L.computeEndpoint_=function(I){return I.endpoint||I.navigationEndpoint};
_.L.onLabelClick_=function(I){this.data&&this.data.length<=1?I.stopPropagation():this.menuExpanded="true"};
_.L.onIronActivate_=function(I){I=I.detail.item;var y=_.XB(this.hostElement).querySelector("#repeat").itemForElement(I);if(y&&y.trackingParams){var D=_.VO(),F=_.AC(y.trackingParams);D&&_.SI(D,F)}if(y&&y.serviceEndpoint)_.l("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(y.serviceEndpoint):_.E$(this.hostElement,[y.serviceEndpoint]),_.lj(this.hostElement,"yt-playlist-reloading");else a:{if((y=I.querySelector("yt-supported-renderers"))&&
(y=y.rendererElement)&&y.is=="yt-reload-continuation"){y.trigger();break a}(I=I.querySelector("yt-reload-continuation"))&&I.trigger()}};
_.L.onTap_=function(I){I.preventDefault()};
_.L.onItemTap_=function(I){this.ytEndpointBehavior.onEndpointTap_(I)};
_.L.onLinkFocus_=function(I){try{var y=I.target}catch(F){}if(y){var D=y.querySelector("tp-yt-paper-item");D&&_.v4(this,"focus",function(){D.focus()})}};
_.L.onMenuClose_=function(){this.menuExpanded="false"};
_.L.isLabelIconActive_=function(I){return I==="true"};
_.L.computeHasSubtitle_=function(I){return!!I};
_.L.computeHrefForItem_=function(I){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(I))};
_.L.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
_.mD.Object.defineProperties(XL.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
XL.prototype.onMenuClose_=XL.prototype.onMenuClose_;XL.prototype.onTap_=XL.prototype.onTap_;XL.prototype.onIronActivate_=XL.prototype.onIronActivate_;XL.prototype.onDropdownOpen=XL.prototype.onDropdownOpen;XL.prototype.dataChanged_=XL.prototype.dataChanged_;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],XL.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],XL.prototype,"ytEndpointBehavior",void 0);
_.W([_.M(),_.A("design:type",Array)],XL.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],XL.prototype,"parentTrackingParams",void 0);_.W([_.M(),_.A("design:type",Object)],XL.prototype,"selected",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],XL.prototype,"useLabel",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],XL.prototype,"useComputedAriaLabel",void 0);_.W([_.M(),_.A("design:type",String)],XL.prototype,"icon",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],XL.prototype,"iconLabel",void 0);_.W([_.M(),_.A("design:type",String)],XL.prototype,"ariaLabel",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],XL.prototype,"disabled",void 0);_.W([_.M({computed:"isMenuExpanded(data)"}),_.A("design:type",String)],XL.prototype,"menuExpanded",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],XL.prototype,"closeOnActivate",void 0);
_.W([_.M({reflectToAttribute:!0,value:_.l("web_modern_buttons")}),_.A("design:type",Boolean)],XL.prototype,"modernButtons",void 0);_.W([_.M(),_.A("design:type",Object)],XL.prototype,"notificationData",void 0);_.W([_.Y("ariaLabel, selected"),_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],XL.prototype,"computedAriaLabel",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XL.prototype,"dataChanged_",null);
_.W([_.z4("paper-dropdown-open"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],XL.prototype,"onDropdownOpen",null);_.W([_.z4("iron-activate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],XL.prototype,"onIronActivate_",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],XL.prototype,"onTap_",null);
_.W([_.z4("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],XL.prototype,"onMenuClose_",null);_.W([_.I6({is:"yt-dropdown-menu",disableElementRegistration:!0})],XL);
_.a(XL,"yt-dropdown-menu",function(){if(UbM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;K8O===void 0&&(K8O=document.createElement("template"));var F=K8O;D.call(y,F.content.cloneNode(!0),I.content.firstChild);UbM=I}I=UbM;return I},{mode:2});var QC=function(){var I=_.k.apply(this,arguments)||this;I.hasNotification=!1;return I};
_.E(QC,_.k);QC.prototype.computeId=function(I){return I};
QC.prototype.computeHorizontalAlign=function(I){return I?"right":"left"};
QC.prototype.computeAccessibilityLabel=function(I){var y,D;return((y=I.accessibility)==null?void 0:(D=y.accessibilityData)==null?void 0:D.label)||null};
QC.prototype.notificationDataChanged=function(){var I;this.hasNotification=!!this.notificationData&&!((I=this.data)==null?0:I.icon)};
QC.prototype.notificationDataChanged=QC.prototype.notificationDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.wi.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],QC.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QC.prototype,"data",void 0);_.W([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],QC.prototype,"id",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],QC.prototype,"isRightAligned",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],QC.prototype,"disabled",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],QC.prototype,"closeOnActivate",void 0);_.W([_.M(),_.A("design:type",Object)],QC.prototype,"notificationData",void 0);_.W([_.M(),_.A("design:type",Object)],QC.prototype,"hasNotification",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],QC.prototype,"useComputedAriaLabel",void 0);_.W([_.ke("notificationData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QC.prototype,"notificationDataChanged",null);_.W([_.I6({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],QC);
_.a(QC,"yt-sort-filter-sub-menu-renderer",function(){if(PfP===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;tsn===void 0&&(tsn=document.createElement("template"));var F=tsn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);PfP=I}I=PfP;return I},{mode:2});var rQf=_.d(function(I){var y=I.data;var D=_.YY(function(){var O=y().onTap;(O=_.u(O,_.Iu))&&_.nR().resolve(_.MC).resolveCommand(O);return!1}),F=function(){return{sources:[{url:y().thumbnailUrl,
width:120,height:90}]}},R=function(){return y().rating&&y().ratingA11yLabel&&y().reviewsCount&&y().reviewsCountA11yLabel};
return _.t("place-data-view-model",null,_.t(_.U,{cond:function(){return y().placeName&&y().placeCategory},
then:function(){return _.t("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":D},_.t(_.UE,{data:F,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.t(_.Yp,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return y().onTap}},_.t("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return y().placeName}},function(){return y().placeName})),_.t("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.t(_.U,{cond:R,
then:function(){return _.t("div",{class:_.XH("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.t("span",{class:"score",title:function(){return y().ratingA11yLabel}},function(){return y().rating}),_.t("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.t(_.mj,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.t("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return y().reviewsCountA11yLabel}},function(){return y().reviewsCount}))},
else:function(){return _.t("div",{class:_.XH("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.t("div",{class:_.XH("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.t("span",{class:"category",
title:function(){return y().placeCategory}},function(){return y().placeCategory}))))}}))},"kb");
rQf.idomCompat=!0;_.NK(rQf,"place-data-view-model",{props:{data:_.om}});var jHM=new _.uk("INLINE_PLAYBACK_HOOK_TOKEN");var ot_=ep({sharedUi:bfu});_.LV=TJ(ot_)(ot_.sharedUi,{animatedThumbnailEnabledSelector:function(I){return I.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(I){return I.inlinePreviewEnabled},
currentPageTypeSelector:function(I){return I.currentPageType},
currentPageSubTypeSelector:function(I){return I.currentPageSubType},
persistentPanelVisibleSelector:function(I){return I.persistentPanelVisible}});var N3e=function(I){this.setActiveSlideIndex=I;this.jobIds=[];this.isSlideshowPlaying=!1},lrP=function(I,y){I.isSlideshowPlaying||(I.isSlideshowPlaying=!0,hUz(I),xbg(I,y,0))},hUz=function(I){_.qK(_.w2,function(){I.setActiveSlideIndex(0)},1)},xbg=function(I,y,D){I.jobIds.push(_.qK(_.w2,function(){var F=D<y-1?D+1:0;
I.setActiveSlideIndex(F);xbg(I,y,F)},1800))};var unf,Etg;unf=new _.uk("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.qQg=new _.uk("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Etg=new _.uk("COMMON_MARK_VIEW_MODEL_TOKEN");var Gwf=new _.uk("IMAGE_ON_LOAD_HANDLER_TOKEN");var XXW=_.d(function(I){return _.t("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.t(_.U,{cond:function(){var y;return(y=I.data())==null?void 0:y.thumbnail},
then:function(y){return _.t(_.UE,{data:y,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.QHW=_.d(function(I){var y=I.data;var D=I.lockupExperiments;I={};return _.t("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.t("div",{class:_.XH("ytThumbnailOverlayButtonViewModelButton",(I.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var F;return D&&((F=D())==null?void 0:F.useLegacySizedIconButton)},I))},_.t(_.aP,{data:function(){return y().overlayButton}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
buttonOverrides:function(){var R;return D&&((R=D())==null?0:R.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.QHW.idomCompat=!0;var YQg=_.d(function(I){return _.t("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.YY(function(y){y.preventDefault();return!1})},_.t(_.aP,{data:function(){return I.data().buttons}},{toggleButtonViewModel:function(y){return _.t("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.t(_.yJ,{data:y.data}))}}))},"nb");
YQg.idomCompat=!0;var fre=_.d(function(I){var y=function(){var D;return((D=_.u(I.data().rendererContext,_.W_))==null?void 0:D.label)||""};
return _.t("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.t(_.U,{cond:function(){return I.data().image},
then:function(){return _.t("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.t(_.UE,{data:function(){return I.data().image},
alt:y}))}}),_.t(_.U,{cond:function(){return I.data().text},
then:function(){return _.t("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return I.data().text})}}))},"ob");var ntP=_.LV.animatedThumbnailEnabledSelector,YZ=_.d(function(I){var y=[],D=function(){var h,x;return _.NwB((h=I.width)==null?void 0:h.call(I),(x=I.height)==null?void 0:x.call(I))},F=_.nR().resolve(_.fR(Gwf)),R=_.DF("yt-thumbnail-view-model",function(){y.push("elRef.value set");
var h;(h=I.playbackRef)==null||h.call(I,{thumbnailElRef:R,thumbnail:I.data().image,thumbnailOverlays:I.data().overlays,thumbnailSize:D()})});
_.LR(function(){y.push("onInit");_.tI(function(){y.push("onCleanup")})});
var O=_.dV(ntP),w=function(){var h,x;return(x=(h=I.aspectRatio)==null?void 0:h.call(I))!=null?x:0},v=function(){return(I.data().image?_.WTt(I.data().image):w())<=1&&w()===0},P=function(){return v()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},K=function(){R.value||_.tq(new _.g6("Thumbnail elRef.value is null",y.join("\n")));
F&&R.value&&F(R.value)},r=function(){var h,x;
return((h=I.hovered)==null?void 0:h.call(I))&&D()!=="large"&&((x=I.data().overlays)==null?void 0:x.some(function(q){return _.u(q,qCc)}))},N={};
return _.t("yt-thumbnail-view-model",{class:_.XH("ytThumbnailViewModelHost",I.className,function(){return yJJ(w())},function(){var h,x;
a:{var q=D(),X=(h=I.disableRounding)==null?void 0:h.call(I);h=(x=I.isClip)==null?void 0:x.call(I);if(!X&&!h)switch(q){case "large":x="ytThumbnailViewModelLarge";break a;case "small":x="ytThumbnailViewModelSmall";break a;default:x="ytThumbnailViewModelMedium";break a}x=void 0}return x},(N.ytThumbnailViewModelCinematic=v,N)),
style:_.p4({"background-color":function(){var h,x=v()?(h=I.data().backgroundColor)==null?void 0:h.lightTheme:void 0;return x?gY(x,"1"):void 0}}),
el:R},_.t(_.U,{cond:v,then:function(){return _.t("div",{class:"ytThumbnailViewModelBlurredImage"},_.t(_.UE,{data:function(){return I.data().image},
alt:"",contentMode:P,targetWidth:I.width,onload:K}))}}),_.t("div",{class:"ytThumbnailViewModelImage"},_.t(_.UE,{data:function(){return I.data().image},
alt:"",contentMode:P,targetWidth:I.width,onload:K}),null),_.t(_.aP,{data:function(){return r()?void 0:I.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:pIP,thumbnailOverlayBadgeViewModel:function(h){return _.t(_.m$M,{data:h.data,thumbnailSize:D,isClip:I.isClip})},
thumbnailBottomOverlayViewModel:function(h){return _.t(QEO,{data:h.data,thumbnailSize:D,isClip:I.isClip})},
thumbnailOverlayFullViewModel:fre,thumbnailOverlayButtonViewModel:function(h){return _.t(_.QHW,{data:h.data,lockupExperiments:I.lockupExperiments})},
channelDisclosureViewModel:function(h){h=h.data;var x;return _.t("div",null,(x=_.nR().resolve(_.fR(unf)))==null?void 0:x({data:h}))}}),_.t(_.aP,{data:function(){var h;
return((h=I.hovered)==null?0:h.call(I))?I.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(h){return _.t(OH,{data:h.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:YQg}),_.t(_.aP,{data:function(){var h;return((h=I.hovered)==null?0:h.call(I))&&O()?I.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:XXW}),_.t(_.U,{cond:I.isClip,then:function(){return _.t("div",{class:"ytPinkingNsHost"},_.t("svg",{class:"ytPinkingNsPinkingLeft"},_.t("defs",null,_.t("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.t("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.t("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.t("svg",{class:"ytPinkingNsPinkingRight"},_.t("defs",null,_.t("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.t("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.t("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
YZ.idomCompat={callbacks:{playbackRef:!0}};var pXc=_.d(function(I){var y=_.J(_.$M(-1,void 0,"RW2Ole")),D=y.next().value,F=y.next().value;_.LR(function(){var R=new N3e(F);lrP(R,I.data().thumbnails.length);_.tI(function(){if(R.isSlideshowPlaying){R.isSlideshowPlaying=!1;for(var O=R.jobIds,w=0,v=O.length;w<v;w++)_.w2.cancelJob(O[w]);R.jobIds.length=0}})});
return _.t("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.t(_.aP,{data:function(){return I.data().thumbnails}},{thumbnailViewModel:function(R,O){return _.t("div",{class:function(){var w=!I.data().primaryThumbnail,v=O(),P=D(),K=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
w&&v===0&&K.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");v<=P&&K.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return K.join(" ")}},_.t(YZ,{data:R.data,
disableRounding:I.disableRounding}))}}))},"qb");
pXc.idomCompat=!0;var D$q=new _.uk("DWELL_DETECTOR_REGISTRY_TOKEN");var Mse=_.d(function(I){var y=FG_(I.triggeringElement),D=function(){return!!I.data().primaryThumbnail},F=function(){var O,w=(O=I.data())==null?void 0:O.maxHeight,v;
O=(v=I.maxHeight)==null?void 0:v.call(I);return w!=null&&O!=null?Math.min(w,O):O!=null?O:w},R=function(){var O=F();
if(O){var w;if(D()&&(w=I.includeStackHeight)!=null&&w.call(I)){var v;w=((v=I.doubleStack)==null?0:v.call(I))?8:4}else w=0;O=O-w-1;if(!(O<0)){v=Math;w=v.ceil;var P,K;var r=oqC((K=(P=I.aspectRatio)==null?void 0:P.call(I))!=null?K:0);return w.call(v,O*r)}}};
return _.t("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.p4({height:function(){return F()?F()+"px":void 0},
width:function(){return R()?R()+"px":void 0}})},_.t(mbn,{stackEnabled:D,
thumbnailSize:function(){var O,w;return _.NwB((O=I.width)==null?void 0:O.call(I),(w=I.height)==null?void 0:w.call(I))},
doubleStack:I.doubleStack,stackColor:function(){return I.data().stackColor},
includeStackHeight:I.includeStackHeight},_.t(_.aP,{data:function(){return I.data().primaryThumbnail}},{thumbnailViewModel:function(O){var w={};
return _.t(YZ,{data:O.data,width:I.width,height:I.height,aspectRatio:I.aspectRatio,disableRounding:I.disableRounding,className:_.XH((w.ytCollectionThumbnailViewModelHostHasStacks=D,w)),hovered:I.hovered,playbackRef:I.playbackRef})}}),_.t(_.U,{cond:function(){var O;
return y()&&((O=I.data().thumbnails)==null?void 0:O.length)},
then:function(){return _.t("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.t(pXc,{data:I.data,disableRounding:function(){return!D()}}))}})))},"rb");
Mse.idomCompat={callbacks:{playbackRef:!0}};
var mbn=_.d(function(I){var y=I.children;var D=I.stackEnabled;var F=I.thumbnailSize;var R=I.doubleStack;var O=I.stackColor;var w=I.includeStackHeight;var v,P=(v=_.nR().resolve(_.fR(_.cS)))==null?void 0:v();return _.t(_.U,{cond:D,then:function(){return _.t(FGu,{data:function(){var K,r;return{experimentEnabled:!0,thumbnailSize:F(),doubleStack:R==null?void 0:R(),color:P?O==null?void 0:(K=O())==null?void 0:K.darkTheme:O==null?void 0:(r=O())==null?void 0:r.lightTheme,enableResponsiveMode:!1,includeStackHeight:w==
null?void 0:w()}}},y)},
else:function(){return y}})},"sb");var zUW=new _.uk("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var nF;_.fF={calledOnce:!0,state:"visible"};nF={calledOnce:!0,state:"hidden"};_.pF=_.d(function(I){var y=I.data;var D=I.customCommandResolver;var F=I.className;var R=I.delayedClassName;var O=I.animationEntityKey;var w=I.isCompactWidth;var v=I.isContentWidth;I=_.J(_.$M(!1,void 0,"pC3tUb"));var P=I.next().value,K=I.next().value,r=_.jE(O,""),N=_.zj(gvq,r),h=function(){var jW,xA;return(xA=(jW=N())==null?void 0:jW.value)!=null?xA:!1},x=function(){_.ry(_.WS("booleanEntity",r(),{key:r(),
value:!0}));H=void 0};
O=_.J(_.N4(h));var q=O.next().value,X=O.next().value;O=_.J(_.N4(h));var f=O.next().value,m=O.next().value;O=_.J(_.N4(function(){var jW;return h()?(jW=y().styleTransitionConfig)==null?void 0:jW.destinationStyle:void 0}));
var z=O.next().value,B=O.next().value,C=function(){var jW=Object.assign({},y(),z()&&{style:z()});var xA,dq,$A=jW.label,BH=(xA=jW.interaction)==null?void 0:(dq=xA.accessibility)==null?void 0:dq.label;xA=jW.iconImage?jW.label&&jW.label.content?jW.iconLeading?"leading":"trailing":"icon-only":void 0;jW={formattedButtonText:$A,accessibilityLabel:BH,style:JJC(jW.style),type:wIC(jW.style),state:"active",size:LGC(jW.size),iconPosition:xA,disabled:!1,aTagConfig:O7C(jW,D)};_.l("enable_desktop_vdcbg_components")&&
(jW.focused=P());return jW},H;
O=_.pT({visibilityCallback:function(jW){var xA,dq=(xA=y().interaction)==null?void 0:xA.onFirstVisible;jW&&dq&&_.OE(dq)},
showOption:_.fF});var e=function(){return XDS(C(),!!y().iconImage)};
I={};var T={};F=_.XH(function(){return"ytwAdButtonViewModelHost"},function(){return y().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var jW=!!y().delayedAppearanceConfig,xA=q();
return jW?xA?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var jW=!!y().delayedAppearanceConfig,xA=f();
return jW?xA?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!y().delayedAppearanceConfig||q()?R==null?void 0:R():""},(I.ytwAdButtonViewModelHostCompactWidth=function(){return w==null?void 0:w()},I),(T.ytwAdButtonViewModelHostContentWidth=function(){return v==null?void 0:v()},T),F!=null?F:"");
var L5=function(){var jW,xA=(jW=y().delayedAppearanceConfig)==null?void 0:jW.delayedInvisibleSeconds;xA&&(H=_.ip(_.w2,function(){X(!0);vH()},xA*1E3))},vH=function(){var jW,xA=(jW=y().delayedAppearanceConfig)==null?void 0:jW.delayedVisibleSeconds;
xA&&(H=_.ip(_.w2,function(){m(!0);u_()},xA*1E3))},u_=function(){var jW,xA=(jW=y().styleTransitionConfig)==null?void 0:jW.styleTransitionSeconds,dq,$A=(dq=y().styleTransitionConfig)==null?void 0:dq.destinationStyle;
xA&&$A?H=_.ip(_.w2,function(){B($A);x()},xA*1E3):x()};
_.LR(function(){L5()});
_.tI(function(){H&&_.w2.cancelJob(H)});
return _.t("ad-button-view-model",{"on:focusin":_.YY(_.l("enable_desktop_vdcbg_components")?function(){var jW=_.nR().resolve(_.fR(_.Q3));jW&&K(jW.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.YY(_.l("enable_desktop_vdcbg_components")?function(){K(!1);return!1}:void 0),
class:F,el:_.K4(O),style:_.p4({"transition-duration":"0.3s"})},_.t(_.U,{cond:C,then:function(){return _.t(_.me,{data:C,icon:function(){return _.t(_.U,{cond:function(){return y().iconImage},
then:function(jW){return _.t(_.UE,{data:jW,alt:"",targetWidth:e,targetHeight:e,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ub");var kwO=_.d(function(I){var y=I.data;I=function(){return y().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var D=_.pT({visibilityCallback:function(O){var w,v=(w=y().interaction)==null?void 0:w.onFirstVisible;O&&v&&_.OE(v)},
showOption:_.fF}),F={},R={};return _.t("ad-button-group-view-model",{class:_.XH("ytwAdButtonGroupViewModelHost",(F.ytwAdButtonGroupViewModelHostCompactWidth=I,F)),el:_.K4(D)},_.t("div",{class:_.XH("ytwAdButtonGroupViewModelHostSecondaryButton",(R.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=I,R))},_.t(_.aP,{data:function(){return y().secondaryAdButton}},{adButtonViewModel:function(O){return _.t(_.pF,{data:O.data})}})),_.t("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.t(_.aP,
{data:function(){return y().primaryAdButton}},{adButtonViewModel:function(O){return _.t(_.pF,{data:O.data})}})))},"vb");var dbM=_.d(function(I){var y=function(){var D;return((D=I.data())==null?void 0:D.answers)||[]};
return _.t("yt-survey-icons",{class:"ytSurveyIconsHost"},_.t("div",{class:"ytSurveyIconsHeader"},_.t("div",{class:"ytSurveyIconsTitle"},function(){var D;return(D=I.data())==null?void 0:D.text}),_.t("div",null,_.t(_.me,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var D;(D=I.onDismiss)==null||D.call(I)}}},
iconName:"DISMISSAL"}))),_.t("div",null,_.t("div",{class:"ytSurveyIconsAnswers"},_.t(_.gZ,{each:function(){return y()},
keyBy:"INDEX"},function(D,F){return _.t("div",null,_.t(_.me,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var R;(R=I.onSelect)==null||R.call(I,D(),F)}}},
icon:function(){return _.t(_.mj,{icon:function(){var R,O;return(R=D())==null?void 0:(O=R.icon)==null?void 0:O.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.t("div",{class:"ytSurveyIconsAnswersText"},_.t("div",null,function(){return y().length?y()[0].text:""}),_.t("div",null,function(){return y().length?y()[y().length-1].text:""}))))},"wb");var aru=_.d(function(I){var y=_.K4(_.VM(function(){var P;return(P=I.data())==null?void 0:P.rendererContext},void 0,void 0,void 0,!0)),D=_.J(_.$M(!1,void 0,"GW0yjf")),F=D.next().value,R=D.next().value,O=_.zj(IqB,function(){var P;
return(P=I.data().keys)==null?void 0:P.surveyEntityKey}),w=_.zj(yjB,function(){var P;
return(P=I.data().keys)==null?void 0:P.surveyStateEntityKey});
_.GU("ytd-slimline-survey-show-action",function(){R(!1)});
var v=function(){var P,K;var r=(P=w())==null?void 0:(K=P.questionStack)==null?void 0:K[0];if(r!==void 0){var N,h;return(N=O())==null?void 0:(h=N.questions)==null?void 0:h[r]}};
D={};return _.t("yt-slimline-survey-view-model",{el:y,class:_.XH("ytSlimlineSurveyViewModelHost",(D.ytSlimlineSurveyViewModelCollapsed=function(){return F()},D))},_.t("div",{class:"ytSlimlineSurveyViewModelContainer"},_.t(_.U,{cond:function(){var P;
return((P=v())==null?void 0:P.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.t(dbM,{data:function(){return v()},
onSelect:function(P,K){var r,N;return _.S(function(h){R(!0);if(N=(r=I.data())==null?void 0:r.onSelectRating)_.OE(N),_.ry(Ooe(K));_.Cj(h)})},
onDismiss:function(){R(!0);var P;var K=(P=O())==null?void 0:P.dismissalFeedbackToken;P=K?{feedbackEndpoint:{feedbackToken:K}}:void 0;P&&_.Do(P,{form:{element:y.value}})}})}})))},"xb");var cQW=_.d(function(I){return _.t("yt-table-view-model",{class:_.XH("ytTableViewModelHost",I.className)},_.t(_.gZ,{each:function(){return I.data().rows||[]}},function(y){var D={};
return _.t("div",{class:_.XH("ytTableViewModelRow",(D.ytTableViewModelRowBottomBorder=function(){return I.data().showSeparators},D))},_.t(_.gZ,{each:function(){return(y==null?void 0:y.cells)||[]}},function(F,R){var O,w={};
return _.t("span",{class:_.XH((w.ytTableViewModelRowLabel=function(){return R()===0&&I.data().showHorizontalHeaders},w.ytTableViewModelCell=function(){return!I.data().showHorizontalHeaders||R()>0},w))},(O=F.text)==null?void 0:O.content)}))}))},"yb");var W8c=_.d(function(I){return _.t("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.t(_.aP,{data:function(){var y;return(y=I.data())==null?void 0:y.attachments}},{flexibleActionsViewModel:function(y){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(_.wK,{data:y.data,
layout:function(){var D;return((D=I.lockupStyle())==null?void 0:D.arrangement)===1?0:1},
justifyContentOverride:function(){var D;return((D=I.lockupStyle())==null?void 0:D.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(y){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(aru,{data:y.data}))},
expandableMetadataViewModel:function(y){y=y.data;var D;return _.t("div",{class:_.XH("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(D=_.nR().resolve(_.fR(zUW)))==null?void 0:D({data:y}))},
adButtonGroupViewModel:function(y){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(kwO,{data:y.data}))},
adButtonViewModel:function(y){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(_.pF,{data:y.data,isCompactWidth:!0}))},
tableViewModel:function(y){return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.t(cQW,{data:y.data}))},
aiCompanionAttachmentViewModel:function(y){y=y.data;var D;return _.t("div",{class:"ytLockupAttachmentsViewModelAttachment"},(D=_.nR().resolve(_.fR(_.qQg)))==null?void 0:D({data:y}))}}))},"zb");var U$W=_.kf("rich_grid_min_item_width",310),Pv4=_.kf("rich_grid_max_item_width",500);var qSq,ukt;qSq=16/9;ukt=2/3;_.mF=_.d(function(I){var y=I.data;var D=I.className;var F=I.imageSizeConfig;var R=I.notifyOnLoaded;var O=function(){return y().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},w=function(){var h;
return _.sP((h=y())==null?void 0:h.rendererContext)};
I={};I=(I.ytContentPreviewImageViewModelHost=!0,I.ytContentPreviewImageViewModelCircleImage=function(){return O()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},I.ytContentPreviewImageViewModelTappable=function(){return w()},I);
var v=function(){var h,x;return(x=(h=_.u(y().rendererContext,_.W_))==null?void 0:h.label)!=null?x:""},P=function(){return GuH(y())},K=function(){var h=E2W(O(),y().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",F==null?void 0:F(),XIH(P()),y().layoutWidth,y().layoutHeight),x=Object.assign({},h);
h.width&&(x.width=Math.round(h.width));h.height&&(x.height=Math.round(h.height));h.maxWidth&&(x.maxWidth=Math.round(h.maxWidth));h.maxHeight&&(x.maxHeight=Math.round(h.maxHeight));return x},r=_.su(function(){return K().height},void 0,"CxFlJb"),N=_.su(function(){return K().width},void 0,"lb8Jhd");
return _.t("yt-content-preview-image-view-model",{el:_.K4(_.VM(function(){var h;return(h=y())==null?void 0:h.rendererContext})),
role:function(){return w()?"link":void 0},
tabindex:function(){return w()?0:void 0},
class:_.XH(D,I,function(){var h=O();var x=F==null?void 0:F();h=h==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||h==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||h==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||h==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(x==null?void 0:x.size)!=null&&x.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(x==null?void 0:x.size)!=null&&x.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return h}),
style:function(){var h=K(),x=[];h.width&&x.push("width: "+h.width+"px");h.height&&x.push("height: "+h.height+"px");h.maxWidth&&x.push("max-width: "+h.maxWidth+"px");h.maxHeight&&x.push("max-height: "+h.maxHeight+"px");h.fullWidth&&x.push("width: 100%");return x.join(";")}},_.t(_.U,{cond:P,
then:function(h){return _.t(_.UE,{data:h,alt:v,"data-disabled$":function(){return!v()},
notifyOnLoaded:R,targetWidth:N,targetHeight:r,preserveWidth:function(){return!!N()},
preserveHeight:function(){return!!r()}})}}),_.t(_.aP,{data:function(){var h;
return(h=y())==null?void 0:h.overlays}},{thumbnailHoverOverlayViewModel:OH,
thumbnailOverlayButtonViewModel:_.QHW}))},"Ab");
_.mF.idomCompat=!0;var M1=_.d(function(I){var y=I.data;var D=I.className;var F=I.useSmallLayout;var R=I.useMediumText;var O=I.useHeavyText;var w=function(){return!(R==null||!R())||!(O==null||!O())};
I={};return _.t("yt-attribution-view-model",{el:_.K4(_.VM(function(){var v;return(v=y())==null?void 0:v.rendererContext})),
class:_.XH(D,(I.ytAttributionViewModelHost=!0,I.ytAttributionViewModelMediumText=R,I.ytAttributionViewModelHeavyText=O,I))},_.t(_.U,{cond:function(){return _.sP(y().rendererContext)},
then:function(){return _.t("button",{class:"ytAttributionViewModelTappable"},_.t(CfR,{data:y,useSmallLayout:F,badgesShouldInheritTypography:w}))},
else:function(){return _.t(CfR,{data:y,useSmallLayout:F,badgesShouldInheritTypography:w})}}))},"Bb"),CfR=_.d(function(I){var y=I.data;
var D=I.useSmallLayout;var F=I.badgesShouldInheritTypography;var R=function(){return{size:(D==null?0:D())?16:24}};
return _.t(_.ni,null,_.t(_.aP,{data:function(){return y().contentPreviewImage}},{contentPreviewImageViewModel:function(O){return _.t(_.mF,{data:O.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:R})}}),_.t(_.aP,{data:function(){return y().badge}},{badgeViewModel:function(O){return _.t(_.q1,{data:O.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:F})}}),_.t(_.U,{cond:function(){return y().text},
then:function(){return _.t(_.jr,{text:function(){return y().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.t(_.U,{cond:function(){return y().suffix},
then:function(){return _.t(_.jr,{text:function(){return y().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Cb");
M1.idomCompat=!0;var B3u,isG,AQM,$bG,bs_;B3u=_.d(function(I){var y=I.delimiter;var D=I.max;var F=I.index;var R=I.isStandalone;return _.t(_.U,{cond:function(){return D()-1>F()},
then:function(){var O={};return _.t("span",{class:_.XH("yt-content-metadata-view-model__delimiter",(O["yt-content-metadata-view-model__delimiter--standalone"]=R,O)),"aria-hidden":!0},y)}})},"Db");
isG=_.d(function(I){var y=I.metadataPart;var D=I.maxLines;return _.t(_.jr,{text:function(){return y().text},
linkInheritColor:!0,className:function(){return QEq(D())},
userInput:!0})},"Eb");
AQM=_.d(function(I){var y=I.metadataPart;var D=I.maxLines;return _.t(_.U,{cond:function(){return y().tooltip},
then:function(F){return _.t("span",{title:F,role:"tooltip"},_.t(isG,{metadataPart:y,maxLines:D}))},
else:function(){return _.t(isG,{metadataPart:y,maxLines:D})}})},"Fb");
$bG=_.d(function(I){var y=I.metadataPart;var D=I.isOverlay;var F=I.useMediumText;var R=I.hideAvatar;var O=function(){return y().maxLines!==void 0?y().maxLines:1};
return _.t(_.ni,null,_.t(_.aP,{data:function(){return y().avatarStack}},{avatarStackViewModel:function(w){return _.t(_.wm,{data:w.data,
isOverlay:D,useMediumText:F,hideAvatar:R})},
badgeViewModel:_.q1}),_.t(_.U,{cond:function(){return y().leadingIcon},
then:function(w){return _.t(_.mj,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return w().name},
size:function(){return w().width}})}}),_.t(_.U,{cond:function(){return y().text},
then:function(){return _.t(AQM,{metadataPart:y,maxLines:O})}}),_.t(_.U,{cond:function(){return y().icon},
then:function(w){return _.t(_.mj,{className:"yt-content-metadata-view-model__icon",icon:function(){return w().name},
size:function(){return w().width}})}}))},"Gb");
bs_=_.d(function(I){var y=I.metadataRow;var D=I.isInline;var F=I.delimiter;var R=I.isOverlay;var O=I.useMediumText;var w=I.extensions;var v=function(){var K,r=w==null?void 0:(K=w())==null?void 0:K.lockupMetadata;K=y();var N,h;return!!((r==null?0:(N=r.byline)==null?0:N.hideAvatar)&&((h=_.u(K,rlP))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},P=function(){return y().metadataParts||[]};
I={};return _.t("div",{class:_.XH("yt-content-metadata-view-model__metadata-row",(I["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=D,I["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var K,r=w==null?void 0:(K=w())==null?void 0:K.lockupMetadata;K=y();var N,h;return!!((r==null?0:(N=r.byline)==null?0:N.addPadding)&&((h=_.u(K,rlP))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},I["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var K;
return!!(w==null?0:(K=w())==null?0:K.lockupMetadata)&&y().badges&&!y().metadataParts},I))},_.t(_.aP,{data:function(){return y().badges}},{badgeViewModel:function(K){return _.t("div",{class:"yt-content-metadata-view-model__badge"},_.t(_.q1,{data:K.data,
numBadgesInRow:function(){var r,N;return((r=y())==null?void 0:(N=r.badges)==null?void 0:N.length)||0}}))}}),_.t(_.gZ,{each:P},function(K,r){return _.t(_.ni,null,_.t($bG,{metadataPart:K,
isOverlay:R,useMediumText:O,hideAvatar:v}),_.t(B3u,{delimiter:F,max:function(){return P().length},
index:r,isStandalone:!1}))}),_.t(_.U,{cond:function(){return y().isSpacerRow&&!D()},
then:function(){return _.t("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Hb");
_.zR=_.d(function(I){I=_.o6(I,{layout:0,isOverlay:!1});var y=I.data,D=I.layout,F=I.isOverlay,R=I.useMediumText,O=I.extensions,w=function(){return D()===0},v=function(){var K;
return((K=y().metadataRows)==null?void 0:K.filter(function(r){var N,h=O==null?void 0:(N=O())==null?void 0:N.lockupMetadata,x,q;N=!!((h==null?0:(x=h.description)==null?0:x.hideDescription)&&((q=_.u(r,rlP))==null?void 0:q.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var X,f;return!((h==null?0:(X=h.spacer)==null?0:X.hideSpacer)&&((f=_.u(r,rlP))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||N)}))||[]},P={};
return _.t("yt-content-metadata-view-model",{class:_.XH(I.className,"yt-content-metadata-view-model",(P["yt-content-metadata-view-model--inline"]=w,P["yt-content-metadata-view-model--tappable"]=function(){return _.sP(y().rendererContext)},P["yt-content-metadata-view-model--medium-text"]=R,P)),
el:_.K4(_.VM(function(){return y().rendererContext}))},_.t(_.gZ,{each:v},function(K,r){return _.t(_.ni,null,_.t(bs_,{metadataRow:K,
isInline:w,delimiter:function(){return y().delimiter},
isOverlay:F,useMediumText:R,extensions:O}),_.t(_.U,{cond:function(){return w()&&!K.isSpacerRow},
then:function(){return _.t(B3u,{delimiter:function(){return y().delimiter},
max:function(){return v().length},
index:r,isStandalone:!0})}}))}))},"Ib");
_.zR.idomCompat=!0;var HsW=_.d(function(I){var y=_.nR().resolve(_.fR(_.cS)),D={};return _.t("yt-lockup-metadata-view-model",{class:_.XH("yt-lockup-metadata-view-model",function(){a:{var F=I.lockupStyle();if(F==null?0:F.isOverlay)F="yt-lockup-metadata-view-model--overlay";else switch(F==null?void 0:F.arrangement){case 1:F="yt-lockup-metadata-view-model--horizontal";break a;default:F="yt-lockup-metadata-view-model--vertical"}}return F},function(){a:{var F=I.lockupStyle();
switch(F==null?void 0:F.titleMaxLines){case 1:F="yt-lockup-metadata-view-model--title-max-lines-1";break a}F=void 0}return F},function(){a:{var F=I.lockupStyle();
if(F==null?0:F.isTiny)F="yt-lockup-metadata-view-model--tiny";else switch(F==null?void 0:F.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":F="yt-lockup-metadata-view-model--compact";break a;default:F="yt-lockup-metadata-view-model--standard"}}return F},(D["yt-lockup-metadata-view-model--overlay"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.isOverlay},D["yt-lockup-metadata-view-model--card"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.isCard},D["yt-lockup-metadata-view-model--centered"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.isCentered},D["yt-lockup-metadata-view-model--typography-bump"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.typographyBump},D["yt-lockup-metadata-view-model--legacy-typography"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.useLegacyTypography},D["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var F;
return(F=I.lockupStyle())==null?void 0:F.useRichGridLegacyTypography},D))},_.t(_.aP,{data:function(){return I.data().image}},{avatarStackViewModel:function(F){return _.t("div",{class:"yt-lockup-metadata-view-model__avatar"},_.t(_.wm,{data:F.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(F){return _.t("div",{class:"yt-lockup-metadata-view-model__avatar"},_.t(_.LF,{data:F.data}))},
decoratedAvatarViewModel:function(F){return _.t("div",{class:"yt-lockup-metadata-view-model__avatar"},_.t(_.Jh,{data:F.data}))}}),_.t("div",{class:"yt-lockup-metadata-view-model__text-container"},_.t("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var F;return(F=I.data().title)==null?void 0:F.content}},_.t(_.U,{cond:function(){return I.data().title},
then:function(F){return _.t(_.Yp,{command:I.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.p4({color:function(){var R;a:{var O=I.lockupStyle();var w=(R=I.hovered)==null?void 0:R.call(I);R=!(y==null||!y());var v;if((O==null?0:(v=O.onFocusEffect)==null?0:v.textPrimaryColor)&&w&&(O=R?O.onFocusEffect.textPrimaryColor.darkTheme:O.onFocusEffect.textPrimaryColor.lightTheme)){O=I0(O);break a}O=void 0}return O}}),
ariaLabel:I.lockupAccessibilityLabel},_.t(_.jr,{text:F,userInput:!0}))}})),_.t("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.p4({color:function(){var F;a:{var R=I.lockupStyle();var O=(F=I.hovered)==null?void 0:F.call(I);F=!(y==null||!y());var w;if((R==null?0:(w=R.onFocusEffect)==null?0:w.textSecondaryColor)&&O&&(R=F?R.onFocusEffect.textSecondaryColor.darkTheme:R.onFocusEffect.textSecondaryColor.lightTheme)){R=I0(R);break a}R=void 0}return R}})},_.t(_.aP,{data:function(){return I.data().metadata}},{contentMetadataViewModel:function(F){return _.t(_.zR,{data:F.data,
layout:function(){var R,O;return(O=(R=I.layout)==null?void 0:R.call(I))!=null?O:1},
useMediumText:function(){var R,O;return((R=I.lockupStyle())==null?void 0:R.typographyBump)||((O=I.lockupStyle())==null?void 0:O.useRichGridLegacyTypography)},
extensions:function(){var R,O,w,v;return{lockupMetadata:{byline:{hideAvatar:((R=I.lockupStyle())==null?void 0:R.arrangement)===0,addPadding:((O=I.lockupStyle())==null?void 0:O.arrangement)===1},description:{hideDescription:!((w=I.lockupStyle())==null||!w.compactMetadata)},spacer:{hideSpacer:!((v=I.lockupStyle())==null||!v.compactMetadata)}}}}})}})),_.t(_.aP,{data:function(){return I.data().attribution}},{attributionViewModel:function(F){return _.t("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.t(M1,{data:F.data,
useSmallLayout:!0}))}})),_.t("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.t(_.aP,{data:function(){return I.data().menuButton}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
buttonOverrides:function(){var R;return((R=I.lockupStyle())==null?0:R.isOverlay)?{style:"overlay"}:void 0}})}})))},"Jb");
HsW.idomCompat=!0;var eUf=_.d(function(I){var y=_.DF("notification-multi-action-renderer");_.OJ(function(){requestAnimationFrame(function(){_.E6(y.value)})});
var D={},F={},R={};return _.t("notification-multi-action-renderer",{class:_.XH("ytNotificationMultiActionRendererHost",(D.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var O;return(O=I.useLegacyShelfStyle)==null?void 0:O.call(I)},D)),
el:y},_.t("span",{"aria-live":"polite",class:_.XH("ytNotificationMultiActionRendererTextContainer",(F.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var O;return(O=I.useLegacyShelfStyle)==null?void 0:O.call(I)},F))},_.t(_.jr,{text:function(){return I.data().responseText}})),_.t("div",{class:_.XH("ytNotificationMultiActionRendererButtonContainer",(R.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var O;
return(O=I.useLegacyShelfStyle)==null?void 0:O.call(I)},R))},_.t(_.aP,{data:function(){var O;
return(O=I.data().buttons)==null?void 0:O.map(function(w){if(w=w.buttonRenderer){var v,P=Object,K=P.assign,r=(v=w.icon)==null?void 0:v.iconType;v=(v=w.command||w.serviceEndpoint||w.navigationEndpoint)?{innertubeCommand:v}:void 0;w={buttonViewModel:K.call(P,{},{iconName:r,onTap:v,trackingParams:w.trackingParams,titleFormatted:w.text?_.Vd(w.text):void 0},fKS(w))}}else w=void 0;return w}).filter(function(w){return!!w})}},{buttonViewModel:function(O,w){return _.t("div",null,_.t(_.My,{data:O.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var v;return((v=I.useModernStyles)==null?0:v.call(I))?{type:w()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Lb");var T3W=_.d(function(I){var y=_.DF("notification-text-renderer");_.OJ(function(){requestAnimationFrame(function(){_.E6(y.value)})});
return _.t("notification-text-renderer",{el:y,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.t(_.jr,{text:function(){return I.data().successResponseText}}))},"Nb");_.kZ=_.d(function(I){var y=_.zj(id5,function(){var F;return n2q((F=I.contentId)==null?void 0:F.call(I))}),D=function(){var F;
return _.u((F=y())==null?void 0:F.command,_.iE)};
return _.t(_.U,{cond:function(){var F;if(!(F=D())){var R;F=_.u((R=y())==null?void 0:R.command,XRM)}return F},
then:function(){return _.t(_.U,{cond:D,then:function(){var F={};return _.t("div",{class:_.XH("ytDismissibleItemReplacedContent",function(){var R;return pIA((R=I.aspectRatio)==null?void 0:R.call(I))})},_.t("div",{class:_.XH((F.ytDismissibleItemAspectRatioContainer=function(){var R;
return((R=I.aspectRatio)==null?void 0:R.call(I))!==void 0},F))},_.t(_.aP,{data:function(){var R;
return(R=D())==null?void 0:R.item}},{notificationMultiActionRenderer:function(R){return _.t(eUf,{data:R.data,
useModernStyles:I.useModernStyle,useLegacyShelfStyle:I.useLegacyShelfStyle})},
notificationTextRenderer:T3W})))}})},
else:I.children})},"Ob");_.sHW=_.d(function(I){var y=I.data;var D=I.customCommandResolver;I=_.K4(_.pT({visibilityCallback:function(O){var w,v=(w=y().interaction)==null?void 0:w.onFirstVisible;O&&v&&_.OE(v)},
showOption:_.fF}));var F=function(){var O;return((O=y().interaction)==null?0:O.onTap)?function(w){var v;RiW(w,(v=y().interaction)==null?void 0:v.onTap,D)}:void 0},R=function(){var O,w=y(),v=F(),P=(O=_.u(y().rendererContext,_.W_))==null?void 0:O.label;
a:switch(w.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":O=1;break a;default:O=0}return{size:zio(w.size),type:O,onTap:v,accessibilityText:P}};
return _.t("ad-avatar-view-model",{class:function(){var O;return((O=y().interaction)==null?0:O.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:I},_.t(_.U,{cond:function(){return y().image},
then:function(O){return _.t(n2O,{data:R,image:O})}}))},"Pb");_.dm=_.d(function(I){var y=_.o6(I,{hasDot:!1,usedInMasthead:!1}),D=Object.assign({},y),F=y.data,R=y.hasDot;I=y.customCommandResolver;var O=y.usedInMasthead,w=(delete D.data,delete D.hasDot,delete D.customCommandResolver,delete D.usedInMasthead,D);y=function(){return F().style};
y!==void 0&&y!==null||_.o8(Error("Ih"));I=_.Dy(function(){return F().interaction},I);
return _.t("ad-badge-view-model",{class:_.XH(function(){var v;return((v=F().interaction)==null?0:v.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var v=w.adRenderingContextType(),P=O();
F();return v!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||P?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.K4(I)},_.t(_.PQ,{data:function(){var v;F();return{type:2,text:(v=F().label)==null?void 0:v.content,adsIncludeDot:R(),isOverlay:F().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Qb");var Vse;_.a2=_.d(function(I){var y=I.data;var D=I.customCommandResolver;var F=I.adRenderingContextType;return _.t("ad-details-line-view-model",{class:function(){var R;return((R=y().interaction)==null?0:R.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(R){var O,w=(O=y().interaction)==null?void 0:O.onFirstVisible;R&&w&&_.OE(w)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D))},_.t(_.U,{cond:function(){return y().style},
then:function(R){return _.t(_.gZ,{each:function(){var O;return((O=y())==null?void 0:O.attributes)||[]},
keyBy:"INDEX"},function(O){return _.t(Vse,{attribute:O,style:R,adRenderingContextType:function(){return F()}})})}}))},"Rb");
Vse=_.d(function(I){var y=I.attribute;var D=I.style;var F=I.adRenderingContextType;return _.t(_.U,{cond:function(){return y().text},
then:function(R){return _.t(_.jr,{text:R,className:function(){var O=F();D();return O==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Sb");var Zsc=_.d(function(I){var y=I.data;var D=I.typographyBump;var F=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},R=function(){return{size:"M"}};
I={};return _.t(_.ni,null,_.t("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.t(_.jr,{text:function(){return y().headline},
className:_.XH((I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.l("enable_desktop_vdc_components")},I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.l("enable_desktop_vdc_components")},I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return F==null?void 0:F()},I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(D==null?void 0:D())&&!(F==null?0:F())},I)),
linkInheritColor:!0}),_.t(_.U,{cond:function(){return y().description},
then:function(O){var w={};return _.t(_.jr,{text:O,className:_.XH("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(w.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return F==null?void 0:F()},w.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(D==null?void 0:D())&&!(F==null?0:F())},w)),
linkInheritColor:!0})}}),_.t(_.U,{cond:function(){return y().secondaryDescription},
then:function(O){var w={};return _.t(_.jr,{text:O,className:_.XH("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(w.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return D==null?void 0:D()},w)),
linkInheritColor:!0})}}),_.t("div",{class:function(){return F()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.t(_.U,{cond:function(){return y().adAvatar},
then:function(){return _.t("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.t(_.aP,{data:function(){return y().adAvatar}},{adAvatarViewModel:_.sHW}))}}),_.t(_.aP,{data:function(){return y().adBadge}},{adBadgeViewModel:function(O){return _.t(_.dm,{data:O.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.t(_.aP,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(O){return _.t(_.a2,{data:O.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}}))),_.t("div",{class:function(){return _.l("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":F()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:function(O){return _.t(_.My,{data:O.data,
buttonOverrides:_.l("enable_desktop_vdc_components")?R:function(){a:switch(y().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var w="S";break a;default:w="M"}return{size:w}}})}})))},"Tb"),gtg=_.d(function(I){var y=I.data;
var D=I.noBottomMargin;var F=I.useVideoLockupTopPadding;var R=I.typographyBump;I={};I=_.XH("ytwFeedAdMetadataViewModelHostMetadata",(I.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return D==null?void 0:D()},I.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return F==null?void 0:F()},I));
var O=function(){return y().adBadge};
O!==void 0&&O!==null||_.o8(Error("Jh"));O={};var w={};return _.t(_.ni,null,_.t(_.U,{cond:function(){return y().adAvatar},
then:function(){return _.t("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.t(_.aP,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(v){return _.t(_.sHW,{data:v.data})}}))}}),_.t("div",{class:I},_.t("div",{class:_.XH("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(O.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return R==null?void 0:R()},O.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(R==
null?void 0:R())&&_.l("web_enable_typography_bump_v2")},O))},_.t(_.jr,{text:function(){return y().headline},
linkInheritColor:!0})),_.t(_.U,{cond:function(){return y().description},
then:function(v){return _.t(_.jr,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.t("div",{class:function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.l("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.t(_.aP,{data:function(){return y().adBadge}},
{adBadgeViewModel:function(v){return _.t(_.dm,{data:v.data,
hasDot:function(){return!!y().adDetailsLine},
adRenderingContextType:function(){return y().adRenderingContextType}})}}),_.t(_.aP,{data:function(){return y().adDetailsLine}},{adDetailsLineViewModel:function(v){return _.t(_.a2,{data:v.data,
adRenderingContextType:function(){return y().adRenderingContextType}})}})),_.t(_.U,{cond:function(){return y().secondaryDescription},
then:function(v){return _.t(_.jr,{text:v,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.t("div",{class:_.XH("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(w.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return F==null?void 0:F()},w))},_.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:_.My})))},"Ub"),c7=_.d(function(I){var y=I.data;
var D=I.noBottomMargin;var F=I.listenToTapEvent;var R=I.setTouchEndHandler;var O=I.useVideoLockupTopPadding;var w=I.typographyBump;I=_.pT({visibilityCallback:function(N){var h,x=(h=y().interaction)==null?void 0:h.onFirstVisible;N&&x&&_.OE(x)},
showOption:_.fF});var v=_.Dy(function(){return y().interaction},void 0,function(){return F==null?void 0:F()}),P=_.J(_.$M(!1,void 0,"KSFskc")),K=P.next().value,r=P.next().value;
P=_.YY(function(N){(R==null?0:R())&&!K()&&(N.currentTarget.click(),r(!0),setTimeout(function(){r(!1)},100));
return!1});
return _.t("feed-ad-metadata-view-model",{class:function(){var N;return((N=y().interaction)==null?0:N.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.K4(I,v),"on:touchend":P},_.t(_.I8,null,_.t(_.Vj,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.t(Zsc,{data:y,
typographyBump:w})}),_.t(_.Vj,{when:function(){return y().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.t(gtg,{data:y,
noBottomMargin:D,useVideoLockupTopPadding:O,typographyBump:w})})))},"Vb");var I2G,y3c;I2G=_.LV.inlinePreviewEnabledSelector;_.W7=_.d(function(I){return _.t("yt-lockup-view-model",{class:_.XH(I.className,"yt-lockup-view-model--wrapper")},_.t(_.kZ,{contentId:function(){return I.data().contentId},
useModernStyle:!0,aspectRatio:function(){var y,D;return((y=I.containerType)==null?void 0:y.call(I))!==3?x$H(I.data().contentType,(D=I.force16By9ThumbnailAspectRatio)==null?void 0:D.call(I)):void 0}},function(){return _.t(y3c,Object.assign({},I))}))},"Wb");
y3c=_.d(function(I){I=_.o6(I,{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,useOverlayStyling:void 0});var y=I.data,D=I.containerLayoutConfig,F=I.containerType,R=I.sizing,O=I.protectBackground,w=I.typographyBump,v=I.force16By9ThumbnailAspectRatio,P=I.thumbnailFixedWidth,K=I.thumbnailTargetWidth,r=I.lockupExperiments,
N=I.elementsPerRow,h=I.useOverlayStyling,x=_.nR().resolve(_.fR(_.cS));I=_.K4(_.VM(function(){var BH;return(BH=y())==null?void 0:BH.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 q=_.dV(I2G),X=_.nR().resolve(_.fR(jHM)),f=X?{}:void 0,m=function(){var BH,jf,yg;return(yg=(jf=_.u((BH=y())==null?void 0:BH.rendererContext,_.W_))==null?void 0:jf.label)!=null?yg:void 0},z=function(){var BH;
return(BH=_.u(y().metadata,_.jKR))==null?void 0:BH.endorsement},B=function(){var BH=D==null?void 0:D(),jf;
if(BH==null?0:BH.containerType){var yg=(jf=y())==null?void 0:jf.contentType;jf=r();var eW=w(),oe=K(),xP=O();BH=Object.assign({},lKq(jE5(BH),Rk(BH.responsiveSize),eW,yg,BH.force16By9ThumbnailAspectRatio,oe,xP,void 0,jf),{thumbnailFixedWidth:BH.contentPreviewWidth})}else BH=lKq(F(),R(),w(),(yg=y())==null?void 0:yg.contentType,v(),K(),O(),h(),r());return BH};
X&&f&&X({enabled:function(){return q()},
itemPlaybackModel:function(){return y().itemPlayback},
thumbnailElRef:function(){return f.thumbnailElRef},
containerElRef:I,options:function(){var BH=f.thumbnailOverlays||[],jf=z(),yg;!jf||((yg=r())==null?0:yg.onFocusEffect)||BH.push(jf);var eW,oe;return{thumbnail:f.thumbnail,thumbnailOverlays:BH,accessibilityText:m(),thumbnailSize:f.thumbnailSize,enableRounding:B().isCollection,containPlayerWithinThumbnail:B().isCollection,mouseleaveCallback:function(){e(!1)},
trackingParams:(eW=_.u(y().rendererContext,_.CQ))==null?void 0:(oe=eW.loggingDirectives)==null?void 0:oe.trackingParams}}});
var C=0;X=_.J(_.$M(!1,void 0,"v0iGab"));var H=X.next().value,e=X.next().value;X=_.J(_.$M(!1,void 0,"PVKcBd"));var T=X.next().value,L5=X.next().value;X=_.YY(function(){T()?(_.w2.cancelJob(C),C=_.w2.addJob(function(){e(!0)},8,32)):e(!0);
return!0});
var vH=_.YY(function(BH){BH=BH.relatedTarget;var jf=document.querySelector("ytd-video-preview");BH&&jf&&jf.contains(BH)||(C&&(_.w2.cancelJob(C),C=0),e(!1))});
_.tI(function(){C&&(_.w2.cancelJob(C),C=0)});
var u_=MNS(function(){L5(!0)}),jW=u_.touchFeedbackEvents,xA=u_.touchFeedbackOnPointerUp,dq=u_.touchFeedbackOnPointerDown;
u_=u_.touchFeedbackOnPointerLeave;var $A={};return _.t(_.ni,null,_.t("div",{el:I,class:_.XH("yt-lockup-view-model",function(){a:{var BH=B();if(BH.metadataOnThumbnail)BH="yt-lockup-view-model--metadata-on-thumbnail";else switch(BH.arrangement){case 1:BH="yt-lockup-view-model--horizontal";break a;default:BH="yt-lockup-view-model--vertical"}}return BH},function(){a:{var BH=B();
if(BH.metadataOnThumbnail)BH="yt-lockup-view-model--metadata-on-thumbnail";else{switch(BH.collectionStackNumber){case 1:BH="yt-lockup-view-model--collection-stack-1";break a;case 2:BH="yt-lockup-view-model--collection-stack-2";break a}BH=void 0}}return BH},function(){var BH;
return _.YSe((BH=y())==null?void 0:BH.contentId)},($A["yt-lockup-view-model--card"]=function(){return B().isCard},$A["yt-lockup-view-model--compact"]=function(){return B().isTiny||B().sizing!=="STANDARD"},$A["yt-lockup-view-model--protect-background"]=O,$A["yt-lockup-view-model--add-margins"]=function(){return B().addMarginForFullbleed},$A["yt-lockup-view-model--centered"]=function(){return B().isCentered},$A["yt-lockup-view-model--fullbleed"]=function(){return B().fullbleed},$A["yt-lockup-view-model--single-column-grid"]=
function(){return N()===1&&F()===2},$A["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var BH;
return(BH=r())==null?void 0:BH.useRichGridLegacyMargin},$A["yt-lockup-view-model--flex-none"]=function(){return!_.l("lockup_flex_none_killswitch")},$A)),
"on:mousedown":dq,"on:mouseleave":vH,"on:mouseup":xA,"on:mouseover":X,"on:touchstart":dq,"on:touchend":xA,"on:pointerleave":u_},_.t(_.fM,{model:function(){var BH,jf,yg=Object,eW=yg.assign,oe=(f==null?void 0:f.thumbnailSize)||"small";a:{var xP=B();var XW=!!(z()&&((BH=r())==null?0:BH.onFocusEffect));switch((f==null?void 0:f.thumbnailSize)||"small"){case "small":BH=4;break;case "large":BH=12;break;default:BH=8}if(XW)xP=BH+12;else{switch(xP.collectionStackNumber){case 1:xP=BH+8;break a;case 2:xP=BH+12;
break a}xP=void 0}}oe={thumbnailSize:oe,triggerEvents:!0,customTopExtend:xP};var zo;xP=(jf=r())==null?void 0:jf.onFocusEffect;XW=!(x==null||!x());if(xP){var Ub,rq;jf=XW?(Ub=xP.onFocusColor)==null?void 0:Ub.darkTheme:(rq=xP.onFocusColor)==null?void 0:rq.lightTheme;var ao,rc;Ub=XW?(ao=xP.keyLightColor)==null?void 0:ao.darkTheme:(rc=xP.keyLightColor)==null?void 0:rc.lightTheme;var Ta;ao=XW?(zo=xP.touchResponseColor)==null?void 0:zo.darkTheme:(Ta=xP.touchResponseColor)==null?void 0:Ta.lightTheme;zo={background:jf!==
void 0?I0(jf):void 0,keyLight:Ub!==void 0?I0(Ub):void 0};Ta=[];rc=_.J(xP.lightingTechniques||[]);for(Ub=rc.next();!Ub.done;Ub=rc.next())switch(Ub.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Ta.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Ta.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Ta.push(3)}zo={hoverEffect:{palette:zo,lightingTechniques:Ta},touchEffect:{palette:{background:ao!==void 0?I0(ao):void 0}}}}else zo={};return eW.call(yg,{},oe,zo)},
hovered:function(){return H()},
pointerDownEvent:jW.pointerDownEvent,pointerUpEvent:jW.pointerUpEvent,pointerLeaveEvent:jW.pointerLeaveEvent}),_.t(_.U,{cond:function(){var BH;return z()&&H()&&((BH=r())==null?void 0:BH.onFocusEffect)},
then:function(){return _.t("div",{class:"yt-lockup-view-model__endorsement"},_.t(_.aP,{data:function(){return z()}},{attributionViewModel:function(BH){return _.t(M1,{data:BH.data,
useHeavyText:!0})}}))}}),_.t(_.Yp,{command:function(){var BH;
return _.Tj((BH=y())==null?void 0:BH.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(P()||B().thumbnailFixedWidth)&&B().arrangement===1?"width: "+(P()||B().thumbnailFixedWidth):""}},_.t(_.aP,{data:function(){var BH;
return(BH=y())==null?void 0:BH.contentImage}},{thumbnailViewModel:function(BH){return _.t(YZ,{data:BH.data,
aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:K,hovered:function(){return H()&&!(q()&&y().itemPlayback)},
isClip:function(){var jf;return((jf=y())==null?void 0:jf.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:IKA(f),lockupExperiments:function(){return r()}})},
collectionThumbnailViewModel:function(BH){return _.t(Mse,{data:BH.data,aspectRatio:function(){return B().aspectRatio},
disableRounding:function(){return B().disableRounding},
width:K,doubleStack:function(){return B().collectionStackNumber===2},
hovered:function(){return H()&&!(q()&&y().itemPlayback)},
playbackRef:IKA(f)})},
decoratedAvatarViewModel:_.Jh})),_.t("div",{class:"yt-lockup-view-model__metadata"},_.t(_.aP,{data:function(){var BH;return(BH=y())==null?void 0:BH.metadata}},{lockupMetadataViewModel:function(BH){return _.t(HsW,{data:BH.data,
hovered:H,lockupStyle:B,lockupCommand:function(){var jf;return _.Tj((jf=y())==null?void 0:jf.rendererContext)},
lockupAccessibilityLabel:function(){return m()},
layout:function(){var jf;return((jf=r())==null?0:jf.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(BH){return _.t(c7,{data:BH.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:w})}}),_.t(_.aP,{data:function(){var BH;
return(BH=y())==null?void 0:BH.attachmentSlot}},{lockupAttachmentsViewModel:function(BH){return _.t(W8c,{data:BH.data,
lockupStyle:B})}}))),_.t(_.aP,{data:function(){var BH;
return(BH=y())==null?void 0:BH.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(BH){return _.t(W8c,{data:BH.data,
lockupStyle:B})}}))},"Xb");
_.W7.idomCompat=!0;_.NK(_.W7,"yt-lockup-view-model",{props:{data:_.om,containerLayoutConfig:_.om,containerType:_.om,sizing:_.om,protectBackground:_.om,typographyBump:_.om,thumbnailFixedWidth:_.om,thumbnailTargetWidth:_.om,force16By9ThumbnailAspectRatio:_.om,className:_.om,lockupExperiments:_.om,elementsPerRow:_.om,useOverlayStyling:_.om}});var cJH,Dpa=_.d(function(I){var y=_.o6(I,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),D=y.text,F=y.alwaysShowTruncationText;I=y.truncationText;var R=y.onTextClick,O=y.maxLines,w=y.disableTextMask,v=y.textStyle,P=y.accessibilityLabel,K=y.textSize,r=y.alwaysTruncateAtMaxLines,N=y.expandOnClick;y=_.J(_.$M(!1,void 0,"EzA1q"));var h=y.next().value,x=y.next().value;y=_.YY(function(){N()&&x(!h());R==null||R()});
var q=function(){a:switch(K()){case "medium":var T=2;break a;case "large":T=2.2;break a;default:T=1.8}return T},X=BaS(D,function(){return h()?Infinity:O()},q,w,r,h),f=X.isTruncated;
D=X.displayText;r=X.contentRef;var m=X.hiddenRef,z=X.placeholderTruncationTextRef,B=X.hiddenTruncationTextRef;X=X.truncationTextRef;var C={},H={},e={};return _.t("truncated-text",{class:_.XH((C["yt-truncated-text"]=!0,C["yt-truncated-text--overlay"]=function(){return v()==="overlay"},C["yt-truncated-text--medium-text"]=function(){return K()==="medium"},C["yt-truncated-text--large-text"]=function(){return K()==="large"},C["yt-truncated-text--primary-text"]=function(){return v()==="primary-text"},C)),
"on:click":y,style:function(){return"line-height: "+q()+"rem;"}},_.t("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:r,style:function(){return h()?"":"max-height: "+O()*q()+"rem;"}},_.t(_.jr,{text:D}),_.t("button",{"aria-disabled":!0,
disabled:!0,class:_.XH((H["yt-truncated-text__inline-button"]=!0,H["yt-truncated-text--hidden"]=function(){return!(!h()&&(F!=null&&F()||f()))},H)),
el:z,style:function(){return"line-height: "+q()+"rem;"}},_.t(_.jr,{text:I}))),_.t("truncated-text-content",{class:_.XH("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:m,style:function(){return h()?"":"max-height: "+O()*q()+"rem;"},
"aria-hidden":"true"},_.t(_.jr,{text:D}),_.t("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:B,style:function(){return"line-height: "+q()+"rem;"}},_.t(_.jr,{text:I}))),_.t("button",{"aria-label":P,
class:_.XH((e["yt-truncated-text__absolute-button"]=function(){return!w()},e["yt-truncated-text__bottom-button"]=function(){return w()},e["yt-truncated-text--hidden"]=function(){return!(!h()&&(F!=null&&F()||f()))},e)),
el:X,style:function(){return"line-height: "+q()+"rem;"}},_.t(_.jr,{text:I})))},"Zb");
Dpa.idomCompat={callbacks:{onTextClick:!0}};var OUW=_.d(function(I){var y=I.data;I=I.className;var D=_.su(function(){return AJL(y())},void 0,"uDhDke"),F=_.t(_.ni,null,_.t(_.U,{cond:function(){return y().heroText||y().image},
then:function(){return _.t(FyW,{data:y})}}),_.t(RzO,{data:y,
sizeSmall:function(){return y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.t("yt-video-attribute-view-model",{class:I},_.t("div",{class:function(){var R=y();a:switch(R.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var O="yt-video-attribute-view-model--vertical";break a;default:O="yt-video-attribute-view-model--horizontal"}a:switch(R.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var w="yt-video-attribute-view-model--image-small";break a;default:w="yt-video-attribute-view-model--image-large"}a:switch(R.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var v=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":v="yt-video-attribute-view-model--image-avatar";break a;default:v=""}a:switch(R.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var P="yt-video-attribute-view-model--metadata-header";break a;default:P=""}a:switch(R.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var K="yt-video-attribute-view-model--container-card";break a;default:K=""}return["yt-video-attribute-view-model",O,w,
v,P,K,AJL(R)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.p4({"background-color":function(){var R=y();if(R.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var O="";else{O=R.lightColorPalette;R=R.darkColorPalette;var w,v=((w=_.nR().resolve(_.fR(_.cS)))==null?0:w())&&R?R:O;O=(O=v==null?void 0:v.section2Color)?_.Z7(O):""}return O}})},_.t(_.U,{cond:D,
then:function(){return _.t(_.Yp,{className:"yt-video-attribute-view-model__content-container",command:D,role:"group",ariaLabel:function(){return y().title}},F)},
else:function(){return _.t("div",{class:"yt-video-attribute-view-model__content-container"},F)}})))},"$b");
OUW.idomCompat=!0;var FyW=_.d(function(I){var y=I.data;var D,F=(D=_.nR().resolve(_.fR(_.cS)))==null?void 0:D(),R=function(){return F&&y().darkThemeImage?y().darkThemeImage:y().image},O=_.su(function(){return $$A(y())},void 0,"UDqj0b");
return _.t("div",{class:"yt-video-attribute-view-model__hero-section"},_.t(_.I8,null,_.t(_.Vj,{when:R},function(){return _.t(_.UE,{data:function(){return R()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.t(_.Vj,{when:function(){return y().heroText}},function(){return _.t("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.t("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return y().heroText}))})),_.t(_.U,{cond:function(){return y().overflowMenuOnTap},
then:function(){return _.t("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.t(_.me,{data:O,iconName:"MORE_VERT"}))}}))},"ac");
FyW.idomCompat=!0;var RzO=_.d(function(I){var y=I.data;I=I.sizeSmall;var D=function(){return y().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},F=_.su(function(){return Ru(_.FH({innertubeCommand:AJL(y())}))?"link":AJL(y())?"button":"group"},void 0,"e2MmYe"),R={};
return _.t("div",{class:_.XH("yt-video-attribute-view-model__metadata",(R["yt-video-attribute-view-model--small-font"]=I,R)),role:F},_.t("h1",{class:"yt-video-attribute-view-model__title"},function(){return y().title}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(){return _.t("h4",{class:"yt-video-attribute-view-model__subtitle"},_.t(_.U,{cond:D,then:function(){return _.t(Dpa,{text:function(){return i7o(y().subtitle)},
truncationText:function(){return i7o(y().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.t("span",null,function(){return y().subtitle})}}))}}),_.t(_.U,{cond:function(){return y().secondarySubtitle},
then:function(O){return _.t("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.t(_.jr,{text:function(){var w=O();if(w!=null&&w.attachmentRuns){for(var v=[],P=_.J(w.attachmentRuns),K=P.next();!K.done;K=P.next())K=K.value,K.element&&v.push(Object.assign({},K,{element:Object.assign({},K.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));w=Object.assign({},w,{attachmentRuns:v})}return w}}))}}),_.t(_.aP,
{data:function(){return y().buttonViewModel}},{buttonViewModel:function(O){return _.t(_.My,{data:O.data,
className:"yt-video-attribute-view-model__button"})}}))},"bc");
RzO.idomCompat=!0;_.NK(OUW,"yt-video-attribute-view-model",{props:{data:_.om,className:_.om}});var CF=function(){var I=_.k.apply(this,arguments)||this;I.useHighlightStyling=_.l("web_enable_deeper_metadata_highlight_styling");I.isSearch=!1;I.JSC$15561_lastScrollContainerWidth=NaN;I.pageLoadingFromNavigation=!1;I.currentIndex=0;I.supportComponentResize=!1;return I};
_.E(CF,_.k);_.L=CF.prototype;
_.L.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}}}}}};
_.L.attached=function(){document.addEventListener("yt-page-type-changed",_.MX(this,this.onPageChange))};
_.L.detached=function(){document.removeEventListener("yt-page-type-changed",_.MX(this,this.onPageChange))};
_.L.getItemsPath=function(){return"data.cards"};
_.L.onIronResize=function(){this.updateListStyles()};
_.L.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var I;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(I=this.data)==null?void 0:I.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.l("problem_walkthrough_sd")&&!!this.centerItems};
_.L.computeCardListStyle=function(I){return I||null};
_.L.computeEmpty=function(I){return!this.get("cards.length",I)};
_.L.computeThumbnailStyle=function(I){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",I)||null};
_.L.computeHasSubtitle=function(I){return!!this.get("header.richListHeaderRenderer.subtitle",I)};
_.L.computeInitialCountNumber=function(I){return this.hasSquareMiniApp&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.L.computeUseFloorScrolling=function(I){return I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.L.computeHasGameCard=function(I){return(I=this.get("cards",I))?I.some(function(y){return y.gameCardRenderer}):!1};
_.L.computeCenterHeaderTitle=function(I){return!(I==null||!I.centerHeaderTitle)};
_.L.computeHasPortraitMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.L.computeHasSquareMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.L.computeHasSkinnyWidthPortraitMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(y){return y.miniGameCardViewModel&&y.miniGameCardViewModel.width===135}):!1};
_.L.computeCenterItems=function(I){return!!I};
_.L.computeHasInfoPanel=function(I){var y;return I==null?void 0:(y=I.cards)==null?void 0:y.some(function(D){return D.infoPanelContentRenderer})};
_.L.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.L.getItemByIndex=function(I){var y=this.items.children;return y&&y.length>I?y[I]:void 0};
_.L.onPageChange=function(){var I=this;this.pageLoadingFromNavigation=!0;_.w2.addJob(function(){I.pageLoadingFromNavigation=!1;_.qr(I.hostElement,"yt-terminate-video-preview-action")},8)};
_.L.updateListStyles=function(){if(_.l("problem_walkthrough_sd")&&this.JSC$15561_scrollContainer!==void 0){var I=this.JSC$15561_scrollContainer.clientWidth;I!==this.JSC$15561_lastScrollContainerWidth&&(this.JSC$15561_lastScrollContainerWidth=I,_.pg(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(I*.8,415)+"px"}),_.lj(this.hostElement,"iron-resize"))}};
_.mD.Object.defineProperties(CF.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.l("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.cards)==null?0:(D=y[0])==null?0:D.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.cards)==null?0:(D=y[0])==null?0:D.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return _.l("enable_desktop_amsterdam_info_panels")&&!!((I=this.data)==null?0:(y=I.cards)==null?0:(D=y[0])==null?0:D.infoPanelContentRenderer)}}});
CF.prototype.dataChanged=CF.prototype.dataChanged;CF.prototype.onIronResize=CF.prototype.onIronResize;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],CF.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Q(_.vy),_.A("design:type",Object)],CF.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],CF.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],CF.prototype,"useCustomColors",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],CF.prototype,"useHighlightStyling",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.A("design:type",Object)],CF.prototype,"cardListStyle",void 0);_.W([_.M({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.A("design:type",Boolean)],CF.prototype,"empty",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasSubtitle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.A("design:type",Boolean)],CF.prototype,"thumbnailStyle",void 0);_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasGameCard",void 0);_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.A("design:type",Boolean)],CF.prototype,"centerHeaderTitle",void 0);
_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasPortraitMiniApp",void 0);_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasSquareMiniApp",void 0);_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.W([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.A("design:type",Boolean)],CF.prototype,"hasInfoPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],CF.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],CF.prototype,"inlineStructuredDescription",void 0);_.W([_.a0("#scroll-container"),_.A("design:type",HTMLDivElement)],CF.prototype,"JSC$15561_scrollContainer",void 0);
_.W([_.M({computed:"computeInitialCountNumber(data.style.type)"}),_.A("design:type",Number)],CF.prototype,"initialCount",void 0);_.W([_.M({computed:"computeUseFloorScrolling(data.style.type)"}),_.A("design:type",Boolean)],CF.prototype,"useFloorScrolling",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.A("design:type",Boolean)],CF.prototype,"centerItems",void 0);_.W([_.M(),_.A("design:type",Object)],CF.prototype,"pageLoadingFromNavigation",void 0);
_.W([_.M(),_.A("design:type",Object)],CF.prototype,"currentIndex",void 0);_.W([_.M(),_.A("design:type",Number)],CF.prototype,"scrollCount",void 0);_.W([_.M(),_.A("design:type",Object)],CF.prototype,"supportComponentResize",void 0);_.W([_.a0("#items"),_.A("design:type",HTMLDivElement)],CF.prototype,"items",void 0);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CF.prototype,"onIronResize",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CF.prototype,"dataChanged",null);_.W([_.M({reflectToAttribute:!0}),_.Y("inlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],CF.prototype,"hideNavigationButton",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],CF.prototype,"modernChapters",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],CF.prototype,"hasVideoAttributeViewModels",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],CF.prototype,"modernInfoPanels",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],CF);
_.a(CF,"ytd-horizontal-card-list-renderer",function(){if(sEG!==void 0)return sEG;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return sEG=I},{mode:_.Qd("kevlar_poly_si_batch_j072")?1:2});var LyM=_.d(function(I){var y=I.data;var D={};return _.t("video-summary-content-view-model",{class:_.XH("videoSummaryContentViewModelHost",I.className,(D.videoSummaryContentViewModelHostIsSearch=I.isSearch,D))},_.t(_.gZ,{each:function(){var F=[],R=y().paragraphs;if(R==null||!R.length)return[];for(var O=0;O<R.length;O++){var w=_.u(R[O],jJG),v=void 0;O>0&&(v=_.u(R[O-1],jJG));v&&!!v.marker===!!w.marker?F[F.length-1].paragraphs.push(w):F.push({isList:!!w.marker,paragraphs:[w]})}return F},
keyBy:"INDEX"},function(F){return _.t(_.U,{cond:function(){return F().isList},
then:function(){return _.t("ul",{class:"videoSummaryContentViewModelList"},_.t(_.gZ,{each:function(){return F().paragraphs},
keyBy:"INDEX"},function(R){return _.t("li",{class:"videoSummaryContentViewModelListItem"},_.t(_.jr,{text:function(){return R().text}}))}))},
else:function(){return _.t("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.t(_.gZ,{each:function(){return F().paragraphs},
keyBy:"INDEX"},function(R){return _.t("p",{class:"videoSummaryContentViewModelParagraph"},_.t(_.jr,{text:function(){return R().text}}))}))}})}),_.t(_.U,{cond:function(){return!!_.u(y().likeButtonViewModel,_.Lz)&&!!_.u(y().dislikeButtonViewModel,_.JT)},
then:function(){return _.t("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.t("div",{class:"videoSummaryContentViewModelLikeButton"},_.t(_.SD,{data:function(){return _.u(y().likeButtonViewModel,_.Lz)},
disableIconAnimation:!0})),_.t(_.vQ,{data:function(){return _.u(y().dislikeButtonViewModel,_.JT)}}))}}))},"cc");
LyM.idomCompat=!0;_.NK(LyM,"video-summary-content-view-model",{props:{data:_.om,isSearch:_.om,className:_.om}});var B7=function(){var I=_.k.apply(this,arguments)||this;var y,D;I.isExpanded=(D=(y=I.data)==null?void 0:y.isExpanded)!=null?D:!1;I.disableExpand=!1;I.showProminentLabel=!1;I.showRightSideLabel=!0;I.toggleExpandableContent=function(F){I.disableExpand||(F.stopPropagation(),_.rP(_.r4(F),I.hostElement,["info","expanded-subtitle"])||(I.isExpanded=!I.isExpanded,I.ytRendererBehavior.logExplicitClick(I.data),I.JSC$15572_cardList&&!_.l("expandable_metadata_a11y_fix_ks")&&_.YC(I,function(){_.qw(I.hostElement)})))};
I.useSquareThumbnail=!1;I.startX=0;return I};
_.E(B7,_.k);_.L=B7.prototype;_.L.computeUseSquareThumbnail=function(){var I;return(I=this.data)==null?void 0:I.useSquareThumbnail};
_.L.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"}}}}};
_.L.dataChanged=function(){if(this.data){var I,y;this.isExpanded=(y=(I=this.data)==null?void 0:I.isExpanded)!=null?y:!1;var D,F,R,O;if(I=this.isDarkTheme()?(D=this.data)==null?void 0:(F=D.colorData)==null?void 0:F.darkColorPalette:(R=this.data)==null?void 0:(O=R.colorData)==null?void 0:O.lightColorPalette){var w,v;if((w=this.data)==null?0:(v=w.colorData)==null?0:v.vibrantColorPalette)I.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Af(this.hostElement,I)}}};
_.L.isExpandedChanged=function(){this.isExpanded&&this.JSC$15572_cardList&&_.lj(this.JSC$15572_cardList,"iron-resize")};
_.L.computeIsExpanded=function(I){return!!I.isExpanded};
_.L.computeShowProminentLabel=function(I,y){var D;return!!(I==null?0:(D=I.header)==null?0:D.showLeadingCollapsedLabel)&&!y};
_.L.computeShowRightSideLabel=function(I,y){var D;return!(I==null?0:(D=I.header)==null?0:D.showLeadingCollapsedLabel)&&!y};
_.L.captureContentClick=function(I){if(!this.disableExpand)if(_.l("expandable_metadata_fix_killswitch")){var y=I.target;_.OW_(y,"ytd-macro-markers-list-item-renderer")||I.stopPropagation();(y==null?void 0:y.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.rP(_.r4(I),this.hostElement,["items"])||_.UP(_.r4(I),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.L.timestampClick=function(I){I.stopPropagation();var y,D;(I=(y=this.data)==null?void 0:(D=y.header)==null?void 0:D.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(I)};
_.L.onDown=function(I){I.stopPropagation();this.startX=I.detail?I.detail.x:0};
_.L.onUp=function(I){this.skipKeyInteraction(I)&&I.stopPropagation()};
_.L.skipKeyInteraction=function(I){var y=I.target;if((y==null?void 0:y.id)==="scroll-container"||(y==null?void 0:y.id)==="items"||I.detail&&I.detail.x!==this.startX)return!0;I=_.r4(I);I=_.J(I);for(y=I.next();!y.done;y=I.next()){y=y.value;if(y===this.hostElement)break;if(y.hasAttribute&&y.hasAttribute("skip-key-interaction"))return!0}return!1};
_.L.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.mD.Object.defineProperties(B7.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.u((I=this.data)==null?void 0:I.expandedContent,rxP)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.u((I=this.data)==null?void 0:I.expandedContent,ogP)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.useCustomColors)&&!((y=this.data)==null||!y.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!((I=this.data)==null?0:(y=I.header)==null?0:y.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!((I=this.data)==null?0:(y=I.header)==null?0:y.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.header)==null?void 0:y.expandedSubtitleTapCommand;I=D&&_.u(D,_.lK);return _.l("web_open_ai_support_links_external_window")&&(I==null?void 0:I.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.header)==null?void 0:y.expandedSubtitleTapCommand;I=D&&_.u(D,_.lK);return _.l("web_open_ai_support_links_external_window")&&(I==null?void 0:I.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!((I=this.data)==null?0:(y=I.header)==null?0:y.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
B7.prototype.onUp=B7.prototype.onUp;B7.prototype.onDown=B7.prototype.onDown;B7.prototype.isExpandedChanged=B7.prototype.isExpandedChanged;B7.prototype.dataChanged=B7.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],B7.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],B7.prototype,"isExpanded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],B7.prototype,"disableExpand",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],B7.prototype,"isSearch",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],B7.prototype,"isWatch",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.A("design:type",Object)],B7.prototype,"showProminentLabel",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.A("design:type",Object)],B7.prototype,"showRightSideLabel",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"hasVideoSummary",null);_.W([_.M({value:!1,reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"hasLockupViewModel",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data","isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"useCustomColors",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"showInfoButton",null);_.W([_.Y("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"showTimestamp",null);_.W([_.Y("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"showExpandedSubtitle",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],B7.prototype,"expandedSubtitleTarget",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],B7.prototype,"expandedSubtitleRel",null);_.W([_.Y("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],B7.prototype,"showThumbnail",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],B7.prototype,"useVppShoppingDestinationStyle",null);
_.W([_.M(),_.A("design:type",Object)],B7.prototype,"toggleExpandableContent",void 0);_.W([_.a0("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],B7.prototype,"JSC$15572_cardList",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.A("design:type",Object)],B7.prototype,"useSquareThumbnail",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B7.prototype,"dataChanged",null);
_.W([_.ke("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B7.prototype,"isExpandedChanged",null);_.W([_.z4("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],B7.prototype,"onDown",null);_.W([_.z4("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],B7.prototype,"onUp",null);
_.W([_.yd({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],B7);
_.a(B7,"ytd-expandable-metadata-renderer",function(){if(O7R!==void 0)return O7R;var I=document.createElement("template");_.G(I,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return O7R=I},{mode:1});var J3M,wOG=function(){if(J3M!==void 0)return J3M;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return J3M=I};_.NK(_.wm,"yt-avatar-stack-view-model",{props:{className:_.om,data:_.om,overrides:_.om,isOverlay:_.om,useMediumText:_.om,decorations:_.om,hideAvatar:_.om}});_.bO("itemSectionRenderer","videoRenderer","ytd-video-renderer");var i1=function(){var I=_.k.apply(this,arguments)||this;I.disableExpand=!1;I.shouldShowChannelInfo=!1;I.hasAttributedBylineText=!1;I.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return I};
_.E(i1,_.k);_.L=i1.prototype;_.L.computeUseSearchUi=function(){var I,y;return this.isSearch||((I=this.data)==null?void 0:(y=I.style)==null?void 0:y.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.L.computeUseThreeLineTitle=function(){var I;return((I=this.data)==null?void 0:I.maxTitleLines)===3};
_.L.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.l("polymer_video_renderer_defer_menu")&&!CNu?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.L.attached=function(){_.Ye(this.hostElement,"blue-links",_.l("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.fg(_.XB(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var I=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;I&&((y=_.u(I.commandMetadata,_.eJ))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(I);this.updateInlinePreviewHoverListeners()};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15577_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.JSC$15577_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$15577_inlinePreviewHoverListener)==null||Nv(I)};
_.L.onTextWrapperClick=function(I){var y,D,F=this.hideTranslation?(y=this.data)==null?void 0:y.untranslatedNavigationEndpoint:(D=this.data)==null?void 0:D.navigationEndpoint;y=_.rP(_.r4(I),this.hostElement,["expandable-metadata"]);!F||y&&!_.l("expandable_metadata_fix_killswitch")||_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.lj(this.hostElement,"yt-navigate",{endpoint:F})};
_.L.computeThumbnailWidth=function(I,y,D,F,R){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:F?R==="MASSIVE"?600:R==="BIG"?500:R==="MEDIUM"?450:420:D?360:y?128:I?210:246};
_.L.computeUseBiggerThumbs=function(I){return I&&_.l("enable_desktop_search_bigger_thumbs")};
_.L.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.L.computeHasAttributedBylineText=function(){var I;return!((I=this.data)==null||!I.attributedBylineText)};
_.L.computeVideoStyle=function(){if(_.l("enable_video_style")){var I,y;return(I=this.data)==null?void 0:(y=I.style)==null?void 0:y.value}};
_.L.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.L.handleHideItemSectionVideosByIdCommand=function(I){var y;I=(y=_.u(I,af_))==null?void 0:y.videoId;this.data&&this.data.videoId===I&&(this.isHidden=!0)};
_.L.getMetadataSnippetContainerClass=function(I){return I?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.L.computeTitleText=function(I,y,D){return I?D:y};
_.L.computeDescriptionSnippet=function(I,y,D){return I?D:y};
_.L.computeSnippetText=function(I,y,D){return I?D:y};
_.L.computeNavigationEndpoint=function(I,y){return I?y==null?void 0:y.untranslatedNavigationEndpoint:y==null?void 0:y.navigationEndpoint};
_.L.hideInlineTitleIcon=function(I,y){return I||!y};
_.mD.Object.defineProperties(i1.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 I;return(I=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?I:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!(this==null?0:(I=this.data)==null?0:(y=I.channelThumbnailSupportedRenderers)==null?0:(D=y.channelThumbnailWithLinkRenderer)==null?0:D.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.u((I=this.data)==null?void 0:I.avatar,Npg)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$15577_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.mD.Object.defineProperties(i1,{template:{configurable:!0,enumerable:!0,get:function(){return wOG()}}});
i1.prototype.dataChanged=i1.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],i1.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],i1.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.jo),_.A("design:type",Object)],i1.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],i1.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],i1.prototype,"isBackstageVideo",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],i1.prototype,"isPostCompactVideo",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],i1.prototype,"isHistory",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],i1.prototype,"isRichGridVideoPost",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],i1.prototype,"isHidden",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],i1.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.A("design:type",Boolean)],i1.prototype,"useSearchUi",void 0);_.W([_.M({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.A("design:type",Boolean)],i1.prototype,"useThreeLineTitle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.A("design:type",Boolean)],i1.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.A("design:type",Object)],i1.prototype,"videoStyle",void 0);_.W([_.M({computed:"computeDisableExpand(videoStyle)"}),_.A("design:type",Object)],i1.prototype,"disableExpand",void 0);
_.W([_.M({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.A("design:type",Object)],i1.prototype,"shouldShowChannelInfo",void 0);_.W([_.M({computed:"computeHasAttributedBylineText(data)"}),_.A("design:type",Object)],i1.prototype,"hasAttributedBylineText",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],i1.prototype,"biggerThumbsStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.A("design:type",String)],i1.prototype,"inlineTitleIcon",void 0);_.W([_.M({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.A("design:type",Object)],i1.prototype,"computedNavigationEndpoint",void 0);_.W([_.M({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(I,y){return _.nC(I.entities,"searchVideoResultEntity",y)}}),
_.A("design:type",Object)],i1.prototype,"searchVideoResultEntity",void 0);_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],i1.prototype,"thumbnail",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],i1.prototype,"JSC$15577_dismissibleMedia",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],i1.prototype,"dataChanged",null);
_.W([_.Y("searchVideoResultEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],i1.prototype,"hideTranslation",null);_.W([_.Y("searchVideoResultEntity"),_.A("design:type",Array),_.A("design:paramtypes",[])],i1.prototype,"hiddenBadgeGroups",null);_.W([_.Y("data","useAvatar"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],i1.prototype,"shouldShowChannelThumbnail",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],i1.prototype,"useAvatar",null);
_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],i1.prototype,"isHovered",null);_.W([_.yd({is:"ytd-video-renderer",disableElementRegistration:!0})],i1);_.a(i1,"ytd-video-renderer",function(){return wOG()},{mode:_.Qd("kevlar_poly_si_batch_j047")?1:2});var Ah=function(){var I=_.k.apply(this,arguments)||this;I.editDialog=null;I.roundedContainer=!0;I.isLoading=!1;I.isRichGrid=!1;I.isRichGridRepost=!1;I.reduceSidePaddings=_.l("reduce_side_paddings_in_shelf");I.JSC$15584_spinnerEl=null;return I};
_.E(Ah,_.k);_.L=Ah.prototype;
_.L.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"}}}};
_.L.contentTextChanged=function(){this.expander.reset()};
_.L.dataChanged=function(){var I=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var y=0,D=this.data.actions&&this.data.actions.length;y<D;y++)this.openEditDialog(_.u(this.data.actions[y],xng));if((y=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(y=this.get("buttonRenderer.hint.hintRenderer.hintId",y))&&y.startsWith("share-post-hint")){var F=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(F){_.kD.getInstance();var R=dE(_.Ug(_.zC("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.w2.addLowPriorityJob(function(){_.GC(I.hostElement,R,F)})}}}};
_.L.updatePoll=function(I){I>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.L.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15584_spinnerEl||(this.JSC$15584_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XB(this.hostElement).appendChild(this.JSC$15584_spinnerEl));this.JSC$15584_spinnerEl&&(this.JSC$15584_spinnerEl.active=this.isLoading)};
_.L.onYtNavigate=function(I){var y=this.get("updateCommentDialogEndpoint",I.detail.endpoint);y&&(this.openEditDialog(y),I.stopPropagation())};
_.L.onYtCommentboxDismiss=function(){this.editDialog=null};
_.L.onYtCommentPollRevert=function(I,y){y&&this.updatePoll(y.selectedChoiceIndex)};
_.L.onYtServiceRequestSent=function(I,y){var D;y.endpoint&&(_.u(y.endpoint,mTe)||_.u(y.endpoint,p9u)&&((D=_.u(y.endpoint,p9u))==null||!D.clientActions))&&(this.isLoading=!0);if(y.actions)for(I=0;I<y.actions.length;I++)D=y.actions[I],_.u(D,bE)&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D==void 0&&(D=-1),this.updatePoll(D))};
_.L.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.L.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.editDialogEl.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.L.computeIsPostHidden=function(I,y){return!!I||y};
_.L.computeSurfaceType=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeUsesCompactLockup=function(I){return I==="BACKSTAGE_SURFACE_TYPE_HOME"||I==="BACKSTAGE_SURFACE_TYPE_SEARCH"||I==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||I==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||I==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||I==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.L.computeShowWithoutToolbar=function(I){return!I.actionButtons&&!I.actionMenu};
_.L.computePostAttachment=function(I){if(I.backstageAttachment){if(_.u(I.backstageAttachment,Syc))return"poll";if(_.u(I.backstageAttachment,eQg))return"quiz";if(_.u(I.backstageAttachment,_.hJ_))return"video";if(_.u(I.backstageAttachment,TiP))return"uploaded-videos";if(_.u(I.backstageAttachment,$jG))return I.contentText?"image":"image-only";if(_.u(I.backstageAttachment,A2c))return"playlist"}return"none"};
_.L.computePostTabIndex=function(I){return I?0:-1};
_.L.computeButtonTooltipPosition=function(I){return this.computeUsesCompactLockup(I)?"top":"bottom"};
_.L.computeHasText=function(I){return!(I==null||!I.contentText)};
_.L.onTap=function(I){var y,D;if(((y=this.data)==null?0:y.navigationEndpoint)&&((D=this.data)==null?void 0:D.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var F;((F=this.data)==null?0:F.navigationEndpoint)&&!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.mD.Object.defineProperties(Ah.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ug("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.u(this.data.backstageAttachment,Syc))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.u(this.data.backstageAttachment,TiP))}}});
Ah.prototype.onYtServiceRequestCompleted=Ah.prototype.onYtServiceRequestCompleted;Ah.prototype.onYtServiceRequestSent=Ah.prototype.onYtServiceRequestSent;Ah.prototype.onYtCommentPollRevert=Ah.prototype.onYtCommentPollRevert;Ah.prototype.onYtCommentboxDismiss=Ah.prototype.onYtCommentboxDismiss;Ah.prototype.onYtNavigate=Ah.prototype.onYtNavigate;Ah.prototype.isLoadingChanged=Ah.prototype.isLoadingChanged;Ah.prototype.dataChanged=Ah.prototype.dataChanged;Ah.prototype.contentTextChanged=Ah.prototype.contentTextChanged;
_.W([_.Q(_.vy),_.A("design:type",Object)],Ah.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ah.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ah.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],Ah.prototype,"editDialog",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ah.prototype,"roundedContainer",void 0);_.W([_.M(),_.A("design:type",Object)],Ah.prototype,"isLoading",void 0);_.W([_.M({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.A("design:type",String)],Ah.prototype,"surface",void 0);
_.W([_.M({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ah.prototype,"usesCompactLockup",void 0);_.W([_.M({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ah.prototype,"showWithoutToolbar",void 0);_.W([_.M({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.A("design:type",String)],Ah.prototype,"attachment",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ah.prototype,"isRichGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ah.prototype,"isRichGridRepost",void 0);_.W([_.M({reflectToAttribute:!0,value:_.l("use_better_post_dismissals")}),_.A("design:type",Boolean)],Ah.prototype,"useBetterPostDismissals",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ah.prototype,"reduceSidePaddings",void 0);
_.W([_.M({computed:"computeHasText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ah.prototype,"hasText",void 0);_.W([_.a0("#expander"),_.A("design:type",Object)],Ah.prototype,"expander",void 0);_.W([_.a0("#action-buttons"),_.A("design:type",Object)],Ah.prototype,"actionButtons",void 0);_.W([_.a0("#edit-dialog"),_.A("design:type",HTMLElement)],Ah.prototype,"editDialogEl",void 0);
_.W([_.ke("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ah.prototype,"contentTextChanged",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ah.prototype,"dataChanged",null);_.W([_.ke("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ah.prototype,"isLoadingChanged",null);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ah.prototype,"onYtNavigate",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ah.prototype,"onYtCommentboxDismiss",null);_.W([_.z4("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ah.prototype,"onYtCommentPollRevert",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],Ah.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],Ah.prototype,"onYtServiceRequestCompleted",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ah.prototype,"voteCount",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ah.prototype,"commentCount",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ah.prototype,"hasPoll",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ah.prototype,"hasUploadedVideo",null);_.W([_.yd({is:"ytd-post-renderer",disableElementRegistration:!0})],Ah);
_.a(Ah,"ytd-post-renderer",function(){if(Xka!==void 0)return Xka;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Xka=I},{mode:1});var vUR;var Szn;var $Z=function(){return _.k.apply(this,arguments)||this};
_.E($Z,_.k);$Z.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],$Z.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],$Z.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$Z.prototype,"data",void 0);
_.W([_.M({value:"$.items.children"}),_.A("design:type",String)],$Z.prototype,"itemsPath",void 0);_.W([_.M({value:1}),_.A("design:type",Number)],$Z.prototype,"initialCount",void 0);_.W([_.M({reflectToAttribute:!0,value:_.l("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],$Z.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.M(),_.A("design:type",String)],$Z.prototype,"surface",void 0);_.W([_.yd({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],$Z);
_.a($Z,"ytd-post-multi-image-renderer",function(){if(Szn!==void 0)return Szn;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Szn=I},{mode:_.Qd("kevlar_poly_si_batch_j079")?1:2});var t_W={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
b1=function(){var I=_.k.apply(this,arguments)||this;I.hasInlineCommentSection=!1;I.editDialog=null;I.isLoading=!1;I.shouldHideAuthor=!1;I.shouldShowVideoTime=!1;I.isInEngagementPanel=!1;I.hideBorder=!1;I.usesFullLockup=!1;I.shouldShowMenuInCompactView=!1;I.JSC$15599_spinnerEl=null;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.E(b1,_.k);_.L=b1.prototype;_.L.configureRendererStamper=function(){return t_W};
_.L.computeIsPollHeaderEnabled=function(I){return(I==null?void 0:I.pollMetadataIcon)!=null};
_.L.getPublishTimeStampString=function(I,y){y=new Date((Number(y)-60*((new Date).getTimezoneOffset()-(new Date(Number(y)*1E3)).getTimezoneOffset()))*1E3);y=(new K0(10)).format(y);if(I&&I.runs&&I.runs.length)for(var D=0;D<I.runs.length;D++)I.runs[D].text&&(I.runs[D].text=I.runs[D].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",y));return I};
_.L.created=function(){this.JSC$15599_spinnerEl=null};
_.L.contentTextChanged=function(){this.expander.reset()};
_.L.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var I;if((I=this.data)==null?0:I.actions){I=_.J(this.data.actions);for(var y=I.next();!y.done;y=I.next())this.openEditDialog(_.u(y.value,xng))}};
_.L.handleSignalActionOpenPostCommentDialogAction=function(){_.XB(this.hostElement).querySelector("#action-buttons").reply()};
_.L.updatePoll=function(I,y){y&&this.set("data.pollMetadataVoteCountText",y);this.hasInlineCommentSection&&(I=I>=0,y=_.XB(this.hostElement).querySelector("#action-buttons"),I?y.reply():y.hideReplyDialog())};
_.L.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15599_spinnerEl||(this.JSC$15599_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XB(this.hostElement).appendChild(this.JSC$15599_spinnerEl));this.JSC$15599_spinnerEl&&(this.JSC$15599_spinnerEl.active=this.isLoading)};
_.L.onYtNavigate=function(I){var y=this.get("updateCommentDialogEndpoint",I.detail.endpoint);y&&(this.openEditDialog(y),I.stopPropagation())};
_.L.onYtCommentboxDismiss=function(){this.editDialog=null};
_.L.onYtCommentPollRevert=function(I,y){y&&this.updatePoll(y.selectedChoiceIndex,y.totalVotes)};
_.L.onYtServiceRequestSent=function(I,y){I.stopPropagation();I=_.u(y.endpoint,p9u);if(_.u(y.endpoint,mTe)||I&&!I.clientActions)this.isLoading=!0;if(y.actions)for(I=0;I<y.actions.length;I++){var D=y.actions[I],F=_.u(D,bE);F&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D===void 0&&(D=-1),this.updatePoll(D,F.totalVotes))}};
_.L.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.L.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.editDialogElement.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.L.computeIsBodyHidden=function(I,y){return!!I||y};
_.mD.Object.defineProperties(b1.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var I=this.data,y=I.showPostAuthorBackgroundHighlight,D=I.postAuthorBadgeType,F=I.authorEndpoint;if(!y&&D!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&D!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var R,O,w;I=_.Ug(((R=I.authorText)==null?void 0:(O=R.runs)==null?void 0:(w=O[0])==null?void 0:w.text)||"");R=void 0;switch(D){case "POST_AUTHOR_BADGE_TYPE_ARTIST":R={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":R={iconType:y?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:I,authorEndpoint:F,authorCreator:y,icon:R}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var I,y;if((I=this.data)==null?0:(y=I.pollMetadataIcon)==null?0:y.iconType)return _.pQ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ug("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.u(this.data.backstageAttachment,Syc))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.u(this.data.backstageAttachment,eQg))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.u(this.data.backstageAttachment,TiP))}}});
b1.prototype.onYtServiceRequestCompleted=b1.prototype.onYtServiceRequestCompleted;b1.prototype.onYtServiceRequestSent=b1.prototype.onYtServiceRequestSent;b1.prototype.onYtCommentPollRevert=b1.prototype.onYtCommentPollRevert;b1.prototype.onYtCommentboxDismiss=b1.prototype.onYtCommentboxDismiss;b1.prototype.onYtNavigate=b1.prototype.onYtNavigate;b1.prototype.isLoadingChanged=b1.prototype.isLoadingChanged;b1.prototype.dataChanged=b1.prototype.dataChanged;b1.prototype.contentTextChanged=b1.prototype.contentTextChanged;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],b1.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],b1.prototype,"rendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],b1.prototype,"rendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],b1.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.a0("#contentTextExpander"),_.A("design:type",Object)],b1.prototype,"expander",void 0);_.W([_.a0("#edit-dialog"),_.A("design:type",Element)],b1.prototype,"editDialogElement",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"hasInlineCommentSection",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"editDialog",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"isLoading",void 0);
_.W([_.M({computed:"computeIsPollHeaderEnabled(data)"}),_.A("design:type",Boolean)],b1.prototype,"isPollHeaderEnabled",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"shouldHideAuthor",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"shouldShowVideoTime",void 0);_.W([_.M(),_.A("design:type",Object)],b1.prototype,"isInEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],b1.prototype,"hideBorder",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],b1.prototype,"usesFullLockup",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],b1.prototype,"shouldShowMenuInCompactView",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],b1.prototype,"authorCommentBadge",null);_.W([_.Y("isInEngagementPanel"),_.A("design:type",Number),_.A("design:paramtypes",[])],b1.prototype,"postTextMaxLines",null);
_.W([_.Y("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],b1.prototype,"pollIcon",null);_.W([_.ke("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b1.prototype,"contentTextChanged",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b1.prototype,"dataChanged",null);
_.W([_.ke("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b1.prototype,"isLoadingChanged",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b1.prototype,"onYtNavigate",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b1.prototype,"onYtCommentboxDismiss",null);
_.W([_.z4("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],b1.prototype,"onYtCommentPollRevert",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],b1.prototype,"onYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b1.prototype,"onYtServiceRequestCompleted",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],b1.prototype,"voteCount",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],b1.prototype,"commentCount",null);
_.W([_.Y("data.backstageAttachment"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],b1.prototype,"hasPoll",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],b1.prototype,"hasQuiz",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],b1.prototype,"hasUploadedVideo",null);_.W([_.yd({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],b1);
_.a(b1,"ytd-backstage-post-renderer",function(){if(vUR!==void 0)return vUR;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return vUR=I},{mode:1});var PrM;var H7=function(){var I=_.k.apply(this,arguments)||this;I.editDialog=null;I.showExpandButton=!1;I.isRichGrid=!1;I.usesFullLockup=!1;return I};
_.E(H7,_.k);_.L=H7.prototype;_.L.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"}}}};
_.L.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.L.computeShowExpandButton=function(I){return this.usesCompactLockup||I&&I.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.L.computeUsesCompactLockup=function(I){return!!I.condensedContent};
_.L.computeShowFullContentText=function(I){return!I};
_.L.onYtNavigate=function(I){I=this.get("updateCommentDialogEndpoint",I.detail.endpoint);this.openEditDialog(I)};
_.L.onYtCommentboxDismiss=function(){this.editDialog=null};
_.L.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.repostEditDialogEl.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.L.onTap=function(I){if(this.data){var y=null;this.usesCompactLockup&&!_.UP(_.r4(I)||[],this.hostElement,["YT-IMG-SHADOW"])?y=this.get("navigationEndpoint",this.data):I.target===this.moreButtonEl&&(y=this.get("navigationEndpoint",I.target.data));y&&_.lj(this.hostElement,"yt-navigate",{endpoint:y})}};
H7.prototype.onYtCommentboxDismiss=H7.prototype.onYtCommentboxDismiss;H7.prototype.onYtNavigate=H7.prototype.onYtNavigate;H7.prototype.dataChanged=H7.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],H7.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],H7.prototype,"editDialog",void 0);_.W([_.M({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],H7.prototype,"usesCompactLockup",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],H7.prototype,"showExpandButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],H7.prototype,"isRichGrid",void 0);
_.W([_.M({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.A("design:type",Boolean)],H7.prototype,"showFullContentText",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],H7.prototype,"usesFullLockup",void 0);_.W([_.a0("#more"),_.A("design:type",Object)],H7.prototype,"moreButtonEl",void 0);_.W([_.a0("#repost-content-text"),_.A("design:type",HTMLElement)],H7.prototype,"repostContentTextEl",void 0);
_.W([_.a0("#repost-edit-dialog"),_.A("design:type",HTMLElement)],H7.prototype,"repostEditDialogEl",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H7.prototype,"dataChanged",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],H7.prototype,"onYtNavigate",null);
_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H7.prototype,"onYtCommentboxDismiss",null);_.W([_.yd({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],H7);
_.a(H7,"ytd-shared-post-renderer",function(){if(PrM!==void 0)return PrM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PrM=I},{mode:1});var Kyc;var UpG;var e9=function(){return _.k.apply(this,arguments)||this};
_.E(e9,_.k);e9.prototype.attached=function(){var I=this;this.networkStatusManager||(this.networkStatusManager=new _.x7,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){I.onlineHandler()}))};
e9.prototype.detached=function(){var I=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){I.onlineHandler()}),delete this.networkStatusManager)};
e9.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],e9.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],e9);
_.a(e9,"ytd-reload-page-button-renderer",function(){if(UpG!==void 0)return UpG;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return UpG=I},{mode:1});var r3G={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"},TR=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(TR,_.k);_.L=TR.prototype;_.L.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.L.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.L.computeHasBodyText=function(I){return!!I.bodyText};
_.L.computeButtons=function(I){var y=[];I.ctaButton&&y.push(I.ctaButton);I.secondaryButton&&y.push(I.secondaryButton);return y};
_.L.computeRendererStyle=function(I){return I.style?I.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():I.icon?"":"no-icon"};
_.L.getIconName=function(I,y){y=y===void 0?!1:y;if(I===void 0)return"";I=this.get("icon.iconType",I);var D;_.l("enable_hlp_client_icon_pick")?D=this.getThemedIcon(I,y):D=I;(y=r3G[D])||(y="yt-icons");return[y,D].join(":")};
_.L.getThemedIcon=function(I,y){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(I)?y?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(I)?y?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":I};
_.L.isThumbnail=function(I){return!!I.thumbnail};
_.L.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.L.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TR.prototype,"data",void 0);
_.W([_.M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],TR.prototype,"rendererStyle",void 0);_.W([_.M({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.A("design:type",String)],TR.prototype,"iconName",void 0);_.W([_.M({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],TR.prototype,"thumbnail",void 0);_.W([_.M({computed:"computeButtons(data)"}),_.A("design:type",Array)],TR.prototype,"buttons",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],TR.prototype,"isDarkTheme",void 0);_.W([_.M({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],TR.prototype,"hasBodyText",void 0);_.W([_.yd({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],TR);
_.Xf()(TR,"ytd-background-promo-renderer",function(){if(Kyc===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);Kyc=I}I=Kyc;return I},{allowedProps:["data"],
mode:1});var jMW;var sH=function(){return _.k.apply(this,arguments)||this};
_.E(sH,_.k);_.mD.Object.defineProperties(sH.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(y=I.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(F=D.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(R=this.data)==null?void 0:(O=R.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sH.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],sH.prototype,"collectionStack",null);_.W([_.yd({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],sH);
_.a(sH,"ytd-compact-station-renderer",function(){if(jMW!==void 0)return jMW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return jMW=I},{mode:1});var oUg;var VC=function(){var I=_.k.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.E(VC,_.k);VC.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]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],VC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VC.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],VC.prototype,"isRichGrid",void 0);_.W([_.yd({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],VC);
_.a(VC,"ytd-grid-channel-renderer",function(){if(oUg!==void 0)return oUg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return oUg=I},{mode:1});var N0M;var Zk=function(){return _.k.apply(this,arguments)||this};
_.E(Zk,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zk.prototype,"data",void 0);_.W([_.yd({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Zk);
_.a(Zk,"ytd-grid-movie-playlist-renderer",function(){if(N0M!==void 0)return N0M;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return N0M=I},{mode:1});var hzg;var gm=function(){var I=_.k.apply(this,arguments)||this;I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.modernButtons=_.l("web_modern_buttons");return I};
_.E(gm,_.k);gm.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
gm.prototype.configureRendererStamper=function(){return{"data.menu":bz}};
gm.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
gm.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.l("woffle_playlist_renderer_killswitch")){var I,y=vS5(this.entityInfo,this.transferState,this.downloadProgress,(I=this.data)==null?void 0:I.playlistId,this.isOnline);I=y.viewPlaylistText;var D=y.badges;y=y.thumbnailOverlays;this.isDownloads=!!I||!!D;this.set("data.viewPlaylistText",I);D&&D.length>0&&this.set("data.badges",D);y&&y.length>0&&this.set("data.thumbnailOverlays",
y)}};
_.mD.Object.defineProperties(gm.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 I;return!((I=this.data)==null?0:I.menu)}}});
gm.prototype.transferStateChanged=gm.prototype.transferStateChanged;gm.prototype.dataChanged=gm.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],gm.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M({selector:_.HY_,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],gm.prototype,"downloadProgress",void 0);_.W([_.M({selector:_.Rq,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],gm.prototype,"transferState",void 0);_.W([_.M({selector:bYq,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],gm.prototype,"entityInfo",void 0);_.W([_.M({selector:_.D7}),_.A("design:type",Boolean)],gm.prototype,"isOnline",void 0);
_.W([_.M(),_.A("design:type",Object)],gm.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],gm.prototype,"downloadRenderData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],gm.prototype,"modernButtons",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],gm.prototype,"isDownloads",void 0);_.W([_.Y("transferState"),_.M({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],gm.prototype,"downloadState",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gm.prototype,"menuHidden",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gm.prototype,"dataChanged",null);_.W([_.Bp("transferState","downloadProgress","isOnline"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gm.prototype,"transferStateChanged",null);
_.W([_.yd({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],gm);
_.a(gm,"ytd-grid-playlist-renderer",function(){if(hzg!==void 0)return hzg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hzg=I},{mode:1});var xpO;var IF=function(){return _.k.apply(this,arguments)||this};
_.E(IF,_.k);IF.prototype.configureRendererStamper=function(){return{"data.menu":bz,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mD.Object.defineProperties(IF.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(y=I.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(F=D.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(R=this.data)==null?void 0:(O=R.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],IF.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],IF.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IF.prototype,"data",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],IF.prototype,"collectionStack",null);_.W([_.yd({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],IF);
_.a(IF,"ytd-grid-radio-renderer",function(){if(xpO!==void 0)return xpO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xpO=I},{mode:1});var l2g;var yZ=function(){return _.k.apply(this,arguments)||this};
_.E(yZ,_.k);yZ.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
yZ.prototype.computeNavigationEndpoint=function(I){return WNW(I==null?void 0:I.navigationEndpoint)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],yZ.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yZ.prototype,"data",void 0);_.W([_.M({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],yZ.prototype,"computedNavigationEndpoint",void 0);
_.W([_.yd({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],yZ);
_.a(yZ,"ytd-grid-show-renderer",function(){if(l2g!==void 0)return l2g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return l2g=I},{mode:1});var u7_;_.DV=function(I){this.playerClient=I};
_.qzW=function(I,y,D){D=D===void 0?{}:D;return I.playerClient.setOption("ad",y,D)};
_.DV.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.DV.prototype.executeCommand=function(I,y){this.getOptions().includes("executeCommand")?_.qzW(this,"executeCommand",{command:I,layoutId:y}):_.wv("Calling executeCommand when adModule is not loaded")};var FA=function(){return _.k.apply(this,arguments)||this};
_.E(FA,_.k);FA.prototype.getLayoutId=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
FA.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var I=_.NY(),y=this.getLayoutId(),D=this.data.clickthroughEndpoint;I&&y&&_.l("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(F){(new _.DV(F)).executeCommand(D,y)}):_.lj(this.hostElement,"yt-navigate",{endpoint:D})}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FA.prototype,"data",void 0);_.W([_.yd({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],FA);
_.a(FA,"ytd-shopping-companion-item-renderer",function(){if(u7_!==void 0)return u7_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return u7_=I},{mode:1});var EUM;var RF=function(){var I=_.k.apply(this,arguments)||this;I.isExpandableContent=!1;return I};
_.E(RF,_.k);_.mD.Object.defineProperties(RF.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?void 0:I.price)||((y=this.data)==null?void 0:(D=y.dealsData)==null?void 0:D.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var I,y;if((I=this.data)!=null&&I.dealsData&&((y=this.data)==null||!y.priceReplacementText)){I=this.data.dealsData;var D,F,R;return((D=I.salesData)==null?void 0:D.originalPrice)||((F=I.priceDropData)==null?void 0:F.referencePrice)||((R=I.promotionData)==null?void 0:R.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var I,y;return(I=this.data)==null?void 0:(y=I.dealsData)==null?void 0:y.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],RF.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RF.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RF.prototype,"isExpandableContent",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"showCta",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"ctaText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"hasPriceTopPosition",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"hasPriceBottomPosition",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"useNewStyle",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"showPriceReplacementText",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"priceValue",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"showDeal",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"showAffiliateDisclaimer",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"useSaleStyle",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"useFromBrandCtaStyle",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"useFromVendorCtaStyle",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],RF.prototype,"useShoppingCollectionCtaStyle",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],RF);
_.a(RF,"ytd-vertical-product-card-renderer",function(){if(EUM!==void 0)return EUM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return EUM=I},{mode:1});var Gkz;var OK=function(){return _.k.apply(this,arguments)||this};
_.E(OK,_.k);OK.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],OK.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OK.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],OK);
_.a(OK,"ytd-grid-movie-renderer",function(){if(Gkz!==void 0)return Gkz;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Gkz=I},{mode:1});var XOa;var Lp=function(){var I=_.k.apply(this,arguments)||this;I.roundedFix=_.l("web_enable_merch_item_rounding_fix");I.itemStyle="small-item";return I};
_.E(Lp,_.k);Lp.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var I,y,D,F,R=(y=_.u((I=this.data)==null?void 0:I.buttonCommand,_.G9O))==null?void 0:(D=y.item)==null?void 0:(F=D.notificationTextRenderer)==null?void 0:F.successResponseText;R&&_.b7S(this.hostElement,R)}};
_.mD.Object.defineProperties(Lp.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.isProductPlaceholder)!==void 0&&((y=this.data)==null?void 0:y.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lp.prototype,"roundedFix",void 0);_.W([_.M(),_.A("design:type",Object)],Lp.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Lp.prototype,"itemStyle",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"hasPrice",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"hasPriceReplacementText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"hasAdditionalFeesText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"hasAffiliateDisclaimer",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"isProductPlaceholder",null);
_.W([_.M(),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"hideOpenInNewIcon",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lp.prototype,"ariaLabel",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Lp);
_.a(Lp,"ytd-merch-shelf-item-renderer",function(){if(XOa!==void 0)return XOa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return XOa=I},{mode:1});_.NK(_.d(function(I){return _.t("button-card-view-model",{el:_.K4(_.VM(function(){return I.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return I.data().title},
role:"button"},_.t(_.fM,{model:{}}),_.t("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.t("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.t(_.U,{cond:function(){return I.data().image},
then:function(y){return _.t(_.UE,{data:y,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.t("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return I.data().title})))},"dc"),"button-card-view-model",{props:{data:_.om}});_.NK(_.d(function(I){I=_.o6(I,{className:void 0});var y=I.data;I=I.className;var D=_.su(function(){return y().onTapCommand},void 0,"SXkP9e");
return _.t("ytd-shopping-item-card",{class:_.XH("ytdShoppingItemCardHost",I)},_.t(_.Yp,{command:D,className:"ytdShoppingItemCardHostLink"},_.t("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.t(_.aP,{data:function(){return y().thumbnailViewModel}},{thumbnailViewModel:function(F){return _.t(YZ,{data:F.data,
aspectRatio:3})}})),_.t("div",null,_.t("p",{class:"ytdShoppingItemCardHostItemTitle"},_.t(_.jr,{text:function(){return y().itemTitle}})),_.t("p",{class:"ytdShoppingItemCardHostPrice"},_.t(_.jr,{text:function(){return y().priceOrStatus}})))))},"ec"),"ytd-shopping-item-card",{props:{data:_.om,
className:_.om}});var QMf={isAdsVideo:!0},Yzz={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},f2g={showPlayerControls:!1,videoPreviewDurationMs:15E3},nUO={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},pOz={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var S5=null,H7B={};var sEH="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(" "),Ja={},VNH=(Ja.FEwhat_to_watch="home",Ja.FEhashtag="hashtag",Ja.FEtrending="trending",Ja.FEhistory="history",Ja.SPunlimited="premium",Ja.FEmemberships_and_purchases="paid_memberships",Ja.SPredeem_code="redeem",Ja.SPverify_location="locate",Ja.SPminor_moment="minor_moment",
Ja.FEmini_app_container="mini_app",Ja.FEnews_destination="news",Ja.SPopen_in_app="open_in_app",Ja.FEexplore="explore",Ja.FEsubscriptions="subscriptions",Ja.FEsfv_audio_pivot="sfv_audio_pivot",Ja.FEplaylist_aggregation="playlist_aggregation",Ja);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");_.Xs("init");var mpg=function(){},dpg=_.d(function(I){var y=I.data;
var D=I.inlineMetadata;var F=I.aspectRatio;var R=I.scrimStyle;var O=I.className;var w=I.useDefaultStyle;var v=I.titleStyle;var P=new mpg,K=_.l("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",r=_.su(function(){return(w==null?0:w())?K==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),N=_.su(function(){return _.Ki(D)||r()||!1},void 0,"SEL6Qd"),h=function(){return(R==null?void 0:R())!==void 0?R==null?void 0:R():1},
x=_.su(function(){return y().belowThumbnailMetadata||!N()},void 0,"KAqk1b");
I=_.pT({visibilityCallback:function(L5){var vH=y().onFirstVisible;L5&&vH&&_.OE(vH)},
showOption:{calledOnce:!0,state:"visible"}});var q=_.K4(),X={},f=_.XH(function(){return r(),"shortsLockupViewModelHostThumbnailContainer"},(X.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Ki(F)===1},X.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Ki(F)===2},X.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.l("web_shorts_2_by_3_lockups_study")&&!_.l("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
X)),m=_.su(function(){if(_.Ki(F)===1)return 1;
_.Ki(F);return 2},void 0,"Bg5Es"),z,B=function(){if(P){var L5;
(L5=z)==null||Nv(L5);var vH;if(P.hostElement&&((vH=P.data)==null?0:vH.inlinePlayerData)){var u_,jW;L5=((u_=P.data)==null?0:(jW=u_.inlinePlayerData)==null?0:jW.enableAudioControl)?Object.assign({},pOz):Object.assign({},nUO);var xA,dq;((xA=P.data)==null?void 0:(dq=xA.inlinePlayerData)==null?void 0:dq.maxPlaybackLengthSec)!==void 0&&(L5.videoPreviewDurationMs=P.data.inlinePlayerData.maxPlaybackLengthSec*1E3);z=Ik({mediaRenderer:P,lockupElement:P.hostElement,thumbnailElement:q.value,videoPreviewOpts:L5})}}};
_.wZ(function(){P&&(P.data=y(),B())},"wo9C7e");
var C=_.su(function(){return y().thumbnail},void 0,"haijYd");
X=_.su(function(){return y().badge},void 0,"RpDeSe");
var H=_.su(function(){return y().onTap},void 0,"hOfuOb"),e={},T={};
return _.t("ytm-shorts-lockup-view-model",{el:_.K4(function(L5){P&&(P.hostElement=L5)},B,I),
class:_.XH("shortsLockupViewModelHost",O)},_.t(_.ni,null,_.t(_.Yp,{command:H,className:_.XH("shortsLockupViewModelHostEndpoint",(e.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!x()},e),"reel-item-endpoint",""),
ariaHidden:function(){return!N()},
tabIndex:function(){return N()?0:-1}},_.t("div",{el:q,
class:_.XH("shortsLockupViewModelHostThumbnailParentContainer",(T.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!r()},T))},_.t(_.U,{cond:C,
then:function(){return _.t("div",{class:f},_.t(_.UE,{data:function(){var L5;return(L5=C==null?void 0:C())!=null?L5:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.t(_.aP,{data:function(){return y().thumbnailViewModel}},{thumbnailViewModel:function(L5){return _.t(YZ,{data:L5.data,
aspectRatio:function(){return m()},
disableRounding:function(){return r()}})}}),null),_.t(_.U,{cond:N,
then:function(){return _.t(M_O,{data:y,scrimStyle:h,useDefaultStyle:w,titleStyle:v})}}),_.t(_.aP,{data:X},{badgeViewModel:function(L5){return _.t(_.q1,{data:L5.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.t(_.U,{cond:function(){return N()&&y().menuOnTap},
then:function(){return _.t(zzM,{data:y,inlineMetadata:!0})}}),_.t(_.U,{cond:x,
then:function(){return _.t(kkO,{data:y,useDefaultStyle:w,inlineMetadata:N})}})))},"gc"),M_O=_.d(function(I){var y=I.data;
var D=I.scrimStyle;var F=I.useDefaultStyle;var R=I.titleStyle;var O=_.l("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",w=F&&_.l("web_hide_primary_text_for_pivot_panel"),v=_.su(function(){return(F==null?0:F())?O==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
I={};I=_.XH("shortsLockupViewModelHostInlineMetadata",(I.shortsLockupViewModelHostMetadataRounded=function(){return!v()},I.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(D==null?void 0:D())===3&&!_.l("enable_shorts_lockup_new_scrim")},I.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(D==null?void 0:D())===3&&_.l("enable_shorts_lockup_new_scrim")},I.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(D==null?void 0:D())===2||(D==null?void 0:
D())===4},I.shortsLockupViewModelHostShowOverPlayer=function(){return!0},I),"image-overlay-text");
var P={};return _.t("div",{class:I},_.t("h3",{class:_.XH("shortsLockupViewModelHostMetadataTitle",(P.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(D==null?void 0:D())===4},P.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return y().belowThumbnailMetadata},P.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(R==null?void 0:R())===1},P.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(R==null?void 0:R())===2},P)),
"aria-label":function(){return y().accessibilityText}},_.t(_.U,{cond:function(){var K;
return!((K=y().overlayMetadata)==null||!K.primaryText)&&!w},
then:function(){return _.t(_.jr,{text:function(){var K;return(K=y().overlayMetadata)==null?void 0:K.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.t(_.U,{cond:function(){var K;
return(K=y().overlayMetadata)==null?void 0:K.secondaryText},
then:function(){return _.t(a2P,{data:y,scrimStyle:D,className:void 0})}}))},"hc"),kkO=_.d(function(I){var y=I.data;
var D=I.useDefaultStyle;var F=I.inlineMetadata;var R=_.l("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=_.su(function(){return(D==null?0:D())?R==="SHORTS_LOCKUP_STYLE_SLIM":y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),w=_.K4(),v;
I=_.YY(function(x){if(_.ea(_.HS(x),w.value,["AVATAR-VIEW-MODEL"]))return!1;var q;(q=v)==null||q.click();return!1});
var P=_.su(function(){return y().belowThumbnailMetadata||y().overlayMetadata},void 0,"GwezKf"),K=function(){return y().menuOnTap&&!F()},r=function(){var x;
return(x=P())==null?void 0:x.avatar},N={},h={};
return _.t("div",{class:_.XH(function(){return O()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(N.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!r()},N.shortsLockupViewModelHostOutsideMetadataHasMenu=K,N)),
"on:click":I,el:w,role:"presentation"},_.t(_.aP,{data:r},{avatarViewModel:function(x){return _.t(_.LF,{data:x.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.t("div",null,_.t("h3",{class:_.XH("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(h.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var x,q;
return!((x=P())==null?0:(q=x.primaryText)==null?0:q.content)},h.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=F,h)),
role:"presentation"},_.t(_.Yp,{ref:function(x){return void(v=x)},
command:function(){return y().onTap},
className:_.XH("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var x,q;return(x=P())==null?void 0:(q=x.primaryText)==null?void 0:q.content},
"aria-label":function(){return y().accessibilityText}},_.t(_.U,{cond:function(){var x;
return(x=P())==null?void 0:x.primaryText},
then:function(x){return _.t(_.jr,{text:x,noEndpoints:!0,noStyleRuns:!0})}}))),_.t(_.U,{cond:function(){var x;
return(x=P())==null?void 0:x.secondaryText},
then:function(x){return _.t("div",{class:_.XH("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.t(_.jr,{text:x,noStyleRuns:!0}))}})),_.t(_.U,{cond:K,
then:function(){return _.t(zzM,{data:y,inlineMetadata:!1})}}))},"ic"),a2P=_.d(function(I){var y=I.data;
var D=I.scrimStyle;I=I.className;var F={};return _.t("div",{class:_.XH((F.shortsLockupViewModelHostMetadataSubhead=function(){return(D==null?void 0:D())!==4},F.shortsLockupViewModelHostMetadataSubheadNew=_.l("enable_shorts_lockup_new_scrim"),F.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(D==null?void 0:D())===4},F),I),
"aria-hidden":"true"},_.t(_.jr,{text:function(){var R;return(R=y().overlayMetadata)==null?void 0:R.secondaryText},
noStyleRuns:!0}))},"jc"),zzM=_.d(function(I){var y=I.data;
var D=I.inlineMetadata;I={};I=_.XH((I.shortsLockupViewModelHostInlineMetadataMenu=function(){return D()},I.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!D()},I.shortsLockupViewModelHostShowOverPlayer=function(){return!0},I),"image-overlay-text");
return _.t("div",{class:I},_.t(_.me,{data:function(){return{style:D()?"overlay":"mono",accessibilityLabel:y().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(F){F.preventDefault();F.stopPropagation();var R=_.FH({elementsCommand:y().menuOnTap,forceNewState:!0});if(R==null?0:R.onclick)R.onclick(F)}}},
iconName:"MORE_VERT"}))},"kc");var c3W=_.d(function(I){var y=I.data;var D=I.inlineMetadata;var F=I.aspectRatio;var R=I.scrimStyle;var O=I.className;var w=I.useDefaultStyle;I=_.su(function(){var v=y().entityId;return v?v.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.t("ytm-shorts-lockup-view-model-v2",{class:_.XH("shortsLockupViewModelHost",O)},_.t(_.kZ,{contentId:I,aspectRatio:function(){return(F==null?void 0:F())===1?1:(F==null?void 0:F())===2?2:4}},function(){return _.t(dpg,{data:y,
inlineMetadata:D,aspectRatio:F,scrimStyle:R,className:O,useDefaultStyle:w})}))},"lc");_.NK(c3W,"ytm-shorts-lockup-view-model-v2",{props:{data:_.rV,inlineMetadata:_.rV,aspectRatio:_.rV,scrimStyle:_.rV,className:_.rV,useDefaultStyle:_.rV,titleStyle:_.rV}});var Wyg=16/9*210,wO=function(){var I=_.k.apply(this,arguments)||this;I.isExpandableContent=!1;I.hideShelfHeader=!1;I.engagementPanel=!1;I.buttonClasses=["arrow"];I.isSearch=!1;I.disableScrollEventListener=!1;I.containsLockup=!1;I.overrideArrowPositionForProductCard=!1;I.overrideArrowPositionForShoppingItemCard=!1;I.overrideArrowPositionForReelItems=!1;I.overrideArrowPositionForGridMovie=!1;I.overrideArrowPositionToCenter=!1;I.isSearchPostShelf=!1;I.overrideArrowPositionForMixedShelf=!1;I.overrideArrowPositionForMixedShelfShortsOnly=
!1;I.hasBigThumbsReelItems=!1;I.shouldUseMixedListHeight=!1;I.shouldUseShortsListHeight=!1;I.gridVideoWidth=0;I.isSearchVodShelf=!1;I.disableWheelScroll=!1;I.sizing="COMPACT";I.shortsLockupAspectRatio=0;return I};
_.E(wO,_.k);_.L=wO.prototype;
_.L.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]]"}}}}};
_.L.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.l("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.L.computeInitialCountNumber=function(I){if(!I)return 6;var y=I.items.some(function(O){return!!O.topicRecommendationsChipRenderer}),D=I.items.some(function(O){return!!O.displayAdRenderer}),F=this.computeShouldListItemsHaveEqualHeight(I),R=I.items.some(function(O){return!!O.gridPlaylistRenderer});
I=I.items.some(function(O){return!!O.shoppingItemCardViewModel});
return y?9:D?8:R||F?10:I?7:6};
_.L.computeContainsPost=function(I){return!!I&&!!I.items&&I.items.some(function(y){return!!y.postRenderer})};
_.L.computeContainsLockup=function(){if(_.l("web_horizontal_list_lockup_arrow_killswitch"))return!1;var I,y;return(I=this.data)==null?void 0:(y=I.items)==null?void 0:y.some(function(D){return!!D.lockupViewModel})};
_.L.maybeUpdateLockupAspectRatio=function(){var I,y;if(this.computeContainsLockup()&&((I=this.data)==null?0:(y=I.items)==null?0:y.length)){var D;I=x$H((D=this.data.items[0].lockupViewModel)==null?void 0:D.contentType,this.data.force16By9ThumbnailAspectRatio);D=hEJ(I);D=this.computeLockupWidth()/D;_.pg(this.hostElement,{"--yt-horizontal-list-content-height":D+"px"})}};
_.L.computeOverrideArrowPositionForProductCard=function(I){if(this.isExpandableContent)return!1;var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){return!!D.verticalProductCardRenderer}))};
_.L.computeOverrideArrowPositionForShoppingItemCard=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){return!!D.shoppingItemCardViewModel}))};
_.L.computeOverrideArrowPositionForReelItemRenderer=function(I){return this.containsReelItemRenderer(I)};
_.L.computeHasBigThumbsReelItems=function(I,y){return I&&this.containsReelItemRenderer(y)};
_.L.computeShouldListItemsHaveEqualHeight=function(I){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(I==null?void 0:I.itemSizeConstraint)};
_.L.computeShouldListItemsHaveShortsHeight=function(I){return this.computeShouldListItemsHaveEqualHeight(I)&&!this.containsGridVideoRenderer(I)};
_.L.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.L.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.L.containsReelItemRenderer=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){return!(!D.reelItemRenderer&&!D.shortsLockupViewModel)}))};
_.L.containsGridVideoRenderer=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){return!!D.gridVideoRenderer||!!D.lockupViewModel}))};
_.L.computeContainsGridMovieRenderer=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){return!!D.gridMovieRenderer}))};
_.L.computeOverrideArrowPositionToCenter=function(I){return this.computeIsSearchPostShelf(I)};
_.L.computeIsSearchPostShelf=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){var F,R;return((R=(F=D.postRenderer)==null?void 0:F.surface)!=null?R:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.L.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(I){var y;return!!(I==null?0:(y=I.items)==null?0:y.some(function(D){var F,R,O;return((O=(F=D.backgroundPromoRenderer)==null?void 0:(R=F.style)==null?void 0:R.value)!=null?O:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.L.computeIsSearchVodShelf=function(I,y){return I&&this.containsGridVideoRenderer(y)};
_.L.computeDisableWheelScroll=function(I,y){return this.computeIsSearchVodShelf(I,y)};
_.L.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.L.computeShortsLockupAspectRatio=function(){return 1};
_.L.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.pg(this.hostElement,{"--ytd-reel-item-thumbnail-height":Wyg+"px"})};
wO.prototype.dataChanged=wO.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],wO.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],wO.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],wO.prototype,"isExpandableContent",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"hideShelfHeader",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Array)],wO.prototype,"buttonClasses",void 0);_.W([_.M(),_.A("design:type",Object)],wO.prototype,"isSearch",void 0);
_.W([_.M(),_.A("design:type",Object)],wO.prototype,"disableScrollEventListener",void 0);_.W([_.M({computed:"computeInitialCountNumber(data)"}),_.A("design:type",Number)],wO.prototype,"initialCount",void 0);_.W([_.M({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],wO.prototype,"supportComponentResize",void 0);_.W([_.M({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],wO.prototype,"containsPost",void 0);
_.W([_.M({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"containsLockup",void 0);_.W([_.M({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],wO.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.W([_.M({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForProductCard",void 0);_.W([_.M({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.W([_.M({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForReelItems",void 0);_.W([_.M({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForGridMovie",void 0);
_.W([_.M({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionToCenter",void 0);_.W([_.M({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"isSearchPostShelf",void 0);_.W([_.M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.W([_.M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.W([_.M({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"hasBigThumbsReelItems",void 0);
_.W([_.M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"shouldUseMixedListHeight",void 0);_.W([_.M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"shouldUseShortsListHeight",void 0);_.W([_.M({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"gridVideoWidth",void 0);
_.W([_.M({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"isSearchVodShelf",void 0);_.W([_.M({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],wO.prototype,"disableWheelScroll",void 0);_.W([_.M({computed:"computeSizing(isSearch)"}),_.A("design:type",Object)],wO.prototype,"sizing",void 0);
_.W([_.M({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.A("design:type",Object)],wO.prototype,"shortsLockupAspectRatio",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wO.prototype,"dataChanged",null);
_.a(wO,"yt-horizontal-list-renderer",function(){if(W0R===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);W0R=I}I=W0R;return I},{mode:1});var Cra=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
Cra.prototype.subscribe=function(I,y){var D=this.subscriptions.get(I);if(!D)return function(){};
D.add(y);return function(){D.delete(y)}};
Cra.prototype.unsubscribe=function(I,y){(I=this.subscriptions.get(I))&&I.delete(y)};
Cra.prototype.publish=function(I,y){y=y===void 0?{}:y;(I=this.subscriptions.get(I))&&I.forEach(function(D){D(y)})};var B0g;var iU_=[10,12,14,16,18,20,24,28,32,36],A3g=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],vj=function(){var I=_.k.apply(this,arguments)||this;I.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";I.hideOverflow=!1;I.useRoboto=!1;I.fontClass="";I.overflown=!1;I.actionMap={"yt-window-resized":"resize"};return I};
_.E(vj,_.k);_.L=vj.prototype;
_.L.attached=function(){var I=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();_.YC(this,function(){I.resize()});
if(!_.fz){var y,D,F;(y=document)==null||(D=y.fonts)==null||(F=D.ready)==null||F.then(function(){I.resize()})}};
_.L.dataChanged=function(){this.resize()};
_.L.guideIsExpandedChanged=function(){this.resize()};
_.L.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 I=this.getMaxNumLines(),y=this.getMinFont(),D=this.getMaxFont(),F=this.useRoboto?iU_:A3g;for(F=F.filter(function(O){return O<=D&&O>=y});F.length>1;){var R=Math.floor(F.length/2);
this.updateFontSize(F[R]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=I)F=F.slice(R,F.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>I)F=F.slice(0,R);else break}this.updateFontSize(F[F.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(I)}};
_.L.handleOverflow=function(I){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>I&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",I.toString()))};
_.L.updateFontSize=function(I){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+I;this.textNode.classList.add(this.fontClass)};
_.L.getMaxFont=function(){var I=this.useRoboto?iU_:A3g;I=I[I.length-1];return this.maxFontSize&&this.maxFontSize<=I?this.maxFontSize:I};
_.L.getMinFont=function(){var I=(this.useRoboto?iU_:A3g)[0];return this.minFontSize&&this.minFontSize>=I?this.minFontSize:I};
_.L.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.L.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.L.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.rY(this.text).split("\n").length-1:Infinity};
_.L.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("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
vj.prototype.guideIsExpandedChanged=vj.prototype.guideIsExpandedChanged;vj.prototype.dataChanged=vj.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],vj.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],vj.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vj.prototype,"text",void 0);
_.W([_.M(),_.A("design:type",String)],vj.prototype,"fontFamily",void 0);_.W([_.M(),_.A("design:type",Number)],vj.prototype,"maxWidth",void 0);_.W([_.M(),_.A("design:type",Number)],vj.prototype,"maxHeight",void 0);_.W([_.M(),_.A("design:type",Number)],vj.prototype,"maxFontSize",void 0);_.W([_.M(),_.A("design:type",Number)],vj.prototype,"minFontSize",void 0);_.W([_.M(),_.A("design:type",Number)],vj.prototype,"maxLines",void 0);_.W([_.M(),_.A("design:type",Object)],vj.prototype,"hideOverflow",void 0);
_.W([_.M({selector:_.MxJ}),_.A("design:type",Boolean)],vj.prototype,"guideIsExpanded",void 0);_.W([_.a0("#container"),_.A("design:type",HTMLElement)],vj.prototype,"containerNode",void 0);_.W([_.a0("#text"),_.A("design:type",HTMLElement)],vj.prototype,"textNode",void 0);_.W([_.Bp("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vj.prototype,"dataChanged",null);
_.W([_.Bp("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vj.prototype,"guideIsExpandedChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],vj);
_.a(vj,"yt-dynamic-sizing-formatted-string",function(){if(B0g!==void 0)return B0g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return B0g=I},{mode:1});var $pu;_.bUf=function(I){_.Io.call(this,I)};
_.E(_.bUf,_.Io);var HUM=function(I){_.Io.call(this,I)};
_.E(HUM,_.bUf);var Sw=function(){return _.k.apply(this,arguments)||this};
_.E(Sw,_.k);Sw.prototype.onTapSuspendedChannel=function(){var I;if((I=this.data)!=null&&I.serviceEndpoint){var y,D;(I=(D=_.u((y=this.data)==null?void 0:y.serviceEndpoint,_.lK))==null?void 0:D.url)?_.FB(I,void 0,void 0,window.top):(y=new HUM("Did not handle suspended account tap. No appealUrl."),_.vu(y))}else y=new HUM("Did not handle suspended account tap. No serviceEndpoint."),_.vu(y)};
Sw.prototype.onTap=function(){var I=this,y=_.W4(),D,F=(D=_.c4(y,{veType:7116}))!=null?D:void 0;_.OP(y,{visualElement:F});_.yU();this.saveRoleText();var R;if((R=this.data)==null?0:R.youtubeSuspended)this.onTapSuspendedChannel();else{var O=!1,w,v;(y=(v=_.u((w=this.data)==null?void 0:w.serviceEndpoint,_.cma))==null?void 0:v.supportedTokens)&&y.forEach(function(P){if(P.accountSigninToken)if(O=!0,I.onAccountItemTap)I.onAccountItemTap(P.accountSigninToken.signinUrl);else _.FB(P.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!O){if(w=this.get("serviceEndpoint",this.data))O=!0,this.ytComponentBehavior.resolveCommand(w);O||_.Sb(new HUM("Did not handle account switch tap. No token."))}}};
Sw.prototype.saveRoleText=function(){if(this.data){var I=this.data,y=I.channelDelegationRole;if(y){var D,F=(D=_.u(I==null?void 0:I.serviceEndpoint,_.cma))==null?void 0:D.supportedTokens;if(!F){var R,O,w,v;F=(R=_.u(I==null?void 0:I.serviceEndpoint,_.Hc))==null?void 0:(O=R.popup)==null?void 0:(w=O.confirmDialogRenderer)==null?void 0:(v=w.confirmButton)==null?void 0:v.buttonRenderer;var P;F=(P=_.u(F==null?void 0:F.command,_.Q_))==null?void 0:P.commands;if(!F)return;var K;F=(K=_.u(F[1],_.cma))==null?
void 0:K.supportedTokens}if(F){P=void 0;K=_.J(F);for(F=K.next();!F.done;F=K.next())if(F=F.value,F.datasyncIdToken){P=F.datasyncIdToken.datasyncIdToken;break}if(P){var r;a:{if(_.ipq()&&(K=_.Ol(P+"::pom"))){K=new Hf(K);break a}K=void 0}(r=K)==null||r.set("role_text",y);if((DcC?DcC:window.location).href.indexOf("studio")!==-1&&(r=AaA())){K=r.src?(new URL(r.src)).origin:"*";var N;(N=r.contentWindow)==null||N.postMessage({action:"save_pom_role",datasyncId:P,roleText:y},K)}}}}}};
_.mD.Object.defineProperties(Sw.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.accountPhoto)==null?void 0:y.thumbnails;return D&&D.length>0&&(D[0].height===36||D[0].height===48)?D[0].height:40}}});
Sw.prototype.onTap=Sw.prototype.onTap;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Sw.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Sw.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Function)],Sw.prototype,"onAccountItemTap",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Sw.prototype,"enableRingForActiveAccount",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Sw.prototype,"thumbnailSize",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Sw.prototype,"onTap",null);_.W([_.yd({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Sw);
_.a(Sw,"ytd-account-item-renderer",function(){if($pu!==void 0)return $pu;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return $pu=I},{mode:1});var ezO;var ta=function(){return _.k.apply(this,arguments)||this};
_.E(ta,_.k);ta.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.nR().resolve(_.MC).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ta.prototype,"data",void 0);_.W([_.yd({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],ta);
_.a(ta,"ytd-identity-chip-renderer",function(){if(ezO!==void 0)return ezO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ezO=I},{mode:1});var T0f;var sMP;var V_P;var ZUc;var Pj=function(){var I=_.k.apply(this,arguments)||this;I.richItemMinWidth=_.kf("wn_grid_min_item_width",310);I.isShorts=!1;I.isWatchNext=!1;I.isExploreHub=!1;return I};
_.E(Pj,_.k);_.mD.Object.defineProperties(Pj.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var I=[],y=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.pg(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)&&y)for(y*=this.data.rows,D=0;D<y;D++)I.push({});return I}}});
_.W([_.Q(_.Jl),_.A("design:type",Object)],Pj.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Pj.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.gH,value:3}),_.A("design:type",Number)],Pj.prototype,"itemsPerRow",void 0);_.W([_.M({selector:_.mTo,value:6}),_.A("design:type",Number)],Pj.prototype,"slimItemsPerRow",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],Pj.prototype,"richItemMinWidth",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],Pj.prototype,"miniMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Pj.prototype,"isShorts",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Pj.prototype,"isWatchNext",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Pj.prototype,"isExploreHub",void 0);
_.W([_.Y("isExploreHub"),_.M({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],Pj.prototype,"shimmerAnimation",null);_.W([_.Y("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.A("design:type",Array),_.A("design:paramtypes",[])],Pj.prototype,"cardItems",null);_.W([_.yd({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Pj);
_.gUc=_.Xf()(Pj,"ytd-ghost-grid-renderer",function(){if(ZUc===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);ZUc=I}I=ZUc;return I},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.NK(_.d(function(I){var y=_.o6(I,{numberOfComments:3}).numberOfComments,D=_.o6(I,{isInitialLoad:!1}).isInitialLoad,F=_.o6(I,{engagementPanel:!1}).engagementPanel,R=function(){return Math.min(Number(y==null?void 0:y())||20,20)};
return _.t("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.t(_.U,{cond:function(){return!(F==null?0:F())&&(D==null?void 0:D())},
then:function(){return _.t("div",{class:"ytGhostCommentsComments"},_.t("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.t("div",{class:_.XH("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.t("div",{class:_.XH("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.t("div",{class:"ytGhostCommentsGhostCard"},_.t("div",{class:"ytGhostCommentsAvatar"},_.t("div",{class:"ytGhostCommentsCircle"})),_.t("div",{class:"ytGhostCommentsComments"},_.t("div",{class:"ytGhostCommentsMeta"},
_.t("div",{class:_.XH("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.t("div",{class:_.XH("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.t("div",{class:"ytGhostCommentsComments"},_.t(_.gZ,{each:function(){return Array((R==null?void 0:R())||3)}},function(){return _.t("div",{class:"ytGhostCommentsGhostCard"},_.t("div",{class:"ytGhostCommentsAvatar"},_.t("div",{class:"ytGhostCommentsCircle"})),_.t("div",{class:"ytGhostCommentsHost"},_.t("div",{class:"ytGhostCommentsMeta"},
_.t("div",{class:_.XH("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.t("div",{class:_.XH("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:_.XH("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:"ytGhostCommentsGhostLikeDislike"},_.t("div",{class:_.XH("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.t("div",{class:_.XH("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mc"),"yt-ghost-comments",{props:{numberOfComments:_.om,
isInitialLoad:_.om,engagementPanel:_.om},unsafeExternallySettableAttributes:new Set(["hidden"])});_.bO("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Kp=function(){var I=_.k.apply(this,arguments)||this;I.isOverridable=!1;I.spinnerActive=!1;I.showButton=!1;I.isCommentsSection=!1;I.engagementPanel=!0;I.isShortsGrid=!1;I.isShortsPage=!1;I.isWatchPage=!1;I.originalShowButton=!1;I.endOfList=!1;return I};
_.E(Kp,_.k);_.L=Kp.prototype;_.L.resetIntersectionObserver=function(){var I;(I=this.observer)==null||I.disconnect();this.observer=void 0};
_.L.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var I,y;((I=this.data)==null?void 0:I.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((y=this.data)==null?0:y.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.L.initializeIntersectionObserver=function(){var I=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(y){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D.value.isIntersecting&&(I.triggerContinuation(),I.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.L.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.L.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var I;((I=this.data)==null?0:I.continuationEndpoint)&&(I=_.u(this.data.continuationEndpoint,_.IP))&&this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:I}}))};
_.L.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.L.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.L.onServiceRequestCompleted=function(I,y){if(!_.l("kevlar_hide_spinner_on_empty_continuation_killswitch")){var D;(D=y.actions)!=null&&D.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.L.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.L.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.L.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.L.numberOfGhostCommentsChanged=function(){var I=3;if(this.engagementPanel){var y,D,F;I=Math.floor(((((y=this.hostElement)==null?void 0:(D=y.parentElement)==null?void 0:(F=D.parentElement)==null?void 0:F.scrollHeight)||108)-108)/108);I=this.isInitialLoad?Math.max(I,3):3}y=[].concat(_.Td(this.hostElement.querySelectorAll("yt-ghost-comments")));y=_.J(y);for(D=y.next();!D.done;D=y.next())D=D.value,D.numberOfComments=I,D.isInitialLoad=this.isInitialLoad,D.engagementPanel=this.engagementPanel};
_.L.detached=function(){this.resetIntersectionObserver()};
_.mD.Object.defineProperties(Kp.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Kp.prototype.numberOfGhostCommentsChanged=Kp.prototype.numberOfGhostCommentsChanged;Kp.prototype.continuationTriggerOffsetChanged=Kp.prototype.continuationTriggerOffsetChanged;Kp.prototype.showButtonChanged=Kp.prototype.showButtonChanged;Kp.prototype.onYtServiceRequestCompletedForButtonRenderer=Kp.prototype.onYtServiceRequestCompletedForButtonRenderer;Kp.prototype.onServiceRequestCompleted=Kp.prototype.onServiceRequestCompleted;Kp.prototype.onYtServiceRequestSentForButtonRenderer=Kp.prototype.onYtServiceRequestSentForButtonRenderer;
Kp.prototype.observeData=Kp.prototype.observeData;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],Kp.prototype,"ytVisibilityBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Kp.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],Kp.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"isOverridable",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"spinnerActive",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"showButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kp.prototype,"isCommentsSection",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kp.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"isShortsGrid",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.dT_}),_.A("design:type",Object)],Kp.prototype,"isShortsPage",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.k2q}),_.A("design:type",Object)],Kp.prototype,"isWatchPage",void 0);_.W([_.M(),_.A("design:type",Number)],Kp.prototype,"continuationTriggerOffset",void 0);
_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"endOfList",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kp.prototype,"isInitialLoad",void 0);_.W([_.a0("ytd-button-renderer"),_.A("design:type",_.QJ)],Kp.prototype,"buttonRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],Kp.prototype,"buttonOverrides",void 0);
_.W([_.M(),_.Y("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kp.prototype,"showGhostCardComments",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"observeData",null);
_.W([_.z4("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],Kp.prototype,"onServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-completed-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.W([_.Bp("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"showButtonChanged",null);
_.W([_.Bp("continuationTriggerOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"continuationTriggerOffsetChanged",null);_.W([_.ke("isInitialLoad","engagementPanel"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kp.prototype,"numberOfGhostCommentsChanged",null);_.W([_.yd({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Kp);
_.a(Kp,"ytd-continuation-item-renderer",function(){if(V_P!==void 0)return V_P;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return V_P=I},{mode:1});var Ilg;var UK=function(){var I=_.k.apply(this,arguments)||this;I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.downloadState="DOWNLOAD_STATE_UNKNOWN";I.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";I.offlineVideoPolicyExpirationTimestamp=0;I.downloadedVideoPlaybackPosition=0;return I};
_.E(UK,_.k);UK.prototype.dataChanged=function(){var I;this.videoData=_.u((I=this.data)==null?void 0:I.renderer,rmn);this.transferStateChanged()};
UK.prototype.downloadProgressChanged=function(){if(this.entityInfo){var I=Object.assign({},this.videoData),y=SGC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),D=y.publishedTimeText,F=y.badges;I.shortViewCountText=y.shortViewCountText;I.publishedTimeText=D;I.badges=F;this.set("videoData",I)}};
UK.prototype.transferStateChanged=function(){if(this.entityInfo){var I=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",y=_.BW(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!cW(this.entityInfo.policyEntity),D=Object.assign({},this.videoData),F=SGC(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),R=F.publishedTimeText,O=F.badges;D.shortViewCountText=
F.shortViewCountText;D.publishedTimeText=R;D.badges=O;D.isDisabled=y;D.isWatched=this.downloadedVideoPlaybackPosition>0;D.navigationEndpoint=y?void 0:aIH(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var w;I&&((w=this.videoData)==null?0:w.videoId)&&!_.l("dl_resume_click_killswitch")&&(D.isDisabled=!1,D.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});D.thumbnailOverlays=wQq(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",D)}};
UK.prototype.transferStateChanged=UK.prototype.transferStateChanged;UK.prototype.downloadProgressChanged=UK.prototype.downloadProgressChanged;UK.prototype.dataChanged=UK.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],UK.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UK.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],UK.prototype,"videoData",void 0);_.W([_.M({selector:Og,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"downloadProgress",void 0);_.W([_.M(),_.A("design:type",Number)],UK.prototype,"relativeDateReference",void 0);_.W([_.M({selector:_.FM,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"transferState",void 0);
_.W([_.M({selector:Ffo,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"downloadState",void 0);_.W([_.M({selector:BQq,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"offlinePolicyAction",void 0);_.W([_.M({selector:iYH,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.W([_.M({selector:L0,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"downloadedVideoPlaybackPosition",void 0);_.W([_.M({selector:$Te,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],UK.prototype,"entityInfo",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],UK.prototype,"isDownloading",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UK.prototype,"dataChanged",null);
_.W([_.Bp("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UK.prototype,"downloadProgressChanged",null);_.W([_.Bp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UK.prototype,"transferStateChanged",null);
_.W([_.yd({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],UK);
_.a(UK,"ytd-downloaded-video-grid-video-renderer",function(){if(Ilg!==void 0)return Ilg;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ilg=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var ync;var rO=function(){};
rO.prototype.resolve=function(I,y){var D=this;return _.S(function(F){return F.yield(D.resolveCommand(I,y),0)})};var DAR,jw;DAR=got(function(I){return I.targetId},{shouldPersist:!1});
jw=DAR.updateData;_.F3a=DAR.useUpdatableData;var Ru_,OyG;Ru_=got(function(I){return I.targetId});
OyG=Ru_.updateData;_.L3u=Ru_.useUpdatableData;var JnM=Ire.bind(null,jw),w8e=Ire.bind(null,OyG);(function(I,y,D){var F=_.u(D==null?void 0:D.updatedRenderer,_.$yM);return F?I({targetId:y},function(){return F}):!1}).bind(null,jw);var oF=function(){};
_.E(oF,rO);oF.prototype.resolveCommand=function(I){var y;return _.S(function(D){y=_.u(I,SBA);if(!y)return D.return();JnM(y.targetId,y);_.Cj(D)})};var ND=function(){var I=_.Wp.apply(this,arguments)||this;I.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return I};
_.E(ND,_.Wp);_.L=ND.prototype;_.L.configureContinuationPathMap=function(){return{}};
_.L.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.L.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.L.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.L.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.L.handleAppendContinuationItemsAction=function(I){var y=_.u(I,_.k0g);if(this.data&&this.data.targetId&&y&&this.continuationPathMap&&y.targetId===this.data.targetId){var D=JU4(I),F=D&&this.continuationPathMap[D];if(F&&D)if(I=this.get(F,this.data)){a:{for(D=0;D<I.length;D++){var R=I[D],O=void 0,w=!!_.u((O=_.u(R,uEO))==null?void 0:O.content,_.txg);if(_.u(R,_.hs)||w)break a}D=I.length}F="data."+F;y.continuationItems?D===I.length-1?(this.pop(F),this.push.apply(this,[F].concat(_.Td(y.continuationItems)))):
D===I.length?this.push.apply(this,[F].concat(_.Td(y.continuationItems))):this.splice.apply(this,[F,D,1].concat(_.Td(y.continuationItems))):this.splice(F,D,1);(_.l("web_enable_voting_animation")||_.l("enable_music_web_cairo_voting_animation"))&&_.lj(this.hostElement,"yt-append-continuation-items-action-finished");_.lj(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.tq(new _.g6("append continuation items does not exist",D));else _.tq(new _.g6("append continuation path does not exist",
D))}};
_.L.handleReloadContinuationItemsCommand=function(I){var y=_.u(I,SBA);if(this.data&&y){if(!_.l("web_reload_continuation_items_command_resolver_killswitch")){var D=_.nR().resolve(_.fR(oF));D&&D.resolveCommand(I)}if(this.data.targetId&&this.continuationPathMap&&y.targetId===this.data.targetId&&(!_.l("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||y.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var F;D=(F=y.slot)==null?void 0:F.replace("RELOAD_CONTINUATION_SLOT_",
"");F=(I=JU4(I)+"-"+(D==null?void 0:D.toLowerCase()))&&this.continuationPathMap[I];if(!F||!I||!D)_.tq(new _.g6("reload continuation path does not exist",I));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(y)){if(y.replaceWithFirstItem){var R;this.set("data."+F,((R=y.continuationItems)==null?0:R.length)?y.continuationItems[0]:{})}else this.set("data."+F,y.continuationItems?y.continuationItems:[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;
_.lj(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.L.handleShowReloadUiCommand=function(I){I=_.u(I,Vlf);var y;((y=this.data)==null?0:y.targetId)&&(I==null?0:I.targetId)&&I.targetId===this.data.targetId&&(this.continuationIsReloading=!0,I.content&&(this.reloadUiContent=I.content))};
ND.prototype.observeData=ND.prototype.observeData;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ND.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ND.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ND.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],ND.prototype,"continuationIsReloading",void 0);
_.W([_.M(),_.A("design:type",Object)],ND.prototype,"reloadUiContent",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ND.prototype,"observeData",null);_.W([_.Cg()],ND);_.ha=[_.vb.YtComponentBehavior,_.cb.YtActionHandlerBehavior,ND.prototype];_.xx={};_.xx.YtNextContinuationBehavior=[_.uC.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",_.MX(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.MX(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(I,y){I.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,y,{}):(I={locationRetrieved:function(D){this.makeNextContinuationRequest_(D,y,{})}.bind(this)},_.lj(this.hostElement,"yt-retrieve-location",I))},
makeNextContinuationRequest_:function(I,y,D){_.ZL("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();I=y(I);var F;this.canUseContextualNetworkManager_()&&(F=this.getNetworkManager());F||(F=_.nR().resolve(_.BF));y=_.Lt.instance;if(_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&y){F=_.NP([I.startsWith("/")?I.substr(1):I]);var R,O;D=_.U3(y,{},F,D==null?void 0:(R=D.context)==null?void 0:(O=R.clickTracking)==null?void 0:O.clickTrackingParams).then(function(w){return{response:w}})}else D=
this.nextContinuation.usePost?F.postData(I,D):F.fetchData(I);
D.then(this.updateNextContinuationData_.bind(this,I));this.pendingContinuationRequest_=D;this.startListeningForNavigate_()},
updateNextContinuationData_:function(I,y){var D=this;_.ZL("ncl");this.pendingContinuationRequest_=void 0;if(y){var F={};this.nextContinuation&&(F=this.nextContinuation);if(y.response&&y.response.continuationContents&&y.response.continuationContents[F.continuationType]){I=y.response.continuationContents[F.continuationType];var R=F.header||"data.header",O=I[F.responseHeaderKey||"header"];O&&this.set(R,O);R=F.contentsArray||"data.contents";O=this.getContents_(I,F.responseContentsKey||"contents")||[];
this.pathExists_(R)?(O.unshift(R),this.push.apply(this,O)):this.set(R,O);O&&(yQC(_.W4(),y.response,this.hostElement,function(w){_.uj(D.hostElement,"yt-store-grafted-ve-action",[w])}),_.lj(this.hostElement,"yt-next-continuation-data-updated",{continuationData:y,
page:this,contentsArray:R}));this.set(F.continuationsArray||"data.continuations",I[F.responseContinuationsKey||"continuations"]||[])}else y.reload?_.tq(new _.g6("Reloading from continuation is unsupported")):y.responseContext&&y.responseContext.errors||(delete y.xsrf_token,delete y.timing,delete y.endpoint,delete y.csn,y.responseContext&&delete y.responseContext.serviceTrackingParams,R={request:_.uP(I,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(y).sort()},y.response&&(R.responseContentKeys=
Object.keys(y.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(R.continuationType=this.nextContinuation.continuationType.substr(0,256)),y=new _.g6("Malformed continuation",R),I.indexOf("/comment_service_ajax")==0?_.tq(y):_.vu(y)),this.set(F.continuationsArray||"data.continuations",[])}else _.Sb(new _.g6("Missing continuation response",I))},
getContents_:function(I,y){y=y.split(".");return _.e$.getValueByKeys(I,y)},
pathExists_:function(I){var y=this;I=I.toString().split(".");for(var D=0;D<I.length;D++)if(y=y[I[D]],y===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var vlc;var SLg;var lQ=function(){var I=_.k.apply(this,arguments)||this;I.triggered_=!1;return I};
_.E(lQ,_.k);_.L=lQ.prototype;_.L.attached=function(){this.maybeTriggerAutoload()};
_.L.detached=function(){this.hasBeenTriggered_=!1};
_.L.onPrescanVisible=function(){this.onShow()};
_.L.onShow=function(){this.showButton||this.trigger()};
_.L.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.lj(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.L.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.L.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.L.computeLabel_=function(I,y){return I===void 0?null:I.label||!y?I.label:this.showMoreText_};
_.L.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.L.getContinuationUrl=function(I){var y={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(y.itct=this.data.clickTrackingParams);return _.qC(I,y)};
_.L.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
lQ.prototype.showButtonChanged_=lQ.prototype.showButtonChanged_;lQ.prototype.observeData_=lQ.prototype.observeData_;_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],lQ.prototype,"ytVisibilityBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lQ.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lQ.prototype,"showButton",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],lQ.prototype,"showIcon",void 0);_.W([_.M({computed:"computeLabel_(data, showButton)"}),_.A("design:type",Object)],lQ.prototype,"label",void 0);_.W([_.M({value:_.Ug(_.zC("SHOW_MORE",void 0,"Show More"))}),_.A("design:type",Object)],lQ.prototype,"showMoreText_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lQ.prototype,"spinnerActive_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lQ.prototype,"hasBeenTriggered_",void 0);
_.W([_.M({value:void 0}),_.A("design:type",String)],lQ.prototype,"observeVisibleOption",void 0);_.W([_.M({value:void 0}),_.A("design:type",String)],lQ.prototype,"observeHiddenOption",void 0);_.W([_.M({value:"observe_once"}),_.A("design:type",Object)],lQ.prototype,"observePrescanOption",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lQ.prototype,"observeData_",null);
_.W([_.ke("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lQ.prototype,"showButtonChanged_",null);_.W([_.I6({is:"yt-next-continuation",disableElementRegistration:!0})],lQ);
_.a(lQ,"yt-next-continuation",function(){if(SLg===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;vlc===void 0&&(vlc=document.createElement("template"));var F=vlc;D.call(y,F.content.cloneNode(!0),I.content.firstChild);SLg=I}I=SLg;return I},{mode:2});var tG_;var Pmf;var uQ=function(){return _.k.apply(this,arguments)||this};
_.E(uQ,_.k);uQ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uQ.prototype,"data",void 0);_.W([_.I6({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],uQ);
_.a(uQ,"yt-music-pass-small-feature-info-renderer",function(){if(Pmf===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;tG_===void 0&&(tG_=document.createElement("template"));var F=tG_;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Pmf=I}I=Pmf;return I},{mode:2});_.bO("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var qD=function(){var I=_.k.apply(this,arguments)||this;I.isCollapsible=!1;I.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return I};
_.E(qD,_.k);_.L=qD.prototype;_.L.computeIsCollapsible=function(I){return!!(((I==null?0:I.showMoreText)||(I==null?0:I.visibleRowCount))&&(I==null?0:I.isCollapsible))};
_.L.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"}}}};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.L.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.L.onIronResize=function(){var I=this;_.v4(this,"updateGridInitItems",function(){I.maybeUpdateInitialItemsDisplayed()})};
_.L.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var I=this.getVisibleWidth();I!==0&&(I=Math.floor(I/214)*(this.data.visibleRowCount||2),I!==this.initialCount&&(this.initialCount=I,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.L.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.L.computeExpandVisible=function(I,y,D,F){return I&&y&&D&&!!F&&!!F.showMoreText};
_.L.computeShowMoreButton=function(I){return{text:I,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.L.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.L.initCollapsed=function(){var I=this;this.ytLazyListBehavior.canShowMore=!1;var y;(this.collapsed=!((y=this.data)==null||!y.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.YC(this,function(){_.qr(I.hostElement,"yt-refit-popups-action")})};
_.L.fillRestIfNotCollapsible=function(){var I=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!I||this.ytLazyListBehavior.fillRemainingListItems()};
_.L.computeViewAllHidden=function(I,y){return I||!y.viewAllEndpoint};
qD.prototype.fillRestIfNotCollapsible=qD.prototype.fillRestIfNotCollapsible;qD.prototype.initCollapsed=qD.prototype.initCollapsed;qD.prototype.onIronResize=qD.prototype.onIronResize;qD.prototype.persistentGuideChanged=qD.prototype.persistentGuideChanged;_.W([_.Q(_.sD),_.A("design:type",Object)],qD.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],qD.prototype,"ytLazyListBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],qD.prototype,"ytNextContinuationBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],qD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Q(_.ha),_.A("design:type",Object)],qD.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qD.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],qD.prototype,"collapsed",void 0);_.W([_.M(),_.A("design:type",Number)],qD.prototype,"initialCount",void 0);_.W([_.M({computed:"computeShowMoreButton(data.showMoreText)"}),_.A("design:type",Object)],qD.prototype,"showMoreButton",void 0);
_.W([_.M({computed:"computeIsCollapsible(data)"}),_.A("design:type",Object)],qD.prototype,"isCollapsible",void 0);_.W([_.a0("#items"),_.A("design:type",HTMLElement)],qD.prototype,"items",void 0);_.W([_.Bp("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qD.prototype,"persistentGuideChanged",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qD.prototype,"onIronResize",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qD.prototype,"initCollapsed",null);_.W([_.Bp("canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qD.prototype,"fillRestIfNotCollapsible",null);_.W([_.yd({is:"ytd-grid-renderer",disableElementRegistration:!0})],qD);
_.a(qD,"ytd-grid-renderer",function(){if(ync!==void 0)return ync;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ync=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var EK=function(){return _.k.apply(this,arguments)||this};
_.E(EK,_.k);
EK.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"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],EK.prototype,"data",void 0);_.W([_.yd({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],EK);
_.a(EK,"ytd-carousel-ad-renderer",function(){if(sMP!==void 0)return sMP;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return sMP=I},{mode:1});var K3f;var G3=function(){return _.k.apply(this,arguments)||this};
_.E(G3,_.k);_.L=G3.prototype;_.L.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"}}}};
_.L.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,G3.JSC$15783_CLICK_LOCATION_ID_MAP))};
_.L.onSitelinkTap=function(I){I.stopPropagation();var y,D,F=I==null?void 0:(y=I.model)==null?void 0:(D=y.item)==null?void 0:D.onTap;F&&this.ytSparklesClickLocationBehavior.handleClick(F,I,!1)};
_.L.onTap=function(I){var y=this.data&&this.data.content&&this.data.content.navigationEndpoint;y&&this.ytSparklesClickLocationBehavior.handleClick(y,I,!1)};
_.L.sendImpression=function(){if(this.data&&this.data.content)for(var I=_.J(this.data.content.impressionEndpoints||[]),y=I.next();!y.done;y=I.next()){y=_.J(y.value.loggingUrls||[]);for(var D=y.next();!D.done;D=y.next())D=D.value,D.baseUrl&&hO(D.baseUrl,D.attributionSrcMode)}};
G3.prototype.onTap=G3.prototype.onTap;G3.prototype.dataChanged=G3.prototype.dataChanged;G3.JSC$15783_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"]]);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],G3.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],G3.prototype,"data",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],G3.prototype,"dataChanged",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],G3.prototype,"onTap",null);_.W([_.yd({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],G3);
_.a(G3,"ytd-promoted-sparkles-text-search-renderer",function(){if(K3f!==void 0)return K3f;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return K3f=I},{mode:1});var UAW;var XA=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-mute-ad-action":"handleMuteAd"};return I};
_.E(XA,_.k);_.L=XA.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.configureRendererStamper=function(){return{"data.menu":{id:_.l("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]]"}}}}}};
_.L.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.L.computeHasAdBadge=function(I){return!(I==null||!I.adBadge)};
_.L.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",XA.JSC$15792_DEFAULT_AD_BADGE_RENDERER),_.Ye(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&MG(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,XA.JSC$15792_CLICK_LOCATION_ID_MAP))};
_.L.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var I;(((I=this.data)==null?void 0:I.impressionCommands)||[]).forEach(function(y){y=_.J(y.loggingUrls||[]);for(var D=y.next();!D.done;D=y.next())D=D.value,D.baseUrl&&hO(D.baseUrl,D.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.L.onTap=function(I){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint,F;(y=(F=this.data)==null?void 0:F.thumbnailNavigationEndpoint)&&_.rP(_.r4(I),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(y,I,!1):D&&this.ytSparklesClickLocationBehavior.handleClick(D,I,!1)};
_.L.handleMuteAd=function(){this.collapsed=!0};
_.L.attached=function(){var I=this;_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.detached=function(){_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
_.mD.Object.defineProperties(XA.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var I;return!(((I=this.data)==null?void 0:I.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var I;return!(((I=this.data)==null?void 0:I.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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}}});
XA.prototype.dataChanged=XA.prototype.dataChanged;
XA.JSC$15792_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"]]);
XA.JSC$15792_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],XA.prototype,"actionHandlerBehavior",void 0);
_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],XA.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],XA.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],XA.prototype,"collapsed",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],XA.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],XA.prototype,"biggerThumbsStyle",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.A("design:type",Boolean)],XA.prototype,"fixAlignmentSmallScreens",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs_square")}}),
_.A("design:type",Boolean)],XA.prototype,"useBiggerThumbsSquare",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.mediaHoverOverlay"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"hideHoverOverlay",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"webSearchLayout",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"webSearchLayoutLandscape",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"webSearchLayoutSquare",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"sparklesCtaNoBackground",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.actionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"hideActionButton",null);_.W([_.M({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],XA.prototype,"buttonOverride",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.A("design:type",Boolean)],XA.prototype,"hasNewAdBadge",void 0);_.W([_.Y("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XA.prototype,"useRoundedBadge",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XA.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],XA);
_.a(XA,"ytd-promoted-sparkles-web-renderer",function(){if(UAW!==void 0)return UAW;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return UAW=I},{mode:1});var rnO;var QZ=function(){var I=_.k.apply(this,arguments)||this;I.isInlinePreviewTriggered=!1;I.enableMonoStyle=_.l("enable_default_mono_cta_migration_web_client");return I};
_.E(QZ,_.k);_.L=QZ.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.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]]"}}}}}};
_.L.computeShowCta=function(I){return!(I==null||!I.ctaRenderer)};
_.L.onCtaClick=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.ctaRenderer)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.command;F&&this.ytComponentBehavior.resolveCommand(F)};
_.L.onWatchButtonClick=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.watchButtonRenderer)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.command;F&&this.ytComponentBehavior.resolveCommand(F)};
_.L.onTap=function(){};
_.L.dataChanged=function(){if(this.data){var I;_.l("enable_inline_muted_playback_on_web_search")&&((I=this.data)==null?0:I.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",QZ.JSC$15796_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&MG(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",QZ.JSC$15796_DEFAULT_CLICK_LOCATION_BEHAVIOR,QZ.JSC$15796_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"));var y;if(((y=this.data)==null?0:y.forceImpAutoplay)&&_.l("enable_force_imp_autoplay_on_desktop_search")){var D;(D=this.JSC$15797_inlinePreviewHoverListener)==null||$I4(D)}}};
_.L.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var I=_.J(this.data.impressionUrls),y=I.next();!y.done;y=I.next())y=y.value,HQq(y,Tyq(y));this.data.impressionsFired=!0}};
_.L.maybeComputeHref=function(){return null};
_.L.computeIsShortDR=function(I){return!(I==null||!I.watchButtonRenderer)&&!(I==null||!I.ctaRenderer)&&!!this.enableShortDR};
_.L.computeIsNewUiOrShortDr=function(I){return!!this.enableUiUpdate||this.computeIsShortDR(I)};
_.L.computeIsNewUiAndNotShortDr=function(I){return!!this.enableUiUpdate&&!this.computeIsShortDR(I)};
_.L.computeHideAvatar=function(I){return!((I==null?0:I.channelThumbnail)&&this.computeIsNewUiOrShortDr(I))};
_.L.onClick=function(I){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;if(this.enableShortDR&&D&&(_.u(D,_.t9)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(D,I,!!_.u(D,_.t9)),I.stopPropagation();else if(D&&_.u(D,_.t9))this.ytSparklesClickLocationBehavior.handleClick(D,I,!0),I.stopPropagation();else if(D){var F,R;((F=this.data)==null?0:F.navigationEndpoint)&&((R=this.data)==null?0:R.adPlaybackContextParams)&&(y=this.data.navigationEndpoint,I=this.data.adPlaybackContextParams,
y.commandMetadata&&_.u(y.commandMetadata,_.nE)&&_.u(y.commandMetadata,_.nE).url&&(y=_.lP(_.u(y.commandMetadata,_.nE).url).adurl)&&_.s1q(y)&&_.re(_.LE(y),{encoded_ad_playback_context:I}));this.ytComponentBehavior.resolveCommand(D)}};
_.L.computeButtonOverride=function(I){if(this.computeIsNewUiOrShortDr(I))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.L.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.L.onThumbnailContainerClick=function(I){this.onClick(I)};
_.L.computeThumbnailWidth=function(I,y){return I?y==="MASSIVE"?600:y==="BIG"?500:y==="MEDIUM"?450:420:360};
_.L.attached=function(){var I=this,y;_.l("enable_inline_muted_playback_on_web_search")&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.detached=function(){var I;_.l("enable_inline_muted_playback_on_web_search")&&((I=this.data)==null?0:I.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15797_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:QMf})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$15797_inlinePreviewHoverListener)==null||Nv(I)};
QZ.prototype.dataChanged=QZ.prototype.dataChanged;QZ.prototype.onTap=QZ.prototype.onTap;QZ.JSC$15796_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};QZ.JSC$15796_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
QZ.JSC$15796_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"}];_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],QZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.a0("#main-container"),_.A("design:type",HTMLElement)],QZ.prototype,"mainContainer",void 0);
_.W([_.M(),_.A("design:type",Object)],QZ.prototype,"isInlinePreviewTriggered",void 0);_.W([_.M(),_.A("design:type",Object)],QZ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],QZ.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_video_display_compact_button_group_for_desktop_search")}}),
_.A("design:type",Boolean)],QZ.prototype,"enableShortDR",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_vac_ui_update_for_desktop_search")}}),
_.A("design:type",Boolean)],QZ.prototype,"enableUiUpdate",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],QZ.prototype,"biggerThumbsStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.A("design:type",Boolean)],QZ.prototype,"showCta",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.A("design:type",Boolean)],QZ.prototype,"isShortDr",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.A("design:type",Boolean)],QZ.prototype,"isShortDrOrNewUi",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.A("design:type",Boolean)],QZ.prototype,"isNewUiAndNotShortDr",void 0);_.W([_.M({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],QZ.prototype,"buttonOverride",void 0);_.W([_.M({computed:"computeSecondaryButtonOverride(data)"}),_.A("design:type",Object)],QZ.prototype,"secondaryButtonOverride",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],QZ.prototype,"enableMonoStyle",void 0);
_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],QZ.prototype,"thumbnail",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QZ.prototype,"onTap",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QZ.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],QZ);
_.a(QZ,"ytd-promoted-video-renderer",function(){if(rnO!==void 0)return rnO;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return rnO=I},{mode:1});var jSG;var Yx=function(){var I=_.k.apply(this,arguments)||this;I.useRoundedBadge=!0;I.sitelinkIds=[];return I};
_.E(Yx,_.k);_.L=Yx.prototype;
_.L.configureRendererStamper=function(){return{"data.menu":{id:_.l("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]]"}}}}}};
_.L.dataChanged=function(){var I;(I=this.data)!=null&&I.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Yx.JSC$15802_CLICK_LOCATION_ID_MAP)};
_.L.onTap=function(I){var y,D=(y=this.data)==null?void 0:y.navigationCommand;D&&!_.rP(_.r4(I),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(D,I,!1)};
_.L.onSitelinkTap=function(I){var y,D,F=I==null?void 0:(y=I.model)==null?void 0:(D=y.item)==null?void 0:D.onTap;F&&this.ytSparklesClickLocationBehavior.handleClick(F,I,!1)};
_.L.configureSitelinkClickTargets=function(){var I=this,y,D,F=(y=this.data)==null?void 0:(D=y.clickLocationTargets)==null?void 0:D.find(function(R){return R.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
F&&_.XB(this.hostElement).querySelectorAll(".sitelink").forEach(function(R){_.Ye(R,"yt-simple-endpoint",!0);I.sitelinkIds.push(R.id);var O,w;(O=I.ytSparklesClickLocationBehavior)==null||(w=O.clickTargetMap)==null||w.set(R.id,F)})};
_.L.sendImpression=function(){var I,y,D=((I=this.data)==null?void 0:(y=I.impressionCommand)==null?void 0:y.loggingUrls)||[];I=_.J(D);for(y=I.next();!y.done;y=I.next())y=y.value,y.baseUrl&&hO(y.baseUrl,y.attributionSrcMode)};
_.L.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.mD.Object.defineProperties(Yx.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Yx.prototype.onTap=Yx.prototype.onTap;Yx.prototype.dataChanged=Yx.prototype.dataChanged;Yx.JSC$15802_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"]]);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],Yx.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Yx.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Yx.prototype,"showFavicon",null);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],Yx.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Yx.prototype,"biggerThumbsStyle",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.A("design:type",Boolean)],Yx.prototype,"enableThumbnailScalingFix",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yx.prototype,"dataChanged",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Yx.prototype,"onTap",null);_.W([_.yd({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Yx);
_.a(Yx,"ytd-text-image-no-button-layout-renderer",function(){if(jSG!==void 0)return jSG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return jSG=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var olO;var fp=function(){var I=_.k.apply(this,arguments)||this;I.isInlinePlaybackState=!1;I.uiUpdate=_.l("web_modern_buttons");I.hideCta=_.l("hide_cta_for_home_web_video_ads");I.noBottomMargin=!1;I.animateInTimeStamp=_.kf("hide_cta_for_home_web_video_ads_animate_in_time");I.animateInCta=!1;I.isHovered=!1;I.enableMonoStyle=_.l("enable_default_mono_cta_migration_web_client");I.player=null;I.JSC$15809_playerEvents=new Map;I.JSC$15809_preventProgressSaveTimer=null;I.delayedCtaJobId=null;return I};
_.E(fp,_.k);_.L=fp.prototype;_.L.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]]"}}}}}};
_.L.attached=function(){this.JSC$15809_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15809_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.l("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.L.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15809_playerEvents)};
_.L.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",fp.JSC$15808_DEFAULT_CLICK_LOCATION_BEHAVIOR,fp.JSC$15808_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.L.hoverChanged=function(){var I=this;this.delayedCtaJobId&&(_.w2.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.l("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.ip(_.w2,function(){I.buttonContainer.classList.add("show-delayed-buttons")},_.kf("delayed_cta_on_web_delay_milliseconds")))};
_.L.setPlayer=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return(y=_.qr(I.hostElement,"yt-get-inline-preview-player-action"))&&y[0]?D.yield(y[0].getPlayerPromise(),3):D.jumpTo(0);I.player=D.yieldResult;I.ytPlayerListenerBehavior.listenToPlayerEvents(I.player,I.JSC$15809_playerEvents);_.Cj(D)})};
_.L.onPlaybackStart=function(){var I=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15809_preventProgressSaveTimer=_.qK(_.w2,function(){I.JSC$15809_preventProgressSaveTimer=null},1E4))};
_.L.onVideoProgress=function(I){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&I>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.L.resetPreventProgressSaveTimer=function(){_.w2.cancelJob(this.JSC$15809_preventProgressSaveTimer);this.JSC$15809_preventProgressSaveTimer=null};
_.L.getSimpleString=function(I){return _.rY(I)};
_.L.onClick=function(I){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint,F;y=(F=this.data)==null?void 0:F.channelEndpoint;var R,O;((O=_.u((R=this.data)==null?void 0:R.adCtaButton,_.S1))==null?0:O.command)&&_.rP(_.r4(I),this.hostElement,["call-to-action"])||(y&&_.rP(_.r4(I),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(y,I,!1):!_.rP(_.r4(I),this.hostElement,
["secondary-button"])&&D&&(_.l("enable_short_dr_for_desktop_launchable")?(F=!!_.u(D,_.t9),this.isInlinePlaybackState&&F&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,I,F)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,I,!0))))}};
_.L.updateWatchEndpointStartTime=function(){var I,y;this.player&&((I=this.data)==null?0:I.inlinePlaybackEndpoint)&&((y=this.data)==null?0:y.navigationEndpoint)&&!this.JSC$15809_preventProgressSaveTimer&&(I=Math.floor(this.player.getCurrentTime()),_.u(this.data.navigationEndpoint,_.t9).startTimeSeconds=I,_.u(this.data.inlinePlaybackEndpoint,_.t9).startTimeSeconds=I)};
_.L.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.L.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.mD.Object.defineProperties(fp.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.l("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.watchButton)&&!((y=this.data)==null||!y.adCtaButton)}}});
fp.prototype.hoverChanged=fp.prototype.hoverChanged;fp.prototype.dataChanged=fp.prototype.dataChanged;
fp.JSC$15808_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"]]);
fp.JSC$15808_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"}];
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],fp.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],fp.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],fp.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fp.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"isInlinePlaybackState",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fp.prototype,"miniMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"uiUpdate",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"hideCta",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"noBottomMargin",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"animateInCta",void 0);_.W([_.M({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],fp.prototype,"buttonOverride",void 0);
_.W([_.M({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.A("design:type",Object)],fp.prototype,"secondaryButtonOverride",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"isHovered",void 0);_.W([_.a0("#button-container"),_.A("design:type",HTMLElement)],fp.prototype,"buttonContainer",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fp.prototype,"typographyBump",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fp.prototype,"typographyBumpV2",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fp.prototype,"enableMonoStyle",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fp.prototype,"dataChanged",null);
_.W([_.ke("isHovered"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fp.prototype,"hoverChanged",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fp.prototype,"isButtonGroup",null);_.W([_.yd({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],fp);
_.a(fp,"ytd-ad-inline-playback-meta-block",function(){if(olO!==void 0)return olO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return olO=I},{mode:_.Qd("kevlar_poly_si_batch_j065")?1:2});var NWW;var np=function(){var I=_.k.apply(this,arguments)||this;I.noBottomMargin=!1;I.isInlinePreviewTriggered=!1;I.JSC$15814_activeViewMeasurementDataResolver=_.vS();return I};
_.E(np,_.k);_.L=np.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.L.attached=function(){var I=this;this.updateInlinePreviewHoverListeners();this.JSC$15814_activeViewMeasurementDataResolver.promise.then(function(y){MG(I.activeView,y)});
_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.detached=function(){this.clearInlinePreviewHoverListeners();_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15814_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.JSC$15814_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:QMf})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$15814_inlinePreviewHoverListener)==null||Nv(I)};
_.L.onDataChanged=function(){var I;((I=this.data)==null?0:I.activeView)&&this.JSC$15814_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",np.JSC$15813_DEFAULT_CLICK_LOCATION_BEHAVIOR,np.JSC$15813_CLICK_LOCATION_ID_MAP);this.thumbnail&&(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"));var y;if((y=this.data)==
null?0:y.forceImpAutoplay){var D;(D=this.JSC$15814_inlinePreviewHoverListener)==null||$I4(D)}};
_.L.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.L.onThumbnailContainerClick=function(I){if(this.data&&this.data.navigationEndpoint){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,I,!!_.u(D,_.t9));I.stopPropagation()}};
_.L.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.L.impressionLog=function(){var I=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,D,F=(D=_.u((y=this.data)==null?void 0:y.onImpression,_.Q_))==null?void 0:D.commands;F&&(F.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;I.ytComponentBehavior.resolveCommand(R)}),this.data.impressionsFired=!0)}};
_.mD.Object.defineProperties(np.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$15814_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
np.prototype.onTypographyBumpChanged=np.prototype.onTypographyBumpChanged;np.prototype.onDataChanged=np.prototype.onDataChanged;np.JSC$15813_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);np.JSC$15813_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"}];
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],np.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],np.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],np.prototype,"ytdLockupBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],np.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],np.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],np.prototype,"noBottomMargin",void 0);_.W([_.M(),_.A("design:type",Object)],np.prototype,"isInlinePreviewTriggered",void 0);
_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],np.prototype,"miniMode",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],np.prototype,"typographyBump",void 0);_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],np.prototype,"thumbnail",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],np.prototype,"JSC$15814_dismissibleMedia",void 0);
_.W([_.a0("ytd-ad-inline-playback-meta-block"),_.A("design:type",HTMLElement)],np.prototype,"adInlinePlaybackMetaBlock",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],np.prototype,"onDataChanged",null);_.W([_.Bp("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],np.prototype,"onTypographyBumpChanged",null);
_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],np.prototype,"isHovered",null);_.W([_.yd({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],np);
_.a(np,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(NWW!==void 0)return NWW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return NWW=I},{mode:1});var huO;var pp=function(){var I=_.k.apply(this,arguments)||this;I.isInlinePreviewTriggered=!1;I.JSC$15817_activeViewMeasurementDataResolver=_.vS();return I};
_.E(pp,_.k);_.L=pp.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.L.attached=function(){var I=this;this.updateInlinePreviewHoverListeners();this.JSC$15817_activeViewMeasurementDataResolver.promise.then(function(y){MG(I.activeView,y)})};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15817_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.JSC$15817_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:QMf})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$15817_inlinePreviewHoverListener)==null||Nv(I)};
_.L.onDataChanged=function(){var I;((I=this.data)==null?0:I.activeView)&&this.JSC$15817_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",pp.JSC$15816_DEFAULT_CLICK_LOCATION_BEHAVIOR,pp.JSC$15816_CLICK_LOCATION_ID_MAP);this.thumbnail&&(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"))};
_.L.onThumbnailContainerClick=function(I){if(this.data&&this.data.navigationEndpoint){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,I,!0);I.stopPropagation()}};
_.L.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.L.impressionLog=function(){var I=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var y,D,F=(D=_.u((y=this.data)==null?void 0:y.onImpression,_.Q_))==null?void 0:D.commands;F&&(F.forEach(function(R){R.clickTrackingParams&&delete R.clickTrackingParams;_.nR().resolve(_.MC).resolveCommand(R,{form:{element:I.hostElement}})}),this.data.impressionsFired=!0)}};
_.mD.Object.defineProperties(pp.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$15817_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
pp.prototype.onDataChanged=pp.prototype.onDataChanged;pp.JSC$15816_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);pp.JSC$15816_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"}];_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],pp.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],pp.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],pp.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],pp.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],pp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],pp.prototype,"isInlinePreviewTriggered",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],pp.prototype,"miniMode",void 0);_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],pp.prototype,"thumbnail",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],pp.prototype,"JSC$15817_dismissibleMedia",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pp.prototype,"onDataChanged",null);_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],pp.prototype,"isHovered",null);_.W([_.yd({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],pp);
_.a(pp,"ytd-video-display-full-buttoned-renderer",function(){if(huO!==void 0)return huO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return huO=I},{mode:1});var N5=function(I,y,D,F){F=F===void 0?!1:F;_.Io.call(this,I);this.adsClientErrorMessage=D;this.aggressivelySample=F;this.args=[];y&&this.args.push(y)};
_.E(N5,_.Io);var j5=function(I,y,D,F){F=F===void 0?!1:F;_.Io.call(this,I);this.adsClientErrorMessage=D;this.aggressivelySample=F;this.args=[];y&&this.args.push(y)};
_.E(j5,_.Io);var xAM=function(I){_.B5.call(this);var y=this;this.initializationFunction=I;this.instance=null;this.addOnDisposeCallback(function(){_.rM(y.instance);y.instance=null})};
_.E(xAM,_.B5);xAM.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.wv("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var vto=function(){var I=new Map;[].forEach(function(y){I.set(y.JSC$31404_getType(),y)});
this.getters=I};new Promise(function(){});var RUL=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"]]),DbB=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"}]]),llc=function(I){this.experimentApiProvider=I;I=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=I<.1};var mc=function(I,y,D,F){_.B5.call(this);this.adsControlFlowEventListeners=y;this.adEventLogger=D;this.experimentApiProvider=F;this.adsControlFlowManagerHelper=I(this,this,this,this,this);_.pW(this,this.adsControlFlowManagerHelper);I=_.J(y);for(y=I.next();!y.done;y=I.next())_.pW(this,y.value)};
_.E(mc,_.B5);var uVc=function(I,y,D,F){MD(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",y,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,F);I=_.J(I.adsControlFlowEventListeners);for(F=I.next();!F.done;F=I.next())uVc(F.value,y,D)};
_.L=mc.prototype;_.L.onOpportunityProcessedExternallyManaged=function(I,y,D,F){MD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",I,D,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,F)};
_.L.onSlotReceivedExternallyManaged=function(I,y){z3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",I,y)};
_.L.onSlotEntered=function(I){if(kx(this.adsControlFlowManagerHelper,I)!=null){z3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",I);this.adsControlFlowManagerHelper.onSlotEntered(I);for(var y=_.J(this.adsControlFlowEventListeners),D=y.next();!D.done;D=y.next())D.value.onSlotEntered(I);if(kx(this.adsControlFlowManagerHelper,I)!=null&&kx(this.adsControlFlowManagerHelper,I).isOccupyingSlotType()&&dO(this.adsControlFlowManagerHelper,I)&&!qLO(this.adsControlFlowManagerHelper,I)){var F;aF(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",I,(F=dO(this.adsControlFlowManagerHelper,I))!=null?F:void 0);I=kx(this.adsControlFlowManagerHelper,I);I.slotLifecycleStage!=="entered"&&cj(I.slot,I.slotLifecycleStage,"enterLayoutForSlot");I.slotLifecycleStage="rendering";I.registeredLayoutRenderingAdapter.startRendering(I.layout)}}};
_.L.onSlotExited=function(I){if(kx(this.adsControlFlowManagerHelper,I)!=null){z3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",I);this.adsControlFlowManagerHelper.onSlotExited(I);for(var y=_.J(this.adsControlFlowEventListeners),D=y.next();!D.done;D=y.next())D.value.onSlotExited(I);kx(this.adsControlFlowManagerHelper,I)!=null&&kx(this.adsControlFlowManagerHelper,I).markedForUnscheduleAfterOutboundAdapterRequests&&ElM(this,I)}};
_.L.onLayoutReceivedExternallyManaged=function(I,y,D){I.managerLayer!=="core"&&aF(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",I,y,D)};
var GH_=function(I,y,D){if(kx(I.adsControlFlowManagerHelper,y)!=null){aF(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,D);I=_.J(I.adsControlFlowEventListeners);for(var F=I.next();!F.done;F=I.next())GH_(F.value,y,D)}};
mc.prototype.onLayoutExited=function(I,y,D){if(kx(this.adsControlFlowManagerHelper,I)!=null){aF(this.adEventLogger,F8W(D),I,y);this.adsControlFlowManagerHelper.onLayoutExited(I,y);for(var F=_.J(this.adsControlFlowEventListeners),R=F.next();!R.done;R=F.next())R.value.onLayoutExited(I,y,D);(D=dO(this.adsControlFlowManagerHelper,I))&&y.layoutId===D.layoutId&&X8P(this,I)}};
mc.prototype.disposeInternal=function(){var I=QSu(this.adsControlFlowManagerHelper);I=_.J(I);for(var y=I.next();!y.done;y=I.next())ElM(this,y.value);_.B5.prototype.disposeInternal.call(this)};
var ElM=function(I,y){if(kx(I.adsControlFlowManagerHelper,y)!=null)if(kx(I.adsControlFlowManagerHelper,y).JSC$31434_isSlotExitRequested()||kx(I.adsControlFlowManagerHelper,y).JSC$31434_isLayoutExitRequested())kx(I.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(kx(I.adsControlFlowManagerHelper,y).isOccupyingSlotType())kx(I.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests=!0,X8P(I,y);else if(kx(I.adsControlFlowManagerHelper,y).JSC$31434_isSlotFillRequested())kx(I.adsControlFlowManagerHelper,
y).markedForUnscheduleAfterOutboundAdapterRequests=!0,kx(I.adsControlFlowManagerHelper,y)!=null&&(z3(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",y),y=kx(I.adsControlFlowManagerHelper,y),y.fulfillmentLifecycleStage="fill_cancel_requested",y.registeredFulfillmentAdapter.cancelSlotFilling());else{var D=dO(I.adsControlFlowManagerHelper,y),F;I.experimentApiProvider.get();(F=_.l("h5_enable_layout_unscheduling_events"))&&(D?YLg(I,y,D):_.wv(Error("Mh"),y,D,void 0,!1));z3(I.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",y);var R=kx(I.adsControlFlowManagerHelper,y),O=y.slotEntryTrigger,w=R.registeredSlotEntryTriggerAdapters.get(O.triggerId);w&&(w.unregisterTrigger(O),R.registeredSlotEntryTriggerAdapters.delete(O.triggerId));O=_.J(y.slotFulfillmentTriggers);for(w=O.next();!w.done;w=O.next()){w=w.value;var v=R.registeredFulfillmentTriggerAdapters.get(w.triggerId);v&&(v.unregisterTrigger(w),R.registeredFulfillmentTriggerAdapters.delete(w.triggerId))}O=_.J(y.slotExpirationTriggers);
for(w=O.next();!w.done;w=O.next())if(w=w.value,v=R.registeredExpirationTriggerAdapters.get(w.triggerId))v.unregisterTrigger(w),R.registeredExpirationTriggerAdapters.delete(w.triggerId);R.hasLayout()&&(O=R.layout,Wj(R,O.layoutExitNormalTriggers),Wj(R,O.layoutExitSkipTriggers),Wj(R,O.layoutExitMuteTriggers),Wj(R,O.layoutExitUserInputSubmittedTriggers),Wj(R,O.layoutExitUserCancelledTriggers));R.registeredFulfillmentAdapter=void 0;R.registeredSlotAdapter!=null&&(R.registeredSlotAdapter.release(),R.registeredSlotAdapter=
void 0);R.registeredLayoutRenderingAdapter!=null&&(R.registeredLayoutRenderingAdapter.release(),R.registeredLayoutRenderingAdapter=void 0);R=I.adsControlFlowManagerHelper;kx(R,y)&&(R=flg(R,y.slotType+"_"+y.slotPhysicalPosition))&&R.delete(y.slotId);z3(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);I=_.J(I.adsControlFlowEventListeners);for(R=I.next();!R.done;R=I.next())R=R.value,R.onSlotUnscheduled(y),D&&!F&&YLg(R,y,D)}},YLg=function(I,y,D){aF(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
y,D);
aF(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",y,D);I=_.J(I.adsControlFlowEventListeners);for(var F=I.next();!F.done;F=I.next())F=F.value,D&&YLg(F,y,D)},X8P=function(I,y){if(kx(I.adsControlFlowManagerHelper,y)!=null&&kx(I.adsControlFlowManagerHelper,y).isOccupyingSlotType()){var D=dO(I.adsControlFlowManagerHelper,y);
if(D&&qLO(I.adsControlFlowManagerHelper,y)){if(kx(I.adsControlFlowManagerHelper,y)!=null){var F=I.adEventLogger,R;var O=((R=DbB.get("abandoned"))==null?void 0:R.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";aF(F,O,y,D);I=kx(I.adsControlFlowManagerHelper,y);I.slotLifecycleStage!=="rendering"&&cj(I.slot,I.slotLifecycleStage,"exitLayout");I.slotLifecycleStage="rendering_stop_requested";I.registeredLayoutRenderingAdapter.stopRendering(D,"abandoned")}}else{z3(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
y);try{F=kx(I.adsControlFlowManagerHelper,y);if(!F)throw new j5("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");F.slotLifecycleStage!=="enter_requested"&&F.slotLifecycleStage!=="entered"&&F.slotLifecycleStage!=="rendering"&&cj(F.slot,F.slotLifecycleStage,"exitSlot");F.slotLifecycleStage="exit_requested";if(F.registeredSlotAdapter===void 0)throw F.slotLifecycleStage="scheduled",new j5("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
F.registeredSlotAdapter.exit()}catch(w){w instanceof j5&&w.adsClientErrorMessage?(nlR(I.adEventLogger,w.adsClientErrorMessage,y),_.wv(w,y,void 0,void 0,w.aggressivelySample)):(nlR(I.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),_.wv(w,y))}}}};var Cp=function(I,y,D,F,R,O){_.B5.call(this);this.registry=I;this.experimentApiProvider=O;this.slotMap=new Map};
_.E(Cp,_.B5);var flg=function(I,y){return(I=I.slotMap.get(y))?I:new Map},kx=function(I,y){return flg(I,y.slotType+"_"+y.slotPhysicalPosition).get(y.slotId)},QSu=function(I){var y=[];
I.slotMap.forEach(function(D){D=_.J(D.values());for(var F=D.next();!F.done;F=D.next())y.push(F.value.slot)});
return y};
Cp.prototype.onSlotEntered=function(I){I=kx(this,I);I.slotLifecycleStage!=="enter_requested"&&cj(I.slot,I.slotLifecycleStage,"onSlotEntered");I.slotLifecycleStage="entered"};
var qLO=function(I,y){I=kx(I,y);return I.hasLayout()&&I.isRendering()},dO=function(I,y){(I=kx(I,y))?I.hasLayout()&&!I.layout&&_.wv("Unexpected empty layout",y):_.wv("Unexpected undefined slotState",y);
return(I==null?void 0:I.layout)||null};
Cp.prototype.onSlotExited=function(I){I=kx(this,I);I.slotLifecycleStage!=="exit_requested"&&cj(I.slot,I.slotLifecycleStage,"onSlotExited");I.slotLifecycleStage="scheduled"};
Cp.prototype.onLayoutExited=function(I,y){I=kx(this,I);I.isPrimaryLayout(y)&&(I.slotLifecycleStage!=="rendering_stop_requested"&&cj(I.slot,I.slotLifecycleStage,"onLayoutExited"),I.slotLifecycleStage="entered")};
var Wj=function(I,y){y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=I.registeredLayoutExitTriggerAdapters.get(D.triggerId);F&&(F.unregisterTrigger(D),I.registeredLayoutExitTriggerAdapters.delete(D.triggerId))}},cj=function(I,y,D){_.wv("Slot stage was "+y+" when calling method "+D,I)};var mAM=function(I){_.B5.call(this);this.deps=I;this.JSC$15870_adsControlFlowManager=p8O(this)};
_.E(mAM,_.B5);var p8O=function(I){var y=new mc(function(D,F,R,O){return new Cp(I.deps.registry,D,F,R,O,I.deps.experimentApiProvider)},new Set(wX4(I.deps.registry).concat(I.deps.listeners)),I.deps.adEventLogger,I.deps.experimentApiProvider);
_.pW(I,y);return y};var y_q=function(){};var MGM=function(I,y){_.B5.call(this);this.experimentApiProvider=I;this.eventLoggingSettingsProvider=y;this.eventCount=0;this.premiumAdSeenEventLogger=DlW()()};
_.E(MGM,_.B5);MGM.prototype.logEvent=function(I){MD(this,I)};
var z3=function(I,y,D,F){MD(I,y,void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,void 0,F)},aF=function(I,y,D,F,R){MD(I,y,void 0,void 0,void 0,D,F?F:void 0,void 0,void 0,D.adSlotLoggingData,F?F.adLayoutLoggingData:void 0,void 0,R);
D=_.nR().resolve(_.fR(DM))==null?void 0:FS();y=D==null?void 0:D.adsSeenHotConfig;D=D==null?void 0:D.adsHotConfig;(y==null?0:y.logOnAdsSeen)&&(D==null?0:D.webEnablePremiumAdsSeenLogging)&&zuu(I,F?F:void 0,R)},nlR=function(I,y,D){MD(I,"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:y})},MD=function(I,y,D,F,R,O,w,v,P,K,r,N,h){h=h===void 0?0:h;
kHc(I.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+y,"slot:",O,"layout:",w,"ping:",v,"Opportunity:",{opportunityType:D,associatedSlotId:F,slotsFromOpportunity:R,triggerBundle:P,adSlotLoggingData:K,adLayoutLoggingData:r});try{var x=function(){I.experimentApiProvider.get();if(y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){y||_.wv("Empty PACF event type",O,w);var q=I.eventLoggingSettingsProvider.get();var X;(X=q.alwaysIncludeDebugData)||(q.experimentApiProvider.get(),X=
!1);q=X;X={eventType:y,eventOrder:++I.eventCount};var f={};O&&(f.slotData=L8A(q,O));if(w){var m={type:w.layoutType,controlFlowManagerLayer:RUL.get(w.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q&&(m.debugData={layoutId:w.layoutId});f.layoutData=m}v&&(f.pingData={pingDispatchStatus:v.dispatchStatus,serializedAdPingMetadata:v.ping.serializedAdPingMetadata,pingIndex:v.index});P&&(f.triggerData=OsL(P.trigger,P.category));D&&(f.opportunityData=JQC(q,D,F,R));X.adClientData=f;K&&(X.serializedSlotAdServingData=
K.serializedSlotAdServingDataEntry);r&&(X.serializedAdServingData=r.serializedAdServingDataEntry);N&&(X.errorInfo=N);_.Jq("adsClientStateChange",{adsClientEvent:X})}};
h&&h>0?_.y9(_.Tr(),function(){return x()},h):x()}catch(q){kHc(I.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.y9(_.Tr(),function(){_.wv(q instanceof Error?q:String(q),O,w,{pacf_message:"exception during pacf logging"})})}},zuu=function(I,y,D){if(y){var F=y.adLayoutLoggingData;
_.y9(_.Tr(),function(){I.premiumAdSeenEventLogger!=null&&F&&_.Jq("adsSeenClientLogging",{serializedAdServingDataEntry:F.serializedAdServingDataEntry})},D!=null?D:0)}};var dAW=function(I,y){MGM.call(this,I,y)};
_.E(dAW,MGM);var alu=function(){},kHc=function(I,y){return _.l(y)};var W3G=function(){var I=new cnP;this.JSC$15895_adsControlFlowManager=(new mAM(I)).JSC$15870_adsControlFlowManager},cnP=function(){_.B5.call(this);
var I=this;this.experimentApiProvider=new xAM(function(){return new alu});
var y=new xAM(function(){return new llc(I.experimentApiProvider)});
this.adEventLogger=new dAW(this.experimentApiProvider,y);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.E(cnP,_.B5);var Cmz=function(){},BWg,Bj=function(){BWg||(BWg=new Cmz);
return BWg},iQ=function(I){if(!I.JSC$15906_externallyManagedSlotAdapterCallback){var y=(new W3G).JSC$15895_adsControlFlowManager;
I.JSC$15906_externallyManagedSlotAdapterCallback=y}return I.JSC$15906_externallyManagedSlotAdapterCallback},iyz=function(I,y,D){var F=y.opportunityType,R=Error("Nh");
if(F!==void 0){var O=iQ(I);uVc(O,F,void 0,D)}else _.wv(R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});O=[];if(y.adSlotAndLayoutMetadata!==void 0){y=_.J(y.adSlotAndLayoutMetadata);for(var w=y.next();!w.done;w=y.next()){var v=w.value;if(w=v.adSlotMetadata)if(O.push(w),I.onSlotReceivedExternallyManaged(w,D),v.adLayoutMetadata){v=_.J(v.adLayoutMetadata);for(var P=v.next();!P.done;P=v.next())I.onLayoutReceivedExternallyManaged(w,P.value,D)}else D>0&&_.wv("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else D>0&&_.wv("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else D>0&&_.wv("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(F!==void 0)I.onOpportunityProcessedExternallyManaged(F,O,void 0,D);else _.wv(R,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Cmz.prototype.onSlotReceivedExternallyManaged=function(I,y){I=ok(I);if(I instanceof j5)_.wv(I,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else iQ(this).onSlotReceivedExternallyManaged(I,y)};
Cmz.prototype.onLayoutReceivedExternallyManaged=function(I,y,D){I=ok(I);y=SQ4(y);if(I instanceof j5)_.wv(I,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(y instanceof N5)_.wv(y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else iQ(this).onLayoutReceivedExternallyManaged(I,y,D)};
Cmz.prototype.onOpportunityProcessedExternallyManaged=function(I,y,D,F){var R=[];y=_.J(y);for(var O=y.next();!O.done;O=y.next())O=ok(O.value),O instanceof j5?_.wv(O,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):R.push(O);iQ(this).onOpportunityProcessedExternallyManaged(I,R,D,F)};
var Ang=function(I,y){y=ok(y);if(y instanceof j5)_.wv(y,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var D=iQ(I);z3(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);D=_.J(D.adsControlFlowEventListeners);for(var F=D.next();!F.done;F=D.next())F=kx(F.value,y),F.slotLifecycleStage!=="not_scheduled"&&cj(F.slot,F.slotLifecycleStage,"onSlotScheduled"),F.slotLifecycleStage="scheduled";I=iQ(I);z3(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",y);I=_.J(I.adsControlFlowEventListeners);
for(D=I.next();!D.done;D=I.next())D.value.onSlotEntered(y)}},$A_=function(I,y){y=ok(y);
if(y instanceof j5)_.wv(y,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var D=iQ(I);z3(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",y);D=_.J(D.adsControlFlowEventListeners);for(var F=D.next();!F.done;F=D.next())F.value.onSlotExited(y);I=iQ(I);z3(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",y);I=_.J(I.adsControlFlowEventListeners);for(D=I.next();!D.done;D=I.next())D.value.onSlotUnscheduled(y)}},byG=function(I,y,D){y=ok(y);
D=SQ4(D);if(y instanceof j5)_.wv(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(D instanceof N5)_.wv(D,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var F=iQ(I);aF(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",y,D);F=_.J(F.adsControlFlowEventListeners);for(var R=F.next();!R.done;R=F.next())R.value.onLayoutScheduled(y,D);I=iQ(I);aF(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",y,D);I=_.J(I.adsControlFlowEventListeners);
for(F=I.next();!F.done;F=I.next())GH_(F.value,y,D)}},Aa=function(I,y,D){y=ok(y);
D=SQ4(D);if(y instanceof j5)_.wv(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(D instanceof N5)_.wv(D,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var F=iQ(I);aF(F.adEventLogger,F8W("normal"),y,D);F=_.J(F.adsControlFlowEventListeners);for(var R=F.next();!R.done;R=F.next())R.value.onLayoutExited(y,D,"normal");I=iQ(I);I=_.J(I.adsControlFlowEventListeners);for(F=I.next();!F.done;F=I.next())YLg(F.value,y,D)}};_.$x=_.d(function(I){var y=_.o6(I,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});I=Object.assign({},y);var D=y.data;y=y.customCommandResolver;var F=(delete I.data,delete I.customCommandResolver,I);I=_.pT({visibilityCallback:function(v,P){var K,r=(K=D().interaction)==null?void 0:K.onFirstVisible;v&&(r&&_.OE(r),F.setOnErrorHandler()&&ts4(P))},
showOption:_.fF});y=_.Dy(function(){return D().interaction},y,function(){var v;
return(v=F.listenToTapEvent)==null?void 0:v.call(F)});
var R=_.J(_.$M(!1,void 0,"wAC0Lc")),O=R.next().value,w=R.next().value;R=_.YY(function(v){var P;((P=F.setTouchEndHandler)==null?0:P.call(F))&&!O()&&(v.currentTarget.click(),w(!0),setTimeout(function(){w(!1)},100));
return!1});
return _.t("ad-image-view-model",{class:function(){var v,P=[((v=D().interaction)==null?0:v.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],K;((K=F.isGridViewEnabled)==null?0:K.call(F))&&P.push("ytwAdImageViewModelHostInGridView");return P.join(" ")},
el:_.K4(I,y),"on:touchend":R},_.t("div",{class:"ytwAdImageViewModelHostImageContainer"},_.t(_.UE,{data:function(){var v;return{sources:D().imageSources,contentMode:(v=D().imageProperties)==null?void 0:v.contentMode}},
alt:function(){var v,P;return((v=D().interaction)==null?void 0:(P=v.accessibility)==null?void 0:P.label)||""},
targetHeight:F.targetHeight,targetWidth:F.targetWidth,preserveHeight:F.preserveHeight,preserveWidth:F.preserveWidth,useWidth:F.useWidth,style:function(){var v,P;return"vertical-align: bottom;"+(((v=D().background)==null?0:v.color)?"background-color:"+_.Vp((P=D().background)==null?void 0:P.color)+";":"")},
className:function(){return F.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var v,P;return(P=(v=F.setDraggable)==null?void 0:v.call(F))!=null?P:void 0}})))},"nc");var Hyf=_.d(function(I){var y=I.data,D=I.listenToTapEvent,F=function(){};
return _.t("ad-button-hover-overlay-view-model",{"on:click":_.YY(function(R){if(_.l("enable_web_home_top_landscape_image_layout_legacy_click_command")){var O,w=(O=y().interaction)==null?void 0:O.onTap;w&&_.lj(R.currentTarget,"yt-navigate",{endpoint:_.yz(w)})}}),
class:function(){var R;return((R=y().interaction)==null?0:R.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(R){var O,w=(O=y().interaction)==null?void 0:O.onFirstVisible;R&&w&&_.OE(w)},
showOption:_.fF}),_.Dy(function(){return y().interaction},void 0,function(){return!_.l("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(D==null?void 0:D())}))},function(){return _.l("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.t(_.aP,{data:function(){return y().button}},{adButtonViewModel:function(R){return _.t(_.pF,{data:R.data,
customCommandResolver:F})}}):_.t(_.aP,{data:function(){return y().button}},{adButtonViewModel:_.pF})}())},"oc");var hU;_.NK(_.d(function(I){var y=I.data;I=_.pT({visibilityCallback:function(v,P){if(v){var K;(v=(K=y().interaction)==null?void 0:K.onFirstVisible)&&_.OE(v);var r;if(K=(r=y().adLayoutData)==null?void 0:r.activeViewData)xw(P,K),_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l9(P)})}else _.l("stop_av_measurement_on_detach")&&l9(P)},
showOption:_.fF,hideOption:nF});var D=_.Dy(function(){return y().interaction},void 0,function(){return!0}),F=_.J(_.$M(!1,void 0,"VNDDT")),R=F.next().value,O=F.next().value;
F=_.YY(function(){O(!0)});
var w=_.YY(function(){O(!1)});
return _.t("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.K4(I,N3o,D),"on:mouseenter":F,"on:mouseleave":w},_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.p4({"max-width":function(){return _.l("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.t("div",{class:function(){var v;
a:{var P;switch((v=_.u(y().thumbnailImage,crW))==null?void 0:(P=v.imageProperties)==null?void 0:P.renderingAspect){case "RENDERING_ASPECT_SQUARE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":v="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}v=void 0}return v}},_.t(_.aP,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(v){return _.t(_.$x,
{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.l("enable_top_landscape_image_experiment_dom_id_web")})}})),_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.t(_.U,{cond:function(){var v,P,K;
return(v=_.u(y().thumbnailImage,crW))==null?void 0:(P=v.imageProperties)==null?void 0:(K=P.overlayIcon)==null?void 0:K.iconImage},
then:function(v){return _.t(_.UE,{data:v,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.t("div",{class:function(){return R()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.t(_.aP,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(v){return _.t(Hyf,
{data:v.data,
listenToTapEvent:!0})}}))),_.t("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.t(_.aP,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(v){return _.t(c7,{data:v.data,
listenToTapEvent:!0,setTouchEndHandler:_.l("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;I=_.pT({visibilityCallback:function(v,P){if(v){var K;(v=(K=y().interaction)==null?void 0:K.onFirstVisible)&&_.OE(v);var r;if(K=(r=y().adLayoutData)==null?void 0:r.activeViewData)xw(P,K),_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l9(P)})}else _.l("stop_av_measurement_on_detach")&&l9(P)},
showOption:_.fF,hideOption:nF});var D=_.dV(_.Zo),F=_.Dy(function(){return y().interaction}),R={},O={},w={};
return _.t("square-image-layout-view-model",{class:_.XH("ytwSquareImageLayoutViewModelHost",(R.ytwSquareImageLayoutViewModelHostColumn=D,R)),el:_.K4(I,hUS,F)},_.t("div",{class:_.XH("ytwSquareImageLayoutViewModelHostImage",(O.ytwSquareImageLayoutViewModelHostColumnImage=D,O))},function(){return _.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(v){return _.t(_.$x,{data:v.data,
isGridViewEnabled:D,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.t("div",{class:_.XH("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=D,w))},_.t(_.aP,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:c7}),function(){return _.t(_.aP,{data:function(){return y().adButton}},{adButtonViewModel:function(v){var P={};
return _.t(_.pF,{data:v.data,className:_.XH((P.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,P.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=D,P))})}})}()))},"qc"),"square-image-layout-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.noBottomMargin;var F=I.typographyBump;I=_.pT({visibilityCallback:function(N,h){if(N){var x;(N=(x=y().interaction)==null?void 0:x.onFirstVisible)&&_.OE(N);var q;if(x=(q=y().adLayoutData)==null?void 0:q.activeViewData)xw(h,x),_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&l9(h)})}else _.l("stop_av_measurement_on_detach")&&l9(h)},
showOption:_.fF,hideOption:nF});var R=_.Dy(function(){return y().interaction},void 0,function(){return _.l("enable_web_home_top_landscape_image_layout_level_click")}),O=function(){return y().interaction};
O!==void 0&&O!==null||_.o8(Error("Oh"));var w=function(){var N,h,x;return(N=_.u(y().thumbnailImage,crW))==null?void 0:(h=N.background)==null?void 0:(x=h.backgroundImageSource)==null?void 0:x.imageSources};
O=_.J(_.$M(!1,void 0,"NFjwje"));var v=O.next().value,P=O.next().value;O=_.YY(function(){P(!0)});
var K=_.YY(function(){P(!1)}),r=function(){return v()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.t("top-landscape-image-layout-view-model",{class:function(){var N;return((N=y().interaction)==null?0:N.onTap)&&_.l("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.K4(I,xbB,R),"on:mouseenter":O,"on:mouseleave":K},_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.t(_.U,{cond:function(){return w()&&w().length>0},
then:function(){return _.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.p4({top:"0","background-image":function(){return"url("+String(w()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.t(_.U,{cond:function(){return!!y().adButtonHoverOverlay},
then:function(){return _.t("div",{class:r},_.t(_.aP,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Hyf}))}}),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.t(_.aP,{data:function(){return y().thumbnailImage}},{adImageViewModel:function(N){return _.t(_.$x,{data:N.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.l("enable_web_home_top_landscape_image_layout_level_click")})}})),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.t(_.UE,{data:{sources:[{clientResource:{imageName:_.l("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.t("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.t(_.aP,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(N){return _.t(c7,{data:N.data,
noBottomMargin:function(){return D==null?void 0:D()},
listenToTapEvent:function(){return _.l("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return F==null?void 0:F()}})}})))},"rc"),"top-landscape-image-layout-view-model",{props:{data:_.om,
noBottomMargin:_.om,typographyBump:_.om}});var euP=_.d(function(I){var y=I.data,D=_.pT({visibilityCallback:function(R){var O,w=(O=y().interaction)==null?void 0:O.onFirstVisible;R&&w&&_.OE(w)},
showOption:_.fF});I=_.Dy(function(){return y().interaction},I.customCommandResolver);
var F={};return _.t("ad-text-image-view-model",{class:_.XH("ytwAdTextImageViewModelHost",(F.ytwAdTextImageViewModelHostDarkBackground=function(){return y().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},F)),
el:_.K4(D,I),"aria-label":function(){var R,O;return(R=y().interaction)==null?void 0:(O=R.accessibility)==null?void 0:O.label}},_.t("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.t(_.jr,{text:function(){return y().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.t(_.U,{cond:function(){return y().overlayIcon},
then:function(R){return _.t("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.t(_.UE,{data:R,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"sc");var TWP=_.d(function(I){var y=I.data;return _.t("feed-ad-sitelink-view-model",{class:function(){var D;return((D=y().interaction)==null?0:D.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.K4(_.Dy(function(){return y().interaction},I.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var D,F;return(D=y().interaction)==null?void 0:(F=D.accessibility)==null?void 0:F.label},
role:"link",tabindex:0},_.t(_.jr,{text:function(){return y().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"tc");var sSO=_.d(function(I){var y=I.data;I={};return _.t("feed-ad-sitelinks-carousel-view-model",{el:_.K4(_.pT({visibilityCallback:function(D){var F,R=(F=y().interaction)==null?void 0:F.onFirstVisible;D&&R&&_.OE(R)},
showOption:_.fF})),class:_.XH("ytwFeedAdSitelinksCarouselViewModelHost",(I.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return y().style==="FEED_AD_SITELINKS_STYLE_NONE"},I))},_.t(_.aP,{data:function(){return y().sitelinks}},{feedAdSitelinkViewModel:TWP}))},"uc");_.NK(_.d(function(I){var y=I.data;I=_.pT({visibilityCallback:function(w,v){if(w){var P;(w=(P=y().interaction)==null?void 0:P.onFirstVisible)&&_.OE(w);var K;(P=(K=y().adLayoutData)==null?void 0:K.activeViewData)&&xw(v,P)}},
showOption:_.fF});var D=_.J(_.$M(!1,void 0,"BzPhl")),F=D.next().value,R=D.next().value;D=_.YY(function(){R(!0)});
var O=_.YY(function(){R(!1)});
return _.t("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.K4(I),"on:mouseenter":D,"on:mouseleave":O},_.t("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.t("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.t(_.aP,{data:function(){return y().textImage}},{adTextImageViewModel:euP})),_.t("div",{class:function(){return F()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.t(_.aP,{data:function(){return y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(w){return _.t(Hyf,{data:w.data,
listenToTapEvent:!0})}}))),_.t("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.t(_.aP,{data:function(){return y().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.t(c7,{data:w.data,
listenToTapEvent:!0})}}),_.t(_.aP,{data:function(){return y().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:sSO})))},"vc"),"text-image-no-button-layout-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.typographyBump;return _.t("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.K4(_.pT({visibilityCallback:function(F,R){if(F){var O;(F=(O=y().interaction)==null?void 0:O.onFirstVisible)&&_.OE(F);var w;(O=(w=y().adLayoutData)==null?void 0:w.activeViewData)&&xw(R,O)}},
showOption:_.fF,hideOption:nF}))},_.t("div",null,_.t(_.aP,{data:function(){return y().videoLockup}},{lockupViewModel:function(F){return _.t(_.W7,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"wc"),"video-display-button-group-layout-view-model",{props:{data:_.om,
noBottomMargin:_.om,typographyBump:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.className;var F=I.typographyBump;return _.t("video-display-compact-button-group-layout-view-model",{el:_.K4(_.pT({visibilityCallback:function(R,O){if(R){var w;(R=(w=y().interaction)==null?void 0:w.onFirstVisible)&&_.OE(R);var v;(w=(v=y().adLayoutData)==null?void 0:v.activeViewData)&&xw(O,w)}},
showOption:_.fF})),class:_.XH("videoDisplayCompactButtonGroupLayoutViewModelHost",D)},_.t(_.aP,{data:function(){return y().videoLockup}},{lockupViewModel:function(R){return _.t(_.W7,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:F})}}))},"xc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.om,
className:_.om,typographyBump:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.className;var F=I.typographyBump;return _.t("video-display-compact-buttoned-layout-view-model",{el:_.K4(_.pT({visibilityCallback:function(R,O){if(R){var w;(R=(w=y().interaction)==null?void 0:w.onFirstVisible)&&_.OE(R);var v;(w=(v=y().adLayoutData)==null?void 0:v.activeViewData)&&xw(O,w)}},
showOption:_.fF})),class:_.XH("videoDisplayCompactButtonedLayoutViewModelHost",D)},_.t(_.aP,{data:function(){return y().videoLockup}},{lockupViewModel:function(R){return _.t(_.W7,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:F})}}))},"yc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.om,
className:_.om,typographyBump:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.className;var F=I.typographyBump;var R=function(){return y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},O=_.dV(_.Zo);
I=_.pT({visibilityCallback:function(K,r){if(K){var N=y();K=N.adLayoutData;var h;(N=(h=N.interaction)==null?void 0:h.onFirstVisible)&&_.OE(N);(h=K==null?void 0:K.activeViewData)&&xw(r,h)}},
showOption:_.fF});var w=_.su(function(){return{containerType:R()&&O()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:R()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),v=_.su(function(){return R()&&O()?"":R()?"168px":"50%"},void 0,"Om6kNe"),P=_.su(function(){return R()&&O()?9999:void 0},void 0,"S71lKd");
return _.t("video-display-compact-layout-view-model",{el:_.K4(I),class:_.XH("videoDisplayCompactLayoutViewModelHost",D)},_.t(_.aP,{data:function(){return y().videoLockup}},{lockupViewModel:function(K){return _.t(_.W7,{data:K.data,
containerLayoutConfig:w,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:v,thumbnailTargetWidth:P,typographyBump:F})}}))},"zc"),"video-display-compact-layout-view-model",{props:{data:_.om,
className:_.om,typographyBump:_.om}});_.NK(_.d(function(I){var y=I.data;var D=I.typographyBump;return _.t("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.K4(_.pT({visibilityCallback:function(F,R){if(F){var O;(F=(O=y().interaction)==null?void 0:O.onFirstVisible)&&_.OE(F);var w;(O=(w=y().adLayoutData)==null?void 0:w.activeViewData)&&xw(R,O)}},
showOption:_.fF,hideOption:nF}))},_.t("div",null,_.t(_.aP,{data:function(){return y().videoLockup}},{lockupViewModel:function(F){return _.t(_.W7,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"Ac"),"video-display-full-layout-view-model",{props:{data:_.om,
noBottomMargin:_.om,typographyBump:_.om}});_.VGW=_.d(function(I){var y=I.data;I=_.DF("ad-card-badge-view-model");return _.t("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:I},_.t(_.U,{cond:function(){return y().imageBadge},
then:function(D){return _.t(_.UE,{data:D,alt:""})}}))},"Bc");var ZyM=_.d(function(I){var y=I.data;var D=I.customCommandResolver;return _.t("carousel-ad-card-image-view-model",{class:function(){var F;return((F=y().interaction)==null?0:F.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D)),
"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(F){return _.t(_.$x,{data:F.data,
customCommandResolver:D})}}),_.t("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.t(_.aP,{data:function(){return y().badge}},{adCardBadgeViewModel:_.VGW})),_.t(_.fM,{model:{color:4}}))},"Cc");var glW=_.d(function(I){var y=_.J(_.$M(0,void 0,"JJ0QQc")),D=y.next().value;y.next();var F=y.next().value,R=_.J(_.$M(!1,void 0,"f6YICe"));y=R.next().value;var O=R.next().value,w;_.tI(function(){clearTimeout(w)});
R=_.YY(function(){var K;((K=I.animate)==null?0:K.call(I))?(O(!0),w=setTimeout(function(){O(!1);v()},200)):v();
return!1});
var v=function(){F(function(K){return(K+I.numShownItems())%I.data().length})},P={};
return _.t("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.t("div",{class:_.XH("ytwHorizontalCarouselCarouselWrapper")},_.t("div",{class:_.XH("ytwHorizontalCarouselCarouselInnerWrapper",(P.ytwHorizontalCarouselAnimating=y,P))},_.t(_.gZ,{each:I.data,keyBy:"INDEX"},function(K,r){return _.t("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.p4({"flex-basis":function(){return"calc((100% - (8px * "+(I.numShownItems()-1)+")) / "+I.numShownItems()+")"},
order:function(){var N=r-D();N<0&&(N+=I.data().length);return N}})},I.children(K,r))}))),_.t("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":R},I.nextButton()))},"Dc");var Isc=_.d(function(I){var y=I.data;var D=I.customCommandResolver;var F=I.expansive;return _.t("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.K4(_.pT({visibilityCallback:function(R){var O,w=(O=y().interaction)==null?void 0:O.onFirstVisible;R&&w&&_.OE(w)},
showOption:_.fF}))},_.t(glW,{data:function(){var R;return((R=y())==null?void 0:R.carouselAdCards)||[]},
nextButton:function(){return _.t(_.aP,{data:function(){return y().nextButton}},{buttonViewModel:function(R){var O=R.data;
return _.t(_.My,{data:function(){return(F==null?0:F())?Object.assign({},O(),{style:"mono"}):O()},
className:_.l("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(R){return _.t(_.aP,{data:R},{carouselAdCardImageViewModel:function(O){return _.t(ZyM,{data:O.data,customCommandResolver:D})}})}))},"Ec");var yBg=_.d(function(I){var y=I.data;var D=I.customCommandResolver;var F=I.className;var R=I.buttonClassName;var O=I.animationEntityKey;var w=I.expansive;return _.t("carousel-button-view-model",{class:_.XH("ytwCarouselButtonViewModelHost",F)},_.t(_.aP,{data:function(){return y().carousel}},{carouselAdCardCollectionViewModel:function(v){return _.t(Isc,{data:v.data,
customCommandResolver:D,expansive:w})}}),_.t(_.aP,{data:function(){return y().button}},{adButtonViewModel:function(v){var P=v.data;
return _.t(_.pF,{data:function(){return(w==null?0:w())?Object.assign({},P(),{style:"AD_BUTTON_STYLE_TONAL"}):P()},
className:R,customCommandResolver:D,animationEntityKey:O})}}))},"Fc");_.DxM=_.d(function(I){var y=I.data;I=I.className;var D=_.DF("pivot-button-view-model");_.LR(function(){var F;((F=y())==null?0:F.backgroundColor)&&D.value.setAttribute("data-background-color",String(y().backgroundColor))});
return _.t("pivot-button-view-model",{el:D,class:_.XH("ytwPivotButtonViewModelHost",I)},_.t(_.Yp,{command:function(){var F=y();F=F.onClickCommand?_.yz(F.onClickCommand):F.contentDescription?_.xc(F.contentDescription):void 0;return F},
ariaLabel:function(){return y().contentDescription}},_.t(_.U,{cond:function(){return y().thumbnail},
then:function(F){return _.t(_.UE,{data:F,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.t(_.U,{cond:function(){return y().icon},
then:function(F){return _.t(_.mj,{icon:function(){return F().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Gc");_.FUg=_.d(function(I){var y=I.data;var D=I.buttonShapeOverrideables;return _.t("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.t(_.aP,{data:function(){return y().buttonViewModels}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
buttonOverrides:D})},
likeButtonViewModel:function(F){return _.t(_.SD,{data:F.data,buttonShapeOverrideables:D})},
dislikeButtonViewModel:function(F){return _.t(_.vQ,{data:F.data,buttonShapeOverrideables:D})},
toggleButtonViewModel:function(F){return _.t(_.yJ,{data:F.data,buttonShapeOverrides:D})}}))},"Hc");var R1G=_.d(function(I){var y=I.avatar;var D=I.headline;var F=I.badge;var R=I.description;var O=I.expansive;I={};return _.t("yt-ad-metadata-shape",{class:_.XH("ytAdMetadataShapeHost",(I.ytAdMetadataShapeHostLarge=O,I))},_.t("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.t(_.U,{cond:y,then:function(w){return _.t(_.sHW,{data:function(){return(O==null?0:O())?Object.assign({},w(),{size:"AD_AVATAR_SIZE_M"}):w()}})}}),_.t("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.t(_.jr,{text:D,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.t(_.U,{cond:F,then:function(w){return _.t(_.dm,{data:function(){return(O==null?0:O())?Object.assign({},w(),{style:"AD_BADGE_STYLE_STARK"}):w()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.t("h2",{class:"ytAdMetadataShapeHostDescription"},_.t(_.jr,{text:R,
linkInheritColor:!0,isHeadline:function(){return O==null?void 0:O()}})))},"Ic");var O$z=_.d(function(I){var y=I.data;var D=I.onShow;var F=I.expansive;I=_.Dy(function(){return y().interaction});
_.LR(function(){var O,w=(O=y().animatedRenderingConfig)==null?void 0:O.delayedSecondsToVisible;if(w){var v=setTimeout(D,w*1E3);_.tI(function(){clearTimeout(v)})}});
var R={};return _.t("reels-ad-card-buttoned-view-model",{class:_.XH(function(){var O;return((O=y().interaction)==null?0:O.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(R.ytwReelsAdCardButtonedViewModelHostExpansive=F,R)),
el:_.K4(I)},_.t(R1G,{avatar:function(){return _.u(y().avatar,k9M)},
headline:function(){return y().headline},
badge:function(){return _.u(y().adBadge,djc)},
description:function(){return y().description},
expansive:F}),_.t(_.aP,{data:function(){return y().ctaButton}},{adButtonViewModel:function(O){var w=O.data;
return _.t(_.pF,{data:function(){return(F==null?0:F())?Object.assign({},w(),{style:"AD_BUTTON_STYLE_FILLED"}):w()}})}}))},"Jc");var LUc=_.d(function(I){var y=I.data;I=I.expansive;var D=_.l("web_ad_metadata_clickable")?_.Dy(function(){return y().interaction},void 0,function(){return _.l("web_ad_metadata_clickable")}):void 0,F={};
F=_.bp("ytwReelsAdMetadataViewModelHost",(F.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.l("web_ad_metadata_clickable"),F));return _.t("reels-ad-metadata-view-model",{class:F,el:_.K4(D)},_.t(R1G,{avatar:function(){return _.u(y().avatar,k9M)},
headline:function(){return y().headline},
badge:function(){return _.u(y().adBadge,djc)},
description:function(){return y().description},
expansive:I}))},"Kc");var JB_=_.d(function(){return _.t("div",{class:"ytwVideoFilteringOverlayHost",style:_.p4({"background-color":function(){return _.Z7(_.kf("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Lc");var wKg={iconPosition:"icon-with-label",size:"L"},v8G=_.d(function(I){var y=I.data;var D=I.overlayDensity;var F=I.extractOverlay;var R=I.extractActionBar;I=_.DF("reels-player-overlay-layout-view-model");var O=_.jE(D,0),w=function(){var x;return(x=y().reelsAdCardButtonedEntityKey)!=null?x:""},v=function(){return w()+"/ad_button"},P=_.zj(gvq,w),K=function(){var x,q;
return(q=(x=P())==null?void 0:x.value)!=null?q:!1},r=_.dV(lrA),N=function(){var x,q=Object.assign({},wKg,(r()||!((x=R==null?void 0:R())!=null&&x))&&{style:"overlay-dark"});
return _.l("mweb_shorts_rhs_no_background_protection")?Object.assign({},q,{type:"text",style:"overlay"}):q};
D={};var h={};return _.t("reels-player-overlay-layout-view-model",{class:_.XH("ytwReelsPlayerOverlayLayoutViewModelHost",(D.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!y().extension},D.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},D.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return O()===1&&!(F==null?0:F())},D.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var x;
return(x=F==null?void 0:F())!=null?x:!1},D.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var x;
return(x=R==null?void 0:R())!=null?x:!1},D)),
"overlay-density":function(){return String(O())},
el:I},_.t("div",{class:_.XH("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(h.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},h))},_.t("div",{"aria-hidden":function(){return K()},
class:_.XH("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.p4({"transition-duration":function(){return GwW(y())}})},_.t(_.aP,{data:function(){return y().adMetadata}},{reelsAdMetadataViewModel:function(x){return _.t(LUc,{data:x.data,
expansive:function(){return O()===1}})}}),_.t(_.U,{cond:function(){return y().extension},
then:function(x){return _.t("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.t(_.aP,{data:x},{adButtonViewModel:function(q){return _.t(_.pF,{data:q.data,animationEntityKey:v,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(q){return _.t(yBg,{data:q.data,animationEntityKey:v,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return O()===1}})}}))}})),_.t("div",{"aria-hidden":function(){return!K()},
class:_.XH("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.p4({"transition-duration":function(){return GwW(y())}})},_.t(_.aP,{data:function(){return y().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(x){return _.t(O$z,{data:x.data,
onShow:function(){_.ry(_.WS("booleanEntity",w(),{key:w(),value:!0}))},
expansive:function(){var q;return(q=F==null?void 0:F())!=null?q:!1}})}}))),_.t("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.t(_.aP,{data:function(){return y().actions}},{reelActionBarViewModel:function(x){return _.t(_.FUg,{data:x.data,
buttonShapeOverrideables:N})}}),_.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:function(x){return _.t(_.My,{data:x.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},N())}})}}),_.t(_.aP,{data:function(){return y().pivotButton}},{pivotButtonViewModel:function(x){return _.t(_.DxM,{data:x.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.t(_.U,{cond:function(){return _.l("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.t(_.pgo,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.t(JB_,null)})}}))},"Mc");_.NK(v8G,"reels-player-overlay-layout-view-model",{props:{data:_.om,overlayDensity:_.om,extractOverlay:_.om,extractActionBar:_.om}});var bQ=function(){var I=_.k.apply(this,arguments)||this;I.noBottomMargin=!1;I.overlayDensity=0;I.extractOverlay=!1;I.extractActionBar=!1;return I};
_.E(bQ,_.k);_.L=bQ.prototype;
_.L.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.l("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.L.ready=function(){var I=this;aAq(function(){I.isAttached&&UA(I.JSC$15952_storedAdSlotMetadata,I.JSC$15952_storedAdLayoutMetadata,I.adSlotMetadata,I.adLayoutMetadata)&&Aa(Bj(),I.JSC$15952_storedAdSlotMetadata,I.JSC$15952_storedAdLayoutMetadata)})};
_.L.attached=function(){UA(this.JSC$15952_storedAdSlotMetadata,this.JSC$15952_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&byG(Bj(),this.JSC$15952_storedAdSlotMetadata,this.JSC$15952_storedAdLayoutMetadata)};
_.L.detached=function(){UA(this.JSC$15952_storedAdSlotMetadata,this.JSC$15952_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Aa(Bj(),this.JSC$15952_storedAdSlotMetadata,this.JSC$15952_storedAdLayoutMetadata)};
_.L.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.L.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15952_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15952_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15952_storedAdLayoutMetadata!==void 0&&this.JSC$15952_storedAdSlotMetadata!==void 0&&Aa(Bj(),this.JSC$15952_storedAdSlotMetadata,this.JSC$15952_storedAdLayoutMetadata),byG(Bj(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15952_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15952_storedAdSlotMetadata=this.adSlotMetadata)};
_.mD.Object.defineProperties(bQ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.adLayoutMetadata}}});
bQ.prototype.onAdMetadataChanged=bQ.prototype.onAdMetadataChanged;bQ.prototype.onTypographyBumpChanged=bQ.prototype.onTypographyBumpChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bQ.prototype,"rendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bQ.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"noBottomMargin",void 0);_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"overlayDensity",void 0);_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"extractOverlay",void 0);_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"extractActionBar",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],bQ.prototype,"typographyBump",void 0);
_.W([_.Y("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],bQ.prototype,"adLayoutMetadata",null);_.W([_.M(),_.A("design:type",Object)],bQ.prototype,"adSlotMetadata",void 0);_.W([_.a0("ytd-video-display-full-buttoned-and-button-group-renderer"),_.A("design:type",HTMLElement)],bQ.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.W([_.ke("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bQ.prototype,"onTypographyBumpChanged",null);_.W([_.ke("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bQ.prototype,"onAdMetadataChanged",null);_.W([_.yd({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],bQ);
_.a(bQ,"ytd-in-feed-ad-layout-renderer",function(){if(T0f!==void 0)return T0f;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return T0f=I},
{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var SwW;var tXf;_.NK(_.dm,"ad-badge-view-model",{props:{data:_.om,hasDot:_.om,customCommandResolver:_.rV,adRenderingContextType:_.rV,usedInMasthead:_.rV}});_.NK(_.pF,"ad-button-view-model",{props:{data:_.om,customCommandResolver:_.rV,className:_.rV,delayedClassName:_.rV,animationEntityKey:_.rV,isCompactWidth:_.rV,isContentWidth:_.rV}});var Hj=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return I};
_.E(Hj,_.k);_.L=Hj.prototype;_.L.computeHasLiveDescription=function(I){return!(I==null||!I.liveDescription)};
_.L.computeHasByline=function(I){return!(I==null||!I.byline)};
_.L.computeUsesAdButtonViewModel=function(I){return!!_.u(I==null?void 0:I.cta,amc)};
_.L.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.L.onYtToggleButton=function(I){var y,D=(y=this.data)==null?void 0:y.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.WS("upcomingEventReminderStateEntity",D,{key:D,state:I.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.L.attached=function(){this.updateChannelBanner()};
_.L.dataChanged=function(){this.updateChannelBanner()};
_.L.videoReminderStateChanged=function(){var I;this.videoReminderState&&_.u((I=this.data)==null?void 0:I.cta,_.tz)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.L.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var I=_.hf(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);I&&(I.startsWith("//")&&(I="https:"+I),this.hostElement.classList.add("channel-banner"),_.pg(this.hostElement,{"--ytvmh-channel-banner":"url("+I+")"}))}else _.l("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.L.onPlayerReady=function(){this.onIronResize()};
_.L.maybeFlushDebouncer=function(){_.l("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(I){var y;I=(y=I.getElementsByTagName("yt-attributed-string"))==null?void 0:y[0];lHt(I==null?void 0:I.polymerController)})};
_.L.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var I=_.XB(this.hostElement).querySelector("#live-description"),y;I&&((y=this.data)==null?0:y.shortLiveDescription)&&I.clientWidth<I.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Hj.prototype.onIronResize=Hj.prototype.onIronResize;Hj.prototype.videoReminderStateChanged=Hj.prototype.videoReminderStateChanged;Hj.prototype.dataChanged=Hj.prototype.dataChanged;Hj.prototype.onYtToggleButton=Hj.prototype.onYtToggleButton;_.W([_.Q(_.sD),_.A("design:type",Object)],Hj.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Hj.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Hj.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Hj.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.videoReminderEntityKey"],selector:aet}),_.A("design:type",Object)],Hj.prototype,"videoReminderState",void 0);
_.W([_.M({reflectToAttribute:!0,value:_.l("web_modern_buttons")}),_.A("design:type",Boolean)],Hj.prototype,"rounded",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.A("design:type",Boolean)],Hj.prototype,"hasLiveDescription",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.A("design:type",Boolean)],Hj.prototype,"hasByline",void 0);
_.W([_.M({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.A("design:type",String)],Hj.prototype,"adRenderingContextType",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],Hj.prototype,"isMasthead",void 0);_.W([_.M({computed:"computeUsesAdButtonViewModel(data)"}),_.A("design:type",Boolean)],Hj.prototype,"usesAdButtonViewModel",void 0);
_.W([_.M({reflectToAttribute:!0,value:_.l("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.A("design:type",Boolean)],Hj.prototype,"resizableAdBannerSafariFix",void 0);_.W([_.cp("yt-formatted-string"),_.A("design:type",Array)],Hj.prototype,"formattedStrings",void 0);_.W([_.a0("#cta-button"),_.A("design:type",HTMLElement)],Hj.prototype,"ctaButton",void 0);
_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hj.prototype,"onYtToggleButton",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hj.prototype,"dataChanged",null);_.W([_.ke("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hj.prototype,"videoReminderStateChanged",null);
_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hj.prototype,"onIronResize",null);_.W([_.yd({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Hj);
_.a(Hj,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(tXf!==void 0)return tXf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return tXf=I},{mode:1});var Pcc;var ew=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};I.isLocked=!1;return I};
_.E(ew,_.k);_.L=ew.prototype;_.L.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.L.onExpandedChanged=function(){this.expanded&&_.qr(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.L.onMouseOver=function(){this.maybeExpand()};
_.L.onTap=function(){this.maybeExpand()};
_.L.onExpandableTileExpanding=function(I){I!==this&&(this.expanded=!1)};
_.L.onExpandableTileLockAndCollapse=function(I){this.isLocked=!0;I!==this&&(this.expanded=!1)};
_.L.onExpandableTileUnlock=function(){this.isLocked=!1};
ew.prototype.onTap=ew.prototype.onTap;ew.prototype.onMouseOver=ew.prototype.onMouseOver;ew.prototype.onExpandedChanged=ew.prototype.onExpandedChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ew.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ew.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ew.prototype,"expanded",void 0);_.W([_.Bp("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ew.prototype,"onExpandedChanged",null);_.W([_.z4("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ew.prototype,"onMouseOver",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ew.prototype,"onTap",null);
_.W([_.yd({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],ew);
_.a(ew,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Pcc!==void 0)return Pcc;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Pcc=I},{mode:1});var KUe;var T3=function(){var I=_.k.apply(this,arguments)||this;I.buttonOverrides={style:"overlay"};I.useYtdPlayer=_.l("use_ytd_player_for_desktop_masthead");I.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};I.playbackFinished=!1;I.JSC$15966_playerManager=null;I.JSC$15966_mastheadCounter=new YlO;return I};
_.E(T3,_.k);_.L=T3.prototype;_.L.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"}}}};
_.L.created=function(){this.JSC$15966_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15966_playerManager=new eM)};
_.L.ready=function(){var I=this;this.JSC$15966_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var y=_.XB(this.hostElement).querySelector("#player");this.useYtdPlayer?y.style.display="none":(this.ytdPlayer.style.display="none",IcM(this.JSC$15966_playerManager,y,function(){I.onPlaybackEnded()}),_.XB(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var D;
((D=I.data)==null?0:D.navigationEndpoint)&&_.lj(I.hostElement,"yt-navigate",{endpoint:I.data.navigationEndpoint})}))};
_.L.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15966_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.L.attached=function(){var I=this;_.wy(function(){I.maybePlayVideo()})};
_.L.maybePlayVideo=function(){var I=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$15966_playerManager.playVideo(),this.getPlayerPromise().then(function(){I.JSC$15966_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.L.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15966_playerManager.stopVideo()};
_.L.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var I,y={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(y);this.setupYtdPlayer()}else DdM(this.JSC$15966_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(yo_(this.JSC$15966_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.L.getPlayerPromise=function(){return this.JSC$15966_playerManager.getPlayerPromise()};
_.L.onYtToggleButton=function(I){this.useYtdPlayer?this.toggleMute(I.detail.toggled):I.detail.toggled?this.JSC$15966_playerManager.mute():this.JSC$15966_playerManager.unMute()};
_.L.onYtNavigate=function(I){var y=RyL(I.detail.endpoint),D=O1L(this.data.clickthroughReportingData);y&&D&&(I.detail.endpoint.watchEndpoint?I.detail.tempData=D:_.re(y,D,30))};
_.L.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.L.onExpandedChanged=function(){this.expanded?(_.qr(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.L.onMouseOver=function(){this.maybeExpand()};
_.L.onTap=function(){this.maybeExpand()};
_.L.onExpandableTileExpanding=function(I){I!==this&&(this.stopVideo(),this.expanded=!1)};
_.L.onExpandableTileLockAndCollapse=function(I){I!==this&&(this.isLocked=!0,this.expanded=!1)};
_.L.onExpandableTileUnlock=function(){this.isLocked=!1};
_.L.lockAndCollapseExpandableTiles=function(){_.uj(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.L.unlockExpandableTiles=function(){_.uj(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.L.setupYtdPlayer=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.ytdPlayer.getPlayerPromise(),2);y=D.yieldResult;y.addEventListener("onStateChange",function(F){I.onPlayerStateChange(F)});
y.addEventListener("onCueRangeExit",function(F){I.onCueRangeExit(F)});
_.Cj(D)})};
_.L.onPlayerStateChange=function(I){if(I===1&&(I=this.ytdPlayer.getPlayer())){var y=I.getCurrentTime(),D,F,R=y+((F=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?F:0)/1E3;I.addCueRange("playback",y,R);this.JSC$15966_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.L.onCueRangeExit=function(I){I==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.L.toggleMute=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.ytdPlayer.getPlayerPromise(),2);D=F.yieldResult;I?D.mute():D.unMute();_.Cj(F)})};
T3.prototype.onTap=T3.prototype.onTap;T3.prototype.onMouseOver=T3.prototype.onMouseOver;T3.prototype.onExpandedChanged=T3.prototype.onExpandedChanged;T3.prototype.onYtNavigate=T3.prototype.onYtNavigate;T3.prototype.onYtToggleButton=T3.prototype.onYtToggleButton;T3.prototype.dataChanged=T3.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],T3.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],T3.prototype,"expanded",void 0);_.W([_.M(),_.A("design:type",Object)],T3.prototype,"buttonOverrides",void 0);
_.W([_.M(),_.A("design:type",Object)],T3.prototype,"useYtdPlayer",void 0);_.W([_.a0("#ytd-player"),_.A("design:type",Object)],T3.prototype,"ytdPlayer",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T3.prototype,"dataChanged",null);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],T3.prototype,"onYtToggleButton",null);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],T3.prototype,"onYtNavigate",null);_.W([_.Bp("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T3.prototype,"onExpandedChanged",null);_.W([_.z4("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T3.prototype,"onMouseOver",null);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T3.prototype,"onTap",null);_.W([_.yd({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],T3);
_.a(T3,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(KUe!==void 0)return KUe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return KUe=I},{mode:1});var Uxg;var sK=function(){return _.k.apply(this,arguments)||this};
_.E(sK,_.k);sK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
sK.prototype.onShow=function(){var I=_.XB(this.hostElement).querySelector("#live-description"),y;I&&((y=this.data)==null?0:y.shortLiveDescription)&&I.clientWidth<I.scrollWidth&&this.hostElement.classList.add("short-live-description")};
sK.prototype.onYtToggleButton=function(I){var y,D=(y=this.data)==null?void 0:y.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.WS("upcomingEventReminderStateEntity",D,{key:D,state:I.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
sK.prototype.videoReminderStateChanged=function(){var I;this.videoReminderState&&_.u((I=this.data)==null?void 0:I.cta,_.tz)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
sK.prototype.videoReminderStateChanged=sK.prototype.videoReminderStateChanged;sK.prototype.onYtToggleButton=sK.prototype.onYtToggleButton;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],sK.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sK.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.videoReminderEntityKey"],selector:aet}),_.A("design:type",Object)],sK.prototype,"videoReminderState",void 0);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sK.prototype,"onYtToggleButton",null);_.W([_.ke("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sK.prototype,"videoReminderStateChanged",null);
_.W([_.yd({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],sK);
_.a(sK,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Uxg!==void 0)return Uxg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Uxg=I},{mode:_.Qd("kevlar_poly_si_batch_j065")?1:2});var rBc;var VZ=function(){var I=_.k.apply(this,arguments)||this;I.useYtdPlayer=_.l("use_ytd_player_for_desktop_masthead");I.buttonOverrides={style:"overlay"};I.JSC$15974_playerManager=null;I.JSC$15974_mastheadCounter=new YlO;I.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return I};
_.E(VZ,_.k);_.L=VZ.prototype;_.L.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"}}}};
_.L.created=function(){this.JSC$15974_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15974_playerManager=new eM)};
_.L.ready=function(){var I=this;this.JSC$15974_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var y;(y=this.embeddedPlayer)==null||y.remove()}else{var D;(D=this.ytdPlayer)==null||D.remove();IcM(this.JSC$15974_playerManager,this.embeddedPlayer,function(){I.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){I.data&&I.data.navigationEndpoint&&_.lj(I.hostElement,"yt-navigate",{endpoint:I.data.navigationEndpoint})})}};
_.L.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15974_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.L.dataChanged=function(){var I=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var y=!this.data.disableAutoPlayback,D,F={autoplay:y,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(y?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(F);this.setupYtdPlayer()}else DdM(this.JSC$15974_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(yo_(this.JSC$15974_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15974_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.uj(I.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");I.JSC$15974_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.L.getPlayerPromise=function(){return this.JSC$15974_playerManager.getPlayerPromise()};
_.L.onYtToggleButton=function(I){this.useYtdPlayer?this.toggleMute(I.detail.toggled):I.detail.toggled?this.JSC$15974_playerManager.mute():this.JSC$15974_playerManager.unMute()};
_.L.onYtNavigate=function(I){var y=RyL(I.detail.endpoint),D=O1L(this.data.clickthroughReportingData);y&&D&&(I.detail.endpoint.watchEndpoint?I.detail.tempData=D:_.re(y,D,30))};
_.L.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15974_playerManager.stopVideo()};
_.L.setupYtdPlayer=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.ytdPlayer.getPlayerPromise(),2);y=D.yieldResult;y.addEventListener("onStateChange",function(F){I.onPlayerStateChange(F)});
y.addEventListener("onCueRangeExit",function(F){I.onCueRangeExit(F)});
_.Cj(D)})};
_.L.onPlayerStateChange=function(I){if(I===1&&(I=this.ytdPlayer.getPlayer())){var y=I.getCurrentTime(),D,F,R=y+((F=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?F:0)/1E3;I.addCueRange("playback",y,R);_.uj(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15974_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.L.onCueRangeExit=function(I){I==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.L.toggleMute=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.ytdPlayer.getPlayerPromise(),2);D=F.yieldResult;I?D.mute():D.unMute();_.Cj(F)})};
_.mD.Object.defineProperties(VZ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I,y;if(!((I=this.data)==null?0:(y=I.accessibilityData)==null?0:y.label))return"Ad primary link";var D,F;return _.zC("AD_TITLE",{title:(D=this.data)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label})}}});
VZ.prototype.onYtMastheadHidden=VZ.prototype.onYtMastheadHidden;VZ.prototype.onYtNavigate=VZ.prototype.onYtNavigate;VZ.prototype.onYtToggleButton=VZ.prototype.onYtToggleButton;VZ.prototype.dataChanged=VZ.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],VZ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VZ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],VZ.prototype,"useYtdPlayer",void 0);_.W([_.a0("ytd-toggle-button-renderer"),_.A("design:type",Object)],VZ.prototype,"muteButton",void 0);_.W([_.M(),_.A("design:type",Object)],VZ.prototype,"buttonOverrides",void 0);
_.W([_.Y("data.accessibilityData.label"),_.A("design:type",String),_.A("design:paramtypes",[])],VZ.prototype,"titleAriaLabel",null);_.W([_.a0("#replay-button"),_.A("design:type",Object)],VZ.prototype,"replayButton",void 0);_.W([_.a0("#player-container"),_.A("design:type",Object)],VZ.prototype,"playerContainer",void 0);_.W([_.a0("#player"),_.A("design:type",Object)],VZ.prototype,"embeddedPlayer",void 0);_.W([_.a0("#ytd-player"),_.A("design:type",Object)],VZ.prototype,"ytdPlayer",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VZ.prototype,"dataChanged",null);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],VZ.prototype,"onYtToggleButton",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],VZ.prototype,"onYtNavigate",null);
_.W([_.z4("yt-masthead-hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VZ.prototype,"onYtMastheadHidden",null);_.W([_.yd({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],VZ);
_.a(VZ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(rBc!==void 0)return rBc;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rBc=I},{mode:2});var jAM;var ZV=function(){var I=_.k.apply(this,arguments)||this;I.collapsed=!1;I.impressionResolver=_.vS();I.JSC$15978_activeViewMeasurementDataResolver=_.vS();I.actionMap={"yt-mute-ad-action":"handleMuteAd"};return I};
_.E(ZV,_.k);_.L=ZV.prototype;_.L.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"}}}};
_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.ready=function(){var I=this;_.XB(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){I.expandAd()});
this.hostElement.addEventListener("yt-action",function(y){if(y.detail.actionName==="yt-service-request"){var D=y.detail.args[1];D.videoMastheadAdMuteCommand&&(I.collapseAd(D.videoMastheadAdMuteCommand.encryptedMastheadId),y.stopPropagation())}})};
_.L.attached=function(){var I=this;_.wy(function(){I.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(y){if(!I.collapsed){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,hO(D.baseUrl,D.attributionSrcMode);I.data.impressionCommand=void 0}});
this.JSC$15978_activeViewMeasurementDataResolver.promise.then(function(y){MG(I.activeView,y)});
_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.dataChanged=function(){var I;((I=this.data.impressionCommand)==null?0:I.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var y;((y=this.data)==null?0:y.activeView)&&this.JSC$15978_activeViewMeasurementDataResolver.resolve(this.data.activeView);(I=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(I.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.L.computeWidescreen=function(I){var y;return!!(I&&((y=_.u(I,n_g))==null?0:y.isWidescreen))};
_.L.computeExpandable=function(I){return!!(I&&I.length>0)};
_.L.onIronResize=function(){if(this.expandable){var I=_.XB(this.hostElement).querySelector("#expandable-tile-container :first-child");I&&!I.expanded&&(I.expanded=!0)}};
_.L.handleMuteAd=function(){this.collapseAd(null)};
_.L.restoreCollapsedState=function(I){this.collapsed=_.a1().get("HIDDEN_MASTHEAD_ID")===I};
_.L.collapseAd=function(I){if(I){var y=_.a1();y.set("HIDDEN_MASTHEAD_ID",I);y.save()}(I=_.XB(this.hostElement).querySelector("#video"))&&_.lj(I,"yt-masthead-hidden");this.collapsed=!0};
_.L.expandAd=function(){var I=_.a1();I.set("HIDDEN_MASTHEAD_ID",!1);I.save();location.reload()};
_.L.detached=function(){_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
ZV.prototype.onIronResize=ZV.prototype.onIronResize;ZV.prototype.dataChanged=ZV.prototype.dataChanged;_.W([_.Q(_.sD),_.A("design:type",Object)],ZV.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.tl),_.A("design:type",Object)],ZV.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ZV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ZV.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.A("design:type",Boolean)],ZV.prototype,"widescreen",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.A("design:type",Boolean)],ZV.prototype,"expandable",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ZV.prototype,"collapsed",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZV.prototype,"dataChanged",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZV.prototype,"onIronResize",null);_.W([_.yd({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ZV);
_.a(ZV,"ytd-video-masthead-ad-v3-renderer",function(){if(jAM!==void 0)return jAM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return jAM=I},{mode:2});var FJ=function(){return _.k.apply(this,arguments)||this};
_.E(FJ,_.k);_.L=FJ.prototype;_.L.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.L.ready=function(){var I=this;aAq(function(){I.isAttached&&UA(I.JSC$15983_storedAdSlotMetadata,I.JSC$15983_storedAdLayoutMetadata,I.adSlotMetadata,I.adLayoutMetadata)&&Aa(Bj(),I.JSC$15983_storedAdSlotMetadata,I.JSC$15983_storedAdLayoutMetadata)})};
_.L.attached=function(){UA(this.JSC$15983_storedAdSlotMetadata,this.JSC$15983_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&byG(Bj(),this.JSC$15983_storedAdSlotMetadata,this.JSC$15983_storedAdLayoutMetadata)};
_.L.detached=function(){UA(this.JSC$15983_storedAdSlotMetadata,this.JSC$15983_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Aa(Bj(),this.JSC$15983_storedAdSlotMetadata,this.JSC$15983_storedAdLayoutMetadata)};
_.L.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15983_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15983_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15983_storedAdLayoutMetadata!==void 0&&this.JSC$15983_storedAdSlotMetadata!==void 0&&Aa(Bj(),this.JSC$15983_storedAdSlotMetadata,this.JSC$15983_storedAdLayoutMetadata),byG(Bj(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15983_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15983_storedAdSlotMetadata=this.adSlotMetadata)};
_.mD.Object.defineProperties(FJ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.adLayoutMetadata}}});
FJ.prototype.onAdMetadataChanged=FJ.prototype.onAdMetadataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FJ.prototype,"data",void 0);_.W([_.Y("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],FJ.prototype,"adLayoutMetadata",null);
_.W([_.M(),_.A("design:type",Object)],FJ.prototype,"adSlotMetadata",void 0);_.W([_.ke("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FJ.prototype,"onAdMetadataChanged",null);_.W([_.yd({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],FJ);
_.a(FJ,"ytd-page-top-ad-layout-renderer",function(){if(SwW!==void 0)return SwW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return SwW=
I},{mode:_.Qd("kevlar_poly_si_batch_j070")?1:2});var o8u;var Rl=function(){var I=_.k.apply(this,arguments)||this;I.noBottomMargin=!1;I.overlayDensity=0;I.typographyBump=!1;I.extractOverlay=!1;I.extractActionBar=!1;return I};
_.E(Rl,_.k);_.L=Rl.prototype;
_.L.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.L.ready=function(){var I=this;aAq(function(){I.isAttached&&I.adSlotMetadata&&$A_(Bj(),I.adSlotMetadata)})};
_.L.attached=function(){if(this.adSlotMetadata){var I;if(this.adSlotMetadata===((I=this.data)==null?void 0:I.adSlotMetadata))Ang(Bj(),this.adSlotMetadata);else{var y;_.tq(Error("Ph`"+this.adSlotMetadata+"`"+((y=this.data)==null?void 0:y.adSlotMetadata)))}}};
_.L.detached=function(){this.adSlotMetadata&&$A_(Bj(),this.adSlotMetadata)};
_.L.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.L.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&$A_(Bj(),this.adSlotMetadata),Ang(Bj(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.mD.Object.defineProperties(Rl.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.mj_),F;return(I=(F=_.u(D==null?void 0:D.renderingContent,pR_))==null?void 0:F.layout)?I.toLowerCase().replace(/_/g,"-"):""}}});
Rl.prototype.onAdSlotMetadataChanged=Rl.prototype.onAdSlotMetadataChanged;Rl.prototype.onTypographyBumpChanged=Rl.prototype.onTypographyBumpChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Rl.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Rl.prototype,"rendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"noBottomMargin",void 0);_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"overlayDensity",void 0);_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"typographyBump",void 0);_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"extractOverlay",void 0);_.W([_.M(),_.A("design:type",Object)],Rl.prototype,"extractActionBar",void 0);
_.W([_.a0("ytd-in-feed-ad-layout-renderer"),_.A("design:type",HTMLElement)],Rl.prototype,"inFeedAdLayoutRenderer",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Rl.prototype,"layout",null);_.W([_.ke("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rl.prototype,"onTypographyBumpChanged",null);
_.W([_.ke("data.adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rl.prototype,"onAdSlotMetadataChanged",null);_.W([_.yd({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Rl);
_.a(Rl,"ytd-ad-slot-renderer",function(){if(o8u!==void 0)return o8u;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return o8u=I},{mode:_.Qd("kevlar_poly_si_batch_j077")?
1:2});var NL_;var Od=function(){return _.k.apply(this,arguments)||this};
_.E(Od,_.k);_.L=Od.prototype;_.L.created=function(){this.activeView=new mf(this.hostElement)};
_.L.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"}}}};
_.L.maybeComputeHref=function(){return null};
_.L.onTap=function(){};
_.L.onThumbnailContainerClick=function(I){this.onClick(I)};
_.L.onClick=function(I){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;D&&_.u(D,_.t9)&&(this.ytSparklesClickLocationBehavior.handleClick(D,I,!1),I.stopPropagation())};
_.L.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var I=_.J(this.data.impressionUrls),y=I.next();!y.done;y=I.next())y=y.value,HQq(y,Tyq(y));this.data.activeView&&MG(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Od.JSC$15991_DEFAULT_CLICK_LOCATION_BEHAVIOR,Od.JSC$15991_CLICK_LOCATION_ID_MAP);this.thumbnail&&(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"))}};
_.L.attached=function(){var I=this;_.l("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z$(I.activeView)})};
_.L.detached=function(){_.l("stop_av_measurement_on_detach")&&z$(this.activeView)};
_.mD.Object.defineProperties(Od.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Od.prototype.dataChanged=Od.prototype.dataChanged;Od.prototype.onTap=Od.prototype.onTap;Od.JSC$15991_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Od.JSC$15991_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"}];_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Od.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Od.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],Od.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],Od.prototype,"isGridViewEnabled",void 0);_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Od.prototype,"watchFeedBigThumbs",null);_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],Od.prototype,"thumbnailWidth",null);_.W([_.M(),_.A("design:type",Object)],Od.prototype,"data",void 0);
_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],Od.prototype,"thumbnail",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Od.prototype,"onTap",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Od.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Od);
_.a(Od,"ytd-compact-promoted-video-renderer",function(){if(NL_!==void 0)return NL_;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return NL_=I},{mode:1});var h1u;_.bO("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var L1=function(){return _.k.apply(this,arguments)||this};
_.E(L1,_.k);L1.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],L1.prototype,"data",void 0);_.W([_.yd({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],L1);
_.a(L1,"ytd-search-pyv-renderer",function(){if(h1u!==void 0)return h1u;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return h1u=I},{mode:1});var xxg;_.bO("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Ji=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.JSC$15999_handleOpenPostCommentDialogActionAfterStamp=!1;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.E(Ji,_.k);_.L=Ji.prototype;
_.L.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}}};
_.L.onStampFinished=function(){this.JSC$15999_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.L.handleSignalActionOpenPostCommentDialogAction=function(){var I=_.XB(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");I?I.openDialog():this.JSC$15999_handleOpenPostCommentDialogActionAfterStamp=!0};
_.L.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.L.computeHideBorder=function(){return this.isInEngagementPanel};
_.L.computeIsCompact=function(){return this.isInEngagementPanel};
_.L.computeUsesCompactLockup=function(I){return I==="BACKSTAGE_SURFACE_TYPE_HOME"||I==="BACKSTAGE_SURFACE_TYPE_SEARCH"||I==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||I==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||I==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||I==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.L.computeUsesFullLockup=function(){var I,y=(I=this.data)==null?void 0:I.post,D;I=(D=_.u(y,bHM))==null?void 0:D.surface;var F;D=(F=_.u(y,TXn))==null?void 0:F.originalPost;var R;if(F=I||((R=_.u(D,bHM))==null?void 0:R.surface))return!this.computeUsesCompactLockup(F)&&this.useUpdatedRepostUi;var O;return((O=_.u(y,TXn))==null?void 0:O.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.mD.Object.defineProperties(Ji.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var I,y;return((y=_.u((I=this.data)==null?void 0:I.post,bHM))==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.useUpdatedRepostUi}}});
Ji.prototype.onYtCommentModerationPanelEmpty=Ji.prototype.onYtCommentModerationPanelEmpty;Ji.prototype.onStampFinished=Ji.prototype.onStampFinished;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Ji.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ji.prototype,"roundedContainer",void 0);_.W([_.M({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ji.prototype,"hideBorder",void 0);_.W([_.M({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ji.prototype,"isCompact",void 0);
_.W([_.M({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ji.prototype,"usesFullLockup",void 0);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ji.prototype,"onStampFinished",null);
_.W([_.z4("ytd-comment-moderation-panel-empty"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ji.prototype,"onYtCommentModerationPanelEmpty",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ji.prototype,"isInEngagementPanel",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ji.prototype,"useUpdatedRepostUi",null);
_.W([_.yd({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Ji);
_.a(Ji,"ytd-backstage-post-thread-renderer",function(){if(xxg!==void 0)return xxg;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xxg=I},{mode:1});var ls_;var wl=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(wl,_.k);wl.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
wl.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var I=this.data.thumbnail.thumbnails;this.isDarkTheme&&(I=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(I=_.hf(I,24,void 0,"height"))?I:void 0}};
wl.prototype.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
wl.prototype.computeHasText=function(){var I;return!((I=this.data)==null||!I.text)};
_.mD.Object.defineProperties(wl.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.VA(this.bannerImageUrl))+'");'}}});
wl.prototype.computeHasText=wl.prototype.computeHasText;wl.prototype.computeBannerImageUrl=wl.prototype.computeBannerImageUrl;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],wl.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],wl.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],wl.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],wl.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",String)],wl.prototype,"bannerImageUrl",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.A("design:type",Boolean)],wl.prototype,"hasText",void 0);_.W([_.ke("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wl.prototype,"computeBannerImageUrl",null);
_.W([_.ke("data.text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wl.prototype,"computeHasText",null);_.W([_.Y("bannerImageUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],wl.prototype,"bannerStyle",null);_.W([_.yd({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],wl);
_.a(wl,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ls_!==void 0)return ls_;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ls_=I},{mode:1});var u__;var vo=function(){return _.k.apply(this,arguments)||this};
_.E(vo,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vo.prototype,"data",void 0);_.W([_.yd({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],vo);
_.a(vo,"ytd-backstage-zero-state-renderer",function(){if(u__!==void 0)return u__;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return u__=I},{mode:1});var qw_;var S4=function(){return _.k.apply(this,arguments)||this};
_.E(S4,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],S4.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],S4.prototype,"icon",void 0);_.W([_.yd({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],S4);
_.a(S4,"ytd-post-filter-zero-state-renderer",function(){if(qw_!==void 0)return qw_;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return qw_=I},{mode:1});var E8a;var GK_={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},ti=function(){return _.k.apply(this,arguments)||this};
_.E(ti,_.k);ti.prototype.configureRendererStamper=function(){return GK_};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ti.prototype,"rendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ti.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],ti.prototype,"icon",void 0);_.W([_.yd({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],ti);
_.a(ti,"ytd-post-scheduling-zero-state-renderer",function(){if(E8a!==void 0)return E8a;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return E8a=I},{mode:1});var XKP;var Po=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return I};
_.E(Po,_.k);Po.prototype.onTabsActivate=function(I){this.data&&this.data.tabs&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[I.detail.selected].navigationEndpoint})};
Po.prototype.shouldShowTotalCount=function(I){return I&&I.totalCount!==void 0};
Po.prototype.handleUpdatePostsTotalCountAction=function(I){var y=this.get(["data.tabs",1,"totalCount"]),D=this.get("updatePostsTotalCountAction.updateType",I);I=this.get("updatePostsTotalCountAction.number",I);y!==void 0&&D!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&I&&(D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(y)+I):D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(y)-I))};
_.mD.Object.defineProperties(Po.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var I=0,y=this.data.tabs.length;I<y;I++)if(this.data.tabs[I].selected)return I;return 0}}});
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Po.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Po.prototype,"rendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Po.prototype,"data",void 0);_.W([_.Y("data.tabs"),_.A("design:type",Number),_.A("design:paramtypes",[])],Po.prototype,"selected",null);_.W([_.yd({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Po);
_.a(Po,"ytd-post-stream-filter-renderer",function(){if(XKP!==void 0)return XKP;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return XKP=I},{mode:1});var QAf;var K1=function(){return _.k.apply(this,arguments)||this};
_.E(K1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],K1.prototype,"kevlarBehaviors",void 0);_.W([_.M(),_.A("design:type",Object)],K1.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],K1);
_.a(K1,"ytd-channel-age-gate-renderer",function(){if(QAf!==void 0)return QAf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return QAf=I},{mode:1});var Ywz;_.bO("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Ud=function(){var I=_.k.apply(this,arguments)||this;I.data=null;return I};
_.E(Ud,_.k);Ud.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mD.Object.defineProperties(Ud.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?0:(y=I.title)==null?0:(D=y.runs)==null?0:D.length)?147:160}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ud.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ud.prototype,"imageSizePx",null);_.W([_.yd({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Ud);
_.a(Ud,"ytd-channel-owner-empty-state-renderer",function(){if(Ywz!==void 0)return Ywz;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Ywz=I},{mode:1});var fsO;var n8P;var rl=function(){var I=_.k.apply(this,arguments)||this;I.boundSubmitSearch=function(){I.submitSearch()};
I.boundClearSearch=function(){I.clearSearch()};
return I};
_.E(rl,_.k);_.L=rl.prototype;_.L.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]]"}}}}}};
_.L.toggleClearButton=function(){this.hideClearButton=oPg||!this.input.value};
_.L.submitOnEnterKeyUp=function(I){I.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.L.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.L.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.L.submit=function(){_.lj(this.hostElement,"search-query-changed",this.input.value)};
rl.prototype.toggleClearButton=rl.prototype.toggleClearButton;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],rl.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rl.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],rl.prototype,"hideClearButton",void 0);_.W([_.M(),_.A("design:type",Object)],rl.prototype,"boundSubmitSearch",void 0);_.W([_.M(),_.A("design:type",Object)],rl.prototype,"boundClearSearch",void 0);_.W([_.a0("#input"),_.A("design:type",Object)],rl.prototype,"input",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rl.prototype,"toggleClearButton",null);
_.W([_.yd({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],rl);
_.a(rl,"ytd-channel-switcher-search-box-renderer",function(){if(n8P!==void 0)return n8P;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return n8P=I},{mode:1});var pKc;var j4=function(){var I=_.k.apply(this,arguments)||this;I.boundSubmit=function(){I.submit()};
return I};
_.E(j4,_.k);_.L=j4.prototype;_.L.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"}}}}};
_.L.ready=function(){var I=this;this.form.addEventListener("submit",function(y){return I.onSubmit(y)})};
_.L.onSubmit=function(I){I.preventDefault();return!1};
_.L.toggleClearButton=function(){this.hideClearButton=oPg||!this.input.value};
_.L.submitOnEnterKeyUp=function(I){I.keyCode===13&&this.submit()};
_.L.submit=function(){var I=this.data.endpoint,y=(0,_.e$.unsafeClone)(I);_.u(y,_.kc)?_.u(y,_.kc).query=this.input.value:_.u(y,_.dY)&&(_.u(y,_.dY).query=this.input.value);var D=_.u(y.commandMetadata,_.nE);(D==null?0:D.url)?(D.url=_.rI(D.url,"query",this.input.value),_.lj(this.hostElement,"yt-navigate",{endpoint:y})):_.u(y,E_f)?(_.u(y,E_f).channelSwitcherQuery=this.input.value,_.nR().resolve(_.MC).resolveCommand(y,{form:{element:this.hostElement}})):(I=Error("Qh`"+JSON.stringify(I)),_.vu(I))};
_.L.getUrl=function(I){return this.get("commandMetadata.webCommandMetadata.url",I)};
j4.prototype.toggleClearButton=j4.prototype.toggleClearButton;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],j4.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],j4.prototype,"hideClearButton",void 0);
_.W([_.M(),_.A("design:type",Object)],j4.prototype,"boundSubmit",void 0);_.W([_.a0("#form"),_.A("design:type",HTMLFormElement)],j4.prototype,"form",void 0);_.W([_.a0("#input"),_.A("design:type",Object)],j4.prototype,"input",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j4.prototype,"toggleClearButton",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],j4);
_.a(j4,"ytd-search-box-renderer",function(){if(pKc!==void 0)return pKc;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return pKc=I},{mode:2});var ol=function(){var I=_.k.apply(this,arguments)||this;I.showSearchBox=!0;return I};
_.E(ol,_.k);ol.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ol.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ol.prototype,"showSearchBox",void 0);_.W([_.yd({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],ol);
_.a(ol,"ytd-channel-switcher-header-renderer",function(){if(fsO!==void 0)return fsO;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return fsO=I},{mode:1});var mxg;var MXM;var Nc=function(){var I=_.k.apply(this,arguments)||this;I.isDisplayed=!0;return I};
_.E(Nc,_.k);_.L=Nc.prototype;_.L.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.dataChanged=function(){this.isDisplayed=!0};
_.L.computeType=function(I){return I||"UNKNOWN"};
_.L.onYtServiceRequestCompleted=function(I){I.stopPropagation();this.isDisplayed=!1};
_.L.onClose=function(){this.isDisplayed=!1};
Nc.prototype.onYtServiceRequestCompleted=Nc.prototype.onYtServiceRequestCompleted;Nc.prototype.dataChanged=Nc.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nc.prototype,"data",void 0);
_.W([_.M({computed:"computeType(data.type)",reflectToAttribute:!0}),_.A("design:type",String)],Nc.prototype,"type",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Nc.prototype,"isDisplayed",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nc.prototype,"dataChanged",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Nc.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Nc);
_.a(Nc,"ytd-alert-with-button-renderer",function(){if(MXM!==void 0)return MXM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return MXM=I},{mode:1});var hi=function(){var I=_.k.apply(this,arguments)||this;I.noResult=!1;I.enableAlertBanner=!1;I.dismissedAlertBanner=!1;I.hideCreateChannelButton=!1;I.boundDismissAlertBanner=function(){I.dismissAlertBanner()};
I.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return I};
_.E(hi,_.k);_.L=hi.prototype;_.L.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.L.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.L.updateChannelSwitcherAction=function(I){var y;I=(y=_.u(I,lUc))==null?void 0:y.page;_.u(I,xL_)!==void 0&&(this.data=_.u(I,xL_))};
_.L.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]]"}}}}}};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L.searchQueryChanged=function(I,y){if(this.data&&this.data.contents&&this.data.contents.length){I=[];var D=[];this.hideCreateChannelButton=this.noResult=!1;for(var F=document.querySelectorAll("ytd-account-item-renderer"),R=_.J(F),O=R.next();!O.done;O=R.next())O=O.value,D.push(O),O.style.display="block";this.resetRightBorder(D);if(y){this.hideCreateChannelButton=!0;for(D=1;D<this.data.contents.length;D++)if(O=this.data.contents[D],_.u(O,lmf)){var w=void 0,v=void 0;R=(w=_.u(O,lmf))==null?void 0:(v=
w.accountName)==null?void 0:v.simpleText;v=w=void 0;O=(w=_.u(O,lmf))==null?void 0:(v=w.channelHandle)==null?void 0:v.simpleText;(w=F[D-1])&&R&&_.PH(R,y)?I.push(w):_.l("enable_handle_search_on_channel_switcher")&&w&&O&&_.PH(O.toString(),y.toString())?I.push(w):w.style.display="none"}I.length===0&&(this.noResult=!0);this.resetRightBorder(I)}}};
_.L.resetRightBorder=function(I){for(var y=0;y<I.length;y++)I[y].style.borderRight=!this.hideCreateChannelButton&&(y+2)%3===0||this.hideCreateChannelButton&&(y+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.L.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.L.setShowSearchBox=function(I){if(I&&I.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var y=0;y<I.contents.length;y++)_.u(I.contents[y],_.hs)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.L.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.mD.Object.defineProperties(hi.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.contents)}}});
hi.prototype.onContinuationItemsUpdated=hi.prototype.onContinuationItemsUpdated;hi.prototype.searchQueryChanged=hi.prototype.searchQueryChanged;hi.prototype.onDataChanged=hi.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],hi.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],hi.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hi.prototype,"data",void 0);_.W([_.a0("ytd-channel-switcher-header-renderer"),_.A("design:type",Object)],hi.prototype,"channelSwitcherHeaderRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],hi.prototype,"noResult",void 0);
_.W([_.M(),_.A("design:type",Object)],hi.prototype,"enableAlertBanner",void 0);_.W([_.M(),_.A("design:type",Object)],hi.prototype,"dismissedAlertBanner",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],hi.prototype,"hideCreateChannelButton",void 0);_.W([_.Y("data.contents"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hi.prototype,"isLoading",null);_.W([_.M(),_.A("design:type",Object)],hi.prototype,"boundDismissAlertBanner",void 0);
_.W([_.M({computed:"computeButtonOverride()"}),_.A("design:type",Object)],hi.prototype,"buttonOverride",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hi.prototype,"onDataChanged",null);_.W([_.z4("search-query-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],hi.prototype,"searchQueryChanged",null);
_.W([_.z4("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],hi.prototype,"onContinuationItemsUpdated",null);_.W([_.yd({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],hi);
_.a(hi,"ytd-channel-switcher-page-renderer",function(){if(mxg!==void 0)return mxg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mxg=I},{mode:1});var z1_;var kKu;var xb=function(){var I=_.k.apply(this,arguments)||this;I.images=[];I.selectedImageIndex=0;return I};
_.E(xb,_.k);_.L=xb.prototype;
_.L.ready=function(){_.bV(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.bV(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.bV(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.bV(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.L.onThumbnailClick=function(I){if(I=I.event_.detail)this.selectedImageIndex=this.images.indexOf(I)};
_.L.updateImageThumbnails=function(I){I=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:I.event_.detail});this.images.splice(this.selectedImageIndex,1,I);this.images=[].concat(_.Td(this.images))};
_.L.cancelImageRepositions=function(){this.selectedImageIndex=0;_.lj(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.L.saveImageRepositions=function(){this.selectedImageIndex=0;_.lj(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.mD.Object.defineProperties(xb.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var I=this;return(this.images||[]).map(function(y,D){return{image:y,selected:D===I.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("ytd-backstage-image-preview-renderer"),_.A("design:type",Object)],xb.prototype,"imagePreviewContainer",void 0);_.W([_.a0(".thumbnail-images-container"),_.A("design:type",HTMLElement)],xb.prototype,"thumbnailImagesContainer",void 0);_.W([_.M(),_.A("design:type",Array)],xb.prototype,"images",void 0);
_.W([_.M(),_.A("design:type",Object)],xb.prototype,"repositionInstructions",void 0);_.W([_.M(),_.A("design:type",Object)],xb.prototype,"selectedImageIndex",void 0);_.W([_.Y("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],xb.prototype,"thumbnailRendererDatas",null);_.W([_.Y("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],xb.prototype,"selectedImageData",null);
_.W([_.yd({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],xb);
_.Xf()(xb,"ytd-backstage-multi-image-reposition-renderer",function(){if(kKu===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);kKu=I}I=kKu;return I},{allowedProps:["images",
"repositionInstructions"],mode:1});var l$=function(I,y){_.Zw.call(this);this.uploadUrl=I;this.channelId=y;this.imagesUploadData=[]};
_.E(l$,_.Zw);l$.prototype.getAllUploadStatuses=function(){var I=this,y,D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(dxz(I),2);y=R.yieldResult;D=y.get("succeed");F=y.get("failed");return R.return(D.concat(F))})};
var cBz=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(dxz(I),2);y=F.yieldResult;D=y.get("failed");D.length>0&&asG(I,D);return F.return(I.getAllUploadStatuses())})},dxz=function(I){var y,D,F,R,O,w,v;
return _.S(function(P){if(P.nextAddress==1)return y=new Map,P.yield(Promise.allSettled(I.imagesUploadData.map(function(K){return K.uploadPromise})),2);
D=P.yieldResult;F=[];R=_.J(D);for(O=R.next();!O.done;O=R.next())w=O.value,w.status==="fulfilled"&&F.push(w.value);v=I.imagesUploadData.map(function(K){return K.image}).filter(function(K){return F.every(function(r){return r.id!==K.id})});
y.set("succeed",F);y.set("failed",v);return P.return(y)})},asG=function(I,y){y=_.J(y);
for(var D=y.next();!D.done;D=y.next()){var F=I;D=D.value;WUG(F,D.id)>=0&&F.cancel(D.id);var R=new CcW(D),O=_.SsG(F.uploadUrl,{"X-YouTube-ChannelId":F.channelId},D.imageBlob);R.transfer=O;R.uploadPromise=BLG(O,D);F.imagesUploadData.push(R);O.run()}};
l$.prototype.cancel=function(I){var y=WUG(this,I);y!==-1&&((y=this.imagesUploadData[y].transfer)&&y.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(D){return D.image.id!==I}))};
var WUG=function(I,y){return I.imagesUploadData.findIndex(function(D){return D.image.id===y})},BLG=function(I,y){return new Promise(function(D,F){I.listen("l",function(){var R=I.getResponseText();
R?(R=JSON.parse(R).encryptedBlobId,y.encryptedBlobId=R,D(y)):F("upload failed")});
I.listen("n",function(){F("upload failed")})})},CcW=function(I){this.image=I};var XXt=function(I,y,D,F,R){this.id=I;this.imageBlob=y;this.localImageSrc=D;this.naturalWidth=F;this.naturalHeight=R;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 i$M=[".jpeg",".jpg",".png"],u$=function(){var I=_.k.apply(this,arguments)||this;I.showImagesPreview=!1;I.pollOptions=[];I.errorMessage="";I.optionPlaceholderText="";I.optionDefaultText="";I.JSC$16055_imageId=0;I.maxFileSizeMb=0;I.maxAspectRatio=0;I.invalidFileSizeError="";I.invalidAspectRatioError="";I.invalidFileTypeError="";I.imageSelector=new MH(null,"single_file",i$M);return I};
_.E(u$,_.k);_.L=u$.prototype;_.L.ready=function(){_.bV(this.imageSelector,"j",this.onImageSelect,!1,this);_.bV(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.bV(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.L.dataChanged=function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.cellTemplate)==null?void 0:y.onEmptyCellTap,Feu);if(D&&D.uploadUrl&&D.channelId){var F;this.maxFileSizeMb=((F=D.imageValidationInfo)==null?void 0:F.maxFileSizeMb)||0;var R;this.maxAspectRatio=((R=D.imageValidationInfo)==null?void 0:R.allowedMaxAspectRatio)||0;var O;this.invalidFileSizeError=this.getSimpleString((O=this.data)==null?void 0:O.invalidFileSizeError);var w;this.invalidAspectRatioError=this.getSimpleString((w=this.data)==
null?void 0:w.invalidAspectRatioError);var v;this.invalidFileTypeError=this.getSimpleString((v=this.data)==null?void 0:v.invalidFileTypeError);this.uploadManager=new l$(D.uploadUrl,D.channelId)}};
_.L.onEditorInfoChange=function(){this.optionPlaceholderText=_.rY(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.rY(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.L.observeAddImageError=function(){this.errorMessage!==""&&_.lj(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.L.onPollOptionsChange=function(){for(var I=!1,y=[],D=0;D<this.pollOptions.length;D++){var F=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(D+1);this.pollOptions[D].placeholderText!==F?(I=!0,y.push(Object.assign({},this.pollOptions[D],{placeholderText:F}))):y.push(this.pollOptions[D])}I&&(this.pollOptions=y);this.isValid()?_.lj(this.hostElement,"yt-commentbox-post-enable"):_.lj(this.hostElement,"yt-commentbox-post-disable")};
_.L.createPollOptions=function(I){var y=[],D;I=(D=I==null?void 0:I.minPollOptions)!=null?D:0;for(D=0;D<I;D++)y.push(this.createPollOption());return y};
_.L.onImageSelect=function(I){var y=this,D,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1){if(y.selectedImageIndex===void 0)return P.jumpTo(0);D=I.files[0];y.errorMessage="";F=y.validateImage(D);if(F!=="")return y.errorMessage=F,P.return();R=new lW(y.maxAspectRatio,!1,!0);return P.yield(R.transform(D),3)}if(P.nextAddress!=4)return O=P.yieldResult,O.transformedData?O.invalidAspectRatio?(y.errorMessage=y.invalidAspectRatioError,P.return()):P.yield(QHt(y.JSC$16055_imageId,I.files[0],O.transformedData),
4):(y.errorMessage=y.invalidFileTypeError,P.return());w=P.yieldResult;y.JSC$16055_imageId++;asG(y.uploadManager,[w]);v=Object.assign({},y.pollOptions[y.selectedImageIndex],{image:w});y.pollOptions.splice(y.selectedImageIndex,1,v);y.refreshPollOptions();_.lj(y.hostElement,"yt-backstage-poll-image-select");_.Cj(P)})};
_.L.validateImage=function(I){return I.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.L.refreshPollOptions=function(){this.pollOptions=[].concat(_.Td(this.pollOptions))};
_.L.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Td(this.pollOptions),[this.createPollOption()]))};
_.L.onRemovePollOption=function(I){var y=this.pollOptions[I.model.index];y&&y.image&&this.uploadManager.cancel(y.image.id);this.pollOptions.splice(I.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.lj(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.L.onTextInput=function(){this.refreshPollOptions()};
_.L.onImageButtonClick=function(I){this.selectedImageIndex=I.model.index;this.imageSelector.click()};
_.L.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.L.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.L.saveImageRepositions=function(I){I=I.event_.detail;for(var y=0,D=[],F=_.J(this.pollOptions),R=F.next();!R.done;R=F.next())R=R.value,R.image!==void 0?(R=Object.assign({},R,{image:I[y]}),D.push(R),y++):D.push(R);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Td(D))};
_.L.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 I=0,y=_.J(this.pollOptions),D=y.next();!D.done;D=y.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;I++}return I>=Number(this.editorInfo.minPollOptions)};
_.L.getAllUploadStatuses=function(){var I=this,y,D,F,R;return _.S(function(O){if(O.nextAddress==1)return O.yield(I.uploadManager.getAllUploadStatuses(),2);y=O.yieldResult;D=_.J(y);for(F=D.next();!F.done;F=D.next())if(R=F.value,R.encryptedBlobId===void 0)return O.return(cBz(I.uploadManager));return O.return(y)})};
_.L.getPostCreateOptions=function(){for(var I=[],y=_.J(this.pollOptions),D=y.next();!D.done;D=y.next())D=D.value,D.image!==void 0&&I.push({text:this.hasCustomOptionText?D.optionText:D.placeholderText,image:D.image});return I};
_.L.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.L.createButtonRenderer=function(I,y){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleString(I)}},isDisabled:y}};
_.L.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.L.computeThumbnailRendererData=function(I){return I?{image:I,selected:!1}:void 0};
_.L.getSimpleString=function(I){return _.rY(I)};
_.L.updateOptionTextFromBinding=function(I){if(I.target){var y=Array.from(_.XB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(I.target);if(y>=0){var D;this.pollOptions[y].optionText=(D=I.detail.value)!=null?D:""}}};
_.mD.Object.defineProperties(u$.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var I,y;return this.pollOptions.length<((y=(I=this.editorInfo)==null?void 0:I.maxPollOptions)!=null?y:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(I){return I.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(I){return I.image}).map(function(I){return I.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(I){return I.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.data)==null?void 0:I.addOptionButtonText;return y?this.createButtonRenderer(y,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.data)==null?void 0:I.repositionImagesButtonLabel;return y?this.createButtonRenderer(y,!this.hasImages):void 0}}});
u$.prototype.onPollOptionsChange=u$.prototype.onPollOptionsChange;u$.prototype.observeAddImageError=u$.prototype.observeAddImageError;u$.prototype.onEditorInfoChange=u$.prototype.onEditorInfoChange;u$.prototype.dataChanged=u$.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("ytd-backstage-multi-image-reposition-renderer"),_.A("design:type",Object)],u$.prototype,"imageRepositionContainer",void 0);
_.W([_.M(),_.A("design:type",Object)],u$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],u$.prototype,"editorInfo",void 0);_.W([_.M(),_.A("design:type",l$)],u$.prototype,"uploadManager",void 0);_.W([_.M(),_.A("design:type",Object)],u$.prototype,"showImagesPreview",void 0);_.W([_.M(),_.A("design:type",Array)],u$.prototype,"pollOptions",void 0);_.W([_.M(),_.A("design:type",Object)],u$.prototype,"errorMessage",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"dataChanged",null);_.W([_.Bp("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"onEditorInfoChange",null);_.W([_.ke("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"observeAddImageError",null);
_.W([_.Bp("pollOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u$.prototype,"onPollOptionsChange",null);_.W([_.Y("pollOptions","editorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"isAllowedToAddOption",null);_.W([_.Y("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"hasImages",null);
_.W([_.Y("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"imagesToReposition",null);_.W([_.Y("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"hasCustomOptionText",null);_.W([_.Y("data","isAllowedToAddOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"addOptionButton",null);_.W([_.Y("data","hasImages"),_.A("design:type",Object),_.A("design:paramtypes",[])],u$.prototype,"repositionImagesButton",null);
_.W([_.yd({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],u$);
_.a(u$,"ytd-backstage-image-poll-editor-renderer",function(){if(z1_!==void 0)return z1_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return z1_=I},{mode:2});var ABa={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 $xW;var qc=function(){var I=_.k.apply(this,arguments)||this;I.a11yConfig=ABa;I.imageDisplayOffsetTop=0;I.imageDisplayOffsetLeft=0;I.pickerDisplayOffsetTop=0;I.pickerDisplayOffsetLeft=0;I.showPreviewContainer=!0;I.startPicker=!1;I.repositionOptional=!1;I.editOnlyMode=!1;I.savedImageDisplayOffsetTop=0;I.savedImageDisplayOffsetLeft=0;return I};
_.E(qc,_.k);_.L=qc.prototype;_.L.created=function(){_.Jw.requestAvailability()};
_.L.ready=function(){};
_.L.onArrowKeysDown=function(I){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){I.detail.keyboardEvent.preventDefault();var y=0,D=0,F="";switch(I.detail.keyboardEvent.key){case "ArrowUp":YQB(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?F=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":YQB(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?F=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":YQB(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?F=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":YQB(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?F=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}F&&_.zC(F)&&_.lj(this.hostElement,"iron-announce",{text:_.zC(F)});if(D||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),I=_.zC(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),I=_.zC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})),I&&_.lj(this.hostElement,"iron-announce",{text:I})}};
_.L.getPreviewPosition=function(I,y,D,F){return Math.round(100*(I+y*.5-D)/F)};
_.L.calculateDisplayPosition=function(){var I=this.imageData.naturalWidth,y=this.imageData.naturalHeight;this.displayScale=Math.max(200/I,200/y);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var D=I*this.displayScale*this.imageData.previewCoordinates.left,F=y*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=y>I?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-D;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=I>y?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-F;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=I*this.displayScale;this.imageHeight=y*this.displayScale};
_.L.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.L.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.L.getSignedPosition=function(I,y,D){return y==="X"&&_.Pi("HTML_DIR")==="rtl"?D==="-"?I+"px":I*-1+"px":D==="-"?I*-1+"px":I+"px"};
_.L.pickerMove=function(I){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var y=this.pickerOffsetX-I.clientX,D=this.pickerOffsetY-I.clientY;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.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-y))}};
_.L.pickerMoveStart=function(I){this.startPicker=!0;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY};
_.L.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var I=this.generateCropPreview();I&&_.lj(this.hostElement,"ytd-backstage-image-preview-coordinates-update",I)};
_.L.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.lj(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.L.deleteImage=function(){_.lj(this.hostElement,"ytd-backstage-image-preview-delete")};
_.L.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.L.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var I=this.generateCropPreview();I&&_.lj(this.hostElement,"ytd-backstage-image-preview-coordinates-save",I)};
_.L.getPreviewOffset=function(I,y,D){return y&&I?(D==="X"&&_.Pi("HTML_DIR")==="rtl"?300/y*I:300/y*I*-1)+"px":"0px"};
_.L.getSimpleText=function(I){return I?_.rY(I):""};
_.L.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}};
_.mD.Object.defineProperties(qc.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zC(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.zC(this.a11yConfig.verticalRepositionInstruction)}I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.zC(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 I,y,D=(I=this.instruction)==null?void 0:(y=I.previewInstruction)==null?void 0:y.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 I,y,D,F,R=this.editOnlyMode?(I=this.instruction)==null?void 0:(y=I.editInstruction)==null?void 0:y.saveImagesButtonLabel:(D=this.instruction)==null?void 0:(F=D.editInstruction)==null?void 0:F.saveButtonLabel;return R?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleText(R)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.instruction)==null?void 0:(y=I.previewInstruction)==null?void 0:y.deleteButtonLabel;return D?{size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.instruction)==null?void 0:(y=I.editInstruction)==null?void 0:y.cancelButtonLabel;I=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return D?{style:I,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"}}});
qc.prototype.onEditOnlyModeUpdate=qc.prototype.onEditOnlyModeUpdate;qc.prototype.onImageChange=qc.prototype.onImageChange;_.W([_.M(),_.A("design:type",XXt)],qc.prototype,"imageData",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"instruction",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"a11yConfig",void 0);_.W([_.M(),_.A("design:type",Number)],qc.prototype,"imageWidth",void 0);_.W([_.M(),_.A("design:type",Number)],qc.prototype,"imageHeight",void 0);
_.W([_.M(),_.A("design:type",Number)],qc.prototype,"displayScale",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"imageDisplayOffsetTop",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"showPreviewContainer",void 0);
_.W([_.M(),_.A("design:type",Object)],qc.prototype,"startPicker",void 0);_.W([_.M(),_.A("design:type",Number)],qc.prototype,"pickerOffsetX",void 0);_.W([_.M(),_.A("design:type",Number)],qc.prototype,"pickerOffsetY",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"repositionOptional",void 0);_.W([_.M(),_.A("design:type",Object)],qc.prototype,"editOnlyMode",void 0);_.W([_.a0("#picker-container"),_.A("design:type",HTMLElement)],qc.prototype,"JSC$16068_pickerContainer",void 0);
_.W([_.a0("#picker"),_.A("design:type",HTMLElement)],qc.prototype,"picker",void 0);_.W([_.a0("#preview-clipper"),_.A("design:type",HTMLElement)],qc.prototype,"previewClipper",void 0);_.W([_.a0("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],qc.prototype,"JSC$16068_imageInBackground",void 0);_.W([_.a0("#image-in-picker"),_.A("design:type",HTMLImageElement)],qc.prototype,"JSC$16068_imageInPicker",void 0);
_.W([_.a0("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],qc.prototype,"JSC$16068_imageInPreviewClipper",void 0);_.W([_.Y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"altLabelForImage",null);_.W([_.Y("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],qc.prototype,"pickerSize",null);
_.W([_.Y("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],qc.prototype,"imageOrientationStyle",null);_.W([_.Y("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],qc.prototype,"editButton",null);_.W([_.Y("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],qc.prototype,"saveButton",null);_.W([_.Y("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],qc.prototype,"deleteButton",null);
_.W([_.Y("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],qc.prototype,"cancelButton",null);_.W([_.Y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],qc.prototype,"cropOffsetTop",null);_.W([_.Y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],qc.prototype,"cropOffsetLeft",null);
_.W([_.Y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"pickerBackgroundStyle",null);_.W([_.Y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"pickerDisplayStyle",null);_.W([_.Y("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"imageInPickerStyle",null);
_.W([_.Y("cropOffsetLeft","cropOffsetTop","pickerSize"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"previewClipperStyle",null);_.W([_.Bp("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qc.prototype,"onImageChange",null);_.W([_.Bp("editOnlyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qc.prototype,"onEditOnlyModeUpdate",null);
_.W([_.Y("showPreviewContainer"),_.A("design:type",String),_.A("design:paramtypes",[])],qc.prototype,"pickerModeStyle",null);_.W([_.yd({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],qc);
_.a(qc,"ytd-backstage-image-preview-renderer",function(){if($xW!==void 0)return $xW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $xW=I},{mode:1});var b$e;var H$W={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 e1e;var TLO;var Ed=function(){var I=_.k.apply(this,arguments)||this;I.a11yConfig=H$W;I.imageDisplayOffsetTop=0;I.imageDisplayOffsetLeft=0;I.pickerDisplayOffsetTop=0;I.pickerDisplayOffsetLeft=0;I.cropCoordinatesSaved=!1;I.previewSize=0;I.startPicker=!1;I.repositionOptional=!1;return I};
_.E(Ed,_.k);_.L=Ed.prototype;_.L.created=function(){_.Jw.requestAvailability()};
_.L.ready=function(){};
_.L.onArrowKeysDown=function(I){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){I.detail.keyboardEvent.preventDefault();var y=0,D=0,F="";switch(I.detail.keyboardEvent.key){case "ArrowUp":fro(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?F=this.a11yConfig.reachBottomOfImage:y=this.imageHeight*.05*-1;break;case "ArrowDown":fro(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?F=this.a11yConfig.reachTopOfImage:
y=this.imageHeight*.05;break;case "ArrowLeft":fro(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?F=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":fro(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?F=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}F&&_.zC(F)&&_.lj(this.hostElement,"iron-announce",{text:_.zC(F)});if(D||y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+y)),I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),I=_.zC(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),I=_.zC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})),I&&_.lj(this.hostElement,"iron-announce",{text:I})}};
_.L.getPreviewPosition=function(I,y,D,F){return Math.round(100*(I+y*.5-D)/F)};
_.L.displayImage=function(){var I=this.JSC$16079_pickerContainer.getBoundingClientRect().width,y=this.JSC$16079_pickerContainer.getBoundingClientRect().height,D=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),F=this.JSC$16079_imageInBackground.naturalWidth,R=this.JSC$16079_imageInBackground.naturalHeight;this.displayScale=Math.max(D/F,D/R);this.imageWidth=F*this.displayScale;this.imageHeight=R*this.displayScale;this.pickerDisplayOffsetLeft=(I-D)/2;this.pickerDisplayOffsetTop=
(y-D)/2;this.imageDisplayOffsetLeft=R>F?this.pickerDisplayOffsetLeft:(I-this.imageWidth)/2;this.imageDisplayOffsetTop=F>R?this.pickerDisplayOffsetTop:(y-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.L.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16079_imageInBackground.src=this.imageData.toString(),this.JSC$16079_imageInPicker.src=this.imageData.toString(),this.JSC$16079_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.L.getSignedPosition=function(I,y,D){return y==="X"&&_.Pi("HTML_DIR")==="rtl"?D==="-"?I+"px":I*-1+"px":D==="-"?I*-1+"px":I+"px"};
_.L.pickerMove=function(I){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var y=this.pickerOffsetX-I.clientX,D=this.pickerOffsetY-I.clientY;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.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-y))}};
_.L.pickerMoveStart=function(I){this.startPicker=!0;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY};
_.L.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.L.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.lj(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.L.getPreviewOffset=function(I,y,D,F){return y&&I&&D?(F==="X"&&_.Pi("HTML_DIR")==="rtl"?D/y*I:D/y*I*-1)+"px":"0px"};
_.L.getSimpleText=function(I){return I?_.rY(I):""};
_.L.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var I=this.cropOffsetTop/this.imageHeight,y=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,D=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,F=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.XB(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.lj(this.hostElement,"yt-img-crop-coordinates-update",{top:I,right:y,bottom:D,left:F})}};
_.mD.Object.defineProperties(Ed.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zC(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.zC(this.a11yConfig.verticalRepositionInstruction)}I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zC(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.zC(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 I,y=(I=this.learnMore.runs[0])==null?void 0:I.navigationEndpoint,D;return((D=_.u(y,_.lK))==null?void 0:D.url)||void 0}}}});
Ed.prototype.onImageDataChange=Ed.prototype.onImageDataChange;_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"imageData",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"instruction",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"a11yConfig",void 0);_.W([_.M(),_.A("design:type",Number)],Ed.prototype,"imageWidth",void 0);_.W([_.M(),_.A("design:type",Number)],Ed.prototype,"imageHeight",void 0);_.W([_.M(),_.A("design:type",Number)],Ed.prototype,"displayScale",void 0);
_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"imageDisplayOffsetTop",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"cropCoordinatesSaved",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"previewSize",void 0);
_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"startPicker",void 0);_.W([_.M(),_.A("design:type",Number)],Ed.prototype,"pickerOffsetX",void 0);_.W([_.M(),_.A("design:type",Number)],Ed.prototype,"pickerOffsetY",void 0);_.W([_.M(),_.A("design:type",Object)],Ed.prototype,"repositionOptional",void 0);_.W([_.a0("#picker-container"),_.A("design:type",HTMLElement)],Ed.prototype,"JSC$16079_pickerContainer",void 0);_.W([_.a0("#picker"),_.A("design:type",HTMLElement)],Ed.prototype,"picker",void 0);
_.W([_.a0("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],Ed.prototype,"JSC$16079_imageInBackground",void 0);_.W([_.a0("#image-in-picker"),_.A("design:type",HTMLImageElement)],Ed.prototype,"JSC$16079_imageInPicker",void 0);_.W([_.a0("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],Ed.prototype,"JSC$16079_imageInPreviewClipper",void 0);_.W([_.a0("#full-image-as-preview"),_.A("design:type",HTMLImageElement)],Ed.prototype,"imageAsPreview",void 0);
_.W([_.Y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"altLabelForImage",null);_.W([_.Y("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ed.prototype,"pickerSize",null);_.W([_.Y("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ed.prototype,"imageOrientationStyle",null);
_.W([_.Y("instruction.previewInstruction.editButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ed.prototype,"editButton",null);_.W([_.Y("instruction.editInstruction.saveButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ed.prototype,"saveButton",null);_.W([_.Y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ed.prototype,"cropOffsetTop",null);
_.W([_.Y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ed.prototype,"cropOffsetLeft",null);_.W([_.Y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"pickerBackgroundStyle",null);_.W([_.Y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"pickerDisplayStyle",null);
_.W([_.Y("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"imageInPickerStyle",null);_.W([_.Y("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"previewClipperStyle",null);_.W([_.ke("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ed.prototype,"onImageDataChange",null);
_.W([_.Y("cropCoordinatesSaved"),_.A("design:type",String),_.A("design:paramtypes",[])],Ed.prototype,"pickerModeStyle",null);_.W([_.Y("instruction.editInstruction.learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ed.prototype,"learnMore",null);_.W([_.Y("learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ed.prototype,"learnMoreUrl",null);_.W([_.I6({is:"yt-img-crop-picker",disableElementRegistration:!0})],Ed);
_.a(Ed,"yt-img-crop-picker",function(){if(TLO===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;e1e===void 0&&(e1e=document.createElement("template"));var F=e1e;D.call(y,F.content.cloneNode(!0),I.content.firstChild);TLO=I}I=TLO;return I},{mode:2});var G7=function(){var I=_.k.apply(this,arguments)||this;I.errorMessage="";I.hasPreview=!1;I.isBackstagePost=!1;I.dismissButtonOverrides={size:"XS"};return I};
_.E(G7,_.k);_.L=G7.prototype;_.L.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"}}}};
_.L.detached=function(){this.removeOverlay()};
_.L.setPreview=function(I){_.XB(this.hostElement).querySelector("#preview-picker").imageData=I;this.hasPreview=!0;_.lj(this.hostElement,"yt-backstage-image-select-preview")};
_.L.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var I=_.XB(this.hostElement).querySelector("#dropzone");I.classList.remove("dragover");I.classList.remove("error");_.lj(this.hostElement,"yt-backstage-image-select-cancel")};
_.L.setupOverlay=function(){var I=this.imageUploadEndpoint;this.removeOverlay();if(I&&I.imageValidationInfo){var y=_.XB(this.hostElement).querySelector("#dropzone"),D=_.XB(this.hostElement).querySelector("#select");this.overlay=new qE(I.uploadUrl,I.channelId,I.imageValidationInfo.maxFileSizeMb,I.imageValidationInfo.allowedMaxAspectRatio,y,D,!0);_.bV(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.bV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.bV(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.bV(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.bV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.L.removeOverlay=function(){this.overlay&&(_.V1(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.V1(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.V1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.V1(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.V1(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.L.onDragOver=function(I){var y=_.XB(this.hostElement).querySelector("#dropzone");_.Ye(y,"dragover",I.value)};
_.L.onPreview=function(I){this.setPreview(I.value)};
_.L.onImageError=function(I){if(I.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var y;I=(y=this.data)==null?void 0:y.fileSizeError}else if(I.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var D;I=(D=this.data)==null?void 0:D.invalidError}else if(I.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var F;I=(F=this.data)==null?void 0:F.invalidAspectRatioError}else return;this.errorMessage=_.rY(I);_.XB(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.L.onImageAlert=function(I){this.onImageError(I)};
_.L.uploadPromise=function(){var I=this,y=this.overlay&&this.overlay.uploadPromise();if(y)return y.catch(function(){throw Error(I.data?_.rY(I.data.uploadFailureError):"");})};
_.mD.Object.defineProperties(G7.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var I,y;if((I=this.data)==null?0:(y=I.icon)==null?0:y.iconType)return _.pQ(this.data.icon.iconType)}}});
G7.prototype.setupOverlay=G7.prototype.setupOverlay;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],G7.prototype,"rendererStamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],G7.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],G7.prototype,"imageUploadEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],G7.prototype,"errorMessage",void 0);
_.W([_.M(),_.A("design:type",qE)],G7.prototype,"overlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],G7.prototype,"hasPreview",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],G7.prototype,"isBackstagePost",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],G7.prototype,"selectionCancel",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],G7.prototype,"previewCancel",null);
_.W([_.Y("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],G7.prototype,"icon",null);_.W([_.M(),_.A("design:type",Object)],G7.prototype,"dismissButtonOverrides",void 0);_.W([_.ke("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],G7.prototype,"setupOverlay",null);_.W([_.yd({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],G7);
_.a(G7,"ytd-backstage-image-select-renderer",function(){if(b$e!==void 0)return b$e;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return b$e=I},{mode:1});var sAR;var VXP;var XJ=function(){var I=_.k.apply(this,arguments)||this;I.selected=!1;return I};
_.E(XJ,_.k);_.L=XJ.prototype;_.L.computeSelected=function(I){return I==null?void 0:I.selected};
_.L.computeTransform=function(I,y,D){var F,R,O=(R=(F=this.imageContainer)==null?void 0:F.getBoundingClientRect())!=null?R:{width:0,height:0};F=Math.max(O.width/y,O.height/D);D=D*F*I.top;return"translateX("+this.getSignedPosition(y*F*I.left,"X","-")+") translateY("+this.getSignedPosition(D,"Y","-")+")"};
_.L.getSignedPosition=function(I,y,D){return y==="X"&&_.Pi("HTML_DIR")==="rtl"?D==="-"?I+"px":I*-1+"px":D==="-"?I*-1+"px":I+"px"};
_.L.onClick=function(){var I;_.lj(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(I=this.data)==null?void 0:I.image)};
_.L.onKeyPress=function(I){if(I.keyCode===13)this.onClick()};
_.mD.Object.defineProperties(XJ.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.image)==null?void 0:y.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)!=null&&I.image){var y;I=(y=this.data)==null?void 0:y.image;return I.previewCoordinates.top!==0||I.previewCoordinates.left!==0?(y=this.computeTransform(I.previewCoordinates,I.naturalWidth,I.naturalHeight),I.naturalHeight>=I.naturalWidth?"width:inherit;transform:"+y+";":"height:inherit;transform:"+y+";"):I.naturalHeight>=I.naturalWidth?"width:inherit;":"height:inherit;"}}}});
XJ.prototype.onKeyPress=XJ.prototype.onKeyPress;_.W([_.a0(".image-container"),_.A("design:type",HTMLElement)],XJ.prototype,"imageContainer",void 0);_.W([_.M(),_.A("design:type",Object)],XJ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.A("design:type",Object)],XJ.prototype,"selected",void 0);_.W([_.Y("data.image"),_.A("design:type",Object),_.A("design:paramtypes",[])],XJ.prototype,"thumbnailUrl",null);
_.W([_.Y("data.image","data.image.previewCoordinates"),_.A("design:type",Object),_.A("design:paramtypes",[])],XJ.prototype,"thumbnailStyle",null);_.W([_.z4("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],XJ.prototype,"onKeyPress",null);_.W([_.yd({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],XJ);
_.Xf()(XJ,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(VXP===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);VXP=I}I=VXP;return I},{allowedProps:["data"],
mode:2});var QW=function(I,y,D){D=D===void 0?!1:D;_.Zw.call(this);var F=this;this.dropZoneOverlay=new mg(I);this.selectOverlay=D?new MH(y,"multiple_file",["image/*"]):new MH(y,"single_file",["image/*"]);this.handler=new _.H5(this);_.pW(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(y,"click",function(){F.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.E(QW,_.Zw);QW.prototype.onChange=function(I){var y;(y=I.files)!=null&&y.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:I.files}))};var Yb=function(){var I=_.k.apply(this,arguments)||this;I.addImageErrorMessage="";I.errorMessage="";I.images=[];I.selectedImageIndex=0;I.modern=_.l("web_modern_buttons");I.maxNumImagesPerPost=_.kf("max_num_images_per_post_web_ui");I.JSC$16094_imageId=0;return I};
_.E(Yb,_.k);_.L=Yb.prototype;_.L.created=function(){var I=this;this.JSC$16094_ytReorderableController=new _.K0c(100,function(y){I.handleDrop(y)})};
_.L.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.lj(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.L.observeDragToReorder=function(){var I=this;if(this.showImagesPreview){var y,D=hha(_.kD.getInstance(),(y=this.data)==null?void 0:y.dragToReorderTooltip);_.w2.addLowPriorityJob(function(){_.GC(I.hostElement,D,I.thumbnailDragDropArea)})}};
_.L.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}}};
_.L.computeThumbnail=function(I){return(I==null?void 0:I.localImageSrc)||void 0};
_.L.onRendererstamperFinished=function(){_.UsM(this.JSC$16094_ytReorderableController,_.XB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.XB(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.L.handleDrop=function(I){var y=I.currDragItem;if(y!=null&&y.data){I=this.images[this.selectedImageIndex];var D=y.data.image,F=this.images.indexOf(D)||0;y=_.ze(y.parentNode.children,y);this.images.splice(F,1);this.images.splice(y,0,D);this.images=[].concat(_.Td(this.images));this.selectedImageIndex=this.images.indexOf(I)}};
_.L.setUpImagePicker=function(){var I=this.imageUploadEndpoint;I&&I.imageValidationInfo&&(this.uploadManager=new l$(I.uploadUrl,I.channelId),this.initialPicker||(this.initialPicker=new QW(this.dropzone,this.selectLink,!0),_.bV(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new QW(this.addImageButtonContainer,this.addImageSelectButton),_.bV(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.bV(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.bV(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.bV(_.XB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.L.detached=function(){this.initialPicker&&(_.V1(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.V1(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.$g(this.JSC$16094_ytReorderableController)};
_.L.onInitialSelectImages=function(I){var y=this;return _.S(function(D){return D.yield(y.onSelectImages(I,!1),0)})};
_.L.onAddImage=function(I){var y=this;return _.S(function(D){return D.yield(y.onSelectImages(I,!0),0)})};
_.L.onSelectImages=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e;return _.S(function(T){switch(T.nextAddress){case 1:y?D.addImageErrorMessage="":(D.images=[],D.errorMessage="");F=I.detail;R=D.validateImages([].concat(_.Td(F)));if(R!=="")return y?D.addImageErrorMessage=R:D.errorMessage=R,T.return();O=[].concat(_.Td(F)).map(function(L5){return(new lW(D.maxAspectRatio,!1,!0)).transform(L5)});
return T.yield(Promise.allSettled(O),2);case 2:w=T.yieldResult,v=_.J(w.entries()),P=v.next();case 3:if(P.done){T.jumpTo(5);break}K=P.value;r=_.J(K);N=r.next().value;h=r.next().value;x=N;q=h;if(q.status!=="fulfilled"){m=f=X=void 0;y?D.addImageErrorMessage=_.rY((X=D.data)==null?void 0:X.invalidError):D.errorMessage=D.errorMessage===""?_.rY((f=D.data)==null?void 0:f.invalidError):_.rY((m=D.data)==null?void 0:m.multiFileError);T.jumpTo(4);break}z=q.value;z.cropped&&_.lj(D.hostElement,"yt-backstage-multi-image-cropped");
if(z.invalidAspectRatio){H=C=B=void 0;y?D.addImageErrorMessage=_.rY((B=D.data)==null?void 0:B.invalidAspectRatioError):D.errorMessage=D.errorMessage===""?_.rY((C=D.data)==null?void 0:C.invalidAspectRatioError):_.rY((H=D.data)==null?void 0:H.multiFileError);T.jumpTo(4);break}return T.yield(QHt(D.JSC$16094_imageId,I.detail[x],z.transformedData),8);case 8:e=T.yieldResult,D.images.push(e),D.JSC$16094_imageId++;case 4:P=v.next();T.jumpTo(3);break;case 5:if(D.errorMessage!==""||D.addImageErrorMessage!==
"")return T.return();y?asG(D.uploadManager,[D.images[D.images.length-1]]):asG(D.uploadManager,D.images);D.images=[].concat(_.Td(D.images));D.selectedImageIndex=y?Math.max(D.images.length-1,0):0;_.lj(D.hostElement,"yt-backstage-multi-image-select");_.Cj(T)}})};
_.L.onThumbnailClick=function(I){if(I=I.event_.detail)this.selectedImageIndex=this.images.indexOf(I)};
_.L.validateImages=function(I){if(I.length>this.maxNumImagesPerPost){var y;return _.rY((y=this.data)==null?void 0:y.multiImageExceedMaxImageCountError)}var D=1048576*this.maxFileSizeMb;I=I.filter(function(O){return O.size>D}).length;
if(I===0)return"";var F,R;I=I>1?(F=this.data)==null?void 0:F.multiFileError:(R=this.data)==null?void 0:R.fileSizeError;return _.rY(I)};
_.L.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Td(this.images));this.selectedImageIndex=0};
_.L.repositionImage=function(I){this.images[this.selectedImageIndex].previewCoordinates=I.event_.detail;this.images=[].concat(_.Td(this.images))};
_.L.getAllUploadStatuses=function(){var I=this,y,D,F,R;return _.S(function(O){if(O.nextAddress==1)return O.yield(I.uploadManager.getAllUploadStatuses(),2);y=O.yieldResult;D=_.J(y);for(F=D.next();!F.done;F=D.next())if(R=F.value,R.encryptedBlobId===void 0)return O.return(cBz(I.uploadManager));return O.return(y)})};
_.L.hasImages=function(){return this.images.length>0};
_.L.cancel=function(){for(var I=this.uploadManager,y=_.J(I.imagesUploadData),D=y.next();!D.done;D=y.next())I.cancel(D.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.lj(this.hostElement,"yt-backstage-multi-image-cancel")};
_.mD.Object.defineProperties(Yb.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.imageUploadEndpoint)==null?void 0:(y=I.imageValidationInfo)==null?void 0:y.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.imageUploadEndpoint)==null?void 0:(y=I.imageValidationInfo)==null?void 0:y.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var I,y;if((I=this.data)==null?0:(y=I.icon)==null?0:y.iconType)return _.pQ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.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 I=this;return(this.images||[]).map(function(y,D){return{renderer:{image:y,selected:D===I.selectedImageIndex}}})}}});
Yb.prototype.setUpImagePicker=Yb.prototype.setUpImagePicker;Yb.prototype.onRendererstamperFinished=Yb.prototype.onRendererstamperFinished;Yb.prototype.observeDragToReorder=Yb.prototype.observeDragToReorder;Yb.prototype.observeAddImageError=Yb.prototype.observeAddImageError;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Yb.prototype,"rendererStamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);
_.W([_.a0("#dropzone"),_.A("design:type",HTMLElement)],Yb.prototype,"dropzone",void 0);_.W([_.a0("#select-link"),_.A("design:type",HTMLElement)],Yb.prototype,"selectLink",void 0);_.W([_.a0("#thumbnail-drag-drop-area"),_.A("design:type",HTMLElement)],Yb.prototype,"thumbnailDragDropArea",void 0);_.W([_.a0("#add-image-button-container"),_.A("design:type",HTMLElement)],Yb.prototype,"addImageButtonContainer",void 0);
_.W([_.a0("#add-image-button"),_.A("design:type",HTMLElement)],Yb.prototype,"addImageSelectButton",void 0);_.W([_.a0("#image-preview-container"),_.A("design:type",Object)],Yb.prototype,"imagePreviewContainer",void 0);_.W([_.M(),_.A("design:type",Object)],Yb.prototype,"addImageErrorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],Yb.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Yb.prototype,"errorMessage",void 0);
_.W([_.M(),_.A("design:type",Object)],Yb.prototype,"imageUploadEndpoint",void 0);_.W([_.M(),_.A("design:type",Array)],Yb.prototype,"images",void 0);_.W([_.M(),_.A("design:type",QW)],Yb.prototype,"initialPicker",void 0);_.W([_.M(),_.A("design:type",QW)],Yb.prototype,"addImagePicker",void 0);_.W([_.M(),_.A("design:type",l$)],Yb.prototype,"uploadManager",void 0);_.W([_.M(),_.A("design:type",Object)],Yb.prototype,"selectedImageIndex",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Yb.prototype,"modern",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Yb.prototype,"maxNumImagesPerPost",void 0);_.W([_.Y("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],Yb.prototype,"maxAspectRatio",null);_.W([_.Y("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],Yb.prototype,"maxFileSizeMb",null);
_.W([_.Y("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yb.prototype,"dropIcon",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yb.prototype,"selectionCancel",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yb.prototype,"previewCancel",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yb.prototype,"dataForAddImageButton",null);
_.W([_.Y("errorMessage"),_.A("design:type",String),_.A("design:paramtypes",[])],Yb.prototype,"dropzoneClass",null);_.W([_.Y("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Yb.prototype,"showImagesPreview",null);_.W([_.Y("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Yb.prototype,"containMaxImages",null);_.W([_.ke("addImageErrorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yb.prototype,"observeAddImageError",null);
_.W([_.ke("showImagesPreview"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yb.prototype,"observeDragToReorder",null);_.W([_.Y("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],Yb.prototype,"selectedImageData",null);_.W([_.Y("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],Yb.prototype,"thumbnailRenderers",null);
_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yb.prototype,"onRendererstamperFinished",null);_.W([_.ke("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yb.prototype,"setUpImagePicker",null);_.W([_.yd({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Yb);
_.a(Yb,"ytd-backstage-multi-image-select-renderer",function(){if(sAR!==void 0)return sAR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return sAR=I},{mode:1});var Z$M;var g8f;var Iza;var f1=function(){var I=_.k.apply(this,arguments)||this;I.boundCaptureFocus=function(y){I.onCaptureFocus(y)};
return I};
_.E(f1,_.k);_.L=f1.prototype;_.L.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.L.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.L.onCaptureFocus=function(I){_.r4(I).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.L.getIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.L.onSelect=function(){var I;if((I=this.data)==null?0:I.onSelectCommand)if(_.l("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var y;((y=_.u(this.data.onSelectCommand.commandMetadata,_.nE))==null?0:y.url)?_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.nR().resolve(_.MC).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.mD.Object.defineProperties(f1.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.rY(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}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],f1.prototype,"data",void 0);_.W([_.a0("#item"),_.A("design:type",HTMLElement)],f1.prototype,"item",void 0);_.W([_.Y("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],f1.prototype,"label",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],f1.prototype,"value",null);_.W([_.yd({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],f1);
_.a(f1,"ytd-privacy-dropdown-item-renderer",function(){if(Iza!==void 0)return Iza;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Iza=I},{mode:1});var n1=function(){var I=_.k.apply(this,arguments)||this;I.value="";I.label="";I.disabled=!1;return I};
_.E(n1,_.k);_.L=n1.prototype;_.L.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"}}}};
_.L.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.L.dataChanged=function(){this.reset()};
_.L.valueChanged=function(){var I;if(this.value&&(I=this.data)!=null&&I.entries){I=_.J(this.data.entries);for(var y=I.next();!y.done;y=I.next())if((y=this.getRendererForEntry(y.value))&&this.getItemRendererValue(y)===this.value){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}}};
_.L.setInitialLabel=function(){if(this.data&&this.data.entries)for(var I=_.J(this.data.entries),y=I.next();!y.done;y=I.next())if(y=this.getRendererForEntry(y.value)){if(y.isSelected){this.label=this.ytComponentBehavior.getSimpleString(y.label);break}this.data.label&&(this.label=this.data.label)}};
_.L.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var I=_.J(this.data.entries),y=I.next();!y.done;y=I.next()){y=this.getRendererForEntry(y.value);var D=void 0;if((D=y)==null?0:D.isSelected)return this.getItemRendererValue(y)||-1}return-1};
_.L.getItemRendererValue=function(I){return"stringValue"in I||"int32Value"in I?I.stringValue||I.int32Value||null:null};
_.L.getRendererForEntry=function(I){return I.dropdownItemRenderer||I.privacyDropdownItemRenderer||I.navigationDropdownItemRenderer||null};
_.L.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("value-changed",this.value))};
_.L.updateValueFromBinding=function(I){this.value=I.detail.value};
n1.prototype.valueChangedForBinding=n1.prototype.valueChangedForBinding;n1.prototype.valueChanged=n1.prototype.valueChanged;n1.prototype.dataChanged=n1.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],n1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],n1.prototype,"value",void 0);_.W([_.M(),_.A("design:type",Object)],n1.prototype,"label",void 0);_.W([_.a0("#entries"),_.A("design:type",Object)],n1.prototype,"entries",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],n1.prototype,"disabled",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n1.prototype,"dataChanged",null);
_.W([_.Bp("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n1.prototype,"valueChanged",null);_.W([_.ke("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n1.prototype,"valueChangedForBinding",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],n1);
_.a(n1,"ytd-flat-dropdown-renderer",function(){if(g8f!==void 0)return g8f;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return g8f=I},{mode:1});var yFG;var p1=function(){var I=_.k.apply(this,arguments)||this;I.quizOptions=[];I.explanationPlaceholderText="";I.optionPlaceholderText="";I.correctAnswerIndex=-1;I.isMarkAnswerTooltipShown=!1;I.timer=0;return I};
_.E(p1,_.k);_.L=p1.prototype;_.L.dataChanged=function(){this.optionPlaceholderText=_.rY(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.rY(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.L.onMarkCorrectAnswer=function(I){var y,D=((y=this.quizOptions[this.correctAnswerIndex])==null?void 0:y.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[I.model.index]=Object.assign({},this.quizOptions[I.model.index],{explanationText:D,isCorrect:!0});this.correctAnswerIndex=I.model.index;this.quizOptions=[].concat(_.Td(this.quizOptions))};
_.L.updatePlaceholderTexts=function(){for(var I=!1,y=[],D=0;D<this.quizOptions.length;D++){var F=this.optionPlaceholderText+" "+(D+1),R=void 0;((R=this.quizOptions[D])==null?void 0:R.placeholderText)!==F?(I=!0,y.push(Object.assign({},this.quizOptions[D],{placeholderText:F}))):y.push(this.quizOptions[D])}I&&(this.quizOptions=y);this.isValid()?_.lj(this.hostElement,"yt-commentbox-post-enable"):_.lj(this.hostElement,"yt-commentbox-post-disable")};
_.L.getSimpleString=function(I){return _.rY(I)};
_.L.createQuizOptions=function(I){var y=[],D;I=(D=I==null?void 0:I.minQuizOptions)!=null?D:0;for(D=0;D<I;D++)y.push(this.createQuizOption());return y};
_.L.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Td(this.quizOptions),[this.createQuizOption()]))};
_.L.onInput=function(){this.quizOptions=[].concat(_.Td(this.quizOptions))};
_.L.onExplanationInput=function(){_.lj(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.L.onRemoveQuizOption=function(I){this.quizOptions.splice(I.model.index,1);I.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:I.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Td(this.quizOptions));this.quizOptions.length===0&&_.lj(this.hostElement,"yt-quiz-attachment-dismiss")};
_.L.updateHintRenderer=function(){var I=this;clearTimeout(this.timer);this.timer=setTimeout(function(){I.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.L.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var I=0,y=0,D=_.J(this.quizOptions),F=D.next();!F.done;F=D.next()){F=F.value;var R=void 0;if(((R=F.optionText)==null?void 0:R.trim())!==""||F.isCorrect){F.isCorrect&&y++;R=void 0;if(this.hasCustomOptionText&&((R=F.optionText)==null?void 0:R.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;I++}}return I>=
Number(this.editorInfo.minQuizOptions)&&y===1};
_.L.getPostCreateOptions=function(){for(var I=[],y=_.J(this.quizOptions),D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;((F=D.optionText)==null?void 0:F.trim())!==""&&I.push({pollOption:{text:D.optionText,explanation:D.explanationText},isCorrect:D.isCorrect})}return I};
_.L.getExplanationText=function(){var I;return((I=this.quizOptions[this.correctAnswerIndex])==null?void 0:I.explanationText)||""};
_.L.maybeDisplayMarkAnswerEduToolTip=function(){var I,y,D,F,R,O,w;this.shouldShowMarkAnswerTooltip()&&((I=this.editorInfo)==null?0:(y=I.markAnswerButton)==null?0:(D=y.buttonRenderer)==null?0:(F=D.hint)==null?0:(R=F.hintRenderer)==null?0:(O=R.content)==null?0:(w=O.bubbleHintRenderer)==null?0:w.text)&&(_.kD.getInstance(),I=dE(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,(I==null?void 0:I.length)>0&&this.optionSelectors&&_.zv(I[0],this.optionSelectors[0]))};
_.L.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var I=0,y=_.J(this.quizOptions),D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;((F=D.optionText)==null?void 0:F.trim())!==""&&I++;if(D.isCorrect)return!1}return I<2?!1:!0};
_.L.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.L.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.L.updateOptionTextFromBinding=function(I){if(I.target){var y=Array.from(_.XB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(I.target);if(y>=0){var D;this.quizOptions[y].optionText=(D=I.detail.value)!=null?D:""}}};
_.mD.Object.defineProperties(p1.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.editorInfo)==null?void 0:(y=I.addOptionButton)==null?void 0:y.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 I,y;return this.quizOptions.length<((y=(I=this.editorInfo)==null?void 0:I.maxQuizOptions)!=null?y:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(I){var y;return(y=I.optionText)==null?void 0:y.trim()})}}});
p1.prototype.updatePlaceholderTexts=p1.prototype.updatePlaceholderTexts;p1.prototype.dataChanged=p1.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],p1.prototype,"editorInfo",void 0);_.W([_.M(),_.A("design:type",Array)],p1.prototype,"quizOptions",void 0);_.W([_.M(),_.A("design:type",Object)],p1.prototype,"explanationPlaceholderText",void 0);_.W([_.cp(".option-selector-button"),_.A("design:type",Array)],p1.prototype,"optionSelectors",void 0);
_.W([_.Bp("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p1.prototype,"dataChanged",null);_.W([_.Y("editorInfo","isAllowedToAddOption","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],p1.prototype,"addAnswerButton",null);_.W([_.Y("editorInfo","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],p1.prototype,"isAllowedToAddOption",null);
_.W([_.Bp("quizOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p1.prototype,"updatePlaceholderTexts",null);_.W([_.Y("quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],p1.prototype,"hasCustomOptionText",null);_.W([_.yd({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],p1);
_.a(p1,"ytd-backstage-quiz-editor-renderer",function(){if(yFG!==void 0)return yFG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yFG=I},{mode:2});var DIR;var Fan=(pV.FIRSTDAYOFWEEK+1)%7;var R_n;var On_=[],Lau=0,JFG=0;Lau=0;JFG=24;if(.25*(JFG-Lau)<0)R_n=[];else{for(var w6_=Lau;w6_<JFG;w6_+=.25)On_.push(w6_);R_n=On_}var vTG=R_n.map(function(I){I=I*60*60;return{secondsSinceMidnight:I,text:(new K0(7)).format(new Date(0,0,0,0,0,I))}});var SeR;var ms=function(){var I=_.k.apply(this,arguments)||this;I.skipNextOpenDialog=!1;I.errorMessage="";I.previousMonthLabel=_.zC("PREVIOUS_MONTH_LABEL");I.nextMonthLabel=_.zC("NEXT_MONTH_LABEL");return I};
_.E(ms,_.k);_.L=ms.prototype;_.L.attached=function(){var I=this,y=new MutationObserver(function(){I.JSC$16136_calendarMain.scrollHeight>0&&(y.disconnect(),I.calendarConfig&&I.calendarConfig.selectedDate&&I.scrollToDate())});
y.observe(this.JSC$16136_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){y.disconnect()},1E3)};
_.L.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.L.onDateTextChange=function(){if(this.calendarConfig){var I=this.validateDateText();I.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(I.details)):this.textbox.setAttribute("invalid","")}};
_.L.handleDayClick=function(I){I.model.day.date&&(this.commitDate(I.model.day.date),this.dialog.close())};
_.L.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var I=cQt(this.calendarConfig.selectedDate,this.renderData);I!==void 0&&this.JSC$16136_calendarMain.scrollToIndex(I)}};
_.L.scrollToNextMonth=function(){this.JSC$16136_calendarMain.scrollToIndex(this.JSC$16136_calendarMain.firstVisibleIndex+1)};
_.L.scrollToPrevMonth=function(){this.JSC$16136_calendarMain.firstVisibleIndex===0&&this.JSC$16136_calendarMain.scrollTo(0,0);this.JSC$16136_calendarMain.scrollToIndex(this.JSC$16136_calendarMain.firstVisibleIndex-1)};
_.L.onFormSubmit=function(I){I.preventDefault();this.calendarConfig&&(I=this.validateDateText(),I.isValid&&(this.commitDate(I.details),this.dialog.close()))};
_.L.onEscOrClickingOutside=function(I){I=I.detail.path&&!!I.detail.path.length&&I.detail.path[0];if(I.classList.contains("ytd-calendar-date-picker")){I===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var y=0;y<this.dropdownButton.children.length;y++)this.dropdownButton.children[y]===I&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}I=this.textbox.value!==this.dateText;y=this.validateDateText();I&&y.isValid&&this.commitDate(y.details);this.dialog.close();this.textbox.value=
this.dateText};
_.L.commitDate=function(I){this.calendarConfig&&(this.set("calendarConfig.selectedDate",I),_.lj(this.hostElement,"ytd-calendar-date-selected",I))};
_.L.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var I=this.textbox.value;var y=new Date;I=(new Rzq(2)).parse(I,y,{validate:!0})===I.length?dbJ(y):void 0;if(!I)return this.errorMessage=_.zC("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};y=this.calendarConfig.start;var D=this.calendarConfig.end;if(pXq(I,y))return this.errorMessage=_.zC("ENTER_DATE_OR_LATER",{allowed_date:kwq(y)}),{isValid:!1,details:void 0};if(pXq(D,I))return this.errorMessage=
_.zC("ENTER_DATE_OR_EARLIER",{allowed_date:kwq(D)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:I}};
_.mD.Object.defineProperties(ms.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?kwq(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var I=this.calendarConfig,y=[],D=0;D<7;D++)y.push(pV.NARROWWEEKDAYS[(D+Fan)%7]);D=[];for(var F=new Date(I.start.year,I.start.month);F.getFullYear()<I.end.year||F.getFullYear()===I.end.year&&F.getMonth()<=I.end.month;){var R=D,O=R.push,w=F.getFullYear(),v=F.getMonth(),P=I,K=void 0,r=[],N=Object.freeze({extraCssClass:"invisible",debugClass:""}),h=new Date(w,v),x=dbJ(h);h=h.getDay();for(var q=dbJ(new Date);x.month===
v;){h!==Fan&&K||(K=Array.from({length:7}).fill(N),r.push(K));var X={date:{year:w,month:v,day:x.day},extraCssClass:"",debugClass:""};P.selectedDate&&X.date&&ntA(X.date,P.selectedDate)&&(X.extraCssClass+=" selected");if(pXq(x,P.start)||pXq(P.end,x))X.extraCssClass+=" disabled";ntA(x,q)&&(X.extraCssClass+=" today");X.extraCssClass=X.extraCssClass.trim();K[(h-Fan+7)%7]=X;x=Mso(x);h=(h+1)%7}O.call(R,{weeks:r,monthLabel:pV.SHORTMONTHS[v]+" "+w,year:w,month:v,monthLabelExtraCssClass:r[0][2]===N?"shift-down-label":
""});F.setMonth(F.getMonth()+1)}return{months:D,daysOfWeekLabel:y}}}}});
ms.prototype.onEscOrClickingOutside=ms.prototype.onEscOrClickingOutside;ms.prototype.scrollToDate=ms.prototype.scrollToDate;_.W([_.M(),_.A("design:type",Object)],ms.prototype,"calendarConfig",void 0);_.W([_.M(),_.A("design:type",Object)],ms.prototype,"skipNextOpenDialog",void 0);_.W([_.M(),_.A("design:type",Object)],ms.prototype,"errorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],ms.prototype,"previousMonthLabel",void 0);
_.W([_.M(),_.A("design:type",Object)],ms.prototype,"nextMonthLabel",void 0);_.W([_.a0("#textbox"),_.A("design:type",HTMLInputElement)],ms.prototype,"textbox",void 0);_.W([_.a0("#calendar-dialog"),_.A("design:type",Object)],ms.prototype,"dialog",void 0);_.W([_.a0("#calendar-main"),_.A("design:type",Object)],ms.prototype,"JSC$16136_calendarMain",void 0);_.W([_.a0("#date-picker"),_.A("design:type",HTMLElement)],ms.prototype,"dropdownButton",void 0);
_.W([_.Y("calendarConfig.selectedDate"),_.A("design:type",String),_.A("design:paramtypes",[])],ms.prototype,"dateText",null);_.W([_.Y("calendarConfig","calendarConfig.selectedDate"),_.A("design:type",Object),_.A("design:paramtypes",[])],ms.prototype,"renderData",null);_.W([_.ke("renderData","calendarConfig.selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ms.prototype,"scrollToDate",null);
_.W([_.z4("iron-overlay-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ms.prototype,"onEscOrClickingOutside",null);_.W([_.I6({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ms);
_.a(ms,"ytd-calendar-date-picker",function(){if(SeR!==void 0)return SeR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SeR=I},{mode:2});var tiM=_.zC("UTC_OFFSET_FORMAT",{utc_offset:(new K0("Z")).format(new Date)}),P6M=(new Date).getTimezoneOffset()*-60,KaP=new Date,UIG,rF_=PF(KaP.getTimezoneOffset());UIG=egR(sue(rF_,KaP));var jvn=_.zC("LOCAL_TIME_GMT_LABEL",{gmt_text:UIG.replace("+0","+").replace("-0","-").replace(":00","")}),Mc=function(){var I=_.k.apply(this,arguments)||this;I.selectedTimeIndex=0;I.selectedTimezoneIndex=0;I.timeOfDayOptions=vTG;return I};
_.E(Mc,_.k);_.L=Mc.prototype;_.L.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var I=zUt();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=I,this.selectedTimeIndex=0;else{var y=ar_(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},I,{selectedDate:y.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(D){return D.secondsSinceMidnight===y.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.L.onDatePicked=function(I){this.selectedDate=I.detail};
_.L.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.lj(this.hostElement,"ytd-date-time-selection-cancelled")};
_.L.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var I=this.selectedDate;I=new Date(I.year,I.month,I.day);_.lj(this.hostElement,"ytd-date-time-selection-update",Math.floor(I.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+I.getTimezoneOffset()*60))}};
_.L.getTimezoneFormat=function(I){return I.localizedDisplayText?I.localizedDisplayText:_.zC("TIMEZONE_FORMAT",{utc_offset_text:""+I.localizedUtcOffset,city_name:""+I.localizedName})};
_.L.updateSelectedTimeIndexFromBinding=function(I){this.selectedTimeIndex=I.detail.value};
_.L.updateSelectedTimezoneIndexFromBinding=function(I){this.selectedTimezoneIndex=I.detail.value};
_.mD.Object.defineProperties(Mc.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=this.data.timezoneOptions;var y={name:"Etc/Unknown",localizedName:_.zC("LOCAL_TIME_LABEL"),localizedUtcOffset:tiM,utcOffsetSec:""+P6M,localizedDisplayText:jvn};I?I.length&&I[0].name!==y.name&&(I[0].localizedDisplayText||(y.localizedDisplayText=""),I.unshift(y)):I=[y];return I}}},
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]}}});
Mc.prototype.onDateTimeTimezoneChange=Mc.prototype.onDateTimeTimezoneChange;Mc.prototype.onDatePicked=Mc.prototype.onDatePicked;Mc.prototype.updateDefaultSelectedValue=Mc.prototype.updateDefaultSelectedValue;_.W([_.M(),_.A("design:type",Object)],Mc.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Mc.prototype,"calendarConfig",void 0);_.W([_.M(),_.A("design:type",Object)],Mc.prototype,"selectedDate",void 0);_.W([_.M(),_.A("design:type",Object)],Mc.prototype,"selectedTimeIndex",void 0);
_.W([_.M(),_.A("design:type",Object)],Mc.prototype,"selectedTimezoneIndex",void 0);_.W([_.a0("#time-listbox"),_.A("design:type",Object)],Mc.prototype,"timeListBox",void 0);_.W([_.a0("#timezone-listbox"),_.A("design:type",Object)],Mc.prototype,"timezoneListBox",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Mc.prototype,"rendererStamperBehavior",void 0);_.W([_.Y("data.timezoneOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mc.prototype,"timeZones",null);
_.W([_.Bp("data","timeZones"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mc.prototype,"updateDefaultSelectedValue",null);_.W([_.Y("selectedTimezoneIndex","timeZones"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mc.prototype,"selectedTimezone",null);_.W([_.Y("selectedTimeIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],Mc.prototype,"selectedTime",null);
_.W([_.z4("ytd-calendar-date-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Mc.prototype,"onDatePicked",null);_.W([_.ke("selectedTimezone","selectedTime","selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mc.prototype,"onDateTimeTimezoneChange",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Mc);
_.a(Mc,"ytd-date-time-picker-renderer",function(){if(DIR!==void 0)return DIR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return DIR=I},{mode:1});var oTg;var z7=function(){var I=_.k.apply(this,arguments)||this;I.boundOnTapDismissButton=function(){I.dismissTapHandler()};
I.dismissButtonOverrides={size:"XS"};return I};
_.E(z7,_.k);z7.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}}}}}};
z7.prototype.dismissTapHandler=function(){_.lj(this.hostElement,"yt-backstage-attachment-dismissed")};
z7.prototype.computeAttachmentType=function(I){return I?I.backstageImageRenderer?"image":I.videoRenderer?"video":"none":"none"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],z7.prototype,"attachmentPreview",void 0);_.W([_.M(),_.A("design:type",Object)],z7.prototype,"dismissButton",void 0);_.W([_.M(),_.A("design:type",Object)],z7.prototype,"boundOnTapDismissButton",void 0);
_.W([_.M(),_.A("design:type",Object)],z7.prototype,"dismissButtonOverrides",void 0);_.W([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.A("design:type",String)],z7.prototype,"attachmentType",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],z7);
_.a(z7,"ytd-backstage-dismissable-attachment",function(){if(oTg!==void 0)return oTg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return oTg=I},{mode:1});var Nsa;var kb=function(){var I=_.k.apply(this,arguments)||this;I.selectedVideoId=void 0;I.picker=void 0;I.dismissButtonOverrides={size:"XS"};I.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return I};
_.E(kb,_.k);_.L=kb.prototype;_.L.onServiceRequestCompleted=function(I){I.stopPropagation()};
_.L.handleAddVideoPreviewAction=function(I){I=this.get("addVideoPreviewAction",I);this.onGetVideoPreviewSuccess(I)};
_.L.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}}}}}};
_.L.onLaunchVideoPicker=function(I){var y=this,D=_.rY(this.get("addVideoLinkAction.title",I)),F=this.get("addVideoLinkAction.onePickHostId",I);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",I);F&&(this.picker||(D=_.DQn(_.tw4(F).setTitle(D).addView(ZTf()).addView(VbW()),function(R){y.onPickVideo(R)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",I)||D.addView("youtube"),this.picker=D.build()),this.picker.setVisible(!0))};
_.L.onPickVideo=function(I){if(I)if(I.action==="cancel")_.lj(this.hostElement,"yt-video-link-button-cancel");else if(I.action==="picked"){I=I.docs;if(!I||I.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(I=(I==null?0:I.length)?I[0]:void 0)?I.id:void 0;this.setVideoPreview()}};
_.L.setVideoPreview=function(){var I=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){I.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.L.onGetVideoPreviewSuccess=function(I){if(I&&I.videoPreview&&I.cancelButton)this.videoPreview=I.videoPreview,this.cancelButton=I.cancelButton,_.lj(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.L.onGetVideoPreviewError=function(){this.cancel()};
_.L.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.lj(this.hostElement,"yt-video-link-cancel")};
_.L.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
kb.prototype.onServiceRequestCompleted=kb.prototype.onServiceRequestCompleted;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],kb.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kb.prototype,"videoPreview",void 0);_.W([_.M(),_.A("design:type",Object)],kb.prototype,"cancelButton",void 0);_.W([_.M(),_.A("design:type",Object)],kb.prototype,"getVideoPreviewCommand",void 0);_.W([_.M(),_.A("design:type",Object)],kb.prototype,"dismissButtonOverrides",void 0);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],kb.prototype,"onServiceRequestCompleted",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],kb);
_.a(kb,"ytd-backstage-video-link-attachment",function(){if(Nsa!==void 0)return Nsa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Nsa=I},{mode:1});var h_u;var xIG;var lza;var dl=function(){return _.k.apply(this,arguments)||this};
_.E(dl,_.k);dl.prototype.dataChanged=function(){this.active=!1};
dl.prototype.onTap=function(){_.lj(this.hostElement,"yt-select-emoji-suggestion",this.data)};
dl.prototype.identity=function(I){return I};
_.mD.Object.defineProperties(dl.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;if((I=this.data)==null?0:(y=I.image)==null?0:(D=y.thumbnails)==null?0:(F=D[0])==null?0:F.url)return I=this.data.image.thumbnails[0].url,I.startsWith("data:image/svg+xml")?ia(I):_.VA(I)}}});
dl.prototype.dataChanged=dl.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],dl.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],dl.prototype,"active",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dl.prototype,"dataChanged",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],dl.prototype,"imageSrc",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],dl);
_.a(dl,"ytd-emoji-suggestion",function(){if(lza!==void 0)return lza;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lza=I},{mode:1});var uUz=/.*([:@#].*?)$/,al=function(){var I=_.k.apply(this,arguments)||this;I.suggestions=[];I.suggestionIndex=-1;I.JSC$16164_lastSuggestionRange=null;return I};
_.E(al,_.k);_.L=al.prototype;_.L.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.L.getSuggestions=function(I){var y=[],D=brn(this.emojiManager,I.substr(0,3));if(D)for(var F in D)if(F.toLocaleLowerCase().indexOf(I)===0){var R=D[F];if(R&&R.emojiId){R=Uy(this.emojiManager,R.emojiId);var O=void 0,w=void 0,v=void 0,P=void 0,K=((O=R)==null?0:O.isCustomEmoji)?(w=R)==null?void 0:(v=w.shortcuts)==null?void 0:v[0]:(P=R)==null?void 0:P.emojiId;O=void 0;y.push({suggestion:{image:(O=R)==null?void 0:O.image,alt:K,text:F}});if(y.length>=64)break}}return y?y.sort(function(r,N){return N.suggestion.text<
r.suggestion.text?-1:N.suggestion.text===r.suggestion.text?0:1}):null};
_.L.insertSuggestion=function(I){_.lj(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16164_lastSuggestionRange,text:I.alt});this.dropdown.opened=!1};
_.L.updateSuggestionsAtCaret=function(I){this.updateSuggestions(I,this.retrieveTextBeforeRange(I))};
_.L.offsetStartOfRangeBy=function(I,y){I.startOffset>=y&&I.setStart(I.startContainer,I.startOffset-y)};
_.L.updateSuggestions=function(I,y){var D=this;this.JSC$16164_lastSuggestionRange&&(this.JSC$16164_lastSuggestionRange.detach(),this.JSC$16164_lastSuggestionRange=null);if((y=uUz.exec(y))&&y.length&&(y=y[y.length-1].toLocaleLowerCase(),y.length>2||y===":_")&&(this.offsetStartOfRangeBy(I,y.length),this.JSC$16164_lastSuggestionRange=I,(I=this.getSuggestions(y))&&I.length)){this.suggestions=I;_.YC(this,function(){D.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(I.length-1);return}this.dropdown.opened=!1};
_.L.onKeyDown=function(I){if(this.dropdown.opened)switch(I.key){case "Escape":this.dropdown.opened=!1;I.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);I.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);I.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),I.preventDefault()}};
_.L.onKeyUp=function(I,y){switch(I.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(y);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(y)}};
_.L.onKeyPress=function(I){I.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),I.preventDefault())};
_.L.changeSuggestionIndex=function(I){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(I+this.suggestions.length)%this.suggestions.length,I=this.dropdownContent.children[this.suggestionIndex],I.active=!0,this.dropdownContent.scrollTop=I.offsetTop)};
_.L.retrieveTextBeforeRange=function(I){var y=I.startContainer;return y&&y.nodeType===Node.TEXT_NODE?y.textContent.substr(0,I.startOffset):""};
al.prototype.onKeyPress=al.prototype.onKeyPress;al.prototype.onKeyUp=al.prototype.onKeyUp;al.prototype.onKeyDown=al.prototype.onKeyDown;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Array)],al.prototype,"suggestions",void 0);_.W([_.M(),_.A("design:type",_.P9)],al.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Number)],al.prototype,"verticalSuggestionsOffset",void 0);
_.W([_.a0("#dropdown"),_.A("design:type",Object)],al.prototype,"dropdown",void 0);_.W([_.a0("#dropdown-content"),_.A("design:type",HTMLDivElement)],al.prototype,"dropdownContent",void 0);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],al.prototype,"onKeyDown",null);_.W([_.z4("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent,Range]),_.A("design:returntype")],al.prototype,"onKeyUp",null);
_.W([_.z4("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],al.prototype,"onKeyPress",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-emoji-input"})],al);
_.a(al,"ytd-emoji-input",function(){if(xIG!==void 0)return xIG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xIG=I},{mode:2});var qez;var co=function(){var I=_.k.apply(this,arguments)||this;I.hasMaxOptions=!1;return I};
_.E(co,_.k);_.L=co.prototype;_.L.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.L.setPrefilledChoices=function(I){var y=this;this.set("pollOptions",[]);var D;for(D=0;D<Math.min(I.length,this.data.maxPollOptions);D++)this.push("pollOptions",I[D].substring(0,this.data.maxPollOptionChars));for(;D<this.data.minPollOptions;D++)this.push("pollOptions","");this.hasMaxOptions=D>=this.data.maxPollOptions;_.YC(this,function(){for(var F=y.pollOptions,R=_.XB(y.hostElement).querySelectorAll(".poll-option-input"),O=0;O<R.length;O++)R[O].value=F[O]})};
_.L.focusChanged=function(){_.pg(this.hostElement)};
_.L.onInput=function(){var I=this;_.v4(this,"onInput",function(){I.isValid()?_.lj(I.hostElement,"yt-commentbox-post-enable"):_.lj(I.hostElement,"yt-commentbox-post-disable")},300)};
_.L.setPollOptions=function(){var I=[],y,D=((y=this.data)==null?0:y.minPollOptions)?this.data.minPollOptions:0;for(y=0;y<D;y++)I.push("");return I};
_.L.addPollOption=function(){var I=this;_.lj(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.w2.addLowPriorityJob(function(){var y;(y=_.XB(I.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||y.focus()})};
_.L.onRemovePollOption=function(I){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.lj(this.hostElement,"yt-poll-attachment-dismiss")):(I=this.repeat.indexForElement(I.target.parentNode),I!==null&&(this.splice("pollOptions",I,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.lj(this.hostElement,"yt-commentbox-post-enable"))))};
_.L.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.L.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var I=0,y=this.pollOptions.length;I<y;I++)if(this.pollOptions[I].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.L.getPollOptions=function(){return this.pollOptions};
_.L.setPollOptionsFromInputs=function(){for(var I=_.XB(this.hostElement).querySelectorAll(".poll-option-input"),y=0;y<I.length;y++)this.pollOptions[y]=I[y].value.trim()};
_.L.clearPollOptions=function(){var I=_.XB(this.hostElement).querySelectorAll(".poll-option-input");I=_.J(I);for(var y=I.next();!y.done;y=I.next())y.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.L.getSimpleString=function(I){return _.rY(I)};
_.L.updateValueFromBinding=function(I){if(I.target&&this.pollOptions){var y=Array.from(_.XB(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(I.target);if(y>=0){var D;this.pollOptions[y]=(D=I.detail.value)!=null?D:"";this.notifyPath("pollOptions."+y)}}};
co.prototype.dataChanged=co.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],co.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],co.prototype,"pollOptions",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],co.prototype,"hasMaxOptions",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],co.prototype,"enableCreationBox",void 0);
_.W([_.a0("#repeat"),_.A("design:type",sM)],co.prototype,"repeat",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],co.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-poll-attachment"})],co);
_.a(co,"ytd-poll-attachment",function(){if(qez!==void 0)return qez;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qez=I},{mode:2});var ETg;var GAM;var X6n;var QvM;var Wo=function(){return _.k.apply(this,arguments)||this};
_.E(Wo,_.k);_.mD.Object.defineProperties(Wo.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Wo.prototype,"rendererBehaviors",void 0);_.W([_.M(),_.A("design:type",Object)],Wo.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wo.prototype,"focused",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("focused"),_.A("design:type",Object),_.A("design:paramtypes",[])],Wo.prototype,"ariaSelected",null);_.W([_.I6({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Wo);
_.a(Wo,"yt-user-mention-suggestion-renderer",function(){if(QvM===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;X6n===void 0&&(X6n=document.createElement("template"));var F=X6n;D.call(y,F.content.cloneNode(!0),I.content.firstChild);QvM=I}I=QvM;return I},{mode:2});var YeM;var fze;var C1=function(){var I=_.k.apply(this,arguments)||this;I.focusedSuggestionIndex=-1;return I};
_.E(C1,_.k);_.L=C1.prototype;_.L.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.L.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.L.setFocusedSuggestionIndex=function(I){!this.data||!this.data.suggestions||I<0||I>=this.data.suggestions.length||(this.focusedSuggestionIndex=I,I=this.getSuggestionId(I),this._setFocusedSuggestionId(I))};
_.L.advanceSuggestion=function(I){this.focusedSuggestionIndex===-1||I!==-1&&I!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+I),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.L.ensureSuggestionVisible=function(I){I=this.getSuggestionId(I);I=_.XB(this.hostElement).querySelector("[id="+I+"]");I!=null&&(I.offsetTop<this.hostElement.scrollTop?I.scrollIntoView(!0):I.offsetTop+I.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&I.scrollIntoView(!1))};
_.L.getSuggestionId=function(I){return"user-mention-suggestion-"+I};
_.L.onSuggestionTap=function(I){var y=_.u(I.model.item,Vxa);this.ytRendererBehavior.logExplicitClick(y);_.lj(this.hostElement,"yt-user-mention-suggestion-selected",{data:y,index:I.model.index})};
_.L.onSuggestionMouseMove=function(I){I.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(I.model.index)};
_.L.isSuggestionFocused=function(I,y){return I===y};
_.L.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.L.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("focused-suggestion-id-changed",this.focusedSuggestionId))};
C1.prototype.focusedSuggestionIdChangedForBinding=C1.prototype.focusedSuggestionIdChangedForBinding;C1.prototype.onDomChange=C1.prototype.onDomChange;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],C1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],C1.prototype,"focusedSuggestionIndex",void 0);_.W([_.M({readOnly:!0}),_.A("design:type",String)],C1.prototype,"focusedSuggestionId",void 0);
_.W([_.z4("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C1.prototype,"onDomChange",null);_.W([_.ke("focusedSuggestionId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C1.prototype,"focusedSuggestionIdChangedForBinding",null);_.W([_.I6({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],C1);
_.a(C1,"yt-user-mention-suggestions-dropdown",function(){if(fze===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;YeM===void 0&&(YeM=document.createElement("template"));var F=YeM;D.call(y,F.content.cloneNode(!0),I.content.firstChild);fze=I}I=fze;return I},{mode:2});var Bo=function(){var I=_.k.apply(this,arguments)||this;I.suggestionsResponse=null;I.activeMention=null;I.selectionChangeListener=I.onSelectionChange.bind(I);I.handlesEnabled=_.l("enable_handles_in_mention_suggest_posts");I.handlesInMentionSuggestionsEnabled=_.l("handles_in_mention_suggest_posts");I.zeroPrefixMentionSuggestionEnabled=_.l("enable_zero_prefix_mention_suggestion_web");I.pendingQuery=null;I.flowNonce=null;return I};
_.E(Bo,_.k);_.L=Bo.prototype;_.L.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.L.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.L.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.L.hasSuggestions=function(I){return!!(I&&I.suggestions&&I.suggestions.length>0)};
_.L.onInput=function(){var I=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var y=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),D=this.activeMention.JSC$11621_getText().slice(-1)===" ",F=this.activeMention.JSC$11621_getText().slice(-2,-1)===" ",R="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11621_getText().slice(-2,
-1))>=0;R=this.zeroPrefixMentionSuggestionEnabled&&R;if(this.activeMention.isCollapsed()||(y||F||R)&&D)this.cancelActiveMention();else{var O=this.activeMention.JSC$11621_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.v4(this,"requestSuggestions",function(){I.requestSuggestions(O)},100)}}}};
_.L.onServiceRequestSent=function(I){I.stopPropagation()};
_.L.onServiceRequestCompleted=function(I){I.stopPropagation();I=I.detail.data;I.query&&(!this.pendingQuery||this.pendingQuery!==I.query)||!this.zeroPrefixMentionSuggestionEnabled&&I.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=I,this.hasSuggestions(I)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.L.onServiceRequestError=function(I){I.stopPropagation()};
_.L.onUserMentionSuggestionSelected=function(I){this.selectSuggestion(I.detail.data,I.detail.index)};
_.L.onSelectionChange=function(){if(this.activeMention){var I=_.Br(),y=this.activeMention.JSC$11621_containsRange(I);I=I&&this.containsHelper(this.dropdown,I.getContainer());y||I||this.cancelActiveMention()}};
_.L.containsHelper=function(I,y){var D;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)===!0)return I.contains(y);for(;y;){if(y===I)return!0;y=y instanceof ShadowRoot?y.host:y.parentNode}return!1};
_.L.maybeStartSuggest=function(){var I=_.Br();if(I&&I.isCollapsed()){var y=I.JSC$11621_getStartNode(),D=I.JSC$11621_getStartOffset();if(y instanceof Text&&!(D<1)){var F=y.textContent;!(F=F&&F.charAt(D-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(F)<0||(this.activeMention=_.bg(y,D-1,I.JSC$11621_getEndNode(),I.JSC$11621_getEndOffset()),this.flowNonce=eC(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.L.updateActiveMention=function(){if(this.activeMention){var I=_.Br();I&&I.isCollapsed()&&(this.activeMention=_.bg(this.activeMention.JSC$11621_getStartNode(),this.activeMention.JSC$11621_getStartOffset(),I.JSC$11621_getEndNode(),I.JSC$11621_getEndOffset()))}};
_.L.requestSuggestions=function(I){if(this.activeMention){var y={suggestions_query:I};this.pendingQuery=I;_.E$(this.hostElement,[this.suggestionsEndpoint,y])}};
_.L.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()};
_.L.focusPreviousSuggestion=function(I){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),I.preventDefault())};
_.L.focusNextSuggestion=function(I){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),I.preventDefault())};
_.L.selectFocusedSuggestion=function(I){if(this.hasSuggestions(this.suggestionsResponse)){var y=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.u(y,Vxa)&&(this.selectSuggestion(_.u(y,Vxa),this.dropdown.focusedSuggestionIndex),I.preventDefault())}};
_.L.selectSuggestion=function(I,y){if(I){var D=this.activeMention;if(D){var F=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&I.handle?_.wC(F,"\u00a0\u2068@"+I.handle+"\u2069\u00a0"):this.handlesEnabled?_.wC(F,"\u00a0"+I.displayName+"\u00a0"):_.wC(F,"\u00a0@"+I.displayName+"\u00a0");yr(F,"/channel/"+I.channelId);F.classList.add("yt-formatted-string","yt-simple-endpoint");F.setAttribute("spellcheck","false");D.isCollapsed()||D.JSC$11621_removeContents();D.insertNode(F,!0);I=document.createTextNode(" ");
F.parentNode.insertBefore(I,F.nextSibling);window.getSelection().collapse(I,1);y={suggestionSelected:{suggestionIndex:y}};if(this.zeroPrefixMentionSuggestionEnabled){var R;y.suggestionSelected.isZeroPrefix=((R=this.suggestionsResponse)==null?void 0:R.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",y);this.cancelActiveMention();_.lj(this.hostElement,"yt-mention-inserted")}}};
_.L.getPositionTarget=function(I){return I&&I.getBrowserRangeObject()};
_.L.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.L.onFocusedSuggestionIdChanged=function(I){var y=_.lpA(this.hostElement)[0];y&&(I.detail.value?y.setAttribute("aria-activedescendant",I.detail.value):y.removeAttribute("aria-activedescendant"))};
_.L.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.L.logGELEvent=function(I,y){I={eventType:I,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};y&&(I=Object.assign(I,y));_.Jq("userMentionAutoCompleteBoxEvent",I)};
Bo.prototype.onDomChange=Bo.prototype.onDomChange;Bo.prototype.onUserMentionSuggestionSelected=Bo.prototype.onUserMentionSuggestionSelected;Bo.prototype.onServiceRequestError=Bo.prototype.onServiceRequestError;Bo.prototype.onServiceRequestCompleted=Bo.prototype.onServiceRequestCompleted;Bo.prototype.onServiceRequestSent=Bo.prototype.onServiceRequestSent;Bo.prototype.onInput=Bo.prototype.onInput;_.W([_.Q(_.CP),_.A("design:type",Object)],Bo.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Bo.prototype,"suggestionsEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],Bo.prototype,"suggestionsResponse",void 0);_.W([_.M(),_.A("design:type",Object)],Bo.prototype,"activeMention",void 0);_.W([_.a0("#dropdown"),_.A("design:type",Object)],Bo.prototype,"dropdown",void 0);_.W([_.a0("#iron-dropdown"),_.A("design:type",Object)],Bo.prototype,"ironDropdown",void 0);
_.W([_.z4("input"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Bo.prototype,"onInput",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bo.prototype,"onServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bo.prototype,"onServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bo.prototype,"onServiceRequestError",null);_.W([_.z4("yt-user-mention-suggestion-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bo.prototype,"onUserMentionSuggestionSelected",null);
_.W([_.z4("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bo.prototype,"onDomChange",null);_.W([_.I6({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Bo);
_.a(Bo,"yt-user-mention-autosuggest-input",function(){if(GAM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ETg===void 0&&(ETg=document.createElement("template"));var F=ETg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GAM=I}I=GAM;return I},{mode:2});var i$=null;
_.T4({is:"ytd-commentbox",_template:function(){if(h_u!==void 0)return h_u;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return h_u=I},
behaviors:[_.guo.YtHostElementBehavior,_.CP,_.cb.YtActionHandlerBehavior,_.vb.YtComponentBehavior,_.XN.YtRendererstamperBehavior,_.Sjf.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(I,y){return _.nC(I.entities,"aadcGuidelinesStateEntityPayload",y)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(I,y){return _.nC(I.entities,"commentboxStateEntity",y)},
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 _.rQ}},
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:_.l("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.l("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",_.MX(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(I){this.fire(I?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(I){this.set("submitButtonDisabled",void 0);this.clear();I&&this.computeIsEmojiButtonDisplayed_(I)&&(I=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&I.updateEmojiCategories()},
observePrefilledImage_:function(I,y,D){this.isValidPrefilledImage_(I,y,D)&&(this.prefilledAttachment_="image",this.prefilledImageData_=y,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(I,y){this.isValidPrefilledVideo_(I,y)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(I){I&&I.pollData&&I.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(I.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.aZ();this.focus()},
detached:function(){document.removeEventListener("tap",_.MX(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(I){I=I.detail;I=I.isCustomEmoji?I.shortcuts[0]:I.emojiId;var y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,I);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var I=_.Br();if(I){I=I.getBrowserRangeObject();for(var y=I.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return I;y=y.parentNode}}I=this.getEditableTextArea_();I=_.$C(I,I.childNodes.length);I.select();return I.getBrowserRangeObject()},
insertTextWithEmojis_:function(I,y,D){(y=this.emojiManager.createDocumentFragment(y,!0,!1,D===void 0?!0:D))&&y.childNodes.length!==0&&(I.collapsed||I.deleteContents(),D=y.lastChild,I.insertNode(y),_.NVR(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var I=_.Br();if(I){var y=I.JSC$11621_getStartNode(),D=I.JSC$11621_getEndNode();if(W8q(y)&&W8q(D)){var F=I.JSC$11621_getStartOffset(),R;if(_.pz&&y.nodeType===Node.ELEMENT_NODE&&(R=_.dRg(y)))_.$C(R,0).select();else{R=EA(y)?y:_.gB(y,EA);var O=EA(D)?D:_.gB(D,EA);if(R||O)if(I.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){I=!0;F===y.length&&(I=!1);if(i$==="end"||i$==="right")I=!1;y=y.parentNode;I=[].concat(_.Td(y.parentNode.childNodes)).indexOf(y)+(I?0:1);_.$C(y.parentNode,
I).select()}}else R?R.previousSibling&&R.previousSibling.length>0?_.bg(D,I.JSC$11621_getEndOffset(),R.previousSibling,R.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),R.parentNode.insertBefore(y,R),_.bg(D,I.JSC$11621_getEndOffset(),y,0).select()):O&&(O.nextSibling&&O.nextSibling.length>0?_.bg(y,I.JSC$11621_getStartOffset(),O.nextSibling,1).select():(D=document.createTextNode("\u200b"),O.parentNode.insertBefore(D,O.nextSibling),_.bg(y,I.JSC$11621_getStartOffset(),D,D.length).select()));
i$=null}}else i$=null}else i$=null},
leftKeyPressed_:function(){i$="left"},
rightKeyPressed_:function(){i$="right"},
endKeyPressed_:function(){i$="end"},
maybeDeleteChip_:function(){var I=bs5(!0);if(I){var y=_.Br(),D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();_.Ap(D,y,I,I.childNodes.length).select()}},
maybeBackspaceChip_:function(){var I=bs5(!1);if(I){var y=_.Br(),D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();_.Ap(D,y,I,0).select()}},
maybeBackspaceChipWordMode_:function(I){var y=_.Br();if(y.isCollapsed()){var D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();var F=Hst(D,y,!0);F&&(_.Ap(D,y,F,0).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(I){var y=_.Br();if(y.isCollapsed()){var D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();var F=Hst(D,y,!1);F&&(_.Ap(D,y,F,F.childNodes.length).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
onTap_:function(I){if(!I.defaultPrevented&&(I.currentTarget.tagName==="YTD-COMMENTBOX"&&EA(I.target)&&I.preventDefault(),this.isEmojiPickerDisplayed)){var y=this.$$("#emojis"),D=this.$$("#emoji-button"),F=this.getEditableTextArea_();if((I=I.path?I.path:I.composedPath&&I.composedPath())&&!I.includes(y)&&!I.includes(F)&&!I.includes(D))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(I,y,D){return I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y!==void 0&&y.encryptedBlobId!==null&&y.sourceExternalVideoId!==null&&D!==void 0&&D.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(I,y){return I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!y&&!!y.videoRenderer&&!!y.videoRenderer.videoId},
isValidPrefilledAttachment_:function(I,y,D){return this.isValidPrefilledImage_(I,y,D)||this.isValidPrefilledVideo_(I,D)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.l("enable_multi_image_post_creation")){var I=this.$$("ytd-backstage-multi-image-select-renderer");I&&I.hasImages()&&I.cancel()}else(I=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&I.cancel();(I=this.$["poll-attachment"])&&this.hasPoll_&&I.clearPollOptions();(I=this.$["image-poll-attachment"])&&this.hasImagePoll_&&I.resetPollOptions();(I=this.$["quiz-attachment"])&&this.hasQuiz_&&I.resetQuizOptions();
(I=this.$["video-link-attachment"])&&this.hasVideo_&&I.cancel();(I=this.$["access-restrictions-selector"].firstElementChild)&&I.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 _.XB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.XB(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(I,y){I=B3_(I,this.emojiManager,y).cloneNode(!0);for(y=I.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var D=_.Dw();_.$RM(D,y);y=D.nextSibling;break;case "DIV":(D=y.lastChild)&&y.nextSibling&&_.LA(_.Dw(),D);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.O5(_.Dw(),y);D&&D.nodeName==="BR"&&_.dM(D);D=y;y.hasChildNodes()?(y=y.firstChild,
_.bGe(D)):(y=y.nextSibling,_.dM(D));break;default:y=y.nextSibling}return eUW(I)},
onAddImageError_:function(I){I.stopPropagation();this.errorMessage_=_.Ug(I.detail)},
setTextAreaValue_:function(I){I||(I="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof I==="string"&&(I={runs:[{text:I}]});y.text=I},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();i$=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var I=this.getEditableTextArea_();I&&(_.$C(I,I.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Pi("HTML_DIR")==="rtl"){var I=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";I.setAttribute("dir",y)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var I;return JwS((I=this.$["quiz-attachment"])==null?void 0:I.getExplanationText())||JwS(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var I=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(I=this.emojiInput.retrieveTextBeforeRange(y))}this.insertText_(I,!0);this.updateCharCount_();this.setSubmitButton_();I=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=I.scrollHeight>I.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var I=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:I})},
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(I){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(I)},
onPasteEmoji_:function(I){I.preventDefault();I.stopImmediatePropagation();I=I.clipboardData.getData("text/plain");this.insertText_(I,!1,!1)},
insertText_:function(I,y,D){y=y===void 0?!1:y;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&I){var F=this.getInputRange_().cloneRange();this.emojiManager&&F&&(y&&this.emojiInput.offsetStartOfRangeBy(F,I.length),this.insertTextWithEmojis_(F,I,D),CfC(this.getEditableTextArea_().lastChild)||(F=this.getInputRange_().cloneRange()),F&&(this.emojiInput.updateSuggestions(F,I),this.updateSuggestionOffset_(F)))}},
setSubmitButton_:function(){if(this.data){var I=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",y=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(I||y){var D=this.getTextAreaValue().trim();y=D===this.previousText_;D=!D||this.aboveCharLimit_;I&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=this.aboveCharLimit_);this.submitButtonDisabled=
y||D||!this.getTextLength();I&&_.l("enable_post_scheduling")&&(this.submitButtonDisabled=y&&!this.scheduledPublishTimeSec_||D)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.rY,computeCreationBoxClass_:function(I){return I?"focused":"not-focused"},
computeFooterMessageClass_:function(I,y){return y?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(I,y){return y?y:I},
computeFooterMessageHidden_:function(I,y){return!y&&!I},
computePlaceholderText_:function(I,y,D){return(D==="video"||D==="image")&&(I==null?0:I.prefilledPlaceholderText)?I==null?void 0:I.prefilledPlaceholderText:y==="poll"||y==="image-poll"?I==null?void 0:I.pollPostPlaceholderText:y==="quiz"?I==null?void 0:I.quizPostPlaceholderText:y==="image"?I==null?void 0:I.imagePostPlaceholderText:I==null?void 0:I.placeholderText},
computeHideAttachmentButtons_:function(I,y,D,F){return I===void 0?!1:F&&this.getSimpleString(F)===this.getSimpleString(I.rateLimitErrorMessage)?!0:y!=="none"||D!=="none"||!I.videoLinkButton&&!I.pollButton&&!I.imagePollButton&&!I.quizButton&&!I.imageButton},
computeHideDismissableAttachment_:function(I){return I!=="image"&&I!=="video"},
computeHasVideo_:function(I){return I==="video"},
computeHasImage_:function(I){return I==="image"},
computeHasPoll_:function(I){return I==="poll"},
computeHasImagePoll_:function(I){return I==="image-poll"},
computeHasQuiz_:function(I){return I==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(I){return I&&I.backstageAttachment?I.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!I.backstageAttachment.quizRenderer&&!I.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(I){if(this.isValidPrefilledAttachment_(I.purpose,I.prefilledImageData,I.backstageAttachment))return I.backstageAttachment},
computeEditAttachment_:function(I){if(this.computePrefilledContent_(I)===void 0)return I.backstageAttachment},
computeAuthorThumbnailDimension_:function(I,y){return I&&!y?24:40},
computeImageUploadEndpoint_:function(I){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",I)},
computeRateLimitErrorCommands_:function(I){var y,D;return I==null?void 0:(y=I.advancedTierFeatures)==null?void 0:(D=y.rateLimit)==null?void 0:D.rateLimitCommands},
computeIsBackstageComment_:function(I){return!(!I||I!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(I){return this.get("submitButton.buttonRenderer.serviceEndpoint",I)||this.get("replyButton.buttonRenderer.serviceEndpoint",I)||this.get("postButton.buttonRenderer.serviceEndpoint",I)},
computeSubmitButtonOverride:function(){if(_.l("web_modern_buttons")){var I,y;return{segmentedPosition:this.dropdownSchedulePanel_||!((I=this.data)==null?0:(y=I.postOptionsMenu)==null?0:y.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.l("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(I,y){I=this.get("submitButton.buttonRenderer",I)||this.get("replyButton.buttonRenderer",I)||this.get("postButton.buttonRenderer",I);y&&(I=y);I&&(I=Object.assign({},I),I.serviceEndpoint=void 0,I.isDisabled=this.submitButtonDisabled);return I},
computeHasExternalLinksAccess_:function(I){if(_.l("enable_rfa_external_links")){var y,D,F;return(F=I==null?void 0:(y=I.advancedTierFeatures)==null?void 0:(D=y.externalLinks)==null?void 0:D.allowExternalLinks)!=null?F:!0}return!0},
computeIsEmojiButtonDisplayed_:function(I){return I.emojiButton&&I.emojiPicker&&I.emojiPicker.emojiPickerRenderer&&I.emojiPicker.emojiPickerRenderer.categories?I.emojiPicker.emojiPickerRenderer.categories.find(function(y){return y.emojiPickerCategoryRenderer?y.emojiPickerCategoryRenderer.emojiIds&&y.emojiPickerCategoryRenderer.emojiIds.length>0:y.emojiPickerUpsellCategoryRenderer?y.emojiPickerUpsellCategoryRenderer.emojis&&y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(I){return I.charLimit?I.charLimit:null},
computeDropdownSchedulingPanel_:function(I,y){if(I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&y)return y},
computeInlineSchedulingPanel_:function(I,y){if(I==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y)return y},
computeHideAuthorThumbnail_:function(I,y){return I||this.computeUseIdentityChip_(y)},
computeHideIdentityChipRenderer_:function(I,y){return I||!this.computeUseIdentityChip_(y)},
computeUseIdentityChip_:function(I){return!!I&&!!I.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(I){var y,D,F,R;(I==null?0:(y=I.detail)==null?0:(D=y.endpoint)==null?0:D.ypcGetOffersEndpoint)||(I==null?0:(F=I.detail)==null?0:(R=F.endpoint)==null?0:R.ypcOffersEndpoint)?(I.stopPropagation(),_.E$(this,[I.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",I)&&(I.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(I){this.addedAttachment="video";this.selectedVideoId_=I.detail.videoId},
commentboxStateEntityChanged_:function(I){var y=this;(I==null?void 0:I.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(I==null?void 0:I.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){y.focus()})},
onYtServiceRequestSent_:function(I,y){if(y.actions)for(I=_.J(y.actions),y=I.next();!y.done;y=I.next())y.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(I){this.isLoading=!1;var y=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",I),D,F,R,O=I==null?void 0:(D=I.detail)==null?void 0:(F=D.data)==null?void 0:(R=F.actionResult)==null?void 0:R.commentboxStateEntityKey;if(y)this.errorMessage_=y;else if(O){var w;this.dismissData_=I==null?void 0:(w=I.detail)==null?void 0:w.data;this.commentboxStateKey_=O}else{this.clear();var v;this.fire("yt-commentbox-dismiss",I==null?void 0:(v=I.detail)==
null?void 0:v.data)}},
onYtServiceRequestError_:function(I){I.stopPropagation();this.isLoading=!1;var y,D;if(((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((D=this.data)==null?void 0:D.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(y=this.get("detail.error.args",I)||[],y.length>1&&y[1].message){this.handlePostsServiceRequestError_(y[1].message);return}(I=this.get("detail.error.message",I))?this.errorMessage_=this.data.errorMessage||_.Ug(I):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(I){if(_.l("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var y=_.J(this.rateLimitErrorCommands),D=y.next();!D.done;D=y.next())if(D=D.value,D.errorLabel===I){_.zv(D.command,this.hostElement);return}this.errorMessage_=_.Ug(I)},
submitIfNotBackstagePost_:function(I){if(!this.isBackstagePost)this.onSubmit_(I)},
onSubmit_:function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f;return _.S(function(m){switch(m.nextAddress){case 1:I.stopPropagation();if(!y.serviceEndpoint||!y.isValidInput_())return m.return();if(y.shouldShowPostAadcNotice_())return y.showPostAadcNotice_(),m.return();if(y.shouldShowCommentAadcNotice_())return y.showCommentAadcNotice_(),m.return();if(!(y.$$("ytd-backstage-multi-image-select-renderer")&&y.hasImage_&&_.l("enable_multi_image_post_creation"))){m.jumpTo(2);break}D=y.$$("ytd-backstage-multi-image-select-renderer");
return m.yield(D.getAllUploadStatuses(),3);case 3:F=m.yieldResult;if(!F)return m.return();R=_.J(F);for(O=R.next();!O.done;O=R.next())if(w=O.value,w.encryptedBlobId===void 0)return y.isLoading=!1,P=v=void 0,y.errorMessage_=(P=(v=y.imageUploadEndpoint_)==null?void 0:v.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?P:null,m.return();return m.return(y.submitForm_(void 0,void 0,void 0,void 0,D.images,y.taggedVideoId_));case 2:if(!y.hasImagePoll_||!y.$["image-poll-attachment"]){m.jumpTo(4);
break}return m.yield(y.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:K=m.yieldResult;if(!K)return m.return();r=_.J(K);for(N=r.next();!N.done;N=r.next())if(h=N.value,!h.encryptedBlobId)return y.isLoading=!1,x=void 0,y.errorMessage_=(x=y.data.errorMessage)!=null?x:null,m.return();case 4:X=(q=y.$$("ytd-backstage-image-select-renderer"))&&q.uploadPromise(),f=y.getSharedPostId_(),X?X.then(function(){y.submitForm_.apply(y,_.Td(_.go.apply(0,arguments)))}).catch(function(z){y.isLoading=!1;
y.errorMessage_=_.Ug(z.message)}):y.selectedVideoId_?y.submitForm_(void 0,y.selectedVideoId_):y.prefilledAttachment_==="image"?y.submitForm_(y.prefilledImageData_.encryptedBlobId,void 0,void 0,y.prefilledImageData_.sourceExternalVideoId,void 0,y.taggedVideoId_):y.prefilledAttachment_==="video"?y.submitForm_(void 0,y.data.backstageAttachment.videoRenderer.videoId):f?y.submitForm_(void 0,void 0,f):y.taggedVideoId_!==void 0?y.submitForm_(void 0,void 0,void 0,void 0,void 0,y.taggedVideoId_):y.submitForm_(),
_.Cj(m)}})},
openSchedulingPanel:function(I){I&&I.scheduleButton&&I.scheduleButton.buttonRenderer&&(this.scheduleButton_=I.scheduleButton.buttonRenderer);I&&I.dateTimePicker&&this.set("data.schedulingDateTimePicker",I.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(I){I.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(I){I.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(I){I.stopPropagation();I.detail.alertMessage&&(this.alertMessage_=I.detail.alertMessage)},
onImageSelected_:function(I){I.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(I){I.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(I){I.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(I.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(I){I.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(I){var y=this.$["video-link-attachment"];y&&y.onLaunchVideoPicker(I)},
onAttachmentDismiss_:function(I){I.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"&&_.l("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.l("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 I;if(this.addedAttachment==="image-poll"&&((I=this.$["image-poll-attachment"])==null||!I.isValid()))return!1;var y;if(this.addedAttachment==="quiz"&&((y=this.$["quiz-attachment"])==null||!y.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;I=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")I=!0;return I||!!this.getTextAreaValue().trim()},
submitForm_:function(I,y,D,F,R,O){var w=this.getTextAreaValue().trim(),v={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&w===this.previousText_&&(w=void 0);w!==void 0&&(v.comment_text=w);this.isLoading=!0;O!=void 0&&(v.tagged_video_id=O);I?(v.image_blob_id=I,this.imagePreviewCoordinates_&&(v.image_preview_coordinates=this.imagePreviewCoordinates_)):y?v.attached_video_id=y:D?v.shared_post_id=D:R&&R.length>0&&(v.images_data=R.map(function(P){return{encryptedBlobId:P.encryptedBlobId,
previewCoordinates:P.previewCoordinates}}));
F&&(v.source_video_id=F);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(v.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(v.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(v.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(v.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.l("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(v.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.E$(this,[this.serviceEndpoint,v])},
onIsInputFocusChanged_:function(I,y){I?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(I){var y=this.getEditableTextArea_();[].concat(_.Td(I.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(F){y.appendChild(document.createTextNode(F))})});
I.preventDefault()},
preventDefault_:function(I){I.preventDefault()},
onSuggestionInsert_:function(I){this.insertTextWithEmojis_(I.detail.range,I.detail.text)},
onEmojiSuggestionClick_:function(I){this.emojiInput.insertSuggestion(I.detail)},
computeSubmitButtonClass_:function(I,y){return!y||I?"":"with-options"},
updateSuggestionOffset_:function(I){if(this.emojiInput&&_.XB(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,D=I.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-D)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;I=I.getBoundingClientRect().left-y;_.XB(this.emojiInput).querySelector("#dropdown").style.marginLeft=I+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(I){if(_.l("enable_post_scheduling")&&this.data&&this.data.purpose){I=I.detail;if(Math.floor(Date.now()/1E3)>=I)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var y=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(y)||y!==I?this.scheduledPublishTimeSec_=I:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=I;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var I=["image-button","image-poll-button","poll-button","quiz-button"];_.l("auto_convert_posts_video_tag")||I.push("video-link-button");return I},
getButtonRenderer:function(I,y){if(I)switch(y){case "video-link-button":var D;return((D=I.videoLinkButton)==null?void 0:D.buttonRenderer)||void 0;case "image-button":var F;return((F=I.imageButton)==null?void 0:F.buttonRenderer)||void 0;case "poll-button":var R;return((R=I.pollButton)==null?void 0:R.buttonRenderer)||void 0;case "image-poll-button":var O;return((O=I.imagePollButton)==null?void 0:O.buttonRenderer)||void 0;case "quiz-button":var w;return((w=I.quizButton)==null?void 0:w.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var I;return(I=this.data)==null||!I.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var I,y;return!((I=this.data)==null||!I.openAadcDialog)&&!((y=this.aadcGuidelinesState_)==null||!y.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Pi("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var I;((I=this.data)==null?0:I.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ku("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(I){I.clickTrackingParams&&_.W4().clickCommand(I);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.uj(this,"yt-close-popup-action")},
onHideIdentityChip:function(I){var y;this.set("data.placeholderText",(y=I.hideIdentityChipAction)==null?void 0:y.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Ai=function(){var I=_.k.apply(this,arguments)||this;I.isOpen=!1;I.modern=_.l("web_modern_buttons");I.roundedContainer=!0;I.dropdownButtonOverride=_.l("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;I.inPopupContainer=!1;I.isCommentboxLoading=!1;var y=["image-button","image-poll-button","poll-button"];_.l("enable_quiz_creation")&&y.push("quiz-button");_.l("auto_convert_posts_video_tag")||y.push("video-link-button");I.attachmentButtonIds=y;I.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 I};
_.E(Ai,_.k);_.L=Ai.prototype;_.L.computeButtonOverride=function(){var I;return((I=this.data)==null?0:I.postOptionsMenu)&&_.l("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.L.configureRendererStamper=function(){var I={"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]]"}}}}};_.l("auto_convert_posts_video_tag")||(I["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return I};
_.L.ready=function(){var I=this,y=_.XB(this.hostElement).querySelector("#placeholder-area"),D=function(F){I.onOpen(F)};
y.addEventListener("tap",D);y.addEventListener("keypress",D)};
_.L.showButtonEduTooltip=function(){var I,y,D,F,R,O,w;if(_.l("enable_quiz_creation")&&((I=this.data)==null?0:(y=I.quizButton)==null?0:(D=y.buttonRenderer)==null?0:(F=D.hint)==null?0:(R=F.hintRenderer)==null?0:(O=R.content)==null?0:(w=O.bubbleHintRenderer)==null?0:w.text)&&(_.kD.getInstance(),I=dE(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(I==null?void 0:
I.length)>0)){this.ytComponentBehavior.resolveCommand(I[0],{form:{element:this.quizButton}});return}var v;if((v=this.data)==null?0:v.imagePollButtonTooltip)if(_.kD.getInstance(),v=dE(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(v==null?void 0:v.length)>0){this.ytComponentBehavior.resolveCommand(v[0],{form:{element:this.imagePollButton}});return}var P;_.l("enable_multi_image_post_creation")&&
((P=this.data)==null?0:P.multiImageButtonTooltip)&&(_.kD.getInstance(),P=dE(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(P==null?void 0:P.length)>0&&this.ytComponentBehavior.resolveCommand(P[0],{form:{element:this.imageButton}}))};
_.L.onCreatePollAction=function(I){_.u(I,NhR)&&(this.JSC$16219_commentbox.addedAttachment="poll",this.openDialog())};
_.L.onAddVideoLinkAction=function(I){if(_.u(I,UnW))this.JSC$16219_commentbox.onAddVideoLink(I)};
_.L.onShowSchedulingPanelCommand=function(I){(I=_.u(I,iHM))&&this.openSchedulingPanel(I)};
_.L.onCreateImagePollCommand=function(I){_.u(I,bMc)&&(this.JSC$16219_commentbox.openImagePollComponent(),this.openDialog())};
_.L.onCreateQuizCommand=function(I){_.u(I,HM_)&&(this.JSC$16219_commentbox.openQuizComponent(),this.openDialog())};
_.L.openSchedulingPanel=function(I){_.l("enable_post_scheduling")&&(this.openDialog(),this.JSC$16219_commentbox.openSchedulingPanel(I))};
_.L.onCreateCommentAction=function(I){this.get("createCommentAction.contents",I)&&(this.JSC$16219_commentbox.clear(),this.closeDialog())};
_.L.onOpen=function(I){I instanceof KeyboardEvent&&I.type==="keypress"&&I.keyCode!==13&&I.keyCode!==32||(this.data.prepareAccountEndpoint?_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.L.onYtCommentboxDismiss=function(){this.closeDialog()};
_.L.onYtCommentboxLoadingStart=function(I){I.stopPropagation();this.isCommentboxLoading=!0};
_.L.onYtCommentboxLoadingEnd=function(I){I.stopPropagation();this.isCommentboxLoading=!1};
_.L.onYtVideoLinkButtonCancel=function(I){I.stopPropagation();this.onOpen(I)};
_.L.onYtVideoLinkSelected=function(I){I.stopPropagation();this.onOpen(I)};
_.L.onIronSelect=function(I){I.stopPropagation();I.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=I.detail.item.value&&(this.accessRestriction?(this.accessRestriction=I.detail.item.value,this.onOpen(I)):this.accessRestriction=I.detail.item.value)};
_.L.onYtNavigate=function(I){this.get("detail.endpoint.backstageImageUploadEndpoint",I)&&(this.JSC$16219_commentbox.addedAttachment="image",this.JSC$16219_commentbox.submitButtonDisabled=!0,this.onOpen(I))};
_.L.onRequestSent=function(I){for(var y=_.J(I.detail),D=y.next();!D.done;D=y.next())_.u(D.value,Feu)&&(this.JSC$16219_commentbox.addedAttachment="image",this.JSC$16219_commentbox.submitButtonDisabled=!0,this.onOpen(I))};
_.L.openDialog=function(){var I;(I=this.data)!=null&&I.isIneligibleForCommunityPagePostCreation||(this.JSC$16219_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16219_commentbox.focus())};
_.L.onPopupClosed=function(){_.kD.getInstance()};
_.L.computeCreationDisabled=function(I){return!!I};
_.L.computeIsCreationDialog=function(I){return!!I&&I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.L.computeDisabledPostButton=function(I){if(!I)return null;I.isDisabled=!0;return I};
_.L.computeIsCreationDialogWithHeader=function(I){return!this.inPopupContainer&&!!I&&!!I.authorText&&I.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.L.computeIsHeaderHidden=function(I,y){return!I||y};
_.L.computeDropdownRendererClasses=function(I){return I?["text-secondary-style"]:[]};
_.L.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var I=_.XB(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;I&&I.reset()};
Ai.prototype.onPopupClosed=Ai.prototype.onPopupClosed;Ai.prototype.onRequestSent=Ai.prototype.onRequestSent;Ai.prototype.onYtNavigate=Ai.prototype.onYtNavigate;Ai.prototype.onIronSelect=Ai.prototype.onIronSelect;Ai.prototype.onYtVideoLinkSelected=Ai.prototype.onYtVideoLinkSelected;Ai.prototype.onYtVideoLinkButtonCancel=Ai.prototype.onYtVideoLinkButtonCancel;Ai.prototype.onYtCommentboxLoadingEnd=Ai.prototype.onYtCommentboxLoadingEnd;Ai.prototype.onYtCommentboxLoadingStart=Ai.prototype.onYtCommentboxLoadingStart;
Ai.prototype.onYtCommentboxDismiss=Ai.prototype.onYtCommentboxDismiss;Ai.prototype.showButtonEduTooltip=Ai.prototype.showButtonEduTooltip;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ai.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ai.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ai.prototype,"isOpen",void 0);_.W([_.M({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],Ai.prototype,"buttonOverride",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ai.prototype,"modern",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ai.prototype,"roundedContainer",void 0);_.W([_.M(),_.A("design:type",Object)],Ai.prototype,"dropdownButtonOverride",void 0);_.W([_.M({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.A("design:type",Boolean)],Ai.prototype,"creationDisabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ai.prototype,"enableCreationBox",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.A("design:type",Boolean)],Ai.prototype,"isCreationDialog",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ai.prototype,"inPopupContainer",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.A("design:type",Boolean)],Ai.prototype,"isCreationDialogWithHeader",void 0);_.W([_.M(),_.A("design:type",Object)],Ai.prototype,"accessRestriction",void 0);
_.W([_.M({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.A("design:type",Array)],Ai.prototype,"dropdownRendererClasses",void 0);_.W([_.M(),_.A("design:type",Object)],Ai.prototype,"isCommentboxLoading",void 0);_.W([_.M(),_.A("design:type",Array)],Ai.prototype,"attachmentButtonIds",void 0);_.W([_.a0("#image-button"),_.A("design:type",HTMLElement)],Ai.prototype,"imageButton",void 0);
_.W([_.a0("#image-poll-button"),_.A("design:type",HTMLElement)],Ai.prototype,"imagePollButton",void 0);_.W([_.a0("#quiz-button"),_.A("design:type",HTMLElement)],Ai.prototype,"quizButton",void 0);_.W([_.a0("#commentbox"),_.A("design:type",Object)],Ai.prototype,"JSC$16219_commentbox",void 0);_.W([_.ke("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ai.prototype,"showButtonEduTooltip",null);
_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtCommentboxDismiss",null);_.W([_.z4("yt-commentbox-loading-start"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtCommentboxLoadingStart",null);
_.W([_.z4("yt-commentbox-loading-end"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtCommentboxLoadingEnd",null);_.W([_.z4("yt-video-link-button-cancel"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtVideoLinkButtonCancel",null);
_.W([_.z4("yt-video-link-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtVideoLinkSelected",null);_.W([_.z4("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onIronSelect",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onYtNavigate",null);
_.W([_.z4("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ai.prototype,"onRequestSent",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ai.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Ai);
_.a(Ai,"ytd-backstage-post-dialog-renderer",function(){if(Z$M!==void 0)return Z$M;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Z$M=I},{mode:1});var nTO;var p6n;var $b=function(){return _.k.apply(this,arguments)||this};
_.E($b,_.k);_.L=$b.prototype;_.L.computeHeartButtonStyle=function(I){return(I==null?0:I.styleType)?I.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.L.onYtButtonTap=function(){if(this.data.isEnabled){var I=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(I=this.getEndpoint(I))&&_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})}else(I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(I)};
_.L.toggle=function(I){this.set("data.isHearted",I!==void 0?I:!this.data.isHearted)};
_.L.getEndpoint=function(I){var y,D=(y=this.data)==null?void 0:y.heartEndpoint,F;y=(F=this.data)==null?void 0:F.unheartEndpoint;if(D&&y)return I?y:D};
_.L.computeButtonAccessibility=function(I,y){var D,F,R=I==null?void 0:(D=I.heartedAccessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label,O,w;I=I==null?void 0:(O=I.unheartedAccessibility)==null?void 0:(w=O.accessibilityData)==null?void 0:w.label;return y?R:I};
_.mD.Object.defineProperties($b.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 I;return _.l("kevlar_system_icons")&&!((I=this.data)==null||!I.isHearted)}}});
$b.prototype.onYtButtonTap=$b.prototype.onYtButtonTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],$b.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$b.prototype,"data",void 0);_.W([_.Y("data.isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],$b.prototype,"heartTooltip",null);
_.W([_.Y("data.isHearted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$b.prototype,"iconFilled",null);_.W([_.M({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.A("design:type",String)],$b.prototype,"buttonAccessibility",void 0);_.W([_.M({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],$b.prototype,"heartButtonStyle",void 0);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$b.prototype,"onYtButtonTap",null);_.W([_.yd({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],$b);
_.a($b,"ytd-creator-heart-renderer",function(){if(p6n!==void 0)return p6n;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return p6n=I},{mode:1});var b$=function(){var I=_.k.apply(this,arguments)||this;I.hasCreatorReply=!1;I.buttonOverrides={size:"S",iconPosition:"icon-only"};I.replyButtonOverrides={size:"S",type:"text"};I.forceIconButton=!_.l("web_modern_buttons");I.modern=_.l("web_modern_buttons");I.buttonTooltipPosition="bottom";I.systemIcons=_.l("kevlar_system_icons");I.replyDialog=null;return I};
_.E(b$,_.k);_.L=b$.prototype;
_.L.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]]"}}}}}};
_.L.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.L.dataChange=function(){this.replyDialog&&_.XB(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var I,y,D;this.isLiked=this.systemIcons&&!!((I=this.data)==null?0:(y=I.likeButton)==null?0:(D=y.toggleButtonRenderer)==null?0:D.isToggled)};
_.L.computeShowVoteCountBeginning=function(I,y){return I===void 0||y===void 0?!0:I.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.L.computeShowVoteCountEnd=function(I,y){return I===void 0||y===void 0?!0:I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.L.computeShowCommentCount=function(I,y){return I===void 0||y===void 0?!0:I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!y&&this.ytRendererBehavior.getSimpleString(y)!=="0"};
_.L.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.L.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.L.showReplyDialog=function(I){I&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.XB(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=I,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.L.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.L.onRequestSent=function(I){I=_.J(I.detail);for(var y=I.next();!y.done;y=I.next())(y=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",y.value))&&this.showReplyDialog(y)};
_.L.onYtNavigate=function(I){var y,D;(I=(y=_.u(I.detail.endpoint,_.OMg))==null?void 0:(D=y.dialog)==null?void 0:D.commentReplyDialogRenderer)&&this.showReplyDialog(I)};
_.L.onYtServiceRequestSent=function(I,y){I.stopPropagation();if(y.actions)for(I=0;I<y.actions.length;I++){var D=_.u(y.actions[I],E0W);D&&this.handleUpdateCommentVoteAction(D)}};
_.L.handleUpdateCommentVoteAction=function(I){this.voteCount=I.voteCount||_.Ug("0");I.voteStatus==="LIKE"?this.JSC$16231_ytdDislikeToggleButtonRenderer.toggle(!1):I.voteStatus==="DISLIKE"?this.JSC$16231_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16231_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16231_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.L.computeReplyButtonHidden=function(I){return I};
_.L.computeReplyButtonBeginning=function(I){return(I==null?0:I.replyButton)&&I.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?I.replyButton:void 0};
_.L.computeReplyButtonEnd=function(I){return(I==null?0:I.replyButton)&&I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?I.replyButton:void 0};
_.L.computeActionButtonStyle=function(I){return(I==null?0:I.style)?I.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.L.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.L.onYtToggleButton=function(I){var y,D;this.isLiked=this.systemIcons&&!!((y=I.detail)==null?0:(D=y.actions)==null?0:D.like)};
b$.prototype.onYtToggleButton=b$.prototype.onYtToggleButton;b$.prototype.onButtonTooltipPositionChanged=b$.prototype.onButtonTooltipPositionChanged;b$.prototype.onYtServiceRequestSent=b$.prototype.onYtServiceRequestSent;b$.prototype.onYtNavigate=b$.prototype.onYtNavigate;b$.prototype.onRequestSent=b$.prototype.onRequestSent;b$.prototype.onYtCommentboxDismiss=b$.prototype.onYtCommentboxDismiss;b$.prototype.dataChange=b$.prototype.dataChange;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"voteCount",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"commentCount",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"replyThumbnail",void 0);
_.W([_.M(),_.A("design:type",Object)],b$.prototype,"hasCreatorReply",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],b$.prototype,"enableCreationBox",void 0);_.W([_.M({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],b$.prototype,"actionButtonsStyle",void 0);_.W([_.M({computed:"computeReplyButtonBeginning(data)"}),_.A("design:type",Object)],b$.prototype,"replyButtonBeginning",void 0);
_.W([_.M({computed:"computeReplyButtonEnd(data)"}),_.A("design:type",Object)],b$.prototype,"replyButtonEnd",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"buttonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"replyButtonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"forceIconButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],b$.prototype,"useCommentIcon",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],b$.prototype,"modern",void 0);_.W([_.M(),_.A("design:type",Object)],b$.prototype,"buttonTooltipPosition",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],b$.prototype,"systemIcons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],b$.prototype,"isLiked",void 0);_.W([_.a0("ytd-button-renderer"),_.A("design:type",Object)],b$.prototype,"ytdReplyButtonRenderer",void 0);
_.W([_.a0("#like-button"),_.A("design:type",Object)],b$.prototype,"JSC$16231_ytdLikeToggleButtonRenderer",void 0);_.W([_.a0("#dislike-button"),_.A("design:type",Object)],b$.prototype,"JSC$16231_ytdDislikeToggleButtonRenderer",void 0);_.W([_.a0("#reply-dialog"),_.A("design:type",HTMLElement)],b$.prototype,"replyDialogElement",void 0);_.W([_.a0("#reply-button"),_.A("design:type",HTMLElement)],b$.prototype,"replyButtonElement",void 0);
_.W([_.a0("#reply-button-end"),_.A("design:type",HTMLElement)],b$.prototype,"replyButtonEndElement",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b$.prototype,"dataChange",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b$.prototype,"onYtCommentboxDismiss",null);
_.W([_.z4("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b$.prototype,"onRequestSent",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b$.prototype,"onYtNavigate",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],b$.prototype,"onYtServiceRequestSent",null);_.W([_.ke("buttonTooltipPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b$.prototype,"onButtonTooltipPositionChanged",null);
_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],b$.prototype,"onYtToggleButton",null);_.W([_.yd({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],b$);
_.a(b$,"ytd-comment-action-buttons-renderer",function(){if(nTO!==void 0)return nTO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return nTO=I},{mode:1});var mIa;var Ho=function(){return _.k.apply(this,arguments)||this};
_.E(Ho,_.k);Ho.prototype.focus=function(){_.XB(this.hostElement).querySelector("#commentbox").focus()};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ho.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Ho.prototype,"zeroStepChannelCreationRenderer",void 0);_.W([_.yd({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Ho);
_.a(Ho,"ytd-comment-dialog-renderer",function(){if(mIa!==void 0)return mIa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mIa=I},{mode:1});var Miz;var e4=function(){var I=_.k.apply(this,arguments)||this;I.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.l("enable_web_delhi_icons")};I.replyButtonOverrides={size:"S",type:"text"};return I};
_.E(e4,_.k);_.L=e4.prototype;_.L.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.L.detached=function(){this.replyBox&&this.replyBox.remove()};
_.L.showReplyDialog=function(I){if(I){var y=this.replyBox;y||(y=document.createElement("ytd-comment-reply-dialog-renderer"),y.id="replybox",_.XB(this.replyDialogDiv).appendChild(y));y.data=I;this.replyDialogDiv.hidden=!1;y.openDialog()}};
_.L.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.L.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var I,y=_.u((I=this.toolbarSurface)==null?void 0:I.superfanOnlySnackbarCommand,_.Iu);y&&_.lj(this.hostElement,"yt-show-superfan-only-snackbar",{command:y})}else this.isSubsOnlyCommentsEligibleUser&&(I=_.u((y=this.toolbarSurface)==null?void 0:y.subscribersOnlyDisclaimerSnackbarCommand,_.Iu))&&_.lj(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:I})};
_.L.onYtServiceRequestSent=function(I,y){I.stopPropagation();if(y.actions)for(var D=0;D<y.actions.length;D++){var F=_.u(y.actions[D],E0W);F?this.handleUpdateCommentVoteAction(F):I.target===this.heartButton&&this.toggleHeartState()}};
_.L.handleUpdateCommentVoteAction=function(I){var y;(y=this.toolbarState)!=null&&y.key&&this.ytdReduxBehavior.dispatch(_.V0("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:I.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":I.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.L.toggleHeartState=function(){var I;(I=this.toolbarState)!=null&&I.key&&this.ytdReduxBehavior.dispatch(_.V0("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.mD.Object.defineProperties(e4.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return(((I=this.toolbarState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(y=this.toolbarData)==null?void 0:y.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 I;return((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand)!==void 0&&!_.l("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I,y=_.u((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand,_.Iu),D,F,R,O,w,v,P,K,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&&((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:y!=null?y:_.u((R=this.toolbarSurface)==null?void 0:R.likeCommand,_.Iu),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.u((O=this.toolbarSurface)==null?void 0:O.unlikeCommand,_.Iu),defaultCommand:this.isVisiblyDisabled?_.u((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.Iu):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.likeInactiveTooltip,toggledTooltip:(P=this.toolbarData)==null?void 0:P.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(K=this.toolbarData)==null?void 0:K.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 I,y=_.u((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand,_.Iu),D,F,R,O,w,v,P,K,r,N;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((D=this.toolbarSharedData)==null||!D.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.u((R=this.toolbarSurface)==null?void 0:R.dislikeCommand,_.Iu),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:y!=null?y:_.u((O=this.toolbarSurface)==null?void 0:O.undislikeCommand,_.Iu),defaultCommand:this.isVisiblyDisabled?_.u((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.Iu):void 0,defaultTooltip:(v=this.toolbarData)==null?void 0:v.dislikeInactiveTooltip,toggledTooltip:(P=this.toolbarData)==null?void 0:
P.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(K=this.toolbarSharedData)==null?void 0:K.dislikeReplyButtonA11y:(r=this.toolbarSharedData)==null?void 0:r.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(N=this.toolbarSharedData)==null?void 0:N.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var I,y,D;if(((I=this.toolbarState)==null?void 0:I.heartState)!==void 0&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((D=this.toolbarState)==null?void 0:D.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var F,R,O,w,v,P,K,r,N,h,x,q,X,f;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(F=this.toolbarData)==null?void 0:F.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((v=this.toolbarState)==null?void 0:v.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.u((P=this.toolbarSurface)==null?void 0:P.heartCommand,
_.Iu),unheartEndpoint:this.isVisiblyDisabled?void 0:_.u((K=this.toolbarSurface)==null?void 0:K.unheartCommand,_.Iu),disabledEndpoint:this.isVisiblyDisabled?_.u((r=this.toolbarSurface)==null?void 0:r.commentDisabledActionCommand,_.Iu):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(N=this.toolbarData)==null?void 0:N.heartActiveTooltip,unheartedTooltip:(h=this.toolbarData)==null?void 0:h.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((x=
this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(q=this.toolbarSharedData)==null?void 0:q.unheartButtonA11y:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.toolbarSurface)==null||!I.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.commentStrings)!=null&&I.replyButtonText){var y,D,F,R;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(y=this.commentStrings)==null?void 0:y.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.u((D=this.toolbarSurface)==null?void 0:D.replyCommand,_.Iu),command:this.isVisiblyDisabled?
_.u((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.Iu):this.isSubsOnlyCommentsIneligibleUser?_.u((R=this.toolbarSurface)==null?void 0:R.subscribersOnlySnackbarCommand,_.Iu):void 0}}}}});
e4.prototype.onYtServiceRequestSent=e4.prototype.onYtServiceRequestSent;e4.prototype.hideReplyDialogDiv=e4.prototype.hideReplyDialogDiv;_.W([_.M(),_.A("design:type",Object)],e4.prototype,"commentStrings",void 0);_.W([_.M(),_.A("design:type",Boolean)],e4.prototype,"isReply",void 0);_.W([_.M(),_.A("design:type",Object)],e4.prototype,"toolbarData",void 0);_.W([_.M(),_.A("design:type",Object)],e4.prototype,"toolbarSharedData",void 0);
_.W([_.M(),_.A("design:type",String)],e4.prototype,"toolbarStateKey",void 0);_.W([_.M(),_.A("design:type",String)],e4.prototype,"toolbarSurfaceKey",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.G2),_.A("design:type",Object)],e4.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.a0("#reply-dialog"),_.A("design:type",HTMLElement)],e4.prototype,"replyDialogDiv",void 0);_.W([_.a0("#replybox"),_.A("design:type",Object)],e4.prototype,"replyBox",void 0);_.W([_.a0("ytd-creator-heart-renderer"),_.A("design:type",Object)],e4.prototype,"heartButton",void 0);_.W([_.M({selector:function(I,y){return _.nC(I.entities,"engagementToolbarStateEntityPayload",y)},
selectorArgs:["toolbarStateKey"]}),_.A("design:type",Object)],e4.prototype,"toolbarState",void 0);_.W([_.M({selector:W0C,selectorArgs:["toolbarSurfaceKey"]}),_.A("design:type",Object)],e4.prototype,"toolbarSurface",void 0);_.W([_.M(),_.A("design:type",Object)],e4.prototype,"buttonOverrides",void 0);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e4.prototype,"hideReplyDialogDiv",null);
_.W([_.Y("toolbarData","toolbarState"),_.A("design:type",String),_.A("design:paramtypes",[])],e4.prototype,"likeCount",null);_.W([_.Y("likeCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"showLikeCount",null);_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"isVisiblyDisabled",null);_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"isSubsOnlyCommentsEligibleUser",null);_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"hasPrepareAccountCommand",null);
_.W([_.Y("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],e4.prototype,"likeToggleButtonRenderer",null);_.W([_.Y("isReply","toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],e4.prototype,"dislikeToggleButtonRenderer",null);_.W([_.Y("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],e4.prototype,"creatorHeartSupportedRenderer",null);
_.W([_.Y("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e4.prototype,"hasReplyCommand",null);_.W([_.Y("toolbarSurface","commentStrings","isVisiblyDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],e4.prototype,"replyButtonRenderer",null);_.W([_.M(),_.A("design:type",Object)],e4.prototype,"replyButtonOverrides",void 0);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],e4.prototype,"onYtServiceRequestSent",null);_.W([_.yd({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],e4);
_.a(e4,"ytd-comment-engagement-bar",function(){if(Miz!==void 0)return Miz;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Miz=I},{mode:1});var z__;var T7=function(){return _.k.apply(this,arguments)||this};
_.E(T7,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],T7.prototype,"data",void 0);_.W([_.yd({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],T7);
_.a(T7,"ytd-comment-inline-thumbnail-renderer",function(){if(z__!==void 0)return z__;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return z__=I},{mode:1});var kAc;var sd=function(){return _.k.apply(this,arguments)||this};
_.E(sd,_.k);sd.prototype.onMessageTap=function(){if(this.onTapCommand){var I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);I&&this.ytdOpenPopupBehavior.openPopup(I)}};
_.mD.Object.defineProperties(sd.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return(I=this.data)==null?void 0:(y=I.button)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.command}}});
_.W([_.Q(_.G2),_.A("design:type",Object)],sd.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sd.prototype,"data",void 0);_.W([_.Y("data.button.buttonRenderer.command"),_.A("design:type",Object),_.A("design:paramtypes",[])],sd.prototype,"onTapCommand",null);_.W([_.yd({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],sd);
_.a(sd,"ytd-comment-pause-composer-renderer",function(){if(kAc!==void 0)return kAc;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return kAc=I},{mode:1});var dIu;var aze;var VW=function(){var I=_.k.apply(this,arguments)||this;I.isOpen=!1;return I};
_.E(VW,_.k);_.L=VW.prototype;_.L.dataChanged=function(){this.isOpen=!1};
_.L.onTap=function(){this.data&&(this.data.navigationEndpoint?_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.L.focus=function(){this.JSC$16260_commentbox.focus()};
_.L.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.L.openDialog=function(){this.isOpen=!0;this.JSC$16260_commentbox.focus();this.JSC$16260_commentbox.maybeHeightChanged()};
VW.prototype.onYtCommentboxDismiss=VW.prototype.onYtCommentboxDismiss;VW.prototype.dataChanged=VW.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VW.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],VW.prototype,"isOpen",void 0);_.W([_.a0("#commentbox"),_.A("design:type",Object)],VW.prototype,"JSC$16260_commentbox",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VW.prototype,"dataChanged",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],VW.prototype,"onYtCommentboxDismiss",null);_.W([_.yd({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],VW);
_.a(VW,"ytd-comment-reply-dialog-renderer",function(){if(aze!==void 0)return aze;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return aze=I},{mode:1});var cFG;var Zn=function(){return _.k.apply(this,arguments)||this};
_.E(Zn,_.k);_.mD.Object.defineProperties(Zn.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.icon)==null?void 0:y.iconType;return D?"yt-icons:"+D.toLowerCase():null}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zn.prototype,"data",void 0);_.W([_.M(),_.Y("data.icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zn.prototype,"icon",null);_.W([_.yd({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Zn);
_.a(Zn,"ytd-pinned-comment-badge-renderer",function(){if(cFG!==void 0)return cFG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return cFG=I},{mode:1});var WaO;var C6f={},Bs_={input:!0,meta:!0,br:!0,link:!0,img:!0},gl=null;C6f.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(){gl==null&&(gl=document.createElement("tp-yt-paper-tooltip"),gl.offset=8,gl.fitToVisibleBounds=!0)},
onMouseOver_:function(I){if(I=_.gB(I.target,function(R){return R==this||R.getAttribute&&R.getAttribute("shared-tooltip-text")}.bind(this),!0)){var y=I.getAttribute("shared-tooltip-text");
if(y){var D=this,F=null;I!=this&&(I.tagName.toLowerCase()in Bs_?D=I.parentElement:D=I,I.id&&(F=I.id));this.polymerController.createTooltipIfRequired_();if(gl.parentElement!=D||gl.for!=F)(0,_.ng)(gl).textContent=y,_.XB(D).appendChild(gl),gl.for=F,gl.animationDelay=this.polymerController.sharedTooltipAnimationDelay,gl.position=this.polymerController.sharedTooltipPosition}}}};var IY=function(){return _.k.apply(this,arguments)||this};
_.E(IY,_.k);IY.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]]"}}}}}};
IY.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var I;((I=this.data)==null?0:I.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var y;((y=this.data)==null?0:y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
IY.prototype.colorChanged=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.color)==null?void 0:(D=y.basicColorPaletteData)==null?void 0:D.foregroundBodyColor;F&&(this.rgbBadgeColor=_.Vp(F));_.XB(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
IY.prototype.tooltipChanged=function(){var I;((I=this.data)==null?0:I.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
IY.prototype.tooltipChanged=IY.prototype.tooltipChanged;IY.prototype.colorChanged=IY.prototype.colorChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(C6f.YtSharedTooltipBehavior),_.A("design:type",Object)],IY.prototype,"ytSharedTooltipBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IY.prototype,"data",void 0);
_.W([_.M({value:"#4285F4"}),_.A("design:type",String)],IY.prototype,"rgbBadgeColor",void 0);_.W([_.ke("data.color"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IY.prototype,"colorChanged",null);_.W([_.ke("data.tooltip"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IY.prototype,"tooltipChanged",null);_.W([_.yd({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],IY);
_.a(IY,"ytd-sponsor-comment-badge-renderer",function(){if(WaO!==void 0)return WaO;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return WaO=I},{mode:1});var inO;var AFG;var yP=function(){return _.k.apply(this,arguments)||this};
_.E(yP,_.k);yP.prototype.computeState=function(I){switch(I==null?void 0:I.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"}};
yP.prototype.updateStateIdentifier=function(I){if(this.viewModel.triStateKey){var y=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.V0("triStateButtonStateEntityPayload",y,{key:y,stateIdentifier:I}))}};
yP.prototype.onClick=function(){var I=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(){I.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){I.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.mD.Object.defineProperties(yP.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 I;return((I=this.data)==null?void 0:I.buttonText)||""}}});
_.W([_.M(),_.A("design:type",Object)],yP.prototype,"viewModel",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.W([_.M({selector:C2C,selectorArgs:["viewModel.triStateKey"]}),_.A("design:type",Object)],yP.prototype,"triStateButtonStateEntity",void 0);
_.W([_.M({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.A("design:type",String)],yP.prototype,"state",void 0);_.W([_.Y("viewModel","state"),_.A("design:type",Object),_.A("design:paramtypes",[])],yP.prototype,"data",null);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],yP.prototype,"buttonText",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],yP);
_.a(yP,"ytd-tri-state-button-view-model",function(){if(AFG!==void 0)return AFG;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return AFG=I},{mode:1});var $In;var bnP;var Dp=function(){var I=_.k.apply(this,arguments)||this;I.defaultIconToFilled=!_.l("kevlar_fill_comment_chip_icon_killswitch");return I};
_.E(Dp,_.k);Dp.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Dp.prototype.dataChanged=function(){if(this.data){var I,y;((I=this.data.chipColorPalette)==null?0:I.backgroundColor)&&((y=this.data.chipColorPalette)==null?0:y.foregroundTitleColor)&&_.pg(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Z7(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Z7(this.data.chipColorPalette.foregroundTitleColor)});var D;((D=this.data)==null?0:D.command)?(_.pg(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.pg(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}};
Dp.prototype.onTap=function(){var I;if(this.data&&(I=this.data)!=null&&I.command){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.command)}};
Dp.prototype.getIconSize=function(){return _.l("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Dp.prototype.onTap=Dp.prototype.onTap;Dp.prototype.dataChanged=Dp.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Dp.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.CP),_.A("design:type",Object)],Dp.prototype,"ironA11yKeysBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dp.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],Dp.prototype,"basePriceText",void 0);_.W([_.M(),_.A("design:type",Object)],Dp.prototype,"chipIcon",void 0);_.W([_.M(),_.A("design:type",Object)],Dp.prototype,"defaultIconToFilled",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dp.prototype,"dataChanged",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dp.prototype,"onTap",null);
_.W([_.I6({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Dp);
_.a(Dp,"yt-pdg-comment-chip-renderer",function(){if(bnP===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;$In===void 0&&($In=document.createElement("template"));var F=$In;D.call(y,F.content.cloneNode(!0),I.content.firstChild);bnP=I}I=bnP;return I},{mode:2});var FK=function(){var I=_.k.apply(this,arguments)||this;I.useSmallAvatars=_.l("small_avatars_for_comments");I.commentThreadingEnabled=_.l("web_delhi_comment_threads");I.webWatchCompactComments=_.l("web_watch_compact_comments");I.editDialog=null;return I};
_.E(FK,_.k);_.L=FK.prototype;_.L.onShow=function(){_.ZL("cmv",void 0,"wn_comments")};
_.L.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"}}}};
_.L.detached=function(){this.editDialog=null;this.expander.reset()};
_.L.updateBackgroundColor=function(){if(this.backgroundColor){var I={"--ytd-comment-paid-background-color":_.Z7(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.pg(this.hostElement,I)}else _.pg(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.L.resetExpander=function(){var I;(I=this.expander)==null||I.reset()};
_.L.openEditDialog=function(I){I.dialog&&(this.editDialog=I.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.L.onYtNavigate=function(I){var y=I.detail.endpoint;if(y=_.u(y,_.Lef)||_.u(y,_.J2O))I.stopPropagation(),this.openEditDialog(y)};
_.L.onYtCommentboxDismiss=function(){this.editDialog=null;_.pg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.L.onAuthorThumbnailClicked=function(){_.l("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.L.onYtCommentboxResize=function(I){var y;(I==null?0:(y=I.detail)==null?0:y.height)&&_.pg(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":I.detail.height+"px"})};
_.mD.Object.defineProperties(FK.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 I,y=(I=this.commentEntity)==null?void 0:I.author;return y&&(y.isCreator||y.isVerified||y.isArtist)?{renderer:{authorEndpoint:y.channelPageEndpoint?_.u(y.channelPageEndpoint,_.Iu):_.u(y.channelCommand,_.Iu),authorText:{runs:[{text:y.displayName}]},color:y.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:y.isArtist?{iconType:"AUDIO_BADGE"}:
y.isVerified?{iconType:y.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:y.isArtist||y.isVerified?y.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.commentEntity)==null?void 0:I.author;return y!=null&&y.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:y.sponsorBadgeUrl}]},tooltip:y.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.commentSurfaceEntity)==null?void 0:I.pdgCommentChip,_.k1M)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var I;return this.voiceReplyContainerViewModel&&((I=this.voiceReplyContainerViewModel)==null?void 0:I.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.commentSurfaceEntity)==null?void 0:I.voiceReplyContainerViewModel,MlW)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var I;return this.voiceReplyContainerViewModel&&(I=this.voiceReplyContainerViewModel)!=null&&I.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.commentSurfaceEntity)==null?void 0:I.commentBackgroundColor)!=null?y:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.l("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var I,y;return(((I=this.commentEntity)==null?void 0:(y=I.properties)==null?void 0:y.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var I,y;if(_.l("enable_profile_cards_on_comments")&&((I=this.commentEntity)==null?0:(y=I.author)==null?0:y.profileCardEndpoint)&&this.viewModel.allowProfileCard){var D,F;return _.u((D=this.commentEntity)==null?void 0:(F=D.author)==null?void 0:F.profileCardEndpoint,_.Iu)}var R,O;return _.u((R=this.commentEntity)==null?void 0:(O=R.avatar)==null?void 0:O.endpoint,_.Iu)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var I,y;if(_.l("enable_profile_cards_on_comments")&&((I=this.commentEntity)==null?0:(y=I.author)==null?0:y.channelPageEndpoint)){var D,F;return _.u((D=this.commentEntity)==null?void 0:(F=D.author)==null?void 0:F.channelPageEndpoint,_.Iu)}var R,O;return _.u((R=this.commentEntity)==null?void 0:(O=R.avatar)==null?void 0:O.endpoint,_.Iu)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R=(I=this.commentEntity)==null?void 0:(y=I.avatar)==null?void 0:(D=y.image)==null?void 0:(F=D.sources)==null?void 0:F[0];return R?{thumbnails:[{url:R.url,width:R.width,height:R.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.commentEntity)==null?0:(y=I.author)==null?0:y.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.commentEntity)==null?void 0:(y=I.author)==null?void 0:y.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.commentEntity)==null?void 0:(y=I.properties)==null?void 0:y.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.commentSurfaceEntity)==null?void 0:I.publishedTimeCommand,_.Iu)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var I,y;if(((I=this.commentEntity)==null?0:I.translatedContent)&&((y=this.translateButtonState)==null?void 0:y.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 F,R;return((F=this.commentEntity)==null?void 0:(R=F.properties)==null?void 0:R.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.commentSharedEntity)==null?void 0:(y=I.strings)==null?void 0:y.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.commentSharedEntity)==null?void 0:(y=I.strings)==null?void 0:y.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.commentEntity)==null||!I.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var I,y,D=(y=_.u((I=this.viewModel)==null?void 0:I.translateButton,mnW))!=null?y:{},F,R,O,w,v,P,K,r,N,h,x;return Object.assign({},D,{untoggledStateData:Object.assign({},D.untoggledStateData,{buttonText:(F=this.commentEntity)==null?void 0:(R=F.translateData)==null?void 0:R.text}),togglingStateData:Object.assign({},D.togglingStateData,{buttonText:(O=this.commentSharedEntity)==null?
void 0:(w=O.strings)==null?void 0:w.translatingText}),toggledStateData:Object.assign({},D.toggledStateData,{buttonText:(v=this.commentSharedEntity)==null?void 0:(P=v.strings)==null?void 0:P.seeOriginalText}),transitionCommand:((K=this.commentEntity)==null?0:K.translatedContent)?void 0:_.u((r=this.commentEntity)==null?void 0:(N=r.translateData)==null?void 0:N.translateComment,_.Iu),triStateKey:(h=this.commentEntity)==null?void 0:(x=h.properties)==null?void 0:x.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((y=_.u(_.u((I=this.toolbarSurface)==null?void 0:I.menuCommand,_.Iu),wbM))==null?void 0:(D=y.menu)==null?void 0:D.menuRenderer)||null}}});
FK.prototype.onYtCommentboxResize=FK.prototype.onYtCommentboxResize;FK.prototype.onYtCommentboxDismiss=FK.prototype.onYtCommentboxDismiss;FK.prototype.onYtNavigate=FK.prototype.onYtNavigate;FK.prototype.resetExpander=FK.prototype.resetExpander;FK.prototype.updateBackgroundColor=FK.prototype.updateBackgroundColor;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],FK.prototype,"ytdReduxBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#author-thumbnail > button"),_.A("design:type",HTMLElement)],FK.prototype,"authorThumbnailAnchor",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FK.prototype,"linked",null);
_.W([_.Y("viewModel","linked"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"linkedCommentBadge",null);_.W([_.M({reflectToAttribute:!0}),_.Y("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FK.prototype,"pinned",null);_.W([_.Y("viewModel","pinned"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"pinnedCommentBadge",null);
_.W([_.Y("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"authorCommentBadge",null);_.W([_.M({reflectToAttribute:!0}),_.Y("authorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"hasAuthorBadge",null);_.W([_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"sponsorCommentBadge",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("sponsorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"hasSponsorBadge",null);_.W([_.Y("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"pdgCommentChipRenderer",null);_.W([_.M({reflectToAttribute:!0}),_.Y("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"hasVoiceReply",null);
_.W([_.Y("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"voiceReplyContainerViewModel",null);_.W([_.Y("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"voiceReplyUnavailableText",null);_.W([_.M(),_.A("design:type",Object)],FK.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"viewModel",null);
_.W([_.M({selector:function(I,y){return _.nC(I.entities,"commentSharedEntityPayload",y)},
selectorArgs:["viewModel.sharedKey"]}),_.A("design:type",Object)],FK.prototype,"commentSharedEntity",void 0);_.W([_.M({selector:cAW,selectorArgs:["viewModel.commentKey"]}),_.A("design:type",Object)],FK.prototype,"commentEntity",void 0);_.W([_.M({selector:function(I,y){return _.nC(I.entities,"commentSurfaceEntityPayload",y)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.A("design:type",Object)],FK.prototype,"commentSurfaceEntity",void 0);_.W([_.M({selector:W0C,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.A("design:type",Object)],FK.prototype,"toolbarSurface",void 0);_.W([_.M({selector:C2C,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.A("design:type",Object)],FK.prototype,"translateButtonState",void 0);
_.W([_.Y("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"backgroundColor",null);_.W([_.M({reflectToAttribute:!0}),_.Y("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FK.prototype,"optimalReadingWidthComments",null);_.W([_.a0("ytd-expander"),_.A("design:type",Object)],FK.prototype,"expander",void 0);
_.W([_.ke("backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FK.prototype,"updateBackgroundColor",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FK.prototype,"useSmallAvatars",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],FK.prototype,"engagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FK.prototype,"commentThreadingEnabled",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FK.prototype,"webWatchCompactComments",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"isReply",null);_.W([_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"authorThumbnailEndpoint",null);_.W([_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"authorNameEndpoint",null);
_.W([_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"authorThumbnail",null);_.W([_.Y("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],FK.prototype,"authorTextClass",null);_.W([_.Y("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],FK.prototype,"authorChannelName",null);_.W([_.Y("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"publishedTime",null);
_.W([_.Y("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"publishedTimeCommand",null);_.W([_.Y("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"contentText",null);_.W([_.ke("contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FK.prototype,"resetExpander",null);
_.W([_.Y("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FK.prototype,"shouldShowReadMoreInitially",null);_.W([_.Y("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],FK.prototype,"expandText",null);_.W([_.Y("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],FK.prototype,"collapseText",null);_.W([_.Y("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FK.prototype,"shouldShowTranslateButton",null);
_.W([_.Y("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"translateButton",null);_.W([_.Y("toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],FK.prototype,"overflowMenuRenderer",null);_.W([_.M(),_.A("design:type",Object)],FK.prototype,"editDialog",void 0);_.W([_.a0("ytd-comment-dialog-renderer"),_.A("design:type",Object)],FK.prototype,"editCommentDialogContainer",void 0);
_.W([_.a0("ytd-comment-reply-dialog-renderer"),_.A("design:type",Object)],FK.prototype,"editReplyDialogContainer",void 0);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],FK.prototype,"onYtNavigate",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],FK.prototype,"onYtCommentboxDismiss",null);
_.W([_.z4("yt-commentbox-resize"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],FK.prototype,"onYtCommentboxResize",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-comment-view-model"})],FK);
_.a(FK,"ytd-comment-view-model",function(){if(inO!==void 0)return inO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return inO=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});_.NK(_.d(function(I){var y={};return _.t("yt-sub-thread",{class:_.XH("ytSubThreadHost",(y.ytSubThreadHasButton=I.isButton,y.ytSubThreadHovered=I.hovered,y.ytSubThreadTopLevelThread=function(){var D,F;return((D=I.topLevelThread)==null?void 0:D.call(I))&&!(_.l("small_avatars_for_comments")&&((F=I.engagementPanel)==null?0:F.call(I)))},y))},_.t("div",{class:"ytSubThreadThreadline"},_.t(_.U,{cond:function(){var D;
return!((D=I.isTeaser)==null?0:D.call(I))},
then:function(){return _.t("div",{class:"ytSubThreadConnection"})}}),_.t("div",{class:"ytSubThreadContinuation"}),_.t("div",{class:"ytSubThreadShadow"})),_.t("div",{class:"ytSubThreadSubThreadContent"},I.children))},"Nc"),"yt-sub-thread",{props:{isButton:_.om,
isTeaser:_.om,hovered:_.om,topLevelThread:_.om,engagementPanel:_.om}});var RY=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_modern_buttons");I.commentThreadingEnabled=_.l("web_delhi_comment_threads");I.isWatchGrid=_.l("kevlar_watch_grid");I.buttonOverrides=I.commentThreadingEnabled?_.l("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};I.JSC$16306_spinnerEl=null;return I};
_.E(RY,_.k);_.L=RY.prototype;_.L.configureContinuationPathMap=function(){return _.l("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.L.shouldShowLegacyTeasers=function(I,y){return I&&!y};
_.L.shouldShowExpandedThreads=function(I,y){return this.commentThreadingEnabled&&y&&(I==null?void 0:I.length)>0};
_.L.shouldShowCollapsedThreads=function(I,y){return this.commentThreadingEnabled&&!y&&I};
_.L.computeCommentViewModel=function(I){return _.u(I,ptP)};
_.L.computeThreadRenderer=function(I){return _.u(I,G0g)};
_.L.computeIsContinuationItem=function(I){return!!this.computeContinuationItemRenderer(I)};
_.L.computeButtonRenderer=function(I){return _.u(I,_.S1)};
_.L.computeContinuationItemRenderer=function(I){return _.u(I,_.hs)};
_.L.computeShowButton=function(I){var y;return!((y=this.computeContinuationItemRenderer(I))==null||!y.button)};
_.L.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]]"}}}}}};
_.L.attached=function(){this.isShowRepliesVisible=!0};
_.L.dataChanged=function(){var I=this.expanderContents;I&&(I.hidden=!0);this.isLoading=!1};
_.L.endsInContinuation=function(I){return!!I&&I.length>0&&!!this.computeContinuationItemRenderer(I[I.length-1])};
_.L.computeShouldShowHideRepliesButton=function(I,y){return!I&&y};
_.L.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.L.isLoadingChanged=function(){this.isLoading&&!this.JSC$16306_spinnerEl&&(this.JSC$16306_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XB(this.expanderContents).appendChild(this.JSC$16306_spinnerEl));this.JSC$16306_spinnerEl&&(this.JSC$16306_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var I;(I=this.contents)==null||I.classList.remove("reloading")}};
_.L.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var I=_.u(this.data.viewReplies,_.S1);I&&this.ytRendererBehavior.logExplicitClick(I);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.L.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var I=_.u(this.data.hideReplies,_.S1);I&&this.ytRendererBehavior.logExplicitClick(I);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.L.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var I=_.XB(this.hostElement).querySelector("#expander-contents");I&&(I.hidden=this.isShowRepliesVisible)}};
_.L.computeAlign=function(){if(this.modern){var I;return!((I=this.data)==null?0:I.viewRepliesCreatorThumbnail)}};
_.mD.Object.defineProperties(RY.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var I,y;return this.endsInContinuation((I=this.data)==null?void 0:I.contents)||this.commentThreadingEnabled&&this.endsInContinuation((y=this.data)==null?void 0:y.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var I;return(I=this.data)==null?void 0:I.teaserContents}}});
RY.prototype.isShowMoreChanged=RY.prototype.isShowMoreChanged;RY.prototype.isLoadingChanged=RY.prototype.isLoadingChanged;RY.prototype.triggerFirstContinuation=RY.prototype.triggerFirstContinuation;RY.prototype.dataChanged=RY.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.ha),_.A("design:type",Object)],RY.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RY.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RY.prototype,"modern",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RY.prototype,"commentThreadingEnabled",void 0);_.W([_.M(),_.A("design:type",Boolean)],RY.prototype,"expanded",void 0);
_.W([_.M(),_.A("design:type",Function)],RY.prototype,"toggleExpanded",void 0);_.W([_.M(),_.A("design:type",Array)],RY.prototype,"addedReplies",void 0);_.W([_.M(),_.A("design:type",Boolean)],RY.prototype,"hovered",void 0);_.W([_.M(),_.A("design:type",Boolean)],RY.prototype,"topLevelThread",void 0);_.W([_.M(),_.A("design:type",Boolean)],RY.prototype,"isLoading",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],RY.prototype,"isShowRepliesVisible",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],RY.prototype,"useNewFormatting",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],RY.prototype,"engagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RY.prototype,"isWatchGrid",void 0);_.W([_.M(),_.A("design:type",Object)],RY.prototype,"buttonOverrides",void 0);_.W([_.a0("#expander-contents"),_.A("design:type",HTMLElement)],RY.prototype,"expanderContents",void 0);
_.W([_.a0("ytd-continuation-item-renderer"),_.A("design:type",Object)],RY.prototype,"continuationItemRenderer",void 0);_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],RY.prototype,"contents",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"dataChanged",null);_.W([_.Y("data.contents","data.subThreads.*"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],RY.prototype,"hasContinuation",null);
_.W([_.Y("data.teaserContents"),_.A("design:type",Object),_.A("design:paramtypes",[])],RY.prototype,"subThreadTeasers",null);_.W([_.z4("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"triggerFirstContinuation",null);_.W([_.ke("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"isLoadingChanged",null);
_.W([_.ke("isShowRepliesVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"isShowMoreChanged",null);_.W([_.yd({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],RY);
_.a(RY,"ytd-comment-replies-renderer",function(){if(dIu!==void 0)return dIu;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return dIu=I},{mode:1});var Hnc;var O0=function(){var I=_.k.apply(this,arguments)||this;I.isOpen=!1;I.commentDialog=null;I.useSmallAvatars=_.l("small_avatars_for_comments");I.useSmallAvatarsEngagementPanelOnly=_.l("small_avatars_for_comments_ep");I.placeholderFocusListener=null;I.hasOpenedDialog=!1;I.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return I};
_.E(O0,_.k);_.L=O0.prototype;_.L.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]]"}}}}}};
_.L.ready=function(){var I=this,y=_.XB(this.hostElement).querySelector("#placeholder-area"),D=_.XB(this.hostElement).querySelector("#simplebox-placeholder"),F=function(R){R.stopPropagation();R instanceof KeyboardEvent&&R.type==="keypress"&&R.keyCode!==13&&R.keyCode!==32||I.openDialog()};
this.placeholderFocusListener=F;D.addEventListener("focus",this.placeholderFocusListener);y.addEventListener("tap",F);y.addEventListener("keypress",F)};
_.L.maybeRemoveFocusEventListener=function(){var I;(I=this.data)!=null&&I.prepareAccountEndpoint&&!_.l("web_comments_simplebox_modal_focus_on_tap_ks")&&(I=_.XB(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(I.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.L.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.L.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.l("web_comment_simplebox_resolve_polymer_command_ks")?_.M4.instance.resolveCommand(this.data.prepareAccountEndpoint):_.zv(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);I&&this.ytdOpenPopupBehavior.openPopup(I);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(I),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.XB(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.L.onYtCommentboxDismiss=function(I){I.stopPropagation();this.isOpen=!1};
_.L.onCreateCommentAction=function(I){this.get("createCommentAction.contents",I)&&(this.isOpen=!1)};
_.L.computeCommentDialog=function(I){return{placeholderText:I.placeholderText,authorThumbnail:I.authorThumbnail,submitButton:I.submitButton,imageButton:I.imageButton,cancelButton:I.cancelButton,emojiButton:I.emojiButton,emojis:I.emojis,emojiPicker:I.emojiPicker,aadcGuidelinesStateEntityKey:I.aadcGuidelinesStateEntityKey,openAadcDialog:I.openAadcDialog,unicodeEmojisUrl:I.unicodeEmojisUrl}};
_.L.onHideIdentityChip=function(I){_.u(I,htM)&&this.set("data.placeholderText",_.u(I,htM).placeholderText)};
O0.prototype.onYtCommentboxDismiss=O0.prototype.onYtCommentboxDismiss;O0.prototype.dataChanged=O0.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],O0.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],O0.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],O0.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],O0.prototype,"isOpen",void 0);_.W([_.M(),_.A("design:type",Object)],O0.prototype,"commentDialog",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],O0.prototype,"engagementPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],O0.prototype,"useSmallAvatars",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],O0.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],O0.prototype,"enableCreationBox",void 0);_.W([_.M(),_.A("design:type",Boolean)],O0.prototype,"showCreateDialog",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],O0.prototype,"dataChanged",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],O0.prototype,"onYtCommentboxDismiss",null);_.W([_.yd({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],O0);
_.a(O0,"ytd-comment-simplebox-renderer",function(){if(Hnc!==void 0)return Hnc;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Hnc=I},{mode:1});var e_O;_.bO("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Lf=function(){var I=_.k.apply(this,arguments)||this;I.addHoverEffect=_.l("swatcheroo_comments_hover_effect");I.useSmallAvatars=_.l("small_avatars_for_comments");I.scrollingEnabled=_.l("web_comment_threading_scroll_on_collapse");I.isSubThread=!1;I.threadHovered=!1;I.expanded=!1;I.removed=!1;I.addedReplies=[];I.actionMap=I.configureActionMap();I.toggleExpanded=function(){I.expanded=!I.expanded;!I.expanded&&I.scrollingEnabled&&_.uj(I.hostElement,"yt-scroll-to-comment-element",[I.commentElement])};
return I};
_.E(Lf,_.k);_.L=Lf.prototype;_.L.configureActionMap=function(){return _.l("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"}:{}};
_.L.createCommentReplyAction=function(I){I=_.u(I,o0M);if(I!=null&&I.contents){var y=I.replyToCommentId,D=I.parentCommentId,F,R=(F=this.commentViewModel)==null?void 0:F.commentId;(R===y||R===D&&!y)&&this.maybeAttachReply(I.contents)}};
_.L.maybeAttachReply=function(I){var y,D;(((y=this.commentEntity)==null?void 0:(D=y.properties)==null?void 0:D.replyLevel)||0)>=3?_.lj(this.hostElement,"yt-pushed-create-comment-reply",I):this.attachReply(I)};
_.L.onPushedCreateCommentReply=function(I){var y,D;(((y=this.commentEntity)==null?void 0:(D=y.properties)==null?void 0:D.replyLevel)||0)>=3||(this.attachReply(I.detail),I.stopPropagation())};
_.L.attachReply=function(I){var y;((y=this.data)==null?0:y.replies)?(y=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+y+".continuationItemRenderer")?y===0?this.push("addedReplies",I):this.splice("data.replies.commentRepliesRenderer.subThreads",y,0,I):this.push("data.replies.commentRepliesRenderer.subThreads",I)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[I],viewReplies:{buttonRenderer:{text:_.lo(_.zC("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.L.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Td(this.addedReplies))),this.set("addedReplies",[]))};
_.L.removeCommentAction=function(I){I=_.u(I,uoG);var y=I==null?void 0:I.commentId,D;y&&((D=this.commentViewModel)==null?void 0:D.commentId)===y&&this.maybeRemoveComment(I.actionResult)};
_.L.banAuthorAction=function(I){I=_.u(I,rgf);var y=I==null?void 0:I.commentId,D;y&&((D=this.commentViewModel)==null?void 0:D.commentId)===y&&this.maybeRemoveComment(I.actionResult)};
_.L.hideReportedCommentAction=function(I){I=_.u(I,aBM);var y=I==null?void 0:I.commentId,D;y&&((D=this.commentViewModel)==null?void 0:D.commentId)===y&&this.maybeRemoveComment(I.actionResult)};
_.L.maybeRemoveComment=function(I){I&&I.status==="STATUS_SUCCEEDED"&&(this.feedbackText=I.feedbackText||_.lo("Reply removed"),this.removed=!0)};
_.L.onTap=function(I){if(this.addHoverEffect&&!this.engagementPanel&&!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||_.zv({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.L.attached=function(){var I=this;this.isSubThread&&(this.expanded=!0);var y;(y=this.commentThreadHitbox)==null||y.addEventListener("mouseover",function(){I.threadHovered=!0});
var D;(D=this.commentThreadHitbox)==null||D.addEventListener("mouseout",function(){I.threadHovered=!1});
var F;(F=this.commentThreadHitbox)==null||F.addEventListener("click",function(){I.maybeToggleExpanded()})};
_.L.onDataChanged=function(){var I=_.l("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(I)&&this.set(I,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.L.maybeToggleExpanded=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.replies)==null?void 0:(D=y.commentRepliesRenderer)==null?void 0:D.subThreads,R;(F==null?void 0:F.length)===1&&((R=_.u(F[0],_.hs))==null?0:R.button)&&this.expanded||this.toggleExpanded()};
_.mD.Object.defineProperties(Lf.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.data)==null?void 0:I.commentViewModel,ptP)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return _.l("web_delhi_comment_threads")&&!!((I=this.data)==null?0:(y=I.replies)==null?0:(D=y.commentRepliesRenderer)==null?0:D.subThreads)}}});
Lf.prototype.onDataChanged=Lf.prototype.onDataChanged;Lf.prototype.onTap=Lf.prototype.onTap;Lf.prototype.onAppendContinuationItemsActionFinished=Lf.prototype.onAppendContinuationItemsActionFinished;Lf.prototype.onPushedCreateCommentReply=Lf.prototype.onPushedCreateCommentReply;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Lf.prototype,"ytdReduxBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Lf.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"addHoverEffect",void 0);_.W([_.M(),_.A("design:type",Object)],Lf.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"useSmallAvatars",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"scrollingEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"isSubThread",void 0);_.W([_.a0(".thread-hitbox"),_.A("design:type",HTMLElement)],Lf.prototype,"commentThreadHitbox",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"threadHovered",void 0);_.W([_.a0("#comment"),_.A("design:type",HTMLElement)],Lf.prototype,"commentElement",void 0);
_.W([_.M(),_.A("design:type",Object)],Lf.prototype,"expanded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lf.prototype,"removed",void 0);_.W([_.M(),_.A("design:type",Object)],Lf.prototype,"feedbackText",void 0);_.W([_.M(),_.A("design:type",Array)],Lf.prototype,"addedReplies",void 0);_.W([_.M({selector:cAW,selectorArgs:["commentViewModel.commentKey"]}),_.A("design:type",Object)],Lf.prototype,"commentEntity",void 0);
_.W([_.z4("yt-pushed-create-comment-reply"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Lf.prototype,"onPushedCreateCommentReply",null);_.W([_.z4("yt-append-continuation-items-action-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lf.prototype,"onAppendContinuationItemsActionFinished",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lf.prototype,"commentViewModel",null);
_.W([_.Y("data.replies.commentRepliesRenderer.subThreads"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lf.prototype,"hasSubThreading",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Lf.prototype,"engagementPanel",void 0);_.W([_.z4("tap"),_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Lf.prototype,"onTap",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lf.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Lf);
_.a(Lf,"ytd-comment-thread-renderer",function(){if(e_O!==void 0)return e_O;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return e_O=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var Ts_;var Jk=function(){var I=_.k.apply(this,arguments)||this;I.compactHeader=_.l("web_watch_compact_comments_header");I.hidePanelButton=!1;I.isPostSchedulingEnabled=_.l("enable_post_scheduling");I.hasFinishedStamping=!1;I.JSC$16329_handleOpenPostCommentDialogActionAfterStamp=!1;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.E(Jk,_.k);_.L=Jk.prototype;
_.L.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"}}}};
_.L.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.L.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16329_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.L.onYtServiceRequestSent=function(I,y){if(!_.l("kevlar_command_handler")&&y.actions)for(I=0;I<y.actions.length;I++){var D=y.actions[I];_.u(D,iHM)&&_.XB(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.u(D,iHM))}};
_.L.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var I;if(this.getPrefilledBackstagePostDialog((I=this.data)==null?void 0:I.actions)){_.XB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var y=_.XB(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;y&&_.YC(this,function(){y.focus();y.openDialog&&y.openDialog()})}}else this.hasActionsChange=!0};
_.L.computeIsBackstage=function(I){return I};
_.L.onYtCommentboxDismiss=function(){_.XB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.L.removePrefilledDialog=function(I){if(I==null?0:I.actions){for(var y=I.actions.length-1;y>=0;y--){var D=void 0;((D=_.u(I.actions[y],RQf))==null?0:D.dialog)&&delete I.actions[y]}this.set("data",void 0);this.set("data",I)}};
_.L.getPrefilledBackstagePostDialog=function(I){if(I)for(var y=0;y<I.length;y++){var D=I[y],F=void 0;if((F=_.u(D,RQf))==null?0:F.dialog)return _.u(D,RQf).dialog}return null};
_.L.computeBackstagePostDialog=function(I){return I&&(this.getPrefilledBackstagePostDialog(I.actions)||I.createRenderer)};
_.L.dataChanged=function(){if(this.data){var I=this.data.customEmojis,y=this.data.unicodeEmojisUrl;_.rQ.clear();y&&_.CTO(_.rQ,y);I&&_.rQ.load(I)}};
_.L.handleSignalActionOpenPostCommentDialogAction=function(){var I=_.XB(this.hostElement).querySelector("ytd-comment-simplebox-renderer");I?I.openDialog():this.JSC$16329_handleOpenPostCommentDialogActionAfterStamp=!0};
_.L.onPostHeaderTap=function(){var I;((I=this.data)==null?0:I.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.mD.Object.defineProperties(Jk.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.l("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O,w;return!this.hidePanelButton&&_.l("kevlar_watch_comments_panel_button")&&((w=_.u((I=this.data)==null?void 0:(y=I.sortMenu)==null?void 0:(D=y.sortFilterSubMenuRenderer)==null?void 0:(F=D.subMenuItems)==null?void 0:(R=F[0])==null?void 0:(O=R.serviceEndpoint)==null?void 0:O.commandMetadata,_.nE))==null?void 0:w.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.zC("MINIPLAYER_EXPAND_LABEL"),text:_.Ug(_.zC("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Jk.prototype.dataChanged=Jk.prototype.dataChanged;Jk.prototype.onYtCommentboxDismiss=Jk.prototype.onYtCommentboxDismiss;Jk.prototype.observePrefilledBackstagePostDialog=Jk.prototype.observePrefilledBackstagePostDialog;Jk.prototype.onYtServiceRequestSent=Jk.prototype.onYtServiceRequestSent;Jk.prototype.onStampFinished=Jk.prototype.onStampFinished;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Jk.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Jk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Jk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jk.prototype,"compactHeader",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Jk.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],Jk.prototype,"hidePanelButton",void 0);_.W([_.M({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Jk.prototype,"isBackstage",void 0);_.W([_.M({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.A("design:type",Object)],Jk.prototype,"backstagePostDialog",void 0);
_.W([_.M(),_.A("design:type",Object)],Jk.prototype,"isPostSchedulingEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"useSpaceBetween",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data","hidePanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"showCommentsPanelButton",null);
_.W([_.Y("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jk.prototype,"commentsPanelButtonData",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jk.prototype,"onStampFinished",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],Jk.prototype,"onYtServiceRequestSent",null);
_.W([_.ke("data.actions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jk.prototype,"observePrefilledBackstagePostDialog",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Jk.prototype,"onYtCommentboxDismiss",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jk.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Jk);
_.a(Jk,"ytd-comments-header-renderer",function(){if(Ts_!==void 0)return Ts_;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ts_=I},{mode:1});var svP;var w5=function(){return _.k.apply(this,arguments)||this};
_.E(w5,_.k);_.W([_.M(),_.A("design:type",Object)],w5.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.W([_.yd({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],w5);
_.a(w5,"ytd-destination-button-renderer",function(){if(svP!==void 0)return svP;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return svP=I},{mode:1});var Via;var vJ=function(){var I=_.k.apply(this,arguments)||this;I.isRichGrid=!1;I.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return I};
_.E(vJ,_.k);_.L=vJ.prototype;_.L.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.L.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.L.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.L.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var I;if((I=this.data)==null||!I.isExpanded){I=this.hostElement.clientWidth;var y;if(I&&(y=this.data)!=null&&y.destinationButtons){y=Math.floor((I+4)/214);I=this.data.destinationButtons.length;var D=Math.ceil(I/y);this.fullyVisibleRows=I%y===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}}}};
_.L.updateRichGridDestinationButtonsVisibility=function(){var I,y;if(this.isRichGrid&&((I=this.data)==null||!I.isExpanded)&&(y=this.data)!=null&&y.destinationButtons){I=this.richGridItemsPerRow+1;y=this.data.destinationButtons.length;var D=Math.ceil(y/I);this.fullyVisibleRows=y%I===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
_.L.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vJ.prototype.updateRichGridDestinationButtonsVisibility=vJ.prototype.updateRichGridDestinationButtonsVisibility;_.W([_.M(),_.A("design:type",Object)],vJ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],vJ.prototype,"fullyVisibleRows",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],vJ.prototype,"isShowMoreVisible",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vJ.prototype,"isRichGrid",void 0);
_.W([_.M({selector:_.gH,value:0}),_.A("design:type",Number)],vJ.prototype,"richGridItemsPerRow",void 0);_.W([_.M(),_.A("design:type",Object)],vJ.prototype,"gridStateActionMap",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],vJ.prototype,"ytdReduxBehavior",void 0);_.W([_.ke("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vJ.prototype,"updateRichGridDestinationButtonsVisibility",null);_.W([_.yd({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],vJ);
_.a(vJ,"ytd-destination-shelf-renderer",function(){if(Via!==void 0)return Via;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Via=I},{mode:1});var Znz;var St=function(){return _.k.apply(this,arguments)||this};
_.E(St,_.k);St.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],St.prototype,"data",void 0);_.W([_.yd({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],St);
_.a(St,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Znz!==void 0)return Znz;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Znz=I},{mode:1});var gTe;var tk=function(){var I=_.k.apply(this,arguments)||this;I.disableAnimation=!1;I.isSlimlineSurvey=!1;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;return I};
_.E(tk,_.k);tk.prototype.onTap=function(I){I.preventDefault();this.data&&_.lj(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.mD.Object.defineProperties(tk.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 I,y,D,F,R;return((I=this.data)==null?0:I.checked)?(y=this.data)==null?void 0:(D=y.onStateIcon)==null?void 0:D.iconType:(F=this.data)==null?void 0:(R=F.defaultStateIcon)==null?void 0:R.iconType}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],tk.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tk.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],tk.prototype,"disableAnimation",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tk.prototype,"isSlimlineSurvey",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tk.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tk.prototype,"isShortsStyle",void 0);_.W([_.Y("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tk.prototype,"isAnimatedIcon",null);
_.W([_.Y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Number),_.A("design:paramtypes",[])],tk.prototype,"iconSize",null);_.W([_.Y("isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tk.prototype,"isDarkTheme",null);_.W([_.Y("data.checked"),_.A("design:type",Object),_.A("design:paramtypes",[])],tk.prototype,"icon",null);_.W([_.yd({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],tk);
_.a(tk,"ytd-rating-survey-option-renderer",function(){if(gTe!==void 0)return gTe;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return gTe=I},{mode:2});var IvW;var PJ=function(){var I=_.k.apply(this,arguments)||this;I.firstResponseText=null;I.lastResponseText=null;I.selectedNonStarOption=null;I.hideOptions=!1;I.hideUndoButton=!0;I.disableAnimation=!1;I.showResponseRangeText=!1;I.selectedRatingIndex=-1;I.isSlimlineSurvey=!1;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;I.slimlineSurveyRatingSelectedIndex=-1;return I};
_.E(PJ,_.k);_.L=PJ.prototype;_.L.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.L.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.L.onOptionChange=function(I,y){var D=this;I=y.onStateIcon&&y.defaultStateIcon&&y.onStateIcon.iconType===y.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(w,v){w.responseText===y.responseText?D.isSlimlineSurvey?(D.selectedRatingIndex=v,D.ytdReduxBehavior.dispatch(Ooe(v))):(D.setSurveyOptionValue(v,!0,"checked"),D.setSurveyOptionValue(v,!0,"selected")):(D.setSurveyOptionValue(v,!1,"checked"),D.setSurveyOptionValue(v,
!1,"selected"))});
else if(I)this.selectedNonStarOption=y,this.hideOptions=!0;else{var F=this.ytRendererBehavior.getSimpleString(y.responseText),R=!0;this.getOptionRenderers().forEach(function(w,v){D.setSurveyOptionValue(v,R,"checked");D.setSurveyOptionValue(v,!1,"selected");D.ytRendererBehavior.getSimpleString(w.responseText)===F&&(R=!1,D.setSurveyOptionValue(v,!0,"selected"))})}I=y.responseEndpoint;
var O;y.followUpCommand&&(O=_.u(y.followUpCommand,TtM));this.isSlimlineSurvey?(this.resetComponent(),_.uj(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.uj(this.hostElement,"ytd-inline-survey-rating-select-action",[I,O])};
_.L.showSelectedOption=function(){var I=this;_.w2.addJob(function(){var y=I.getOptionRenderers()[I.slimlineSurveyRatingSelectedIndex];I.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),y)},8,100)};
_.L.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(I){var y;return(y=_.u(I,VQG))!=null?y:{}}):[]};
_.L.onUndoClick=function(){this.resetComponent();_.uj(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.L.setSurveyOptionValue=function(I,y,D){this.notifyPath("data.ratings."+I+".ratingSurveyOptionRenderer."+D);this.set("data.ratings."+I+".ratingSurveyOptionRenderer."+D,y)};
_.L.resetComponent=function(){var I=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var y=this.getOptionRenderers(),D,F;this.firstResponseText=(F=(D=y[0])==null?void 0:D.responseText)!=null?F:null;var R,O;this.lastResponseText=(O=(R=y[y.length-1])==null?void 0:R.responseText)!=null?O:null;y.forEach(function(w,v){I.setSurveyOptionValue(v,!1,"checked");I.setSurveyOptionValue(v,!1,"selected")})};
_.mD.Object.defineProperties(PJ.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
PJ.prototype.onOptionChange=PJ.prototype.onOptionChange;PJ.prototype.dataChanged=PJ.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],PJ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"firstResponseText",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"lastResponseText",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"selectedNonStarOption",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"hideOptions",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"hideUndoButton",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"disableAnimation",void 0);
_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"showResponseRangeText",void 0);_.W([_.M(),_.A("design:type",Object)],PJ.prototype,"selectedRatingIndex",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PJ.prototype,"isSlimlineSurvey",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PJ.prototype,"isShortsStyle",void 0);_.W([_.M({selector:function(I){return I.ui.slimlineSurveyRatingSelectedIndex}}),
_.A("design:type",Object)],PJ.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.W([_.Y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],PJ.prototype,"isSingleSelect",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PJ.prototype,"dataChanged",null);
_.W([_.z4("ytd-rating-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],PJ.prototype,"onOptionChange",null);_.W([_.yd({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],PJ);
_.a(PJ,"ytd-rating-survey-renderer",function(){if(IvW!==void 0)return IvW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IvW=I},{mode:1});var y6G;var DfM;var FRz;var y3q=(pV.FIRSTDAYOFWEEK+1)%7,ROR=function(I,y,D,F){var R="";if(F.selection&&Vso(F.selection))Yw(I,F.selection)&&(R+=" selected");else if(F.selection&&Zsq(F.selection)){var O=F.selection.selectionState||"START_DATE";Yw(I,F.selection.start)&&(R+=" period-start ",O==="START_DATE"&&(R+="selected"));Yw(I,F.selection.end)&&(R+=" period-end ",O==="END_DATE"&&(R+="selected"));fV(I,F.selection.start)||fV(F.selection.end,I)||(R+=" highlighted")}if(fV(y,F.start)||fV(F.end,y))R+=" disabled";F.circleToday&&
Yw(y,D)&&(R+=" today");return R};var Kf=function(){return _.k.apply(this,arguments)||this};
_.E(Kf,_.k);_.L=Kf.prototype;_.L.attached=function(){var I=this;_.YC(this,function(){I.JSC$16363_calendarMain.scrollHeight>0&&(I.calendarConfig.selection?I.scrollToDate(gtB(I.calendarConfig.selection)):I.scrollToDate(I.calendarConfig.end))})};
_.L.updateSelection=function(I){I=Dpe(Object.assign({},this.calendarConfig,{selection:I}),ROR);this.splice.apply(this,["renderData.months",0,I.length].concat(_.Td(I)))};
_.L.scrollToDate=function(I){this.renderData&&(I=Fyt(I,this.renderData),I!==void 0&&this.JSC$16363_calendarMain.scrollToIndex(I))};
_.L.scrollToNextMonth=function(){this.JSC$16363_calendarMain.scrollToIndex(this.JSC$16363_calendarMain.firstVisibleIndex+1)};
_.L.scrollToPrevMonth=function(){this.JSC$16363_calendarMain.firstVisibleIndex===0&&this.JSC$16363_calendarMain.scrollTo(0,0);this.JSC$16363_calendarMain.scrollToIndex(this.JSC$16363_calendarMain.firstVisibleIndex-1)};
_.L.handleDayClick=function(I){_.uj(this.hostElement,"ytd-calendar-date-clicked",[I.model.day.date])};
_.L.handleDayMouseDown=function(I){I.preventDefault();_.uj(this.hostElement,"ytd-calendar-date-mousedown",[I.model.day.date])};
_.L.handleDayMouseUp=function(I){_.uj(this.hostElement,"ytd-calendar-date-mouseup",[I.model.day.date])};
_.L.handleDayMouseEnter=function(I){I.preventDefault();_.uj(this.hostElement,"ytd-calendar-date-mouseenter",[I.model.day.date])};
_.L.handleDayMouseLeave=function(I){_.uj(this.hostElement,"ytd-calendar-date-mouseleave",[I.model.day.date])};
_.mD.Object.defineProperties(Kf.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var I=this.calendarConfig,y=ROR;y=y===void 0?ROR:y;for(var D=[],F=0;F<7;F++)D.push(pV.NARROWWEEKDAYS[(F+y3q)%7]);return{months:Dpe(I,y),daysOfWeekLabel:D}}}});
_.W([_.M(),_.A("design:type",Object)],Kf.prototype,"calendarConfig",void 0);_.W([_.a0("#calendar-main"),_.A("design:type",Object)],Kf.prototype,"JSC$16363_calendarMain",void 0);_.W([_.Y("calendarConfig"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kf.prototype,"renderData",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Kf);
_.a(Kf,"ytd-scrollable-calendar",function(){if(FRz!==void 0)return FRz;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FRz=I},{mode:2});var OBn;var LRP;var U0=function(){var I=_.k.apply(this,arguments)||this;I.hideCharCounter=!1;I.hideLabel=!1;I.noLabelFloat=!1;I.autoValidate=!0;I.invalid=!1;I.disabled=!1;I.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return I};
_.E(U0,_.k);_.L=U0.prototype;_.L.reset=function(I){this.value=I&&this.data?this.data.value=I:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.L.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.L.focusTextInput=function(){this.input.focus()};
_.L.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()};
_.L.valueChanged=function(){var I,y;if(((I=this.data)==null?0:I.value)||((y=this.data)==null?void 0:y.value)==="")this.value=this.data.value;else{var D;((D=this.data)==null?void 0:D.value)!==void 0||this.value||(this.value="")}};
_.L.computeLabel=function(I,y){return y?"":_.rY(I)};
_.L.computeAriaLabel=function(I,y){return y?_.rY(I):""};
_.L.computeErrorMessage=function(I,y,D,F){!I&&y?I=D||this.strings.REQUIRED_LABEL:(I=_.rY(F),I=_.SW(I,"&")?"document"in _.Ft?m_M(I):MYn(I):I);return I};
_.L.computeType=function(I){return I==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.L.onTextValueChanged=function(I){this.value=I.detail.value;var y;(y=this.onValueChanged)==null||y.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.L.handleUpdateTextInputFormFieldRendererCommand=function(I){(I=_.u(I,jOM))&&this.data&&this.data.id===I.id&&(I.invalid!==void 0&&(this.invalid=I.invalid),I.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",I.invalidValueErrorMessage))};
_.L.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("value-changed",this.value))};
_.L.updateInvalidFromBinding=function(I){this.invalid=I.detail.value};
_.mD.Object.defineProperties(U0.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var I;return!((I=this.data)==null||!I.isMultiline)}}});
U0.prototype.valueChangedForBinding=U0.prototype.valueChangedForBinding;U0.prototype.valueChanged=U0.prototype.valueChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],U0.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],U0.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],U0.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],U0.prototype,"value",void 0);_.W([_.M(),_.A("design:type",String)],U0.prototype,"pattern",void 0);_.W([_.M(),_.A("design:type",String)],U0.prototype,"errorMessage",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],U0.prototype,"componentStyle",void 0);_.W([_.M(),_.A("design:type",Object)],U0.prototype,"hideCharCounter",void 0);
_.W([_.M(),_.A("design:type",Object)],U0.prototype,"hideLabel",void 0);_.W([_.M(),_.A("design:type",Object)],U0.prototype,"noLabelFloat",void 0);_.W([_.M(),_.A("design:type",Function)],U0.prototype,"onValueChanged",void 0);_.W([_.M(),_.A("design:type",Boolean)],U0.prototype,"isMultilineOverride",void 0);_.W([_.M(),_.A("design:type",Object)],U0.prototype,"autoValidate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],U0.prototype,"invalid",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],U0.prototype,"disabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],U0.prototype,"enableOverlayTheme",void 0);_.W([_.M({value:{REQUIRED_LABEL:_.zC("REQUIRED_LABEL",void 0,"Required")}}),_.A("design:type",Object)],U0.prototype,"strings",void 0);_.W([_.a0("#input"),_.A("design:type",Object)],U0.prototype,"input",void 0);
_.W([_.Y("data","isMultilineOverride"),_.A("design:type",Object),_.A("design:paramtypes",[])],U0.prototype,"isMultiline",null);_.W([_.Bp("data.value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],U0.prototype,"valueChanged",null);_.W([_.ke("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],U0.prototype,"valueChangedForBinding",null);_.W([_.I6({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],U0);
_.a(U0,"yt-text-input-form-field-renderer",function(){if(LRP===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;OBn===void 0&&(OBn=document.createElement("template"));var F=OBn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);LRP=I}I=LRP;return I},{mode:2});var r5=function(){var I=_.k.apply(this,arguments)||this;I.data=void 0;I.selectionState="START_DATE";I.isStartDateInvalid=!1;I.isEndDateInvalid=!1;I.autoapply=!1;I.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 I};
_.E(r5,_.k);_.L=r5.prototype;_.L.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"}}}}};
_.L.focus=function(){this.startDateInput.focus()};
_.L.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:nV(this.data.selection.start),end:nV(this.data.selection.end)})};
_.L.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.L.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.ya(this.selectionState)}};
_.L.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.L.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.L.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.L.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var I=this.calendar.calendarConfig,y=I.end;I=OUt({start:I.start,end:this.endDate||y},this.startDateInput.value||"");this.isStartDateInvalid=!I.isValid;I.isValid&&(I=I.value,this.selection=this.endDate?{start:I,end:this.endDate}:I,this.calendar.scrollToDate(I));this.updateInvalidState()}};
_.L.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var I=this.calendar.calendarConfig,y=I.start;I=OUt({start:this.startDate||y,end:I.end},this.endDateInput.value||"");this.isEndDateInvalid=!I.isValid;I.isValid&&(I=I.value,this.selection={start:this.startDate,end:I},this.calendar.scrollToDate(I));this.updateInvalidState()}};
_.L.handleCalendarDateClicked=function(I){var y=this.selection&&gtB(this.selection),D=this.selection&&I2H(this.selection);y&&!fV(I,y)&&this.selectionState==="END_DATE"?(this.selection={start:y,end:I},this.selectionState="START_DATE"):(D&&!fV(D,I)?this.selection={start:I,end:D}:this.selection=I,this.selectionState="END_DATE")};
_.L.handleCalendarDateMouseDown=function(I){this.selection&&!Vso(this.selection)&&(this.dragPivot=Yw(I,this.selection.start)?this.selection.end:Yw(I,this.selection.end)?this.selection.start:I)};
_.L.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.L.handleCalendarDateMouseEnter=function(I){this.dragPivot&&(this.selection={start:function(y,D){return fV(y,D)?y:D}(this.dragPivot,I),
end:function(y,D){return fV(y,D)?D:y}(this.dragPivot,I)},this.dragPivot||(this.selectionState="START_DATE"))};
_.L.handleCalendarDateMouseLeave=function(){};
_.L.handleCalendarSubmitDateRange=function(){this.selection&&!Vso(this.selection)&&_.uj(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.L.updateInvalidState=function(){var I=function(y,D){D?y.setAttribute("invalid",""):y.removeAttribute("invalid")};
I(this.startDateInput,this.isStartDateInvalid);I(this.endDateInput,this.isEndDateInvalid)};
_.L.updateDateStrings=function(){this.selection&&(Vso(this.selection)?sHt(this.selection):(sHt(this.selection.start),sHt(this.selection.end)))};
_.L.updateCalendarSelection=function(I){this.calendar.updateSelection(Object.assign({},I,{selectionState:this.selectionState}))};
_.L.updateIsStartDateInvalidFromBinding=function(I){this.isStartDateInvalid=I.detail.value};
_.L.updateIsEndDateInvalidFromBinding=function(I){this.isEndDateInvalid=I.detail.value};
_.L.updateStartDateStringFromBinding=function(){};
_.L.updateEndDateStringFromBinding=function(){};
_.mD.Object.defineProperties(r5.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:nV(this.data.dateRangeStart),end:nV(this.data.dateRangeEnd),selection:{start:nV(this.data.selection.start),end:nV(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&gtB(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&I2H(this.selection)}}});
r5.prototype.resetTextboxes=r5.prototype.resetTextboxes;r5.prototype.observeSelection=r5.prototype.observeSelection;r5.prototype.dataChanged=r5.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],r5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#calendar"),_.A("design:type",Object)],r5.prototype,"calendar",void 0);
_.W([_.a0("#start-date"),_.A("design:type",Object)],r5.prototype,"startDateInput",void 0);_.W([_.a0("#end-date"),_.A("design:type",Object)],r5.prototype,"endDateInput",void 0);_.W([_.M(),_.A("design:type",Object)],r5.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],r5.prototype,"selection",void 0);_.W([_.M(),_.A("design:type",String)],r5.prototype,"selectionState",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],r5.prototype,"calendarConfig",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],r5.prototype,"errorMessage",null);_.W([_.Y("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],r5.prototype,"startDate",null);_.W([_.Y("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],r5.prototype,"endDate",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r5.prototype,"dataChanged",null);
_.W([_.ke("selection","selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r5.prototype,"observeSelection",null);_.W([_.ke("selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r5.prototype,"resetTextboxes",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],r5);
_.a(r5,"ytd-date-period-picker-renderer",function(){if(DfM!==void 0)return DfM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return DfM=I},{mode:1});var jt=function(){var I=_.k.apply(this,arguments)||this;var y={};I.actionMap=(y["ytd-date-period-picker-apply"]="handleDateRangeUpdated",y);return I};
_.E(jt,_.k);jt.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
jt.prototype.handleDateRangeUpdated=function(){};
_.W([_.M(),_.A("design:type",Object)],jt.prototype,"data",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],jt.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],jt.prototype,"rendererstamperBehavior",void 0);_.W([_.yd({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],jt);
_.a(jt,"ytd-report-history-section-header-renderer",function(){if(y6G!==void 0)return y6G;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return y6G=I},{mode:1});var J6c;var wEn;var vLM;var oY=function(){return _.k.apply(this,arguments)||this};
_.E(oY,_.k);_.mD.Object.defineProperties(oY.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?0:(y=I.icon)==null?0:y.iconType)?_.pQ(this.data.icon.iconType):""}}});
_.W([_.M(),_.A("design:type",Object)],oY.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],oY.prototype,"icon",null);_.W([_.yd({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],oY);
_.a(oY,"ytd-report-history-table-text-cell-renderer",function(){if(vLM!==void 0)return vLM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vLM=I},{mode:1});var Nk=function(){return _.k.apply(this,arguments)||this};
_.E(Nk,_.k);Nk.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nk.prototype,"data",void 0);_.W([_.yd({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Nk);
_.a(Nk,"ytd-report-history-table-reason-cell-renderer",function(){if(wEn!==void 0)return wEn;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wEn=I},{mode:1});var hk=function(){return _.k.apply(this,arguments)||this};
_.E(hk,_.k);hk.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"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],hk.prototype,"rendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hk.prototype,"data",void 0);_.W([_.yd({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],hk);
_.a(hk,"ytd-report-history-table-cell-renderer",function(){if(J6c!==void 0)return J6c;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return J6c=I},{mode:1});var SiW;var xu=function(){var I=_.k.apply(this,arguments)||this;I.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 I};
_.E(xu,_.k);xu.prototype.onDataChanged=function(){var I;if((I=this.data)==null?0:I.style)this.componentStyle=this.getStyleName(this.data.style)};
xu.prototype.getCellForColumn=function(I){return this.cells.find(function(y){var D;return((D=_.u(y==null?void 0:y.cell,IjM)||_.u(y==null?void 0:y.cell,gFR))==null?void 0:D.columnId)===I.type})};
xu.prototype.getClassForColumn=function(I){switch(I){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
xu.prototype.getStyleName=function(I){switch(I){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.mD.Object.defineProperties(xu.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.cells)||[]).map(function(y){return _.u(y,ZPg)})}}});
xu.prototype.onDataChanged=xu.prototype.onDataChanged;_.W([_.M(),_.A("design:type",Object)],xu.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],xu.prototype,"columnRenderData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],xu.prototype,"componentStyle",void 0);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],xu.prototype,"cells",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xu.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],xu);
_.a(xu,"ytd-report-history-table-row-renderer",function(){if(SiW!==void 0)return SiW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SiW=I},{mode:1});var thn;var PxM;var LyL={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},J3L={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var lG=function(){return _.k.apply(this,arguments)||this};
_.E(lG,_.k);lG.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"}}}}}};
lG.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.mD.Object.defineProperties(lG.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.columns)?PrL(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Sz4(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var I=this.tableSpec,y=LyL;y=y===void 0?J3L:y;y=t_t(I.columnDimensions,I.columnsToShow||[],y);I=0;y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,I+=D.minWidth+D.paddingLeft+D.paddingRight;return I}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.W([_.Q(_.ha),_.A("design:type",Object)],lG.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lG.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],lG.prototype,"tableSpec",null);_.W([_.Y("tableSpec"),_.A("design:type",Array),_.A("design:paramtypes",[])],lG.prototype,"columnRenderData",null);
_.W([_.Y("tableSpec"),_.A("design:type",Number),_.A("design:paramtypes",[])],lG.prototype,"totalMinWidth",null);_.W([_.Y("totalMinWidth"),_.A("design:type",String),_.A("design:paramtypes",[])],lG.prototype,"tableWidthStyle",null);_.W([_.yd({is:"ytd-table-renderer",disableElementRegistration:!0})],lG);
_.a(lG,"ytd-table-renderer",function(){if(PxM!==void 0)return PxM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PxM=I},{mode:1});var uG=function(){return _.k.apply(this,arguments)||this};
_.E(uG,_.k);uG.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}}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uG.prototype,"data",void 0);_.W([_.yd({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],uG);
_.a(uG,"ytd-report-reason-history-modal-renderer",function(){if(thn!==void 0)return thn;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return thn=I},{mode:1});var KRe;var UfG;var r6O;var qk=function(){return _.k.apply(this,arguments)||this};
_.E(qk,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qk.prototype,"data",void 0);_.W([_.yd({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],qk);
_.a(qk,"ytd-profile-column-stats-entry-renderer",function(){if(r6O!==void 0)return r6O;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return r6O=I},{mode:1});var j4G;var E0=function(){return _.k.apply(this,arguments)||this};
_.E(E0,_.k);E0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],E0.prototype,"data",void 0);_.W([_.yd({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],E0);
_.a(E0,"ytd-profile-column-stats-renderer",function(){if(j4G!==void 0)return j4G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return j4G=I},{mode:1});var oLe;var Gn=function(){return _.k.apply(this,arguments)||this};
_.E(Gn,_.k);_.mD.Object.defineProperties(Gn.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.useThumbnailSize)return 80;var y,D;I=(y=this.data)==null?void 0:(D=y.thumbnail)==null?void 0:D.thumbnails;var F;return I&&((F=I[0])==null?void 0:F.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.useThumbnailSize)return 80;var y,D;I=(y=this.data)==null?void 0:(D=y.thumbnail)==null?void 0:D.thumbnails;var F;return I&&((F=I[0])==null?void 0:F.height)||80}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gn.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Gn.prototype,"componentStyle",void 0);_.W([_.Y("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],Gn.prototype,"thumbnailWidth",null);
_.W([_.Y("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],Gn.prototype,"thumbnailHeight",null);_.W([_.yd({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Gn);
_.a(Gn,"ytd-profile-column-user-info-renderer",function(){if(oLe!==void 0)return oLe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return oLe=I},{mode:1});var XK=function(){return _.k.apply(this,arguments)||this};
_.E(XK,_.k);XK.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]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],XK.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],XK.prototype,"componentStyle",void 0);_.W([_.yd({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],XK);
_.a(XK,"ytd-profile-column-renderer",function(){if(UfG!==void 0)return UfG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return UfG=I},{mode:1});var QP=function(){var I=_.k.apply(this,arguments)||this;I.componentStyle="NON_CENTERED_PROFILE";return I};
_.E(QP,_.k);QP.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
QP.prototype.getIcon=function(I){return I?"settings:"+I.toLowerCase():null};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QP.prototype,"data",void 0);_.W([_.yd({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],QP);
_.a(QP,"ytd-page-introduction-renderer",function(){if(KRe!==void 0)return KRe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return KRe=I},{mode:1});var NDM;var Yu=function(){return _.k.apply(this,arguments)||this};
_.E(Yu,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Yu.prototype,"data",void 0);_.W([_.yd({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Yu);
_.a(Yu,"ytd-report-description-renderer",function(){if(NDM!==void 0)return NDM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return NDM=I},{mode:1});var hO_;var xfM;var ff=function(){return _.k.apply(this,arguments)||this};
_.E(ff,_.k);ff.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ff.prototype,"data",void 0);_.W([_.yd({is:"ytd-video-report-renderer",disableElementRegistration:!0})],ff);
_.a(ff,"ytd-video-report-renderer",function(){if(xfM!==void 0)return xfM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xfM=I},{mode:1});var lvO;_.bO("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.bO("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var nf=function(){return _.k.apply(this,arguments)||this};
_.E(nf,_.k);nf.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]]"}}}}}};
nf.prototype.computeMessageStyle=function(I){return I};
nf.prototype.computeButtonOverride=function(I){var y;if((I==null?0:(y=I.style)==null?0:y.value)&&I.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nf.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],nf.prototype,"shelf",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],nf.prototype,"panel",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.A("design:type",Boolean)],nf.prototype,"componentStyle",void 0);_.W([_.M({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],nf.prototype,"buttonOverride",void 0);_.W([_.yd({is:"ytd-message-renderer",disableElementRegistration:!0})],nf);
_.a(nf,"ytd-message-renderer",function(){if(lvO!==void 0)return lvO;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lvO=I},{mode:1});var pf=function(){return _.k.apply(this,arguments)||this};
_.E(pf,_.k);pf.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"}}}};
pf.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
pf.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.mD.Object.defineProperties(pf.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!(((I=this.data)==null?0:I.header)&&((y=this.data)==null?0:y.table))}}});
pf.prototype.onRequestError=pf.prototype.onRequestError;_.W([_.Q(_.ha),_.A("design:type",Object)],pf.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pf.prototype,"data",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],pf.prototype,"isUnifiedReportHistory",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pf.prototype,"onRequestError",null);_.W([_.yd({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],pf);
_.a(pf,"ytd-report-history-section-renderer",function(){if(hO_!==void 0)return hO_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hO_=I},{mode:1});var uvn;var mB=function(){var I=_.k.apply(this,arguments)||this;I.answerExpanded=!1;return I};
_.E(mB,_.k);mB.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mB.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],mB.prototype,"answerExpanded",void 0);_.W([_.yd({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],mB);
_.a(mB,"ytd-handles-claiming-faq-renderer",function(){if(uvn!==void 0)return uvn;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return uvn=I},{mode:1});var qiu;var ELW=function(){return _.k.apply(this,arguments)||this};
_.E(ELW,_.k);_.W([_.M(),_.A("design:type",Object)],ELW.prototype,"data",void 0);_.W([_.yd({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],ELW);
_.a(ELW,"ytd-handles-claiming-faq-section-renderer",function(){if(qiu!==void 0)return qiu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qiu=I},{mode:1});var GDa;var Mk=function(){var I=_.k.apply(this,arguments)||this;I.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";I.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";I.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";I.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";I.leftSquiggly=I.leftSquigglyLight;I.rightSquiggly=I.rightSquigglyLight;
I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return I};
_.E(Mk,_.k);_.L=Mk.prototype;_.L.updateLeftSquigglyStyle=function(){_.pg(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.L.updateRightSquigglyStyle=function(){_.pg(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.L.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),I?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.L.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Mk.prototype.updateRightSquigglyStyle=Mk.prototype.updateRightSquigglyStyle;Mk.prototype.updateLeftSquigglyStyle=Mk.prototype.updateLeftSquigglyStyle;_.W([_.M(),_.A("design:type",Object)],Mk.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Mk.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",String)],Mk.prototype,"leftSquiggly",void 0);_.W([_.M(),_.A("design:type",String)],Mk.prototype,"rightSquiggly",void 0);
_.W([_.ke("leftSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mk.prototype,"updateLeftSquigglyStyle",null);_.W([_.ke("rightSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mk.prototype,"updateRightSquigglyStyle",null);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Mk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Mk.prototype,"actionButtonOverride",void 0);_.W([_.yd({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Mk);
_.a(Mk,"ytd-handles-claiming-header-renderer",function(){if(GDa!==void 0)return GDa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return GDa=I},{mode:1});var XEa;var zn=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";I.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";I.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";I.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
I.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";I.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";I.image0SquigglyBackground=I.image0LightSquigglyBackground;I.image1SquigglyBackground=I.image1LightSquigglyBackground;I.image3SquigglyBackground=I.image3LightSquigglyBackground;return I};
_.E(zn,_.k);_.L=zn.prototype;_.L.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.L.onDataChanged=function(){this.updateTitleAndImages()};
_.L.onThemeChanged=function(){this.updateTitleAndImages()};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
_.L.updateImage0SquigglyBackground=function(){_.pg(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.L.updateImage1SquigglyBackground=function(){_.pg(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.L.updateImage3SquigglyBackground=function(){_.pg(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.L.updateTitleAndImages=function(){var I,y;((I=this.data)==null?void 0:(y=I.titleImages)==null?void 0:y.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))};
zn.prototype.updateImage3SquigglyBackground=zn.prototype.updateImage3SquigglyBackground;zn.prototype.updateImage1SquigglyBackground=zn.prototype.updateImage1SquigglyBackground;zn.prototype.updateImage0SquigglyBackground=zn.prototype.updateImage0SquigglyBackground;zn.prototype.onThemeChanged=zn.prototype.onThemeChanged;zn.prototype.onDataChanged=zn.prototype.onDataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],zn.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],zn.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"title0",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"title1",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"title2",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"title3",void 0);
_.W([_.M(),_.A("design:type",Object)],zn.prototype,"title4",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"image0",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"image1",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"image2",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"image3",void 0);_.W([_.M(),_.A("design:type",Object)],zn.prototype,"image4",void 0);_.W([_.M(),_.A("design:type",String)],zn.prototype,"image0SquigglyBackground",void 0);
_.W([_.M(),_.A("design:type",String)],zn.prototype,"image1SquigglyBackground",void 0);_.W([_.M(),_.A("design:type",String)],zn.prototype,"image3SquigglyBackground",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"onDataChanged",null);_.W([_.ke("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"onThemeChanged",null);
_.W([_.ke("image0SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"updateImage0SquigglyBackground",null);_.W([_.ke("image1SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"updateImage1SquigglyBackground",null);
_.W([_.ke("image3SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zn.prototype,"updateImage3SquigglyBackground",null);_.W([_.yd({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],zn);
_.a(zn,"ytd-handles-claiming-title-images-section-renderer",function(){if(XEa!==void 0)return XEa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return XEa=I},{mode:1});var Q4c;var ku=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(ku,_.k);ku.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
ku.prototype.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I)};
ku.prototype.onCopyButtonClick=function(){var I=this,y,D,F;return _.S(function(R){return(y=I.data)!=null&&y.primaryChannelUrl?R.yield(navigator.clipboard.writeText(((D=I.data)==null?0:D.encodedChannelUrl)?I.data.encodedChannelUrl:"https://"+_.rY((F=I.data)==null?void 0:F.primaryChannelUrl)),0):R.jumpTo(0)})};
_.W([_.M(),_.A("design:type",Object)],ku.prototype,"data",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ku.prototype,"isDarkTheme",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ku.prototype,"ytActionHandlerBehavior",void 0);_.W([_.yd({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ku);
_.a(ku,"ytd-handles-claiming-update-social-renderer",function(){if(Q4c!==void 0)return Q4c;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Q4c=I},{mode:1});var Yig;var d5=function(){var I=_.k.apply(this,arguments)||this;I.JSC$16457_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";I.JSC$16457_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.squigglyBackground=I.JSC$16457_squigglyBackgroundLight;return I};
_.E(d5,_.k);d5.prototype.updateSquigglyBackgroundStyle=function(){_.pg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
d5.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.squigglyBackground=I?this.JSC$16457_squigglyBackgroundDark:this.JSC$16457_squigglyBackgroundLight};
d5.prototype.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),this.squigglyBackground=I?this.JSC$16457_squigglyBackgroundDark:this.JSC$16457_squigglyBackgroundLight)};
d5.prototype.updateSquigglyBackgroundStyle=d5.prototype.updateSquigglyBackgroundStyle;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],d5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],d5.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],d5.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",String)],d5.prototype,"squigglyBackground",void 0);_.W([_.ke("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d5.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.yd({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],d5);
_.a(d5,"ytd-handles-claiming-vanity-info-renderer",function(){if(Yig!==void 0)return Yig;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Yig=I},{mode:1});var fvM;var aY=function(){var I=_.k.apply(this,arguments)||this;I.JSC$16460_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";I.JSC$16460_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";I.squigglyBackground=I.JSC$16460_squigglyBackgroundLight;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(aY,_.k);_.L=aY.prototype;_.L.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),this.squigglyBackground=I?this.JSC$16460_squigglyBackgroundDark:this.JSC$16460_squigglyBackgroundLight)};
_.L.updateSquigglyBackgroundStyle=function(){_.pg(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.L.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.L.detached=function(){this.stop()};
_.L.stop=function(){this.playerElement.stop()};
_.L.setupVideoPlayer=function(){var I=this,y,D;return _.S(function(F){y=I.data.videoId;D="http://i1.ytimg.com/vi/"+y+"/maxresdefault.jpg";I.playerElement.loadVideoWithPlayerVars({video_id:y,iurlhq:D});_.Cj(F)})};
aY.prototype.onDataChanged=aY.prototype.onDataChanged;aY.prototype.updateSquigglyBackgroundStyle=aY.prototype.updateSquigglyBackgroundStyle;_.W([_.M({value:!1}),_.A("design:type",Boolean)],aY.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",String)],aY.prototype,"squigglyBackground",void 0);_.W([_.a0("#player"),_.A("design:type",Object)],aY.prototype,"playerElement",void 0);_.W([_.M(),_.A("design:type",Object)],aY.prototype,"data",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],aY.prototype,"ytActionHandlerBehavior",void 0);_.W([_.ke("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aY.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aY.prototype,"onDataChanged",null);
_.W([_.yd({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],aY);
_.a(aY,"ytd-handles-claiming-video-item-renderer",function(){if(fvM!==void 0)return fvM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return fvM=I},{mode:1});var nLM;var WJ=function(){var I=_.Wp.apply(this,arguments)||this;I.dragging=!1;I.dragMouseStart=0;I.dragOffsetStart=0;I.containerWidthDiff=0;I.boundPrevClick=function(){I.set("offset",cJ(I,I.offset-(I.scrollDistance||320)))};
I.boundNextClick=function(){I.set("offset",cJ(I,I.offset+(I.scrollDistance||320)))};
I.boundScrollContainerMouseDown=function(y){I.dragMouseStart=y.clientX;I.dragOffsetStart=I.offset;I.dragging=!0};
I.boundScrollContainerDrag=function(y){I.dragging&&I.set("offset",cJ(I,I.dragOffsetStart-(y.clientX-I.dragMouseStart)))};
I.boundMouseUp=function(){I.onMouseUp()};
I.boundWheelScroll=function(y){var D=0;Math.abs(y.deltaX)>=Math.abs(y.deltaY)?D=y.deltaX:y.shiftKey&&(D=y.deltaY);D!==0&&(I.offset+=D,y.stopPropagation(),y.preventDefault())};
I.boundChipCloudChipScrollIntoView=function(y){(y=y.detail)&&I.scrollChipIntoView(y)};
return I};
_.E(WJ,_.Wp);WJ.prototype.attached=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container");I.addEventListener("wheel",this.boundWheelScroll);I.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);I.style.touchAction="pan-y";I.addEventListener("pointerdown",this.boundScrollContainerMouseDown);I.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
WJ.prototype.detached=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container");I.removeEventListener("wheel",this.boundWheelScroll);I.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);I.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);I.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
WJ.prototype.reset=function(){this.set("offset",0);_.YC(this,this.setContainerWidthDiff);_.YC(this,this.setButtonsState)};
var cJ=function(I,y){return Math.min(Math.max(y,0),I.containerWidthDiff)};
_.L=WJ.prototype;_.L.onMouseUp=function(){this.dragging=!1};
_.L.transformContainer=function(){this.offset=cJ(this,this.offset);var I=_.Pi("HTML_DIR")==="rtl"?"":"-";_.XB(this.hostElement).querySelector("#chips").style.transform="translateX("+I+this.offset+"px)";_.YC(this,this.setButtonsState)};
_.L.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=cJ(this,this.offset));this.atStart=this.offset<=0};
_.L.setContainerWidthDiff=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container"),y=_.XB(this.hostElement).querySelector("#chips");I&&y&&(this.containerWidthDiff=y.clientWidth-I.clientWidth)};
_.L.scrollChipIntoView=function(I){var y=_.XB(this.hostElement).querySelector("#scroll-container");if(y){var D=this.atStart?0:106,F=this.atEnd?0:106;I.offsetLeft<this.offset+D?this.offset=cJ(this,I.offsetLeft-D):I.offsetLeft+I.clientWidth>this.offset+y.clientWidth-F&&(this.offset=cJ(this,I.offsetLeft+I.clientWidth+F-y.clientWidth))}};
WJ.prototype.transformContainer=WJ.prototype.transformContainer;_.W([_.M({value:0}),_.A("design:type",Number)],WJ.prototype,"offset",void 0);_.W([_.M({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],WJ.prototype,"atStart",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],WJ.prototype,"atEnd",void 0);_.W([_.M(),_.A("design:type",Number)],WJ.prototype,"scrollDistance",void 0);
_.W([_.ke("offset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WJ.prototype,"transformContainer",null);_.W([_.Cg()],WJ);var pEe;var mfM;_.Cf=_.d(function(I){var y=I.data;I=_.J(_.$M(!1,void 0,"bob3J"));var D=I.next().value,F=I.next().value;I=function(O){if((y==null?void 0:y().state)!==1){var w,v;(v=(w=y()).onTap)==null||v.call(w,O)}};
var R={};return _.t("chip-shape",{class:"ytChipShapeHost","on:focusin":_.YY(function(){var O=_.nR().resolve(_.fR(_.Q3));if(O){F(O.isKeyBoardInUse());var w,v;(v=(w=y()).onFocusIn)==null||v.call(w)}return!1}),
"on:focusout":_.YY(function(){F(!1);return!1})},_.t(Mhe,{shouldWrapInButton:function(){return y().type!==2},
selected:function(){return y().state===0},
onClick:I,isDropdown:function(){return y().type===1},
accessibilityLabel:function(){return y().type===1?void 0:y().accessibilityLabel}},_.t("div",{class:_.XH("ytChipShapeChip",function(){a:switch(y==null?void 0:y().state){case 0:var O="ytChipShapeActive";
break a;case 1:O="ytChipShapeDisabled";break a;default:O="ytChipShapeInactive"}return O},function(){var O=y().type===1||y().type===2,w=y();
return O||w!=null&&w.startIcon?w==null||!w.startIcon||w!=null&&w.text?O?"ytChipShapeEndIconPadding":(w==null?0:w.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var O=y();
if((O==null?void 0:O.style)===0&&(O==null?void 0:O.state)===0){var w;O=((w=_.nR().resolve(_.fR(_.cS)))==null?0:w())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else O="";return O},(R.ytChipShapeFocused=function(){var O;
return D()&&((O=y())==null?void 0:O.state)!==1},R))},_.t(_.U,{cond:function(){return y().startIcon},
then:function(){return _.t(_.mj,{icon:function(){var O;return(O=y())==null?void 0:O.startIcon},
className:_.XH(function(){return y().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var O=y(),w,v=(w=_.nR().resolve(_.fR(_.cS)))==null?void 0:w();
return(O==null?void 0:O.style)===0&&(O==null?void 0:O.state)===0&&v?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return y().text},_.t(zOO,{shape:y,
onClick:I}),_.t(_.fM,{model:{borderRadius:"8px"}}))))},"Oc");
_.Cf.idomCompat=!0;var Mhe=_.d(function(I){var y=_.YY(function(D){I.onClick(D);return!1});
return _.t(_.U,{cond:I.shouldWrapInButton,then:function(){return _.t("button",{class:"ytChipShapeButtonReset","on:click":y,role:function(){return I.isDropdown()?"combobox":"tab"},
"aria-label":I.accessibilityLabel,"aria-selected":I.selected},I.children)},
else:function(){return I.children}})},"Pc"),zOO=_.d(function(I){var y=I.shape;
var D=I.onClick;var F=_.YY(function(R){D(R);return!1});
return _.t(_.I8,null,_.t(_.Vj,{when:function(){return y().type===1}},function(){return _.t(_.mj,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.t(_.Vj,{when:function(){return y().type===2}},function(){return _.t("button",{class:"ytChipShapeButtonReset",
"on:click":F},_.t(_.mj,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.t(_.Vj,{when:function(){return y().type===0}},function(){return _.t(_.ni,null)}))},"Qc");_.NK(_.Cf,"chip-shape",{props:{data:_.om}});var BJ=function(){var I=_.k.apply(this,arguments)||this;I.disableDeselectEvent=!1;I.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return I};
_.E(BJ,_.k);_.L=BJ.prototype;_.L.onSelectChipCommand=function(I){if(!this.selected&&this.data&&(I=_.u(I,L6n),I.targetId&&I.targetId===this.data.targetId))this.onTap()};
_.L.onFilterChipTransformCommand=function(I){if(!this.selected&&this.data){var y;(I=(y=_.u(I,g_W))==null?void 0:y.chipUniqueId)&&I===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.L.dataChanged=function(){var I=this;_.YC(this,function(){I.data&&I.data.isSelected&&!I.selected&&(I.scrollChipIntoView(),I.onTap())})};
_.L.computeChipStyle=function(I){return I!=null?I:"STYLE_DEFAULT"};
_.L.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.uj(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.uj(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.L.onFocus=function(){var I=_.nR().resolve(_.fR(_.Q3));I&&I.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.L.scrollChipIntoView=function(){_.lj(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.mD.Object.defineProperties(BJ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return hzB({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
BJ.prototype.onFocus=BJ.prototype.onFocus;BJ.prototype.onTap=BJ.prototype.onTap;BJ.prototype.dataChanged=BJ.prototype.dataChanged;_.W([_.Q(_.AK),_.A("design:type",Object)],BJ.prototype,"ironButtonState",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],BJ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.CP),_.A("design:type",Object)],BJ.prototype,"ironA11yKeysBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BJ.prototype,"disableDeselectEvent",void 0);_.W([_.M(),_.A("design:type",Object)],BJ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.icon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BJ.prototype,"hasIcon",null);
_.W([_.M({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.A("design:type",String)],BJ.prototype,"chipStyle",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],BJ.prototype,"selected",void 0);_.W([_.Y("data","selected"),_.A("design:type",Object),_.A("design:paramtypes",[])],BJ.prototype,"chipShapeData",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BJ.prototype,"dataChanged",null);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BJ.prototype,"onTap",null);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BJ.prototype,"onFocus",null);_.W([_.I6({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],BJ);
_.a(BJ,"yt-chip-cloud-chip-renderer",function(){if(mfM===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;pEe===void 0&&(pEe=document.createElement("template"));var F=pEe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);mfM=I}I=mfM;return I},{mode:2});var u75=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.kDz=_.d(function(I){function y(){if(u75.has(I.data().displayType)){var K=!F(),r;if((r=I.disableDeselection)==null||!r.call(I)||K){I.data().selected=K;r=Object.assign({},w(),{selected:K});v(r);var N;(N=I.callback)==null||N.call(I,r,K)}}}
var D=_.DF("chip-view-model",function(K){var r=I.data().tooltipTargetId,N=_.$D();r&&_.Ax(N,r,K);return function(){i3(N,K)}}),F=function(){var K,r;
return!!(((K=I.selected)==null?void 0:K.call(I))!==void 0?(r=I.selected)==null?0:r.call(I):w().selected)},R=_.J(_.N4(I.data)),O=R.next().value;
R=R.next().value;var w=O,v=R,P=_.zj(l2B,function(){return I.data().chipEntityKey||""});
return _.t("chip-view-model",{class:"ytChipViewModelHost",el:D},_.t(_.Cf,{data:function(){var K,r=Object.assign({},w(),{selected:F()}),N=P(),h=(K=I.disableDeselection)==null?void 0:K.call(I);a:switch(r.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":K=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":K=3;break a;default:K=0}return{text:(N==null?void 0:N.text)||r.text,state:r.disabled?1:r.selected?0:2,type:K,onTap:qzt(r,D,y,
h),accessibilityLabel:r.accessibilityLabel||r.text}}}))},"Rc");
_.kDz.idomCompat={callbacks:{callback:!0}};_.iG=_.d(function(I){I=_.o6(I,{nextButtonStyle:0});var y=I.data,D=I.callback,F=I.selectionBehavior,R=I.disableChipsScrollAnimation,O=I.nextButtonStyle,w=_.Fh("div");I=_.J(_.$M(!0,void 0,"VwW6Jc"));var v=I.next().value,P=I.next().value;I=_.J(_.$M(!1,void 0,"OIoagd"));var K=I.next().value,r=I.next().value,N=!1,h=0,x=function(){switch(O()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.OJ(function(){P(f());r(m())});
I=_.J(_.N4(function(){var vH={};return y().autoselectedChipIndex!=null?(vH[y().autoselectedChipIndex]=!0,vH):{}}));
var q=I.next().value,X=I.next().value,f=function(){var vH=w.value;return vH==null||vH.scrollLeft-1<=0},m=function(){var vH=w.value;
return vH==null?!1:vH.scrollLeft+1>=(vH==null?NaN:vH.scrollWidth)-(vH==null?NaN:vH.clientWidth)},z=function(){return y().isHorizontallyScrollable},B=function(vH){w.value!=null&&(_.Pi("HTML_DIR")==="rtl"&&(vH=-vH),w.value.scrollBy({left:vH,
behavior:(R==null?0:R())?"instant":"smooth"}))},C=function(){B(-320)},H=function(){B(320)},e=_.YY(function(vH){N=!0;
h=vH.clientX}),T=_.YY(function(vH){if(N){vH=vH.clientX;
var u_=vH-h;h=vH;var jW;(jW=w.value)==null||jW.scrollBy({left:-u_})}}),L5=_.YY(function(){var vH=f(),u_=m();
vH!==v()&&P(vH);u_!==K()&&r(u_)});
_.fT("pointerup",function(){N&&(N=!1)});
return _.t("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.t(_.kZ,{contentId:function(){return y().contentId},
useModernStyle:!0},function(){var vH={},u_={};return _.t("div",null,_.t(_.U,{cond:function(){return y().title},
then:function(){return _.t("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.t("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return y().title}),_.t(_.aP,{data:function(){return y().overflowButton}},{buttonViewModel:_.My}))}}),_.t("div",{class:_.XH("ytChipsShelfViewModelChipsShelfContent",x)},_.t(_.U,{cond:function(){return y().previousButton},
then:function(){var jW={};return _.t("div",{class:_.XH("ytChipsShelfViewModelLeftArrowContainer",(jW.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return v()},jW))},_.t(_.aP,{data:function(){return y().previousButton}},{buttonViewModel:function(xA){return _.t(_.My,{data:xA.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:C})}}))}}),_.t("div",{el:w,
"on:pointerdown":e,"on:pointermove":T,"on:scroll":L5,class:_.XH("ytChipsShelfViewModelChipsScrollContainer",(vH.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=z,vH))},_.t("div",{class:_.XH("ytChipsShelfViewModelChipsContainer",(u_.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=z,u_.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,u_)),role:"tablist"},_.t(_.aP,{data:function(){return y().contents}},{chipViewModel:function(jW,xA){return _.t("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.t(_.kDz,{data:jW.data,
callback:function(dq,$A){var BH=xA(),jf,yg=(jf=F==null?void 0:F())!=null?jf:0;yg===1||yg===2?(jf={},X((jf[BH]=$A,jf))):yg===0&&(jf={},X(Object.assign({},q(),(jf[BH]=$A,jf))));D==null||D(dq,$A,BH)},
disableDeselection:function(){return(F==null?void 0:F())===1},
selected:function(){return!!q()[xA()]}}))}}))),_.t(_.U,{cond:function(){return y().nextButton},
then:function(){var jW={};return _.t("div",{class:_.XH("ytChipsShelfViewModelRightArrowContainer",(jW.ytChipsShelfViewModelRightArrowContainerIsHidden=K,jW))},_.t(_.aP,{data:function(){return y().nextButton}},{buttonViewModel:function(xA){return _.t(_.My,{data:xA.data,
className:"ytChipsShelfViewModelRightArrow",onClick:H})}}))}})))}))},"Tc");
_.iG.idomCompat={callbacks:{callback:!0}};var dfP=_.d(function(I){var y=I.data;var D=I.showChips;var F=I.isUpdateInProgress;var R=I.chipClickCallback;I=_.J(_.$M(!1,void 0,"uth3se"));var O=I.next().value,w=I.next().value;I=_.J(_.$M(!1,void 0,"qED0bb"));var v=I.next().value,P=I.next().value,K=function(){var N,h;return!((N=y())==null?0:N.responseMessage)&&!((h=y())==null||!h.chipsShelf)},r=void 0;
_.wZ(function(){P(!0);var N=(D()||K())&&!F();requestAnimationFrame(function(){w(N)});
r&&clearTimeout(r);r=setTimeout(function(){P(!1)},300)},"OBQBmf");
_.tI(function(){r&&clearTimeout(r)});
I={};return _.t("ytd-ai-response-box-view-model",{class:_.XH("ytdAiResponseBoxViewModelHost")},_.t("div",{class:_.XH("ytdAiResponseBoxViewModelResponseMessageContainer",(I.ytdAiResponseBoxViewModelResponseMessageContainerHidden=O,I.ytdAiResponseBoxViewModelNotShown=function(){return O()&&!v()},I))},_.t(_.U,{cond:F,
then:function(){return _.t("div",null,_.t(_.jr,{text:function(){return y().responsePendingMessage}}))},
else:function(){return _.t(_.ni,null,_.t(_.U,{cond:function(){var N;return(N=y().responseMessageIcon)==null?void 0:N.iconType},
then:function(N){return _.t("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.t(_.mj,{icon:N}))}}),_.t("div",null,_.t(_.jr,{text:function(){return y().responseMessage}})))}})),_.t(_.aP,{data:function(){return y().chipsShelf}},{chipsShelfViewModel:function(N){N=N.data;
var h={};return _.t("div",{class:_.XH("ytdAiResponseBoxViewModelChipsShelfContainer",(h.ytdAiResponseBoxViewModelChipsShelfContainerShown=O,h.ytdAiResponseBoxViewModelNotShown=function(){return!O()&&!v()},h))},_.t(_.iG,{data:N,
selectionBehavior:3,nextButtonStyle:1,callback:R}))}}))},"Vc");var avG;avG=Object.assign({},{continuation:esg,download:CGa,canvas:r5_,reportChannelAbuse:IxP,ui:oSt,share:ybO,talkToRecs:Rxg,watch:vf,ypc:SVR,radioButtonGroup:Kn5,collabInviteLink:tD4},Hfu,{voiceSearch:xi4,shorts:wE});_.c6G=ep(avG);_.WRu=TJ(_.c6G);_.Cxn=(0,_.WRu)(_.c6G.talkToRecs,{talkToRecsStateSelector:function(I){return I}});var iBM=_.d(function(I){var y=_.J((0,_.F3a)(I.data)).next().value,D=_.su(function(){var ao;a:{if(ao=y().onUpdateText)if(ao=_.u(ao,_.Iu)){var rc;ao=(rc=_.u(ao,Dnn))==null?void 0:rc.stepId;break a}ao=void 0}return ao},void 0,"olO2Rd");
I=_.J(_.$M(!1,void 0,"QCzl5d"));var F=I.next().value,R=I.next().value;I=_.J(_.$M(!1,void 0,"cQ7jrd"));var O=I.next().value,w=I.next().value;I=_.J(xpq());var v=I.next().value;I=I.next().value;var P=_.dV(_.Cxn.talkToRecsStateSelector),K=_.J(_.$M("",void 0,"ry2Eac")),r=K.next().value,N=K.next().value;K=_.J(_.$M(!1,void 0,"EwWXmb"));var h=K.next().value,x=K.next().value,q=_.J(_.$M(!1,void 0,"hORmtb"));K=q.next().value;var X=q.next().value;q=_.J(_.$M(!1,void 0,"fBzwv"));var f=q.next().value,m=q.next().value;
q=_.J(_.$M(!1,void 0,"BCC4Zc"));var z=q.next().value,B=q.next().value,C=_.DF("div");q=_.J(_.$M(void 0,void 0,"Xvb7gd"));var H=q.next().value,e=q.next().value,T=void 0,L5=function(ao){ao!==F()&&(w(!0),R(ao),T&&clearTimeout(T),T=setTimeout(function(){w(!1)},300))},vH=function(){if(H()!==void 0){var ao=H();
L5(window.scrollY>ao)}},u_=function(){var ao;
e((ao=C.value)==null?void 0:ao.offsetHeight);v("yt-feed-filter-chip-bar-resize")},jW="";
_.wZ(function(){jW=r()},"UJeAbb");
_.LR(function(){var ao,rc,Ta;N((Ta=(rc=EUJ(D(),P()))!=null?rc:(ao=y().textInputValue)==null?void 0:ao.content)!=null?Ta:"");x(!!y().welcomeBannerTitle&&!r());u_();document.addEventListener("scroll",vH);_.tI(function(){document.removeEventListener("scroll",vH);T&&clearTimeout(T)})});
_.wZ(function(){h();u_()},"xF8Dy");
q=_.YY(function(){m(!0);X(!0)});
var xA=_.YY(function(){X(!1)});
_.wZ(function(){var ao=y();m(!1);B(!1);var rc,Ta;((Ta=_.u((rc=ao.contents)==null?void 0:rc[0],EDg))==null?0:Ta.responseMessageIcon)?N(BDg.cachedUserQuery):BDg.cachedUserQuery=jW},"XQIH3b");
var dq=function(ao){var rc=y().onUpdateText;rc&&_.OE(rc,{form:{userQuery:ao}})},$A=_.TQ(function(ao){dq(ao)},150),BH=_.YY(function(ao){ao=ao.target.value;
N(ao);$A(ao);return!1});
_.wZ(function(){var ao=EUJ(D(),P());ao!==void 0&&ao!==jW&&N(ao)},"UIIfAc");
var jf=function(){B(!0);x(!1)},yg=function(){var ao=_.u(y().submitButton,_.Kb);
if(ao==null?0:ao.trackingParams){var rc=_.AC(ao.trackingParams),Ta=_.VO();Ta&&rc&&_.t_(Ta,rc,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(ao=ao==null?void 0:ao.onTap)_.OE(ao),jf()},eW=_.YY(function(ao){ao.key==="Enter"&&(dq(ao.target.value.trim()),yg());
return!1}),oe=function(){yg()},xP=_.YY(function(){v("yt-feed-customization-scroll-up")}),XW={},zo={},Ub={},rq={};
return _.t("ytd-feed-customization-form-view-model",{class:_.XH("ytdFeedCustomizationFormViewModelHost",(XW.ytdFeedCustomizationFormViewModelHostCollapsed=F,XW)),el:_.K4(I)},_.t("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:C},_.t("div",{class:_.XH("ytdFeedCustomizationFormViewModelExpandedContent",(zo.ytdFeedCustomizationFormViewModelNotShown=function(){return F()&&!O()},zo))},_.t(_.U,{cond:function(){return y().disclaimer},
then:function(){return _.t("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.t(_.jr,{text:function(){return y().disclaimer}}))}}),_.t(_.U,{cond:h,
then:function(){return _.t("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.t("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.t(_.jr,{text:function(){return y().welcomeBannerTitle}})),_.t("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.t(_.jr,{text:function(){return y().welcomeBannerSubtitle}})))}}),_.t("div",{class:_.XH("ytdFeedCustomizationFormViewModelInputContainer",(Ub.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
K,Ub))},_.t("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var ao;return(ao=y().textInputPlaceholder)==null?void 0:ao.content},
"prop:value":r,"on:focus":q,"on:blur":xA,"on:input":BH,"on:keyup":eW,maxlength:300,disabled:z}),_.t(_.U,{cond:function(){return!!r()&&!z()},
then:function(){return _.t(_.aP,{data:function(){return y().clearButton}},{buttonViewModel:function(ao){return _.t("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.t(_.My,{data:ao.data}))}})}}),_.t(_.U,{cond:function(){return z()},
then:function(){return _.t(_.aP,{data:function(){return y().inProgressButton}},{buttonViewModel:function(ao){return _.t("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.t(_.My,{data:ao.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.t(_.aP,{data:function(){return y().submitButton}},{buttonViewModel:function(ao){return _.t("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.t(_.My,{data:ao.data,
onClick:jf}))}})}}),_.t(_.aP,{data:function(){return y().menuButton}},{buttonViewModel:function(ao){return _.t("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.t(_.My,{data:ao.data,
buttonOverrides:function(){return{disabled:z()}}}))}})),_.t(_.aP,{data:function(){return y().contents}},{aiResponseBoxViewModel:function(ao){return _.t("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.t(dfP,{data:ao.data,
showChips:f,isUpdateInProgress:z,chipClickCallback:oe}))}})),_.t("div",{class:_.XH("ytdFeedCustomizationFormViewModelCollapsedContent",(rq.ytdFeedCustomizationFormViewModelNotShown=function(){return!F()&&!O()},rq)),
"on:click":xP},_.t("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var ao;return r()||((ao=y().textInputPlaceholder)==null?void 0:ao.content)}))))},"$c"),A6g=function(){this.cachedUserQuery=""};
A6g.prototype.reset=function(){this.cachedUserQuery=""};
var BDg=new A6g;_.NK(iBM,"ytd-feed-customization-form-view-model",{props:{data:_.om}});var $fM=_.LV.persistentPanelVisibleSelector,Ak=function(){var I=_.k.apply(this,arguments)||this;I.isDarkTheme=!1;I.notSticky=!1;I.transparentBackground=!1;I.shouldHide=!1;I.disableSticky=!1;I.fluidWidth=!1;I.isClipList=!1;I.defaultChipIndex=0;I.hasSelectedChipContent=!1;I.isPlaylist=!1;I.playlistVotingAnimationEnabled=_.l("web_enable_voting_animation");I.toolbarHeight=0;I.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(Ak,_.k);_.L=Ak.prototype;
_.L.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.L.attached=function(){var I=this;document.addEventListener("scroll",_.MX(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.MX(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var y;this.toolbarHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(D){I.handleIntersect(D)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){I.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.L.detached=function(){var I;(I=this.intersectionObserver)==null||I.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect();document.removeEventListener("scroll",_.MX(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.MX(this,this.onFeedFilterChipBarResize))};
_.L.dataChanged=function(){var I=this,y,D,F=(y=this.data)==null?void 0:(D=y.contents)==null?void 0:D.findIndex(function(O){var w;return!((w=_.u(O,KkM))==null?0:w.navigationEndpoint)});
F&&(this.defaultChipIndex=F);this.updating=!0;var R=this.findSelectedChipIndex();this.selectedIndex!==R&&(this.selectedIndex=-1);_.YC(this,function(){I.selectedIndex=R;I.updateSelectedChipContent(I.selectedIndex);I.updating=!1;I.ytScrollableChipCloudBehavior.reset()})};
_.L.findSelectedChipIndex=function(){var I;if((I=this.data)==null||!I.contents)return 0;I=this.data.contents;for(var y=0;y<I.length;y++){var D=void 0;if((D=_.u(I[y],KkM))==null?0:D.isSelected)return y}return 0};
_.L.computeStyle=function(I){return I};
_.L.handleChipCloudChipSelectAction=function(I){I=this.JSC$16506_chipsSelector.indexOf(I);I>-1&&(this.JSC$16506_chipsSelector.selectIndex(I),this.updateSelectedChipContent(I))};
_.L.updateSelectedChipContent=function(I){var y;if((y=this.data)==null||!y.contents||I<0||I>=this.data.contents.length)this.selectedChipContent=void 0;else{var D;this.selectedChipContent=(D=_.u(this.data.contents[I],KkM))==null?void 0:D.content}};
_.L.handleChipCloudChipDeselectAction=function(){if(_.l("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[this.defaultChipIndex],KkM))==null?void 0:D.navigationEndpoint;F&&_.uj(this.hostElement,"yt-browse-section-list-reload-endpoint",[F]);this.JSC$16506_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.L.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.L.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.L.updateDynamicHeight=function(){var I=this;this.hasSelectedChipContent&&!this.notSticky?_.YC(this,function(){var y=_.XB(I.hostElement).querySelector("#chips-wrapper");y&&_.pg(I.hostElement,{"--ytd-chips-bar-dynamic-height":y.clientHeight+"px"})}):_.pg(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.L.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.L.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.L.onResize=function(){this.updateLayout()};
_.L.updateLayout=function(){var I=this.ytScrollableChipCloudBehavior;_.YC(I,I.setContainerWidthDiff);I=this.ytScrollableChipCloudBehavior;_.YC(I,I.setButtonsState)};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.L.handleIntersect=function(I){this.notSticky=this.isChannelPageGrid||this.disableSticky||I[0].intersectionRatio===1};
_.L.updateDimensions=function(){var I=this.ytRendererBehavior.parentComponent;if(I){var y,D=(y=I.headerElement)!=null?y:I;_.pg(this.hostElement,{"--ytd-rich-grid-chips-bar-width":D.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.L.updateSelectedIndexFromBinding=function(I){this.selectedIndex=I.detail.value};
_.L.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var I;(I=this.sortFilterHeaderRendererElement)==null||I.setAttribute("is-playlist-page-with-filters","")}};
_.L.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(wAz(!this.notSticky))};
_.mD.Object.defineProperties(Ak.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 I,y,D=(I=this.data)==null?void 0:(y=I.contents)==null?void 0:y.find(function(F){return _.u(F,NQM)});
return{sortFilterHeaderRenderer:_.u(D,NQM)}}}});
Ak.prototype.dispatchChipBarIsSticky=Ak.prototype.dispatchChipBarIsSticky;Ak.prototype.isPlaylistPageChanged=Ak.prototype.isPlaylistPageChanged;Ak.prototype.updateChipBarWidthAndTop=Ak.prototype.updateChipBarWidthAndTop;Ak.prototype.onResize=Ak.prototype.onResize;Ak.prototype.onPersistentPanelVisibleChanged=Ak.prototype.onPersistentPanelVisibleChanged;Ak.prototype.onGuideIsExpandedChanged=Ak.prototype.onGuideIsExpandedChanged;Ak.prototype.updateDynamicHeight=Ak.prototype.updateDynamicHeight;
Ak.prototype.onSelectedChipContentChanged=Ak.prototype.onSelectedChipContentChanged;Ak.prototype.dataChanged=Ak.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ak.prototype,"actionHandlerBehavior",void 0);
_.W([_.Q(_.sD),_.A("design:type",Object)],Ak.prototype,"ironResizableBehavior",void 0);_.W([_.Q(),_.A("design:type",WJ)],Ak.prototype,"ytScrollableChipCloudBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Ak.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ak.prototype,"data",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],Ak.prototype,"selectedIndex",void 0);_.W([_.M({value:320}),_.A("design:type",Number)],Ak.prototype,"scrollDistance",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"notSticky",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"transparentBackground",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.A("design:type",String)],Ak.prototype,"componentStyle",void 0);
_.W([_.M({selector:_.MxJ}),_.A("design:type",Boolean)],Ak.prototype,"guideIsExpanded",void 0);_.W([_.M({selector:$fM}),_.A("design:type",Boolean)],Ak.prototype,"persistentPanelVisible",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"shouldHide",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"disableSticky",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"fluidWidth",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"isClipList",void 0);_.W([_.M(),_.A("design:type",Object)],Ak.prototype,"defaultChipIndex",void 0);_.W([_.M(),_.A("design:type",Object)],Ak.prototype,"selectedChipContent",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"hasSelectedChipContent",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ak.prototype,"isPlaylist",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ak.prototype,"playlistVotingAnimationEnabled",void 0);_.W([_.a0("#chips"),_.A("design:type",Object)],Ak.prototype,"JSC$16506_chipsSelector",void 0);_.W([_.a0("ytd-sort-filter-header-renderer"),_.A("design:type",HTMLElement)],Ak.prototype,"sortFilterHeaderRendererElement",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ak.prototype,"updating",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"dataChanged",null);_.W([_.ke("selectedChipContent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"onSelectedChipContentChanged",null);_.W([_.ke("hasSelectedChipContent","notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"updateDynamicHeight",null);
_.W([_.ke("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"onGuideIsExpandedChanged",null);_.W([_.ke("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"onPersistentPanelVisibleChanged",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"onResize",null);
_.W([_.Bp("isChannelPageGrid","disableSticky","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"updateChipBarWidthAndTop",null);_.W([_.Y("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ak.prototype,"isChannelPageGrid",null);_.W([_.Y("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ak.prototype,"isHashtagLandingPage",null);
_.W([_.ke("isPlaylistPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"isPlaylistPageChanged",null);_.W([_.Y("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ak.prototype,"isPlaylistPage",null);_.W([_.Y("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ak.prototype,"isDisableDeselectEvent",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ak.prototype,"sortFilterHeaderRendererData",null);_.W([_.M({reflectToAttribute:!0,selector:_.Cqt}),_.A("design:type",String)],Ak.prototype,"frostedGlassMode",void 0);_.W([_.ke("notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ak.prototype,"dispatchChipBarIsSticky",null);_.W([_.yd({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Ak);
_.a(Ak,"ytd-feed-filter-chip-bar-renderer",function(){if(nLM!==void 0)return nLM;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return nLM=I},{mode:1});var bBu;var HBO=_.d(function(I){var y=I.data;var D=I.buttonIndex;var F=I.selectedIndex;var R=I.onSelect;var O=function(){return D()===F()},w=function(){var v,P;
return(P=(v=y().text)==null?void 0:v.content)!=null?P:""};
I=_.xqL();return _.t("yt-toggleable-image-button-view-model",{class:function(){var v={};v=(v.toggleableImageButtonViewModelHost=!0,v[""]=!0,v.toggleableImageButtonViewModelSemiTransparent=F()!==-1&&!O(),v);return _.bp(v)},
tabindex:0,"aria-label":w,"aria-pressed":O,role:"button","on:keydown":I,"on:click":_.YY(function(){R(y().onSubmitCommand);return!1})},_.t(_.U,{cond:function(){return y().logo},
then:function(v){return _.t(_.UE,{data:v,className:function(){var P={};P=(P.toggleableImageButtonViewModelImage=!0,P.toggleableImageButtonViewModelCircularRadius=!(!y().backgroundColor||!y().backgroundColorDarkMode),P.toggleableImageButtonViewModelGradientRing=!!(O()&&y().backgroundColor&&y().backgroundColorDarkMode),P);return _.bp(P)},
alt:w,useWidth:!1,style:function(){if(O()&&y().backgroundColor&&y().backgroundColorDarkMode){var P=gY(Number(y().backgroundColorDarkMode),"1");var K=gY(Number(y().backgroundColor),"1");P="background: linear-gradient(180deg,"+P+","+K+") border-box;"}else P="";return P}})}}),_.t(_.fM,{model:{borderRadius:"16px"}}),_.t("p",{class:function(){var v={};
v=(v.toggleableImageButtonViewModelLabel=!0,v.toggleableImageButtonViewModelBoldText=O(),v);return _.bp(v)}},_.t(_.jr,{text:function(){return y().text}})))},"ad");
HBO.idomCompat=!0;var TDR=_.d(function(I){var y=I.data;I=_.J(_.$M({index:-1,command:{}},void 0,"GM3umb"));var D=I.next().value,F=I.next().value;return _.t("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.t("div",{class:"nudgeFormViewModelFormOptions"},_.t(_.aP,{data:function(){return y().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(R,O){return _.t(HBO,{data:R.data,buttonIndex:O,selectedIndex:function(){return D().index},
onSelect:function(w){F({index:O(),command:w})}})}})),_.t(_.jr,{text:function(){return y().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.t("div",{class:"nudgeFormViewModelSubmit"},_.t(_.aP,{data:function(){return y().submitButton}},{buttonViewModel:function(R){return _.t(eOc,{data:R.data,
isDisabled:function(){return D().index===-1},
onClick:function(){_.OE(D().command)}})}})))},"bd");
TDR.idomCompat=!0;var eOc=_.d(function(I){var y=_.su(function(){return Object.assign({},I.data(),{state:I.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.t(_.My,{data:y,onClick:I.onClick})},"cd");_.NK(TDR,"yt-nudge-form-view-model",{props:{data:_.om}});var $u=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.buttonUpdate=_.l("web_modern_buttons");I.isDarkMode=!1;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return I};
_.E($u,_.k);_.L=$u.prototype;_.L.computeNudgeStyle=function(I){return I?"modernized-nudge":""};
_.L.handleDarkModeToggledAction=function(I){this.isDarkMode=I};
_.L.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.L.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"}}}};
_.L.computeIsHorizontalButtons=function(I){return I?!!I.applyModernizedStyle&&!!I.enableHorizontalButtons&&!!I.secondaryButton:!1};
_.mD.Object.defineProperties($u.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.data)==null?void 0:I.backgroundStyle)!=null?y:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.data)==null?void 0:I.contentsLocation)!=null?y:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.lightIconImage)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],$u.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],$u.prototype,"actionHandlerBehavior",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("isHideEnclosingAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$u.prototype,"isHidden",null);_.W([_.M(),_.A("design:type",Object)],$u.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],$u.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],$u.prototype,"buttonUpdate",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.A("design:type",String)],$u.prototype,"nudgeStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.trimStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],$u.prototype,"trimStyle",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.backgroundStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],$u.prototype,"backgroundStyle",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.contentsLocation"),_.A("design:type",String),_.A("design:paramtypes",[])],$u.prototype,"contentsLocation",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.disableDropShadow"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$u.prototype,"noShadow",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.lightIconImage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$u.prototype,"noIcon",null);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.A("design:type",Boolean)],$u.prototype,"isHorizontalButtons",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],$u.prototype,"isDarkMode",void 0);_.W([_.yd({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],$u);
_.a($u,"ytd-feed-nudge-renderer",function(){if(bBu!==void 0)return bBu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return bBu=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var s4_;var Vhf;var bG=function(){var I=_.k.apply(this,arguments)||this;I.collapsed=!1;I.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return I};
_.E(bG,_.k);bG.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"}}}};
bG.prototype.handleRatingSelect=function(){var I;((I=this.data)==null?0:I.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
bG.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],bG.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bG.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vy),_.A("design:type",Object)],bG.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bG.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],bG.prototype,"collapsed",void 0);_.W([_.yd({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],bG);
_.a(bG,"ytd-slimline-survey-renderer",function(){if(Vhf!==void 0)return Vhf;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Vhf=I},{mode:1});var ZBg;var HJ=function(){return _.k.apply(this,arguments)||this};
_.E(HJ,_.k);HJ.prototype.maybeGetBackgroundColor=function(I){return this.isDarkMode?I.section2Color:I.section3Color};
HJ.prototype.colorPaletteChanged=function(){var I=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;I&&(I==null?0:I.secondaryTitleColor)&&this.maybeGetBackgroundColor(I)?(this.hostElement.style.backgroundColor=_.Vp(this.maybeGetBackgroundColor(I)),this.hostElement.style.color=_.Vp(I.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
HJ.prototype.colorPaletteChanged=HJ.prototype.colorPaletteChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HJ.prototype,"data",void 0);_.W([_.M({selector:function(I){return I.ui.darkModeIsEnabled}}),
_.A("design:type",Boolean)],HJ.prototype,"isDarkMode",void 0);_.W([_.M(),_.A("design:type",Object)],HJ.prototype,"lightColorPalette",void 0);_.W([_.M(),_.A("design:type",Object)],HJ.prototype,"darkColorPalette",void 0);_.W([_.ke("darkColorPalette","lightColorPalette","data","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HJ.prototype,"colorPaletteChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],HJ);
_.a(HJ,"ytd-endorsement-header-renderer",function(){if(ZBg!==void 0)return ZBg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ZBg=I},{mode:1});_.NK(_.Jh,"yt-decorated-avatar-view-model",{props:{data:_.om,className:_.om}});_.et=new _.uk("VIEW_TRANSITION_MANAGER_TOKEN");var Tn=function(){var I=_.k.apply(this,arguments)||this;I.fullHeight=_.l("web_rich_grid_media_full_height");I.showChannelAvatar=!0;I.hasPlaylistThumbnail=!1;I.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};I.registerThumbnailForPageTransition=function(){_.l("web_thumbnail_to_watch_transition")&&_.gLG(_.nR().resolve(_.et),I.thumbnail)};
return I};
_.E(Tn,_.k);_.L=Tn.prototype;
_.L.configureRendererStamper=function(){return{lazyLoadMenu:bz,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"}}}};
_.L.attached=function(){this.updateInlinePreviewHoverListeners()};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.shouldLazyLoadMenu=function(){var I=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.l("kevlar_modern_downloads_page")||!I};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16530_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.JSC$16530_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.L.getVideoPreviewOpts=function(){var I={},y;if((y=this.data)==null?0:y.multipleInlinePlaybackEndpoint)I=f2g;this.isRadio&&(I=Yzz);return I};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$16530_inlinePreviewHoverListener)==null||Nv(I)};
_.L.getOwner=function(){var I,y,D;return((I=this.data)==null?void 0:(y=I.channelThumbnailSupportedRenderers)==null?void 0:y.channelThumbnailWithLinkRenderer)||_.u((D=this.data)==null?void 0:D.showProviderChannelThumbnail,S4e)};
_.L.updateLockupSize=function(){var I;((I=this.getOwner())==null?0:I.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.L.getFeedbackEndpoint=function(I){if(_.u(I,_.gT))return I;var y,D;I=(D=(y=_.u(I,_.Q_))==null?void 0:y.commands)!=null?D:[];y=_.J(I);for(D=y.next();!D.done;D=y.next())if(D=this.getFeedbackEndpoint(D.value))return D;return null};
_.L.computeNavigationEndpoint=function(I){return WNW(I==null?void 0:I.navigationEndpoint)};
_.L.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var I=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(I)!==JSON.stringify(this.data)&&this.set("data",I)}};
_.L.onDataChanged=function(){var I=this,y=this.getOwner();if(y){this.set("data.owner",y);var D,F,R,O,w,v=((D=this.data)==null?void 0:(F=D.shortBylineText)==null?void 0:(R=F.runs)==null?void 0:(O=R[0])==null?void 0:O.text)||((w=y.name)==null?void 0:w.simpleText);this.set("data.owner.title",v)}var P,K,r,N,h,x;y=((P=this.data)==null?void 0:(K=P.thumbnailRenderer)==null?void 0:K.playlistVideoThumbnailRenderer)||((r=this.data)==null?void 0:(N=r.thumbnailRenderer)==null?void 0:N.playlistCustomThumbnailRenderer)||
((h=this.data)==null?void 0:(x=h.thumbnailRenderer)==null?void 0:x.showCustomThumbnailRenderer);var q;((q=this.data)==null?0:q.thumbnail)||!y||this.set("data.thumbnail",y.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){I.updateLockupSize()});
var X;if(P=((X=this.data)==null?void 0:X.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(P);var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.L.onHiddenChanged=function(){this.updateLockupSize()};
_.L.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.uj(this.hostElement,"yt-terminate-video-preview-action");else{var I;(I=this.videoTitleLink)==null||I.focus()}};
_.L.metadataColorChanged=function(){var I;if(this.metadataColor&&((I=this.videoTitle)==null?0:I.style))this.videoTitle.style.color=_.Vp(this.metadataColor);else{var y,D;!this.metadataColor&&((y=this.videoTitle)==null?0:(D=y.style)==null?0:D.color)&&(this.videoTitle.style.color="")}};
_.L.onDetailsClick=function(I){var y=this.computedNavigationEndpoint;y&&(_.UP(_.r4(I),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.lj(this.hostElement,"yt-navigate",{endpoint:y}))};
_.L.onRendererTap=function(){this.registerThumbnailForPageTransition();var I,y,D=((I=this.data)==null?void 0:I.serviceEndpoint)||this.getFeedbackEndpoint((y=this.data)==null?void 0:y.navigationEndpoint);D&&_.u(D,_.gT)&&this.ytComponentBehavior.resolveCommand(D)};
_.L.onMouseDown=function(I){var y=I.target,D=this.computedNavigationEndpoint,F;I=y.href||((F=_.u(D==null?void 0:D.commandMetadata,_.nE))==null?void 0:F.url);F=y.data||D;I&&F&&J8B(I,F)};
_.L.computeVideoTitleText=function(){var I;if((I=this.data)==null?0:I.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.L.computeHasPlaylistThumbnail=function(I){var y,D,F,R,O;if((((y=I.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((D=I.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer)||((F=I.thumbnailRenderer)==null?0:F.showCustomThumbnailRenderer)||((R=I.thumbnailRenderer)==null?0:R.playlistVideoThumbnailRenderer)||((O=I.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer))&&I.thumbnailOverlays)for(y=0;y<I.thumbnailOverlays.length;y++)if(D=void 0,(D=I.thumbnailOverlays[y])==
null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mD.Object.defineProperties(Tn.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.l("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var I;return(I=this.data)==null?void 0:I.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var I;return(I=this.data)==null?void 0:I.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$16530_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.OpS(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.videoId)||((y=this.data)==null?void 0:y.playlistId)||""}}});
Tn.prototype.onMouseDown=Tn.prototype.onMouseDown;Tn.prototype.metadataColorChanged=Tn.prototype.metadataColorChanged;Tn.prototype.onIsDismissedChanged=Tn.prototype.onIsDismissedChanged;Tn.prototype.onHiddenChanged=Tn.prototype.onHiddenChanged;Tn.prototype.onDataChanged=Tn.prototype.onDataChanged;Tn.prototype.handleReloadDownloadsInfo=Tn.prototype.handleReloadDownloadsInfo;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Tn.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],Tn.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],Tn.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Tn.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],Tn.prototype,"entitySelectorType",void 0);_.W([_.M(),_.A("design:type",Boolean)],Tn.prototype,"noEndpoints",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Tn.prototype,"isRadio",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],Tn.prototype,"miniMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Tn.prototype,"fullHeight",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Tn.prototype,"showDarkVideoMetadata",void 0);_.W([_.M(),_.A("design:type",Boolean)],Tn.prototype,"showLightVideoMetadata",void 0);_.W([_.M(),_.A("design:type",Number)],Tn.prototype,"metadataColor",void 0);_.W([_.M(),_.A("design:type",Object)],Tn.prototype,"showChannelAvatar",void 0);_.W([_.M(),_.A("design:type",Boolean)],Tn.prototype,"hidden",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],Tn.prototype,"showYtInteraction",void 0);
_.W([_.M(),_.A("design:type",String)],Tn.prototype,"dismissedContentId",void 0);_.W([_.M({selectorArgs:["dismissedContentId"],selector:id5}),_.A("design:type",Object)],Tn.prototype,"dismissActionToReplayEntity",void 0);
_.W([_.M({selectorArgs:["entitySelectorType","mediaId"],selector:function(I,y,D){if(_.l("kevlar_modern_downloads_page")&&D&&y&&y!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var F=$Te(I,D);if(F){y=_.FM(I,D);var R=Og(I,D),O=Ffo(I,D);I=L0(I,D);var w=SGC(F,y,R,O);R=w.shortViewCountText;var v=w.publishedTimeText;w=w.badges;var P=I>0;O=wQq(F,y,O,I);F=_.BW(y)||y==="TRANSFER_STATE_FAILED"||y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!cW(F.policyEntity)?
void 0:aIH(D,I,F.videoEntity.lengthSeconds);y==="TRANSFER_STATE_PAUSED_BY_USER"&&D&&!_.l("dl_resume_click_killswitch")&&(F={offlineVideoEndpoint:{videoId:D,action:"ACTION_RESUME"}});D={shortViewCountText:R,publishedTimeText:v,badges:w,isWatched:P,navigationEndpoint:F,thumbnailOverlays:O}}else D=void 0;return D;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(y=bYq(I,D))if(F=_.Rq(I,D),O=_.HY_(I,D),F!=="TRANSFER_STATE_UNKNOWN"){D=vS5(y,F,O,D,_.D7(I));break a}D=void 0}return D;default:_.tq(new _.g6("Error: entitySelectorType defined but not matched in selector.",
I,y))}}}),
_.A("design:type",Object)],Tn.prototype,"entityDrivenState",void 0);_.W([_.M({computed:"computeVideoTitleText(data)"}),_.A("design:type",Object)],Tn.prototype,"videoTitleText",void 0);_.W([_.M({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],Tn.prototype,"hasPlaylistThumbnail",void 0);_.W([_.M({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],Tn.prototype,"computedNavigationEndpoint",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Tn.prototype,"typographyBump",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Tn.prototype,"typographyBumpV2",null);_.W([_.a0("#video-title"),_.A("design:type",HTMLElement)],Tn.prototype,"videoTitle",void 0);_.W([_.a0("#video-title-link"),_.A("design:type",HTMLElement)],Tn.prototype,"videoTitleLink",void 0);
_.W([_.a0("#thumbnail"),_.A("design:type",HTMLElement)],Tn.prototype,"thumbnail",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],Tn.prototype,"JSC$16530_dismissibleMedia",void 0);_.W([_.Y("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],Tn.prototype,"lazyLoadMenu",null);_.W([_.Y("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],Tn.prototype,"immediateLoadMenu",null);
_.W([_.Bp("entityDrivenState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tn.prototype,"handleReloadDownloadsInfo",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tn.prototype,"onDataChanged",null);_.W([_.Bp("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tn.prototype,"onHiddenChanged",null);
_.W([_.ke("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tn.prototype,"onIsDismissedChanged",null);_.W([_.ke("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tn.prototype,"metadataColorChanged",null);_.W([_.z4("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Tn.prototype,"onMouseDown",null);
_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Tn.prototype,"isHovered",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Tn.prototype,"useAvatar",null);_.W([_.Y("data","entitySelectorType"),_.A("design:type",String),_.A("design:paramtypes",[])],Tn.prototype,"mediaId",null);_.W([_.yd({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Tn);
var Iia=_.Xf()(Tn,"ytd-rich-grid-media",function(){if(s4_!==void 0)return s4_;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return s4_=I},{mode:_.Qd("kevlar_poly_si_batch_j072")?1:2});var y$g;var s0=function(){var I=_.k.apply(this,arguments)||this;I.removeMaxWidth=!0;I.insetMetadata=!1;return I};
_.E(s0,_.k);_.L=s0.prototype;_.L.configureRendererStamper=function(){return{innerMenu:bz,outerMenu:Object.assign({},bz,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.L.onDataChanged=function(){var I,y=((I=this.data)==null?void 0:I.trackingParams)||"";y&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(y));var D;((D=this.dismissActionToReplayEntity)==null?0:D.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.L.attached=function(){this.updateInlinePreviewHoverListeners()};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16535_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.JSC$16535_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:nUO})};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$16535_inlinePreviewHoverListener)==null||Nv(I)};
_.L.onRendererTap=function(){var I,y,D=(I=this.data)==null?void 0:(y=I.serviceEndpoints)==null?void 0:y[0];_.u(D,_.gT)&&this.componentBehavior.resolveCommand(D)};
_.L.onDetailsClick=function(I){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;D&&(_.UP(_.r4(I),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(D))};
_.L.onShow=function(){var I=this.data;I.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(I.onFirstVisibleCommand),delete I.onFirstVisibleCommand)};
_.mD.Object.defineProperties(s0.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var I;return this.insetMetadata?void 0:(I=this.data)==null?void 0:I.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var I;return this.insetMetadata?(I=this.data)==null?void 0:I.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var I=this.data;if(I!=null&&I.badge&&(I=_.u(I.badge,Lke))){var y,D,F;return[{metadataBadgeRenderer:{label:((y=I.label)==null?void 0:(D=y.runs)==null?void 0:D[0].text)||((F=I.label)==null?void 0:F.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var I=this.data;return Object.assign({},I.headline,{accessibility:I.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return this.isSlimShort?(I=this.computedTitle)==null?void 0:(y=I.accessibility)==null?void 0:(D=y.accessibilityData)==null?void 0:D.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.l("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$16535_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
s0.prototype.onDataChanged=s0.prototype.onDataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],s0.prototype,"componentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],s0.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.vy),_.A("design:type",Object)],s0.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],s0.prototype,"ytdReduxBehavior",void 0);_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],s0.prototype,"thumbnail",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],s0.prototype,"JSC$16535_dismissibleMedia",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],s0.prototype,"removeMaxWidth",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],s0.prototype,"insetMetadata",void 0);_.W([_.M(),_.A("design:type",String)],s0.prototype,"dismissedContentId",void 0);_.W([_.M({selectorArgs:["dismissedContentId"],selector:id5}),_.A("design:type",Object)],s0.prototype,"dismissActionToReplayEntity",void 0);_.W([_.Y("insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"thumbnailObjectFit",null);
_.W([_.Y("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"innerMenu",null);_.W([_.Y("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"outerMenu",null);_.W([_.M(),_.A("design:type",Object)],s0.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],s0.prototype,"miniMode",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],s0.prototype,"onDataChanged",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"shortsBadges",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s0.prototype,"isShort",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s0.prototype,"isSlimShort",null);_.W([_.Y("data","isShort"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"computedTitle",null);_.W([_.Y("isSlimShort","computedTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],s0.prototype,"computedAccessibilityLabel",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s0.prototype,"shouldForce2By3",null);_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s0.prototype,"isHovered",null);_.W([_.yd({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],s0);
_.a(s0,"ytd-rich-grid-slim-media",function(){if(y$g!==void 0)return y$g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return y$g=I},{mode:_.Qd("kevlar_poly_si_batch_j063")?1:2});var Dte;var FtW;var VP=function(){return _.k.apply(this,arguments)||this};
_.E(VP,_.k);VP.prototype.computeIcon=function(I){return I&&I.iconType?"yt-sys-icons:"+I.iconType.toLowerCase():""};
VP.prototype.onMouseEnter=function(){this.isHovered=!0};
VP.prototype.onMouseLeave=function(){this.isHovered=!1};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VP.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],VP.prototype,"isHovered",void 0);
_.W([_.yd({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],VP);
_.a(VP,"ytd-expand-on-hover-card-renderer",function(){if(FtW!==void 0)return FtW;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FtW=I},{mode:1});var RWc,O6u=function(){if(RWc!==void 0)return RWc;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return RWc=I};_.bO("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Zp=function(){var I=_.k.apply(this,arguments)||this;I.compactStyle=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(Zp,_.k);_.L=Zp.prototype;_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.L.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"}}}};
_.L.computeHideDot=function(I){return!(I&&I.subscriberCountText&&I.videoCountText)||this.compactStyle};
_.L.hasDualButtons=function(I){return I&&I.purchaseButton&&I.subscribeButton};
_.L.backgroundColorChanged=function(){if(this.data!==void 0){var I=this.data.backgroundColor;this.isDarkTheme&&(I=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=I!=null?_.Vp(I):"transparent"}};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.onTap=function(I){var y,D,F=((y=this.data)==null?void 0:y.navigationEndpoint)||((D=this.data)==null?void 0:D.serviceEndpoint);_.u(F,_.P_)&&(F&&_.nR().resolve(_.MC).resolveCommand(F,{form:{element:this.hostElement}}),I.preventDefault())};
_.L.computeChannelEndpoint=function(I){return _.u(I,_.P_)?null:I};
_.L.computeHrefEndpoint=function(I){return _.u(I,_.P_)?null:this.componentBehavior.computeHref_(I)};
_.L.computeChannelRendererStyle=function(I){return I};
_.L.computeIconSize=function(I){return I?108:136};
_.mD.Object.defineProperties(Zp,{template:{configurable:!0,enumerable:!0,get:function(){return O6u()}}});
Zp.prototype.backgroundColorChanged=Zp.prototype.backgroundColorChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],Zp.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zp.prototype,"componentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Zp.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],Zp.prototype,"isDarkTheme",void 0);_.W([_.M({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.A("design:type",String)],Zp.prototype,"channelRendererStyle",void 0);_.W([_.M({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Zp.prototype,"dualButtons",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],Zp.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Zp.prototype,"biggerThumbStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zp.prototype,"compactStyle",void 0);_.W([_.ke("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zp.prototype,"backgroundColorChanged",null);_.W([_.yd({is:"ytd-channel-renderer",disableElementRegistration:!0})],Zp);_.a(Zp,"ytd-channel-renderer",function(){return O6u()},{mode:1});var LtO;var J$f;_.bO("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var g5=function(){var I=_.k.apply(this,arguments)||this;I.displayItemCount=2;I.hasPlaylistThumbnail=!1;I.stackThumbnailSize="large";return I};
_.E(g5,_.k);_.L=g5.prototype;_.L.attached=function(){this.updateInlinePreviewHoverListeners()};
_.L.detached=function(){this.clearInlinePreviewHoverListeners()};
_.L.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.L.computeFirstVideos=function(I,y){return I&&y?I.slice(0,y):[]};
_.L.computeThumbnailWidth=function(I,y){return I?y==="BIG"?500:y==="MASSIVE"?600:y==="MEDIUM"?450:420:360};
_.L.computeThumbnailHeight=function(I,y){return I?y==="BIG"?280:y==="MASSIVE"?337:234:202};
_.L.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$16548_inlinePreviewHoverListener)==null||Nv(I)};
_.L.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16548_inlinePreviewHoverListener=Ik({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:f2g,thumbnailElement:this.thumbnail})};
_.L.computeHasPlaylistThumbnail=function(I){var y,D;if((((y=I.thumbnailRenderer)==null?0:y.playlistVideoThumbnailRenderer)||((D=I.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer))&&I.thumbnailOverlays)for(y=0;y<I.thumbnailOverlays.length;y++)if(D=void 0,(D=I.thumbnailOverlays[y])==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mD.Object.defineProperties(g5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$16548_inlinePreviewHoverListener)==null?0:th(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
g5.prototype.dataChanged=g5.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],g5.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],g5.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],g5.prototype,"displayItemCount",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],g5.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],g5.prototype,"biggerThumbsStyle",void 0);_.W([_.M({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],g5.prototype,"hasPlaylistThumbnail",void 0);_.W([_.M(),_.A("design:type",String)],g5.prototype,"stackThumbnailSize",void 0);_.W([_.a0("ytd-thumbnail"),_.A("design:type",HTMLElement)],g5.prototype,"thumbnail",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g5.prototype,"dataChanged",null);
_.W([_.Y("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],g5.prototype,"isHovered",null);_.W([_.yd({is:"ytd-radio-renderer",disableElementRegistration:!0})],g5);
_.a(g5,"ytd-radio-renderer",function(){if(J$f!==void 0)return J$f;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return J$f=I},{mode:_.Qd("kevlar_poly_si_batch_j058")?1:2});var waM;_.bO("itemSectionRenderer","showRenderer","ytd-show-renderer");var Ip=function(){return _.k.apply(this,arguments)||this};
_.E(Ip,_.k);Ip.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ip.prototype.computeThumbnailWidth=function(I){return I?360:246};
Ip.prototype.computeUseProminentThumbs=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ip.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Ip.prototype,"isSearch",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.A("design:type",Boolean)],Ip.prototype,"useProminentThumbs",void 0);_.W([_.yd({is:"ytd-show-renderer",disableElementRegistration:!0})],Ip);
_.a(Ip,"ytd-show-renderer",function(){if(waM!==void 0)return waM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return waM=I},{mode:1});_.bO("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var yD=function(){var I=_.k.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.E(yD,_.k);yD.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"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yD.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],yD.prototype,"isRichGrid",void 0);_.W([_.yd({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],yD);
_.a(yD,"ytd-feed-entry-renderer",function(){if(LtO!==void 0)return LtO;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return LtO=I},{mode:1});var v$W;var Dx=function(){return _.k.apply(this,arguments)||this};
_.E(Dx,_.k);Dx.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.W([_.Q(_.Jl),_.A("design:type",Object)],Dx.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Dx.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dx.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.gH,value:3}),_.A("design:type",Number)],Dx.prototype,"itemsPerRow",void 0);
_.W([_.yd({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Dx);
_.a(Dx,"ytd-link-card-renderer",function(){if(v$W!==void 0)return v$W;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return v$W=I},{mode:1});var SUe;var FZ=function(){return _.k.apply(this,arguments)||this};
_.E(FZ,_.k);_.L=FZ.prototype;_.L.configureRendererStamper=function(){return{"data.menu":bz,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.L.onRendererTap=function(I){if(!this.ytdDismissibleItemBehavior.isDismissed){var y,D=(y=this.data)==null?void 0:y.navigationEndpoint;D&&!_.UP(_.r4(I),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(D)?_.UP(_.r4(I),this.hostElement,["A"])||_.lj(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D,{}))}};
_.L.maybeComputeHref=function(I){return this.ytComponentBehavior.computeHref_(I,!0)};
_.L.getNavigationCommand=function(I){return this.isNavigationCommand(I)?I:null};
_.L.isNavigationCommand=function(I){return I?_.u(I,_.kc)||_.u(I,_.t9)||_.u(I,_.lK)?!0:!1:!1};
FZ.prototype.onRendererTap=FZ.prototype.onRendererTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],FZ.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FZ.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],FZ.prototype,"data",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],FZ.prototype,"onRendererTap",null);_.W([_.yd({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],FZ);
_.a(FZ,"ytd-lumiere-promo-item-image-renderer",function(){if(SUe!==void 0)return SUe;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SUe=I},{mode:1});var t2W;var Rp=function(){return _.k.apply(this,arguments)||this};
_.E(Rp,_.k);Rp.prototype.computeLandscapeThumbnail=function(){var I;return((I=this.data)==null?void 0:I.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Rp.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Rp.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],Rp.prototype,"miniMode",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.gH}),_.A("design:type",Number)],Rp.prototype,"itemsPerRow",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.A("design:type",Boolean)],Rp.prototype,"landscapeThumbnail",void 0);_.W([_.yd({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Rp);
_.a(Rp,"ytd-lumiere-shelf-details-renderer",function(){if(t2W!==void 0)return t2W;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return t2W=I},{mode:_.Qd("kevlar_poly_si_batch_j076")?1:2});var PnR;var OV=function(){return _.k.apply(this,arguments)||this};
_.E(OV,_.k);OV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OV.prototype,"data",void 0);_.W([_.yd({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],OV);
_.a(OV,"ytd-primetime-promo-details-renderer",function(){if(PnR!==void 0)return PnR;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PnR=I},{mode:1});var Ktu;var Lo=function(){return _.k.apply(this,arguments)||this};
_.E(Lo,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Lo.prototype,"data",void 0);_.W([_.yd({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Lo);
_.a(Lo,"ytd-panel-show-style-metadata-renderer",function(){if(Ktu!==void 0)return Ktu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ktu=I},{mode:1});var Utn;var Jb=function(){return _.k.apply(this,arguments)||this};
_.E(Jb,_.k);_.L=Jb.prototype;_.L.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.L.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.L.computeThumbnail=function(I){if(I)return I.smallFormFactorBackgroundThumbnail||I.largeFormFactorBackgroundThumbnail};
_.L.maybeComputeHref=function(I){return this.ytComponentBehavior.computeHref_(I,!0)};
_.L.isNavigationCommand=function(I){return I?_.u(I,_.kc)||_.u(I,_.t9)||_.u(I,_.lK)?!0:!1:!1};
_.L.getNavigationCommand=function(I){return this.isNavigationCommand(I)?I:null};
Jb.prototype.onPanelTap=Jb.prototype.onPanelTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Jb.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Jb.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0,value:_.l("web_modern_buttons")}),_.A("design:type",Boolean)],Jb.prototype,"modernButtons",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jb.prototype,"onPanelTap",null);_.W([_.yd({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Jb);
_.a(Jb,"ytd-primetime-promo-panel-renderer",function(){if(Utn!==void 0)return Utn;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Utn=I},{mode:1});_.NK(_.d(function(I){I=_.o6(I,{data:{},useFullWidth:!1});var y=I.data,D=I.useFullWidth;I={};return _.t("teaser-card-view-model",{class:_.XH("ytTeaserCardViewModelHost",(I.ytTeaserCardViewModelUseFullWidth=function(){return D()},I))},_.t(_.U,{cond:function(){return y().onTap},
then:function(F){return _.t(_.Yp,{className:"ytTeaserCardViewModelLink",command:F},_.t("div",{class:"ytTeaserCardViewModelImageContainer"},_.t(_.U,{cond:function(){return y().image},
then:function(R){return _.t(_.UE,{data:R,className:"ytTeaserCardViewModelImage",alt:""})}})),_.t("p",{class:"ytTeaserCardViewModelCaption"},function(){return y().caption}))}}))},"dd"),"teaser-card-view-model",{props:{data:_.om,
useFullWidth:_.om}});_.NK(_.d(function(I){var y=I.data;var D=function(){var F;return _.OA((F=y())==null?void 0:F.iconThemedImage)};
return _.t("yt-edu-card-view-model",null,_.t(_.kZ,{contentId:function(){return y().nudgeId}},function(){return _.t("div",{class:_.XH("ytEduCardViewModelHost",function(){return y().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.t("div",{class:"ytEduCardViewModelTopCornerButton"},_.t(_.aP,{data:function(){return y().dismissButton}},{buttonViewModel:_.My})),_.t("div",{class:"ytEduCardViewModelContentWrapper"},_.t("div",{class:"ytEduCardViewModelHeaderImage"},_.t(_.U,
{cond:D,
then:function(F){return _.t(_.UE,{data:F,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.t("div",{class:"ytEduCardViewModelTextContainer"},_.t("div",{class:"ytEduCardViewModelTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytEduCardViewModelSubtitle"},_.t(_.jr,{text:function(){return y().subtitle}}))),_.t("div",{class:"ytEduCardViewModelContent"},_.t(_.aP,{data:function(){return y().form}},{nudgeFormViewModel:TDR}))),_.t("div",{class:_.XH("ytEduCardViewModelButtonWrapper",
function(){return y().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.t(_.aP,{data:function(){return y().primaryButton}},{buttonViewModel:function(F){return _.t("div",{class:"ytEduCardViewModelPrimaryButton"},_.t(_.My,{data:F.data}))}}),_.t(_.aP,{data:function(){return y().secondaryButton}},{buttonViewModel:function(F){return _.t("div",{class:"ytEduCardViewModelSecondaryButton"},_.t(_.My,{data:F.data}))}})))}))},"ed"),"yt-edu-card-view-model",{props:{data:_.om}});var r$u=new _.uk("RICH_GRID_VIDEO_RENDERER_TOKEN");_.NK(_.d(function(I){var y=I.data;var D=I.showYtInteractionInContent;var F=function(){return!!y().selectableFeedback};
I=_.J(_.$M(!1,void 0,"qxtgaf"));var R=I.next().value,O=I.next().value;_.LR(function(){var h=_.u(y().primaryButton,_.r7);(h==null?0:h.isToggled)&&O(h.isToggled)});
I=_.YY(function(h){if(!F())return!1;if(R()){var x;var q=(x=y().selectableFeedback)==null?void 0:x.onDeselect}else{var X;q=(X=y().selectableFeedback)==null?void 0:X.onSelect}q&&_.OE(q,{form:{element:h.target}});O(!R());if(h=_.u(y().primaryButton,_.r7))h.isToggled=R();return!1});
var w=function(){if(!F()){var h,x=(h=y().loggingDirectives)==null?void 0:h.trackingParams;x&&_.Cb(_.nR().resolve(_.gi),x)}},v=_.lq5(),P=function(){var h;
return F()?(h=y().selectableFeedback)==null?void 0:h.a11yLabel:void 0},K=function(){return F()?{toggled:R()}:{}},r=_.nR().resolve(_.fR(r$u)),N={};
return _.t("yt-feedback-item-renderer",{class:_.XH("ytFeedbackItemRendererHost",(N.ytFeedbackItemRendererSelectableFeedback=F,N)),"on:click":I,"on:keydown":v,title:P,"aria-label":P,"aria-pressed":function(){return F()?R():void 0},
tabindex:function(){return F()?0:void 0},
role:function(){return F()?"button":void 0}},_.t("div",{class:"ytFeedbackItemRendererContentContainer"},_.t(_.aP,{data:function(){return y().content}},{videoRenderer:function(h){return _.t(r,{data:h.data,
showYtInteraction:D})},
lockupViewModel:function(h){return _.t(_.W7,{data:h.data,containerType:2})}})),_.t("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.t(_.aP,{data:function(){return y().primaryButton}},{toggleButtonViewModel:function(h){return _.t(_.yJ,{data:h.data,
buttonShapeOverrides:K,disableExplicitClickLogging:!0,onToggle:w})}})))},"fd"),"yt-feedback-item-renderer",{props:{data:_.om,
showYtInteractionInContent:_.om}});var wx=function(){var I=_.k.apply(this,arguments)||this;I.isShortsGrid=!1;I.isCompactGrid=!1;I.isShortsPanelGrid=!1;I.renderedFromRichGrid=!1;I.isInFirstColumn=!1;I.noGutterMargins=!1;I.noBottomMargin=!1;I.halfBottomMargin=!1;I.isInlineGroupItem=!1;I.insetMetadata=!1;I.noBottomMarginInAds=!0;I.force16By9ThumbnailAspectRatio=!1;I.useCompactList=!1;I.containerType=2;I.thumbnailTargetWidth=9999;I.isResponsiveGrid=!1;I.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};I.hoverListener=
I.hover.bind(I);I.leaveListener=I.leave.bind(I);I.highlighted=!1;I.JSC$16584_unsubscribeFromInlinePreviewIsActive=function(){};
return I};
_.E(wx,_.k);_.L=wx.prototype;_.L.computeContainerType=function(){return this.useCompactList?3:2};
_.L.itemWidthChanged=function(){var I;this.thumbnailTargetWidth=(I=this.itemWidth)!=null?I:9999};
_.L.updateIsInFirstColumn=function(){var I;this.isInFirstColumn=((I=this.data)==null?void 0:I.colIndex)===0};
_.L.observerContainerType=function(){if(this.lockup){var I=this.lockup;I.containerType=this.containerType;I.sizing=this.sizing;I.typographyBump=this.typographyBump;I.itemWidth=this.itemWidth}this.richGridMedia&&_.l("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.l("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.L.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.L.leave=function(I){I=I.relatedTarget;var y=document.querySelector("ytd-video-preview");I&&y&&_.QU(y).contains(I)||this.removeAndCleanupHighlight()};
_.L.hover=function(){var I;!this.highlighted&&(I=this.data)!=null&&I.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(I=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:I,boxShadow:"0 0 0 10px "+I})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.L.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};
_.L.registerHoverHighlightListeners=function(){var I=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16584_unsubscribeFromInlinePreviewIsActive=_.TV(_.oq(),_.agA,function(y){I.highlighted&&!y&&I.removeAndCleanupHighlight()})};
_.L.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16584_unsubscribeFromInlinePreviewIsActive()};
_.L.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.L.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.L.getBackgroundColor=function(){var I,y,D=(I=this.data)==null?void 0:(y=I.onFocusEffect)==null?void 0:y.onFocusColor;if(D){if(document.documentElement.hasAttribute("dark")&&(D==null?0:D.darkTheme))return I0(D==null?void 0:D.darkTheme);if(D==null?0:D.lightTheme)return I0(D==null?void 0:D.lightTheme)}};
_.L.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var I=_.VO(),y,D,F;I&&((y=this.data)==null?0:y.trackingParams)&&((D=this.data)==null?void 0:D.colIndex)!=null&&((F=this.data)==null?void 0:F.rowIndex)!=null&&_.PW(I,_.AC(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.L.isSlimMediaRenderer=function(I){return!!_.u(I==null?void 0:I.content,_.MMc)||!!_.u(I==null?void 0:I.content,mFc)||!!_.u(I==null?void 0:I.content,_.w7)||!!_.u(I==null?void 0:I.content,Fkg)};
_.L.isPostRenderer=function(){var I,y;return!!_.u((I=this.data)==null?void 0:I.content,ePz)||!!_.u((y=this.data)==null?void 0:y.content,TXn)};
_.L.computeIsGameCardShelf=function(){var I;return!!_.u((I=this.data)==null?void 0:I.content,S2a)};
_.L.computeIsMiniGameCardShelf=function(){var I,y;return!!_.u((I=this.data)==null?void 0:I.content,E6M)||!!_.u((y=this.data)==null?void 0:y.content,Ghz)};
_.L.computeIsTeaserCard=function(){var I;return!!_.u((I=this.data)==null?void 0:I.content,Ghz)};
_.L.computeIsSelectableFeedbackItem=function(){var I,y;return!((y=_.u((I=this.data)==null?void 0:I.content,Q7P))==null||!y.selectableFeedback)};
_.L.computeContainsLumierePosters=function(){var I,y;return((y=_.u((I=this.data)==null?void 0:I.content,O3n))==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.L.computeIsExpandOnHoverCardShelf=function(){var I;return!!_.u((I=this.data)==null?void 0:I.content,RtW)};
_.L.computeIsLinkCardShelf=function(){var I;return!!_.u((I=this.data)==null?void 0:I.content,oZW)};
_.L.computeIsReelItemStyleAvatarCircle=function(I){var y;return((y=_.u(I==null?void 0:I.content,_.w7))==null?void 0:y.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.L.computeIsLinkCardFullWidth=function(I,y){var D;return((D=_.u(I==null?void 0:I.content,oZW))==null?void 0:D.useFullWidth)||y<=2};
_.mD.Object.defineProperties(wx.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var I;return _.l("web_hover_effect_refactor")&&_.u((I=this.data)==null?void 0:I.content,ogP)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.l("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var I;if(_.l("web_hover_effect_refactor")&&_.u((I=this.data)==null?void 0:I.content,ogP))return!1;var y;return!((y=this.data)==null||!y.onFocusEffect)||_.l("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var I;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.l("web_hover_effect_refactor")?(I=this.data)==null?void 0:I.onFocusEffect:void 0}}}});
wx.prototype.richGridHoverHighlightChanged=wx.prototype.richGridHoverHighlightChanged;wx.prototype.observerContainerType=wx.prototype.observerContainerType;wx.prototype.updateIsInFirstColumn=wx.prototype.updateIsInFirstColumn;wx.prototype.itemWidthChanged=wx.prototype.itemWidthChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],wx.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],wx.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],wx.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.A("design:type",Boolean)],wx.prototype,"isPost",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.A("design:type",Boolean)],wx.prototype,"containsLumierePosters",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.A("design:type",Boolean)],wx.prototype,"isSlimMedia",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.A("design:type",Boolean)],wx.prototype,"isGameCardShelf",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.A("design:type",Boolean)],wx.prototype,"isMiniGameCardShelf",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.A("design:type",Boolean)],wx.prototype,"isTeaserCard",void 0);_.W([_.M({computed:"computeIsSelectableFeedbackItem(data)"}),_.A("design:type",Boolean)],wx.prototype,"isSelectableFeedbackItem",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isShortsGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],wx.prototype,"isSlimGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isCompactGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isShortsPanelGrid",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.A("design:type",Boolean)],wx.prototype,"isExpandOnHoverCardShelf",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.A("design:type",Boolean)],wx.prototype,"isLinkCardShelf",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.gH,value:3}),_.A("design:type",Number)],wx.prototype,"itemsPerRow",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"renderedFromRichGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isInFirstColumn",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"noGutterMargins",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"noBottomMargin",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"halfBottomMargin",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isInlineGroupItem",void 0);_.W([_.M(),_.A("design:type",Object)],wx.prototype,"insetMetadata",void 0);_.W([_.M(),_.A("design:type",Object)],wx.prototype,"noBottomMarginInAds",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],wx.prototype,"isShelfItem",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.A("design:type",Boolean)],wx.prototype,"isReelItemStyleAvatarCircle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.A("design:type",Boolean)],wx.prototype,"isLinkCardFullWidth",void 0);_.W([_.M(),_.A("design:type",Object)],wx.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"useCompactList",void 0);_.W([_.M(),_.A("design:type",String)],wx.prototype,"sizing",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],wx.prototype,"typographyBump",void 0);_.W([_.M(),_.A("design:type",Number)],wx.prototype,"itemWidth",void 0);_.W([_.M(),_.A("design:type",Boolean)],wx.prototype,"isHomeShelf",void 0);_.W([_.M(),_.A("design:type",Boolean)],wx.prototype,"isHomeGrid",void 0);
_.W([_.a0("yt-lockup-view-model"),_.A("design:type",HTMLElement)],wx.prototype,"lockup",void 0);_.W([_.a0("ytd-rich-grid-media"),_.A("design:type",HTMLElement)],wx.prototype,"richGridMedia",void 0);_.W([_.a0("ytd-ad-slot-renderer"),_.A("design:type",HTMLElement)],wx.prototype,"adSlotRenderer",void 0);_.W([_.M({computed:"computeContainerType(useCompactList)"}),_.A("design:type",Object)],wx.prototype,"containerType",void 0);_.W([_.M(),_.A("design:type",Object)],wx.prototype,"thumbnailTargetWidth",void 0);
_.W([_.Y("showYtInteractionOnRichItem"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wx.prototype,"showYtInteractionOnRichGridMedia",null);_.W([_.Y("isSelectableFeedbackItem","richGridHoverHighlight"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wx.prototype,"showYtInteractionOnRichItem",null);_.W([_.Y("typographyBump","isHomeGrid"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wx.prototype,"richTypographyBump",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data","isShortsGrid","isCompactGrid"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wx.prototype,"richGridHoverHighlight",null);_.W([_.Y("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],wx.prototype,"shortsLockupViewModelAspectRatio",null);_.W([_.Y("isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],wx.prototype,"shortsLockupViewModelScrimStyle",null);
_.W([_.ke("itemWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wx.prototype,"itemWidthChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wx.prototype,"updateIsInFirstColumn",null);_.W([_.ke("containerType","sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wx.prototype,"observerContainerType",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],wx.prototype,"isResponsiveGrid",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],wx.prototype,"lockupExperiments",null);_.W([_.ke("richGridHoverHighlight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wx.prototype,"richGridHoverHighlightChanged",null);_.W([_.yd({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],wx);
_.jIg=_.Xf()(wx,"ytd-rich-item-renderer",function(){if(Dte===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);Dte=I}I=Dte;return I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var mpB={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var bUW=_.Ug(_.zC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zzL={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},dpB={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},a2A={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var o$f;var vA=function(){var I=_.k.apply(this,arguments)||this;I.useResponsiveGrid=!1;I.hidden=!1;I.isShowMoreHidden=!1;I.isShowLessHidden=!0;I.hasExpansionButton=!1;I.isInnerShelf=!1;I.allVideosCount=0;I.allPlaylistCount=0;I.haveSmartDownloadsCompleted=!1;I.restrictContentsOverflow=!1;I.firstShownIndex=0;I.horizontalOffset=0;I.atEnd=!0;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
I.disableServiceRequestPropagation=function(y){y.stopPropagation()};
I.nextClick=function(){var y;(y=I.data)!=null&&y.contents&&(I.firstShownIndex+=I.currentElementsPerRow,I.updateHorizontalOffset(),I.updateHorizontalItemVisibility())};
I.previousClick=function(){var y;(y=I.data)!=null&&y.contents&&(I.firstShownIndex-=I.currentElementsPerRow,I.updateHorizontalOffset(),I.updateHorizontalItemVisibility())};
return I};
_.E(vA,_.k);_.L=vA.prototype;
_.L.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.Pi("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.L.attached=function(){this.requestElementsPerRow();_.l("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.L.detached=function(){_.l("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.L.refreshGridLayoutNew=function(){var I;if((I=this.data)!=null&&I.contents&&this.containerWidth){var y;((y=this.data.responsiveContainerConfiguration)==null?0:y.responsiveSize)?(I=_.ezq(this.data.responsiveContainerConfiguration,this.containerWidth,2),I=_.FP(Object.assign({},I,{standardUnitMinWidth:this.standardUnitMinWidth}))):I=_.FP({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=I.typographyBump;if(this.elementsPerRow!==
I.numItems||this.gutter!==I.gutter)this.elementsPerRow=I.numItems,this.gutter=I.gutter,this.itemWidth=I.itemWidth,_.pg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":I.gutter+"px"})}};
_.L.computeSizing=function(){if(!this.isLumiere){var I=_.rJe(this.data);return I?I:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.L.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.L.computeButton=function(I){var y=_.u(I,_.S1);I=Object.assign({},_.u(I,_.S1));return y?(I.text||(I.text={simpleText:I.tooltip}),I.style="STYLE_MONO_OUTLINE",I.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",I):y};
_.L.onRowIndexChange=function(){var I=_.VO(),y,D;((y=this.data)==null?0:y.trackingParams)&&((D=this.data)==null?void 0:D.rowIndex)!=null&&I&&_.PW(I,_.AC(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.L.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var I,y=((I=this.getRichItemRenderers()[0])==null?void 0:I.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*y;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
_.L.onUpdateElementsPerRowAction=function(I,y,D,F,R,O){if(this.containerWidth!==O&&(this.containerWidth=O,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&I&&y&&D&&F&&R&&(this.elementsPerRow!==I||this.postsPerRow!==y||this.slimItemsPerRow!==D||this.gameCardsPerRow!==F||this.miniGameCardsPerRow!==R)&&(this.elementsPerRow=I,this.postsPerRow=y,this.slimItemsPerRow=D,this.gameCardsPerRow=F,this.miniGameCardsPerRow=R,this.updateItemVisibility())};
_.L.isExpandedChanged=function(){var I=this.getRichItemRenderers(),y=this.isExpanded;I.forEach(function(D){D.halfBottomMargin=y})};
_.L.isCollapsedChanged=function(){var I=this.getRichItemRenderers(),y=this.isCollapsed;I.forEach(function(D){D.noBottomMargin=y})};
_.L.getRichItemRenderers=function(){return _.XB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.L.updateItemVisibility=function(){var I=this;if(this.data&&this.data.contents){var y=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(F,R){var O;((O=I.data)==null?0:O.isExpanded)?(F.hidden=R>y-1,F.ytRendererBehavior.markDirty()):F.hidden=R>I.currentElementsPerRow-1||R>y-1});
var D=this.data.contents.length<=this.currentElementsPerRow;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"}};
_.L.setHeightToSingleRow=function(){var I=this.getRichItemRenderers(),y=Number.parseInt(getComputedStyle(I[0]).marginBottom,10)||0;I=I.slice(0,this.currentElementsPerRow).reduce(function(D,F){return Math.max(D,F.getBoundingClientRect().height+y)},0);
this.contents.style.height=I+"px"};
_.L.focusNextExpandedItem=function(){var I;((I=this.data)==null?0:I.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.L.focusItem=function(I,y){var D=this.getRichItemRenderers();if(D[I]&&(I=D[I].querySelector(".focus-on-expand"))){if(y){var F;(F=D[this.currentElementsPerRow])==null||F.scrollIntoView({behavior:"smooth",block:"center"})}I.focus({preventScroll:!0})}};
_.L.onDataChange=function(){var I=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var y;if((y=this.data)==null?0:y.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.YC(this,function(){I.updateItemVisibility()});
var D;if((D=this.data)==null?0:D.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.pg(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),y=0;y<this.data.contents.length;y++)D=_.u(this.data.contents[y],_.Th)||{},D.colIndex=y,D.rowIndex=this.data.rowIndex};
_.L.handleRerenderDownloadsData=function(){_.l("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())};
_.L.blockInlinePreview=function(I){var y=this,D;return _.S(function(F){(D=y.inlinePreviewIsEnabled)&&y.ytdReduxBehavior.dispatch(_.Jbu(!1));return F.return(new Promise(function(R){I(function(){D&&y.ytdReduxBehavior.dispatch(_.Jbu(!0));R()})}))})};
_.L.expandShelf=function(){var I=this;if(this.data){var y,D=(y=_.u(this.data.showMoreButton,_.S1))==null?void 0:y.trackingParams;D&&_.Cb(_.W4(),D);this.set("data.isExpanded",!0);this.blockInlinePreview(function(F){I.setHeightToSingleRow();I.updateItemVisibility();I.contents.style.height=I.contents.scrollHeight+"px";_.w2.addJob(function(){I.contents.style.height="auto";I.focusNextExpandedItem();F()},2,200)})}};
_.L.collapseShelf=function(){var I=this;return _.S(function(y){if(y.nextAddress==1){if(!I.data)return y.return();I.set("data.isExpanded",!1);return y.yield(I.blockInlinePreview(function(D){I.contents.style.height=I.contents.scrollHeight+"px";I.setHeightToSingleRow();_.w2.addJob(function(){I.updateItemVisibility();I.contents.style.height="auto";D()},2,200)}),2)}_.lj(I.hostElement,"yt-rich-shelf-renderer-collapse",I.data.trackingParams);
I.focusItem(0,!1);_.Cj(y)})};
_.L.updateArrowButtonStatus=function(){this.getRichItemRenderers();var I,y;var D=((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=D};
_.L.onChildElementFocus=function(I){this.hasChevronButtons&&(I=I.target.closest("#contents > *"),this.contents.contains(I)&&(I.offsetLeft<this.horizontalOffset?this.previousClick():I.offsetLeft+I.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.L.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Pi("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.L.updateHorizontalOffset=function(){var I=this.getRichItemRenderers(),y,D;var F=((y=this.data)==null?void 0:(D=y.contents)==null?void 0:D.length)||0;var R;I=((R=I[0])==null?void 0:R.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>F?this.firstShownIndex=F-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*I};
_.L.isSlimMediaShelfRenderer=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!!(_.u(F,_.MMc)||_.u(F,mFc)||_.u(F,_.w7)||_.u(F,Fkg))};
_.L.isGameCardShelf=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!!_.u(F,S2a)};
_.L.isMiniGameCardShelf=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!!_.u(F,E6M)||!!_.u(F,Ghz)};
_.L.hasGameBoxArtAvatarStyle=function(){var I;return((I=this.data)==null?void 0:I.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.L.hasRoundedGameBoxArtAvatarStyle=function(){var I;return((I=this.data)==null?void 0:I.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.L.isShortsShelf=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!!_.u(F,_.w7)||!!_.u(F,Fkg)};
_.L.isPostShelfRenderer=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!(!_.u(F,ePz)&&!_.u(F,TXn))};
_.L.isLumiereShelf=function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th);return!!_.u(D==null?void 0:D.content,O3n)};
_.L.isLumiereShelfWithPosters=function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th),F;return((F=_.u(D==null?void 0:D.content,O3n))==null?void 0:F.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.L.isExpandOnHoverCardShelf=function(){var I,y,D,F=(D=_.u((I=this.data)==null?void 0:(y=I.contents)==null?void 0:y[0],_.Th))==null?void 0:D.content;return!!_.u(F,RtW)};
_.L.computeHasFeaturedBadge=function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.badges)==null?void 0:y[0],_.EFa);return D?D.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.L.computeHasPaygatedFeaturedBadge=function(){var I,y,D=_.u((I=this.data)==null?void 0:(y=I.badges)==null?void 0:y[0],_.EFa);return D?(D==null?void 0:D.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.L.computeHeaderHidden=function(){var I,y,D,F,R,O;return!((I=this.data)==null?0:I.icon)&&!((y=this.data)==null?0:y.title)&&!((D=this.data)==null?0:D.subtitle)&&!((F=this.data)==null?0:F.thumbnail)&&!((R=this.data)==null?0:R.badges)&&!((O=this.data)==null?0:O.menu)};
_.L.showCtaButton=function(){var I;return!((I=this.data)==null||!I.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.L.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.L.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.L.computeForce16By9ThumbnailAspectRatio=function(){var I,y;return((I=this.data)==null?void 0:(y=I.responsiveContainerConfiguration)==null?void 0:y.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.L.onSectionReactiveDismissal=function(I,y,D){var F,R;var O=(F=this.data)==null?void 0:(R=F.targetingContext)==null?void 0:R.targetGroupId;this&&O&&y.targetGroupId&&O.includes(y.targetGroupId)?(F=this.rowIndex,I=F===void 0?!1:!(y.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&F<=I)):I=!1;I&&(this.hidden=D)};
_.mD.Object.defineProperties(vA.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var I=this.elementsPerRow;this.isPostShelfRenderer()?I=this.postsPerRow:this.isSlimMediaShelfRenderer()?I=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?I=this.slimItemsPerRow-1:this.isGameCardShelf()?I=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(I=this.miniGameCardsPerRow);return I}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.previousButton)&&!((y=this.data)==null||!y.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 I;return((I=_.nR().resolve(_.ja).getCurrentPage())==null?void 0:I.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return!((I=this.data)==null?0:(y=I.thumbnail)==null?0:(D=y.accessibility)==null?0:(F=D.accessibilityData)==null?0:F.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
vA.prototype.onChildElementFocus=vA.prototype.onChildElementFocus;vA.prototype.handleRerenderDownloadsData=vA.prototype.handleRerenderDownloadsData;vA.prototype.onDataChange=vA.prototype.onDataChange;vA.prototype.isCollapsedChanged=vA.prototype.isCollapsedChanged;vA.prototype.isExpandedChanged=vA.prototype.isExpandedChanged;vA.prototype.onRowIndexChange=vA.prototype.onRowIndexChange;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],vA.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],vA.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],vA.prototype,"ytdReduxBehavior",void 0);
_.W([_.M({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.A("design:type",Object)],vA.prototype,"useResponsiveGrid",void 0);_.W([_.M(),_.A("design:type",Object)],vA.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],vA.prototype,"standardUnitMinWidth",void 0);_.W([_.M({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],vA.prototype,"elementsPerRow",void 0);_.W([_.M({value:3}),_.A("design:type",Number)],vA.prototype,"postsPerRow",void 0);
_.W([_.M({value:6}),_.A("design:type",Number)],vA.prototype,"slimItemsPerRow",void 0);_.W([_.M({value:6}),_.A("design:type",Number)],vA.prototype,"gameCardsPerRow",void 0);_.W([_.M({value:6}),_.A("design:type",Number)],vA.prototype,"miniGameCardsPerRow",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"hidden",void 0);_.W([_.M(),_.A("design:type",Object)],vA.prototype,"isShowMoreHidden",void 0);
_.W([_.M(),_.A("design:type",Object)],vA.prototype,"isShowLessHidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"hasExpansionButton",void 0);_.W([_.Y("data.isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"isExpanded",null);_.W([_.Y("data.isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"isCollapsed",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"isInnerShelf",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.A("design:type",Boolean)],vA.prototype,"isShorts",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.A("design:type",Boolean)],vA.prototype,"isLumiere",void 0);_.W([_.M({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],vA.prototype,"hasBoxArtThumbnailStyle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],vA.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.A("design:type",Boolean)],vA.prototype,"hasFeaturedBadge",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.A("design:type",Boolean)],vA.prototype,"hasPaygatedFeaturedBadge",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.A("design:type",Boolean)],vA.prototype,"isHeaderHidden",void 0);_.W([_.M({selector:_.Am5}),_.A("design:type",Object)],vA.prototype,"allVideosCount",void 0);_.W([_.M({selector:HUL}),_.A("design:type",Object)],vA.prototype,"allPlaylistCount",void 0);_.W([_.M({selector:IWC}),_.A("design:type",Object)],vA.prototype,"haveSmartDownloadsCompleted",void 0);
_.W([_.M({selectorArgs:["entitySelectorType"],selector:function(I,y){if(_.l("kevlar_modern_downloads_page")&&y&&y!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var D=I.entities;switch(y){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":y=_.Tz(D);I=M5(y);var F=_.io(y);D=_.Vi(D);D=_.lo(WyB(F,D,y.length));return{contents:I,subtitle:D};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return D=_.Tz(D),{contents:M5(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return D=
_.sc(D),{contents:M5(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return D=_.xTq(D),{contents:M5(D)};default:_.tq(new _.g6("Error: entitySelectorType defined but not matched in selector.",I,y))}}}}),
_.A("design:type",Object)],vA.prototype,"entityDrivenRichShelfData",void 0);_.W([_.M({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],vA.prototype,"hasTopCtaButton",void 0);_.W([_.M({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],vA.prototype,"hasBottomCtaButton",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.A("design:type",Boolean)],vA.prototype,"force16By9ThumbnailAspectRatio",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vA.prototype,"restrictContentsOverflow",void 0);_.W([_.M({selector:_.cme}),_.A("design:type",Boolean)],vA.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.M({computed:"computeSizing(data)"}),_.A("design:type",String)],vA.prototype,"sizing",void 0);
_.W([_.M(),_.A("design:type",Boolean)],vA.prototype,"typographyBump",void 0);_.W([_.M(),_.A("design:type",Number)],vA.prototype,"itemWidth",void 0);_.W([_.M(),_.A("design:type",Object)],vA.prototype,"firstShownIndex",void 0);_.W([_.M(),_.A("design:type",Object)],vA.prototype,"horizontalOffset",void 0);_.W([_.M(),_.A("design:type",Object)],vA.prototype,"atEnd",void 0);_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],vA.prototype,"contents",void 0);
_.W([_.ke("data.rowIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"onRowIndexChange",null);_.W([_.ke("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"isExpandedChanged",null);_.W([_.ke("isCollapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"isCollapsedChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"onDataChange",null);_.W([_.ke("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vA.prototype,"handleRerenderDownloadsData",null);_.W([_.z4("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],vA.prototype,"onChildElementFocus",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data","isHomePage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"isTruncated",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"showBottomDivider",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"hasChevronButtons",null);
_.W([_.Y("firstShownIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"previousButtonOverride",null);_.W([_.Y("atEnd"),_.A("design:type",Object),_.A("design:paramtypes",[])],vA.prototype,"nextButtonOverride",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"isHomePage",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vA.prototype,"thumbnailAriaHidden",null);
_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],vA.prototype,"entitySelectorType",null);_.W([_.yd({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],vA);
_.Nzc=_.Xf()(vA,"ytd-rich-shelf-renderer",function(){if(o$f===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);o$f=I}I=o$f;return I},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var hWa;_.NK(_.q1,"yt-badge-view-model",{props:{data:_.om,class:_.om,workaroundShortsIsThumbnailBadge:_.om,modern:_.om,numBadgesInRow:_.om,clipTextOverflow:_.om,inheritTypography:_.om}});_.NK(aru,"yt-slimline-survey-view-model",{props:{data:_.om}});var SH=function(){var I=_.k.apply(this,arguments)||this;I.tileLottieAnimationRef={};I.backgroundLottieAnimationRef={};I.isOnHoverBehaviorForLottieEnabled=!0;I.useBiggerShowcaseImage=_.l("enable_desktop_search_bigger_thumbs");I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return I};
_.E(SH,_.k);_.L=SH.prototype;_.L.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.L.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",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"}}}};
_.L.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var I=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);I!==this.hasTile&&this.set("hasTile",I);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.L.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.L.currentColorChanged=function(){this.updateButtonPalette()};
_.L.computeBackgroundStyle=function(I){if(I&&this.data){var y=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.xY((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&y.push('background-image: url("'+D+'");')}var F;((F=I.basicColorData)==null?void 0:F.backgroundColor)!==void 0&&y.push("background-color: "+_.Z7(I.basicColorData.backgroundColor)+";");return y.join("")}};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I)};
_.L.getCurrentLogo=function(I,y){if(I)return y?I.darkLogoImage:I.lightLogoImage};
_.L.getCurrentStaticTileImage=function(I,y){if(this.hasStaticTile(I))return I.darkTileImage?y?I.darkTileImage:I.tileImage:I.tileImage};
_.L.computeTitleStyle=function(I){if(this.data&&this.data.title&&I&&I.basicColorData&&I.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Vp(I.basicColorData.foregroundTitleColor)+";"};
_.L.computeSubtitleStyle=function(I){if(this.data&&this.data.subtitle&&I&&I.basicColorData&&I.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Vp(I.basicColorData.foregroundBodyColor)+";"};
_.L.computeSupplementalStyle=function(I){if(this.data&&this.data.supplementalText&&I&&I.supplementalTextColor!==void 0)return I=_.Vp(I.supplementalTextColor),"color:"+I+";--yt-endpoint-color:"+I+";--yt-endpoint-hover-color:"+I+";--yt-endpoint-visited-color:"+I+";--yt-formatted-string-bold-font-weight:700;"};
_.L.computeDismissIconStyle=function(I){var y,D;if((I==null?0:(y=I.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(I==null?0:(D=I.dismissButtonColorData)==null?0:D.backgroundColor))return"--yt-button-color:"+_.Z7(I.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Z7(I.dismissButtonColorData.backgroundColor)+";"};
_.L.computeOverflowIconStyle=function(I){var y,D;if((I==null?0:(y=I.dismissButtonColorData)==null?0:y.foregroundTitleColor)&&(I==null?0:(D=I.dismissButtonColorData)==null?0:D.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Z7(I.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Z7(I.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Z7(I.dismissButtonColorData.foregroundTitleColor)+";"};
_.L.computeBannerStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeLocation=function(I){switch(I==null?void 0:I.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.L.shouldShowTileSection=function(I,y,D){return!this.shouldExpandLogo(I,y,D)&&y};
_.L.shouldShowExpandedLogoSection=function(I,y,D){return this.shouldExpandLogo(I,y,D)&&I!==void 0&&this.hasLogo(I)};
_.L.shouldExpandLogo=function(I,y,D){return I&&y?!1:D>=2};
_.L.hasStaticTile=function(I){return!(I==null||!I.tileImage)};
_.L.hasTileLottie=function(I){var y;return!!(I==null?0:(y=I.tileLottie)==null?0:y.url)};
_.L.hasLogo=function(I){return this.getCurrentLogo(I,this.isDarkTheme)!==void 0};
_.L.getLogoHeight=function(I){return this.logoWithPadding(I)?"26":"20"};
_.L.getExpandedLogoHeight=function(I){return this.logoWithPadding(I)?"31":"24"};
_.L.getLogoImageId=function(I){return this.logoWithPadding(I)?"logo-image-with-padding":"logo-image"};
_.L.getMaxTitleFontSize=function(I){return I.overrideTitleMaxFontSize?String(I.overrideTitleMaxFontSize):"36"};
_.L.hasBackgroundLottie=function(I){var y;return!!(I==null?0:(y=I.backgroundLottie)==null?0:y.url)};
_.L.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var I,y;(I=this.tileLottieAnimationRef)==null||(y=I.lottieEl)==null||y.play();var D,F;(D=this.backgroundLottieAnimationRef)==null||(F=D.lottieEl)==null||F.play()}};
_.L.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var I,y;(I=this.tileLottieAnimationRef)==null||(y=I.lottieEl)==null||y.pause();var D,F;(D=this.backgroundLottieAnimationRef)==null||(F=D.lottieEl)==null||F.pause()}};
_.L.pauseLottie=function(){var I,y;(I=this.tileLottieAnimationRef)==null||(y=I.lottieEl)==null||y.pause();var D,F;(D=this.backgroundLottieAnimationRef)==null||(F=D.lottieEl)==null||F.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.L.performPrimaryButtonAction=function(){var I,y,D;((I=this.data)==null?0:(y=I.primaryButton)==null?0:(D=y.buttonRenderer)==null?0:D.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
_.L.updateButtonPalette=function(){if(this.data&&this.currentColorData){var I;((I=this.data.dismissButton)==null?0:I.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 y;if((y=this.data.primaryButton)==null?0:y.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 F;((F=this.data.primaryButton)==null?0:F.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var R;((R=this.data.primaryButton)==null?0:R.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var O;((O=this.data.secondaryButton)==null?0:O.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var w;((w=this.data.primaryButton)==null?0:w.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.L.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var I=this.getTileLottieDataBasedOnTheme(),y,D;if(I.url!==((y=this.tileLottiePlayerProps)==null?void 0:(D=y.animationConfig)==null?void 0:D.path)){var F,R;(F=this.tileLottieAnimationRef)==null||(R=F.lottieEl)==null||R.destroy();var O;this.isOnHoverBehaviorForLottieEnabled=!((O=I.settings)==null?0:O.autoplay);var w,v;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(v=(w=I.settings)==null?void 0:w.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(I.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof I.url==="string"?this.tileLottiePlayerProps.animationConfig.path=I.url:this.tileLottiePlayerProps.animationConfig.animationData=I.url}}};
_.L.getOverflowButton=function(I){return _.u(I.overflowButton,w9g)};
_.L.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var I=this.getBackgroundLottieDataBasedOnTheme(),y,D;if(I.url!==((y=this.backgroundLottiePlayerProps)==null?void 0:(D=y.animationConfig)==null?void 0:D.path)){var F,R;(F=this.backgroundLottieAnimationRef)==null||(R=F.lottieEl)==null||R.destroy();var O;this.isOnHoverBehaviorForLottieEnabled=!((O=I.settings)==null?0:O.autoplay);var w,v;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(v=(w=I.settings)==null?void 0:w.autoplay)!=null?v:!1,loop:this.getLottieLoopValue(I.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof I.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=I.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
I.url}}};
_.L.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var I;((I=this.tileLottieAnimationRef)==null?void 0:I.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var y;((y=this.backgroundLottieAnimationRef)==null?void 0:y.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.L.getTileLottieDataBasedOnTheme=function(){var I;if(this.isDarkTheme&&((I=this.data)==null?0:I.darkThemeTileLottie))return this.data.darkThemeTileLottie;var y;return((y=this.data)==null?0:y.tileLottie)?this.data.tileLottie:{}};
_.L.getBackgroundLottieDataBasedOnTheme=function(){var I;if(this.isDarkTheme&&((I=this.data)==null?0:I.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var y;return((y=this.data)==null?0:y.backgroundLottie)?this.data.backgroundLottie:{}};
_.L.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
_.L.getLottieLoopValue=function(I){return I?I.loop!==void 0?I.loop:I.loopCount?I.loopCount-1:!0:!0};
_.L.logoWithPadding=function(I){var y,D,F;return(I=(y=this.getCurrentLogo(I,this.isDarkTheme))==null?void 0:(D=y.thumbnails)==null?void 0:(F=D[0])==null?void 0:F.height)&&I%31===0?!0:!1};
SH.prototype.currentColorChanged=SH.prototype.currentColorChanged;SH.prototype.themeChanged=SH.prototype.themeChanged;SH.prototype.dataChanged=SH.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],SH.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],SH.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],SH.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"primaryButton",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"secondaryButton",void 0);
_.W([_.M({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],SH.prototype,"elementsPerRow",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],SH.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],SH.prototype,"hasTile",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],SH.prototype,"hasMetadata",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],SH.prototype,"showLogoImage",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"currentColorData",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.A("design:type",String)],SH.prototype,"bannerStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.A("design:type",String)],SH.prototype,"location",void 0);
_.W([_.M(),_.A("design:type",Object)],SH.prototype,"tileLottiePlayerProps",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"tileLottieAnimationRef",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"backgroundLottiePlayerProps",void 0);_.W([_.M(),_.A("design:type",Object)],SH.prototype,"backgroundLottieAnimationRef",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],SH.prototype,"useBiggerShowcaseImage",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],SH.prototype,"isHideEnclosingAction",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SH.prototype,"dataChanged",null);_.W([_.Bp("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SH.prototype,"themeChanged",null);
_.W([_.Bp("currentColorData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SH.prototype,"currentColorChanged",null);_.W([_.yd({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],SH);
_.a(SH,"ytd-statement-banner-renderer",function(){if(hWa!==void 0)return hWa;var I=document.createElement("template");_.G(I,'\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="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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hWa=I},{mode:1});var xtn;var tb=function(){var I=_.k.apply(this,arguments)||this;I.isSearch=!1;I.hideShelfHeader=!1;I.engagementPanel=!1;I.disableMouseScroll=!0;I.useFloorScrolling=!0;return I};
_.E(tb,_.k);tb.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.zC("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.zC("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
tb.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
tb.prototype.onDataChanged=tb.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tb.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tb.prototype,"hideShelfHeader",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tb.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],tb.prototype,"disableMouseScroll",void 0);_.W([_.M(),_.A("design:type",Object)],tb.prototype,"useFloorScrolling",void 0);_.W([_.M(),_.A("design:type",Object)],tb.prototype,"data",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tb.prototype,"onDataChanged",null);
_.W([_.yd({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],tb);
_.a(tb,"ytd-reel-shelf-renderer",function(){if(xtn!==void 0)return xtn;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xtn=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var liG;var uRc;uRc=_.UI(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.qUu=_.Et(uRc);var E$n=_.d(function(I){var y=I.data;I=I.useSmallFont;var D={},F={};return _.t("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.t(_.U,{cond:function(){return y().favicon},
then:function(R){return _.t(_.UE,{data:R,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.t("div",{class:"ytChannelExternalLinkViewModelContainer"},_.t(_.jr,{text:function(){return y().title},
className:_.XH("ytChannelExternalLinkViewModelTitle",(D.ytChannelExternalLinkViewModelTitleSmallFont=I,D)),ellipsisTruncate:!0,userInput:!0}),_.t(_.jr,{text:function(){return y().link},
className:_.XH("ytChannelExternalLinkViewModelLink",(F.ytChannelExternalLinkViewModelLinkSmallFont=I,F)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"gd");
E$n.idomCompat=!0;_.NK(E$n,"yt-channel-external-link-view-model",{props:{data:_.om,useSmallFont:_.om}});_.bO("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var PA=function(){var I=_.k.apply(this,arguments)||this;I.revealButtonClass="button";I.businessEmailDisplayState="HIDE_SECTION";return I};
_.E(PA,_.k);_.L=PA.prototype;_.L.refit=function(){var I=this;_.wy(function(){_.qr(I.hostElement,"yt-refit-popups-action")});
_.YC(this,function(){_.qr(I.hostElement,"yt-refit-popups-action")})};
_.L.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.R1(_.qUu),this.businessEmailDisplayState="CAPTCHA")};
_.L.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"};
_.L.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.L.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"}}}};
_.L.computeEmailHref=function(I){return"mailto:"+I};
_.L.computeSafeUrl=function(I){if(I)return _.VA(I)};
_.L.linkEndpoint=function(I){return _.u(I.onTap,_.Iu)};
_.L.linkEndpointToHref=function(I){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(I))};
_.L.onYtServiceRequestCompleted=function(I){var y;if((y=I.detail.data)==null?0:y.businessEmail)this.businessEmail=I.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=I.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=I.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.L.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var I=this.JSC$16698_captchaTextarea.value;if(I){I={recaptcha_response_token:I,channel_id:this.metadata.channelId};var y=_.u(this.metadata.onBusinessEmailRevealClickCommand,_.Iu);y&&this.ytComponentBehavior.resolveCommand(y,{form:I})}}};
_.L.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mD.Object.defineProperties(PA.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.data)==null?void 0:I.metadata,v0R)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.u(this.metadata.businessEmailRevealButton,_.Kb)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var I=new URL(this.metadata.canonicalChannelUrl);return I.host+I.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 _.u(this.metadata.learnMoreOnTap,_.Iu)}}});
PA.prototype.onYtServiceRequestCompleted=PA.prototype.onYtServiceRequestCompleted;PA.prototype.businessEmailMetadataChanged=PA.prototype.businessEmailMetadataChanged;PA.prototype.refit=PA.prototype.refit;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],PA.prototype,"JSC$16698_captchaTextarea",void 0);_.W([_.M(),_.A("design:type",Object)],PA.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],PA.prototype,"revealButtonClass",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],PA.prototype,"metadata",null);
_.W([_.Y("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],PA.prototype,"revealButton",null);_.W([_.Y("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],PA.prototype,"channelDisplayUrl",null);_.W([_.Bp("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PA.prototype,"refit",null);_.W([_.Y("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],PA.prototype,"formattedDescription",null);
_.W([_.Y("metadata","learnMoreCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],PA.prototype,"shouldRendereVerifiedPhoneStatus",null);_.W([_.Y("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],PA.prototype,"learnMoreCommand",null);_.W([_.M(),_.A("design:type",String)],PA.prototype,"businessEmailDisplayState",void 0);_.W([_.M(),_.A("design:type",String)],PA.prototype,"businessEmail",void 0);
_.W([_.M(),_.A("design:type",String)],PA.prototype,"businessEmailErrorMessage",void 0);_.W([_.Bp("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PA.prototype,"businessEmailMetadataChanged",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PA.prototype,"onYtServiceRequestCompleted",null);
_.W([_.yd({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],PA);
_.a(PA,"ytd-about-channel-renderer",function(){if(liG!==void 0)return liG;var I=document.createElement("template");_.G(I,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return liG=I},{mode:1});var GNW;var Ko=function(){return _.k.apply(this,arguments)||this};
_.E(Ko,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ko.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Ko);
_.a(Ko,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(GNW!==void 0)return GNW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return GNW=I},{mode:1});var XaM;var UV=function(){return _.k.apply(this,arguments)||this};
_.E(UV,_.k);UV.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UV.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],UV.prototype,"aligment",void 0);_.W([_.yd({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],UV);
_.a(UV,"ytd-channel-list-sub-menu-renderer",function(){if(XaM!==void 0)return XaM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return XaM=
I},{mode:1});var QIM;var rx=function(){return _.k.apply(this,arguments)||this};
_.E(rx,_.k);rx.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rx.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],rx);
_.a(rx,"ytd-channel-sub-menu-renderer",function(){if(QIM!==void 0)return QIM;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return QIM=I},{mode:1});var YUg;var fiu;var jH=function(){var I=_.k.apply(this,arguments)||this;I.isCompact=!1;return I};
_.E(jH,_.k);_.mD.Object.defineProperties(jH.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var I,y;return((y=_.u((I=this.data)==null?void 0:I.endpoint,_.lK))==null?void 0:y.target)==="TARGET_NEW_WINDOW"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],jH.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],jH.prototype,"isCompact",void 0);_.W([_.Y("isCompact"),_.A("design:type",Number),_.A("design:paramtypes",[])],jH.prototype,"thumbnailWidth",null);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jH.prototype,"openNewWindow",null);_.W([_.yd({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],jH);
_.a(jH,"ytd-media-lockup-renderer",function(){if(fiu!==void 0)return fiu;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return fiu=I},{mode:1});var n$n;var op=function(){return _.k.apply(this,arguments)||this};
_.E(op,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],op.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],op.prototype,"data",void 0);_.W([_.yd({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],op);
_.a(op,"ytd-structured-description-channel-lockup-renderer",function(){if(n$n!==void 0)return n$n;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return n$n=I},{mode:1});var pan;var NZ=function(){var I=_.k.apply(this,arguments)||this;I.isCompact=!1;I.collectionsStackColor=_.l("modernize_structured_description_playlist_lockups_v2");return I};
_.E(NZ,_.k);NZ.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:_.l("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.mD.Object.defineProperties(NZ.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(I=this.data)==null?void 0:(y=I.thumbnail)==null?void 0:y.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(D=this.data)==null?void 0:(F=D.thumbnail)==null?void 0:F.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(R=this.data)==null?void 0:(O=R.thumbnail)==null?
void 0:O.vibrantColorPalette:void 0}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],NZ.prototype,"componentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],NZ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],NZ.prototype,"showSidePanelThumbnailOverlay",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],NZ.prototype,"isCompact",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],NZ.prototype,"collectionsStackColor",void 0);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NZ.prototype,"twoLineTitle",null);_.W([_.Y("data","collectionsStackColor"),_.A("design:type",Object),_.A("design:paramtypes",[])],NZ.prototype,"collectionStack",null);
_.W([_.yd({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],NZ);
_.a(NZ,"ytd-structured-description-playlist-lockup-renderer",function(){if(pan!==void 0)return pan;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return pan=I},{mode:1});var mtu;var hb=function(){return _.k.apply(this,arguments)||this};
_.E(hb,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],hb.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hb.prototype,"data",void 0);_.W([_.yd({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],hb);
_.a(hb,"ytd-structured-description-video-lockup-renderer",function(){if(mtu!==void 0)return mtu;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return mtu=I},{mode:2});var xa=function(){return _.k.apply(this,arguments)||this};
_.E(xa,_.k);
xa.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xa.prototype,"data",void 0);_.W([_.yd({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],xa);
_.a(xa,"ytd-compact-infocard-renderer",function(){if(YUg!==void 0)return YUg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return YUg=I},{mode:1});var M2M;var lA=function(){return _.k.apply(this,arguments)||this};
_.E(lA,_.k);lA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mD.Object.defineProperties(lA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],lA.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],lA.prototype,"ytdReduxBehavior",void 0);_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],lA.prototype,"isGridViewEnabled",void 0);
_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],lA.prototype,"watchFeedBigThumbs",null);_.W([_.Y("isGridViewEnabled","data"),_.M({reflectToAttribute:!0,value:"168"}),_.A("design:type",String),_.A("design:paramtypes",[])],lA.prototype,"thumbnailWidth",null);_.W([_.Y("isGridViewEnabled","data"),_.M({reflectToAttribute:!0,value:"94"}),_.A("design:type",String),_.A("design:paramtypes",[])],lA.prototype,"customThumbnailSize",null);
_.W([_.M(),_.A("design:type",Object)],lA.prototype,"data",void 0);_.W([_.yd({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],lA);
_.a(lA,"ytd-compact-playlist-renderer",function(){if(M2M!==void 0)return M2M;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return M2M=I},{mode:1});var zWR;var uA=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return I};
_.E(uA,_.k);_.L=uA.prototype;_.L.attached=function(){this.requestElementsPerRow()};
_.L.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"}}}};
_.L.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.L.computeViewStyle=function(I){return I.style?I.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.L.onUpdateElementsPerRowAction=function(I){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&I===1};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
uA.prototype.dataChanged=uA.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],uA.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],uA.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],uA.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],uA.prototype,"hideThumbnail",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.A("design:type",String)],uA.prototype,"viewStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],uA.prototype,"roundedContainer",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uA.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],uA);
_.a(uA,"ytd-compact-promoted-item-renderer",function(){if(zWR!==void 0)return zWR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return zWR=I},{mode:1});var kNg;var qZ=function(){return _.k.apply(this,arguments)||this};
_.E(qZ,_.k);qZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
qZ.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
qZ.prototype.onYtNavigate=function(I,y){var D=this;if(y.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",y)){var F=this.get("watchEndpoint.videoId",y.endpoint),R=_.qr(this.hostElement,"yt-get-current-video-id-action")[0];_.l("kevlar_mix_handle_first_endpoint_different")&&F&&R&&F!==R||(I.stopPropagation(),_.hZ().getPlayerPromise().then(function(O){if(O.getPlayerState()===0&&D.data.secondaryNavigationEndpoint)var w=D.data.secondaryNavigationEndpoint;else{w=
Object.assign({},y.endpoint);var v=_.u(w.commandMetadata,_.nE);v&&(O=Math.floor(O.getCurrentTime()),v.url=_.qC(v.url,{t:O}),!_.l("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(v=_.u(w,_.t9)))&&(v.startTimeSeconds=O)}_.lj(D.hostElement,"yt-navigate",{endpoint:w})}))}};
_.mD.Object.defineProperties(qZ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(y=I.thumbnail)==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(F=D.thumbnail)==null?void 0:F.vibrantColorPalette,darkColorPalette:(R=this.data)==null?void 0:(O=R.thumbnail)==null?void 0:O.darkColorPalette,experimentEnabled:!0}}}});
qZ.prototype.onYtNavigate=qZ.prototype.onYtNavigate;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],qZ.prototype,"ytEndpointBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],qZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.jo),_.A("design:type",Object)],qZ.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],qZ.prototype,"ytdReduxBehavior",void 0);_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],qZ.prototype,"isGridViewEnabled",void 0);_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qZ.prototype,"watchFeedBigThumbs",null);
_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],qZ.prototype,"thumbnailWidth",null);_.W([_.M(),_.A("design:type",Object)],qZ.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qZ.prototype,"collectionStack",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],qZ.prototype,"onYtNavigate",null);
_.W([_.yd({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],qZ);
_.a(qZ,"ytd-compact-radio-renderer",function(){if(kNg!==void 0)return kNg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kNg=I},{mode:1});var dtR;var EV=function(){return _.k.apply(this,arguments)||this};
_.E(EV,_.k);EV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
EV.prototype.computeRendererStyle=function(I){return I.style?I.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.W([_.M(),_.A("design:type",Object)],EV.prototype,"data",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],EV.prototype,"rendererBehavior",void 0);_.W([_.M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],EV.prototype,"rendererStyle",void 0);_.W([_.yd({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],EV);
_.a(EV,"ytd-compact-text-promo-renderer",function(){if(dtR!==void 0)return dtR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return dtR=I},{mode:1});var ain;var GS=function(){var I=_.k.apply(this,arguments)||this;I.isShortsStyle=!1;return I};
_.E(GS,_.k);_.L=GS.prototype;_.L.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"}}}};
_.L.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.lj(this.hostElement,"yt-disable-lockup-interaction"):_.lj(this.hostElement,"yt-enable-lockup-interaction"))};
_.L.isMetaBlockEmpty=function(I){return!I||!I.longBylineText&&!I.shortBylineText&&!I.shortViewCountText&&!I.viewCountText};
_.L.computeHasOneLineTitle=function(I){return this.forceOneLineTitle||!(I==null||!I.buttons)};
_.L.computeDisableInteraction=function(){var I;return!((I=this.data)==null?0:I.navigationEndpoint)};
_.L.hasSingularTopStandaloneBadge=function(){var I;return!((I=this.data)==null||!I.topStandaloneBadge)};
_.mD.Object.defineProperties(GS.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("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 I;return this.hasSingularTopStandaloneBadge()?[(I=this.data)==null?void 0:I.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var I;return this.shouldShowTopBadges?((I=this.data)==null?void 0:I.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
GS.prototype.disableInteractionChanged=GS.prototype.disableInteractionChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],GS.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],GS.prototype,"ytdLockupBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],GS.prototype,"ytdReduxBehavior",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.A("design:type",Boolean)],GS.prototype,"metaBlockEmpty",void 0);_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],GS.prototype,"isGridViewEnabled",void 0);_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GS.prototype,"watchFeedBigThumbs",null);
_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],GS.prototype,"thumbnailWidth",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],GS.prototype,"isShortsStyle",void 0);_.W([_.M(),_.A("design:type",Object)],GS.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.A("design:type",Boolean)],GS.prototype,"hasOneLineTitle",void 0);
_.W([_.M(),_.A("design:type",Boolean)],GS.prototype,"hideThumbnail",void 0);_.W([_.M(),_.A("design:type",Boolean)],GS.prototype,"forceOneLineTitle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.A("design:type",Boolean)],GS.prototype,"disableInteraction",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],GS.prototype,"musicMetadataVideoLockup",void 0);
_.W([_.ke("disableInteraction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GS.prototype,"disableInteractionChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GS.prototype,"shouldShowTopBadges",null);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],GS.prototype,"topBadges",null);
_.W([_.Y("shouldShowTopBadges","data"),_.A("design:type",Array),_.A("design:paramtypes",[])],GS.prototype,"inlineMetadataBadges",null);_.W([_.Y("shouldShowTopBadges"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GS.prototype,"shouldShowBadgesBelowMetadata",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],GS.prototype,"compactTitleClass",null);_.W([_.yd({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],GS);
_.a(GS,"ytd-compact-video-renderer",function(){if(ain!==void 0)return ain;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ain=I},{mode:_.Qd("kevlar_poly_si_batch_j067")?1:2});var c$_;_.bO("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var XZ=function(){return _.k.apply(this,arguments)||this};
_.E(XZ,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],XZ.prototype,"data",void 0);_.W([_.yd({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],XZ);
_.a(XZ,"ytd-counterfactual-renderer",function(){if(c$_!==void 0)return c$_;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return c$_=I},{mode:1});var Wtc;var QD=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;return I};
_.E(QD,_.k);QD.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.nR().resolve(_.MC).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
QD.prototype.computeHidden=function(I){return!!I};
_.mD.Object.defineProperties(QD.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}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QD.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.A("design:type",Object)],QD.prototype,"hidden",void 0);_.W([_.Y("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],QD.prototype,"label",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],QD.prototype,"value",null);
_.W([_.yd({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],QD);
_.a(QD,"ytd-dropdown-item-renderer",function(){if(Wtc!==void 0)return Wtc;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Wtc=I},{mode:1});var Cnz;var BzM;var Ya=function(){return _.k.apply(this,arguments)||this};
_.E(Ya,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ya.prototype,"data",void 0);_.W([_.M({computed:"getSimpleString(data.label)"}),_.A("design:type",String)],Ya.prototype,"label",void 0);_.W([_.yd({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Ya);
_.a(Ya,"ytd-navigation-dropdown-item-renderer",function(){if(BzM!==void 0)return BzM;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return BzM=I},{mode:1});var fo=function(){var I=_.k.apply(this,arguments)||this;I.disabled=!1;I.value="";I.noLabelFloat=!1;I.noUnderline=!1;I.usePrimaryColor=!1;I.hasBackground=!1;I.verticalAlign="top";I.autosize=!1;I.minAutosizeWidth=100;I.autosizeFont="14px Roboto";return I};
_.E(fo,_.k);_.L=fo.prototype;_.L.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"}}}};
_.L.open=function(){this.inputEl.open()};
_.L.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.L.dataChanged=function(){this.reset()};
_.L.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("value-changed",this.value))};
_.L.stopPropagation=function(I){I.stopPropagation()};
_.L.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var I=this.canvas.getContext("2d");I&&(I.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(I.measureText(this.inputEl.value).width)+24)+"px")}};
_.L.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var I=0,y=this.data.entries.length;I<y;I++){var D=this.data.entries[I],F;for(F in D)if(D.hasOwnProperty(F)){var R=D[F];if("isSelected"in R&&R.isSelected)return"stringValue"in R?R.stringValue||"":"int32Value"in R?R.int32Value||0:0}}return null};
_.L.updateValueFromBinding=function(I){this.value=I.detail.value};
_.mD.Object.defineProperties(fo.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 I=0,y=this.data.entries.length;I<y;I++){var D=this.data.entries[I],F;for(F in D)if(D.hasOwnProperty(F)){var R=D[F];if("isSelected"in R&&R.isSelected&&"label"in R)return this.ytRendererBehavior.getSimpleString(R.label)}}return null}}});
fo.prototype.autoSizeLabel=fo.prototype.autoSizeLabel;fo.prototype.stopPropagation=fo.prototype.stopPropagation;fo.prototype.valueChangedForBinding=fo.prototype.valueChangedForBinding;fo.prototype.dataChanged=fo.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fo.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],fo.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fo.prototype,"disabled",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"value",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"noLabelFloat",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fo.prototype,"noUnderline",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],fo.prototype,"theme",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fo.prototype,"usePrimaryColor",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fo.prototype,"hasBackground",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"verticalAlign",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"autosize",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"minAutosizeWidth",void 0);_.W([_.M(),_.A("design:type",Object)],fo.prototype,"autosizeFont",void 0);
_.W([_.a0("#entries"),_.A("design:type",Object)],fo.prototype,"entries",void 0);_.W([_.a0("#input"),_.A("design:type",Object)],fo.prototype,"inputEl",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fo.prototype,"dataChanged",null);_.W([_.Bp("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fo.prototype,"valueChangedForBinding",null);
_.W([_.z4("iron-overlay-opened"),_.z4("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fo.prototype,"stopPropagation",null);_.W([_.z4("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fo.prototype,"autoSizeLabel",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],fo.prototype,"label",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],fo);
_.a(fo,"ytd-dropdown-renderer",function(){if(Cnz!==void 0)return Cnz;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Cnz=I},{mode:1});var i6W;var no=function(){var I=_.k.apply(this,arguments)||this;I.isConstrainedList=!1;return I};
_.E(no,_.k);no.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"}}}};
no.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
no.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
no.prototype.computeViewAllHidden=function(I,y){return I||!y.viewAllEndpoint};
no.prototype.fillRestIfNoShowMore=no.prototype.fillRestIfNoShowMore;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],no.prototype,"ytLazyListBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],no.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],no.prototype,"isConstrainedList",void 0);_.W([_.Bp("data","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],no.prototype,"fillRestIfNoShowMore",null);_.W([_.yd({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],no);
_.a(no,"ytd-expanded-shelf-contents-renderer",function(){if(i6W!==void 0)return i6W;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return i6W=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var A$z;var po=function(){return _.k.apply(this,arguments)||this};
_.E(po,_.k);po.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],po.prototype,"data",void 0);_.W([_.yd({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],po);
_.a(po,"ytd-feed-channel-filter-header-renderer",function(){if(A$z!==void 0)return A$z;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return A$z=I},{mode:1});var $tn;var b6G;var H6_;var mb=function(){return _.k.apply(this,arguments)||this};
_.E(mb,_.k);_.L=mb.prototype;_.L.onClick=function(I){var y,D=(y=this.data)==null?void 0:y.sectionEndpoint;!_.UP(_.r4(I),this.hostElement,["A".toString()])&&D&&_.lj(this.hostElement,"yt-navigate",{endpoint:D})};
_.L.computeHasSectionEndpoint=function(I){return(I==null?void 0:I.sectionEndpoint)!==void 0};
_.L.computeShowHeaderAsLink=function(I){return(I==null?void 0:I.header)!==void 0&&(I==null?void 0:I.sectionEndpoint)!==void 0};
_.L.computeShowSubheaderAsLink=function(I){return(I==null?void 0:I.subheader)!==void 0&&(I==null?void 0:I.sectionEndpoint)!==void 0&&(I==null?void 0:I.header)===void 0};
_.L.getHeaderAsLinkClass=function(I){var y=[],D;(I==null?0:(D=I.headerIcon)==null?0:D.iconType)&&y.push("header-link-active");return y.join(" ")};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],mb.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mb.prototype,"data",void 0);
_.W([_.M({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],mb.prototype,"hasSectionEndpoint",void 0);_.W([_.M({computed:"computeShowHeaderAsLink(data)"}),_.A("design:type",Boolean)],mb.prototype,"showHeaderAsLink",void 0);_.W([_.M({computed:"computeShowSubheaderAsLink(data)"}),_.A("design:type",Boolean)],mb.prototype,"showSubheaderAsLink",void 0);_.W([_.yd({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],mb);
_.a(mb,"ytd-medical-panel-section-renderer",function(){if(H6_!==void 0)return H6_;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return H6_=I},{mode:1});var MZ=function(){var I=_.k.apply(this,arguments)||this;I.isExpanded=!1;I.roundedContainer=!0;I.skipRoundingTop=!1;I.toggleExpandableSection=function(){I.isExpanded=!I.isExpanded};
return I};
_.E(MZ,_.k);
MZ.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]]"}}}}}};
MZ.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
MZ.prototype.dataChanged=MZ.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],MZ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],MZ.prototype,"isExpanded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],MZ.prototype,"roundedContainer",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],MZ.prototype,"skipRoundingTop",void 0);_.W([_.M(),_.A("design:type",Object)],MZ.prototype,"toggleExpandableSection",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MZ.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],MZ);
_.a(MZ,"ytd-medical-panel-content-renderer",function(){if(b6G!==void 0)return b6G;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return b6G=I},{mode:1});_.bO("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var zS=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.extractOverlay=!1;I.amsterdamEnabled=_.l("enable_desktop_amsterdam_info_panels");I.hasTitle=!1;I.linkIcon="OPEN_IN_NEW";I.isDismissed=!1;return I};
_.E(zS,_.k);zS.prototype.onOverlayConditionsChange=function(){var I=_.XB(this.hostElement).querySelector("ytd-info-panel-content-renderer");I&&(I.set("extractOverlay",this.extractOverlay),I.set("roundedContainer",this.roundedContainer))};
zS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
zS.prototype.computeHasTitle=function(I){return!(I==null||!I.title)};
zS.prototype.onClick=function(I){var y,D=(y=this.data)==null?void 0:y.headerEndpoint;!_.UP(_.r4(I),this.hostElement,["BUTTON".toString()])&&D&&this.ytComponentBehavior.resolveCommand(D)};
_.mD.Object.defineProperties(zS.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 I;return((I=this.data)==null?void 0:I.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.disableBottomDivider)||!((y=this.data)==null?0:y.title)}}});
zS.prototype.onOverlayConditionsChange=zS.prototype.onOverlayConditionsChange;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],zS.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],zS.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],zS.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zS.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zS.prototype,"extractOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],zS.prototype,"amsterdamEnabled",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Object)],zS.prototype,"hasTitle",void 0);
_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],zS.prototype,"background",null);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],zS.prototype,"titleStyle",null);
_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Y("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],zS.prototype,"showLinkIcon",null);_.W([_.M(),_.A("design:type",String)],zS.prototype,"linkIcon",void 0);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],zS.prototype,"hideDivider",null);
_.W([_.M({selectorArgs:["data.dismissStateEntityKey"],selector:function(I,y){I=_.nC(I.entities,"dismissState",y);return(I==null?void 0:I.isDismissed)||(I==null?void 0:I.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(I==null?void 0:I.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.A("design:type",Object)],zS.prototype,"isDismissed",void 0);_.W([_.ke("roundedContainer","extractOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zS.prototype,"onOverlayConditionsChange",null);_.W([_.yd({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],zS);
_.a(zS,"ytd-info-panel-container-renderer",function(){if($tn!==void 0)return $tn;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $tn=I},{mode:1});var eWO;_.bO("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ka=function(){return _.k.apply(this,arguments)||this};
_.E(ka,_.k);ka.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ka.prototype.computeStyle=function(I){return I?I:""};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ka.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.A("design:type",String)],ka.prototype,"titleStyle",void 0);
_.W([_.yd({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ka);
_.Xf()(ka,"ytd-item-section-header-renderer",function(){if(eWO===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);eWO=I}I=eWO;return I},{allowedProps:["data"],
mode:1});var Tzc;var sIn,V2u=function(){return sIn!==void 0?sIn:sIn=document.createElement("template")};
document.head.appendChild(V2u().content);var Z6g;_.dx=new _.uk("VOTING_ANIMATION_CONTROLLER_TOKEN");var IGO=_.d(function(I){var y=I.data;var D=_.DF("div"),F=_.DF("div");I=_.J(_.$M("VOTE_STATUS_NONE",void 0,"YPH5mf"));var R=I.next().value,O=I.next().value,w=_.zj(T0W,function(){var h;return(h=y())==null?void 0:h.entityKey}),v=_.l("web_enable_voting_animation")||_.l("enable_music_web_cairo_voting_animation");
_.LR(function(){var h;((h=y().initialState)==null?0:h.status)&&O(y().initialState.status)});
var P=function(){var h,x,q=(x=(h=y().initialState)==null?void 0:h.votes)!=null?x:0,X;h=(X=y().initialState)==null?void 0:X.status;return h==="VOTE_STATUS_UPVOTED"?q-1:h==="VOTE_STATUS_DOWNVOTED"?q+1:q},K=function(){return R()==="VOTE_STATUS_UPVOTED"?P()+1:R()==="VOTE_STATUS_DOWNVOTED"?P()-1:P()},r=function(h){var x=h?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
O(x);var q=K(),X=_.nR().resolve(_.fR(_.dx)),f=w();f&&(h&&(f==null?0:f.upvoteDefaultButtonOnTap)?_.OE(f.upvoteDefaultButtonOnTap,{form:{element:D.value},disableClickTracking:!0}):(f==null?0:f.upvoteToggledButtonOnTap)&&_.OE(f.upvoteToggledButtonOnTap,{form:{element:D.value},disableClickTracking:!0}));var m;h=(m=f==null?void 0:f.enableOptimisticReordering)!=null?m:y().enableOptimisticReordering;v&&X&&y().itemId&&h&&g$M(X,y().itemId,q,x)},N=function(h){var x=h?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
O(x);var q=K(),X=_.nR().resolve(_.fR(_.dx)),f=w();f&&(h&&(f==null?0:f.downvoteDefaultButtonOnTap)?_.OE(f.downvoteDefaultButtonOnTap,{form:{element:F.value},disableClickTracking:!0}):(f==null?0:f.downvoteToggledButtonOnTap)&&_.OE(f.downvoteToggledButtonOnTap,{form:{element:F.value},disableClickTracking:!0}));var m;h=(m=f==null?void 0:f.enableOptimisticReordering)!=null?m:y().enableOptimisticReordering;v&&X&&y().itemId&&h&&g$M(X,y().itemId,q,x)};
I={};I=_.XH("ytVotingViewModelVoteCount",(I.ytVotingViewModelVoteCountDisabled=function(){return y().isDisabled},I));
return _.t("voting-view-model",{class:"ytVotingViewModelHost"},_.t("div",{el:D},_.t(_.aP,{data:function(){var h=_.u(y().upvoteButton,_.r7);return{toggleButtonViewModel:Object.assign({},h,{isToggled:R()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(h){return _.t(_.yJ,{data:h.data,
onToggle:r})}})),_.t("div",{class:I},function(){var h,x,q;
return R()==="VOTE_STATUS_UPVOTED"?(h=y().initialState)==null?void 0:h.compactVotesUpvoted:R()==="VOTE_STATUS_DOWNVOTED"?(x=y().initialState)==null?void 0:x.compactVotesDownvoted:(q=y().initialState)==null?void 0:q.compactVotes}),_.t("div",{el:F},_.t(_.aP,{data:function(){var h=_.u(y().downvoteButton,_.r7);
return{toggleButtonViewModel:Object.assign({},h,{isToggled:R()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(h){return _.t(_.yJ,{data:h.data,
onToggle:N})}})))},"hd");_.NK(_.d(function(I){var y=I.data;return _.t("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.t("div",{class:_.XH("ytEngagementBarViewModelEngagementBarWrapper",I.className)},_.t(_.aP,{data:function(){return y().actions}},{votingViewModel:IGO})))},"id"),"engagement-bar-view-model",{props:{data:_.om,
className:_.om}});var ap=function(){var I=_.k.apply(this,arguments)||this;I.playlistVotingAnimationEnabled=_.l("web_enable_voting_animation");I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.downloadState="DOWNLOAD_STATE_UNKNOWN";I.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";I.offlineVideoPolicyExpirationTimestamp=0;return I};
_.E(ap,_.k);_.L=ap.prototype;_.L.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"}}}};
_.L.canReorderChanged=function(){this.persistentDragHandle=_.l("kevlar_playlist_drag_handles")&&this.canReorder};
_.L.onDrag=function(){if(this.thumbnail){var I=_.XB(this.thumbnail).querySelector("yt-image");I&&(I.shouldRenderLazy=!1)}};
_.L.onMenuOverlayChanged=function(I,y){this.menuOpened=y};
_.L.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.L.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.L.onContentsTap=function(I){var y,D=(y=this.data)==null?void 0:y.serviceEndpoints;if(D&&D.length===1&&_.u(D[0],Z7W)&&!_.UP(_.r4(I),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(D[0]);else{var F;(y=(F=this.data)==null?void 0:F.navigationEndpoint)&&_.l("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?y1W(_.nR().resolve(_.OI),y):(_.bW().playlistSuggestionsShelfActivation=
!0,_.DBz(_.nR().resolve(_.OI),y)):y&&!_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.l("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.lj(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y))}};
_.L.computeStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeThumbnailWidth=function(I){return I==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.L.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=SGC(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))}};
_.L.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.L.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.L.dataChanged=function(){if(this.data){var I,y,D,F=((I=this.downloadRenderData)==null?void 0:I.badges)&&((y=this.downloadRenderData)==null?void 0:y.badges)!==((D=this.data)==null?void 0:D.badges),R,O,w;I=((R=this.downloadRenderData)==null?void 0:R.thumbnailOverlays)&&((O=this.downloadRenderData)==null?void 0:O.thumbnailOverlays)!==((w=this.data)==null?void 0:w.thumbnailOverlays);(!this.downloadRenderData||F||I)&&this.downloadStateChanged()}};
_.L.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var I,y,D=(I=this.data.menu)==null?void 0:(y=I.menuRenderer)==null?void 0:y.items;if(D)for(I=_.J(D),y=I.next();!y.done;y=I.next())if(y=y.value,D=void 0,_.u((D=y.menuServiceItemRenderer)==null?void 0:D.serviceEndpoint,_.Lb)){var F=D=void 0,R=void 0;y=(D=y)==null?void 0:(F=D.menuServiceItemRenderer)==null?void 0:(R=F.serviceEndpoint)==null?void 0:R.playlistEditEndpoint;R=F=void 0;if(D=(F=y)==null?void 0:(R=F.actions)==null?void 0:
R[0])F=void 0,D.setVideoId=(F=this.data)==null?void 0:F.setVideoId;R=F=D=void 0;if(y=(D=y)==null?void 0:(F=D.clientActions)==null?void 0:(R=F[0])==null?void 0:R.playlistRemoveVideosAction)D=void 0,y.setVideoIds=[(D=this.data)==null?void 0:D.setVideoId]}}};
_.mD.Object.defineProperties(ap.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
ap.prototype.setVideoIdChanged=ap.prototype.setVideoIdChanged;ap.prototype.dataChanged=ap.prototype.dataChanged;ap.prototype.downloadStateChanged=ap.prototype.downloadStateChanged;ap.prototype.onMenuOverlayChanged=ap.prototype.onMenuOverlayChanged;ap.prototype.canReorderChanged=ap.prototype.canReorderChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],ap.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],ap.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ap.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ap.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"canReorder",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"menuOpened",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"handleIsHovered",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"persistentDragHandle",void 0);_.W([_.M(),_.A("design:type",Object)],ap.prototype,"downloadRenderData",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],ap.prototype,"styleType",void 0);_.W([_.M({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],ap.prototype,"thumbnailWidth",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"isDownloads",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ap.prototype,"playlistVotingAnimationEnabled",void 0);
_.W([_.M({selector:Og,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"downloadProgress",void 0);_.W([_.M(),_.A("design:type",Number)],ap.prototype,"relativeDateReference",void 0);_.W([_.M({selector:_.FM,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"transferState",void 0);_.W([_.M({selector:Ffo,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"downloadState",void 0);
_.W([_.M({selector:BQq,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"offlinePolicyAction",void 0);_.W([_.M({selector:iYH,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.W([_.M({selector:$Te,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],ap.prototype,"entityInfo",void 0);_.W([_.M({selector:_.Iq}),_.A("design:type",Boolean)],ap.prototype,"miniplayerIsActive",void 0);
_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],ap.prototype,"playlistVideoId",null);_.W([_.a0("#thumbnail"),_.A("design:type",Object)],ap.prototype,"thumbnail",void 0);_.W([_.Bp("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ap.prototype,"canReorderChanged",null);
_.W([_.z4("yt-menu-overlay-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Boolean]),_.A("design:returntype")],ap.prototype,"onMenuOverlayChanged",null);_.W([_.Bp("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ap.prototype,"downloadStateChanged",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ap.prototype,"dataChanged",null);_.W([_.Bp("data.setVideoId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ap.prototype,"setVideoIdChanged",null);_.W([_.yd({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],ap);
_.a(ap,"ytd-playlist-video-renderer",function(){if(Z6g!==void 0)return Z6g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);I.content.insertBefore(V2u().content.cloneNode(!0),I.content.firstChild);return Z6g=I},{mode:1});var FIR;var cA=function(){return _.k.apply(this,arguments)||this};
_.E(cA,_.k);_.W([_.M(),_.A("design:type",Object)],cA.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cA.prototype,"rendererBehavior",void 0);_.W([_.yd({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],cA);
_.a(cA,"ytd-premium-browse-footer-renderer",function(){if(FIR!==void 0)return FIR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FIR=I},{mode:1});var R$e;var WA=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return I};
_.E(WA,_.k);_.L=WA.prototype;_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.L.handleDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.computeHeaderLogoThumbnail=function(I,y){if(I)return y?I.darkLogo:I.lightLogo};
_.L.computeHeaderLogoHeight=function(I,y){var D,F,R;return(I=(D=this.computeHeaderLogoThumbnail(I,y))==null?void 0:(F=D.thumbnails)==null?void 0:(R=F[0])==null?void 0:R.height)&&I%31===0?"31":"24"};
_.L.computeHeaderLogoMarginBottom=function(I,y){return this.computeHeaderLogoHeight(I,y)==="24"?"0":"-7"};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],WA.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],WA.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],WA.prototype,"isDarkTheme",void 0);_.W([_.M({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.A("design:type",Object)],WA.prototype,"themeLogo",void 0);
_.W([_.M({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.A("design:type",String)],WA.prototype,"logoHeight",void 0);_.W([_.M({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.A("design:type",String)],WA.prototype,"logoMarginBottom",void 0);_.W([_.yd({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],WA);
_.a(WA,"ytd-primetime-promo-header-renderer",function(){if(R$e!==void 0)return R$e;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return R$e=I},{mode:1});var Oln;_.Co=_.d(function(I){var y=I.className;var D=I.data;var F=I.isOverlay;var R=I.maxLinesOverride;var O=I.useMediumText;var w=function(){return D().alwaysShowTruncationText},v=function(){return D().truncationText},P=function(){return O!==void 0&&O()?"medium":"small"},K=function(){return F!==void 0&&F()?"overlay":"default"},r=function(){var q,X;
return(X=(q=_.u(D().rendererContext,_.W_))==null?void 0:q.label)!=null?X:""};
I=_.J(_.$M(!1,void 0,"llBUm"));var N=I.next().value,h=I.next().value;I=_.YY(function(){D().expandOnTap&&h(!N());return!1});
var x={};return _.t("yt-description-preview-view-model",{el:_.K4(_.VM(function(){return D().rendererContext})),
class:_.XH("ytDescriptionPreviewViewModelHost",y,(x.ytDescriptionPreviewViewModelClickable=function(){var q;return!((q=_.u(D().rendererContext,_.ZX))==null||!q.onTap)},x.ytDescriptionPreviewViewModelIsOverlay=F,x)),
"on:click":I},_.t(_.U,{cond:function(){return D().description},
then:function(q){return _.t(_.U,{cond:N,then:function(){var X={};return _.t("div",{class:_.XH("ytDescriptionPreviewViewModelDescription",(X.ytDescriptionPreviewViewModelDescriptionMediumText=O,X))},_.t(_.jr,{text:q}))},
else:function(){return _.t(Dpa,{text:q,alwaysShowTruncationText:w,truncationText:v,maxLines:function(){var X;return(X=R==null?void 0:R())!=null?X:D().maxLines},
textStyle:K,accessibilityLabel:r,textSize:P})}})}}))},"jd");
_.Co.idomCompat=!0;var J1G=_.d(function(I){var y=_.YY(function(R){var O;(O=I.onClick)==null||O.call(I,R)}),D={},F={};
return _.t("yt-shelf-header-layout",{class:_.XH("yt-shelf-header-layout",(D["yt-shelf-header-layout--disable-horizontal-padding"]=I.disableHorizontalPadding,D["yt-shelf-header-layout--disable-vertical-padding"]=I.disableVerticalPadding,D["yt-shelf-header-layout--responsive"]=I.useResponsiveLayout,D["yt-shelf-header-layout--narrow"]=function(){var R,O;return((R=I.useResponsiveLayout)==null?void 0:R.call(I))&&((O=I.forceSmallLayout)==null?void 0:O.call(I))},D["yt-shelf-header-layout--is-overlay"]=I.isOverlay,
D["yt-shelf-header-layout--tappable"]=I.isInteractive,D["yt-shelf-header-layout--optional-medium-layout-padding"]=I.useUpdatedPadding,D)),
"on:click":y,tabindex:function(){var R;return((R=I.isInteractive)==null?0:R.call(I))?0:void 0}},_.t("div",{class:"yt-shelf-header-layout__header-row"},_.t(_.U,{cond:I.leadingIcon,
then:function(R){return _.t("div",{class:"yt-shelf-header-layout__leading-icon"},_.t(_.mj,{icon:R}))},
else:function(){return _.t(_.U,{cond:I.hasLeadingImage,then:function(){var R,O={};return _.t("div",{class:_.XH("yt-shelf-header-layout__leading-image",(O["yt-shelf-header-layout__leading-image--circular-image"]=I.circularImage,O))},(R=I.leadingImage)==null?void 0:R.call(I))}})}}),_.t("div",{class:"yt-shelf-header-layout__label-container"},_.t(_.U,{cond:I.hasSuperlabel,
then:function(){var R;return _.t("div",{class:"yt-shelf-header-layout__superlabel"},(R=I.superlabel)==null?void 0:R.call(I))}}),_.t("div",{class:"yt-shelf-header-layout__title-row"},_.t(LIe,{text:I.title,
className:_.XH("yt-shelf-header-layout__title",(F["yt-shelf-header-layout__title--small-title"]=I.forceSmallLayout,F)),tagLevel:I.tagLevel}),_.t(_.U,{cond:I.hasDetail,then:function(){var R;return _.t("div",{class:"yt-shelf-header-layout__detail"},(R=I.detail)==null?void 0:R.call(I))}})),_.t(_.U,{cond:I.hasSublabel,
then:function(){var R;return _.t("div",{class:"yt-shelf-header-layout__sublabel"},(R=I.sublabel)==null?void 0:R.call(I))}})),_.t(_.U,{cond:I.hasTrailingActions,
then:function(){var R;return _.t("div",{class:"yt-shelf-header-layout__trailing-actions"},(R=I.trailingActions)==null?void 0:R.call(I))}})),_.t(_.U,{cond:I.hasBottomAccessory,
then:function(){var R;return _.t("div",{class:"yt-shelf-header-layout__bottom-accessory"},(R=I.bottomAccessory)==null?void 0:R.call(I))}}))},"kd");
J1G.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var LIe=_.d(function(I){var y=I.text;var D=I.className;var F=I.tagLevel;return _.t(_.I8,null,_.t(_.Vj,{when:function(){return(F==null?void 0:F())===0}},function(){return _.t("h2",{class:D},y())}),_.t(_.Vj,{when:function(){return(F==null?void 0:F())===1}},function(){return _.t("h3",{class:D},y())}),_.t(_.Vj,{when:function(){return(F==null?void 0:F())===2}},function(){return _.t("h4",{class:D},y())}),_.t(_.Z4,null,function(){return _.t("h2",{class:D},y())}))},"ld");var San,wef,vda;_.BA=_.d(function(I){var y=I.className;var D=I.data;var F=I.disableHorizontalPadding;var R=I.disableVerticalPadding;var O=I.forceSmallLayout;var w=I.useResponsiveLayout;var v=I.isOverlay;I=I.useUpdatedPadding;return _.t("yt-section-header-view-model",{class:_.XH("ytSectionHeaderViewModelHost",y),style:_.p4({"background-color":function(){return zE(D().backgroundColor)?_.Z7(zE(D().backgroundColor)):void 0}})},_.t(J1G,{hasDetail:!1,
title:function(){return _.t(_.jr,{text:function(){return D().headline}})},
hasTitle:!0,sublabel:function(){return _.t(wef,{data:D})},
hasSublabel:function(){return!!D().sublabel||!!D().bottomBadge},
superlabel:function(){return _.t(vda,{data:D})},
hasSuperlabel:function(){return!!D().superlabel||!!D().topBadge},
leadingImage:function(){return _.t(San,{leadingAccessory:function(){return D().leadingAccessory}})},
hasLeadingImage:function(){return!!D().leadingAccessory},
trailingActions:function(){return _.t(_.aP,{data:function(){return D().trailingActions}},{flexibleActionsViewModel:_.wK})},
hasTrailingActions:function(){return!!D().trailingActions},
disableHorizontalPadding:function(){return(F==null?void 0:F())||D().disableHorizontalPadding},
disableVerticalPadding:R,forceSmallLayout:O,useResponsiveLayout:w,isOverlay:v,isInteractive:function(){return!!_.Tj(D().rendererContext)},
onClick:function(P){if(_.sP(D().rendererContext)){var K=_.Tj(D().rendererContext);K&&_.Do(K,{form:{element:P.target,event:P}})}},
bottomAccessory:function(){return _.t(_.aP,{data:function(){return D().bottomAccessory}},{descriptionPreviewViewModel:function(P){return _.t(_.Co,{data:P.data,
useMediumText:!0})},
commonMarkViewModel:function(P){P=P.data;var K;return _.t(_.ni,null,(K=_.nR().resolve(_.fR(Etg)))==null?void 0:K({data:P}))}})},
hasBottomAccessory:function(){return!!D().bottomAccessory},
useUpdatedPadding:I}))},"md");
San=_.d(function(I){var y=I.leadingAccessory;return _.t(_.ni,null,_.t(_.U,{cond:function(){var D;return(D=y().image)!=null?D:_.OA(y().themedImage)},
then:function(D){return _.t(_.UE,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.t(_.U,{cond:function(){return _.u(y().avatar,_.gP)},
then:function(D){return _.t(_.LF,{data:D})}}))},"nd");
wef=_.d(function(I){var y=I.data;return _.t(_.ni,null,_.t(_.U,{cond:function(){return _.u(y().bottomBadge,toG)},
then:function(D){var F={};return _.t(_.q1,{data:D,class:_.XH((F.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!y().sublabel},F))})}}),_.t(_.U,{cond:function(){return y().sublabel},
then:function(D){return _.t(_.jr,{text:D})}}))},"od");
vda=_.d(function(I){var y=I.data;return _.t(_.ni,null,_.t(_.U,{cond:function(){return _.u(y().topBadge,toG)},
then:function(D){var F={};return _.t(_.q1,{data:D,class:_.XH((F.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!y().superlabel},F))})}}),_.t(_.U,{cond:function(){return y().superlabel},
then:function(D){return _.t(_.jr,{text:D})}}))},"pd");_.NK(_.BA,"yt-section-header-view-model",{props:{data:_.om,className:_.om,disableHorizontalPadding:_.om,disableVerticalPadding:_.om,forceSmallLayout:_.om,useResponsiveLayout:_.om,isOverlay:_.om,useUpdatedPadding:_.om}});_.bO("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var iA=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return I};
_.E(iA,_.k);_.L=iA.prototype;_.L.attached=function(){this.requestElementsPerRow()};
_.L.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"}}}};
_.L.onDataChange=function(){var I=this;_.YC(this,function(){I.updateItemVisibility()})};
_.L.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I,this.updateItemVisibility())};
_.L.updateItemVisibility=function(){var I=this;this.data&&this.data.panels&&_.XB(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(y,D){y.hidden=D>I.elementsPerRow-1})};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
iA.prototype.onDataChange=iA.prototype.onDataChange;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],iA.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],iA.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],iA.prototype,"data",void 0);_.W([_.M({value:3}),_.A("design:type",Number)],iA.prototype,"elementsPerRow",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iA.prototype,"onDataChange",null);_.W([_.yd({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],iA);
_.a(iA,"ytd-primetime-promo-renderer",function(){if(Oln!==void 0)return Oln;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Oln=I},{mode:1});var tOG;var Ab=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return I};
_.E(Ab,_.k);Ab.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Ab.prototype.handleButtonRefreshAction=function(I){if(I=_.u(I,Qca))this.set("data.button",I.membershipButton),this.notifyPath("data.button")};
_.mD.Object.defineProperties(Ab.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.avatars)==null?void 0:y.slice(0,8))||[]}}});
_.W([_.M(),_.A("design:type",Object)],Ab.prototype,"data",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ab.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ab.prototype,"rendererBehavior",void 0);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Ab.prototype,"avatars",null);
_.W([_.yd({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Ab);
_.a(Ab,"ytd-recognition-shelf-renderer",function(){if(tOG!==void 0)return tOG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return tOG=I},{mode:1});var PJn;var KIR;var $a=function(){var I=_.k.apply(this,arguments)||this;I.modernButtons=_.l("web_modern_buttons");return I};
_.E($a,_.k);_.L=$a.prototype;
_.L.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]]"}}}}}};
_.L.dataChanged=function(){this.collapsed=!0};
_.L.computeVisibleItems=function(I,y){return I!==void 0&&I.items?y?I.items.slice(0,this.data.collapsedItemCount):I.items:[]};
_.L.computeHideShowMore=function(I,y,D){return I>=y||!D};
_.L.computeHideShowAll=function(I,y,D){return!(I&&y)||D};
_.L.onMoreClick=function(){this.collapsed=!1};
_.mD.Object.defineProperties($a.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.l("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.d6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.l("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
$a.prototype.dataChanged=$a.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$a.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],$a.prototype,"isSearch",void 0);
_.W([_.M({computed:"computeVisibleItems(data,collapsed)"}),_.A("design:type",Array)],$a.prototype,"visibleItems",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],$a.prototype,"collapsed",void 0);_.W([_.M({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.A("design:type",Boolean)],$a.prototype,"hideShowMore",void 0);
_.W([_.M({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.A("design:type",Boolean)],$a.prototype,"hideShowAll",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],$a.prototype,"modernButtons",void 0);_.W([_.Y("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],$a.prototype,"typographyBump",null);
_.W([_.Y("isSearch"),_.A("design:type",Object),_.A("design:paramtypes",[])],$a.prototype,"lockupExperiments",null);_.W([_.Y("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],$a.prototype,"thumbnailWidth",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$a.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],$a);
_.a($a,"ytd-vertical-list-renderer",function(){if(KIR!==void 0)return KIR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return KIR=I},{mode:1});var UBa=_.UI(["#"]);_.bO("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var bA=function(){var I=_.k.apply(this,arguments)||this;I.isConstrainedList=!1;return I};
_.E(bA,_.k);_.L=bA.prototype;
_.L.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"}}}};
_.L.computeThumbnailStyle=function(I){return I||""};
_.L.computePlaceAnnotationUnderTitle=function(){var I;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((I=this.data)==null?void 0:I.thumbnailStyle)||"")};
_.L.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I)||_.uyS(UBa)};
_.L.computeIsPromoShelf=function(I){var y;return(I=I==null?void 0:(y=I[0])==null?void 0:y.metadataBadgeRenderer)?I.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.L.computePlaceBadgeBesideTitle=function(I){var y;return(I==null?0:(y=I[0])==null?0:y.metadataBadgeRenderer)?!this.computeIsPromoShelf(I):!1};
_.L.computeMenuIcon=function(I){return this.computeIsPromoShelf(I)?"yt-icons:more_vert":"yt-icons:more"};
_.L.onDataChange=function(){var I,y;((I=this.data)==null?0:(y=I.content)==null?0:y.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.L.onLockupRequested=function(I){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&I.detail&&I.detail.videoIds){for(var y=this.data.content.gridRenderer.items,D=new Set,F=_.J(I.detail.videoIds),R=F.next();!R.done;R=F.next())D.add(R.value);I.detail.returnValue=y.filter(function(O){return O.gridVideoRenderer&&O.gridVideoRenderer.videoId&&D.has(O.gridVideoRenderer.videoId)}).map(function(O){return O.gridVideoRenderer})}};
_.L.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
bA.prototype.onLockupRequested=bA.prototype.onLockupRequested;bA.prototype.onDataChange=bA.prototype.onDataChange;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],bA.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bA.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],bA.prototype,"ironResizableBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bA.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],bA.prototype,"isSearch",void 0);_.W([_.M(),_.A("design:type",Object)],bA.prototype,"isConstrainedList",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("kevlar_fluid_dismiss")}}),
_.A("design:type",Boolean)],bA.prototype,"enableFluidDismiss",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.A("design:type",String)],bA.prototype,"thumbnailStyle",void 0);_.W([_.M({computed:"computeMenuIcon(data.badges)"}),_.A("design:type",String)],bA.prototype,"menuIcon",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.A("design:type",Boolean)],bA.prototype,"featuredPromo",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bA.prototype,"onDataChange",null);_.W([_.z4("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],bA.prototype,"onLockupRequested",null);_.W([_.yd({is:"ytd-shelf-renderer",disableElementRegistration:!0})],bA);
_.a(bA,"ytd-shelf-renderer",function(){if(PJn!==void 0)return PJn;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PJn=I},{mode:1});var r1c;var HA=function(){return _.k.apply(this,arguments)||this};
_.E(HA,_.k);HA.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.mD.Object.defineProperties(HA.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HA.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],HA.prototype,"isPlaylist",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],HA.prototype,"isClipList",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],HA.prototype,"isPlaylistPageWithFilters",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],HA.prototype,"hasTitle",null);_.W([_.M(),_.Y("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.A("design:type",Object),_.A("design:paramtypes",[])],HA.prototype,"isRightAligned",null);
_.W([_.yd({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],HA);
_.a(HA,"ytd-sort-filter-header-renderer",function(){if(r1c!==void 0)return r1c;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return r1c=I},{mode:1});var jNg;var eH=function(){var I=_.k.apply(this,arguments)||this;I.enableRightArrowHidden=_.l("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return I};
_.E(eH,_.k);eH.prototype.attached=function(){var I=this;this.enableRightArrowHidden&&(this.JSC$16827_throttledOnResize=new _.n4(function(){var y;(y=I.ytdHorizontalListBehavior)==null||y.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var y;
(y=I.JSC$16827_throttledOnResize)==null||y.fire()}),this.resizeObserver.observe(this.hostElement))};
eH.prototype.detached=function(){if(this.enableRightArrowHidden){var I;(I=this.resizeObserver)==null||I.disconnect();var y;(y=this.JSC$16827_throttledOnResize)==null||y.dispose()}};
eH.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]]"}}}}}};
eH.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.mD.Object.defineProperties(eH.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.l("enable_creator_details_shelf_m2")){var I=[],y;((y=this.data)==null?0:y.creatorVideosButton)&&I.push(this.data.creatorVideosButton);var D;((D=this.data)==null?0:D.creatorAboutButton)&&I.push(this.data.creatorAboutButton);y=_.J(this.data.creatorCustomUrlButtons||[]);for(D=y.next();!D.done;D=y.next())I.push(D.value);return I}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.l("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],eH.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],eH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],eH.prototype,"engagementPanel",void 0);
_.W([_.M(),_.A("design:type",Object)],eH.prototype,"enableRightArrowHidden",void 0);_.W([_.Y("enableRightArrowHidden","atEnd"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],eH.prototype,"hideRightArrow",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],eH.prototype,"creatorCustomUrlButtons",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data","creatorCustomUrlButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],eH.prototype,"showCreatorCustomUrlButtons",null);_.W([_.Y("showCreatorCustomUrlButtons"),_.A("design:type",Number),_.A("design:paramtypes",[])],eH.prototype,"channelAvatarSize",null);_.W([_.yd({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],eH);
_.a(eH,"ytd-video-description-infocards-section-renderer",function(){if(jNg!==void 0)return jNg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return jNg=I},{mode:_.Qd("kevlar_poly_si_batch_j067")?1:2});var odG;var TS=function(){return _.k.apply(this,arguments)||this};
_.E(TS,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TS.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],TS.prototype,"infoIcon",void 0);_.W([_.yd({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],TS);
_.a(TS,"ytd-eom-settings-disclaimer-renderer",function(){if(odG!==void 0)return odG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return odG=I},{mode:1});var N$O;var sV=function(){return _.k.apply(this,arguments)||this};
_.E(sV,_.k);_.mD.Object.defineProperties(sV.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.suppressPaddingDisclaimer)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],sV.prototype,"componentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sV.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sV.prototype,"suppressPaddingDisclaimer",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],sV);
_.a(sV,"ytd-product-list-header-renderer",function(){if(N$O!==void 0)return N$O;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return N$O=I},{mode:1});var h$M;var VD=function(){return _.k.apply(this,arguments)||this};
_.E(VD,_.k);VD.prototype.computeThumbnailStyle=function(I){if(I&&(I=_.Vp(I)))return"background-color:"+I+";"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VD.prototype,"rendererBehaviors",void 0);_.W([_.M(),_.A("design:type",Object)],VD.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],VD);
_.a(VD,"ytd-hashtag-tile-renderer",function(){if(h$M!==void 0)return h$M;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return h$M=I},{mode:1});var xBW;var Zx=function(){return _.k.apply(this,arguments)||this};
_.E(Zx,_.k);Zx.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zx.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Zx);
_.a(Zx,"ytd-sponsorships-alert-renderer",function(){if(xBW!==void 0)return xBW;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xBW=I},{mode:1});var lGO;var gx=function(){return _.k.apply(this,arguments)||this};
_.E(gx,_.k);gx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.mD.Object.defineProperties(gx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.l("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.W([_.Q(_.vy),_.A("design:type",Object)],gx.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],gx.prototype,"ytdLockupBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.W([_.M({selector:_.Zo}),_.A("design:type",Object)],gx.prototype,"isGridViewEnabled",void 0);
_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gx.prototype,"watchFeedBigThumbs",null);_.W([_.Y("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],gx.prototype,"thumbnailWidth",null);_.W([_.M(),_.A("design:type",Object)],gx.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],gx);
_.a(gx,"ytd-compact-movie-renderer",function(){if(lGO!==void 0)return lGO;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return lGO=I},{mode:1});var uce;var qaf;var EdM=_.Pi("HTML_DIR")==="rtl",Ix=function(){var I=_.k.apply(this,arguments)||this;I.engagementPanel=!1;I.maxLines=2;I.expandButtonOffset=0;I.showExpandButton=!1;I.isTruncated=!1;I.isExpanded=!1;I.currentSnippetType=2;I.alwaysShowExpandButton=!1;I.JSC$16844_lastWidth=NaN;I.observer=null;I.left=0;I.right=0;I.mid=0;I.longestSnippetLength=0;I.isFinalSnippet=!1;I.isFirstMutation=!1;I.isResetMutation=!1;I.OVERFLOW_THRESHOLD=5;return I};
_.E(Ix,_.k);_.L=Ix.prototype;_.L.onClick=function(I){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;if((y=window.getSelection())==null||!y.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.L.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.L.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.L.updateTextOnSnippetTypeChange=function(){_.l("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.L.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.L.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.tq(new _.g6("AttributedSnippet is empty when the description is not empty",this.text))};
_.L.mutationCallback=function(){if(this.observer!=null){var I=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var y=Math.floor(I*this.maxLines/8);this.setSnippetText(this.text,y);y!==0||this.attributedTextIsEmpty()||_.tq(new _.g6("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;I=I*this.maxLines/8;this.left=0;var D;this.right=Math.min(I*2,(D=(y=this.simpleText)==null?void 0:y.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)}}};
_.L.mutationObserve=function(I){var y=this;this.observer||(this.observer=new MutationObserver(function(){y.mutationCallback()}));
this.observer.observe(I,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.L.attached=function(){var I=this;_.YC(this,function(){I.resize()})};
_.L.isExpandedChanged=function(){_.lj(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.L.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)};
_.L.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var I="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((EdM?"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",I);this.snippetContainer.style.setProperty("mask-image",
I)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(EdM?"right":"left",this.expandButtonOffset+"px")};
_.L.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.L.setSnippetText=function(I,y){I||(I={});if(_.Sp(I)){var D=vU(I,y);D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.alignment||D.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:vU(I,y),headerRuns:fSC(y,this.headerRuns)},this.currentSnippetType=0):_.tq(new _.g6("Tried to set snippet text when HTML element was null",I)):(this.plainSnippetText.textContent=Jf(I.content||"",y),this.currentSnippetType=2)}else{a:{D=sMA(I,y);if(D.runs){D=_.J(D.runs);for(var F=
D.next();!F.done;F=D.next())if(F=F.value,F.bold||F.deemphasize||F.italics||F.strikethrough||F.textColor||F.navigationEndpoint||_.u(F,Zd)){D=!0;break a}}D=!1}D?this.formattedSnippetText?(this.formattedSnippetText.text=sMA(I,y),this.currentSnippetType=1):_.tq(new _.g6("Tried to set snippet text when HTML element was null",I)):(this.plainSnippetText.textContent=Jf(_.rY(I),y),this.currentSnippetType=2)}};
_.L.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.L.attributedTextIsEmpty=function(){var I=this.text;if(!_.Sp(I))return!0;var y;return((y=I.content)==null?void 0:y.length)===0?!0:!1};
_.L.resize=function(I){if(this.snippetText){if(I===void 0?0:I)this.JSC$16844_lastWidth=NaN;var y=this.hostElement.offsetWidth;if(y!==this.JSC$16844_lastWidth&&!this.isExpanded)if(this.JSC$16844_lastWidth=y,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;I=0;var D,F;y=Math.min(y*this.maxLines/8*2,(F=(D=this.simpleText)==null?void 0:D.length)!=null?F:0)-1;for(D=0;I<=y;)F=Math.floor(I+(y-I)/2),this.setSnippetText(this.text,F),this.isOverflowing()?y=F-1:(I=F+1,D=F);this.setSnippetText(this.text,D);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.L.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.L.onExpandClick=function(){var I=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.l("inline_expander_reset_focus_killswitch")||_.YC(this,function(){var y;((y=_.nR().resolve(_.fR(_.Q3)))==null?0:y.isKeyBoardInUse())&&_.qw(I.hostElement)});
_.lj(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.L.onCollapseClick=function(){this.collapse();_.lj(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.L.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.L.computeExpandButtonOffset=function(){var I=this.expandSizer;return I?EdM?I.offsetParent?I.offsetParent.offsetWidth-I.offsetWidth-I.offsetLeft:0:I.offsetLeft:0};
_.mD.Object.defineProperties(Ix.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Sp(this.text)?this.text.content||"":_.rY(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 _.Sp(this.text)?!0:this.text&&_.l("web_replace_formatted_with_attributed_string")&&Dmo(this.text)?(this.text=_.Vd(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}}});
Ix.prototype.onTextChanged=Ix.prototype.onTextChanged;Ix.prototype.updateMaskAndExpandButtonOffset=Ix.prototype.updateMaskAndExpandButtonOffset;Ix.prototype.updateSnippetContainerMaxHeight=Ix.prototype.updateSnippetContainerMaxHeight;Ix.prototype.isExpandedChanged=Ix.prototype.isExpandedChanged;Ix.prototype.updateTextOnSnippetTypeChange=Ix.prototype.updateTextOnSnippetTypeChange;Ix.prototype.updateIsFormattedExpanded=Ix.prototype.updateIsFormattedExpanded;Ix.prototype.updateIsAttributedExpanded=Ix.prototype.updateIsAttributedExpanded;
Ix.prototype.onClick=Ix.prototype.onClick;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ix.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"text",void 0);_.W([_.M(),_.A("design:type",Array)],Ix.prototype,"headerRuns",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ix.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"maxLines",void 0);
_.W([_.M(),_.A("design:type",String)],Ix.prototype,"expandLabel",void 0);_.W([_.M(),_.A("design:type",String)],Ix.prototype,"collapseLabel",void 0);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"expandCommand",void 0);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"expandButtonOffset",void 0);_.W([_.Y("text"),_.A("design:type",String),_.A("design:paramtypes",[])],Ix.prototype,"simpleText",null);
_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ix.prototype,"onClick",null);_.W([_.Y("text","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"expandedText",null);_.W([_.Y("headerRuns","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"expandedHeaderRuns",null);
_.W([_.Y("text"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ix.prototype,"hasAttributedStringText",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ix.prototype,"showExpandButton",void 0);_.W([_.Y("collapseLabel","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"showCollapseButton",null);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"isTruncated",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ix.prototype,"isExpanded",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ix.prototype,"isAttributedExpanded",void 0);_.W([_.ke("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"updateIsAttributedExpanded",null);_.W([_.M(),_.A("design:type",Boolean)],Ix.prototype,"isFormattedExpanded",void 0);
_.W([_.ke("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"updateIsFormattedExpanded",null);_.W([_.M(),_.A("design:type",Number)],Ix.prototype,"currentSnippetType",void 0);_.W([_.Y("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"useAttributedSnippet",null);
_.W([_.Y("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"useFormattedSnippet",null);_.W([_.Y("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ix.prototype,"usePlainSnippet",null);_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"alwaysShowExpandButton",void 0);_.W([_.ke("currentSnippetType"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"updateTextOnSnippetTypeChange",null);
_.W([_.M(),_.A("design:type",Object)],Ix.prototype,"attributedSnippetText",void 0);_.W([_.a0("#snippet"),_.A("design:type",HTMLElement)],Ix.prototype,"snippetContainer",void 0);_.W([_.a0("#snippet-text"),_.A("design:type",HTMLElement)],Ix.prototype,"snippetText",void 0);_.W([_.a0("#plain-snippet-text"),_.A("design:type",HTMLElement)],Ix.prototype,"plainSnippetText",void 0);_.W([_.a0("#formatted-snippet-text"),_.A("design:type",Object)],Ix.prototype,"formattedSnippetText",void 0);
_.W([_.a0("#attributed-snippet-text"),_.A("design:type",Object)],Ix.prototype,"attributedSnippetTextEl",void 0);_.W([_.a0("#expand"),_.A("design:type",HTMLElement)],Ix.prototype,"expandButton",void 0);_.W([_.a0("#expand-sizer"),_.A("design:type",HTMLElement)],Ix.prototype,"expandSizer",void 0);_.W([_.Bp("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"isExpandedChanged",null);
_.W([_.ke("isExpanded","maxLines"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"updateSnippetContainerMaxHeight",null);_.W([_.ke("isTruncated","showExpandButton","expandButtonOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"updateMaskAndExpandButtonOffset",null);
_.W([_.Bp("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ix.prototype,"onTextChanged",null);_.W([_.yd({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Ix);
_.a(Ix,"ytd-text-inline-expander",function(){if(qaf===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);qaf=I}I=qaf;return I},{mode:2});var yI=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return I};
_.E(yI,_.k);yI.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
yI.prototype.handleUpdateDescriptionAction=function(I){if(I=_.u(I,_.clg))if(I.attributedDescription)this.set("data.attributedDescriptionBodyText",I.attributedDescription);else if(I.description){var y;((y=this.data)==null?0:y.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Vd(I.description)):this.set("data.descriptionBodyText",I.description)}};
_.mD.Object.defineProperties(yI.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.attributedDescriptionBodyText)||!((y=this.data)==null||!y.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.collapsedLineCount){var y;return(y=this.data)==null?void 0:y.collapsedLineCount}I=_.kf("web_watch_description_collapsed_default_lines",12);if(_.l("ww_desc_line_page_size_ks"))return I;y=Math.round(_.cF().height*_.kf("web_watch_description_screen_height_percentage",.5)/20);return Math.max(y,I)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return(D=(I=this.data)==null?void 0:I.descriptionBodyText)!=null?D:(y=this.data)==null?void 0:y.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.sourceAttributions}}});
yI.prototype.panelContentVisibleChanged=yI.prototype.panelContentVisibleChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],yI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yI.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yI.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],yI.prototype,"panelContentVisible",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],yI.prototype,"engagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],yI.prototype,"shortsPanel",void 0);_.W([_.a0("#inline-expander"),_.A("design:type",Object)],yI.prototype,"inlineExpander",void 0);
_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yI.prototype,"panelContentVisibleChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yI.prototype,"hasDescriptionText",null);_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],yI.prototype,"collapsedLines",null);
_.W([_.Y("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.A("design:type",Object),_.A("design:paramtypes",[])],yI.prototype,"descriptionText",null);_.W([_.Y("data","data.headerRuns"),_.A("design:type",Object),_.A("design:paramtypes",[])],yI.prototype,"headerRuns",null);_.W([_.Y("data","data.sourceAttributions"),_.A("design:type",Object),_.A("design:paramtypes",[])],yI.prototype,"sourceAttributions",null);
_.W([_.yd({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],yI);
_.a(yI,"ytd-expandable-video-description-body-renderer",function(){if(uce!==void 0)return uce;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return uce=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var Gy_;var Xeg=_.d(function(I){var y=I.data;return _.t("factoid-renderer",{class:"ytwFactoidRendererHost"},_.t("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return y().accessibilityText}},_.t("span",{class:"ytwFactoidRendererValue"},_.t(_.jr,{text:function(){return y().value}})),_.t("span",{class:"ytwFactoidRendererLabel"},_.t(_.jr,{text:function(){return y().label}}))))},"qd");_.NK(Xeg,"factoid-renderer",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;return _.t("upload-time-factoid-renderer",null,_.t(_.aP,{data:function(){return y().factoid}},{factoidRenderer:Xeg}))},"rd"),"upload-time-factoid-renderer",{props:{data:_.rV}});_.NK(_.d(function(I){var y=I.data;return _.t("view-count-factoid-renderer",null,_.t(_.aP,{data:function(){return y().factoid}},{factoidRenderer:Xeg}))},"sd"),"view-count-factoid-renderer",{props:{data:_.rV}});var DH=function(){var I=_.k.apply(this,arguments)||this;I.shortsPanel=!1;I.engagementPanel=!1;I.watchWhileSdp=_.l("shorts_desktop_watch_while_sdp");return I};
_.E(DH,_.k);DH.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"}}}}};
_.mD.Object.defineProperties(DH.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var I;return(I=this.data)==null?void 0:I.channel}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],DH.prototype,"componentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],DH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],DH.prototype,"shortsPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],DH.prototype,"engagementPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],DH.prototype,"watchWhileSdp",void 0);_.W([_.Y("shortsPanel","engagementPanel","data.channel"),_.A("design:type",Object),_.A("design:paramtypes",[])],DH.prototype,"showChannelInfo",null);_.W([_.yd({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],DH);
_.a(DH,"ytd-video-description-header-renderer",function(){if(Gy_!==void 0)return Gy_;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Gy_=I},{mode:1});var QNe;var FF=function(){return _.k.apply(this,arguments)||this};
_.E(FF,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FF.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],FF.prototype,"noPadding",void 0);_.W([_.M(),_.A("design:type",Object)],FF.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],FF);
_.a(FF,"ytd-list-item-view-model",function(){if(QNe!==void 0)return QNe;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return QNe=I},{mode:1});var Yaf;var fGM;var ndn;var pef;var Rx=function(){var I=_.k.apply(this,arguments)||this;I.adaptiveFullWidth=!1;I.modernButtons=_.l("web_modern_buttons");I.buttonOverrides={style:"call-to-action",type:"filled"};I.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return I};
_.E(Rx,_.k);Rx.prototype.handleSetTimestamp_=function(I){this.data&&this.data.shortUrl&&(_.XB(this.hostElement).querySelector("#share-url").value=I.isSet?_.rC(this.data.shortUrl,"t",I.timestamp):this.data.shortUrl)};
Rx.prototype.handleSignalActionCopyShareUrl_=function(I,y){(_.l("killswitch_copy_link_target_check")||_.XB(this.hostElement).querySelector("#copy-button")===y)&&this.copyUrlToClipboard()};
Rx.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.XB(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Rx.prototype.computeStyle_=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Rx.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Rx.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.A("design:type",String)],Rx.prototype,"rendererStyle",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Rx.prototype,"adaptiveFullWidth",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Rx.prototype,"modernButtons",void 0);_.W([_.M(),_.A("design:type",Object)],Rx.prototype,"buttonOverrides",void 0);_.W([_.I6({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Rx);
_.a(Rx,"yt-copy-link-renderer",function(){if(pef===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ndn===void 0&&(ndn=document.createElement("template"));var F=ndn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);pef=I}I=pef;return I},{mode:2});_.bO("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Oh=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return I};
_.E(Oh,_.k);_.L=Oh.prototype;_.L.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.L.attached=function(){this.keyboardFocused=!1};
_.L.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var I=_.nR().resolve(_.fR(_.Q3));I&&(this.keyboardFocused=I.isKeyBoardInUse())}};
_.L.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.L.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}};
_.L.onChange_=function(){if(this.data){var I=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;I&&this.ytComponentBehavior.resolveCommand(I);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.L.handleUpdateToggleAction_=function(I){(I=_.u(I,yKe))&&this.data&&I.targetId==this.data.targetId&&this.set("data.toggled",I.toggled)};
_.L.toBoolean_=function(I){return!!I};
_.L.reset=function(){};
_.L.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("data-changed",this.data))};
_.L.updateDataToggledFromBinding=function(I){this.set("data.toggled",I.detail.value)};
Oh.prototype.dataChangedForBinding=Oh.prototype.dataChangedForBinding;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Oh.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Oh.prototype,"data",void 0);_.W([_.M({computed:"computeDescription_(data.*)"}),_.A("design:type",Object)],Oh.prototype,"description_",void 0);_.W([_.M({value:function(){return!!_.nR().resolve(_.fR(_.Q3))&&_.l("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],Oh.prototype,"useKeyboardFocused",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oh.prototype,"keyboardFocused",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oh.prototype,"dataChangedForBinding",null);_.W([_.I6({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Oh);
_.a(Oh,"yt-toggle-form-field-renderer",function(){if(fGM===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Yaf===void 0&&(Yaf=document.createElement("template"));var F=Yaf;D.call(y,F.content.cloneNode(!0),I.content.firstChild);fGM=I}I=fGM;return I},{mode:2});var mBa;var MOz;var Lq=function(){var I=_.k.apply(this,arguments)||this;I.isDarkTheme=!1;I.isSearch=!1;I.noTopMargin=_.l("kevlar_watch_no_top_margin");I.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 I};
_.E(Lq,_.k);_.L=Lq.prototype;_.L.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}}}}}};
_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.L.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.L.dataChanged=function(){var I=this.getSelectedIndex();if(I>0)this.selected=I;else{this.selected=0;var y,D;(y=this.ytScrollableChipCloudBehavior)==null||(D=y.reset)==null||D.call(y)}};
_.L.getSelectedIndex=function(){var I;if((I=this.data)==null||!I.chips)return-1;I=-1;for(var y,D=0;D<((y=this.data)==null?void 0:y.chips.length);D++){var F=void 0,R=void 0;if((F=this.data)==null?0:(R=F.chips[D].chipCloudChipRenderer)==null?0:R.isSelected){I=D;break}}return I};
_.L.onResize=function(){var I=this.ytScrollableChipCloudBehavior;_.YC(I,I.setContainerWidthDiff);I=this.ytScrollableChipCloudBehavior;_.YC(I,I.setButtonsState)};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.handleRelatedChipCommand=function(I,y){I=this.JSC$16871_chipsSelector.indexOf(y);I!==-1&&this.JSC$16871_chipsSelector.selectIndex(I)};
_.L.handleChipCloudChipSelectAction=function(I){I=this.JSC$16871_chipsSelector.indexOf(I);I>-1&&this.JSC$16871_chipsSelector.selectIndex(I)};
_.L.handleChipCloudChipDeselectAction=function(){var I=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16871_chipsSelector&&((I==null?0:I.continuationCommand)?_.E$(this.hostElement,[I]):(I==null?0:I.searchEndpoint)?this.ytComponentBehavior.resolveCommand(I):I&&_.GC(this.hostElement,[I],this.hostElement),this.JSC$16871_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.L.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
Lq.prototype.onResize=Lq.prototype.onResize;Lq.prototype.dataChanged=Lq.prototype.dataChanged;Lq.prototype.isSearchChanged=Lq.prototype.isSearchChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Lq.prototype,"actionHandlerBehavior",void 0);
_.W([_.Q(_.sD),_.A("design:type",Object)],Lq.prototype,"ironResizableBehavior",void 0);_.W([_.Q(),_.A("design:type",WJ)],Lq.prototype,"ytScrollableChipCloudBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Lq.prototype,"data",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],Lq.prototype,"selected",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lq.prototype,"isDarkTheme",void 0);_.W([_.M({value:160}),_.A("design:type",Number)],Lq.prototype,"scrollDistance",void 0);_.W([_.M(),_.A("design:type",Object)],Lq.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Lq.prototype,"noTopMargin",void 0);_.W([_.a0("#chips"),_.A("design:type",Object)],Lq.prototype,"JSC$16871_chipsSelector",void 0);
_.W([_.ke("isSearch"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lq.prototype,"isSearchChanged",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lq.prototype,"dataChanged",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lq.prototype,"onResize",null);_.W([_.I6({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Lq);
_.a(Lq,"yt-chip-cloud-renderer",function(){if(MOz===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;mBa===void 0&&(mBa=document.createElement("template"));var F=mBa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);MOz=I}I=MOz;return I},{mode:2});var z$M,kyf=function(){return z$M!==void 0?z$M:z$M=document.createElement("template")};
document.head.appendChild(kyf().content);var dBW;var aGR=document.head,c1e=aGR.appendChild,WIn;if(dBW===void 0){var CJM=document.createElement("template");_.G(CJM,"");CJM.content.insertBefore(kyf().content.cloneNode(!0),CJM.content.firstChild);dBW=CJM}WIn=dBW;c1e.call(aGR,WIn.content);var B$u=_.d(function(I){var y=I.data;return _.t("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.t("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.t("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.t(_.U,{cond:function(){return _.OA(y().image)},
then:function(D){return _.t("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.t(_.UE,{data:D,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.t("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.t(_.jr,{text:function(){return y().subtitle}})))),_.t(_.U,{cond:function(){var D;
return(D=y())==null?void 0:D.hasBottomDivider},
then:function(){return _.t("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"td");var ilM=_.d(function(I){var y=I.data;return _.t("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.t(_.aP,{data:function(){var D;return(D=y().offerPlanDetailsItem)!=null?D:[]}},{offerPlanDetailsItemViewModel:function(D){return _.t("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.t(B$u,{data:D.data}))}})),_.t("div",null,_.t(_.U,{cond:function(){return y().hasBottomDivider},
then:function(){return _.t("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.t("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.t("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.t("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"ud");var A1R=_.d(function(I){var y=I.data;I=_.J(_.$M(!1,void 0,"MrXxy"));var D=I.next().value,F=I.next().value,R=_.YY(function(){F(!D());return!1}),O=function(){var w;
return(w=y().offerPlanDetailsContainer)!=null?w:[]};
return _.t("lp-complex-offer-card-details-view-model",null,_.t("div",null,_.t(_.U,{cond:function(){return D()},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.t("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":R,"aria-expanded":D},_.t(_.jr,{text:function(){return y().expandedTitle}})),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.t(_.aP,{data:O},{offerPlanDetailsContainerViewModel:function(w){return _.t("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.t(ilM,{data:w.data}))}})),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.t(_.jr,{text:function(){return y().legalText}})))},
else:function(){return _.t("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":R,"aria-expanded":D},_.t(_.jr,{text:function(){return y().collapsedTitle}}),_.t("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.t(_.mj,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"vd");var $BM=_.d(function(I){var y=I.data;return _.t("lp-complex-offer-card-option-view-model",null,_.t("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.t(_.U,{cond:function(){return y().topDividerText},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.t("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.t("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.t("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.t(_.jr,{text:function(){return y().topDividerText}}))))}}),_.t(_.U,{cond:function(){return y().description},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.t(_.jr,{text:function(){return y().description}}))}}),_.t(_.U,{cond:function(){return y().planPricingPrimary},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.t(_.jr,{text:function(){return y().planPricingPrimary}}))}}),_.t(_.U,{cond:function(){return y().planPricingSecondary},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.t(_.jr,{text:function(){return y().planPricingSecondary}}))}}),_.t(_.U,{cond:function(){return y().primaryButton},
then:function(){return _.t("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.t(_.aP,{data:function(){return y().primaryButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"wd");var blG=_.d(function(I){var y=I.data;var D=function(){var O;return((O=y())==null?void 0:O.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
I={};var F={},R={};return _.t("ytm-lp-complex-offer-card-view-model",null,_.t("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.t("div",{class:_.XH((I.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=D,I),"ytmLpComplexOfferCardViewModelCardContainer")},_.t(_.U,{cond:function(){var O;return(O=y())==null?void 0:O.bannerText},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.t("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.t(_.jr,{text:function(){return y().bannerText}})))}}),_.t(_.U,{cond:function(){return _.OA(y().logo)},
then:function(O){var w={};return _.t("div",{class:_.XH((w.ytmLpComplexOfferCardViewModelLogoAlignLeft=D,w),"ytmLpComplexOfferCardViewModelLogo")},_.t(_.UE,{data:O,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.t("div",{class:_.XH((F.ytmLpComplexOfferCardViewModelTitleAlignLeft=D,F),"ytmLpComplexOfferCardViewModelTitle")},_.t(_.jr,{text:function(){return y().title}})),_.t(_.U,{cond:function(){var O;
return(O=y())==null?void 0:O.subtitle},
then:function(){var O={};return _.t("div",{class:_.XH((O.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=D,O),"ytmLpComplexOfferCardViewModelSubtitle")},_.t(_.jr,{text:function(){return y().subtitle}}))}}),_.t(_.U,{cond:function(){return y().planPricingPrimary},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.t(_.jr,{text:function(){return y().planPricingPrimary}}))}}),_.t(_.U,{cond:function(){return y().planPricingSecondary},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.t(_.jr,{text:function(){return y().planPricingSecondary}}))}}),_.t(_.U,{cond:function(){return y().purchaseButton},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.t(_.aP,{data:function(){return y().purchaseButton}},{buttonViewModel:function(O){return _.t(_.My,{data:O.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.t(_.U,{cond:function(){var O;
return(O=y())==null?void 0:O.offerOptions},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.t(_.aP,{data:function(){return y().offerOptions}},{lpComplexOfferCardOptionViewModel:$BM}))}}),_.t("div",{class:_.XH((R.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=D,R),"ytmLpComplexOfferCardViewModelLegalText")},_.t(_.jr,{text:function(){return y().legalText}})),_.t(_.U,{cond:function(){var O;
return(O=y())==null?void 0:O.offerCardDetails},
then:function(){return _.t("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.t(_.aP,{data:function(){return y().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:A1R}))}}))))},"xd");var Hle=_.d(function(I){var y=I.data;var D=function(){var w;return((w=y())==null?void 0:w.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
I={};var F={},R={},O={};return _.t("ytm-lp-complex-offer-card-section-view-model",null,_.t("div",{class:_.XH("ytmLpComplexOfferCardSectionViewModelHost")},_.t("div",{class:_.XH((I.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=D,I),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.t("div",{class:_.XH((F.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=D,F),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.t("h2",{class:_.XH((R.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
D,R),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.t(_.jr,{text:function(){return y().title}}))),_.t(_.U,{cond:function(){var w;
return(w=y())==null?void 0:w.subtitle},
then:function(){var w={},v={};return _.t("div",{class:_.XH((w.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=D,w),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.t("div",{class:_.XH((v.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=D,v),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.t(_.jr,{text:function(){return y().subtitle}})))}}),_.t("div",{class:_.XH((O.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=D,O),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.t(_.aP,{data:function(){var w;
return(w=y().offerPlans)!=null?w:[]}},{lpComplexOfferCardViewModel:function(w){return _.t("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.t(blG,{data:w.data}))}})))))},"yd");var e$u=_.d(function(I){return _.t("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.t("div",{class:"ytLpCouponBannerViewModelIcon"},_.t(_.mj,{icon:function(){return"price_tag"}})),_.t("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.t("div",{class:"ytLpCouponBannerViewModelContent"},_.t("div",{class:"ytLpCouponBannerViewModelHeading"},_.t(_.jr,{text:function(){var y;
return(y=I.data())==null?void 0:y.title}})),_.t("div",{class:"ytLpCouponBannerViewModelBody"},_.t(_.jr,{text:function(){var y;
return(y=I.data())==null?void 0:y.subtitle}})))))},"zd");
e$u.idomCompat=!0;_.JH=$Qu.getInstance();var T$a;T$a=_.d(function(I){return _.t("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":I.shouldAriaHideContent},_.t("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:I.questionId},_.t(_.jr,{text:I.question})))},"Ad");
_.sNG=_.d(function(I){var y=I.data;var D=I.themeOverride;I=_.J(_.$M(!1,void 0,"pNli2b"));var F=I.next().value,R=I.next().value;I=_.YY(function(){R(!F());return!1});
var O=function(){return F()?"EXPAND_LESS":"EXPAND_MORE"},w=("faq-container"+_.Fi(_.JH)).toString(),v="faq-question-and-answers-section-question"+_.Fi(_.JH),P={},K={};
return _.t("faq-entry-view-model",null,_.t("div",{class:_.XH("ytLpFaqEntryViewModelHost",(P.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return D==null?void 0:D().useDarkTheme},P))},_.t("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":I,role:"button","aria-expanded":F,"aria-labelledby":v.toString(),"tab-index":"0"},_.t(T$a,{question:function(){return y().question},
questionId:v,shouldAriaHideContent:!0}),_.t(_.U,{cond:function(){return F()!==void 0},
then:function(){return _.t("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.t(_.mj,{icon:O,ariaHidden:!0}),_.t("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.t("div",{class:_.XH("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(K.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!F()},K))},_.t("div",{id:w},_.t(_.gZ,{each:function(){return y().answers||[]}},function(r){return _.t("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.t(_.jr,
{text:r}))})))))},"Bd");
_.sNG.idomCompat=!0;var VOc=_.d(function(I){var y=I.data;var D=I.themeOverride;I={};return _.t("lp-faq-section-view-model",null,_.t("div",{class:_.XH("yt-lp-faq-section-view-model",(I["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},I["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(D==null||!D().useDarkTheme)},I))},_.t("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.t(_.U,{cond:function(){return y().header},
then:function(F){return _.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.t(_.jr,{text:F}))}}),_.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.t(_.aP,{data:function(){return y().faqs}},{faqEntryViewModel:function(F){return _.t(_.sNG,{data:F.data,
themeOverride:D})}})),_.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.t(_.gZ,{each:function(){return y().footers||[]}},function(F){return _.t(_.jr,{text:F})})),_.t(_.U,{cond:function(){return y().legal},
then:function(F){return _.t("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.t(_.jr,{text:F}))}}))))},"Cd");
VOc.idomCompat=!0;var ZlM=_.d(function(I){var y=I.data;var D=I.themeOverride;_.LR(function(){var w=y().gtmId;w&&_.V8(w,_.Pi("GL",""))});
var F={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var w,v,P;return(P=(w=y().logo)==null?void 0:(v=w.accessibilityData)==null?void 0:v.label)!=null?P:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},R=_.nR().resolve(_.fR(_.cS)),O=function(){return R&&R()||(D==null?void 0:D().useDarkTheme)};
return _.t("lp-header-section-view-model",null,_.t("div",{class:function(){var w=y().layoutType,v=y().marginType==="LP_SECTION_MARGIN_TYPE_TOP",P=D==null?void 0:D().useDarkTheme,K=["lp-header-section-view-model"];switch(w){case "LP_MODULE_LAYOUT_TYPE_PTC":K.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":K.push("lp-header-section-view-model--narrow-header-layout-type")}v&&K.push("lp-header-section-view-model__lp-header-section-margin");P&&K.push("lp-header-section-view-model--premium-force-dark-mode");
return K.join(" ")}},_.t(_.U,{cond:function(){return y().logo},
then:function(){return _.t("div",null,_.t(_.U,{cond:O,then:function(){return _.t(_.U,{cond:function(){var w;return(w=y().logo)==null?void 0:w.imageDark},
then:function(w){return _.t(_.UE,Object.assign({},{data:w},F))}})},
else:function(){return _.t(_.U,{cond:function(){var w;return(w=y().logo)==null?void 0:w.imageLight},
then:function(w){return _.t(_.UE,Object.assign({},{data:w},F))}})}}))}}),_.t(_.U,{cond:function(){return y().title},
then:function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-title"},_.t(_.jr,{text:w}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.t(_.U,{cond:function(){return y().subtitles},
then:function(w){return _.t(_.gZ,{each:w},function(v){return _.t("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.t(_.jr,{text:v}))})}})),_.t(_.U,{cond:function(){return y().additionalInfo},
then:function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.t(_.jr,{text:w}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.t(_.U,{cond:function(){return y().primaryButton},
then:function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.t(_.aP,{data:w},{buttonViewModel:_.My}))}}),_.t(_.U,{cond:function(){return y().secondaryButton},
then:function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.t(_.aP,{data:w},{buttonViewModel:_.My}))}})),_.t(_.U,{cond:function(){return y().otherOffersInfo},
then:function(w){return _.t("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.t(_.jr,{text:w}))}}),_.t("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.t(_.U,{cond:function(){return y().billingInfo},
then:function(w){return _.t(_.gZ,{each:w},function(v){return _.t("div",null,_.t(_.jr,{text:v}))})}}))))},"Dd");
ZlM.idomCompat=!0;var gd_=_.d(function(I){return _.t("lp-header-upsell-banner-view-model",{class:_.XH("lpHeaderUpsellBannerViewModelHost",I.className,{})},_.t("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.t(_.mj,{icon:function(){return"CAMPAIGN"}})),_.t("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.t("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.t("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.t("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.t(_.jr,{text:function(){var y;
return(y=I.data())==null?void 0:y.description}})))),_.t(_.aP,{data:function(){var y;
return(y=I.data())==null?void 0:y.purchaseButton}},{buttonViewModel:function(y){return _.t(_.My,{data:y.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Ed");var IYM=_.d(function(I){var y=I.data;var D=_.jE(I.themeOverride,{useDarkTheme:!1});I={};I=_.XH("ytmLpHeadlineSectionViewModelHost",(I.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return D().useDarkTheme},I));
return _.t("lp-headline-section-view-model",null,_.t("div",{class:I},_.t(_.U,{cond:function(){return y().title},
then:function(F){return _.t("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.t(_.jr,{text:F}))}}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(F){return _.t("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.t(_.jr,{text:F}))}})))},"Fd");var yyu=_.d(function(I){var y=I.data;var D=I.themeOverride;var F=_.nR().resolve(_.fR(_.cS)),R=function(){return F&&F()||(D==null?void 0:D().useDarkTheme)},O=function(){var K,r;
var N=R()?(K=y().textBackgroundImage)==null?void 0:K.imageDark:(r=y().textBackgroundImage)==null?void 0:r.imageLight;return cXo((N==null?void 0:N.sources)||[])},w=function(){var K,r;
return R()?(K=y().featureImage)==null?void 0:K.imageDark:(r=y().featureImage)==null?void 0:r.imageLight},v=function(){return y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},P=function(){var K,r;
return R()?(K=y().logo)==null?void 0:K.imageDark:(r=y().logo)==null?void 0:r.imageLight};
return _.t("ytm-lp-large-feature-section-view-model",null,_.t("div",{class:function(){var K=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",r=y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",N=(y().index||0)%2===1,h=D==null?void 0:D().useDarkTheme,x=["yt-lp-large-feature-section-view-model"];K?x.push("yt-lp-large-feature-section-view-model--music-feature-type"):r?x.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):N||x.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
h&&x.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return x.join(" ")}},_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.t(_.U,{cond:w,
then:function(){return _.t(_.UE,{data:function(){return w()},
alt:function(){var K,r,N;return(N=(K=y().featureImage)==null?void 0:(r=K.accessibilityData)==null?void 0:r.label)!=null?N:""},
contentMode:v})}})),_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var K;return((K=O())==null?0:K.url)?"background-image: url("+_.VA(O().url)+");":""}},_.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.t(_.U,{cond:P,
then:function(){return _.t(_.UE,{data:function(){return P()},
alt:function(){var K,r,N;return(N=(K=y().logo)==null?void 0:(r=K.accessibilityData)==null?void 0:r.label)!=null?N:""},
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"})}}),_.t(_.U,{cond:function(){return y().eyebrowText},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.t(_.jr,{text:function(){return y().eyebrowText}}))}}),_.t(_.U,{cond:function(){return y().title},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.t(_.jr,{text:function(){return y().title}}))}}),_.t(_.U,{cond:function(){return y().subtitles},
then:function(){return _.t("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.t(_.gZ,{each:function(){return y().subtitles||[]}},function(K){return _.t(_.jr,{text:K})}))}})))))},"Gd");
yyu.idomCompat=!0;var Dea=_.d(function(I){return _.t("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.t("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.t(_.mj,{icon:function(){var y;return(y=I.data())==null?void 0:y.iconType},
className:function(){var y;switch((y=I.data())==null?void 0:y.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 y;return((y=I.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.t("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.t(_.jr,{text:function(){var y;
return(y=I.data())==null?void 0:y.text},
className:function(){var y;return((y=I.data())==null?void 0:y.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Hd");var Flu=_.d(function(I){I=_.o6(I,{config:void 0,themeOverride:void 0});var y=I.data,D=I.config,F=I.themeOverride;I={};I=_.XH("ytmLpOfferCardOptionViewModelHost",(I.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var v;return(v=F())==null?void 0:v.useDarkTheme},I));
var R=_.YY(function(){var v,P;(v=D())==null||(P=v.handleRadioButtonClick)==null||P.call(v,y());return!1}),O=function(){var v;
return(v=D())==null?void 0:v.shouldDisplayRadioButton},w=function(){var v;
return(v=y().featureListItems)!=null?v:[]};
return _.t("ytm-lp-offer-card-option-view-model",null,_.t("div",{class:I,"on:click":_.YY(function(){if(O()){var v,P;(v=D())==null||(P=v.handleRadioButtonClick)==null||P.call(v,y())}return!1})},_.t(_.U,{cond:O,
then:function(){return _.t("div",null,_.t("input",{type:"radio","on:click":R,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var v;return!((v=D())==null||!v.isOptionSelected)}}))}}),_.t("div",null,_.t("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.t(_.jr,{text:function(){return y().eyebrowText}})),_.t("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.t(_.jr,
{text:function(){return y().subtitle}})),_.t(_.U,{cond:function(){return w().length>0},
then:function(){return _.t("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.t(_.aP,{data:w},{lpFeatureListItemViewModel:Dea}))}}),_.t("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.t(_.jr,{text:function(){return y().description}})))))},"Id");
Flu.idomCompat=!0;var R8e=_.d(function(I){var y=I.data;var D=I.themeOverride;I=_.J(_.N4(function(){var O,w=(O=y().offerOptions)==null?void 0:O[0];return _.u(w,VrM)||{}}));
var F=I.next().value,R=I.next().value;I={};return _.t("ytm-lp-offer-card-view-model",null,_.t("div",{class:_.XH("ytmLpOfferCardViewModelHost",(I.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(D==null||!D().useDarkTheme)},I))},_.t("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.t(_.U,{cond:function(){return y().titleIconType},
then:function(){return _.t("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.t(_.mj,{icon:function(){var O;return((O=y().titleIconType)==null?void 0:O.toString())||""}}))}}),_.t("div",{class:"ytmLpOfferCardViewModelTitleText"},_.t(_.jr,{text:function(){return y().title}})),_.t(_.aP,{data:function(){return y().titleBadge}},{badgeViewModel:function(O){return _.t("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.t(_.q1,{data:O.data}))}})),_.t("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.t(_.aP,{data:function(){return y().offerOptions}},{lpOfferCardOptionViewModel:function(O){var w=O.data;
return _.t(_.ni,null,_.t("div",{class:"ytmLpOfferCardViewModelDivider"}),_.t(Flu,{data:w,config:function(){var v;return{shouldDisplayRadioButton:(y().offerOptions||[]).length>1,isOptionSelected:w().id===((v=F())==null?void 0:v.id),handleRadioButtonClick:function(P){return void R(P)}}},
themeOverride:D}))}})),_.t("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.t(_.aP,{data:function(){var O;
return(O=F())==null?void 0:O.purchaseButtonOverride}},{buttonViewModel:_.My}))))},"Jd");
R8e.idomCompat=!0;var OmP=_.d(function(I){var y=I.data;var D=I.themeOverride;I={};I=_.XH("ytmLpOfferCardSectionViewModelHost",(I.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var F;return D==null?void 0:(F=D())==null?void 0:F.useDarkTheme},I));
return _.t("ytm-lp-offer-card-section-view-model",null,_.t("div",{class:I},_.t(_.U,{cond:function(){return y().title!==void 0},
then:function(){return _.t("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.t("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.t(_.jr,{text:function(){return y().title}})),_.t(_.U,{cond:function(){return y().subtitle},
then:function(){return _.t("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.t(_.jr,{text:function(){return y().subtitle}}))}}))}}),_.t("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.t(_.aP,{data:function(){return y().offerCards}},{lpOfferCardViewModel:function(F){return _.t("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.t(R8e,{data:F.data,
themeOverride:D}))}})),_.t(_.U,{cond:function(){return y().footer},
then:function(){return _.t("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.t(_.jr,{text:function(){return y().footer}}))}})))},"Kd");var LlP=_.d(function(I){var y=I.data;return _.t("lp-offer-table-cell-content-view-model",null,_.t("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.t(_.I8,null,_.t(_.Vj,{when:function(){return y().title}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return y().title}})}),_.t(_.Vj,{when:function(){return y().subTitle}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return y().subTitle}})}),_.t(_.Vj,{when:function(){return y().featureDescription}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return y().featureDescription}})}),_.t(_.Vj,{when:function(){return y().description}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return y().description}})}),_.t(_.Vj,{when:function(){return y().iconType}},function(){return _.t("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.t(_.mj,{icon:function(){return y().iconType.toString()}}))}),_.t(_.Vj,{when:function(){return y().purchaseButton}},function(){return _.t(_.aP,{data:function(){return y().purchaseButton}},{buttonViewModel:function(D){return _.t("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.t(_.My,
{data:D.data}))}})}),_.t(_.Vj,{when:function(){return y().note}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return y().note}})}),_.t(_.Vj,{when:function(){return y().featureDetail}},function(){return _.t(_.jr,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return y().featureDetail}})}),_.t(_.Vj,{when:function(){return y().badge}},function(){return _.t(_.aP,{data:function(){return y().badge}},{badgeViewModel:_.q1})}))))},"Ld");
LlP.idomCompat=!0;var Jyz=_.d(function(I){var y=I.data;return _.t("lp-offer-table-cell-view-model",null,_.t("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(y().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;"}}},_.t(_.aP,{data:function(){return y().contents}},{lpOfferTableCellContentViewModel:LlP})))},
"Md");
Jyz.idomCompat=!0;var whf=_.d(function(I){var y=I.data;var D=I.lpTableIsFirstRow;var F=I.lpTableIsLastRow;var R=function(){return(D==null?0:D())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},O=function(){return(D==null?0:D())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(F==null?0:F())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.t("ytm-lp-offer-table-row-view-model",null,_.t("div",{class:"ytLpOfferTableRowViewModelHost"},_.t(_.aP,{data:function(){return y().rowHeaderCell}},{lpOfferTableCellViewModel:function(w){return _.t("div",{class:R},_.t(Jyz,{data:w.data}))}}),_.t(_.aP,{data:function(){return y().contentCells}},{lpOfferTableCellViewModel:function(w){return _.t("div",{class:O},_.t(Jyz,{data:w.data}))}})))},"Nd");
whf.idomCompat=!0;var vGf=_.d(function(I){var y=I.data;var D=I.themeOverride;var F=_.nR().resolve(_.fR(_.cS)),R=function(){return _.u(y().logo,hGO)||{}};
I={};return _.t("ytm-lp-offer-table-section-view-model",null,_.t("div",{class:"ytLpOfferTableViewModelHost"},_.t(_.U,{cond:function(){var O,w;return F&&F()||(D==null?0:D().useDarkTheme)?(O=R())==null?void 0:O.imageDark:(w=R())==null?void 0:w.imageLight},
then:function(O){return _.t(_.UE,{data:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var w,v,P;return(P=(w=R())==null?void 0:(v=w.accessibilityData)==null?void 0:v.label)!=null?P:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.t(_.jr,{text:function(){return y().subtitle}})),_.t(_.U,{cond:function(){return y().disclaimers},
then:function(O){return _.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.t(_.gZ,{each:O},function(w){return _.t("div",null,_.t(_.jr,{text:w}))}))}}),_.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.t(_.aP,{data:function(){return y().rows}},{lpOfferTableRowViewModel:function(O,w){return _.t(whf,{data:O.data,
lpTableIsFirstRow:function(){return w()===0},
lpTableIsLastRow:function(){return w()===y().rows.length-1}})}})),_.t("div",{class:_.XH((I.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return y().hasFooterBackground},I))},_.t(_.U,{cond:function(){return y().footer},
then:function(){return _.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.t(_.jr,{text:function(){return y().footer}}))}}),_.t(_.U,{cond:function(){return y().footerTitle},
then:function(){return _.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.t(_.jr,{text:function(){return y().footerTitle}}))}}),_.t(_.U,{cond:function(){return y().footerDescription},
then:function(){return _.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.t(_.jr,{text:function(){return y().footerDescription}}))}}),_.t(_.U,{cond:function(){return y().footerDescriptions},
then:function(O){return _.t("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.t(_.gZ,{each:O},function(w){return _.t("div",null,_.t(_.jr,{text:w}))}))}}))))},"Od");
vGf.idomCompat=!0;var SXO=_.d(function(I){var y=I.data;var D=I.themeOverride;var F=_.nR().resolve(_.fR(_.cS)),R=function(){var v;return D==null?void 0:(v=D())==null?void 0:v.useDarkTheme},O=function(){var v,P;
return F&&F()||R()?(v=y().image)==null?void 0:v.imageDark:(P=y().image)==null?void 0:P.imageLight};
I={};I=_.XH("ytmLpSmallFeatureSectionViewModelHost",(I.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=R,I));var w=function(){var v,P,K;return(K=(v=y().image)==null?void 0:(P=v.accessibilityData)==null?void 0:P.label)!=null?K:""};
return _.t("ytm-lp-small-feature-section-view-model",{class:I},_.t(_.U,{cond:function(){return O()&&!aKW},
then:function(){return _.t("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.t(_.UE,{data:function(){return O()},
alt:w,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.t("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.t("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.t(_.U,{cond:function(){return y().title},
then:function(v){return _.t(_.jr,{text:v})}})),_.t("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.t(_.jr,{text:function(){return y().description}}))))},"Pd");
SXO.idomCompat=!0;var tyP=_.d(function(I){var y=I.data;var D=I.themeOverride;I={};return _.t("ytm-lp-small-feature-section-group-view-model",null,_.t("div",{class:_.XH("ytmLpSmallFeatureSectionGroupViewModelHost",(I.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(D==null||!D().useDarkTheme)},I))},_.t("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.t(_.aP,{data:function(){return y().smallFeatures}},{lpSmallFeatureSectionViewModel:function(F){return _.t("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.t(SXO,{data:F.data,
themeOverride:D}))}}))))},"Qd");
tyP.idomCompat=!0;_.NK(_.d(function(I){var y=I.data;var D=function(){return y().forcedTheme==="USER_INTERFACE_THEME_DARK"},F=function(){return y().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},R=function(){var w="",v,P;
var K=_.nR().resolve(_.fR(_.cS));K=D()||(K==null?0:K())?(v=y().themedImageViewModel)==null?void 0:v.imageDark:(P=y().themedImageViewModel)==null?void 0:P.imageLight;(v=cXo((K==null?void 0:K.sources)||[]))&&v.url&&(w=F()?"background-image: linear-gradient(to bottom, transparent, "+(y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.VA(v.url)+");":"background-image: url("+_.VA(v.url)+");");return w},O=function(){return{useDarkTheme:D()}};
I={};return _.t("yt-section-group-view-model",null,_.t("div",{class:_.XH("yt-lp-section-group-view-model",(I["yt-lp-section-group-view-model--premium-force-dark-mode"]=D,I["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},I))},_.t(_.U,{cond:function(){return R().length},
then:function(){var w={};return _.t("div",{class:_.XH("yt-lp-section-group-view-model__bg-image",(w["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=F,w)),style:R})}}),_.t("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.t(_.aP,{data:function(){return y().sections}},{lpHeaderUpsellBannerViewModel:function(w){return _.t(gd_,{data:w.data})},
lpFaqSectionViewModel:function(w){return _.t(VOc,{data:w.data,themeOverride:O})},
lpHeaderSectionViewModel:function(w){return _.t(ZlM,{data:w.data,themeOverride:O})},
lpHeadlineSectionViewModel:function(w){return _.t(IYM,{data:w.data,themeOverride:O})},
lpLargeFeatureSectionViewModel:function(w){return _.t(yyu,{data:w.data,themeOverride:O})},
lpOfferCardSectionViewModel:function(w){return _.t(OmP,{data:w.data,themeOverride:O})},
lpComplexOfferCardSectionViewModel:function(w){return _.t(Hle,{data:w.data})},
lpOfferTableSectionViewModel:function(w){return _.t(vGf,{data:w.data,themeOverride:O})},
lpSmallFeatureSectionGroupViewModel:function(w){return _.t(tyP,{data:w.data,themeOverride:O})},
lpCouponBannerViewModel:function(w){return _.t(e$u,{data:w.data})}}))))},"Rd"),"yt-section-group-view-model",{props:{data:_.om}});_.PUM=_.d(function(I){var y=_.zj(V_A,function(){var w;return(w=I.data())==null?void 0:w.chipBarStateEntityKey}),D=function(){return I.data().disableDeselection},F=_.J(_.N4(function(){var w;
if(((w=y())==null?void 0:w.selectedIndex)!=void 0)return y().selectedIndex;var v,P;w=_.J(((v=I.data())==null?void 0:(P=v.chips)==null?void 0:P.entries())||[]);for(v=w.next();!v.done;v=w.next()){v=_.J(v.value);P=v.next().value;v=v.next().value;var K=void 0;if((K=_.u(v,_.UZ))==null?0:K.selected)return P}return-1})),R=F.next().value,O=F.next().value;
return _.t("chip-bar-view-model",{class:_.XH("ytChipBarViewModelHost",I.className),role:"tablist"},_.t(_.aP,{data:function(){return I.data().chips}},{chipViewModel:function(w,v){return _.t("div",{class:"ytChipBarViewModelChipWrapper"},_.t(_.kDz,{data:w.data,
selected:function(){return v()===R()},
callback:function(P,K){P=!!K;K=v();O(P?K:-1);var r,N=(r=I.data())==null?void 0:r.chipBarStateEntityKey;N&&P&&_.ry(_.WS("chipBarStateEntity",N,{key:N,selectedIndex:K}))},
disableDeselection:I.disableDeselection||D}))}}))},"Sd");_.NK(_.PUM,"chip-bar-view-model",{props:{data:_.rV,className:_.rV,disableDeselection:_.rV}});_.KlM=_.d(function(I){var y=I.data;I={};return _.t("divider-view-model",{class:_.XH("dividerViewModelHost",(I.dividerViewModelInsetThinPadding=function(){return y().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},I))},_.t("div",{class:_.XH("dividerViewModelBaseDivider",function(){return ZUq(y().dividerStyle)})}))},"Td");
_.KlM.idomCompat=!0;_.NK(_.KlM,"divider-view-model",{props:{data:_.om}});var kw=new Map,dv=new Map,ynq=0,ak;var JnJ=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],SLB={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Ueg,rye;Ueg=function(I){return function(y){return function(){return(y==null?void 0:y())!==void 0?String(y())+I:void 0}}};
_.w_=Ueg("px");rye=Ueg("s");var jsG=got(function(I){return I.targetGroupId}).useUpdatableData;_.v3=_.d(function(I){function y(L5){return function(){var vH=f().numItemsPerGridRow,u_=L5()*vH;vH=u_+vH;var jW,xA;return(xA=(jW=F().contents)==null?void 0:jW.slice(u_,vH))!=null?xA:[]}}
var D=_.o6(I,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),F=D.data,R=D.layoutContainerWidth,O=D.shouldUseOwnContainerSize,w=D.marginSettings,v=D.useUpdatedMargin,P=kZB(),K=_.J(jsG(function(){var L5,vH;return{targetGroupId:(L5=F().targetingContext)==null?void 0:(vH=L5.targetGroupId)==null?void 0:vH[0]}})).next().value;
D=_.J(_.$M(!0,void 0,"CC9Rdb"));var r=D.next().value,N=D.next().value,h=function(){var L5,vH=(L5=_.u(F().showMoreButton,_.Kb))==null?void 0:L5.trackingParams;vH&&_.Cb(_.W4(),vH);N(!1)},x=function(){var L5,vH=(L5=_.u(F().showLessButton,_.Kb))==null?void 0:L5.trackingParams;
vH&&_.Cb(_.W4(),vH);N(!0)};
D=_.J(_.c_({canHaveZeroSize:!1}));var q=D.next().value;D=D.next().value;var X=function(){var L5;return(L5=F().contentAspectRatio)!=null?L5:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},f=_.su(function(){var L5=O()&&q.width()>0?q.width()||R():R(),vH,u_=(vH=I.data())==null?void 0:vH.responsiveContainerConfiguration;
L5=_.FP({containerWidth:L5,sizing:u_?Rk(u_==null?void 0:u_.responsiveSize):"EXTRA_COMPACT",marginSettings:w(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L5.maxContainerWidth,numItemsPerGridRow:L5.numItems,contentPadding:O()?L5.margin:L5.contentMargin,itemWidth:L5.itemWidth,itemMargin:L5.gutter/2}},void 0,"YIvnde"),m=function(){if(F().enableVerticalExpansion){if(r())return z();
var L5,vH,u_=(vH=(L5=F().contents)==null?void 0:L5.length)!=null?vH:0;return Math.ceil(u_/f().numItemsPerGridRow)}return f().numItemsPerGridRow<=2?2:1},z=function(){var L5;
return Math.ceil(((L5=F().minCollapsedItemCount)!=null?L5:1)/f().numItemsPerGridRow)},B=function(){return F().enableVerticalExpansion&&F().showLessButton&&!r()&&m()>z()},C=function(){var L5,vH;
return F().enableVerticalExpansion&&F().showMoreButton&&r()&&((vH=(L5=F().contents)==null?void 0:L5.length)!=null?vH:0)>f().numItemsPerGridRow*z()},H=function(){return!B()},e=function(){return!C()},T={};
return _.t("grid-shelf-view-model",{class:_.XH("ytGridShelfViewModelHost",I.className,(T.ytGridShelfViewModelHostHasBottomButton=function(){return B()||C()},T.ytGridShelfViewModelHostIsDismissed=function(){var L5,vH=(L5=K())!=null?L5:{};
L5=vH.behavior;var u_=vH.isDismissed,jW=vH.stamperContextTargetId;vH=vH.stamperIndex;if(!(_.l("mweb_see_fewer_shorts_group_dismissal")&&u_&&L5&&jW))return!1;var xA;u_=P;for(var dq,$A,BH=((dq=u_)==null?0:dq.targetId)?_.Ki(($A=u_)==null?void 0:$A.targetId):void 0;((xA=u_)==null?0:xA.parent)&&BH!==jW;)u_=u_.parent,$A=dq=void 0,BH=((dq=u_)==null?0:dq.targetId)?_.Ki(($A=u_)==null?void 0:$A.targetId):void 0;xA=BH===jW?u_:void 0;if(!xA)return!1;var jf;jW=xA==null?void 0:(jf=xA.stamperIndex)==null?void 0:
jf.call(xA);return L5==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||L5==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&jW!=null&&vH!=null&&jW>vH},T.ytGridShelfViewModelHostOptionalMediumLayoutMargin=v,T)),
el:_.K4(D),style:_.p4({"margin-left":(0,_.w_)(function(){return f().contentPadding}),
"margin-right":(0,_.w_)(function(){return f().contentPadding})})},_.t(_.U,{cond:function(){return _.u(F().header,G$g)},
then:function(L5){return _.t(_.BA,{data:L5,useUpdatedPadding:v,disableHorizontalPadding:!0})}}),_.t("div",null,_.t(_.gZ,{each:function(){return Array(m())}},function(L5,vH){return _.t(oGO,{className:I.className,
items:y(vH),responsiveGridShelfLayout:f,contentAspectRatio:X})})),_.t("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.t(_.aP,{data:function(){return F().showMoreButton}},{buttonViewModel:function(L5){return _.t("div",{hidden:e},_.t(_.My,{data:L5.data,
onClick:h}))}}),_.t(_.aP,{data:function(){return F().showLessButton}},{buttonViewModel:function(L5){return _.t("div",{hidden:H},_.t(_.My,{data:L5.data,
onClick:x}))}})))},"Vd");
_.v3.idomCompat=!0;var oGO=_.d(function(I){var y=I.items;var D=I.responsiveGridShelfLayout;var F=I.contentAspectRatio;I=I.className;var R=(0,_.w_)(function(){return-D().itemMargin});
return _.t("div",{el:_.K4(IlB(function(O){a:{for(var w=y(),v=[],P=0;P<w.length;P++){var K=_.u(w[P],Fkg);if(!K||K==null||!K.inlinePlayerData){O=null;break a}var r=O.children.item(P);if(!r){O=null;break a}v.push({thumbnailElement:r,videoData:K})}O={gridVideoPreviewData:{gridItems:v}}}return O})),
class:_.XH("ytGridShelfViewModelGridShelfRow",I),style:_.p4({"margin-left":R,"margin-right":R})},_.t(_.aP,{data:y,replacementWrapper:function(O){return _.t(N8G,{responsiveGridShelfLayout:D},O)}},{shortsLockupViewModel:function(O){return _.t(N8G,{responsiveGridShelfLayout:D},_.t(c3W,{data:O.data,
aspectRatio:function(){return F()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.l("mweb_enable_one_line_title_on_shorts")?1:_.l("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(O){return _.t(N8G,{responsiveGridShelfLayout:D},_.t(_.W7,{data:O.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Wd"),N8G=_.d(function(I){return _.t("div",{style:_.p4({width:(0,_.w_)(function(){return I.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+I.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},I.children)},"Xd");
_.v3.idomCompat=!0;_.NK(_.v3,"grid-shelf-view-model",{props:{data:_.om,layoutContainerWidth:_.om,shouldUseOwnContainerSize:_.om,marginSettings:_.om,useUpdatedMargin:_.om,className:_.om}});_.h8n=_.d(function(I){var y=_.J(_.$M(!1,void 0,"FVl30c")),D=y.next().value,F=y.next().value;y={};return _.t("yt-alert-banner-view-model",{class:_.XH("ytAlertBannerViewModelHost",I.className,function(){var R;a:switch((R=I.data())==null?void 0:R.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":R="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":R="ytAlertBannerViewModelWarning";break a;default:R="ytAlertBannerViewModelInformational"}return R},(y.ytAlertBannerViewModelDismissed=
D,y.ytAlertBannerViewModelFullbleed=I.fullbleed,y.ytAlertBannerViewModelNarrow=I.narrow,y.ytAlertBannerViewModelIsInRichGrid=I.isInRichGrid,y))},_.t(_.U,{cond:function(){var R;
return!((R=I.data())==null?0:R.hideIcon)},
then:function(){return _.t("div",{class:"ytAlertBannerViewModelIcon"},_.t(_.mj,{icon:function(){return"info_circle"}}))}}),_.t("div",{class:"ytAlertBannerViewModelOuterContainer"},_.t("div",{class:"ytAlertBannerViewModelContainer"},_.t("div",{class:"ytAlertBannerViewModelContent"},_.t("div",{class:"ytAlertBannerViewModelHeading"},_.t(_.jr,{text:function(){var R;
return(R=I.data())==null?void 0:R.heading}})),_.t("div",{class:"ytAlertBannerViewModelBody"},_.t(_.jr,{text:function(){var R;
return(R=I.data())==null?void 0:R.body}})))),_.t(_.aP,{data:function(){var R;
return(R=I.data())==null?void 0:R.actionButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.t(_.aP,{data:function(){var R;
return(R=I.data())==null?void 0:R.dismissButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var O;((O=I.data())==null?0:O.disableLocalDismissBehavior)||F(!0)}})}}))},"Yd");_.NK(_.h8n,"yt-alert-banner-view-model",{props:{data:_.om,fullbleed:_.om,narrow:_.om,isInRichGrid:_.om,className:_.om}});var xec;_.Sc=_.d(function(I){return _.t("basic-content-view-model",{class:_.XH("ytBasicContentViewModelHost",_.jE(I.className))},_.t(_.U,{cond:function(){return I.data().headline},
then:function(y){return _.t("div",{class:"ytBasicContentViewModelHeadline"},_.t(_.jr,{text:y}))}}),_.t(_.gZ,{each:function(){return I.data().paragraphs||[]},
keyBy:"INDEX"},function(y){return _.t("div",{class:"ytBasicContentViewModelParagraph"},_.t(_.U,{cond:function(){var D=y();return!!(D.header||D.customHeader||D.headline)},
then:function(){return _.t(xec,{paragraph:y})}}),_.t(_.U,{cond:function(){return y().asset||y().text},
then:function(){return _.t("div",{class:"ytBasicContentViewModelParagraphContent"},_.t(_.U,{cond:function(){return y().asset},
then:function(D){return _.t("div",{class:"ytBasicContentViewModelParagraphAsset"},_.t(_.aP,{data:D},{contentPreviewImageViewModel:_.mF}))}}),_.t(_.U,{cond:function(){return y().text},
then:function(D){return _.t("div",{class:"ytBasicContentViewModelParagraphText"},_.t(_.jr,{text:D}))}}))}}))}))},"Zd");
xec=_.d(function(I){var y=I.paragraph;return _.t(_.ni,null,_.t(_.U,{cond:function(){return y().headline},
then:function(D){return _.t(_.jr,{text:D,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.t(_.aP,{data:function(){return y().header||y().customHeader}},{sectionHeaderViewModel:function(D){return _.t(_.BA,{data:D.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"$d");_.lYW=_.d(function(I){function y(){var x,q;P((q=(x=R)==null?void 0:x.isKeyBoardInUse())!=null?q:!1)}
function D(){P(!1)}
function F(){var x;return v()?(x=I.focusedClassName)==null?void 0:x.call(I):""}
var R=_.nR().resolve(_.fR(_.Q3)),O=_.J(_.$M(!1,void 0,"SgkTXc")),w=O.next().value;O=O.next().value;var v=w,P=O,K=function(){var x,q;return((x=I.toggleable)==null?0:x.call(I))?(q=I.toggled)==null?void 0:q.call(I):void 0},r=_.YY(function(x){var q,X=(q=I.command)==null?void 0:q.call(I);
X&&_.nR().resolve(_.MC).resolveCommand(X);var f;(f=I.onClick)==null||f.call(I,x)}),N=_.YY(y),h=_.YY(D);
return _.t(_.U,{cond:function(){var x;if(x=I.command){x=I.command();x=SpB(x);var q=x.href;x=!(!x.navigatingCommand||!q)}return x},
then:function(){return _.t(_.Yp,Object.assign({},{command:I.command,style:I.style,ariaDescribedby:I.ariaDescribedby,ariaHidden:I.ariaHidden,ariaLabel:I.ariaLabel,ariaLabelledby:I.ariaLabelledby,ariaSelected:I.ariaSelected,disabled:I.disabled,dir:I.dir,tabIndex:I.tabIndex,target:I.target,title:I.title,onClick:I.onClick},{className:_.XH("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",I.className,function(){return F()}),
onFocusin:y,onFocusout:D,ariaCurrent:function(){var x,q;return(q=(x=I.ariaCurrent)==null?void 0:x.call(I))!=null?q:K()}}),I.children)},
else:function(){return _.t("button",{"on:click":r,"on:focusin":N,"on:focusout":h,class:_.XH("ytButtonOrAnchorHost","ytButtonOrAnchorButton",I.className,function(){return F()}),
style:I.style,"aria-describedby":I.ariaDescribedby,"aria-hidden":I.ariaHidden,"aria-label":I.ariaLabel,"aria-labelledby":I.ariaLabelledby,"aria-pressed":K,dir:I.dir,disabled:I.disabled,tabindex:I.tabIndex,title:I.title},I.children)}})},"ae");var u0_=_.d(function(I){I=_.o6(I,{disabled:!1});var y=I.active,D=I.disabled;I={};I=_.XH("ytSwitchShapeTrack",(I.ytSwitchShapeTrackActive=function(){return y()},I.ytSwitchShapeTrackDisabled=function(){return D()},I));
var F={};F=_.XH("ytSwitchShapeKnob",(F.ytSwitchShapeKnobActive=function(){return y()},F));
return _.t("switch-shape",{class:"ytSwitchShapeHost"},_.t("div",{class:I}),_.t("div",{class:F}))},"be");var qXM=_.d(function(I){var y=_.o6(I,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),D=y.data;I=y.className;var F=y.handleOnTapEventInParent,R=y.parentActive,O=y.onTap;y=_.J(_.N4(function(){var h;return(h=R())!=null?h:D().switchedOnByDefault||!1}));
var w=y.next().value,v=y.next().value,P=function(){return D().isDisabled},K=_.DF("button");
y=_.YY(function(h){return h.key==="Enter"?(h.preventDefault(),K.value.click(),!1):!0});
var r=_.YY(function(h){if(D().handleOnTapEventInParent||F())return!0;if(P())return!1;if(O)return O(h),!0;K3W(D(),w(),h);v(!w());return!1}),N={};
N=_.XH("ytSwitchButtonViewModelButton",(N.ytSwitchButtonViewModelTappable=function(){return!P()},N));
return _.t("switch-button-view-model",{class:_.XH("ytSwitchButtonViewModelHost",I)},_.t("button",{el:K,class:N,"on:click":r,"on:keydown":y,"aria-label":function(){return w()?D().a11yLabelSwitchedOn:D().a11yLabelSwitchedOff},
"aria-checked":w,"aria-disabled":P,role:"switch"},_.t(u0_,{active:w,disabled:P})))},"ce");var EGe=_.d(function(I){var y=I.data;var D=I.isLeading;var F=I.hideSelectionTextChevron;var R=I.isToggled;var O=I.shouldNotFillIcon;var w=function(){if(D())var N=y().leadingImage;else{var h;N=(h=y().trailingImage)!=null?h:_.OA(y().themedTrailingImage)}return N},v=function(){a:switch(y().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var N="expand_more";
break a;default:N="chevron_right"}return N};
I={};var P=_.XH("yt-list-item-view-model__image-container",(I["yt-list-item-view-model__leading"]=D,I["yt-list-item-view-model__trailing"]=function(){return!D()},I)),K=_.XH("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
I={};var r=_.XH("yt-list-item-view-model__accessory",(I["yt-list-item-view-model__leading"]=D,I["yt-list-item-view-model__trailing"]=function(){return!D()},I));
return _.t(_.U,{cond:function(){var N=y(),h=D();return!!(h&&(N.leadingImage||N.leadingAccessory)||!h&&(N.trailingImage||N.trailingButton||N.trailingButtons||N.selectionText||N.themedTrailingImage||N.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.t(_.ni,null,_.t(_.U,{cond:w,then:function(N){return _.t("div",{class:P,"aria-hidden":"true"},_.t(_.UE,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var h=(D()?y().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":y().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?D()?jSH(y().leadingIconAccessorySize):jSH(y().trailingIconAccessorySize):void 0;return h},
className:K,isToggled:function(){return!(O==null?0:O())&&(R==null?void 0:R())}}))}}),_.t(_.U,{cond:function(){return D()&&y().leadingAccessory},
then:function(){return _.t("div",{class:P},_.t(_.aP,{data:function(){return y().leadingAccessory}},{avatarViewModel:function(N){return _.t(_.LF,{data:N.data,
avatarButtonCustomClassName:K})},
collectionThumbnailViewModel:function(N){return _.t(Mse,{data:N.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.t(_.U,{cond:function(){return!D()&&y().trailingButton},
then:function(){return _.t("div",{class:"yt-list-item-view-model__button-container"},_.t(_.aP,{data:function(){return y().trailingButton}},{buttonViewModel:function(N){return _.t(_.My,{data:N.data,
className:r})}}))}}),_.t(_.U,{cond:function(){var N;
return!D()&&((N=y().trailingButtons)==null?void 0:N.buttons)},
then:function(){return _.t("div",{class:"yt-list-item-view-model__button-container"},_.t(_.aP,{data:function(){var N;return(N=y().trailingButtons)==null?void 0:N.buttons}},{buttonViewModel:function(N){return _.t(_.My,{data:N.data,
className:r})},
accountLinkButtonViewModel:function(N){return _.t(xqM,{data:N.data,className:r})},
switchButtonViewModel:function(N){return _.t(qXM,{data:N.data,className:r})},
subscribeButtonViewModel:function(N){return _.t(_.Lc,{data:N.data,isOverlay:!1,animateWidth:!1,className:r})},
toggleButtonViewModel:function(N){return _.t(_.yJ,{data:N.data,className:r})}}))}}),_.t(_.U,{cond:function(){return!D()&&!!y().selectionText},
then:function(){return _.t(_.ni,null,_.t(_.jr,{text:function(){return y().selectionText},
className:_.XH("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.t(_.U,{cond:function(){return!(F==null?0:F())},
then:function(){return _.t(_.mj,{icon:v,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.t(_.U,{cond:function(){return!D()&&y().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.t("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"de");var GTM=_.d(function(I){var y=I.data;return _.t(_.U,{cond:function(){return y().title||y().subtitle},
then:function(){return _.t("div",{class:"yt-list-item-view-model__text-wrapper"},_.t(_.U,{cond:function(){return y().title},
then:function(D){return _.t("div",{class:"yt-list-item-view-model__title-wrapper"},_.t(_.jr,{text:D,className:"yt-list-item-view-model__title"}))}}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(D){return _.t(_.jr,{text:D,className:"yt-list-item-view-model__subtitle"})}}))}})},"ee");var XhM=_.d(function(I){var y=I.data;var D=I.hideSelectionTextChevron;var F=I.TrailingAccessory;var R=I.isToggled;var O=I.disabled;var w=I.isSelectItem;var v=I.isCompact;var P=I.inPopup;var K=I.disableHorizontalPadding;var r=I.isTappableWithoutSelect;var N=I.useButtonOrAnchor;var h=I.onTap;var x=I.shouldNotFillIcon;var q=function(){return _.t(GTM,{data:y,onTap:h,useButtonOrAnchor:N,isTappableWithoutSelect:r,isToggled:R})};
I={};return _.t("div",{class:_.XH("yt-list-item-view-model__label",(I["yt-list-item-view-model__container"]=function(){return!(w==null?0:w())},I["yt-list-item-view-model__container--disabled"]=function(){return!!y().isDisabled||!(O==null||!O())},I["yt-list-item-view-model__container--has-subtitle"]=function(){return!!y().subtitle},I["yt-list-item-view-model__container--compact"]=v,I["yt-list-item-view-model__container--tappable"]=r,I["yt-list-item-view-model__container--in-popup"]=P,I["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(K==null?void 0:K())&&!(w==null?0:w())},I))},_.t(EGe,{data:y,
isLeading:!0,hideSelectionTextChevron:D,isToggled:R,shouldNotFillIcon:x}),_.t(_.U,{cond:function(){return(N==null?void 0:N())&&(r==null?void 0:r())},
then:function(){return _.t(_.lYW,{command:function(){return _.Tj(y().rendererContext)},
onClick:h,className:"yt-list-item-view-model__button-or-anchor",toggleable:R!==void 0,toggled:R},_.t(q,null))},
else:function(){return _.t(q,null)}}),_.t(_.U,{cond:function(){return!!F},
then:function(){return _.t("div",{class:"yt-list-item-view-model__trailing"},F&&_.t(F,null))},
else:function(){return _.t(EGe,{data:y,isLeading:!1,hideSelectionTextChevron:D,isToggled:R,shouldNotFillIcon:x})}}))},"fe");var YXn=_.d(function(I){var y=_.o6(I,{checked:!1,disabled:!1});I=y.name;var D=y.onChange,F=y.onClick,R=y.checked,O=y.labelRenderable,w=y.hasLeadingLabel,v=y.labelClass,P=y.isCompact,K=y.selectElementClass,r=y.disableHorizontalPadding;y=y.disabled;var N="checkbox"+_.Fi(_.JH),h=_.YY(function(X){F==null||F(X);return!1}),x=_.YY(function(X){D==null||D(X);
return!1}),q={};
return _.t("checkbox-shape",null,_.t("label",{class:_.XH("ytCheckboxShapeHost",v,(q.ytCheckboxShapeHostCompact=P,q.ytCheckboxShapeDisableHorizontalPadding=r,q))},_.t("input",{class:"ytCheckboxShapeInput",id:N,checked:R,name:I,type:"checkbox",disabled:y,"prop:checked":R,"on:change":x,"on:click":h}),_.t(_.U,{cond:function(){return!(w==null?0:w())},
then:function(){return _.t(QsM,{isLeading:!0,selectElementClass:K})}}),_.t(_.U,{cond:function(){return!!O},
then:function(){return _.t("div",{class:"ytCheckboxShapeLabel"},O==null?void 0:O())}}),_.t(_.U,{cond:w,
then:function(){return _.t(QsM,{isLeading:!1,selectElementClass:K})}})))},"ge");
YXn.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var QsM=_.d(function(I){var y=I.selectElementClass;I={};return _.t("div",{class:_.XH("ytCheckboxShapeCheckbox",y,(I.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(y==null?0:y())},I)),
"aria-hidden":"true"},_.t(_.mj,{icon:_.l("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.t(_.mj,{icon:_.l("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"he");_.tH=_.d(function(I){var y=I.name;var D=I.onChange;var F=I.onClick;var R=I.checked;var O=I.labelRenderable;var w=I.useCheckIcon;var v=I.hasLeadingLabel;var P=I.labelClass;var K=I.isCompact;var r=I.selectElementClass;var N=I.ariaLabel;var h=I.className;I=I.disabled;var x="radio"+_.Fi(_.JH),q=_.DF("input"),X=_.l("enable_ios_webview_radio_button_responsiveness"),f=_.YY(function(T){q.value.checked=!(R==null||!R());D==null||D(T);return!1}),m=_.YY(function(T){F==null||F(T);
return!1}),z=_.J(_.$M(!1,void 0,"Ucg5gd")),B=z.next().value,C=z.next().value;
z=_.YY(function(){var T;((T=_.nR().resolve(_.fR(_.Q3)))==null?0:T.isKeyBoardInUse())&&C(!0)});
var H=_.YY(function(){C(!1)}),e={};
return _.t("radio-shape",{class:_.XH("yt-radio-shape",h)},_.t("input",{el:q,class:"yt-radio-shape__input",id:x,"prop:checked":R,name:y,type:"radio",disabled:I,"on:change":f,"on:click":m,"aria-label":N,"on:focusin":z,"on:focusout":H}),_.t("label",{class:_.XH("yt-radio-shape__label-container",P,(e["yt-radio-shape--compact"]=K,e["yt-radio-shape__label-container--keyboard-focused"]=B,e)),for:x},_.t(_.U,{cond:function(){return!(v==null?0:v())},
then:function(){return _.t(fYW,{checked:R,useCheckIcon:w,isLeading:!0,selectElementClass:r,usePassthrough:X})}}),_.t(_.U,{cond:function(){return!!O},
then:function(){var T={};return _.t("div",{class:_.XH("yt-radio-shape__label",(T["yt-radio-shape--event-passthrough"]=X,T)),"aria-hidden":function(){return(N==null?0:N())?"true":"false"}},O==null?void 0:O())}}),_.t(_.U,{cond:v,
then:function(){return _.t(fYW,{checked:R,useCheckIcon:w,isLeading:!1,selectElementClass:r,usePassthrough:X})}})))},"ie");
_.tH.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var fYW=_.d(function(I){var y=I.useCheckIcon;var D=I.selectElementClass;I=I.usePassthrough;var F=function(){return(y==null?0:y())?"CHECK":_.l("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},R={};
return _.t("div",{class:_.XH("yt-radio-shape__radio",D,(R["yt-radio-shape__radio--check-icon"]=y,R["yt-radio-shape__radio--radio-default-style"]=function(){return!(D==null?0:D())},R["yt-radio-shape--event-passthrough"]=I,R)),
"aria-hidden":"true"},_.t(_.mj,{icon:F}),_.t(_.mj,{icon:F,active:function(){return!(y==null?0:y())}}))},"je");_.P3=_.d(function(I){var y=I.data;var D=I.isMenuItem;var F=I.isCompact;var R=I.onTap;var O=I.trailingAccessory;var w=I.hideSelectionTextChevron;var v=I.disabled;var P=I.inPopup;var K=I.disableHorizontalPadding;var r=I.isOverlay;var N=I.isToggled;var h=I.ariaLabel;var x=I.ariaPressed;var q=I.shouldNotFillIcon;var X=!_.l("web_enable_killswitch_for_selectable_list_item_on_tap_fix");I=!_.l("web_enable_killswitch_for_skip_child_tags");var f=_.dV(function(yg){return olq(y(),yg)}),m=function(){return(K==
null?void 0:K())||y().disableHorizontalPadding},z=function(){return _.l("enable_web_shorts_captions_language_command")||_.l("web_shorts_audio_track_picker")||y().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},B=function(){return z()?Object.assign({},y(),f().data):y()},C=function(){return!!B().isDisabled||!(v==null||!v())},H=_.huq(function(){return B().rendererContext}),e=function(){return!(B().isSelected===void 0||!B().selectionStyle||B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
T=function(){return(_.sP(B().rendererContext)||R)&&!e()},L5={},vH=_.XH("yt-list-item-view-model__container",(L5["yt-list-item-view-model__container--tappable"]=function(){return _.sP(B().rendererContext)||e()},L5["yt-list-item-view-model__container--compact"]=F,L5["yt-list-item-view-model__container--in-popup"]=P,L5["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(m==null?void 0:m())&&e()},L5)),u_=function(){return B().leadingImage||B().leadingAccessory},jW=_.XH("yt-list-item-view-model__image-container",
function(){return u_()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
L5=_.xqL();var xA=_.J(_.$M(!1,void 0,"D1Nwsd")),dq=xA.next().value,$A=xA.next().value,BH=function(){return _.t(XhM,{data:B,hideSelectionTextChevron:w,TrailingAccessory:O,isToggled:N,disabled:v,isSelectItem:e,isCompact:F,inPopup:P,disableHorizontalPadding:m,isTappableWithoutSelect:T,useButtonOrAnchor:jf,onTap:R,shouldNotFillIcon:q})},jf=_.l("web_button_or_anchor_list_item");
xA={};return _.t("yt-list-item-view-model",{el:_.K4(_.VM(function(){return C()?void 0:B().rendererContext},void 0,void 0,jf?["A".toString(),
"BUTTON".toString()]:[]),NWt(function(yg){if(!C()){var eW;if(eW=X)eW=B().selectionStyle,eW=eW==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||eW==="LIST_ITEM_SELECTION_STYLE_RADIO"||eW==="LIST_ITEM_SELECTION_STYLE_DEFAULT";eW||R==null||R(yg)}},I?["A".toString(),
"BUTTON".toString()]:[]),pkt(function(){return T==null?void 0:T()},{focusin:function(){var yg;
((yg=_.nR().resolve(_.fR(_.Q3)))==null?0:yg.isKeyBoardInUse())&&$A(!0)},
focusout:function(){$A(!1)}})),
class:_.XH("yt-list-item-view-model",(xA["yt-list-item-view-model--is-overlay"]=r,xA["yt-list-item-view-model--keyboard-focused"]=dq,xA["yt-list-item-view-model--hidden"]=function(){return z()?f().isHidden:!1},xA)),
role:function(){return(D==null?0:D())?"menuitem":"listitem"},
tabindex:function(){var yg=T();yg=jf?void 0:R||yg?0:void 0;return yg},
"on:keydown":L5,"aria-label":function(){var yg;return(h==null?void 0:h())||((yg=H())==null?void 0:yg.label)},
"aria-pressed":x},_.t(_.U,{cond:e,then:function(){return _.t(_.I8,null,_.t(_.Vj,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.t(YXn,{labelRenderable:BH,
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!u_()},
labelClass:vH,selectElementClass:jW,disableHorizontalPadding:m,onClick:X?R:void 0,disabled:C})}),_.t(_.Vj,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.t(_.tH,{labelRenderable:BH,
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!u_()},
labelClass:vH,selectElementClass:jW,onClick:X?R:void 0,disabled:C})}),_.t(_.Vj,{when:function(){return B().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.t(_.tH,{labelRenderable:BH,
isCompact:F,checked:function(){return B().isSelected},
hasLeadingLabel:function(){return!!u_()},
labelClass:vH,selectElementClass:jW,useCheckIcon:!0,onClick:X?R:void 0,disabled:C})}),_.t(_.Z4,null,BH))},
else:BH}))},"ke");
_.P3.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Kq=_.d(function(I){var y=_.J(_.c_({canHaveZeroSize:!1})),D=y.next().value;y=y.next().value;var F=function(){return p8q(D.width(),I.data().responsiveContainerConfiguration)||X8A(D.width(),I.data().linearLayoutContainerConfiguration)};
return _.t("yt-linear-layout-view-model",{el:_.K4(y),class:"ytLinearLayoutViewModelHost"},_.t("div",{class:_.XH("ytLinearLayoutViewModelContainer",function(){a:switch(I.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var R="ytLinearLayoutViewModelHorizontal";break a;default:R="ytLinearLayoutViewModelVertical"}return R},function(){var R=I.data().linearLayoutContainerConfiguration;
return R?[qLq(R.flexDirection),ElL(R.justifyContent),GH5(R.alignItems)].join(" "):""}),
style:function(){var R;var O=((R=F())==null?void 0:R.containerStyles)||{};return _.p4(O)()}},_.t(_.aP,{data:function(){return I.data().items},
wrapper:function(R,O,w){return _.t("div",{style:function(){var v=w(),P;if((P=F())==null)v=void 0;else{var K=P.itemStyles,r=v===0,N,h;var x=(h=(N=I.data().items)==null?void 0:N.length)!=null?h:0;v=K.call(P,r,v===x-1)}return _.p4(v||{})()}},R())}},{lockupViewModel:function(R){return _.t(_.W7,{data:R.data,
containerLayoutConfig:function(){var O;return(O=F())==null?void 0:O.containerLayoutConfig}})},
basicContentViewModel:_.Sc,buttonViewModel:_.My,linearLayoutViewModel:_.Kq,thumbnailViewModel:YZ,descriptionPreviewViewModel:_.Co,listItemViewModel:_.P3,sectionHeaderViewModel:_.BA})))},"le");_.NK(_.Kq,"yt-linear-layout-view-model",{props:{data:_.om}});_.NK(_.iG,"chips-shelf-view-model",{props:{data:_.om,callback:_.rV,selectionBehavior:_.om,disableChipsScrollAnimation:_.om,nextButtonStyle:_.om}});_.NK(_.d(function(I){return _.t("yt-comment-filter-context-view-model",{class:_.XH("ytCommentFilterContextHost",I.className)},_.t(_.jr,{text:function(){return I.data().text}}))},"me"),"yt-comment-filter-context-view-model",{props:{data:_.om,
className:_.rV}});_.nGM=_.d(function(I){var y=I.data;var D=I.onTap;var F=I.onSwitch;var R=I.overrideDisabled;I=I.disableHorizontalPadding;var O=_.J(_.N4(function(){var h;return((h=rnq(r()))==null?void 0:h.switchedOnByDefault)||!1})),w=O.next().value,v=O.next().value;
O=_.J(_.$M(!1,void 0,"V0hCrd"));var P=O.next().value,K=O.next().value,r=function(){var h;if(!(h=y().switchButton)){var x=y();h=R==null?void 0:R();x={switchOnCommand:x.switchOnCommand,switchOffCommand:x.switchOffCommand,switchedOnByDefault:x.switchedOnByDefault,isDisabled:x.isDisabled,a11yLabelSwitchedOn:x.a11yLabelSwitchedOn,a11yLabelSwitchedOff:x.a11yLabelSwitchedOff};h!==void 0&&(x.isDisabled=h);h={switchButtonViewModel:x}}return h},N=function(h){var x=rnq(r());
!x||x.isDisabled||y().ignoreTapUntilCommandCompletes&&P()||(D==null||D(h),K3W(x,w(),h,y().ignoreTapUntilCommandCompletes,K),v(!w()),F==null||F(w()))};
return _.t("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.t(_.P3,{data:function(){return{title:y().title,subtitle:y().attributedSubtitle,leadingImage:y().leadingImage,leadingAccessory:y().leadingAccessory,isDisabled:y().isDisabled}},
onTap:N,isToggled:w,shouldNotFillIcon:!0,trailingAccessory:function(){return _.t(_.aP,{data:r},{switchButtonViewModel:function(h){return _.t(qXM,{data:h.data,parentActive:w,onTap:N})}})},
disableHorizontalPadding:I}))},"ne");var ph_=_.d(function(I){var y=I.data;I=I.className;var D=function(){var v;return((v=F())==null?void 0:v.isToggled)!==void 0},F=_.dV(function(v){y();
var P=y().entitySelectorType;if(P)switch(P){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":break;default:_.tq(new _.g6("Error: entitySelectorType defined but not matched in selector.",v,P))}}),R=_.J(_.N4(function(){var v,P,K;
return D()?(v=F())==null?void 0:v.isToggled:(P=y())==null?void 0:(K=P.initialState)==null?void 0:K.isToggled})),O=R.next().value,w=R.next().value;
return _.t("toggleable-list-item-view-model",{el:_.K4(_.VM(function(){return y().rendererContext},{onTap:function(v,P){P();
D()||w(!O())}})),
class:_.XH("toggleableListItemViewModelHost",I)},_.t(_.U,{cond:function(){if(O()){var v=y().toggledListItem;v=_.u(v,_.BS)}else v=y().defaultListItem,v=_.u(v,_.BS);return v},
then:function(v){return _.t(_.P3,{data:v,isToggled:O,ariaLabel:function(){var P=O()?y().toggledListItem:y().defaultListItem,K;P=(K=_.u(P,_.BS))==null?void 0:K.rendererContext;var r;return(r=_.u(P,_.W_))==null?void 0:r.label},
ariaPressed:function(){return O()}})}}))},"oe");var mef=_.zC("DOWNLOAD",{},"Download"),Myu=_.zC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),z8P=_.zC("RETRY",{},"Retry"),kTa=_.zC("PAUSE_DOWNLOADING",{},"Pause downloading"),deu=_.zC("RESUME_DOWNLOAD",{},"Resume download"),mAJ={text:mef,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},CV={text:Myu,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},kHq={text:z8P,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
MGJ={text:kTa,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},zu_={text:deu,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var aYu=_.d(function(I){var y=function(){var v=I.data();v=_.Tj(v.rendererContext);var P;return(P=_.u(v,_.mC))==null?void 0:P.videoId},D=_.dV(function(v){var P=y(),K=cnA(I.data());
return P?_.FM(v,P):K?_.Rq(v,K):"TRANSFER_STATE_UNKNOWN"}),F=_.zj(_.DGJ,y),R=_.dV(function(v){return _.TQ4(v,y(),cnA(I.data()))}),O=function(){return al_(D(),F(),_.Tj(I.data().rendererContext),!!cnA(I.data()))},w=function(){return R()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.t("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:w},_.t(_.U,{cond:function(){return!w()},
then:function(){return _.t(_.U,{cond:O,then:function(v){return _.t(_.gZ,{each:v},function(P){return _.t(_.P3,{data:P,isCompact:I.isCompact,isMenuItem:I.isMenuItem,inPopup:I.inPopup,disableHorizontalPadding:I.disableHorizontalPadding})})}})}}))},"pe");
aYu.idomCompat=!0;_.cyG=_.d(function(I){var y=I.data;var D=I.isCompact;var F=I.hideSelectionTextChevron;var R=I.inPopup;var O=I.isOverlay;var w=I.disableHorizontalPadding;var v=function(){return W3H(y())&&(R==null?void 0:R())},P=_.l("web_list_view_model_listbox_killswitch")?"menu":"listbox";
I=_.YY(function(r){if(R!=null&&R()&&_.l("web_enable_arrow_key_navigation_in_dropdown")){var N=_.JLq(r.currentTarget);if(N.length!==0){var h=Array.prototype.indexOf.call(N,document.activeElement);switch(r.key){case "ArrowDown":r.preventDefault();CmS(N,h);break;case "ArrowUp":r.preventDefault();BWB(N,h);break;case "Tab":r.preventDefault(),r.shiftKey?BWB(N,h):CmS(N,h)}}}});
var K={};return _.t("yt-list-view-model",{class:_.XH("ytListViewModelHost",(K.ytListViewModelHostKaiosSpatNav=aKW&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",K)),role:function(){return v()?P:"list"},
style:_.p4({"max-height":function(){var r,N=(r=y())==null?void 0:r.visibleElementCount;if(N)return(N+.5)*40+"px"}}),
"on:keydown":I},_.t(_.aP,{data:function(){return y().listItems}},{listItemViewModel:function(r){return _.t(_.P3,{data:r.data,
isMenuItem:v,isCompact:D,hideSelectionTextChevron:F,inPopup:R,isOverlay:O,disableHorizontalPadding:w})},
toggleableListItemViewModel:function(r){return _.t(ph_,{data:r.data})},
downloadListItemViewModel:function(r){return _.t(aYu,{data:r.data,isMenuItem:v,isCompact:D,inPopup:R,disableHorizontalPadding:w})},
switchListItemViewModel:function(r){return _.t(_.nGM,{data:r.data,disableHorizontalPadding:w})}}))},"qe");
_.cyG.idomCompat=!0;var Wl_=_.d(function(I){var y=I.data;var D=I.isOverlay;I={};return _.t("yt-course-perks-view-model",{class:_.XH("ytwCoursePerksViewModelHost",(I.ytwCoursePerksViewModelHostOverlay=D,I))},_.t("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",null,_.t(_.U,{cond:function(){return y().perks},
then:function(F){return _.t(_.cyG,{data:function(){return{listItems:F()}},
isCompact:!0,isOverlay:D})}})))},"re");_.NK(Wl_,"yt-course-perks-view-model",{props:{data:_.rV,isOverlay:_.rV}});_.NK(_.d(function(I){var y=I.data;return _.t("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.t("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.t(_.jr,{text:function(){return y().progressSummary}})),_.t("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.t("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.p4({width:function(){return y().progressPercentage*100+"%"}})})))},"se"),"yt-course-progress-view-model",{props:{data:_.om}});var CUP=_.d(function(I){var y={};return _.t("yt-progress-view-model",{class:_.XH("ytwProgressViewModelHost",(y.ytwProgressViewModelHostOverlay=_.jE(I.isOverlay,!1),y))},_.t(_.U,{cond:function(){return I.data().progressSummary},
then:function(D){return _.t("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.t(_.jr,{text:D}))}}),_.t("div",{class:"ytwProgressViewModelHostProgressContainer"},_.t(_.U,{cond:function(){return I.data().leadingLabel},
then:function(D){return _.t("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.t(_.jr,{text:D}))}}),_.t("div",{class:"ytwProgressViewModelHostProgressBar"},_.t("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(I.data().progressPercentage||0)*100+"%"}}))))},"te");var Uh=_.d(function(I){var y=I.starNumber;var D=I.data;var F=function(){var R;return((R=D())==null?void 0:R.rating)||0};
return _.t(_.U,{cond:function(){return y()},
then:function(R){return _.t(_.I8,null,_.t(_.Vj,{when:function(){return F()>=R()-.25}},function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.mj,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.t(_.Vj,{when:function(){return F()>=R()-.75}},function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.mj,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.t(_.Z4,null,function(){return _.t("div",{class:"ytStarRatingViewModelHostStar"},_.t(_.mj,{icon:"STAR",
size:function(){return 24}}))}))}})},"ue"),B8z=_.d(function(I){I=I.data;
return _.t("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.t(Uh,{starNumber:1,data:I}),_.t(Uh,{starNumber:2,data:I}),_.t(Uh,{starNumber:3,data:I}),_.t(Uh,{starNumber:4,data:I}),_.t(Uh,{starNumber:5,data:I}))},"ve");_.NK(_.d(function(I){var y=_.o6(I,{}).data;return _.t("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.t("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.t(_.jr,{text:function(){var D;return(D=y())==null?void 0:D.title}})),_.t("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.t(_.U,{cond:function(){return y().starProgressViewModels},
then:function(D){return _.t("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.t(_.aP,{data:D},{progressViewModel:CUP}))}}),_.t("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.t("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.t(_.jr,{text:function(){var D;
return(D=y())==null?void 0:D.averageRatingLabel}})),_.t(_.U,{cond:function(){return y().zeroStateText},
then:function(D){return _.t("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.t(_.jr,{text:D}))}}),_.t(_.U,{cond:function(){return y().starRatingViewModel},
then:function(D){return _.t("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.t(_.aP,{data:D},{starRatingViewModel:B8z}))}}),_.t("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.t(_.jr,{text:function(){var D;
return(D=y())==null?void 0:D.totalRatingsCountLabel}})))))},"we"),"yt-course-ratings-view-model",{props:{data:_.rV}});var imc;imc={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"}};_.AyG=_.d(function(I){var y=_.DF("yt-learning-journey-loader-view-model"),D=_.nt();_.OJ(function(){requestAnimationFrame(function(){var R;(R=D.lottieEl)==null||R.addEventListener("DOMLoaded",function(){var O;(O=I.onLottieLoaded)==null||O.call(I)})});
var F=I.data().browseEndpoint;F&&_.OE(F)});
return _.t("yt-learning-journey-loader-view-model",{class:_.XH("learningJourneyLoaderViewModelHost",I.className),"data-target-id":function(){return I.data().targetId||""},
el:y},_.t(_.Wb,{className:_.XH("learningJourneyLoaderViewModelLoader",I.className),animationName:function(){return imc.animationConfig.name},
data:imc,animationRef:D}))},"ye");_.NK(_.AyG,"yt-learning-journey-loader-view-model",{props:{data:_.om,className:_.rV,onLottieLoaded:_.rV}});var $ef=_.d(function(I){var y=function(){return I.data()},D=function(){return!!_.b9(_.AU(y())).optionColor},F=_.J(_.$M(-1,void 0,"gXOYR")),R=F.next().value,O=F.next().value,w=function(N){return R()===N},v=function(N){return y().correctAnswerIndex===N},P=function(){return R()!==-1};
F=_.J(_.$M("",void 0,"BFwDQb"));var K=F.next().value,r=F.next().value;return _.t("learning-journey-quiz-view-model",{class:_.XH("learningQuizComponentHost","learningJourneyQuizYoututorHost",I.className),style:_.p4({background:function(){return _.b9(_.AU(y())).backgroundColor}})},_.t("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},K),_.t("div",{class:"learningQuizComponentQuizContainer"},_.t("div",{class:"learningQuizComponentQuiz"},_.t("div",{class:"learningQuizComponentQuizContent"},_.t(_.U,{cond:function(){return!!y().aiGeneratedQuizLabel},
then:function(){return _.t("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.t(_.jr,{text:function(){return y().aiGeneratedQuizLabel}}))}}),_.t("div",{class:"learningQuizComponentQuizHeader",
style:_.p4({"align-items":function(){return y().overflowMenu?"start":"center"}})},_.t("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.p4({"min-height":function(){return y().overflowMenu?"48px":"26px"}})},_.t("div",{class:"learningJourneyQuizYoututorText",
style:_.p4({color:function(){return _.b9(_.AU(y())).primaryTextColor}})},_.t(_.jr,{text:function(){return y().questionHeaderText}})))),_.t("div",{class:"learningQuizComponentQuizSubheader",
style:_.p4({color:function(){return _.b9(_.AU(y())).secondaryTextColor}})},_.t(_.jr,{text:function(){var N=y();
return P()?N.explanationText:N.questionSubheaderText}}))),_.t("div",{role:"group",
class:_.XH("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.t(_.gZ,{each:function(){return y().optionsData||[]}},function(N,h){var x={};
return _.t("button",{class:_.XH("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(x.learningQuizComponentQuizHover=function(){return!P()},x.learningQuizComponentQuizOptionWithCustomColor=D,x.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return P()&&v(h())},x.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return R()!==y().correctAnswerIndex&&w(h())},x.learningQuizComponentQuizIncorrectShake=
function(){return R()!==y().correctAnswerIndex&&w(h())},x)),
"on:click":_.YY(function(){_.OP(_.W4(),{data:N});if(P())return!1;O(h());var q,X;r(v(h())?((q=y().successTitle)==null?void 0:q.content)||"":((X=y().failureTitle)==null?void 0:X.content)||"");return!1}),
style:_.p4({background:"transparent"}),"aria-description":function(){var q,X;return P()?v(h())?(q=y().successTitle)==null?void 0:q.content:(X=y().failureTitle)==null?void 0:X.content:""},
"aria-disabled":P},_.t("div",{class:"learningQuizComponentQuizOptionContainer"},_.t(_.jr,{text:N.optionText}),_.t(_.U,{cond:function(){var q=h();return P()&&(w(q)||v(q))},
then:function(){var q={};return _.t(_.mj,{className:_.XH("learningJourneyQuizYoututorOptionIcon",(q.learningQuizComponentQuizPulse=function(){return R()===y().correctAnswerIndex&&v(h())},q)),
size:24,icon:function(){return v(h())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.t(_.U,{cond:P,
then:function(){return _.t("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.t("div",{class:"learningJourneyQuizYoututorExplanationText"},_.t(_.jr,{text:function(){return y().explanationHeaderText}})),_.t(_.jr,{text:function(){return y().optionsData[R()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ze");
$ef.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var byH=function(){},bmW;
(bmW=window.requestIdleCallback)==null||bmW.bind(window);var AnB=new Set,iyS=null;var HmM;_.e8O=_.d(function(I){var y=null,D=null,F=null,R=function(){return I.data()},O=function(){return _.b9(_.AU(R()))},w=function(){return!!O().optionColor},v=_.J(_.$M(-1,void 0,"H2gnQb")),P=v.next().value,K=v.next().value,r=function(C){return P()===C},N=function(C){return R().correctAnswerIndex===C},h=function(){return P()!==-1},x=function(){return P()===R().correctAnswerIndex},q=function(){var C=R(),H=h(),e=x();
return H?e?C.successTitle:C.failureTitle:C.questionHeaderText},X=function(){var C=h(),H=x();
return C?H?264685:264684:264683},f=function(){var C=R();
return h()?C.explanationText:C.questionSubheaderText},m=function(){return!!R().video},z=function(C){return x()&&N(C)},B=_.YY(function(){K(-1);
return!1});
return _.t(_.U,{cond:function(){return R().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.t($ef,{data:function(){return R()}})},
else:function(){return _.t("learning-journey-quiz-view-model",{class:_.XH("learningQuizComponentHost",I.className),style:_.p4({background:function(){return O().backgroundColor}})},_.t(_.U,{cond:m,
then:function(){return _.t("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.p4({background:function(){return O().videoBackgroundColor}})},_.t(_.aP,{data:function(){return R().video}},{lockupViewModel:function(C){return _.t(_.W7,{data:C.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.t("div",{class:"learningQuizComponentQuizContainer"},_.t("div",{class:"learningQuizComponentQuiz"},_.t("div",{class:"learningQuizComponentQuizContent"},_.t(_.U,{cond:function(){return!!R().aiGeneratedQuizLabel},
then:function(){return _.t("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.t(_.jr,{text:function(){return R().aiGeneratedQuizLabel}}))}}),_.t("div",{class:"learningQuizComponentQuizHeader",
style:_.p4({"align-items":function(){return R().overflowMenu?"start":"center"}})},_.t("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.p4({"min-height":function(){return R().overflowMenu?"48px":"26px"}})},_.t("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.K4(function(C){_.H_(X(),C,y,function(H){y=H})}),
style:_.p4({color:function(){return O().primaryTextColor}}),
"client-ve-type":X},_.t(_.jr,{text:q}))),_.t("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.t(_.U,{cond:h,then:function(){return _.t("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.K4(function(C){_.H_(264687,C,D,function(H){D=H})}),
"on:click":B,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.t("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.p4({fill:function(){return O().primaryTextColor}})},_.t("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"})))}}),
_.t(_.aP,{data:function(){return R().overflowMenu}},{buttonViewModel:function(C){return _.t(_.My,{data:C.data})}}))),_.t("div",{class:"learningQuizComponentQuizSubheader",
el:_.K4(function(C){_.H_(264688,C,F,function(H){F=H})}),
style:_.p4({color:function(){return O().secondaryTextColor}}),
"client-ve-type":264688},_.t(_.jr,{text:f}))),_.t("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.t(_.gZ,{each:function(){return R().optionsData||[]}},function(C,H){var e={};
return _.t("button",{class:_.XH("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(e.learningQuizComponentQuizHover=function(){return!h()},e.learningQuizComponentQuizOptionWithCustomColor=w,e.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return z(H())},e.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!x()&&r(H())},e.learningQuizComponentQuizIncorrectShake=function(){return!x()&&
r(H())},e.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return h()&&!r(H())},e)),
"on:click":_.YY(function(){_.OP(_.W4(),{data:C});if(h())return!1;K(H());return!1}),
style:_.p4({background:function(){var T=H();return h()&&r(T)?"":w()?O().optionColor:"transparent"}}),
"aria-disabled":h},_.t("div",{class:"learningQuizComponentQuizOptionContainer"},_.t(_.U,{cond:h,then:function(){return _.t(HmM,{isOptionCorrect:N,optionIndex:H,isOptionSelectedAndCorrect:z,colors:O})}}),_.t(_.jr,{text:C.optionText})))})))))}})},"Ae");
HmM=_.d(function(I){var y={};return _.t("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var D=I.optionIndex();return I.isOptionCorrect(D)?"0 0 24 24":"0 -960 960 960"},
class:_.XH("learningJourneyQuizViewModelQuizOptionIconLeading",(y.learningQuizComponentQuizPulse=function(){return I.isOptionSelectedAndCorrect(I.optionIndex())},y)),
style:_.p4({fill:function(){return I.colors().primaryTextColor}})},_.t("path",{d:function(){var D=I.optionIndex();
return I.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"}}))},"Be");
_.e8O.idomCompat=!0;_.NK(_.e8O,"learning-journey-quiz-view-model",{props:{data:_.om,className:_.om}});var T8W=_.d(function(I){var y=_.J((0,_.F3a)(function(){var w;return{targetId:(w=I.data().config)==null?void 0:w.suspenseKey,contents:[I.data()]}})).next().value,D=_.nR().resolve(_.MC),F=function(){var w=y().contents.length>0?y().contents[0]:void 0;
return w==null?void 0:w.config},R=function(){var w;
return(w=F())==null?void 0:w.entityTriggerConfig},O=_.zj(CYL,function(){var w,v;
return(v=(w=R())==null?void 0:w.entityKey)!=null?v:""});
_.wZ(function(){var w,v,P,K=(P=Number((w=R())==null?void 0:(v=w.invalidationTimestamp)==null?void 0:v.seconds))!=null?P:0,r,N,h;if(((h=Number((r=O())==null?void 0:(N=r.lastUpdated)==null?void 0:N.seconds))!=null?h:0)>K){var x;(w=(x=F())==null?void 0:x.continuationCommand)&&D.resolveCommand(w)}},"tC8nKe");
return _.t("yt-suspense-view-model",{class:_.XH("ytSuspenseViewModelHost")},_.t(_.aP,{data:function(){var w;return(w=F())==null?void 0:w.contents}},{lockupViewModel:_.W7}))},"De");var sse=_.d(function(I){var y=_.o6(I,{palette:void 0,isLastItem:!1}),D=y.palette,F=y.isLastItem,R=function(){return I.data().isHighlighted},O=function(){var P;
return HyW((P=D())==null?void 0:P.iconDisabledColor)},w=function(){var P;
return HyW((P=D())==null?void 0:P.primaryTitleColor)},v=function(){var P;
return HyW((P=D())==null?void 0:P.secondaryTitleColor)};
y={};return _.t("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.K4(_.VM(function(){return I.data().rendererContext}))},_.t(_.aP,{data:function(){return I.data().thumbnail}},{thumbnailViewModel:YZ}),_.t("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.t("div",{class:_.XH("ytMacroMarkerListItemViewModelTimeDescription",(y.ytMacroMarkerListItemViewModelHighlighted=R,y)),
style:_.p4({"background-color":function(){return R()?w():O()},
color:function(){return R()?"":v()}})},_.t(_.jr,{text:function(){return I.data().timestamp}})),_.t("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.p4({"background-color":function(){return F()?"transparent":O()}})}),_.t("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(R()?w():v())}},_.t(_.jr,{text:function(){return I.data().title}}))))},"Ee");_.r_=_.d(function(I){function y(ao){z("transform:translateX("+(_.Pi("HTML_DIR")==="rtl"?"":"-")+ao+"px)")}
function D(ao){return Math.min(Math.max(ao,0),m()-T())}
function F(ao){var rc=H()+jW();if(!R())return 0;ao===void 0&&(ao=Math.round(T()/rc)||1);return ao*rc}
var R=function(){return I.data().items||[]},O=function(){return I.data().previousButton},w=function(){return I.data().nextButton},v=function(){var ao,rc;
return(rc=(ao=I.disableArrows)==null?void 0:ao.call(I))!=null?rc:!1},P=function(){var ao;
return!((ao=I.forceNarrowLayout)==null||!ao.call(I))},K=_.su(function(){var ao;
return!((ao=I.centerAlignItems)==null||!ao.call(I))&&m()<=T()},void 0,"iGOqxd"),r=_.DF("horizontal-shelf-view-model"),N=_.DF("div"),h=_.J(_.$M(0,void 0,"tieKmf")),x=h.next().value,q=h.next().value;
h=_.J(_.$M(0,void 0,"W2lvv"));var X=h.next().value,f=h.next().value,m=X;X=_.J(_.$M("",void 0,"PEePkc"));h=X.next().value;var z=X.next().value;X=_.J(_.$M(0,void 0,"c7a4W"));var B=X.next().value,C=X.next().value,H=B;X=_.J(_.$M(0,void 0,"KGhRJf"));B=X.next().value;var e=X.next().value,T=B;X=_.J(_.$M(!1,void 0,"fgWgyc"));var L5=X.next().value,vH=X.next().value;X=_.J(_.$M(0,void 0,"pe79rc"));B=X.next().value;var u_=X.next().value,jW=B;X=_.J(_.$M(0,void 0,"CTqisc"));var xA=X.next().value,dq=X.next().value;
X=_.J(_.$M(0,void 0,"S2Yf1b"));var $A=X.next().value,BH=X.next().value;X=_.J(_.$M("50%",void 0,"kjP5ke"));var jf=X.next().value,yg=X.next().value,eW=function(){var ao,rc=(ao=I.data())==null?void 0:ao.responsiveContainerConfiguration,Ta,f_;return rc?Rk(rc==null?void 0:rc.responsiveSize):(f_=(Ta=I.sizing)==null?void 0:Ta.call(I))!=null?f_:"STANDARD"},oe=function(){var ao,rc=(ao=I.data())==null?void 0:ao.responsiveContainerConfiguration;
return rc?rc.enableContentSpecificAspectRatio===!1:!1};
X=_.su(function(){return!v()&&x()>0},void 0,"jT8Bud");
B=_.su(function(){return!v()&&x()<m()-T()},void 0,"mt4gsb");
var xP=function(){r.value!==null&&zo()},XW;
_.LR(function(){zo();window.ResizeObserver?(XW=new ResizeObserver(_.TQ(xP,0)),XW.observe(r.value)):window.addEventListener("resize",xP)});
_.tI(function(){if(window.ResizeObserver){var ao;(ao=XW)==null||ao.disconnect()}else window.removeEventListener("resize",xP)});
var zo=function(){var ao=r.value.clientWidth,rc=I.includeMargin!==void 0?I.includeMargin():!1,Ta;var f_=I.hasPeek!==void 0?I.hasPeek():!((Ta=I.data())==null||!Ta.hasPeek);ao=_.FP({containerWidth:ao,hasPeek:f_,sizing:eW(),marginSettings:rc?P()?4:1:0});u_(ao.gutter);dq(ao.margin);C(ao.itemWidth);vH(ao.maxContainerWidth<528||P());e(ao.maxContainerWidth);R()&&f((ao.itemWidth+ao.gutter)*R().length-ao.gutter);if(R()){var mM;if(((mM=I.thumbnailAspectRatio)==null?void 0:mM.call(I))!==void 0){var M_;yg(H()/
oqC((M_=I.thumbnailAspectRatio)==null?void 0:M_.call(I))/2+"px")}else yg("50%")}},Ub={},rq={};
return _.t("horizontal-shelf-view-model",{class:_.XH("ytwHorizontalShelfViewModelHost",I.className),el:r},_.t(_.U,{cond:function(){var ao;return I.data().header&&!((ao=I.horizontalShelfExperiments)==null?0:ao.call(I).hideHeader)},
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.p4({width:function(){return T()+"px"},
padding:function(){return"0 "+xA()+"px"}})},_.t(_.aP,{data:function(){return I.data().header}},{sectionHeaderViewModel:function(ao){return _.t(_.BA,{data:ao.data,
disableHorizontalPadding:!0,forceSmallLayout:L5,useResponsiveLayout:!0})}}))}}),_.t("div",{class:_.XH("ytwHorizontalShelfViewModelOuterContainer",(Ub.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return K()},Ub)),
style:_.p4({"margin-top":function(){var ao,rc=I.data().header&&!((ao=I.horizontalShelfExperiments)==null?0:ao.call(I).hideHeader),Ta;return(((Ta=I.ensureMarginTop)==null?0:Ta.call(I))&&!rc?12:0)+"px"}})},_.t("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.p4({width:function(){return T()+"px"},
padding:function(){return"0 "+xA()+"px"},
overflow:function(){return v()?"auto":"hidden"}})},_.t("div",{class:_.XH("ytwHorizontalShelfViewModelItems",(rq.ytwHorizontalShelfViewModelCenterAlignItems=function(){return K()},rq)),
el:N,style:h},_.t(_.aP,{data:R},{macroMarkerListItemViewModel:function(ao,rc){return _.t("div",{style:_.p4({width:function(){return H()+"px"},
"margin-right":function(){return(rc()===R().length-1?0:jW())+"px"}})},_.t(sse,{data:ao.data,
palette:_.jE(I.palette),isLastItem:function(){return rc()===R().length-1}}))},
lockupViewModel:function(ao,rc){var Ta=ao.data;return _.t("div",{"on:focusin":_.YY(function(){var f_=rc();f_!==$A()&&(f_<$A()?q(D(x()-F(1))):q(D(x()+F(1))),y(x()),BH(f_));return!0}),
style:_.p4({width:function(){return H()+"px"},
"margin-right":function(){return(rc()===R().length-1?0:jW())+"px"}})},_.t(_.W7,{data:Ta,
containerType:4,sizing:eW,protectBackground:I.protectBackground,thumbnailFixedWidth:function(){return euA(Ta())+"px"},
thumbnailTargetWidth:function(){return euA(Ta())},
force16By9ThumbnailAspectRatio:oe}))},
suspenseViewModel:function(ao,rc){return _.t("div",{style:_.p4({width:function(){return H()+"px"},
"margin-right":function(){return(rc()===R().length-1?0:jW())+"px"}})},_.t(T8W,{data:ao.data}))}}))),_.t(_.U,{cond:X,
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.p4({top:function(){return jf()}})},_.t(_.aP,{data:O},{buttonViewModel:function(ao){return _.t(_.My,{data:ao.data,
onClick:function(){q(D(x()-F(void 0)));y(x())}})}}))}}),_.t(_.U,{cond:B,
then:function(){return _.t("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.p4({top:function(){return jf()}})},_.t(_.aP,{data:w},{buttonViewModel:function(ao){return _.t(_.My,{data:ao.data,
onClick:function(){q(D(x()+F(void 0)));y(x())}})}}))}})))},"Fe");
_.r_.idomCompat=!0;var Vyf=_.d(function(I){var y=function(){return I.data().targetId||""},D=function(){var X;
return((X=I.data())==null?void 0:X.expansionEntityKey)||""},F=_.zj(_.Wp_,D),R=!0,O=function(){var X;
return((X=F())==null?void 0:X.value)===y()},w=function(X){_.ry(_.WS("stringEntity",D(),{key:D(),
value:X?y():""}))};
_.OJ(function(){R=!1;I.data().isExpanded&&w(!0)});
var v=function(){if(O()){var X=!0;I.onCollapse!==void 0&&(X=I.onCollapse());X&&w(!1)}else w(!0)},P=_.YY(v),K=function(){var X;
return(((X=I.accordionStyle)==null?void 0:X.call(I))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},r=_.DF("div"),N=function(){var X,f;
return(f=(X=_.u(I.data().rendererContext,_.W_))==null?void 0:X.label)!=null?f:""},h=function(){var X,f;
return{disabled:(X=I.hideIfNotExpanded)==null?void 0:X.call(I),ariaHidden:(f=I.hideIfNotExpanded)==null?void 0:f.call(I)}},x={},q={};
return _.t("yt-accordion-item-view-model",{class:_.XH("ytAccordionItemViewModelHost",I.className,(x.ytAccordionItemViewModelExpanded=function(){return O()},x.ytAccordionItemViewModelHidden=function(){var X;
return(X=I.hideIfNotExpanded)==null?void 0:X.call(I)},x.ytAccordionItemViewModelMini=K,x)),
"data-target-id":y},_.t("div",{class:"ytAccordionItemViewModelContainer"},_.t("div",{class:"ytAccordionItemViewModelLeftSection","on:click":P,title:N,"aria-hidden":function(){var X;return(X=I.hideIfNotExpanded)==null?void 0:X.call(I)}},_.t(_.jr,{text:function(){return I.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:N})),_.t("div",{class:"ytAccordionItemViewModelRightSection"},_.t(_.aP,{data:function(){return O()?I.data().expandButton:I.data().collapseButton}},{buttonViewModel:function(X){return _.t(_.My,{data:X.data,
className:"ytAccordionItemViewModelToggleButton",onClick:v,buttonOverrides:h})}}))),_.t("div",{class:"ytAccordionItemViewModelContainer"},_.t("div",{class:_.XH("ytAccordionItemViewModelContent",(q.ytAccordionItemViewModelExpandedSubtitle=function(){return O()},q)),
el:r,style:_.p4({"max-height":function(){return R?"auto":O()?r.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!O()}},_.t(_.U,{cond:function(){return!K()},
then:function(){return _.t(_.jr,{text:function(){return I.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.t(_.aP,{data:function(){return I.data().content}},{horizontalShelfViewModel:function(X){return _.t(_.r_,{data:X.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"He");_.ZmW=_.d(function(I){var y=_.J((0,_.F3a)(I.data)).next().value,D=function(){return I.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},F=function(){return D()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},R=_.J(_.$M(!0,void 0,"VFpYAb")),O=R.next().value,w=R.next().value,v=function(){return F()&&O()},P=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){w(!O())}}},K=_.YY(function(){y().onTitleTap&&_.OE(y().onTitleTap||{})});
R={};return _.t("yt-accordion-view-model",{class:_.XH("ytAccordionViewModelHost",(R.ytAccordionViewModelMinimized=function(){return v()},R)),
"data-target-id":function(){return I.data().targetId||""}},_.t(_.U,{cond:function(){return F()||!!y().title},
then:function(){return _.t("div",{class:"ytAccordionViewModelHeader"},_.t("div",{class:"ytAccordionViewModelTitleSection"},_.t("div",{class:"ytAccordionViewModelTitleWrapper"},_.t(_.U,{cond:function(){return!!I.data().headerIcon},
then:function(){return _.t(_.mj,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var r;return(r=I.data().headerIcon)==null?void 0:r.iconType}})}}),_.t("div",{class:"ytAccordionViewModelTitle",
"on:click":K},_.t(_.jr,{className:"ytAccordionViewModelTitleText",text:function(){return y().title}})))),_.t("div",{class:"ytAccordionViewModelButtonSection"},_.t(_.U,{cond:F,
then:function(){return _.t(_.me,{data:P,iconName:function(){return v()?"chevron_down":"chevron_collapse"}})}})))}}),_.t("div",{class:"ytAccordionViewModelContent"},_.t(_.aP,{data:function(){return y().contents}},{accordionItemViewModel:function(r){return _.t(Vyf,{data:r.data,
className:"ytAccordionViewModelRow",accordionStyle:D,hideIfNotExpanded:v,onCollapse:function(){return F()?(w(!0),!1):!0}})}})),_.t("div",null,_.t(_.U,{cond:function(){return!F()&&(!!y().disclaimerFooter||!!y().footer)},
then:function(){return _.t("div",{class:"ytAccordionViewModelFooter"},_.t(_.jr,{text:function(){return y().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.t(_.aP,{data:function(){return I.data().footer}},{flexibleActionsViewModel:function(r){return _.t(_.wK,{data:r.data,
layout:0})}}))}})))},"Ie");_.NK(_.ZmW,"yt-accordion-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=null,D=null,F,R=(F=_.nR().resolve(_.fR(_.cS)))==null?void 0:F(),O=_.J(_.$M(!1,void 0,"CmEVtc"));F=O.next().value;var w=O.next().value;O=_.J(_.$M(!0,void 0,"yo9dR"));var v=O.next().value,P=O.next().value,K=_.DF("textarea",function(f){_.H_(264503,f,y,function(m){y=m})}),r=function(f){w(!0);
f={learningJourneyFormData:{query:f}};_.OE(I.data().searchEndpoint||{},{form:{formData:f}});return!1},N=_.YY(function(f){f.target.closest("button-view-model")&&w(!0)});
O=_.YY(function(){P(K.value.value.length===0)});
var h=_.YY(function(f){if(f.key==="Enter"&&!f.shiftKey&&!v()){var m=f.target;f.preventDefault();r(m.value)}}),x={},q={},X={};
return _.t("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.t("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.t(_.UE,{data:function(){return I.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.t("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.t("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.t("div",{class:_.XH("ytLearningJourneyZeroStateSearchBar",(x.ytLearningJourneyZeroStateSearchBarDark=R,x))},_.t("textarea",{class:_.XH("ytLearningJourneyZeroStateTextInput",(q.ytLearningJourneyZeroStateTextInputDark=R,q)),el:K,"on:keyup":O,"on:keydown":h,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.t("div",{class:_.XH("ytLearningJourneyZeroStateSearchButtonContainer",(X.ytLearningJourneyZeroStateSearchButtonContainerDark=R,X))},_.t(_.My,{data:function(){return _.u(I.data().searchButton,_.Kb)},
className:"search-button",onClick:function(){return r(K.value.value)},
buttonOverrides:function(){return{disabled:v(),style:R?"mono-inverse":"mono",size:"XL"}}}))),_.t(_.U,{cond:function(){return!!I.data().errorBanner},
then:function(){return _.t("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.K4(function(f){_.H_(264617,f,D,function(m){D=m})})},_.t(_.aP,{data:function(){return I.data().errorBanner}},{alertBannerViewModel:function(f){return _.t(_.h8n,{data:f.data,
"client-ve-type":264617})}}))}})),_.t(_.U,{cond:F,
then:function(){return _.t("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.t(_.aP,{data:function(){return I.data().loader}},{learningJourneyLoaderViewModel:function(f){return _.t(_.AyG,{data:f.data})}}))},
else:function(){return _.t("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.t(_.U,{cond:function(){return!!I.data().learningJourneyShelf},
then:function(){return _.t("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.t("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return I.data().learningJourneySectionTitle}),_.t(_.aP,{data:function(){return I.data().learningJourneyShelf}},{horizontalShelfViewModel:function(f){return _.t(_.r_,{data:f.data,
centerAlignItems:!0})}}))}}),_.t("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.t("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return I.data().suggestedJourneySectionTitle}),_.t("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":N},_.t(_.aP,{data:function(){return I.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(f){return _.t(_.wK,{data:f.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Je"),"yt-learning-journey-zero-state",{props:{data:_.om}});var gGc=_.d(function(I){var y=I.data;return _.t("ytvl-live-leaderboard-item-action-content-view-model",{class:_.XH("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.t(_.jr,{text:function(){var D;return(D=y())==null?void 0:D.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.t(_.aP,{data:function(){return y().actionButton}},{buttonViewModel:function(D){return _.t(_.My,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:D.data})}}))},"Ke");var ICY=_.d(function(I){var y=I.data;return _.t("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.XH("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.t(_.jr,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var D;return(D=y())==null?void 0:D.displayName},
ellipsisTruncate:!0}),_.t(_.aP,{data:function(){return y().badge}},{buttonViewModel:function(D){return _.t(_.My,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:D.data})}}))},"Le");_.NK(_.d(function(I){var y=I.data;return _.t("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.t("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.t(_.jr,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var D;return(D=y())==null?void 0:D.rank}})),_.t("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF})),_.t("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.t(_.aP,{data:function(){return y().content}},{liveLeaderboardItemChannelContentViewModel:ICY,
liveLeaderboardItemActionContentViewModel:gGc})),_.t(_.jr,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var D;return(D=y())==null?void 0:D.points}}))},"Me"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;return _.t("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.t(_.jr,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var D,F;return(D=y())==null?void 0:(F=D.ranking)==null?void 0:F.rank}}),_.t("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF})),_.t(_.jr,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var D,F;return(D=y())==null?void 0:(F=D.channelContent)==null?void 0:F.channelName}}),_.t(_.jr,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var D;return(D=y())==null?void 0:D.points}}))},"Ne"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.om}});var yLQ=_.d(function(I){I=_.o6(I,{wrapper:!1}).wrapper;return _.t(_.U,{cond:I,then:function(){return _.t("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.t("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.t("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Oe");
yLQ.idomCompat=!0;var DS8=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],FJb=_.d(function(I){var y=I.data;var D=_.K4(),F=_.su(function(){return y().command},void 0,"fyYsT");
_.wZ(function(){F()&&_.Do(F(),{form:{element:D.value}})},"B0nxdb");
return _.t("div",{el:D,class:"YtQrCodeRendererHostContainer"},_.t(_.U,{cond:function(){return y().qrCodeImage},
then:function(R){return _.t(_.UE,{data:R,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.t(_.U,{cond:function(){return y().spinner},
then:function(){return _.t(yLQ,null)}})}}),_.t(_.U,{cond:function(){return y().label},
then:function(R){return _.t(_.jr,{text:R,className:"YtQrCodeRendererHostLabel"})}}),_.t(_.U,{cond:function(){return y().labels},
then:function(R){return _.t("div",{class:"YtQrCodeRendererHostLabels"},_.t(_.gZ,{each:R},function(O){return _.t(_.jr,{text:O})}))}}))},"Re");_.NK(_.d(function(I){var y=I.data;var D=_.su(function(){return y().qrEntityKey},void 0,"LmZ2xf"),F=_.su(function(){return y().deleteEntityOnDismiss},void 0,"my0Tzb"),R=_.su(function(){return y().command},void 0,"hzECIb"),O=_.zj(IDt,D);
I=_.su(function(){return y().qrCodeImage},void 0,"AnD9rc");
var w=_.su(function(){return y().style&&DS8.includes(y().style)},void 0,"f5fZv"),v=_.pT({visibilityCallback:function(P){P&&R()&&_.Do(R())},
showOption:{calledOnce:!0,state:"visible"}});_.LR(function(){_.tI(function(){F()&&D()&&_.Uv().dispatch(_.WS("qrCodeEntity",D()))})});
return _.t("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.K4(v)},_.t(_.U,{cond:w,then:function(){return _.t(_.U,{cond:O,then:function(P){return _.t(FJb,{data:P})}})}}),_.t(_.U,{cond:I,
then:function(P){return _.t(_.UE,{data:P,alt:""})}}))},"Pe"),"yt-qr-code-renderer",{props:{data:_.om}});var O5a=_.d(function(I){var y=function(){return _.Z7(1728053247&(I.barColor!==void 0?zE(I.barColor()):4278190080))};
return _.t("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.t("div",{class:"ytVideoOverviewGhostCardDetails"},_.t(R48,{animationDelay:0,percentWidth:100,barColor:function(){return y()}}),_.t(R48,{animationDelay:600,
percentWidth:60,barColor:function(){return y()}})))},"Se"),R48=_.d(function(I){return _.t("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+I.percentWidth()+"%"}},_.t("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var y=I.animationDelay(),D=I.barColor();return"animation-delay:"+y+"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    );"}}))},"Te");var LJZ;_.JLb=_.d(function(I){function y(f){O(f)}
var D=I.data;var F=_.K4();I=_.J(_.$M(-1,void 0,"RrZHOc"));var R=I.next().value,O=I.next().value;I=_.J(_.$M(0,void 0,"bSVocc"));var w=I.next().value,v=I.next().value,P={},K=_.zj(TWA,function(){return D().asyncDataEntityKey}),r=function(){var f;
if((f=K())==null?0:f.videoOverviewViewModel){var m;return _.u((m=K())==null?void 0:m.videoOverviewViewModel,E3_)}return D()},N=function(f){O(f);
(F==null?0:F.value)&&F.value.children[f]&&F.value.children[f].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},h=function(){var f;
return((f=r())==null?void 0:f.headerSubtext)!==void 0?!0:!1},x=function(){var f,m=zE((f=r())==null?void 0:f.titleColor);
return m?"color: "+_.Z7(m)+";":void 0},q=function(){var f,m=zE((f=r())==null?void 0:f.subtextColor);
return m?"color: "+_.Z7(m)+";":void 0},X=function(){return _.t("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.t("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return x()}},_.t(_.jr,{text:function(){var f;
return(f=r())==null?void 0:f.headerText}})),_.t(_.U,{cond:h,
then:function(){return _.t("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.t("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return q()}},_.t(_.mj,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.t("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return q()}},_.t(_.jr,{text:function(){var f;
return(f=r())==null?void 0:f.headerSubtext}})))}}))};
I={};return _.t("yt-video-overview-view-model",{class:_.XH("ytGenAiVideoOverviewViewModelHost",(I.ytGenAiVideoOverviewViewModelMweb=!1,I.ytGenAiVideoOverviewViewModelDesktop=!0,I)),el:_.K4(IlB(function(){var f;if((f=r())==null||!f.inlinePlaybackEndpoint)return null;var m;f=P==null?void 0:(m=P.thumbnailElRef)==null?void 0:m.value;if(!f)return null;var z;m=(z=r())==null?void 0:z.inlinePlaybackEndpoint;z=_.u(m,dLM);return{multipleVideoPreviewData:{data:(z==null?0:z.playerDescriptors)&&(z==null?0:z.playerDescriptors.length)?
z.playerDescriptors:[],thumbnailElement:f,trackingParams:"test",callbacks:{onPlaybackStarted:N},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}}),function(f){_.LR(function(){v(Math.min((f.clientWidth-24)/4-8,72))})}),
style:function(){var f,m=zE((f=r())==null?void 0:f.backgroundColor);return m?"background-color: "+_.Z7(m)+";":void 0}},_.t(_.U,{cond:function(){var f;
return(f=r())==null?void 0:f.isLoading},
then:function(){return _.t(O5a,{barColor:function(){var f;return(f=r())==null?void 0:f.titleColor}})},
else:function(){return _.t(_.ni,null,null,_.t("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.t(_.aP,{data:function(){var f;return(f=r())==null?void 0:f.thumbnail}},{thumbnailViewModel:function(f){return _.t(YZ,{data:f.data,
aspectRatio:0,playbackRef:IKA(P)})}})),_.t("div",{class:"ytGenAiVideoOverviewViewModelDetails"},X(),_.t(_.U,{cond:function(){var f,m,z,B;
return((f=r())==null?void 0:(m=f.listItems)==null?void 0:m.length)!==void 0&&((z=r())==null?void 0:(B=z.listItems)==null?void 0:B.length)>0?!0:!1},
then:function(){return _.t("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:F},_.t(_.gZ,{each:function(){var f;return(f=r())==null?void 0:f.listItems}},function(f,m){return _.t(LJZ,{image:f.image,
index:m,isSelected:function(){return m()===R()},
onClick:y,itemWidth:w})}))}}),_.t("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.t("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return x()}},_.t(_.jr,{text:function(){var f,m,z,B,C,H,e;
return(e=(f=r())==null?void 0:(m=f.listItems)==null?void 0:(z=m[R()])==null?void 0:z.headline)!=null?e:(B=r())==null?void 0:(C=B.listItems)==null?void 0:(H=C[0])==null?void 0:H.headline}})),_.t("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return q()}},_.t(_.jr,{text:function(){var f,m,z,B,C,H,e;
return(e=(f=r())==null?void 0:(m=f.listItems)==null?void 0:(z=m[R()])==null?void 0:z.subtext)!=null?e:(B=r())==null?void 0:(C=B.listItems)==null?void 0:(H=C[0])==null?void 0:H.subtext}})))))}}))},"Ue");
LJZ=_.d(function(I){var y=I.image;var D=I.itemWidth;var F=I.index;var R=I.isSelected;var O=I.onClick;I=_.YY(function(){F!==void 0&&O!==void 0&&O(F());return!1});
var w={};return _.t("div",{class:_.XH("ytGenAiVideoOverviewViewModelCarouselItem",(w.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return R==null?void 0:R()},w)),
style:function(){return"width: "+D()+"px;"},
"on:click":I},_.t(_.UE,{data:y,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.t(_.U,{cond:function(){return R==null?void 0:R()},
then:function(){return _.t("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.t("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ve");
_.JLb.idomCompat=!0;_.NK(_.JLb,"yt-video-overview-view-model",{props:{data:_.om}});_.wHT=_.d(function(I){var y=I.data;var D=I.topbarOffset;var F,R=((F=_.nR().resolve(_.fR(_.cS)))==null?void 0:F())||!1;return _.t("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var O=y();var w,v,P=R?(w=O.config)==null?void 0:w.darkThemeBackgroundColor:(v=O.config)==null?void 0:v.lightThemeBackgroundColor;O=P?_.Vp(P):void 0;O="background-color: "+O+";";D!==void 0&&(O+="top: -"+D()+"px;");return O},
"aria-hidden":!0},_.t(_.U,{cond:function(){var O,w,v;return!!((O=y().backgroundImageConfig)==null?0:(w=O.image)==null?0:(v=w.sources)==null?0:v.length)},
then:function(){return _.t(_.UE,{data:function(){var O;return(O=y().backgroundImageConfig)==null?void 0:O.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.t("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+sSq(R,y().gradientColorConfig)+";"}}))},"We");
_.wHT.idomCompat=!0;var vAa=_.d(function(I){var y=I.data;var D=I.isOverlay;return _.t("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.t("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.t(_.aP,{data:function(){return y().header}},{sectionHeaderViewModel:function(F){return _.t(_.BA,{data:F.data,
isOverlay:D})}})),_.t("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.t(_.aP,{data:function(){return y().channelInfoButtons}},{flexibleActionsViewModel:_.wK})),_.t("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.t(_.aP,{data:function(){return y().description}},{descriptionPreviewViewModel:function(F){return _.t(_.Co,{data:F.data,
isOverlay:D})}})))},"Xe");
vAa.idomCompat=!0;var SqZ=_.d(function(I){var y=I.data;var D={};return _.t("factoid-view-model",{class:_.XH("ytwFactoidViewModelHost",(D.ytwFactoidViewModelHostOverlay=I.isOverlay,D))},_.t(_.jr,{text:function(){return y().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.t(_.jr,{text:function(){return y().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ye");
SqZ.idomCompat=!0;var tWb=_.d(function(I){var y=I.data;var D=I.isOverlay;return _.t("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.t(_.aP,{data:function(){return y().factoids}},{factoidViewModel:function(F){return _.t(SqZ,{data:F.data,
isOverlay:D})}}))},"Ze");
tWb.idomCompat=!0;_.P_e=_.d(function(I){var y=I.data;var D=I.isOverlay;return _.t("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.t(_.aP,{data:function(){return y().items}},{channelInfoViewModel:function(F){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(vAa,{data:F.data,
isOverlay:D}))},
coursePerksViewModel:function(F){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(Wl_,{data:F.data,isOverlay:D}))},
descriptionPreviewViewModel:function(F){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(_.Co,{data:F.data,isOverlay:D}))},
factoidsRowViewModel:function(F){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(tWb,{data:F.data,isOverlay:D}))},
progressViewModel:function(F){return _.t("div",{class:"ytwCourseMetadataViewModelHostItem"},_.t(CUP,{data:F.data,isOverlay:D}))}}))},"$e");var KJR=_.d(function(I){return _.t("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.t(_.aP,{data:function(){return I.data().content}},{courseMetadataViewModel:function(y){return _.t(_.P_e,{data:y.data,
isOverlay:I.isOverlay})},
progressViewModel:function(y){return _.t(CUP,{data:y.data})}}))},"af");var USY=_.d(function(I){var y=I.data;I=I.className;var D=function(){var R;return _.sP((R=y())==null?void 0:R.rendererContext)},F={};
F=(F.dynamicTextViewModelHost=!0,F.dynamicTextViewModelHostTappable=function(){return D()},F);
return _.t("yt-dynamic-text-view-model",{el:_.K4(_.VM(function(){var R;return(R=y())==null?void 0:R.rendererContext})),
role:function(){return D()?"link":void 0},
tabindex:function(){return D()?0:void 0},
class:_.XH(I,F)},_.t("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var R,O,w;return(w=(O=_.u((R=y())==null?void 0:R.rendererContext,_.W_))==null?void 0:O.label)!=null?w:""}},_.t(_.jr,{text:function(){return y().text},
userInput:!0})))},"bf");
USY.idomCompat=!0;_.jc=_.d(function(I){var y=I.data;var D=I.isPositionRelative;var F=_.ZyJ("(max-width: 527.9px)"),R=function(){var O,w;return(w=(O=y())==null?void 0:O.style)!=null?w:"IMAGE_BANNER_STYLE_FULL_BLEED"};
I={};return _.t("yt-image-banner-view-model",{el:_.K4(_.VM(function(){var O;return(O=y())==null?void 0:O.rendererContext})),
class:_.XH((I.ytImageBannerViewModelHost=!0,I.ytImageBannerViewModelInset=function(){return glt(R())},I.ytImageBannerViewModelPositionAbsolute=function(){return _.Ki(!0)&&!(D==null?0:D())},I.ytImageBannerViewModelSmallInset=function(){return glt(R())&&F()},I.ytImageBannerViewModelTappable=function(){var O;
return _.sP((O=y())==null?void 0:O.rendererContext)},I))},_.t(_.U,{cond:function(){var O;
return(O=y())==null?void 0:O.image},
then:function(){return _.t(_.UE,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.t(_.aP,{data:function(){var O;
return(O=y())==null?void 0:O.overlays}},{thumbnailHoverOverlayViewModel:OH}))},"cf");
_.jc.idomCompat=!0;var rLb;rLb=_.d(function(I){var y=I.condition;var D=I.content;return _.t(_.U,{cond:y,then:function(){return _.t("div",{class:"yt-page-header-view-model__scroll-container"},D())},
else:function(){return D()}})},"df");
_.joe=_.d(function(I){var y=I.data;var D=I.noPadding;var F=I.enableBanner;var R=I.cinematicContainerTopbarOffset;var O=I.allowCinematicContainerOverflow;var w=I.displayAsSidebar;var v=I.displayAsPanel;var P=I.alwaysUseMediumTextDescription;var K=Isq(),r=function(){return!!y().image||!!y().animatedImage},N=function(){return!!y().background},h=function(){return(w==null?0:w())||(v==null?0:v())?1:K()},x=function(){return h()===1},q=function(){return x()||h()===2},X=function(){return h()===4},f=function(){var xA=
y();
var dq=!!y().heroImage;var $A=h(),BH=yBB(y()),jf=w==null?void 0:w(),yg=!xA.metadata,eW;if(eW=dq?_.u(xA.heroImage,PLc):_.u(xA.animatedImage||xA.image,PLc)){xA=eW.style;var oe=eW.layoutMode;if(oe!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(eW=XIH(GuH(eW)),dq)dq=VGt($A,xA,oe,eW,jf);else b:if(yg)dq=$A===1?{size:48}:{size:72};else switch($A){case 1:dq={size:72};break b;case 2:dq={size:120};break b;default:dq=BH<4?{size:120}:{size:160}}else dq=void 0}else dq={size:0};return dq};
I={};I=_.XH((I["yt-page-header-view-model"]=!0,I["yt-page-header-view-model--no-padding"]=function(){return!(D==null||!D())},I["yt-page-header-view-model--small-top-padding"]=function(){return x()&&!y().actions&&!(v==null?0:v())||h()===2&&!(r()||y().heroImage)},I["yt-page-header-view-model--small-bottom-padding"]=function(){return q()&&!y().actions&&!(v==null?0:v())},I["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(O==null?0:O())},I["yt-page-header-view-model--display-as-sidebar"]=
w,I));
var m={},z=_.XH((m["yt-page-header-view-model__page-header-headline"]=!0,m["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var xA;return(xA=f())==null?void 0:xA.allowFullWidth},m)),B=function(){var xA;
return q()&&!((xA=f())==null?0:xA.allowFullWidth)},C=function(){return x()&&(!!y().heroImage||r())&&yBB(y())>0},H=function(){return C()&&(v==null?void 0:v())};
m={};var e=_.XH((m["yt-page-header-view-model__page-header-title"]=!0,m["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!C()},m["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return C()&&!H()},m["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=H,m["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=N,m));
m={};var T=_.XH((m["yt-page-header-view-model__page-header-headline-image"]=!0,m["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!y().heroImage&&q()},m));
m={};var L5=_.XH((m["yt-page-header-view-model__page-header-banner-container"]=F,m["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var xA;return(F==null?void 0:F())&&((xA=_.u(y().banner,_.UGe))==null?void 0:xA.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},m));
m={};var vH=_.XH((m["yt-page-header-view-model__page-header-content-metadata"]=!0,m["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=N,m));m={};var u_=_.XH((m["yt-page-header-view-model__page-header-flexible-actions"]=!0,m["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!y().metadata||q()},m["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!q()},m));
m={};var jW=_.XH((m["yt-page-header-view-model__page-header-attribution"]=!0,m["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=N,m));return _.t("yt-page-header-view-model",{class:I},_.t(_.U,{cond:N,then:function(){return _.t("div",{class:"yt-page-header-view-model__page-header-background"},_.t(_.aP,{data:function(){return y().background}},{cinematicContainerViewModel:function(xA){return _.t(_.wHT,{data:xA.data,
topbarOffset:R})}}))}}),_.t(rLb,{condition:function(){return!(w==null||!w())},
content:function(){return _.t("div",{class:"yt-page-header-view-model__page-header-content"},_.t(_.U,{cond:function(){return(F==null?void 0:F())&&y().banner},
then:function(){return _.t("div",{class:L5},_.t(_.aP,{data:function(){return y().banner}},{imageBannerViewModel:_.jc}))}}),_.t("div",{class:z},_.t(_.U,{cond:r,
then:function(){return _.t(_.aP,{data:function(){var xA;if(!(xA=y().animatedImage)){xA=y();if(r()){var dq=xA=Object.assign({},xA),$A=h(),BH=yBB(y()),jf=dq.image,yg=_.u(jf,Kfn),eW=yg==null?void 0:yg.avatar,oe=_.u(eW,_.gP);if(jf&&eW&&oe){switch($A){case 1:oe.avatarImageSize="AVATAR_SIZE_XL";break;case 2:oe.avatarImageSize="AVATAR_SIZE_XXL";break;default:BH<4?oe.avatarImageSize="AVATAR_SIZE_XXL":oe.avatarImageSize="AVATAR_SIZE_XXXL"}_.sv(eW,_.gP,Object.assign({},oe));yg.avatar=Object.assign({},eW);_.sv(jf,
Kfn,Object.assign({},yg));dq.image=Object.assign({},jf)}}xA=xA.image}return xA}},{contentPreviewImageViewModel:function(xA){return _.t(_.mF,{data:xA.data,
className:T,imageSizeConfig:f})},
decoratedAvatarViewModel:function(xA){return _.t(_.Jh,{data:xA.data,className:T})}})}}),_.t(_.U,{cond:function(){return!!y().heroImage&&!B()},
then:function(){return _.t(_.aP,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(xA){return _.t(_.mF,{data:xA.data,
className:T,imageSizeConfig:f})}})}}),_.t("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.t(_.U,{cond:function(){return!!y().heroImage&&B()},
then:function(){return _.t("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.t(_.aP,{data:function(){return y().heroImage}},{contentPreviewImageViewModel:function(xA){return _.t(_.mF,{data:xA.data,
className:T,imageSizeConfig:f})}}))}}),_.t(_.aP,{data:function(){return y().title}},{dynamicTextViewModel:function(xA){return _.t(USY,{data:xA.data,
className:e})}}),_.t(_.aP,{data:function(){return y().metadata}},{contentMetadataViewModel:function(xA){return _.t(_.zR,{data:xA.data,
layout:function(){return x()?1:0},
className:vH,isOverlay:N,useMediumText:X})}}),_.t(_.U,{cond:function(){return y().description&&!x()},
then:function(){return _.t(_.aP,{data:function(){return y().description}},{descriptionPreviewViewModel:function(xA){return _.t(_.Co,{data:xA.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:N,maxLinesOverride:function(){return x()?void 0:1},
useMediumText:function(){return(P==null?void 0:P())||X()}})}})}}),_.t(_.U,{cond:function(){return y().attribution&&!q()},
then:function(){return _.t(_.aP,{data:function(){return y().attribution}},{attributionViewModel:function(xA){return _.t(M1,{data:xA.data,
className:jW,useMediumText:X})}})}}),_.t(_.U,{cond:function(){return y().actions&&!q()},
then:function(){return _.t(_.aP,{data:function(){return y().actions}},{flexibleActionsViewModel:function(xA){return _.t(_.wK,{data:xA.data,
layout:function(){return DxJ(h())},
className:u_})}})}}))),_.t("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.t(_.U,{cond:function(){return y().description&&x()},
then:function(){return _.t(_.aP,{data:function(){return y().description}},{descriptionPreviewViewModel:function(xA){return _.t(_.Co,{data:xA.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:N,maxLinesOverride:function(){return x()?void 0:1},
useMediumText:function(){return(P==null?void 0:P())||X()}})}})}}),_.t(_.U,{cond:function(){return y().attribution&&q()},
then:function(){return _.t(_.aP,{data:function(){return y().attribution}},{attributionViewModel:function(xA){return _.t(M1,{data:xA.data,
className:jW,useMediumText:X})}})}}),_.t(_.U,{cond:function(){return y().actions&&q()},
then:function(){return _.t(_.aP,{data:function(){return y().actions}},{flexibleActionsViewModel:function(xA){return _.t(_.wK,{data:xA.data,
layout:function(){return DxJ(h())},
className:u_})}})}})),_.t("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.t(_.aP,{data:function(){return y().bottomMetadataFlexibleContainer}},{flexibleContainer:function(xA){return _.t(KJR,{data:xA.data,
isOverlay:N})}})))}}))},"ef");
_.joe.idomCompat=!0;_.NK(_.d(function(I){var y=_.J(_.$M(!1,void 0,"qvRy4d")),D=y.next().value,F=y.next().value;return _.t("yt-official-card-view-model",{class:_.XH("ytOfficialCardViewModelHost",I.className),style:_.p4({"background-color":function(){var R,O=zE((R=I.data())==null?void 0:R.backgroundColor);return O?_.Z7(O):void 0}})},_.t(_.aP,{data:function(){return I.data().header}},{pageHeaderViewModel:function(R){return _.t(_.joe,{data:R.data,
noPadding:!0})}}),_.t(_.aP,{data:function(){return I.data().contents}},{horizontalShelfViewModel:function(R){return _.t(_.r_,{data:R.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.t(_.U,{cond:D,
then:function(){return _.t("div",{class:"ytOfficialCardViewModelExpandedContent"},_.t(_.aP,{data:function(){return I.data().expandedContents}},{horizontalShelfViewModel:function(R){return _.t(_.r_,{data:R.data,
sizing:"MINI"})}}),_.t("div",{class:"ytOfficialCardViewModelCollapseButton"},_.t(_.aP,{data:function(){return I.data().collapseButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
onClick:function(){F(!D())}})}})))},
else:function(){return _.t("div",{class:"ytOfficialCardViewModelExpandButton"},_.t(_.aP,{data:function(){return I.data().expandButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
onClick:function(){F(!D())}})}}))}}))},"ff"),"yt-official-card-view-model",{props:{data:_.om,
className:_.om}});var oAa=_.d(function(I){var y,D=(y=_.nR().resolve(_.fR(_.cS)))==null?void 0:y();return _.t("ytw-search-friction-view-model",{class:_.XH("ytwSearchFrictionViewModelHost",I.className)},_.t("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.t("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.t(_.U,{cond:function(){return D&&I.data().darkThemeImage?I.data().darkThemeImage:I.data().image},
then:function(F){return _.t(_.UE,{data:F,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.t(_.aP,{data:function(){return I.data().overflowMenuButton}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.t(_.jr,{text:function(){return I.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.t(_.gZ,{each:function(){return I.data().bodyText||[]}},function(F){return _.t(_.jr,{text:F,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.t(_.aP,{data:function(){return I.data().actions}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.t(_.jr,{text:function(){return I.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.t(_.jr,{text:function(){return I.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"gf");
oAa.idomCompat=!0;_.NK(oAa,"ytw-search-friction-view-model",{props:{data:_.om,className:_.om}});_.ox=_.d(function(I){var y=_.DF("markdown-div"),D,F=(D=_.nR().resolve(_.fR(_.cS)))==null?void 0:D();_.wZ(function(){var R=y.value;var O=new QdM,w=new Map(O.JSC$9574_sanitizerTable.globalAttributePolicies);w.set("style",{policyAction:4});O.JSC$9574_sanitizerTable=new sm(O.JSC$9574_sanitizerTable.allowedElements,O.JSC$9574_sanitizerTable.elementPolicies,O.JSC$9574_sanitizerTable.allowedGlobalAttributes,w,O.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes);var v=["data-time"];if(v===void 0)w=
new Set(O.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes),w.add("data-"),O.JSC$9574_sanitizerTable=new sm(O.JSC$9574_sanitizerTable.allowedElements,O.JSC$9574_sanitizerTable.elementPolicies,O.JSC$9574_sanitizerTable.allowedGlobalAttributes,O.JSC$9574_sanitizerTable.globalAttributePolicies,w);else{w=new Set(O.JSC$9574_sanitizerTable.allowedGlobalAttributes);v=_.J(v);for(var P=v.next();!P.done;P=v.next()){P=P.value;if(P.indexOf("data-")!==0)throw Error("ka`"+P);w.add(P)}O.JSC$9574_sanitizerTable=
new sm(O.JSC$9574_sanitizerTable.allowedElements,O.JSC$9574_sanitizerTable.elementPolicies,w,O.JSC$9574_sanitizerTable.globalAttributePolicies,O.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes)}w=new Set(O.JSC$9574_sanitizerTable.allowedGlobalAttributes);w.add("class");O.JSC$9574_sanitizerTable=new sm(O.JSC$9574_sanitizerTable.allowedElements,O.JSC$9574_sanitizerTable.elementPolicies,w,O.JSC$9574_sanitizerTable.globalAttributePolicies,O.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes);
_.rj(R,_.uOP(O.build(),R1H(I.text())));O$S(y.value)},"OZ439c");
D={};return _.t("div",null,_.t("markdown-div",{class:_.XH("ytwMarkdownDivHost",(D.ytwMarkdownDivDark=F,D.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var R;return((R=I.isSmallText)==null?void 0:R.call(I))||!1},D.ytwMarkdownDivHostWrapCodeBlocks=function(){var R;
return((R=I.wrapCodeBlocks)==null?void 0:R.call(I))||!1},D.ytwMarkdownDivHostEnableDefaultStyling=function(){var R;
return!((R=I.disableDefaultStyling)==null?0:R.call(I))},D)),
el:y}))},"jf");
_.ox.idomCompat=!0;var NqT=_.d(function(I){var y=I.imageData;var D=_.jE(I.isInList,!1),F=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 _.t("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.t(_.U,{cond:function(){return y().image},
then:function(R){return _.t(_.UE,{data:R,alt:function(){return F().alt},
contentMode:function(){return F().contentMode},
targetWidth:function(){return F().targetWidth},
targetHeight:function(){return F().targetHeight},
className:function(){return F().className}})}}),_.t("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.t("div",{class:_.XH("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.t(_.jr,{text:function(){return y().title}})),_.t(_.gZ,{each:function(){var R;
return(R=y().description)!=null?R:[]}},function(R){return _.t("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.t(N7,{content:R}))})))},"kf"),h4a=_.d(function(I){var y=I.list;
var D=function(){var F;return(F=y().items)!=null?F:[]};
return _.t("div",{class:"ytwGenAiRichTextViewModelListContent"},_.t(_.U,{cond:function(){return y().title},
then:function(F){return _.t("div",{class:_.XH("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.t(_.jr,{text:F}))}}),_.t(_.U,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.t("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.t(_.gZ,{each:D},function(F){return _.t("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.t(N7,{content:F,isInList:!0}))}))}}),_.t(_.U,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.t("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.t(_.gZ,{each:D},function(F){return _.t("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.t(N7,{content:F,isInList:!0}))}))}}),_.t(_.U,{cond:function(){return y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.t("div",{class:"ytwGenAiRichTextViewModelImageList"},_.t(_.gZ,{each:D},function(F){return _.t("div",{class:"ytwGenAiRichTextViewModelListItem"},_.t(N7,{content:F,isInList:!0}))}))}}))},"lf"),xSg=_.d(function(I){var y=I.table;
return _.t("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.t("thead",null,_.t("tr",null,_.t(_.gZ,{each:function(){var D,F;return(F=(D=y().header)==null?void 0:D.cells)!=null?F:[]}},function(D){return _.t("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.t(_.gZ,{each:function(){return D.contents}},function(F){return _.t(N7,{content:F})}))}))),_.t("tbody",null,_.t(_.gZ,{each:function(){var D;
return(D=y().rows)!=null?D:[]}},function(D){return _.t("tr",null,_.t(_.gZ,{each:function(){return D.cells}},function(F){return _.t("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.t(_.gZ,{each:function(){return F.contents}},function(R){return _.t(N7,{content:R})}))}))})))},"mf"),N7=_.d(function(I){var y=I.content;
var D=_.jE(I.isInList,!1),F=function(){var R,O;return(O=(R=y().contentBlock)==null?void 0:R.contents)!=null?O:[]};
return _.t("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.t(_.U,{cond:function(){return y().text},
then:function(R){return _.t(_.jr,{className:"ytwGenAiRichTextViewModelText",text:R})}}),_.t(_.U,{cond:function(){return y().image},
then:function(R){return _.t(NqT,{imageData:R,isInList:D})}}),_.t(_.U,{cond:function(){return y().list},
then:function(R){return _.t(h4a,{list:R})}}),_.t(_.U,{cond:function(){return y().contentBlock},
then:function(){return _.t("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.t(_.gZ,{each:F},function(R){return _.t(N7,{content:R,isInList:!1})}))}}),_.t(_.U,{cond:function(){return y().table},
then:function(R){return _.t(xSg,{table:R})}}))},"nf"),lCg=_.d(function(I){var y={};
y=_.bp("ytwGenAiRichTextViewModelHost",(y.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.d6("search_overview_link_style")),y));return _.t("gen-ai-rich-text-view-model",{class:y},_.t(N7,{content:function(){return I.data().content}}))},"of");_.uty=_.d(function(I){var y=I.data;var D=function(){var X;return((X=y().loadingUi)!=null?X:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},F=function(){return y().isLoading&&(D()==="UNSPECIFIED"||D()==="GHOST_CARD")},R=function(){return!y().isLoading},O=function(){return!!y().content&&!y().contents},w=function(){return!!y().contents},v=function(){return!!y().nextQueryButtons},P=function(){return y().isLoading&&D()==="INVISIBLE"},K=function(){var X,f;
return(f=(X=y().headerIcon)==null?void 0:X.iconType)!=null?f:""},r=function(){var X;
return(X=y().content)!=null?X:""},N=function(){return!!y().sourcesSection},h,x=!((h=_.nR().resolve(_.fR(_.cS)))==null||!h()),q=_.su(function(){var X=[],f=y().contents;
if(f)for(var m=0;m<f.length;m++){var z=_.u(f&&f[m],qyg);z&&X.push(z)}return X},void 0,"gcCsZb");
_.LR(function(){y().isLoading||_.V_("so_re",void 0,"search_overview_answer")});
return _.t("ytd-overview-answer-view-model",{class:function(){var X={};X=(X.ytdOverviewAnswerViewModelHost=!0,X.ytdOverviewAnswerViewModelDarkBackground=x&&!P(),X.ytdOverviewAnswerViewModelLightBackground=!x&&!P(),X);return _.bp(X)}},_.t(_.U,{cond:function(){return!P()},
then:function(){return _.t(_.ni,null,_.t("h2",null,_.t("div",{class:"ytdOverviewAnswerViewModelHeader"},_.t(_.U,{cond:K,then:function(X){return _.t("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.t(_.mj,{icon:X}))}}),_.t("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.t("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return y().headerText}),_.t("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.t(_.jr,{text:function(){return y().headerSubtext}}))))),_.t(_.U,{cond:F,
then:function(){return _.t(LUq,null)}}),_.t(_.U,{cond:R,
then:function(){return _.t(_.ni,null,_.t(_.U,{cond:O,then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelText"},_.t(_.ox,{text:r,isSmallText:!0}))}}),_.t(_.U,{cond:w,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelRichText"},_.t(_.gZ,{each:q},function(X){return _.t(lCg,{data:X})}))}}),_.t(_.U,{cond:v,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.t(_.aP,{data:function(){return y().nextQueryButtons}},{buttonViewModel:function(X){return _.t(_.My,{data:X.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.r_}))}}),_.t("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.t("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.t(_.U,{cond:function(){return!!_.u(y().likeButtonViewModel,_.Lz)&&!!_.u(y().dislikeButtonViewModel,_.JT)},
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.t(_.SD,{data:function(){return _.u(y().likeButtonViewModel,_.Lz)},
disableIconAnimation:!0}),_.t(_.vQ,{data:function(){return _.u(y().dislikeButtonViewModel,_.JT)}}))}})),_.t(_.U,{cond:function(){var X;
return(X=y().sourcesSection)==null?void 0:X.headerText},
then:function(X){return _.t("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.t(_.jr,{text:X}))}})),_.t(_.U,{cond:N,
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelSources"},_.t(_.aP,{data:function(){var X;return(X=y().sourcesSection)==null?void 0:X.sourcesShelf}},{buttonViewModel:_.My,
horizontalShelfViewModel:function(X){return _.t(_.r_,{data:X.data,includeMargin:!0,hasPeek:!0})}}))}}),_.t(_.U,{cond:function(){return y().disclaimerText},
then:function(){return _.t("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.t(_.jr,{text:function(){return y().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"pf");var qqC=_.d(function(I){var y=_.o6(I,{}).data;return _.t("yt-shopping-content-line-item-view-model",{class:_.XH("ytShoppingContentLineItemViewModelHost")},_.t(_.jr,{text:function(){var D;return(D=y().text)==null?void 0:D.attributedString}}))},"qf");_.hH=_.d(function(I){I=_.o6(I,{});var y=I.data,D={};return _.t("yt-shopping-content-line-view-model",{class:_.XH("ytShoppingContentLineViewModelHost",I.className,(D.ytShoppingContentLineViewModelTruncateText=function(){return!y().wrapContent},D)),
style:_.p4({"--shopping-content-line-gap":function(){return y().itemGap?y().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return y().lineHeight?y().lineHeight+"px":void 0}})},_.t(_.gZ,{each:function(){return(y().items||[]).map(function(F){return _.u(F,pfe)}).filter(function(F){return!!F})}},function(F){return _.t(qqC,{data:F})}))},"rf");var EAT=_.d(function(I){var y=I.data;var D=function(){var O;return((O=y().image)==null?void 0:O.height)||48},F=function(){var O;
return((O=y().image)==null?void 0:O.width)||48},R=function(){return"width: "+F()+"px; height: "+D()+"px;"};
return _.t("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var O,w,v,P=((O=_.nR().resolve(_.fR(_.cS)))==null?0:O())?(w=y())==null?void 0:w.darkThemeBackgroundColor:(v=y())==null?void 0:v.lightThemeBackgroundColor;return"background-color: "+(P?_.Z7(P):"")+";"},
el:_.K4(_.VM(function(){var O;return(O=y())==null?void 0:O.rendererContext}))},_.t(_.U,{cond:function(){var O,w;
return(w=(O=y().image)==null?void 0:O.image)!=null?w:y().thumbnail},
then:function(O){return _.t("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var w;return"background-color: "+(((w=y().image)==null?0:w.backgroundColor)?_.Z7(y().image.backgroundColor):"")+";"+R()}},_.t(_.UE,{data:O,
height:D,width:F,style:R,alt:""}))}}),_.t("div",{class:"ytShoppingDescriptionItemViewModelText"},_.t(_.aP,{data:function(){return y().line1}},{shoppingContentLineViewModel:function(O){return _.t(_.hH,{data:O.data})}}),_.t(_.aP,{data:function(){return y().line2}},{shoppingContentLineViewModel:function(O){return _.t(_.hH,{data:O.data})}}),_.t(_.aP,{data:function(){return y().line3}},{shoppingContentLineViewModel:function(O){return _.t(_.hH,{data:O.data})}})))},"sf");var Gey=_.d(function(I){var y=I.data;var D=I.active;var F=_.DF("transcript-segment-view-model");_.wZ(function(){var R,O,w,v=((R=_.nR().resolve(_.fR(_.cS)))==null?0:R())?(O=y())==null?void 0:O.darkThemeColorPalette:(w=y())==null?void 0:w.lightThemeColorPalette;v&&(v.additiveBackground&&F.value.style.setProperty("--timestamp-active-background-color",_.Z7(v.additiveBackground)),v.textSecondary&&F.value.style.setProperty("--timestamp-active-color",_.Vp(v.textSecondary)))},"TnVCnb");
I={};return _.t("transcript-segment-view-model",{class:_.XH("ytwTranscriptSegmentViewModelHost",(I.ytwTranscriptSegmentViewModelHostActive=D,I.ytwTranscriptSegmentViewModelHostModern=_.l("enable_timeline_view_modern_transcript")||_.l("enable_timeline_view_modern_transcript_fe"),I)),el:F},_.t(_.U,{cond:function(){var R;return(R=y())==null?void 0:R.timestamp},
then:function(R){var O={};return _.t(_.ni,null,_.t("div",{class:_.XH("ytwTranscriptSegmentViewModelTimestamp",(O.ytwTranscriptSegmentViewModelTimestampActive=D,O)),"aria-hidden":!0},R),_.t("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var w=R().split(":").map(Number),v=_.J(w.reverse());w=v.next().value;var P=v.next().value;v=v.next().value;return _.dG5({hours:v,minutes:P,seconds:w})}))}}),_.t(_.jr,{text:function(){var R,O,w;
return(w=(R=y())==null?void 0:R.attributedText)!=null?w:{content:(O=y())==null?void 0:O.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"uf");var XHb=_.d(function(I){var y=I.data;return _.t("div",{class:"videoAttributesSectionViewModelHeader"},_.t("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.t("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return y().headerTitle}),_.t(_.U,{cond:function(){return y().headerInfoButton},
then:function(){return _.t(_.aP,{data:function(){return y().headerInfoButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.t(_.U,{cond:function(){return y().headerSubtitle},
then:function(){return _.t("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return y().headerSubtitle})}}))},"vf"),QoZ=_.d(function(I){function y(X){return Math.max(Math.min(X,0),K()-v())}
var D=I.data;var F;I=_.DF("div",function(X){var f=function(){r(X.clientWidth)};
f();window.ResizeObserver&&(F=new ResizeObserver(f),F.observe(X))});
var R=_.DF("div",function(X){P(X.scrollWidth)}),O=_.J(_.$M(0,void 0,"C3XQAe")),w=O.next().value;
O=O.next().value;var v=w,P=O;O=_.J(_.$M(0,void 0,"db7y3"));w=O.next().value;O=O.next().value;var K=w,r=O;w=_.J(_.$M(0,void 0,"RchC7"));var N=w.next().value,h=w.next().value;_.tI(function(){var X;(X=F)==null||X.disconnect()});
var x=function(){h(y(N()+K()))},q=function(){h(y(N()-K()))};
return _.t("yt-video-attributes-section-view-model",null,_.t("div",{class:"videoAttributesSectionViewModelHost"},_.t(_.U,{cond:function(){return D().headerTitle},
then:function(){return _.t(XHb,{data:D})}}),_.t("div",{class:_.XH("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:I},_.t("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.p4({transform:function(){var X=N();_.Pi("HTML_DIR")==="rtl"&&(X*=-1);return"translateX("+X+"px)"}}),
el:R},_.t(_.aP,{data:function(){return D().videoAttributeViewModels}},{videoAttributeViewModel:OUW}))),_.t(_.aP,{data:function(){return D().footerButton}},{buttonViewModel:function(X){return _.t(_.My,{data:X.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.t(_.U,{cond:function(){return N()<0&&D().previousButton},
then:function(){return _.t("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.t(_.aP,{data:function(){return D().previousButton}},{buttonViewModel:function(X){return _.t(_.My,{data:X.data,
onClick:x})}}))}}),_.t(_.U,{cond:function(){return N()>K()-v()&&D().nextButton},
then:function(){return _.t("div",{class:"videoAttributesSectionViewModelRightArrow"},_.t(_.aP,{data:function(){return D().nextButton}},{buttonViewModel:function(X){return _.t(_.My,{data:X.data,
onClick:q})}}))}})))},"wf");
QoZ.idomCompat=!0;var Yqa=_.d(function(I){var y=I.data;var D=I.active;var F={},R={};return _.t("timeline-item-view-model",{class:_.XH("ytwTimelineItemViewModelHost",(F.ytwTimelineItemViewModelHostChapterChild=I.chapterChild,F.ytwTimelineItemViewModelModern=_.l("enable_timeline_view_modern_transcript")||_.l("enable_timeline_view_modern_transcript_fe"),F))},_.t("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.t("div",{class:_.XH("ytwTimelineItemViewModelTimestamp",(R.ytwTimelineItemViewModelTimestampActive=
D,R))},function(){return y().timestamp})),_.t("div",{class:"ytwTimelineItemViewModelContentItems"},_.t(_.aP,{data:function(){return y().contentItems}},{transcriptSegmentViewModel:function(O){return _.t(Gey,{data:O.data,
active:D})},
videoAttributesSectionViewModel:QoZ})))},"xf");var fCb=_.d(function(I){var y=I.data;I={};return _.t("timeline-chapter-view-model",{class:_.XH("ytwTimelineChapterViewModelHost")},_.t("div",{class:_.XH("ytwTimelineChapterViewModelTitle",(I.ytwTimelineChapterViewModelModern=_.l("enable_timeline_view_modern_transcript")||_.l("enable_timeline_view_modern_transcript_fe"),I))},function(){return y().title}),_.t(_.aP,{data:function(){return y().contents}},{timelineItemViewModel:function(D){return _.t(Yqa,{data:D.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(D){return _.t(QoZ,{data:D.data})}}))},"yf");var nAR=_.d(function(I){var y=I.data;var D=_.DF("macro-markers-panel-item-view-model"),F=_.zj(_.Trq,function(){var O;return(O=y().markersEngagementPanelSyncEntityKey)!=null?O:""}),R=function(){var O;
return((O=F())==null?void 0:O.activeItemIndex)===y().index};
I=_.YY(function(O){var w,v,P,K,r;return _.S(function(N){if(N.nextAddress==1)return O.stopPropagation(),_.ea(_.HS(O),D.value,["A".toString(),"BUTTON".toString()])?N.return():(w=_.yz(y().onTap))?N.yield(_.Yz(),2):N.return();v=N.yieldResult;K=(P=_.u(w,_.t9))==null?void 0:P.startTimeSeconds;K===void 0||(r=v)!=null&&r.seekTo(K,!0);_.Cj(N)})});
return _.t("macro-markers-panel-item-view-model",{class:_.XH("ytwMacroMarkersPanelItemViewModelHost",{"is-active":R}),el:D,"on:click":I,tabindex:0,role:"button"},_.t(_.aP,{data:function(){var O;return(O=y())==null?void 0:O.item}},{timelineChapterViewModel:function(O){return _.t(fCb,{data:O.data,
active:R})},
timelineItemViewModel:function(O){return _.t(Yqa,{data:O.data,active:R})},
videoAttributeViewModel:OUW,shoppingDescriptionItemViewModel:EAT}))},"zf");
nAR.idomCompat=!0;_.NK(nAR,"macro-markers-panel-item-view-model",{props:{data:_.om}});_.NK(QoZ,"yt-video-attributes-section-view-model",{props:{data:_.om}});var pHG=_.d(function(I){var y=function(){var D,F,R;return(R=(D=I.data().leadingLogoAccessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)!=null?R:""};
return _.t("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.t(_.U,{cond:function(){return I.data().leadingLogo},
then:function(D){return _.t(_.UE,{className:"ytwFantasySectionHeaderViewModelLogo",data:D,alt:y})}}),_.t("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.t(_.jr,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return I.data().title}}),_.t(_.jr,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return I.data().subtitle}})),_.t(_.aP,{data:function(){return I.data().trailingButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Af");var mS8=_.d(function(I){var y={};y=_.XH("ytwFantasyTeamViewModelHost",(y.ytwFantasyTeamViewModelCompact=function(){var R;return!((R=I.compact)==null||!R.call(I))},y.ytwFantasyTeamViewModelUser=function(){return I.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},y.ytwFantasyTeamViewModelOpponent=function(){return I.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},y));
var D=function(){var R,O,w;return(w=(R=I.data().teamLogoAccessibility)==null?void 0:(O=R.accessibilityData)==null?void 0:O.label)!=null?w:""},F=_.zj(V6q,function(){return I.data().teamEntityKey});
return _.t("ytw-fantasy-team-view-model",{class:y},_.t(_.U,{cond:function(){return I.data().teamLogo},
then:function(R){return _.t(_.UE,{className:"ytwFantasyTeamViewModelLogo",data:R,alt:D})}}),_.t("div",{class:"ytwFantasyTeamViewModelMetadata"},_.t("div",{class:"ytwFantasyTeamViewModelHeader"},_.t(_.jr,{className:"ytwFantasyTeamViewModelScore",
text:function(){var R;return(R=F())==null?void 0:R.score}}),_.t(_.mj,{icon:function(){var R;
return(R=F())==null?void 0:R.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.t(_.jr,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var R;return(R=F())==null?void 0:R.projectedScore}})),_.t(_.jr,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return I.data().primaryText}}),_.t(_.jr,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return I.data().secondaryText}}),_.t(_.jr,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return I.data().tertiaryText}})),_.t(_.jr,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var R;return(R=F())==null?void 0:R.score}}))},"Bf");_.NK(_.d(function(I){return _.t("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.t("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.t(_.aP,{data:function(){return I.data().summaryHeader}},{fantasySectionHeaderViewModel:pHG})),_.t(_.aP,{data:function(){return I.data().userTeam}},{fantasyTeamViewModel:mS8}),_.t(_.aP,{data:function(){return I.data().opponentTeam}},{fantasyTeamViewModel:mS8}))},"Cf"),"fantasy-league-summary-view-model",{props:{data:_.om}});var MWb=_.d(function(I){var y=_.o6(I,{shape:{},useCustomTabRenderable:!1}),D=y.shape;y=y.useCustomTabRenderable;var F=I.customTabRenderable,R=function(){return D().disabled},O=function(){return D().selected},w=function(){return D().title},v=function(){return D().icon},P=_.DF("yt-tab-shape");
I=_.YY(function(N){var h;if(!R()&&((h=D().aTagConfig)==null?0:h.onclick))D().aTagConfig.onclick(N);return!1});
var K=_.YY(function(N){if(N.key==="Enter"||N.key==="ArrowUp"||N.key==="ArrowDown")N.preventDefault(),P.value.click();return!1}),r={};
return _.t("yt-tab-shape",{class:_.XH("yt-tab-shape",function(){return D().className},(r["yt-tab-shape__tab--last-tab"]=function(){return D().isLastTab},r["yt-tab-shape--host-disabled"]=R,r["yt-tab-shape--host-clickable"]=!F,r)),
role:F?void 0:"tab","aria-selected":O!=null?O:!1,"aria-disabled":R,tabindex:F?void 0:0,"on:click":I,"on:keydown":K,el:P,"tab-identifier":function(){return D().identifier},
"tab-title":w},_.t(_.U,{cond:y,then:function(){return F()},
else:function(){var N={},h={};return _.t(_.ni,null,_.t("div",{class:_.XH("yt-tab-shape__tab",(N["yt-tab-shape__tab--tab-selected"]=O,N))},_.t(_.U,{cond:v,then:function(x){return _.t(_.mj,{className:"yt-tab-shape__tab-icon",icon:function(){return x().iconType}})}}),w),_.t("div",{class:_.XH("yt-tab-shape__tab-bar",(h["yt-tab-shape__tab-bar--tab-bar-selected"]=O,h))}))}}))},"Df");
MWb.idomCompat={callbacks:{customTabRenderable:!0}};_.keR=_.d(function(I){var y=I.shape;I=_.J(_.$M(48,void 0,"nDAx4"));var D=I.next().value,F=I.next().value;I=_.J(_.$M(0,void 0,"GCgjqb"));var R=I.next().value,O=I.next().value,w=function(){return y().tabs},v=_.DF("yt-tab-group-shape"),P=function(){var h,x;
return(x=(h=w())==null?void 0:h.findIndex(function(q){return q.selected}))!=null?x:-1};
I=_.J(_.$M(!1,void 0,"SU01tf"));var K=I.next().value,r=I.next().value,N=function(){K()||_.w2.addJob(function(){r(!0)},0)};
_.wZ(function(){var h=P(),x=_.w2.addJob(function(){var q,X=((q=v.value)==null?void 0:q.querySelectorAll("yt-tab-shape"))||[],f;F(((f=h>-1?X[h]:void 0)==null?void 0:f.getBoundingClientRect().width)||0);for(f=q=0;f<h;f++)q+=X[f].offsetWidth+24;_.Pi("HTML_DIR")==="rtl"&&(q=-q);O(q);N()},8,0);
_.tI(function(){_.w2.cancelJob(x)})},"PMwgb");
I={};return _.t("yt-tab-group-shape",{class:_.XH("tabGroupShapeHost",(I.tabGroupShapeOverflowHidden=function(){return y().isOverflowHidden},I)),
el:v},_.t(_.U,{cond:w,then:function(h){return _.t(_.ni,null,_.t("div",{class:"tabGroupShapeTabs",role:"tablist"},_.t(_.gZ,{each:h},function(x,q){return _.t(MWb,{shape:function(){return Object.assign({},x,{isLastTab:q()===h().length-1})},
customTabRenderable:x.customTabRenderable,useCustomTabRenderable:!!x.customTabRenderable})})),_.t(z4b,{width:D,
sliderOffset:R,enableTransition:K}))}}))},"Ff");
_.keR.idomCompat=!0;var z4b=_.d(function(I){var y=_.jE(I.sliderOffset,0),D=I.width,F=I.enableTransition;I={};return _.t("div",{class:_.XH("tabGroupShapeSlider",(I.tabGroupShapeSliderTransition=function(){return F()},I)),
style:_.p4({width:function(){return D()+"px"},
transform:function(){return"translateX("+y()+"px)"}})})},"Gf");var dSa=_.d(function(I){var y=function(){var O,w,v;return(v=(O=I.data().playerLogoAccessibility)==null?void 0:(w=O.accessibilityData)==null?void 0:w.label)!=null?v:""},D=_.zj(Z8C,function(){return I.data().playerEntityKey}),F={};
F=_.XH("ytwFantasyPlayerViewModelHost",(F.ytwFantasyPlayerViewModelPlaying=function(){var O;return!((O=D())==null||!O.isPlayerPlaying)},F.ytwFantasyPlayerViewModelOnField=function(){var O;
return((O=D())==null?void 0:O.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},F.ytwFantasyPlayerViewModelRedZone=function(){var O;
return((O=D())==null?void 0:O.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},F));
var R=function(){var O,w,v,P=((O=_.nR().resolve(_.fR(_.cS)))==null?0:O())?(w=I.data().playerLogoBackgroundColor)==null?void 0:w.darkTheme:(v=I.data().playerLogoBackgroundColor)==null?void 0:v.lightTheme;return P===void 0?"":_.Z7(P)};
return _.t("ytw-fantasy-player-view-model",{class:F},_.t(_.U,{cond:function(){return I.data().playerLogo},
then:function(O){return _.t("div",{class:"ytwFantasyPlayerViewModelLogo"},_.t("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.t(_.UE,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.p4({"background-color":R}),data:O,alt:y})),_.t("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.t(_.mj,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.t("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.t("div",{class:"ytwFantasyPlayerViewModelHeader"},_.t(_.jr,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var O;return(O=I.data())==null?void 0:O.playerNameText}}),_.t(_.jr,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var O;return(O=I.data())==null?void 0:O.playerDescriptionText}})),_.t("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.t(_.jr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=D())==null?void 0:O.gamePeriodText}}),_.t(_.jr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=I.data())==null?void 0:O.opponentTeamText}}),_.t(_.jr,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var O;return(O=D())==null?void 0:O.gameStatusText}}),_.t(_.jr,{className:_.XH("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var O;return(O=D())==null?void 0:O.playerStatusText}})),_.t("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.t(_.jr,{text:function(){var O;
return(O=D())==null?void 0:O.playerStatsText}}))),_.t(_.jr,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var O;return(O=D())==null?void 0:O.fantasyScore}}))},"Hf");var aCa=_.d(function(I){return _.t("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.t(_.U,{cond:function(){return I.data().players},
then:function(y){return _.t(_.aP,{data:y},{fantasyPlayerViewModel:dSa})}}))},"If");var cL8=_.d(function(I){var y=_.J(_.N4(function(){var R;return(R=I.data().selectedTabIdentifierKey)!=null?R:""})),D=y.next().value,F=y.next().value;
_.OJ(function(){var R;(R=I.setSelectedTabSignal)==null||R.call(I,D)});
return _.t("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.t("div",{class:"ytTabbedViewModelTabGroup"},_.t(_.keR,{shape:function(){var R=I.data(),O=[],w={tabs:O};if(!R.tabs)return w;R=_.J(R.tabs);for(var v=R.next(),P={};!v.done;P={tabViewModel:void 0},v=R.next())if(P.tabViewModel=_.u(v.value,k$a),P.tabViewModel){var K=v=void 0;O.push({aTagConfig:{onclick:function(r){return function(){var N;F((N=r.tabViewModel.tabIdentifier)!=null?N:"")}}(P)},
identifier:P.tabViewModel.tabIdentifier,selected:D()===P.tabViewModel.tabIdentifier,title:(K=(v=P.tabViewModel.title)==null?void 0:v.content)!=null?K:""})}return w}})),_.t(_.aP,{data:function(){var R,O=_.J((R=I.data().tabs)!=null?R:[]);
for(R=O.next();!R.done;R=O.next())if((R=_.u(R.value,k$a))&&R.tabIdentifier===D())return R.content}},{fantasyRosterViewModel:aCa}))},"Kf");_.NK(_.d(function(I){var y=_.J(JB5()),D=y.next().value,F=y.next().value;return _.t("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.t(_.jr,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return I.data().title}}),_.t(_.U,{cond:function(){return I.data().tabbedViewModel},
then:function(R){return _.t(_.aP,{data:R},{tabbedViewModel:function(O){return _.t(cL8,{data:O.data,setSelectedTabSignal:F})}})}}),_.t(_.U,{cond:function(){var R,O=(R=_.u(I.data().tabbedViewModel,dG_))==null?void 0:R.tabs;
R=_.u(O==null?void 0:O[0],k$a);O=_.u(O==null?void 0:O[1],k$a);var w=R==null?void 0:R.tabIdentifier;if(D()===w){var v,P;if(!((v=_.u(R==null?void 0:R.content,elg))==null?0:(P=v.players)==null?0:P.length))return I.data().noUserTeamPlayersText}else{var K,r;if(!((K=_.u(O==null?void 0:O.content,elg))==null?0:(r=K.players)==null?0:r.length))return I.data().noOpponentTeamPlayersText}},
then:function(R){return _.t(_.jr,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:R})}}))},"Lf"),"ytw-fantasy-matchup-view-model",{props:{data:_.om}});_.NK(_.d(function(I){return _.t("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.t(_.jr,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return I.data().title}}),_.t(_.U,{cond:function(){return I.data().matchupTeamPairs},
then:function(y){return _.t(_.gZ,{each:y,keyBy:"INDEX"},function(D){return _.t("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.t(_.aP,{data:function(){return[D().firstTeam,D().secondTeam]}},{fantasyTeamViewModel:function(F){return _.t(mS8,{data:F.data,
compact:!0})}}))})}}))},"Mf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=function(){var R,O,w;return(w=(R=I.data().userLogoAccessibility)==null?void 0:(O=R.accessibilityData)==null?void 0:O.label)!=null?w:""},D=function(){var R,O,w;
return(w=(R=I.data().opponentLogoAccessibility)==null?void 0:(O=R.accessibilityData)==null?void 0:O.label)!=null?w:""},F=_.zj(sGL,function(){return I.data().entityKey});
return _.t("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.t("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.t(_.U,{cond:function(){return I.data().userLogo},
then:function(R){return _.t(_.UE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:R,alt:y})}}),_.t("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.t(_.jr,{text:function(){return I.data().title}})),_.t(_.U,{cond:function(){return I.data().opponentLogo},
then:function(R){return _.t(_.UE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:R,alt:D})}})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.t("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.t(_.jr,{text:function(){var R;
return(R=F())==null?void 0:R.userWinNumberLabel}})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.t("div",{class:_.XH("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.p4({flex:function(){var R,O;return(O=(R=F())==null?void 0:R.userWinNumber)!=null?O:50}})}),_.t("div",{class:_.XH("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.p4({flex:function(){var R,O;return(O=(R=F())==null?void 0:R.opponentWinNumber)!=null?O:50}})})),_.t("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.t(_.jr,{text:function(){var R;
return(R=F())==null?void 0:R.opponentWinNumberLabel}}))))},"Nf"),"fantasy-win-probability-view-model",{props:{data:_.om}});var WJ1={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},C_Q=_.d(function(I){return _.t(_.aP,{data:I.button},{buttonViewModel:function(y){return _.t(_.My,{data:y.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Of"),BqG=_.d(function(I){return _.t("ytd-backstage-locked-post-view-model",{class:_.XH("ytdBackstageLockedPostViewModelHost",I.className)},_.t("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.t("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.t(_.aP,
{data:function(){return I.data().authorAvatar}},{decoratedAvatarViewModel:_.Jh})),_.t("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.t("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.t(_.jr,{text:function(){return I.data().authorText}})),_.t("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.t(_.jr,{text:function(){return I.data().publishedTimeText}}),_.t(_.aP,{data:function(){return I.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(y){return _.t(aqP,
{data:y.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.t("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.t(_.jr,{text:function(){return I.data().contentText}})),_.t(_.I8,null,_.t(_.Vj,{when:function(){return I.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.t("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.t(_.UE,{data:WJ1,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.t(_.jr,{text:function(){return I.data().lockedText}}))}),_.t(_.Vj,{when:function(){return I.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.t("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.t("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.t(_.UE,{data:WJ1,
alt:""})),_.t(_.jr,{text:function(){return I.data().lockedText}}))})),_.t("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.t(C_Q,{button:function(){return I.data().likeButton}}),_.t("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return I.data().voteCountA11y}},_.t(_.jr,{text:function(){return I.data().voteCount}})),_.t(C_Q,{button:function(){return I.data().dislikeButton}}),_.t(C_Q,{button:function(){return I.data().commentButton}}),_.t("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return I.data().commentCountA11y}},_.t(_.jr,{text:function(){return I.data().commentCount}}))))},"Pf");
BqG.idomCompat=!0;_.NK(BqG,"ytd-backstage-locked-post-view-model",{props:{data:_.om,className:_.om}});_.bO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var xJ=function(){var I=_.k.apply(this,arguments)||this;I.darkerPanels=_.l("web_watch_darker_panels");I.commentsHidePanelButton=!1;I.isWatchGrid=!1;I.continuationShowButton=!1;I.isSearch=!1;I.isConstrainedList=!1;I.isWatch=!1;I.eligibleToSwitchToGrid=!1;I.useBigThumbs=!1;I.epRestyle=!1;I.isCarouselInFeed=!0;I.topSpacingZero=!1;I.continuationIsInitialLoad=!0;I.enableSqueezebackPanels=_.l("web_shorts_enable_squeezeback_panels");I.enableAnchoredPanel=_.l("desktop_shorts_v2_anchored_panel");I.notSticky=
!0;I.mastheadHeight=0;I.isStickyChipBarSetup=!1;I.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};I.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return I};
_.E(xJ,_.k);_.L=xJ.prototype;_.L.updateLockupContainerTypes=function(I){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||y.forEach(function(D){D.containerType=I})}};
_.L.getItemsPath=function(){return"data.contents"};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.L.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.l("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.l("kevlar_low_priority_continuation")}}};
_.L.created=function(){};
_.L.updateStickySetup=function(){_.l("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.L.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(wAz(!this.notSticky))};
_.L.setupStickyChipBar=function(){var I=this;if(!this.isStickyChipBarSetup&&_.l("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.MX(this,this.updateHeaderState));var y;this.mastheadHeight=((y=document.querySelector("ytd-masthead"))==null?void 0:y.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(D){I.handleIntersect(D)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){I.updateHeaderState();I.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.L.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.MX(this,this.updateHeaderState));var I;(I=this.intersectionObserver)==null||I.disconnect();var y;(y=this.resizeObserver)==null||y.disconnect()}};
_.L.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.L.handleIntersect=function(I){this.notSticky=I[0].intersectionRatio===1};
_.L.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.L.detached=function(){this.teardownStickyChipBar()};
_.L.updated=function(I){I.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.L.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var I=_.XB(this.hostElement).querySelector("ytd-comments-header-renderer");I&&(I.hidePanelButton=this.commentsHidePanelButton)}};
_.L.onRetrieveLocation=function(I,y){this.containsComments()&&(this.firstCommentsLoaded=y.hasComments=!0)};
_.L.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.L.onLoadReloadContinuation=function(I,y){var D=this;I.stopPropagation();this.isReloading=!0;_.lj(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(F){var R=_.nR().resolve(_.BF);F=y(F);R.postData(F).then(function(O){D.onReloadContinuationData(O)})}})};
_.L.onReloadContinuationData=function(I){if(I=this.get("response.continuationContents.itemSectionContinuation",I)||this.get("response.contents.itemSectionRenderer",I)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",I)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",I))this.set("data.contents",I.contents||I.results),I.header&&this.set("data.header",I.header),this.set("data.continuations",
I.continuations||[]);this.isReloading=!1};
_.L.computeContentsClass=function(I){return I?"reloading":""};
_.L.computeSectionIdentifier=function(I){return I==null?void 0:I.sectionIdentifier};
_.L.computeFitContainer=function(I){return(I==null?void 0:I.sectionIdentifier)==="youchat-item-section"};
_.L.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.l("kevlar_disable_comments_auto_load")};
_.L.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.L.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.L.computeHasDestinationShelfRenderer=function(I){var y,D;return!!(I==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.destinationShelfRenderer)};
_.L.computeHasSectionGroupViewModel=function(I){var y,D;return!!(I==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.sectionGroupViewModel)};
_.L.computeHasQrCodeRenderer=function(I){var y,D;return!!(I==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.qrCodeRenderer)};
_.L.computeStaticCommentsHeader=function(I){return I&&this.containsComments()};
_.L.computeEpRestyle=function(I){return _.l("web_ep_restyling")&&I&&this.containsComments()};
_.L.computeIsContinuationCommentSection=function(I){return(I==null?void 0:I.targetId)==="shorts-engagement-panel-comments-section"||(I==null?void 0:I.targetId)==="comments-section"||(I==null?void 0:I.targetId)==="engagement-panel-comments-section"};
_.L.computeSuppressPaddingDisclaimer=function(){var I,y,D,F;return!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:(F=D.productListHeaderRenderer)==null?0:F.suppressPaddingDisclaimer)};
_.L.computeHeaderStyle=function(I){switch(I==null?void 0:I.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.L.dataChanged=function(){this.firstCommentsLoaded=!1};
_.L.observeDataContentsLength=function(){var I,y;((I=this.data)==null?0:(y=I.contents)==null?0:y.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.L.onYtDismissibleItemDismissedChange=function(I){this._setItemDismissed(I.type==="yt-dismissible-item-dismissed")};
_.L.triggerContinuations=function(){for(var I=_.XB(this.hostElement).querySelector("#continuations").children,y=0;y<I.length;y++)I[y].trigger()};
_.L.triggerInitialContinuations=function(){for(var I=_.XB(this.hostElement).querySelector("#continuations").children,y=0;y<I.length;y++)I[y].triggerIfNotPreviouslyTriggered()};
_.L.handleYtItemSectionContinuation=function(I,y){var D;y&&((D=this.data)==null?void 0:D.sectionIdentifier)!==y||(this.set("data.continuations",[I]),this.triggerContinuations())};
_.L.handleYtItemSectionReplace=function(I,y){var D;y&&((D=this.data)==null?void 0:D.sectionIdentifier)!==y||(this.set("data.contents",I),this.set("data.continuations",[]))};
_.L.computeUseHeightHack=function(I){return I&&!_.l("kevlar_disable_height_hack")};
_.L.computeTopSpacingZero=function(I){return I};
_.L.continuationShowButtonChanged=function(){var I=_.XB(this.hostElement).querySelector("ytd-continuation-item-renderer");I&&(I.showButton=this.continuationShowButton)};
_.L.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("data-changed",this.data))};
_.mD.Object.defineProperties(xJ.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.l("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F,R,O,w;return!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:(F=D.shelfRenderer)==null?0:(R=F.content)==null?0:(O=R.gridRenderer)==null?0:(w=O.targetId)==null?0:w.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y[0])==null?0:D.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.d6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.l("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.l("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs&&_.l("web_watch_next_big_thumbs_expanded_layout")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.l("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!((I=this.data)==null?0:(y=I.header)==null?0:y.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.l("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.l("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
xJ.prototype.dataChangedForBinding=xJ.prototype.dataChangedForBinding;xJ.prototype.continuationShowButtonChanged=xJ.prototype.continuationShowButtonChanged;xJ.prototype.onYtDismissibleItemDismissedChange=xJ.prototype.onYtDismissibleItemDismissedChange;xJ.prototype.observeDataContentsLength=xJ.prototype.observeDataContentsLength;xJ.prototype.dataChanged=xJ.prototype.dataChanged;xJ.prototype.onServiceRequestCompleted=xJ.prototype.onServiceRequestCompleted;xJ.prototype.onLoadReloadContinuation=xJ.prototype.onLoadReloadContinuation;
xJ.prototype.onRetrieveLocation=xJ.prototype.onRetrieveLocation;xJ.prototype.commentsHidePanelButtonChanged=xJ.prototype.commentsHidePanelButtonChanged;xJ.prototype.dispatchChipBarIsSticky=xJ.prototype.dispatchChipBarIsSticky;xJ.prototype.updateStickySetup=xJ.prototype.updateStickySetup;xJ.prototype.updateLockupContainerTypes=xJ.prototype.updateLockupContainerTypes;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],xJ.prototype,"ytLazyListBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],xJ.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Q(_.ha),_.A("design:type",Object)],xJ.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],xJ.prototype,"ytdReduxBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xJ.prototype,"darkerPanels",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],xJ.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"commentsHidePanelButton",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"isWatchGrid",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"continuationShowButton",void 0);_.W([_.M({computed:"computeIsContinuationCommentSection(data)"}),_.A("design:type",Boolean)],xJ.prototype,"continuationIsCommentsSection",void 0);
_.W([_.M({value:!0}),_.A("design:type",Boolean)],xJ.prototype,"autoFill",void 0);_.W([_.M(),_.A("design:type",Boolean)],xJ.prototype,"continuationDisablePrescanVisibility",void 0);_.W([_.M(),_.A("design:type",Boolean)],xJ.prototype,"isReloading",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"isSearch",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"isConstrainedList",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"isWatch",void 0);
_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"useBigThumbs",void 0);_.W([_.M({selector:_.Zo,reflectToAttribute:!0}),_.A("design:type",Object)],xJ.prototype,"isGridViewEnabled",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Object)],xJ.prototype,"epRestyle",void 0);
_.W([_.Y("isWatch"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"hideShortsShelfHeader",null);_.W([_.Y("isSearch","isWatch"),_.A("design:type",String),_.A("design:paramtypes",[])],xJ.prototype,"thumbnailWidth",null);_.W([_.Y("isSearch","containerWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],xJ.prototype,"thumbnailTargetWidth",null);
_.W([_.Y("isSearch","isWatch","useBigThumbs"),_.A("design:type",String),_.A("design:paramtypes",[])],xJ.prototype,"sizing",null);_.W([_.Y("isWatch","isGridViewEnabled","useBigThumbs","data"),_.M({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],xJ.prototype,"lockupContainerType",null);_.W([_.ke("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],xJ.prototype,"updateLockupContainerTypes",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],xJ.prototype,"pageSubtype",void 0);_.W([_.M(),_.A("design:type",Number)],xJ.prototype,"containerWidth",void 0);_.W([_.M(),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"isPlaylist",null);_.W([_.M(),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"isClipList",null);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"isCarouselInFeed",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"isPlaylistVideoContainer",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"isSearchFrictionPage",null);_.W([_.M({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.A("design:type",Boolean)],xJ.prototype,"useHeightHack",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.A("design:type",Object)],xJ.prototype,"topSpacingZero",void 0);_.W([_.M({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.A("design:type",Boolean)],xJ.prototype,"showButton",void 0);_.W([_.M(),_.A("design:type",Boolean)],xJ.prototype,"firstCommentsLoaded",void 0);_.W([_.M(),_.A("design:type",Object)],xJ.prototype,"continuationIsInitialLoad",void 0);
_.W([_.M({reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],xJ.prototype,"itemDismissed",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.A("design:type",String)],xJ.prototype,"sectionIdentifier",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.A("design:type",String)],xJ.prototype,"fitContainer",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.A("design:type",Boolean)],xJ.prototype,"hasDestinationShelfRenderer",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Boolean)],xJ.prototype,"staticCommentsHeader",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xJ.prototype,"enableSqueezebackPanels",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xJ.prototype,"enableAnchoredPanel",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.A("design:type",Boolean)],xJ.prototype,"hasSectionGroupViewModel",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.A("design:type",Boolean)],xJ.prototype,"hasQrCodeRenderer",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.A("design:type",Boolean)],xJ.prototype,"suppressDisclaimerSeparator",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.A("design:type",String)],xJ.prototype,"headerStyle",void 0);_.W([_.Y("isSearch","isWatch","useBigThumbs"),_.A("design:type",Object),_.A("design:paramtypes",[])],xJ.prototype,"lockupExperiments",null);
_.W([_.Y("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"typographyBump",null);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],xJ.prototype,"header",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xJ.prototype,"notSticky",void 0);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],xJ.prototype,"useChipBarViewModelHeader",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"expFixPlaylistHeader",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xJ.prototype,"expFixPlaylistHeaderV2",null);_.W([_.ke("pageSubtype"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"updateStickySetup",null);
_.W([_.ke("notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"dispatchChipBarIsSticky",null);_.W([_.ke("commentsHidePanelButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"commentsHidePanelButtonChanged",null);_.W([_.z4("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],xJ.prototype,"onRetrieveLocation",null);
_.W([_.z4("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Function]),_.A("design:returntype")],xJ.prototype,"onLoadReloadContinuation",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"onServiceRequestCompleted",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"dataChanged",null);
_.W([_.Bp("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"observeDataContentsLength",null);_.W([_.z4("yt-dismissible-item-dismissed"),_.z4("yt-dismissible-item-undismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],xJ.prototype,"onYtDismissibleItemDismissedChange",null);
_.W([_.ke("continuationShowButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"continuationShowButtonChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xJ.prototype,"dataChangedForBinding",null);_.W([_.yd({is:"ytd-item-section-renderer",disableElementRegistration:!0})],xJ);
_.a(xJ,"ytd-item-section-renderer",function(){if(Tzc!==void 0)return Tzc;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Tzc=I},{mode:1});var i5Y;var Swt=_.Ug(_.zC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var ALT={},v8H=(ALT[0]={title:_.lo(_.zC("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.h_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},ALT[1]={title:_.lo(_.zC("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.h_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},ALT);_.bO("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var lN=function(){var I=_.k.apply(this,arguments)||this;I.allVideosCount=0;I.allPlaylistCount=0;I.isOnline=!1;I.shouldRenderDownloadsBanner=!1;I.shouldRenderDownloadsBannerUpsell=!1;I.hasOptedIntoSmartDownloads=!1;I.areAllSmartDownloadsDeleted=!1;I.smartDownloadsCompleted=!1;return I};
_.E(lN,_.k);lN.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
lN.prototype.attached=function(){this.downloadsToRenderChanged()};
lN.prototype.detached=function(){this.set("renderableData",{})};
lN.prototype.downloadsToRenderChanged=function(){var I=_.oq().getState().entities,y=_.Tz(I),D=_.l("kevlar_playlist_dl_page_killswitch")?n3A(I):_.sc(I),F=_.qyB(I),R=_.Qte(I),O=_.io(y);I=_.Vi(I);this.set("renderableData",Pcq(D,y,F,R,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,O,I))};
lN.prototype.downloadsToRenderChanged=lN.prototype.downloadsToRenderChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],lN.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],lN.prototype,"renderableData",void 0);_.W([_.M({selector:_.Am5}),_.A("design:type",Object)],lN.prototype,"allVideosCount",void 0);_.W([_.M({selector:HUL}),_.A("design:type",Object)],lN.prototype,"allPlaylistCount",void 0);_.W([_.M({selector:_.D7}),_.A("design:type",Object)],lN.prototype,"isOnline",void 0);_.W([_.M({selector:_.Vxe}),_.A("design:type",Object)],lN.prototype,"shouldRenderDownloadsBanner",void 0);
_.W([_.M({selector:_.ylL}),_.A("design:type",Object)],lN.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.M({selector:_.ZYo}),_.A("design:type",Object)],lN.prototype,"hasOptedIntoSmartDownloads",void 0);_.W([_.M({selector:_.g3W}),_.A("design:type",Object)],lN.prototype,"areAllSmartDownloadsDeleted",void 0);_.W([_.M({selector:IWC}),_.A("design:type",Object)],lN.prototype,"smartDownloadsCompleted",void 0);
_.W([_.Bp("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lN.prototype,"downloadsToRenderChanged",null);_.W([_.yd({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],lN);
_.a(lN,"ytd-offline-item-section-renderer",function(){if(i5Y!==void 0)return i5Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return i5Y=I},
{mode:1});var $ST;var b5a;var uN=function(){return _.k.apply(this,arguments)||this};
_.E(uN,_.k);
uN.prototype.onDataChanged=function(){if(this.JSC$17138_lastData){var I=this.getFilterClass(this.JSC$17138_lastData.status);I&&this.hostElement.classList.remove(I)}var y;(I=this.getFilterClass((y=this.data)==null?void 0:y.status))&&this.hostElement.classList.add(I);I==="selected"?_.XB(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.XB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");I==="disabled"?_.XB(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.XB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17138_lastData=this.data};
uN.prototype.getFilterClass=function(I){switch(I){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
uN.prototype.onDataChanged=uN.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uN.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uN.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],uN);
_.a(uN,"ytd-search-filter-renderer",function(){if(b5a!==void 0)return b5a;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return b5a=I},{mode:_.Qd("kevlar_poly_si_batch_j075")?1:2});var q7=function(){return _.k.apply(this,arguments)||this};
_.E(q7,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],q7.prototype,"data",void 0);_.W([_.yd({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],q7);
_.a(q7,"ytd-search-filter-group-renderer",function(){if($ST!==void 0)return $ST;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $ST=I},{mode:_.Qd("kevlar_poly_si_batch_j075")?1:2});var H5R;var Eh=function(){return _.k.apply(this,arguments)||this};
_.E(Eh,_.k);Eh.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.aZ());this.isCollapsed=!this.isCollapsed};
Eh.prototype.navigateToAboutTheseResultsPage=function(){var I=_.Tq("https://www.youtube.com/howyoutubeworks/product-features/search/");I?_.wj(window,I,"_blank"):_.UJ(Error("Vh"))};
Eh.prototype.dataChanged=function(){this.isCollapsed=!0};
Eh.prototype.computeShowBottomBorder=function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.button)==null?0:y.toggleButtonRenderer)||!((D=this.data)==null||!D.aboutTheseResultsButton)};
Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Eh.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.A("design:type",Boolean)],Eh.prototype,"showBottomBorder",void 0);_.W([_.M(),_.A("design:type",Boolean)],Eh.prototype,"renderCollapsibleMenu",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Eh.prototype,"isCollapsed",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Eh.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Eh);
_.a(Eh,"ytd-search-sub-menu-renderer",function(){if(H5R!==void 0)return H5R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H5R=I},{mode:1});var e4b;var TqC=new _.uk("SECTION_LIST_RENDERER_TOKEN");var soo;var Gl=function(){return _.k.apply(this,arguments)||this};
_.E(Gl,_.k);Gl.prototype.computeStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gl.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],Gl.prototype,"headerStyle",void 0);_.W([_.yd({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Gl);
_.a(Gl,"ytd-text-header-renderer",function(){if(soo!==void 0)return soo;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return soo=I},{mode:1});var VWR;var XF=function(){return _.k.apply(this,arguments)||this};
_.E(XF,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],XF.prototype,"data",void 0);_.W([_.yd({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],XF);
_.a(XF,"ytd-minor-moment-header-renderer",function(){if(VWR!==void 0)return VWR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return VWR=I},{mode:1});var Z5T;var QI=function(){return _.k.apply(this,arguments)||this};
_.E(QI,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QI.prototype,"data",void 0);_.W([_.yd({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],QI);
_.a(QI,"ytd-minor-moment-setting-alert-renderer",function(){if(Z5T!==void 0)return Z5T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Z5T=I},{mode:1});var gA8;var IRQ;var YJ=function(){var I=_.k.apply(this,arguments)||this;I.booleanSettingById=!1;I.smartDownloadsEnabledVE=_.QM(128287);I.smartDownloadsDisabledVE=_.QM(128286);I.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return I};
_.E(YJ,_.k);_.L=YJ.prototype;_.L.attachSmartDownloadsSettingVes=function(){var I;this.activeVeForLogging||((I=this.data)==null?void 0:I.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.aj(_.W4(),this.smartDownloadsEnabledVE),_.aj(_.W4(),this.smartDownloadsDisabledVE))};
_.L.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.lj(this.hostElement,"yt-settings-switch-ready")};
_.L.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.L.onSwitchChange=function(I){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(I=_.jv(I).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.l("kevlar_settings_switch_resolve_command_killswitch")?_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(I)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.L.handleUpdateSettingsSwitch=function(I){(I=_.u(I,K6W))&&this.data&&this.data.id===I.id&&this.set("data.enabled",!!I.enabled)};
_.L.onToggleSettingsSwitch=function(I,y){this.data&&this.data.id===I&&this.set("data.enabled",y!=null?y:!this.data.enabled)};
_.L.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.X4.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.L.maybeLogSmartDownloadsSettingVisibility=function(){var I=_.VO(),y;I&&((y=this.data)==null?void 0:y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.wH(I,[this.smartDownloadsEnabledVE]),_.vW(I,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.wH(I,[this.smartDownloadsDisabledVE]),_.vW(I,[this.smartDownloadsEnabledVE])))};
_.L.maybeLogSmartDownloadsSettingClick=function(){var I;((I=this.data)==null?void 0:I.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.W0(_.W4(),this.activeVeForLogging)};
_.L.updateDataEnabledFromBinding=function(I){this.set("data.enabled",I.detail.value)};
_.mD.Object.defineProperties(YJ.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!I&&(I=this.ytRendererBehavior.getSimpleString(this.data.title));return I}}});
YJ.prototype.dataChanged=YJ.prototype.dataChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],YJ.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],YJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],YJ.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],YJ.prototype,"data",void 0);_.W([_.M({selector:function(I,y){if(Object.keys(I==null?void 0:I.entities).length)switch(y){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return p9_(I.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.A("design:type",Object)],YJ.prototype,"booleanSettingById",void 0);_.W([_.M(),_.A("design:type",_.TG)],YJ.prototype,"activeVeForLogging",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],YJ.prototype,"toggleAriaLabel",null);_.W([_.Bp("data"),_.Bp("booleanSettingById"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YJ.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],YJ);
_.a(YJ,"ytd-settings-switch-renderer",function(){if(IRQ!==void 0)return IRQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IRQ=I},{mode:1});var fq=function(){return _.k.apply(this,arguments)||this};
_.E(fq,_.k);fq.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}}}}};
_.mD.Object.defineProperties(fq.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var I=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(I+=" remove-left-margin");this.data.extraBottomSpace&&(I+=" extra-bottom-space");return I}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fq.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],fq.prototype,"contentsClassName",null);_.W([_.yd({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],fq);
_.a(fq,"ytd-minor-moment-setting-section-renderer",function(){if(gA8!==void 0)return gA8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return gA8=I},{mode:1});var yM1;var nq=function(){return _.k.apply(this,arguments)||this};
_.E(nq,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],nq.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nq.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],nq);
_.a(nq,"ytd-empty-product-details-renderer",function(){if(yM1!==void 0)return yM1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yM1=I},{mode:1});var DzQ;var FMb;var pq=function(){var I=_.k.apply(this,arguments)||this;I.expanded=!0;return I};
_.E(pq,_.k);pq.prototype.getBadgeRowClass=function(I,y,D){for(var F=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),R=F.next();!R.done;R=F.next())R.value.onShow();I=I.selected;return D?I!==-1?I===y?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(I!==void 0?I:0)===y?"badge-line":"badge-hidden"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pq.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],pq.prototype,"expanded",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],pq);
_.a(pq,"ytd-sponsorships-loyalty-badges-renderer",function(){if(FMb!==void 0)return FMb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FMb=I},{mode:1});var Rne;var mi=function(){var I=_.k.apply(this,arguments)||this;I.expanded=!0;return I};
_.E(mi,_.k);mi.prototype.getContainerClasses=function(I,y){I=I?"expanded":"collapsed";y&&(I+=" item");return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mi.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],mi.prototype,"expanded",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],mi);
_.a(mi,"ytd-sponsorships-perk-renderer",function(){if(Rne!==void 0)return Rne;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Rne=I},{mode:1});var O_G;var M7=function(){var I=_.k.apply(this,arguments)||this;I.expanded=!0;return I};
_.E(M7,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],M7.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],M7.prototype,"expanded",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],M7);
_.a(M7,"ytd-sponsorships-perks-renderer",function(){if(O_G!==void 0)return O_G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return O_G=I},{mode:1});var zl=function(){var I=_.k.apply(this,arguments)||this;I.isCollapsed=!1;return I};
_.E(zl,_.k);zl.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
zl.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
zl.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var I;this.expandCollapseButton=_.u((I=this.data)==null?void 0:I.expandButton,_.S1)}else{var y;this.expandCollapseButton=_.u((y=this.data)==null?void 0:y.collapseButton,_.S1)}};
zl.prototype.updateExpandCollapseButton=zl.prototype.updateExpandCollapseButton;zl.prototype.onDataChanged=zl.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zl.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zl.prototype,"isCollapsed",void 0);_.W([_.M(),_.A("design:type",Object)],zl.prototype,"expandCollapseButton",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zl.prototype,"onDataChanged",null);_.W([_.Bp("data","isCollapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zl.prototype,"updateExpandCollapseButton",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],zl);
_.a(zl,"ytd-sponsorships-expandable-perks-renderer",function(){if(DzQ!==void 0)return DzQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return DzQ=I},{mode:1});var LMb;var kJ=function(){return _.k.apply(this,arguments)||this};
_.E(kJ,_.k);kJ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],kJ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kJ.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],kJ);
_.a(kJ,"ytd-sponsorships-actionable-message-renderer",function(){if(LMb!==void 0)return LMb;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return LMb=I},{mode:1});var JMy;var d_=function(){return _.k.apply(this,arguments)||this};
_.E(d_,_.k);_.L=d_.prototype;_.L.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.L.getExpansionIcon=function(I){return I?"COLLAPSE":"EXPAND"};
_.L.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.L.computeMessageContainerStyle=function(I){var y=I.expandableItems?" style-clickable":"";return I.messageContainerStyle?I.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+y:"style-unspecified"+y};
_.L.isSinglePerk=function(I){return!!I.messageContainerStyle&&(I.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||I.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.L.onExpandedChanged=function(){var I=this;if(this.expanded)for(var y=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),D=y.next();!D.done;D=y.next())D.value.onShow();_.YC(this,function(){_.lj(I.hostElement,"yt-refit")})};
_.L.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
d_.prototype.onDataChanged=d_.prototype.onDataChanged;d_.prototype.onExpandedChanged=d_.prototype.onExpandedChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],d_.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],d_.prototype,"expanded",void 0);
_.W([_.ke("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d_.prototype,"onExpandedChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d_.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],d_);
_.a(d_,"ytd-sponsorships-expandable-message-renderer",function(){if(JMy!==void 0)return JMy;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return JMy=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var wGQ;var ax=function(){return _.k.apply(this,arguments)||this};
_.E(ax,_.k);ax.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"}}}}};
ax.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.u(this.data.endButton,_.S1).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ax.prototype.onDataChanged=ax.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ax.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ax.prototype,"onDataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ax);
_.a(ax,"ytd-sponsorships-heading-renderer",function(){if(wGQ!==void 0)return wGQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wGQ=I},{mode:1});var vPa;var c3=function(){return _.k.apply(this,arguments)||this};
_.E(c3,_.k);_.W([_.M(),_.A("design:type",Object)],c3.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],c3);
_.a(c3,"ytd-sponsorships-links-renderer",function(){if(vPa!==void 0)return vPa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vPa=I},{mode:1});var SOy;var W3=function(){return _.k.apply(this,arguments)||this};
_.E(W3,_.k);_.L=W3.prototype;_.L.onDataChanged=function(){if(this.data&&this.data.expandableItems){var I;(I=_.XB(this.hostElement).querySelector("tp-yt-paper-button"))==null||I.setAttribute("role","button")}else{var y;(y=_.XB(this.hostElement).querySelector("tp-yt-paper-button"))==null||y.removeAttribute("role")}};
_.L.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.L.getExpansionIcon=function(I){return I?"COLLAPSE":"EXPAND"};
_.L.getTileClasses=function(I){return I?"tile expandable-tile":"tile"};
_.L.getButtonDisabled=function(I){return I?void 0:""};
W3.prototype.onDataChanged=W3.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],W3.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],W3.prototype,"expanded",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W3.prototype,"onDataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],W3);
_.a(W3,"ytd-sponsorships-list-tile-renderer",function(){if(SOy!==void 0)return SOy;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SOy=I},{mode:1});var tf8;var PuT;var Cq=function(){return _.k.apply(this,arguments)||this};
_.E(Cq,_.k);Cq.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Cq.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Cq);
_.a(Cq,"ytd-sponsorships-promotion-renderer",function(){if(PuT!==void 0)return PuT;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PuT=I},{mode:1});var KMb;var B3=function(){return _.k.apply(this,arguments)||this};
_.E(B3,_.k);B3.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],B3.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],B3);
_.a(B3,"ytd-sponsorships-purchase-option-renderer",function(){if(KMb!==void 0)return KMb;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return KMb=I},{mode:1});var UzR;var rMQ;var jeR=function(){return _.k.apply(this,arguments)||this};
_.E(jeR,_.k);_.W([_.M(),_.A("design:type",Object)],jeR.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],jeR);
_.a(jeR,"ytd-ypc-offer-promo-renderer",function(){if(rMQ!==void 0)return rMQ;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rMQ=I},{mode:1});var iN=function(){return _.k.apply(this,arguments)||this};
_.E(iN,_.k);_.L=iN.prototype;
_.L.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"}}}}};
_.L.expansionCTA=function(I,y){return I&&(y?I.collapseCallToAction:I.expansionCallToAction)};
_.L.getExpansionIcon=function(I){return I?"COLLAPSE":"EXPAND"};
_.L.expansionCallToActionTap=function(){var I=this;this.expanded=!this.expanded;_.YC(this,function(){_.lj(I.hostElement,"yt-refit")})};
_.L.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var I,y=(I=this.data)==null?void 0:I.onVisible;y&&this.ytComponentBehavior.resolveCommand(y)};
_.L.computeDisplayTitle=function(I){return!(!I||this.titledisplaystatus!=="show")};
_.L.computeDisplaySeparator=function(){return!1};
_.L.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
iN.prototype.onDataChanged=iN.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],iN.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],iN.prototype,"data",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],iN.prototype,"expanded",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],iN.prototype,"purchaseButtonClicked",void 0);_.W([_.M({reflectToAttribute:!0,value:"show"}),_.A("design:type",String)],iN.prototype,"titledisplaystatus",void 0);_.W([_.M({computed:"computeDisplayTitle(data.title)"}),_.A("design:type",Boolean)],iN.prototype,"displayTitle",void 0);
_.W([_.M({computed:"computeDisplaySeparator(data)"}),_.A("design:type",Boolean)],iN.prototype,"displaySeparator",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iN.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],iN);
_.a(iN,"ytd-sponsorships-tier-renderer",function(){if(UzR!==void 0)return UzR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return UzR=I},{mode:2});var AH=function(){return _.k.apply(this,arguments)||this};
_.E(AH,_.k);
AH.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],AH.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],AH);
_.a(AH,"ytd-sponsorships-management-renderer",function(){if(tf8!==void 0)return tf8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return tf8=I},{mode:1});var oPa;var $J=function(){return _.k.apply(this,arguments)||this};
_.E($J,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$J.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],$J);
_.a($J,"ytd-open-in-native-app-view-model",function(){if(oPa!==void 0)return oPa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return oPa=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var NcZ;var hng;var xzG=_.UI(["top-"]),lRT=_.UI(["bottom-"]),uWG=_.UI(["left-"]),qO8=_.UI(["right-"]),EPT={},Gag=function(I,y,D){I.removeAttribute("top-"+D);I.removeAttribute("bottom-"+D);I.removeAttribute("left-"+D);I.removeAttribute("right-"+D);y&&(y.top&&_.jY([_.ll(xzG)],I,"top-"+D,y.top),y.bottom&&_.jY([_.ll(lRT)],I,"bottom-"+D,y.bottom),y.left&&_.jY([_.ll(uWG)],I,"left-"+D,y.left),y.right&&_.jY([_.ll(qO8)],I,"right-"+D,y.right))};
EPT.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(I){var y,D=_.XB((y=this.hostElement)!=null?y:this),F;y=this.cardItemBoxBehaviorMarginTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(F=this.hostElement)!=null?F:this;Gag(y,I,"margin")},
cardItemContainerPaddingChanged_:function(I){var y,D=_.XB((y=this.hostElement)!=null?y:this),F;y=this.cardItemBoxBehaviorPaddingTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(F=this.hostElement)!=null?F:this;Gag(y,I,"padding")}}];var bN={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 XGg;var Qe8;var H3=function(){return _.k.apply(this,arguments)||this};
_.E(H3,_.k);H3.prototype.textColorChanged_=function(){this.hostElement.style.color=bN[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
H3.prototype.textColorChanged_=H3.prototype.textColorChanged_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(EPT.YtCardItemBoxBehavior),_.A("design:type",Object)],H3.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],H3.prototype,"data",void 0);_.W([_.ke("data.textColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H3.prototype,"textColorChanged_",null);
_.W([_.I6({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],H3);
_.a(H3,"yt-card-item-text-renderer",function(){if(Qe8===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;XGg===void 0&&(XGg=document.createElement("template"));var F=XGg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Qe8=I}I=Qe8;return I},{mode:2});var YOR;var fRy;var ec=function(){return _.k.apply(this,arguments)||this};
_.E(ec,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ec.prototype,"data",void 0);_.W([_.I6({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],ec);
_.a(ec,"yt-card-item-badge-renderer",function(){if(fRy===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;YOR===void 0&&(YOR=document.createElement("template"));var F=YOR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);fRy=I}I=fRy;return I},{mode:2});var nPg;var pGQ;var Tl=function(){return _.k.apply(this,arguments)||this};
_.E(Tl,_.k);Tl.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Tl.prototype,"data",void 0);_.W([_.I6({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Tl);
_.a(Tl,"yt-card-item-text-collection-renderer",function(){if(pGQ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;nPg===void 0&&(nPg=document.createElement("template"));var F=nPg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);pGQ=I}I=pGQ;return I},{mode:2});var mzo;var Mf8;var sh=function(){return _.k.apply(this,arguments)||this};
_.E(sh,_.k);sh.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]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sh.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],sh.prototype,"iconSize",void 0);_.W([_.I6({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],sh);
_.a(sh,"yt-card-item-text-with-button-renderer",function(){if(Mf8===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;mzo===void 0&&(mzo=document.createElement("template"));var F=mzo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Mf8=I}I=Mf8;return I},{mode:2});var VI=function(){return _.k.apply(this,arguments)||this};
_.E(VI,_.k);VI.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],VI.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VI.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],VI);
_.a(VI,"ytd-commerce-cart-summary-line-item-renderer",function(){if(hng!==void 0)return hng;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return hng=I},{mode:1});_.bO("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ZH=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;return I};
_.E(ZH,_.k);_.L=ZH.prototype;_.L.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"}}}}};
_.L.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.L.updateSummary=function(){var I=this.commerceCartCheckoutButtonEntity,y;if(((y=this.data)==null?0:y.cartButton)&&I.checkoutSummaryText){var D,F=TE((D=this.data)==null?void 0:D.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",sA(I.checkoutSummaryText));if(I.checkoutDetailText){var R;D=TE((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",sA(I.checkoutDetailText))}if(I.checkoutAdditionalMetadataText){var O;
R=TE((O=this.data)==null?void 0:O.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",sA(I.checkoutAdditionalMetadataText))}}else I.estimatedTotalPrice&&(O=TE((F=this.data)==null?void 0:F.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",sA(I.estimatedTotalPrice)))};
_.L.updateIsHidden=function(){var I,y=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isHidden;y!==void 0&&(this.hidden=y)};
_.L.updateCheckoutButton=function(){var I,y=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isDisabled;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",y);var D;I=(D=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:D.innertubeCommand;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",I);var F;D=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.checkoutButtonText;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:D})};
ZH.prototype.entityChanged=ZH.prototype.entityChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ZH.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ZH.prototype,"fullWidth",void 0);_.W([_.M(),_.A("design:type",Object)],ZH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ZH.prototype,"compact",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ZH.prototype,"hidden",void 0);
_.W([_.M({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Bkq}),_.A("design:type",Object)],ZH.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.ke("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZH.prototype,"entityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],ZH);
_.a(ZH,"ytd-commerce-cart-checkout-button-renderer",function(){if(NcZ!==void 0)return NcZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return NcZ=I},{mode:2});var zna;_.kae={};
_.kae.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",_.MX(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.MX(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(I){!this.tappableItemBehaviorTapEnabled||I.keyCode!==13&&I.keyCode!==32||I.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var I=this.data.onTap;I.ypcGetCartEndpoint?(_.E$(this.hostElement,[I]),this.tappableItemBehaviorTapEnabled=!1):I.ypcOffersEndpoint?_.E$(this.hostElement,[I]):_.GC(this.hostElement,[I],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(I){this.tappableItemBehaviorTapEnabled=!!I},
tappableItemBehaviorOnTapEnabledChanged_:function(){var I=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(I.setAttribute("tabIndex",0),I.setAttribute("role","button")):(I.removeAttribute("tabIndex"),I.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(I){I.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var dze;var aR1;var g_=function(){return _.k.apply(this,arguments)||this};
_.E(g_,_.k);g_.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.HU("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.HU("sharingToggleButtonAndDefaultButton")}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],g_.prototype,"data",void 0);_.W([_.I6({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],g_);
_.a(g_,"yt-card-item-actions-renderer",function(){if(aR1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;dze===void 0&&(dze=document.createElement("template"));var F=dze;D.call(y,F.content.cloneNode(!0),I.content.firstChild);aR1=I}I=aR1;return I},{mode:2});var cMQ;var WMC;var Cub;var BcQ;var i_o;var AMR;var IW=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return I};
_.E(IW,_.k);IW.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
IW.prototype.handleDarkModeToggledAction_=function(I){this.isDarkTheme_=I};
IW.prototype.computeThemeImage_=function(I,y){if(!I||!I.imageLight)return!1;this.isCircular_=I.isCircular;I.imageWidth&&(this.hostElement.style.width=I.imageWidth+"px");I.imageHeight&&(this.hostElement.style.height=I.imageHeight+"px");I.borderWidth&&(this.image.style.borderWidth=I.borderWidth+"px",this.image.style.borderStyle="solid");I.borderColor&&(this.image.style.borderColor=_.Z7(I.borderColor));return y&&I.imageDark?I.imageDark:I.imageLight};
IW.prototype.computeThemeIcon_=function(I){var y,D;if(!(I==null?0:(y=I.themedIcon)==null?0:(D=y.icon)==null?0:D.iconType))return!1;this.icon.style.color=bN[I.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(I.imageWidth||18)+"px";this.icon.style.height=(I.imageHeight||18)+"px";return _.pQ(I.themedIcon.icon.iconType)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(EPT.YtCardItemBoxBehavior),_.A("design:type",Object)],IW.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],IW.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IW.prototype,"data",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],IW.prototype,"fit",void 0);_.W([_.M(),_.A("design:type",Boolean)],IW.prototype,"isDarkTheme_",void 0);_.W([_.M({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.A("design:type",Object)],IW.prototype,"themeImage_",void 0);_.W([_.M({computed:"computeThemeIcon_(data)"}),_.A("design:type",Object)],IW.prototype,"themeIcon_",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],IW.prototype,"isCircular_",void 0);
_.W([_.a0("#image"),_.A("design:type",Object)],IW.prototype,"image",void 0);_.W([_.a0("#icon"),_.A("design:type",Object)],IW.prototype,"icon",void 0);_.W([_.I6({is:"yt-themed-image-renderer",disableElementRegistration:!0})],IW);
_.a(IW,"yt-themed-image-renderer",function(){if(AMR===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;i_o===void 0&&(i_o=document.createElement("template"));var F=i_o;D.call(y,F.content.cloneNode(!0),I.content.firstChild);AMR=I}I=AMR;return I},{mode:2});var y$=function(){return _.k.apply(this,arguments)||this};
_.E(y$,_.k);y$.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"}}}}};
y$.prototype.computeImagePlacement_=function(I){return I||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],y$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],y$.prototype,"data",void 0);_.W([_.M({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.A("design:type",String)],y$.prototype,"imagePlacement",void 0);
_.W([_.I6({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],y$);
_.a(y$,"yt-card-item-text-with-image-renderer",function(){if(BcQ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Cub===void 0&&(Cub=document.createElement("template"));var F=Cub;D.call(y,F.content.cloneNode(!0),I.content.firstChild);BcQ=I}I=BcQ;return I},{mode:2});var Dc=function(){return _.k.apply(this,arguments)||this};
_.E(Dc,_.k);Dc.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"}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dc.prototype,"data",void 0);_.W([_.I6({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Dc);
_.a(Dc,"yt-card-item-error-renderer",function(){if(WMC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;cMQ===void 0&&(cMQ=document.createElement("template"));var F=cMQ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);WMC=I}I=WMC;return I},{mode:2});var $zy;var b_T;_.bO("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Fx=function(){return _.k.apply(this,arguments)||this};
_.E(Fx,_.k);_.L=Fx.prototype;
_.L.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"}}}}};
_.L.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.L.backgroundColorChanged_=function(){var I,y=(I=this.data)==null?void 0:I.backgroundColor;I=bN[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.XB(this.hostElement).querySelector("#main-content").style.backgroundColor=I};
_.L.headerPromoBackgroundColorChanged_=function(){var I,y=(I=this.data)==null?void 0:I.headerPromoBackgroundColor;I=bN[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.XB(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=I};
_.L.errorRendererVisibilityChanged_=function(){var I=this.isExpanded_,y;this.isErrorRendererVisible_=!((y=this.data)==null||!y.errorRenderer)&&!I};
_.L.onYtToggleButton_=function(I,y){this.isExpanded_=y.toggled};
Fx.prototype.onYtToggleButton_=Fx.prototype.onYtToggleButton_;Fx.prototype.errorRendererVisibilityChanged_=Fx.prototype.errorRendererVisibilityChanged_;Fx.prototype.headerPromoBackgroundColorChanged_=Fx.prototype.headerPromoBackgroundColorChanged_;Fx.prototype.backgroundColorChanged_=Fx.prototype.backgroundColorChanged_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(EPT.YtCardItemBoxBehavior),_.A("design:type",Object)],Fx.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.Q(_.kae.YtTappableItemBehavior),_.A("design:type",Object)],Fx.prototype,"ytTappableItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Fx.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Fx.prototype,"isExpanded_",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],Fx.prototype,"isErrorRendererVisible_",void 0);_.W([_.ke("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fx.prototype,"backgroundColorChanged_",null);_.W([_.ke("data.headerPromoBackgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fx.prototype,"headerPromoBackgroundColorChanged_",null);
_.W([_.ke("data.errorRenderer","isExpanded_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fx.prototype,"errorRendererVisibilityChanged_",null);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],Fx.prototype,"onYtToggleButton_",null);_.W([_.I6({is:"yt-card-item-renderer",disableElementRegistration:!0})],Fx);
_.a(Fx,"yt-card-item-renderer",function(){if(b_T===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;$zy===void 0&&($zy=document.createElement("template"));var F=$zy;D.call(y,F.content.cloneNode(!0),I.content.firstChild);b_T=I}I=b_T;return I},{mode:2});_.bO("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var RW=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;return I};
_.E(RW,_.k);_.L=RW.prototype;_.L.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.L.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.L.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var I,y=(I=this.commerceCartHeaderEntity)==null?void 0:I.isHidden;y!==void 0&&(this.hidden=y)}};
_.L.updateTitle=function(){var I=this.commerceCartHeaderEntity.isDisabled,y,D,F=(D=_.u((y=this.data)==null?void 0:y.item,U1z))==null?void 0:D.headingRenderer;F&&(y=TE(F,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".0.cardItemTextRenderer.textColor",I?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.L.updateSummaryText=function(){var I=this.commerceCartHeaderEntity;if(this.compact){var y,D,F=(D=_.u((y=this.data)==null?void 0:y.item,U1z))==null?void 0:D.headingRenderer;F&&(y=TE(F,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+y+".1.cardItemTextRenderer.text",I.shortHeaderSummaryText?sA(I.shortHeaderSummaryText):I.headerSummaryText?sA(I.headerSummaryText):""))}else{var R;if(y=(R=_.u((F=this.data)==null?void 0:F.item,U1z))==null?void 0:R.additionalInfoRenderer)y=TE(y,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".text",I.headerSummaryText?sA(I.headerSummaryText):"")}};
_.L.updateCheckoutButton=function(){var I=this.commerceCartHeaderEntity,y,D,F=(D=_.u((y=this.data)==null?void 0:y.item,U1z))==null?void 0:D.additionalInfoRenderer;y=TE(F,"buttonRenderer");var R;D=(R=this.commerceCartHeaderEntity)==null?void 0:R.isButtonDisabled;var O;R=(O=this.commerceCartHeaderEntity)==null?void 0:O.isButtonHidden;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.isDisabled",D);R!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
R);var w;I=(w=I.checkoutButtonCommand)==null?void 0:w.innertubeCommand;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+y+".buttonRenderer.command",I)};
RW.prototype.entityChanged=RW.prototype.entityChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],RW.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RW.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],RW.prototype,"compact",void 0);_.W([_.M({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(I,y){return _.nC(I.entities,"commerceCartHeaderEntity",y)}}),
_.A("design:type",Object)],RW.prototype,"commerceCartHeaderEntity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RW.prototype,"hidden",void 0);_.W([_.ke("commerceCartHeaderEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RW.prototype,"entityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],RW);
_.a(RW,"ytd-commerce-cart-header-renderer",function(){if(zna!==void 0)return zna;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return zna=I},{mode:1});var H_g;var ene=_.TQ(function(I,y){var D;return(D=I.onChangeCallback)==null?void 0:D.call(I,y)},1E3),Tce=_.d(function(I){var y=I.data;
var D=I.iconMinus;I=I.iconPlus;var F=function(){return!!y().disabled},R=_.J(_.$M(0,void 0,"mKh0af")),O=R.next().value,w=R.next().value;
R=_.YY(function(){if(O()===1){var N,h;(h=(N=y()).onRemoveCommand)==null||h.call(N)}N=O()>y().maxValue?y().maxValue:O()-1;w(N);ene(y(),N);return!1});
var v=_.YY(function(){if(O()===y().maxValue)return!1;var N=O()+1;w(N);ene(y(),N);return!1});
_.OJ(function(){w(y().value)});
var P={},K={},r={};return _.t("quantity-incrementer-shape",null,_.t("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.t("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return O()===(y().onRemoveCommand?0:1)||F()},
"aria-label":function(){return O()!==1?y().minusLabel:y().minimumReachedLabel},
"on:click":R},_.t(_.fM,{model:{circular:!0}}),_.t("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.t("div",{class:_.XH("ytSpecQuantityIncrementerShapeIcon",(P.ytSpecQuantityIncrementerShapeIconDisabled=function(){return F()||O()===(y().onRemoveCommand?0:1)},P))},D()))),_.t("div",{class:_.XH("ytSpecQuantityIncrementerShapeText",(K.ytSpecQuantityIncrementerShapeTextInvalid=function(){return O()>y().maxValue},K.ytSpecQuantityIncrementerShapeTextDisabled=F,K))},O),_.t("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return O()>=y().maxValue||F()},
"aria-label":function(){return O()!==y().maxValue?y().plusLabel:y().maximumReachedLabel},
"on:click":v},_.t(_.fM,{model:{circular:!0}}),_.t("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.t("div",{class:_.XH("ytSpecQuantityIncrementerShapeIcon",(r.ytSpecQuantityIncrementerShapeIconDisabled=function(){return O()>=y().maxValue||F()},r))},I())))))},"Rf");_.NK(_.d(function(I){function y(){D().onRemoveCommand&&_.OE(D().onRemoveCommand)}
var D=I.data;var F=_.zj(Dqo,function(){return D().quantityIncrementerEntityKey});
return _.t("yt-quantity-incrementer-view-model",null,_.t(Tce,{data:function(){var R=D(),O;var w=F()?!((O=F())==null||!O.disabled):!1;var v;O=F()?(v=F())==null?void 0:v.quantity:D().quantity;return rBq(R,w,y,O)},
iconMinus:function(){return _.t(_.mj,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.t(_.mj,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Sf"),"yt-quantity-incrementer-view-model",{props:{data:_.om}});var OF=function(){var I=_.k.apply(this,arguments)||this;I.compact=!1;I.hasQuantityIncrementer=!1;return I};
_.E(OF,_.k);OF.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"}}}};
OF.prototype.computeHasQuantityIncrementer=function(){var I;return!!_.u((I=this.data)==null?void 0:I.picker,Nm_)};
OF.prototype.onLabelClick=function(){var I;(I=this.dropdownEl)==null||I.open()};
_.W([_.a0("ytd-dropdown-renderer"),_.A("design:type",Object)],OF.prototype,"dropdownEl",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OF.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],OF.prototype,"quantityColor",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],OF.prototype,"compact",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.A("design:type",Object)],OF.prototype,"hasQuantityIncrementer",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],OF);
_.a(OF,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(H_g!==void 0)return H_g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H_g=I},{mode:1});var seQ;var Vfe;var LX=function(){return _.k.apply(this,arguments)||this};
_.E(LX,_.k);LX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
LX.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
LX.prototype.updateTitle=function(){var I=this.disabledCartItemEntity;I.disableActionName&&this.set("data.title",sA(I.disableActionName))};
LX.prototype.updateButton=function(){var I,y=(I=this.disabledCartItemEntity.undoCommand)==null?void 0:I.innertubeCommand;y!==void 0&&(this.set("data.actionButton.buttonRenderer.command",y),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
LX.prototype.entityChanged=LX.prototype.entityChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],LX.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(I,y){return _.nC(I.entities,"disabledCartItemEntity",y)}}),
_.A("design:type",Object)],LX.prototype,"disabledCartItemEntity",void 0);_.W([_.M(),_.A("design:type",Object)],LX.prototype,"data",void 0);_.W([_.ke("disabledCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LX.prototype,"entityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],LX);
_.a(LX,"ytd-disabled-cart-item-renderer",function(){if(Vfe!==void 0)return Vfe;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Vfe=I},{mode:1});_.bO("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Jo=function(){var I=_.k.apply(this,arguments)||this;I.compact=!1;I.hidden=!1;I.errorHidden=!1;I.noOnTap=!1;return I};
_.E(Jo,_.k);_.L=Jo.prototype;
_.L.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"}}}};
_.L.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.L.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var I=this.firstButtonElement;I.alignByText=!0;I.iconAlignByText=!0}};
_.L.computeNoOnTap=function(I){return!I};
_.L.updateQuantityColor=function(){if(this.pickerElement){var I,y=(I=this.commerceCartItemEntity)==null?void 0:I.quantityColor;this.pickerElement.quantityColor=y}};
_.L.updateTotalPriceColor=function(){var I,y=(I=this.commerceCartItemEntity)==null?void 0:I.totalPriceColor;if(y){var D;I=_.u((D=this.data)==null?void 0:D.quantityPicker,j2G);if(D=_.u(I==null?void 0:I.price,rhn))D.textColor=y}};
_.L.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var I,y=(I=this.commerceCartItemEntity)==null?void 0:I.isHidden;y!==void 0&&(this.hidden=y)}};
_.L.updateHideErrorMessage=function(){var I,y=(I=this.commerceCartItemEntity)==null?void 0:I.hideErrorMessage;y!==void 0&&(this.errorHidden=y)};
_.L.updateQuantity=function(){var I=this,y,D=(y=this.commerceCartItemEntity)==null?void 0:y.quantity,F;y=(F=this.commerceCartItemEntity)==null?void 0:F.totalPrice;if(D){this.updateTotalPriceColor();this.updateQuantityColor();var R;F=_.u((R=this.data)==null?void 0:R.quantityPicker,j2G);if(R=_.u(F==null?void 0:F.price,rhn))R.text=y?{simpleText:y.content}:void 0;if(y=_.u(F==null?void 0:F.picker,Nm_))y.quantity=D;var O;if(R=(O=_.u(F==null?void 0:F.picker,UTO))==null?void 0:O.entries){O=!1;y=void 0;R=
_.J(R);for(F=R.next();!F.done;F=R.next())F=F.value,F.dropdownItemRenderer&&(y||(y=F.dropdownItemRenderer),F.dropdownItemRenderer.isSelected=!1,D===F.dropdownItemRenderer.int32Value&&(O=!0,F.dropdownItemRenderer.isSelected=!0));!O&&y&&(y.isSelected=!0)}_.YC(this,function(){var w;I.set("data.quantityPicker",_.e$.unsafeClone((w=I.data)==null?void 0:w.quantityPicker))})}};
Jo.prototype.onYtRendererstamperFinished=Jo.prototype.onYtRendererstamperFinished;Jo.prototype.entityChanged=Jo.prototype.entityChanged;_.W([_.M(),_.A("design:type",Object)],Jo.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jo.prototype,"compact",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Jo.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Jo.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(I,y){return _.nC(I.entities,"commerceCartItemEntity",y)}}),
_.A("design:type",Object)],Jo.prototype,"commerceCartItemEntity",void 0);_.W([_.M(),_.A("design:type",Object)],Jo.prototype,"quantityPicker",void 0);_.W([_.M(),_.A("design:type",Object)],Jo.prototype,"compactQuantityPicker",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jo.prototype,"hidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jo.prototype,"errorHidden",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.A("design:type",Object)],Jo.prototype,"noOnTap",void 0);_.W([_.a0("ytd-commerce-cart-item-quantity-picker-renderer"),_.A("design:type",Object)],Jo.prototype,"pickerElement",void 0);_.W([_.a0("yt-button-renderer"),_.A("design:type",Element)],Jo.prototype,"firstButtonElement",void 0);
_.W([_.ke("commerceCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jo.prototype,"entityChanged",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jo.prototype,"onYtRendererstamperFinished",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Jo);
_.a(Jo,"ytd-commerce-cart-item-renderer",function(){if(seQ!==void 0)return seQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return seQ=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var Z_T;var gPR;var wf=function(){return _.k.apply(this,arguments)||this};
_.E(wf,_.k);wf.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}}}}}};
wf.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
wf.prototype.updateCheckoutLineItems=function(){var I,y=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.checkoutLineItems;y&&(I=y.map(function(D){a:{var F=D.price,R=D.description;switch(D.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":D={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:sA(R),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:sA(F),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:sA(R),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:sA(F),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",I))};
wf.prototype.updateIsHidden=function(){var I,y=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isHidden;y!==void 0&&(this.hostElement.hidden=y)};
wf.prototype.entityChanged=wf.prototype.entityChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],wf.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],wf.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wf.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],wf.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Bkq}),_.A("design:type",Object)],wf.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.ke("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wf.prototype,"entityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],wf);
_.a(wf,"ytd-commerce-cart-summary-renderer",function(){if(gPR!==void 0)return gPR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return gPR=I},{mode:1});var IQQ={};IQQ.InjectBehavior=[sYW.InjectBehavior];var yee;var D8y;var vN=function(){return _.k.apply(this,arguments)||this};
_.E(vN,_.k);
vN.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:_.HU("menuRenderer")}}};
vN.prototype.onMenuTap=function(I){I.stopPropagation()};
_.mD.Object.defineProperties(vN.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 I,y;return!(((I=this.data)==null||!I.sectionHeading)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var I,y;return!(((I=this.data)==null||!I.image)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var I,y;return!(((I=this.data)==null||!I.menu)&&((y=this.data)==null?void 0:y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.kae.YtTappableItemBehavior),_.A("design:type",Object)],vN.prototype,"ytTappableItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vN.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.accessibilityData"),_.A("design:type",String),_.A("design:paramtypes",[])],vN.prototype,"ariaLabel",null);_.W([_.Y("data.sectionHeading","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vN.prototype,"sectionHeadingVisible",null);_.W([_.Y("data.image","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vN.prototype,"imageVisible",null);
_.W([_.Y("data.menu","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vN.prototype,"menuVisible",null);_.W([_.I6({is:"yt-activity-item-renderer",disableElementRegistration:!0})],vN);
_.a(vN,"yt-activity-item-renderer",function(){if(D8y===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;yee===void 0&&(yee=document.createElement("template"));var F=yee;D.call(y,F.content.cloneNode(!0),I.content.firstChild);D8y=I}I=D8y;return I},{mode:2});var F1b;var RZY;var Oaa;var L1o;var S8=function(){return _.k.apply(this,arguments)||this};
_.E(S8,_.k);
S8.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"}}}}};
S8.prototype.backgroundColorChanged_=function(){var I,y=(I=this.data)==null?void 0:I.backgroundColor;this.hostElement.style.backgroundColor=bN[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
S8.prototype.backgroundColorChanged_=S8.prototype.backgroundColorChanged_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],S8.prototype,"data",void 0);
_.W([_.ke("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],S8.prototype,"backgroundColorChanged_",null);_.W([_.I6({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],S8);
_.a(S8,"yt-offer-item-upsell-renderer",function(){if(L1o===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Oaa===void 0&&(Oaa=document.createElement("template"));var F=Oaa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);L1o=I}I=L1o;return I},{mode:2});_.bO("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var to=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};I.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return I};
_.E(to,_.k);_.L=to.prototype;
_.L.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:_.HU("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.L.computeContainerStyle_=function(I){return I};
_.L.computeContainerIsHidden_=function(I){return I&&!!I.isHidden};
_.L.computeShowSpinner_=function(I,y){return I&&y==="in-progress"};
_.L.computeShowMoreContentsButton_=function(I,y,D,F,R){return!(!(F&&F.length||R&&R.length&&D)||!I||y)};
_.L.onToggleButton_=function(I){var y=this;I.stopPropagation();this.isExpanded_=I.detail&&I.detail.toggled;var D,F;this.isExpanded_&&!this.data.continuationSection.length&&((D=this.data)==null?0:(F=D.continuation)==null?0:F.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.lj(this.hostElement,"yt-load-next-continuation",function(R){return y.getContinuationUrl_(y.data.continuation.onClickContinuationData,R)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.E$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.L.onShowMoreContentsButtonClicked_=function(I){var y=this;I.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.lj(this.hostElement,"yt-load-next-continuation",function(D){return y.getContinuationUrl_(y.data.continuations[0].nextContinuationData,D)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.E$(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.L.getContinuationUrl_=function(I,y){var D=I.continuation;I=I.clickTrackingParams;var F=_.VO();I&&F&&_.SI(F,_.AC(I));return _.qC(y,{continuation:D})};
_.L.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var I=_.XB(this.hostElement).querySelector("#continuation-section");I&&(I=I.querySelectorAll("ytmusic-item-section-renderer"))&&I.forEach(function(y){return y.classList.add("memberships-and-purchases")})};
_.L.dataChanged_=function(){var I;this.isExpanded_=!((I=this.data)==null||!I.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.L.updateCardOnClickCommand_=function(I){I=_.u(I,LFz);var y,D;this.data&&((y=this.data)==null?0:y.targetId)&&I&&I.targetId===((D=this.data)==null?void 0:D.targetId)&&I.onClickCommand&&(this.data.onClickCommand=I.onClickCommand,this.isOnClickCommand_=!0)};
_.L.backgroundColorChanged_=function(){var I,y=(I=this.data)==null?void 0:I.backgroundColor;this.hostElement.style.backgroundColor=bN[y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
to.prototype.backgroundColorChanged_=to.prototype.backgroundColorChanged_;to.prototype.dataChanged_=to.prototype.dataChanged_;to.prototype.nextContinuationDataUpdated_=to.prototype.nextContinuationDataUpdated_;to.prototype.onToggleButton_=to.prototype.onToggleButton_;_.W([_.Q(_.ha),_.A("design:type",Object)],to.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],to.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],to.prototype,"ytNextContinuationBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.W([_.Q(IQQ.InjectBehavior),_.A("design:type",Object)],to.prototype,"injectBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],to.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],to.prototype,"compact",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],to.prototype,"isExpanded_",void 0);_.W([_.M({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.A("design:type",String)],to.prototype,"containerStyle_",void 0);_.W([_.M({value:"not-started"}),_.A("design:type",String)],to.prototype,"continuationStatus_",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.A("design:type",Boolean)],to.prototype,"showSpinner_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],to.prototype,"isOnClickCommand_",void 0);_.W([_.M({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.A("design:type",Boolean)],to.prototype,"showMoreContentsButton_",void 0);
_.W([_.M({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(I,y){return!y||I.entities?null:_.nC(I.entities,"cardItemContainerEntity",y)}}),
_.A("design:type",Object)],to.prototype,"cardItemContainerEntity_",void 0);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],to.prototype,"onToggleButton_",null);_.W([_.z4("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],to.prototype,"nextContinuationDataUpdated_",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],to.prototype,"dataChanged_",null);_.W([_.ke("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],to.prototype,"backgroundColorChanged_",null);_.W([_.I6({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],to);
_.a(to,"yt-card-item-container-renderer",function(){if(RZY===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;F1b===void 0&&(F1b=document.createElement("template"));var F=F1b;D.call(y,F.content.cloneNode(!0),I.content.firstChild);RZY=I}I=RZY;return I},{mode:2});var PN=function(){return _.k.apply(this,arguments)||this};
_.E(PN,_.k);PN.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"}}}};
PN.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
PN.prototype.computeLoadingHidden=function(){var I;return!((I=this.commerceCartPageStateEntity)==null?0:I.cartActionInProgress)};
PN.prototype.updateNotification=function(){var I,y=(I=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:I.summaryText;y&&this.set("data.cartNotification",sA(y))};
PN.prototype.notificationEntityChanged=PN.prototype.notificationEntityChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],PN.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],PN.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(I,y){return _.nC(I.entities,"commerceCartExpandableNotificationEntity",y)}}),
_.A("design:type",Object)],PN.prototype,"commerceCartExpandableNotificationEntity",void 0);_.W([_.M({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(I,y){return _.nC(I.entities,"commerceCartPageStateEntity",y)}}),
_.A("design:type",Object)],PN.prototype,"commerceCartPageStateEntity",void 0);_.W([_.a0("#spinner"),_.A("design:type",HTMLElement)],PN.prototype,"spinner",void 0);_.W([_.ke("commerceCartExpandableNotificationEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PN.prototype,"notificationEntityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],PN);
_.a(PN,"ytd-commerce-cart-renderer",function(){if(Z_T!==void 0)return Z_T;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Z_T=I},{mode:1});var JeQ;var KX=function(){var I=_.k.apply(this,arguments)||this;I.bigImage=!1;return I};
_.E(KX,_.k);_.mD.Object.defineProperties(KX.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.placeholderImageUrl}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],KX.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],KX.prototype,"bigImage",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],KX.prototype,"placeholderImageUrl",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],KX);
_.a(KX,"ytd-empty-product-shelf-renderer",function(){if(JeQ!==void 0)return JeQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return JeQ=I},{mode:1});var wCe;var UF=function(){var I=_.k.apply(this,arguments)||this;I.itemStyle="link-item";I.watchMetadataRefresh=!1;I.skinnyMode=!1;I.metaPanel=!1;I.inStructuredDescription=!1;I.detailedDescriptionOverride=!1;I.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};I.updateOnResizeDebouncer=null;return I};
_.E(UF,_.k);_.L=UF.prototype;_.L.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.L.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"}}}}};
_.L.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.L.attachVEs=function(I){I.trackingParams&&_.W4().graftServerVe(I.trackingParams)};
_.L.handleUpdateMerchShelfAction=function(I){var y=this,D=_.u(I.updateMerchandiseShelfAction.merchandiseShelf,_.nDg);D&&(D.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){y.attachVEs(D);y.data=D},Number(D.renderDelayMs))):(this.attachVEs(D),this.data=D))};
_.L.updateOnResize=function(){if(this.JSC$17306_scrollContainer!==void 0&&this.JSC$17306_scrollContainer.clientWidth!==0&&this.items!==void 0){var I=this.JSC$17306_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-I));this.ytdHorizontalListBehavior.reposition_();var y;switch((y=this.data)==null?void 0:y.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var D,
F;((D=this.data)==null?void 0:(F=D.items)==null?void 0:F.length)===1?this.itemStyle="cta-item":this.itemStyle=I>=740?"large-item":"small-item"}}};
_.L.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.mz(this.updateOnResizeDebouncer,_.x0.after(100),this.updateOnResize)};
UF.prototype.debouncedUpdateOnResize=UF.prototype.debouncedUpdateOnResize;UF.prototype.dataChanged=UF.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],UF.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],UF.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],UF.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UF.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"itemStyle",void 0);_.W([_.M({value:6}),_.A("design:type",Number)],UF.prototype,"initialCount",void 0);
_.W([_.M({value:"data.items"}),_.A("design:type",String)],UF.prototype,"itemsPath",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"watchMetadataRefresh",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"skinnyMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"metaPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"inStructuredDescription",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UF.prototype,"detailedDescriptionOverride",void 0);_.W([_.a0("#items"),_.A("design:type",HTMLDivElement)],UF.prototype,"items",void 0);_.W([_.a0("#scroll-container"),_.A("design:type",HTMLDivElement)],UF.prototype,"JSC$17306_scrollContainer",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UF.prototype,"dataChanged",null);
_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UF.prototype,"debouncedUpdateOnResize",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],UF);
_.a(UF,"ytd-merch-shelf-renderer",function(){if(wCe!==void 0)return wCe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wCe=I},{mode:2});var vyZ;var rf=function(){var I=_.k.apply(this,arguments)||this;I.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 I};
_.E(rf,_.k);_.L=rf.prototype;
_.L.addBackstagePostAction=function(I){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(I=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",I))&&(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:I}):this.set("data.contents",[{backstagePostThreadRenderer:I}]))};
_.L.addBackstageCommentAction=function(I){var y=this.get("addBackstageCommentAction.parentId",I);I=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",I);if(y&&I){y=this.postIdToIndices(y);for(var D=0;D<y.length;D++){var F=y[D];if(F<0)break;F="data.contents."+F+".backstagePostThreadRenderer.comments";this.get(F)&&(this.get(F+".backstageCommentsRenderer.contents")&&this.push(F+".backstageCommentsRenderer.contents",{commentThreadRenderer:I}),this.get(F+".backstageCommentsRenderer.teaserContents")?
this.push(F+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:I}):this.set(F+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:I}]))}}};
_.L.addBackstageReplyAction=function(I){var y=this.get("addBackstageReplyAction.parentId",I);I=this.get("addBackstageReplyAction.renderer.commentRenderer",I);y&&I&&this.setCreatorReply(y,I)};
_.L.banAuthorAction=function(I){var y=this.get("banAuthorAction.commentId",I);y&&(I=this.get("banAuthorAction.parentCommentId",I)||this.getParentPostId(y),this.removeFromStream(y,I))};
_.L.hideReportedCommentAction=function(I){var y=this.get("hideReportedCommentAction.commentId",I);y&&((I=this.get("hideReportedCommentAction.parentCommentId",I))||(I=this.getParentPostId(y)),this.removeFromStream(y,I))};
_.L.replaceBackstageCommentAction=function(I){var y=this.get("replaceBackstageCommentAction.commentId",I),D=this.get("replaceBackstageCommentAction.parentId",I);I=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",I);if(y&&D&&I){D=this.postIdToIndices(D);for(var F=0;F<D.length;F++){var R=D[F];if(R<0)break;var O=this.commentIdToIndex(y,R,!1);if(O>=0){var w=this.get("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+O+".commentThreadRenderer.replies.commentRepliesRenderer");
w&&(I.replies={commentRepliesRenderer:w});this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",O,1,{commentThreadRenderer:I})}O=this.commentIdToIndex(y,R,!0);if(O>=0){if(w=this.get("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(O+".commentThreadRenderer.replies.commentRepliesRenderer")))I.replies={commentRepliesRenderer:w};this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
O,1,{commentThreadRenderer:I})}}}};
_.L.replaceBackstagePostAction=function(I){var y=this.get("replaceBackstagePostAction.itemId",I);if(y){y=this.postIdToIndices(y);for(var D=0;D<y.length;D++){var F=y[D];if(F<0)break;var R=this.getPostRendererType(F),O=this.get("replaceBackstagePostAction.renderer."+R,I);if(!O&&R!=="sharedPostRenderer")break;var w=!1;O||(w=!0,O=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",I));if(!O)break;var v={};w?(_.sv(v,bHM,O),this.set("data.contents."+F+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
v)):(_.sv(v,new _.lk(R),O),this.set("data.contents."+F+".backstagePostThreadRenderer.post",v))}}};
_.L.replaceBackstageReplyAction=function(I){var y=this.get("replaceBackstageReplyAction.replyId",I),D=this.get("replaceBackstageReplyAction.parentId",I);I=this.get("replaceBackstageReplyAction.renderer.commentRenderer",I);y&&I&&D&&this.setCreatorReply(D,I)};
_.L.removeCommentAction=function(I){var y=this.get("removeCommentAction.commentId",I);if(y){var D=this.get("removeCommentAction.parentCommentId",I);D&&this.get("removeCommentAction.isCreatorReply",I)?this.setCreatorReply(D,void 0):(D||(D=this.getParentPostId(y)),this.removeFromStream(y,D))}};
_.L.setCreatorReply=function(I,y){var D=this.getParentPostId(I);if(D){D=this.postIdToIndices(D);for(var F=0;F<D.length;F++){var R=D[F];if(R<0)break;var O=this.commentIdToIndex(I,R,!1);if(O>=0){var w="data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+O;O=w+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";w+=".commentThreadRenderer.replies";y==void 0?(this.set(w,{}),this.set(O,!1)):(this.set(w,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),
this.set(w+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(O,!0))}O=this.commentIdToIndex(I,R,!0);O>=0&&(O="data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+O,R=O+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",O+=".commentThreadRenderer.replies",y==void 0?(this.set(O,{}),this.set(R,!1)):(this.set(O,{commentRepliesRenderer:{teaserContents:[{commentRenderer:y}]}}),this.set(R,!0)))}}};
_.L.removeFromStream=function(I,y){if(y){y=this.postIdToIndices(y);for(var D=0;D<y.length;D++){var F=y[D];if(F<0)break;var R=this.commentIdToIndex(I,F,!1);R>=0&&this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",R,1);R=this.commentIdToIndex(I,F,!0);R>=0&&this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",R,1);F="data.contents."+F+".backstagePostThreadRenderer.post.backstagePostRenderer";
R=F+".backstageAttachment.pollRenderer.votedCommentId";this.get(R)===I&&(this.set(R,null),this.set(F+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(y=this.postIdToIndices(I).reverse(),D=0;D<y.length;D++){F=y[D];if(F<0)break;R=this.getPostRendererType(F);var O=this.get("backstagePostThreadRenderer.post."+R,this.data.contents[F]);O.postId===I?this.splice("data.contents",F,1):R==="sharedPostRenderer"&&this.set("data.contents."+F+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);O.scheduledPublishTimeSec&&_.uj(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.L.postIdToIndices=function(I){for(var y=[],D=0;D<this.data.contents.length;D++){var F=this.getPostRendererType(D);this.get("backstagePostThreadRenderer.post."+F+".postId",this.data.contents[D])===I&&y.push(D);if(F==="sharedPostRenderer"){var R=this.get("backstagePostThreadRenderer.post."+F+".originalPost.backstagePostRenderer.postId",this.data.contents[D]);F=this.get("backstagePostThreadRenderer.post."+F+".originalPost.postRenderer.postId",this.data.contents[D]);R!==I&&F!==I||y.push(D)}}return y};
_.L.commentIdToIndex=function(I,y,D){if(y<0)return-1;var F,R,O,w,v=_.u((F=this.data)==null?void 0:(R=F.contents)==null?void 0:(O=R[y])==null?void 0:(w=O.backstagePostThreadRenderer)==null?void 0:w.comments,Ara);return(y=D?v==null?void 0:v.teaserContents:v==null?void 0:v.contents)&&y.length?y.findIndex(function(P){return _.u(P,G0g).comment.commentRenderer.commentId===I}):-1};
_.L.getParentPostId=function(I){I=I.split(".");if(I[1])return I[0]};
_.L.getPostRendererType=function(I){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[I])?"sharedPostRenderer":"backstagePostRenderer"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],rf.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rf.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:_.l("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],rf.prototype,"useSmallerPostContainer",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-backstage-items"})],rf);
_.a(rf,"ytd-backstage-items",function(){if(vyZ!==void 0)return vyZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return vyZ=
I},{mode:1});var SbQ;var tgY={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},j8=function(){var I=_.k.apply(this,arguments)||this;I.disablePrescanVisibility=!0;I.canScheduleJobs=!0;I.engagementPanel=!1;I.hidePanelButton=!1;I.isWatchGrid=
!1;I.hasShownSubscribersOnlyDisclaimer=!1;I.hasShownSuperfanOnlyDisclaimer=!1;I.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_"};I.TEST_ONLY=void 0;return I};
_.E(j8,_.k);_.L=j8.prototype;_.L.created=function(){this.initCommentsCsi_();_.l("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.l("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.L.contentsChanged_=function(){var I;(I=this.data)!=null&&I.contents&&this.tickForCommentsTimer_("cml")};
_.L.headerChanged_=function(){var I;(I=this.data)!=null&&I.header&&this.tickForCommentsTimer_("cmhl")};
_.L.initCommentsCsi_=function(){_.s$("wn_comments");var I=_.VO();I&&_.ek({clientScreenNonce:I},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.L.createCommentAction_=function(I){I=_.e$.unsafeClone(I);var y,D;if(I=(y=_.u(I,jZg))==null?void 0:(D=y.contents)==null?void 0:D.commentThreadRenderer){var F,R,O,w,v,P;!this.isBackstage&&((F=this.data)==null?0:(R=F.header)==null?0:(O=R.commentsHeaderRenderer)==null?0:(w=O.createRenderer)==null?0:(v=w.commentSimpleboxRenderer)==null?0:(P=v.zeroStep)==null?0:P.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var K,
r,N;this.isBackstage&&_.u((K=this.data)==null?void 0:(r=K.header)==null?void 0:(N=r.commentsHeaderRenderer)==null?void 0:N.zeroStateMessage,HHa)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(I)}};
_.L.doReplyInsert_=function(I,y,D,F){F?this.splice(I,F,0,y):this.push(I,y)};
_.L.getRepliesPath_=function(I){return"data.contents."+I+".commentThreadRenderer.replies"};
_.L.getRepliesContentsPath_=function(I,y){I=this.getRepliesPath_(I);return y?I+".commentRepliesRenderer.teaserContents":I+".commentRepliesRenderer.contents"};
_.L.showSubscribersOnlyDisclaimer_=function(I){(I=I.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&(_.uj(this.hostElement,"yt-open-popup-action",[I,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.L.showSuperfanOnlyDisclaimer_=function(I){(I=I.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&(_.uj(this.hostElement,"yt-open-popup-action",[I,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.L.createCommentReplyAction_=function(I){I=_.e$.unsafeClone(I);var y=_.u(I,o0M);if(I=y==null?void 0:y.contents){var D=this.commentIdToIndex_(y==null?void 0:y.parentCommentId);if(!(D<0)){var F=this.getRepliesPath_(D);if(this.get(F)){y=y.replyToCommentId;F=this.getRepliesContentsPath_(D,!1);if(this.get(F)){var R=this.get(F).length,O=F+"."+(R-1)+".continuationItemRenderer";this.get(O+".button")?(O=this.replyIdToIndex_(y,D,!1),this.doReplyInsert_(F,I,O,R-1)):this.get(O)||(R=this.replyIdToIndex_(y,D,
!1),this.doReplyInsert_(F,I,R,null))}F=this.getRepliesContentsPath_(D,!0);this.get(F)?(D=this.replyIdToIndex_(y,D,!0),(!y||D>=0)&&this.doReplyInsert_(F,I,D,null)):this.set(F,[I])}else this.set(F,{commentRepliesRenderer:{teaserContents:[I]}})}}};
_.L.hideReportedCommentAction_=function(I){var y=_.u(I,aBM);if(I=y==null?void 0:y.commentId)(y=this.get("parentCommentId",y))||(y=this.getParentCommentId_(I)),this.remove_(I,y)};
_.L.getParentCommentId_=function(I){I=I.split(".");if(I[1])return I[0]};
_.L.removeCommentAction_=function(I){var y=_.u(I,uoG);if(I=y==null?void 0:y.commentId)y=(y==null?void 0:y.parentCommentId)||this.getParentCommentId_(I),this.remove_(I,y)};
_.L.pinCommentAction_=function(I){I=_.e$.unsafeClone(I);var y=_.u(I,lBc);y!=null&&y.commentId&&(I=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",I))&&(this.remove_(y.commentId),this.insert_(I,!0))};
_.L.unpinCommentAction_=function(I){I=_.e$.unsafeClone(I);I=_.u(I,q4c);if(I!=null&&I.commentId){var y,D,F=(y=I.actionResult)==null?void 0:(D=y.update)==null?void 0:D.commentThreadRenderer;F&&(this.remove_(I.commentId),this.insert_(F))}};
_.L.banAuthorAction_=function(I){var y=_.u(I,rgf);y!=null&&y.commentId&&(I=y.commentId,y=y.parentCommentId||this.getParentCommentId_(I),this.remove_(I,y))};
_.L.handleScrollToCommentElement_=function(I){this.hostElement.contains(I)&&(this.nearestScrollParent||(this.nearestScrollParent=jAJ(I)),this.isCommentVisibleInScrollParent(I)||I.scrollIntoView({behavior:"smooth",block:"start"}))};
_.L.isCommentVisibleInScrollParent=function(I){if(!this.nearestScrollParent)return!1;I=I.getBoundingClientRect();var y=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return I.top>=y.top&&I.bottom<=y.bottom};
_.L.commentIdToIndex_=function(I){var y;return I&&(y=this.data)!=null&&y.contents?this.data.contents.findIndex(function(D){D=D.commentThreadRenderer;var F;return I===((D==null?void 0:D.commentViewModel)&&((F=_.u(D.commentViewModel,ptP))==null?void 0:F.commentId))}):-1};
_.L.insert_=function(I,y){y=y===void 0?!1:y;var D,F;if((D=this.data)==null?0:(F=D.contents)==null?0:F.some(function(O){return!!O.commentThreadRenderer}))for(D=0,F=this.data.contents.length;D<F;D++){var R=this.data.contents[D].commentThreadRenderer;
if(tgY[I.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=tgY[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){y&&tgY[I.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===tgY[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",D,1,{commentThreadRenderer:I}):this.splice("data.contents",D,0,{commentThreadRenderer:I});break}}else this.set("data.contents",[{commentThreadRenderer:I}])};
_.L.doReplyRemove_=function(I,y,D){I=this.replyIdToIndex_(I,y,D);I<0||(y=this.getRepliesContentsPath_(y,D),this.splice(y,I,1))};
_.L.remove_=function(I,y){y=this.commentIdToIndex_(y);y<0?(y=this.commentIdToIndex_(I),y<0||this.splice("data.contents",y,1)):_.l("web_delhi_comment_threads")||(this.doReplyRemove_(I,y,!1),this.doReplyRemove_(I,y,!0))};
_.L.replyIdToIndex_=function(I,y,D){if(y<0)return-1;y=this.getRepliesContentsPath_(y,D);y=this.get(y);if(!y||!y.length)return-1;D=0;for(var F=y.length;D<F;D++){var R=void 0,O=void 0;if(((R=y[D])==null?void 0:(O=R.commentViewModel)==null?void 0:O.commentId)===I)return D}return-1};
_.L.tickForCommentsTimer_=function(I){_.ZL(I,void 0,"wn_comments")};
_.L.reloadComments_=function(I){I=_.u(I,fBf);_.u(I==null?void 0:I.command,_.IP)&&_.E$(this.hostElement,[I==null?void 0:I.command])};
_.mD.Object.defineProperties(j8.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.data)==null?0:(y=I.header)==null?0:(D=y.commentsHeaderRenderer)==null?0:D.isBackstageContent)}}});
_.mD.Object.defineProperties(j8,{template:{configurable:!0,enumerable:!0,get:function(){if(SbQ===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);SbQ=I}I=SbQ;return I}}});
j8.prototype.showSuperfanOnlyDisclaimer_=j8.prototype.showSuperfanOnlyDisclaimer_;j8.prototype.showSubscribersOnlyDisclaimer_=j8.prototype.showSubscribersOnlyDisclaimer_;j8.prototype.headerChanged_=j8.prototype.headerChanged_;j8.prototype.contentsChanged_=j8.prototype.contentsChanged_;_.W([_.Q(_.G2),_.A("design:type",Object)],j8.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",Function)],j8.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],j8.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],j8.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.header.commentsHeaderRenderer.isBackstageContent"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j8.prototype,"isBackstage",null);
_.W([_.M(),_.A("design:type",Object)],j8.prototype,"disablePrescanVisibility",void 0);_.W([_.M(),_.A("design:type",Object)],j8.prototype,"canScheduleJobs",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],j8.prototype,"engagementPanel",void 0);_.W([_.M(),_.A("design:type",Object)],j8.prototype,"hidePanelButton",void 0);_.W([_.M(),_.A("design:type",Object)],j8.prototype,"isWatchGrid",void 0);_.W([_.M(),_.A("design:type",Object)],j8.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.W([_.M(),_.A("design:type",Object)],j8.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.W([_.ke("data.contents"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j8.prototype,"contentsChanged_",null);_.W([_.ke("data.header"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j8.prototype,"headerChanged_",null);
_.W([_.z4("yt-show-subscribers-only-disclaimer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],j8.prototype,"showSubscribersOnlyDisclaimer_",null);_.W([_.z4("yt-show-superfan-only-snackbar"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],j8.prototype,"showSuperfanOnlyDisclaimer_",null);_.W([_.yd({is:"ytd-comments"})],j8);var oW=function(){return _.Wp.apply(this,arguments)||this};
_.E(oW,_.Wp);_.L=oW.prototype;_.L.bindIf=function(I,y,D){return I?y:D};
_.L.bindIfDefined=function(I,y){return I!==void 0?I:y};
_.L.booleanString=function(I){return(!!I).toString()};
_.L.equals=function(){for(var I=_.go.apply(0,arguments),y=I[0],D=1;D<I.length;D++)if(y!=I[D])return!1;return!0};
_.L.isGreaterThan=function(I,y){return I>y};
_.L.isLessThan=function(I,y){return I<y};
_.L.logicalAND=function(){for(var I=_.go.apply(0,arguments),y=!!I[0],D=1;D<I.length;D++)y=y&&!!I[D];return y};
_.L.logicalOR=function(){for(var I=_.go.apply(0,arguments),y=!!I[0],D=1;D<I.length;D++)y=y||!!I[D];return y};
_.L.toBool=function(I){return!!I};
oW.prototype.toBool=oW.prototype.toBool;oW.prototype.logicalOR=oW.prototype.logicalOR;oW.prototype.logicalAND=oW.prototype.logicalAND;oW.prototype.isLessThan=oW.prototype.isLessThan;oW.prototype.isGreaterThan=oW.prototype.isGreaterThan;oW.prototype.equals=oW.prototype.equals;oW.prototype.booleanString=oW.prototype.booleanString;oW.prototype.bindIfDefined=oW.prototype.bindIfDefined;oW.prototype.bindIf=oW.prototype.bindIf;_.W([_.Cg()],oW);_.PRo=[oW.prototype];var K1g;var U8C;var Nd=function(){return _.k.apply(this,arguments)||this};
_.E(Nd,_.k);Nd.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Nd.prototype.onBackIconTap_=function(){window.history.back()};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nd.prototype,"data",void 0);_.W([_.I6({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Nd);
_.a(Nd,"yt-header-with-back-renderer",function(){if(U8C===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;K1g===void 0&&(K1g=document.createElement("template"));var F=K1g;D.call(y,F.content.cloneNode(!0),I.content.firstChild);U8C=I}I=U8C;return I},{mode:2});var re1;var jT1;var ho=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(ho,_.k);_.L=ho.prototype;_.L.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I,this.setUrl())};
_.L.dataChanged=function(){var I=this;if(this.data){var y=this.setUrl();y&&_.YX({destination:window,iframe:this.iframe,origin:_.YWe(y.toString()),channelName:"yt-iframe",onMessage:function(D){(D=I.getCommunicationCommand(D.data))&&I.ytComponentBehavior.resolveCommand(D)},
onEstablished:function(){}})}};
_.L.setUrl=function(){if(this.data&&this.data.iframeUrl){var I=_.vP(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(I)return _.Ok(this.iframe,I),I}};
_.L.getCommunicationCommand=function(I){var y;if((y=this.data)!=null&&y.onCommunicationCommandsMap){y=this.data.onCommunicationCommandsMap.find(function(R){return R.key===I});
if(y==null?0:y.value)return y==null?void 0:y.value;try{var D=Tpa(_.ZC(I)),F=this.data.onCommunicationCommandsMap.find(function(R){return R.key===(D==null?void 0:D.getMethodName())});
if(F==null?0:F.value)return F==null?void 0:F.value}catch(R){}}};
ho.prototype.dataChanged=ho.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ho.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ho.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ho.prototype,"data",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],ho.prototype,"isDarkTheme",void 0);_.W([_.a0("#iframe"),_.A("design:type",HTMLIFrameElement)],ho.prototype,"iframe",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ho.prototype,"dataChanged",null);_.W([_.I6({is:"yt-iframe-renderer",disableElementRegistration:!0})],ho);
_.a(ho,"yt-iframe-renderer",function(){if(jT1===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;re1===void 0&&(re1=document.createElement("template"));var F=re1;D.call(y,F.content.cloneNode(!0),I.content.firstChild);jT1=I}I=jT1;return I},{mode:2});_.xH=function(I){_.B5.call(this);this.callback=I;this.bezier=new lwH(0,0,.4,0,.2,1,1,1);this.delay=new _.kC(this.next,window,this);this.JSC$17346_animating=!1;_.pW(this,this.delay)};
_.E(_.xH,_.B5);_.xH.prototype.isAnimating=function(){return this.JSC$17346_animating};
_.xH.prototype.start=function(I,y,D){this.config={from:I,to:y,duration:D,startTime:(0,_.m_)()};this.JSC$17346_animating=!0;this.next()};
_.xH.prototype.stop=function(){this.delay.stop();this.JSC$17346_animating=!1;this.config=void 0};
_.xH.prototype.next=function(){if(this.config){var I=this.config,y=I.from,D=I.to,F=I.duration;I=I.startTime;var R=(0,_.m_)()-I;I=this.bezier;F=LKf(I,R/F);if(F==0)I=I.y0;else if(F==1)I=I.y3;else{R=VH(I.y0,I.y1,F);var O=VH(I.y1,I.y2,F);I=VH(I.y2,I.y3,F);R=VH(R,O,F);O=VH(O,I,F);I=VH(R,O,F)}I=_.IL(I,0,1);this.callback(y+(D-y)*I);I<1?this.delay.start():this.JSC$17346_animating=!1}};_.lB=new _.uk("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var oyY={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},hZG=function(I,y,D,F){_.B5.call(this);this.JSC$17357_miniAppId=I;this.localReleaseId=y;this.derivedDeviceInterface=D;this.isForeground=F;this.JSC$17357_playNonceResolver=new _.n0;this.playPingTimerId=NaN;this.playPingIntervalMs=_.kf("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.kf("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.l("enable_displaying_ppn");this.JSC$17357_miniAppClientDataProvider=_.nR().resolve(_.lB);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;NGb(this);var R=setTimeout(function(){_.tq(new _.g6("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17357_playNonceResolver.promise.then(function(){clearTimeout(R)})};
_.E(hZG,_.B5);var lQY=function(I,y){I.JSC$17357_playNonceResolver.resolve(y!=null?y:eC(8));I.enableDisplayingPpn&&x8a(I).then(function(D){I.JSC$17357_miniAppClientDataProvider.clientData.set("post_play_nonce",D)})},x8a=function(I){return _.S(function(y){return y.nextAddress==1?y.yield(I.JSC$17357_playNonceResolver.promise,2):y.return(y.yieldResult)})},NGb=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$17357_playNonceResolver.promise,2);y=F.yieldResult;D={miniAppInfo:{externalPostId:I.JSC$17357_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:y,derivedDeviceInterface:I.derivedDeviceInterface}};_.ek(D);_.Cj(F)})},qbT=function(I){I.state!==0?_.tq(new _.g6("[MiniAppPlayLogger] recordPlayStart failed with state "+oyY[I.state])):(I.state=1,uB(I,"ma_cl"),qd(I,"PLAY_EVENT_TYPE_PLAY_START"),uYR(I))},Eyy=function(I){I.isForeground=!1;
qd(I,"PLAY_EVENT_TYPE_PLAY_PAUSE")},GoZ=function(I){I.state!==1&&I.state!==2?_.tq(new _.g6("[MiniAppPlayLogger] recordPlayEnd failed with state "+oyY[I.state])):(I.state=3,window.clearInterval(I.playPingTimerId),I.playPingTimerId=NaN,Zbt(),qd(I,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},XC1=function(I,y){I.state===2&&I.gameReady&&(I.firstClickRecorded?Date.now()-I.clickRecordedMs<I.playClickIntervalMs||(I.clickRecordedMs=Date.now(),qd(I,"PLAY_EVENT_TYPE_PLAY_CLICK")):y&&(uB(I,"ma_fua"),qd(I,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),I.firstClickRecorded=!0,I.clickRecordedMs=Date.now()))};
hZG.prototype.logError=function(I){var y=this,D;_.S(function(F){if(F.nextAddress==1)return I.metadata.externalPostId=y.JSC$17357_miniAppId,D=I.metadata,F.yield(Promise.race([y.JSC$17357_playNonceResolver.promise,new Promise(function(R){setTimeout(function(){R("")},3E4)})]),2);
D.postPlayNonce=F.yieldResult;I.metadata.localReleaseId=y.localReleaseId;I.loggingError.level="WARNING";_.vu(I.loggingError,I.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:I.metadata});_.Cj(F)})};
var QTY=function(I,y,D,F){var R,O,w,v,P,K;_.S(function(r){if(r.nextAddress==1)return r.yield(I.JSC$17357_playNonceResolver.promise,2);R=r.yieldResult;O={externalPostId:I.JSC$17357_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:R,sdkVersion:D,api:y};F!==void 0&&(O.networkRequestsMeasurement={networkRequests:_.lD(F,1),cachedRequests:_.lD(F,2),transferredBytes:_.lD(F,3)},(w=F)==null?0:_.aL(w,NH,6))&&(O.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((v=_.kk(F,
NH,6))==null?void 0:Vt(v,1))||"0",cacheHits:((P=_.kk(F,NH,6))==null?void 0:Vt(P,2))||"0",cachedBytes:((K=_.kk(F,NH,6))==null?void 0:Vt(K,3))||"0"});_.Jq("miniAppSdkUsage",O);_.Cj(r)})},fQY=function(I,y,D){var F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z;
_.S(function(B){if(B.nextAddress==1)return B.yield(I.JSC$17357_playNonceResolver.promise,2);F=B.yieldResult;R={externalPostId:I.JSC$17357_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:F,sdkVersion:D,measurementWindow:{startTimestampMs:String(Hn(y,1)),endTimestampMs:String(Hn(y,2))},frameRate:{averageFrameTimeDeltaMs:e0(y,3),averageFrameIdleTimeMs:e0(y,4)}};_.aL(y,hw,5)&&(R.networkRequests={networkRequests:(O=Xl(y))==null?void 0:_.lD(O,1),cachedRequests:(w=Xl(y))==null?void 0:_.lD(w,2),transferredBytes:(v=
Xl(y))==null?void 0:_.lD(v,3),sameOriginStatusCodeToCounts:Yby((P=Xl(y))==null?void 0:_.Ae5(P,4,void 0,Z_o,Z_o)),crossOriginStatusCodeToCounts:Yby((K=Xl(y))==null?void 0:_.Ae5(K,5,void 0,Z_o,Z_o))},(r=Xl(y))==null?0:_.aL(r,NH,6))&&(R.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((N=Xl(y))==null?void 0:(h=_.kk(N,NH,6))==null?void 0:Vt(h,1))||"0",cacheHits:((x=Xl(y))==null?void 0:(q=_.kk(x,NH,6))==null?void 0:Vt(q,2))||"0",cachedBytes:((X=Xl(y))==null?void 0:(f=_.kk(X,NH,6))==
null?void 0:Vt(f,3))||"0"});_.aL(y,a1f,7)&&(R.gameCapture={averageFrameTimeDeltaMs:(m=_.kk(y,a1f,7))==null?void 0:e0(m,1),averageFrameIdleTimeMs:(z=_.kk(y,a1f,7))==null?void 0:e0(z,2)});_.Jq("miniAppPerformanceMetrics",R);_.Cj(B)})},nyb=function(I,y){var D,F;
return _.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$17357_playNonceResolver.promise,2);D=R.yieldResult;F={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:I.JSC$17357_miniAppId,postPlayNonce:D,miniAppReleaseId:I.localReleaseId},derivedDeviceInterface:I.derivedDeviceInterface,adTriggerType:y,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Jq("miniAppAdEvent",F);_.Cj(R)})};
hZG.prototype.disposeInternal=function(){_.B5.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var qd=function(I,y,D,F){D=D===void 0?{}:D;F=F===void 0?!1:F;var R,O,w,v;_.S(function(P){if(P.nextAddress==1)return R=I.isForeground,O=I.beforeReady,P.yield(I.JSC$17357_playNonceResolver.promise,2);w=P.yieldResult;v={externalPostId:I.JSC$17357_miniAppId,localReleaseId:I.localReleaseId,derivedDeviceInterface:I.derivedDeviceInterface,postPlayNonce:w,type:y};D.sequenceGroup=w;v.playState=O?"PLAY_STATE_NOT_READY":R?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Jq("miniAppPlayEvent",v,
D);F&&_.wI();_.Cj(P)})},uB=function(I,y){var D;
_.S(function(F){if(F.nextAddress==1)return D=(0,_.m_)(),F.yield(I.JSC$17357_playNonceResolver.promise,2);_.V_(y,D);_.Cj(F)})},uYR=function(I){isNaN(I.playPingTimerId)&&(I.playPingTimerId=_.CR(function(){I.state!==1&&I.state!==2?_.tq(new _.g6("[MiniAppPlayLogger] reportPlayPing failed with state "+oyY[I.state])):qd(I,"PLAY_EVENT_TYPE_PLAY_PING")},I.playPingIntervalMs))},Yby=function(I){return Array.from(I.entries()).map(function(y){var D=_.J(y);
y=D.next().value;D=D.next().value;return{key:y,value:D}})};var pCo=function(){},m8a=function(I,y){I.showMiniAppAdCommand=y.showMiniAppAdCommand;
I.isEmbeddedInWebview=y.isEmbeddedInWebview;I.playLogger=y.playLogger},zZa=function(I){return _.S(function(y){return y.return(MgZ(I,1))})},koG=function(I){return _.S(function(y){return y.return(MgZ(I,2))})},aQ1=function(I,y){return _.S(function(D){return y?D.return(MgZ(I,3,y)):D.return(d8e(I,3))})},MgZ=function(I,y,D){var F;
return _.S(function(R){if(R.nextAddress==1){if(!I.showMiniAppAdCommand||!I.isEmbeddedInWebview)return R.return(d8e(I,y));I.adResolver=new _.n0;var O=new Zj;O=_.d1(O,3,y);F=_.BB(O,5,D);Iz(I.showMiniAppAdCommand,ule(F));return R.yield(I.adResolver.promise,2)}return R.return(R.yieldResult)})};
pCo.prototype.onAdFinished=function(I){I=U2z(I);var y;(y=this.adResolver)==null||y.resolve(I)};
var d8e=function(I,y){var D;return _.S(function(F){if(F.nextAddress==1)F=F.yield((D=I.playLogger)==null?void 0:nyb(D,E8e(y)),2);else{var R=F.return;var O=new Kqc;O=_.d1(O,1,2);F=R.call(F,O)}return F})};var ceo=new _.uk("INNERTUBE_MANAGER_TOKEN");var W1e=function(){this.callbacks={}};
W1e.prototype.initialize=function(I){var y=this;this.callbacks=I;window.youtubewebview?window.youtubewebview.onmessage=function(D){CRe(y,D)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(D){CRe(y,D)})};
var CRe=function(I,y){if(y.data)try{var D=Tpa(y.data);if(_.fa(_.du(D,1))!=null){var F=j7g(_.Tp(D,2));switch(D.getMethodName()){case "yt-mini-app-load-audio-state":var R,O;(O=(R=I.callbacks).onAudioStateLoaded)==null||O.call(R,_.by(F,Vq(F,Vl,1)));break;case "yt-mute-mini-app":var w,v;(v=(w=I.callbacks).onMuteMiniApp)==null||v.call(w);break;case "yt-unmute-mini-app":var P,K;(K=(P=I.callbacks).onUnmuteMiniApp)==null||K.call(P);break;case "yt-playable-exit":var r,N;(N=(r=I.callbacks).onExit)==null||N.call(r);
break;case "yt-post-play-nonce":var h,x;(x=(h=I.callbacks).onPostPlayNonceReceived)==null||x.call(h,Z$(F,2,Vl));break;case "yt-confirm-exit-mini-app":var q,X;(X=(q=I.callbacks).confirmExitMiniApp)==null||X.call(q);break;case "yt-confirm-exit-mini-app-edu":var f,m;(m=(f=I.callbacks).confirmExitMiniAppEdu)==null||m.call(f);break;case "yt-benchmarking-response":var z,B;(B=(z=I.callbacks).onNativeBenchmarkingMessageReceived)==null||B.call(z,Z$(F,2,Vl));break;case "yt-mini-app-load-3p-consent-state":var C,
H;(H=(C=I.callbacks).multiplayer3pAckStateLoaded)==null||H.call(C,_.by(F,Vq(F,Vl,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var e,T;(T=(e=I.callbacks).exitMiniAppSeenStateLoaded)==null||T.call(e,_.by(F,Vq(F,Vl,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var L5,vH;(vH=(L5=I.callbacks).onNavigateToNewMiniApp)==null||vH.call(L5);break;case "yt-game-data-available":var u_,jW;(jW=(u_=I.callbacks).onGameDataAvailable)==null||jW.call(u_,Z$(F,2,Vl));break;case "yt-pause-mini-app":var xA,
dq;(dq=(xA=I.callbacks).onPauseMiniApp)==null||dq.call(xA);break;case "yt-resume-mini-app":var $A,BH;(BH=($A=I.callbacks).onResumeMiniApp)==null||BH.call($A);break;case "yt-pause-playable-dialog":var jf,yg;(yg=(jf=I.callbacks).onPausePlayableDialog)==null||yg.call(jf);break;case "yt-resume-playable-dialog":var eW,oe;(oe=(eW=I.callbacks).onResumePlayableDialog)==null||oe.call(eW);break;case "yt-playable-ad-finished":var xP,XW;(XW=(xP=I.callbacks).onAdFinished)==null||XW.call(xP,Z$(F,2,Vl))}}else _.tq(Error("Wh"))}catch(zo){_.vu(Error("Xh"))}else _.tq(Error("Yh"))};var XKA=function(I){this.rpcErrorCode=I};var EF=function(I,y,D){this.intervalMs=I;this.apiFunc=y;this.type=D;this.schedulerReady=!0};
EF.prototype.call=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1){if(y.type!==1&&I===y.cachedValue)return F.return();y.pendingApiRequestResolver||(y.pendingApiRequestResolver=new _.n0);D=y.pendingApiRequestResolver.promise;y.cachedValue=I;return F.yield(BGZ(y),2)}return F.return(D)})};
EF.prototype.flush=function(I){I=I===void 0?!1:I;var y=this;return _.S(function(D){return y.cachedValue===void 0?D.return():D.yield(y.apiFunc(y.cachedValue,I),0)})};
var BGZ=function(I){var y,D,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!I.schedulerReady||!I.pendingApiRequestResolver)return R.return();I.schedulerReady=!1;y=I.pendingApiRequestResolver;I.pendingApiRequestResolver=void 0;_.nj(R,2);if(I.cachedValue===void 0){R.jumpTo(4);break}return R.yield(I.apiFunc(I.cachedValue),5);case 5:D=R.yieldResult,y.resolve(D);case 4:_.lZ(R,3);break;case 2:F=_.dj(R),y.reject(F);case 3:setTimeout(function(){return _.S(function(O){I.schedulerReady=!0;return O.yield(BGZ(I),
0)})},I.intervalMs),_.Cj(R)}})};var fsq=window.location.origin+"/miniapp_cloudsaves",QAW=[400,401],iaG=_.kf("cloud_save_game_data_rate_limit_ms",3E3),$8R=function(I){var y=this;this.JSC$17401_miniAppId=I;this.loadAttempts=0;this.cloudSaveIntervalMs=iaG;this.initialDownloadDataSucceeded=!1;this.JSC$17401_playNonceResolver=new _.n0;this.scottyUploadRateLimiter=new EF(this.cloudSaveIntervalMs,function(D,F){return y.uploadData(D,F)},2);
this.downloadDataPromise=Aea(this);this.downloadDataPromise.then(function(){y.initialDownloadDataSucceeded=!0}).catch(function(){})},ba1=function(I,y){y.then(function(D){return I.JSC$17401_playNonceResolver.resolve(D)})},HaR=function(I){return _.S(function(y){return I.cachedData===void 0?y.return(I.downloadDataPromise):y.return(I.cachedData)})},eZa=function(I,y){return _.S(function(D){I.cachedData=y;
if(!I.initialDownloadDataSucceeded)throw Error("Zh");return D.yield(I.scottyUploadRateLimiter.call(y),0)})},TGY=function(){return new Promise(function(I){setTimeout(I,1E3,"")})},sTo=function(I,y){var D,F;
return _.S(function(R){if(R.nextAddress==1)return D=I.JSC$17401_miniAppId,R.yield(Promise.race([I.JSC$17401_playNonceResolver.promise,TGY()]),2);F={"X-YouTube-MiniAppId":D,"X-YouTube-PostPlayNonce":R.yieldResult};"DELEGATED_SESSION_ID"in _.SF&&Ulo(y,F);return R.return(F)})};
$8R.prototype.uploadData=function(I,y){y=y===void 0?!1:y;var D=this;return _.S(function(F){return GK5()?_.l("enable_cloud_save_error_popup_after_retry")?F.return(new Promise(function(R,O){var w,v,P,K,r;return _.S(function(N){switch(N.nextAddress){case 1:w=0,v=!0,K=P=null;case 2:if(!(v&&w++<2)){N.jumpTo(4);break}_.nj(N,5);return N.yield(Vg8(D,I,y),7);case 7:P=N.yieldResult;v=P.ok?!1:!QAW.includes(P.status);_.lZ(N,2);break;case 5:K=r=_.dj(N);v=YwS(K);N.jumpTo(2);break;case 4:P?P.ok?(Gx(D,iaG),R()):
(Gx(D,D.cloudSaveIntervalMs*2),O(Error("$h`"+String(P.status),{cause:{rpcErrorCode:P.status}}))):(Gx(D,D.cloudSaveIntervalMs*2),O(K||Error("ai"))),_.Cj(N)}})})):F.return(new Promise(function(R,O){var w,v;
return _.S(function(P){if(P.nextAddress==1){if(D.JSC$17401_miniAppId==="")return O(Error("bi")),P.return();_.nj(P,2);return P.yield(Vg8(D,I,y),4)}if(P.nextAddress!=2)return w=P.yieldResult,w.ok?(Gx(D,iaG),R()):(Gx(D,D.cloudSaveIntervalMs*2),O(Error("$h`"+String(w.status),{cause:{rpcErrorCode:w.status}}))),_.lZ(P,0);v=_.dj(P);Gx(D,D.cloudSaveIntervalMs*2);O(v);_.Cj(P)})})):F.return()})};
var Vg8=function(I,y,D){D=D===void 0?!1:D;var F,R,O;return _.S(function(w){if(w.nextAddress==1)return F=_.VB((new TextEncoder).encode(y)),R=n8A(),w.yield(sTo(I,R),2);O=w.yieldResult;return w.return(fetch(R,{method:"POST",body:new Blob([F]),headers:O,keepalive:D}))})},Aea=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1){if(!GK5())return F.return("");if(I.JSC$17401_miniAppId==="")throw Error("bi");if(I.loadAttempts>2)return F.return(I.downloadDataPromise);_.nj(F,2);return F.yield(ZaG(I),4)}if(F.nextAddress!=2)return y=F.yieldResult,F.return(y);D=_.dj(F);if(YwS(D)&&++I.loadAttempts<2)return F.return(Aea(I));throw D;})},ZaG=function(I){var y,D,F,R,O;
return _.S(function(w){switch(w.nextAddress){case 1:return _.nj(w,2),y=n8A(),w.yield(sTo(I,y),4);case 4:return D=w.yieldResult,w.yield(fetch(y,{method:"GET",headers:D}),5);case 5:return F=w.yieldResult,F.ok?w.yield(F.text(),6):w.return(Promise.reject(Error("ci`"+String(F.status),{cause:new XKA(F.status)})));case 6:return R=w.yieldResult,w.return((new TextDecoder).decode(_.ZC(R)));case 2:return O=_.dj(w),w.return(Promise.reject(O))}})},Gx=function(I,y){I.cloudSaveIntervalMs=y;
I.scottyUploadRateLimiter.intervalMs=I.cloudSaveIntervalMs};
$8R.prototype.flush=function(){var I=this;return _.S(function(y){return I.initialDownloadDataSucceeded?y.yield(I.scottyUploadRateLimiter.flush(!0),0):y.return()})};var gyQ=E2(qH(1),lE(1)),Xx=E2(qH(1),lE(3)),Q$=function(I){this.callbacks=I};
_.L=Q$.prototype;_.L.onAudioToggled=function(I,y){(y===void 0||y)&&_.$c("yt-mini-app-is-audio-enabled",I,2592E3)};
_.L.onPause=function(){this.onAudioToggled(!1,!1)};
_.L.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.L.returnNativeBenchmarkingMessage=function(){};
_.L.sendGameData=function(){};
_.L.sendStartGameFrameCapture=function(){};
var pKq=function(I,y,D){this.callbacks=I;var F=this;this.sdkVersion=new _.n0;this.channel=new cVc(_.YX({destination:window,iframe:y,origin:(new URL(D.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var R=YH;var O=qH(5);var w=new q7a;w=_.Ih(w,1,1E4);O=_.Mg(O,4,pvz,w);R(F,O);F.onAudioToggled(F.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){F.sdkVersion.resolve("")},1E4)};
_.E(pKq,Q$);_.L=pKq.prototype;_.L.onAudioToggled=function(I,y){Q$.prototype.onAudioToggled.call(this,I,y===void 0?!0:y);y=YH;var D=qH(2),F=new l1P;I=_.Xm(F,1,I);I=_.Mg(D,3,pvz,I);y(this,I)};
_.L.onPause=function(){Q$.prototype.onPause.call(this);YH(this,qH(3))};
_.L.onResume=function(){Q$.prototype.onResume.call(this);YH(this,qH(4))};
_.L.returnNativeBenchmarkingMessage=function(I){var y=YH,D=qH(6);var F=lE(_.aL(I,hP,1)?1:2);I=_.aL(I,hP,1)?I:null;F=_.Mg(F,5,uE,I);y(this,E2(D,F))};
_.L.sendGameData=function(I){var y=YH,D=qH(7);I=_.Mg(D,5,pvz,I);y(this,I)};
_.L.sendStartGameFrameCapture=function(){YH(this,qH(9))};
var fX=function(I,y,D){var F,R,O;return _.S(function(w){if(w.nextAddress==1)return F=I.callbacks,R=F.onSdkCalled,O=y,w.yield(I.sdkVersion.promise,2);R.call(F,O,w.yieldResult,D);_.Cj(w)})};
pKq.prototype.onMessage=function(){var I=this;return Bo_(Ql,function(y){var D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq,$A,BH,jf,yg,eW,oe,xP,XW,zo,Ub,rq,ao,rc,Ta,f_,mM,M_,ZR,rG,$P,HC,vG,jg;return _.S(function(UO){switch(UO.nextAddress){case 1:if(!BnP(y.data))return _.tq(Error("di")),UO.return();D=_.sI(y.data,1);_.l("enable_iframe_message_get_type_via_fields")&&(F=y.data,D=R=_.sI(F,1));switch(D){case 8:if(y.data.hasMetadata()){var HG=I.sdkVersion,cG=HG.resolve;var vC=y.data.getMetadata();
vC=_.Tp(vC,1);cG.call(HG,vC);clearTimeout(I.sdkVersionTimeoutId)}break;case 6:return UO.jumpTo(2);case 16:if(!_.Wn(y.data,zdf,14,Y6))return UO.return();O=_.gu(y.data,zdf,14,Y6);(v=(w=I.callbacks).onGameFrameReceived)==null||v.call(w,O);return UO.return();case 17:if(!_.Wn(y.data,MUz,15,Y6))return UO.return();(K=(P=I.callbacks).onGameAudioReceived)==null||K.call(P,_.gu(y.data,MUz,15,Y6));return UO.return();case 1:if(HG=_.gu(y.data,Xvn,2,Y6))switch(_.sI(HG,1)){case 1:I.callbacks.onFirstFrameReady();
if(_.l("enable_network_request_logging_on_game_events")&&_.aL(HG,hw,4)){fX(I,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.kk(HG,hw,4));break}fX(I,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(vC=(cG=I.callbacks).onGameReady)==null||vC.call(cG);if(_.l("enable_network_request_logging_on_game_events")&&_.aL(HG,hw,4)){fX(I,"MINI_APP_SDK_API_GAME_READY",_.kk(HG,hw,4));break}fX(I,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Wn(HG,x6,3,Qau))I.callbacks.onResourceLoaded(_.gu(HG,x6,3,Qau))}return UO.return();
case 3:return UO.jumpTo(3);case 4:return UO.jumpTo(4);case 2:return UO.jumpTo(5);case 9:return UO.jumpTo(6);case 10:return I.callbacks.onClick(),UO.return();case 5:return UO.jumpTo(7);case 11:if(!_.Wn(y.data,jJ,9,Y6))return UO.return();r=_.gu(y.data,jJ,9,Y6);(h=(N=I.callbacks).onBenchmarkingMessageReceived)==null||h.call(N,r);HG=y.reply;cG=qH(1);vC=lE(1);var AV=new jJ;var AM=new Uint8Array(yeM(r,Vq(r,jaR,6))|0);AV=$7(AV,5,jaR,_.Mz(AM,!1));vC=_.Mg(vC,5,uE,AV);HG.call(y,E2(cG,vC));return UO.return();
case 12:return UO.jumpTo(8);case 13:return UO.jumpTo(9);case 15:return UO.jumpTo(10);case 14:return UO.jumpTo(11);case 18:return UO.jumpTo(12);default:return UO.return()}UO.jumpTo(0);break;case 2:if(!_.Wn(y.data,Gh,5,Y6))return UO.return();cG=y.data;HG=Vq(cG,Y6,5);cG=cG.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=eZ5(cG,cG[_.L_]|0,Gh,HG)||Gh[TcL]||(Gh[TcL]=seC(Gh));HG=_.hv(x,o7,1,_.xW());q=_.J(HG);X=q.next();case 14:if(X.done){UO.jumpTo(16);break}f=X.value;m=new _.g6;m.level=_.sI(f,2)===
1?"WARNING":"ERROR";z=MXJ(f.getSource());return UO.yield(I.sdkVersion.promise,17);case 17:B={source:z,sdkVersion:UO.yieldResult};_.Sg(_.du(f,6))!=null?(m.message=f.getMessage(),m.stack=_.Tp(f,5),B.sdkErrorType=z15(_.sI(f,6)),_.Sg(_.du(f,7))!=null&&(B.sdkApi=kK_(_.sI(f,7)))):m.stack=void 0;H=C=void 0;(H=(C=I.callbacks).onError)==null||H.call(C,{loggingError:m,metadata:B});X=q.next();UO.jumpTo(14);break;case 16:return UO.return();case 3:return _.nj(UO,18),HG=UO.yield,cG=I.callbacks,vC=cG.onSave,AV=
_.gu(y.data,uIW,4,Y6),AV=_.Tp(AV,1),HG.call(UO,vC.call(cG,AV),20);case 20:y.reply(gyQ);_.lZ(UO,19);break;case 18:return e=_.dj(UO),T=yo,L5=e,vH=I.callbacks,u_="MINI_APP_SDK_API_SAVE_DATA",UO.yield(I.sdkVersion.promise,21);case 21:T(L5,vH,u_,UO.yieldResult),y.reply(Xx);case 19:return UO.yield(fX(I,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return UO.return();case 4:return _.nj(UO,23),UO.yield(I.callbacks.onLoad(),25);case 25:jW=UO.yieldResult;HG=y.reply;cG=qH(1);vC=lE(1);AV=new uIW;AV=_.BB(AV,1,jW);
vC=_.Mg(vC,3,uE,AV);HG.call(y,E2(cG,vC));_.lZ(UO,24);break;case 23:return xA=_.dj(UO),dq=yo,$A=xA,BH=I.callbacks,jf="MINI_APP_SDK_API_LOAD_DATA",UO.yield(I.sdkVersion.promise,26);case 26:dq($A,BH,jf,UO.yieldResult),y.reply(Xx);case 24:return UO.yield(fX(I,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return UO.return();case 5:_.nj(UO,28);I.callbacks.onSendHighScore(Le(_.gu(y.data,Wqu,3,Y6).getValue()));y.reply(E2(qH(1),lE(1)));_.lZ(UO,29);break;case 28:return yg=_.dj(UO),eW=yo,oe=yg,xP=I.callbacks,XW=
"MINI_APP_SDK_API_SEND_SCORE",UO.yield(I.sdkVersion.promise,30);case 30:eW(oe,xP,XW,UO.yieldResult),y.reply(Xx);case 29:return UO.yield(fX(I,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return UO.return();case 6:if(!_.Wn(y.data,Cdg,8,Y6)){UO.jumpTo(32);break}HG=UO.yield;cG=_.gu(y.data,Cdg,8,Y6);cG=_.sI(cG,1);return HG.call(UO,fX(I,kK_(cG)),32);case 32:return UO.return();case 7:return HG=y.reply,cG=qH(1),vC=lE(1),AV=I.callbacks.getLanguage(),vC=$7(vC,4,uE,Qa(AV)),HG.call(y,E2(cG,vC)),UO.yield(fX(I,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return UO.return();case 8:if(!_.Wn(y.data,cdu,10,Y6))return UO.return();zo=_.gu(y.data,cdu,10,Y6);Ub=I.callbacks;rq=Ub.onSdkPerformanceUpdate;return UO.yield(I.sdkVersion.promise,35);case 35:return rq.call(Ub,zo,UO.yieldResult),UO.return();case 9:HG=y.data;cG=Vq(HG,Y6,11);if(_.fa(_.du(HG,cG))==null)return y.reply(E2(qH(1),lE(2))),UO.return();ao=Z$(y.data,11,Y6);I.callbacks.onShareInviteCode(ao);y.reply(gyQ);return UO.yield(fX(I,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return UO.return();
case 10:if(!_.l("enable_open_yt_content"))return y.reply(Xx),UO.return();if(!_.Wn(y.data,m2z,12,Y6))return y.reply(E2(qH(1),lE(2))),UO.return();HG=_.gu(y.data,m2z,12,Y6);rc=_.Tp(HG,1);I.callbacks.onOpenYTContent(rc);y.reply(gyQ);return UO.yield(fX(I,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return UO.return();case 11:if(_.Wn(y.data,x2O,13,Y6)){UO.jumpTo(38);break}return UO.yield(I.callbacks.onShowMiniAppAd(2),39);case 39:return Ta=UO.yieldResult,y.reply(E2(qH(1),f1M(Ta))),UO.yield(fX(I,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return UO.return();case 38:HG=_.gu(y.data,x2O,13,Y6);a:switch(_.sI(HG,1)){case 1:HG={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:HG={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:HG={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}f_=HG;mM=f_.adType;M_=f_.sdkApi;HG=UO.yield;cG=I.callbacks;vC=cG.onShowMiniAppAd;AV=_.gu(y.data,x2O,13,Y6);AV=_.Tp(AV,2);return HG.call(UO,vC.call(cG,mM,AV||void 0),41);case 41:return ZR=UO.yieldResult,
y.reply(E2(qH(1),f1M(ZR))),UO.yield(fX(I,M_),42);case 42:return UO.return();case 12:_.nj(UO,43);HG=I.callbacks;cG=HG.onMakeIapPurchase;vC=_.gu(y.data,kMn,16,Y6);vC=_.Tp(vC,1);cG.call(HG,vC);y.reply(E2(qH(1),lE(1)));_.lZ(UO,44);break;case 43:return rG=_.dj(UO),$P=yo,HC=rG,vG=I.callbacks,jg="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",UO.yield(I.sdkVersion.promise,45);case 45:$P(HC,vG,jg,UO.yieldResult),y.reply(Xx);case 44:return UO.yield(fX(I,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return UO.return()}})})};
var YH=function(I,y){_.S(function(D){I.channel.send(y);_.Cj(D)})},D3=function(I,y,D){this.callbacks=I;
var F=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;I=K4L(y,(new URL(D.toString())).origin);this.gameSnacks=new yWn(I);this.gameSnacks.page.onReady(function(){F.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){F.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var R,O;(O=(R=F.callbacks).onGameReady)==null||O.call(R)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(R,O){try{F.callbacks.onSendHighScore(O)}catch(w){yo(w,F.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(R,O){var w;return _.S(function(v){if(v.nextAddress==1)return _.nj(v,2),v.yield(F.callbacks.onSave(F.decoder.decode(O)),4);if(v.nextAddress!=2)return _.lZ(v,0);w=_.dj(v);yo(w,F.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return v.return()})});
this.gameSnacks.storage.onLoad(function(){var R,O;return _.S(function(w){if(w.nextAddress==1)return _.nj(w,2),w.yield(F.callbacks.onLoad(),4);if(w.nextAddress!=2)return R=w.yieldResult,w.return(F.encoder.encode(R));O=_.dj(w);yo(O,F.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return w.return(F.encoder.encode(""))})});
this.gameSnacks.init()};
_.E(D3,Q$);D3.prototype.onAudioToggled=function(I,y){Q$.prototype.onAudioToggled.call(this,I,y===void 0?!0:y);var D;(D=this.gameSnacks)==null||D.audio.update(I)};
D3.prototype.onPause=function(){Q$.prototype.onPause.call(this);var I;(I=this.gameSnacks)==null||I.game.pause()};
D3.prototype.onResume=function(){Q$.prototype.onResume.call(this);var I;(I=this.gameSnacks)==null||I.game.resume()};var I0g=dxS,yVa=_.d(function(I){var y=I.data;var D=I.loadingProgress;var F=I.forPaused;I=_.J(_.$M("",void 0,"LYYTdd"));var R=I.next().value,O=I.next().value;I=_.J(_.$M(!1,void 0,"K0waae"));var w=I.next().value,v=I.next().value,P=[],K=function(){return"transform: scaleX("+(_.Ki(D)||0)+")"},r=null,N=function(){return y()&&r!==null&&r!==void 0?r:r=y().showAnniversaryAnimation?6:I0g()};
_.wZ(function(){var X;if(y().timeOutMessages&&((X=y().timeOutMessages)==null?0:X.length)){r=null;X=_.J(P);for(var f=X.next();!f.done;f=X.next())clearTimeout(f.value);P.length=0;asH(y().timeOutMessages,P,O,v)}},"BNu9j");
var h=function(){return!!y().persistentErrorMessageTitle},x=function(){return D!==void 0},q=function(){return y().title};
return _.t("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.t("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.t("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.t("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var X,f=(X=y().backgroundImage)==null?void 0:X.sources,m;return(f==null?0:f.length)?"background-image: url("+((m=f[0])==null?void 0:m.url)+")":""}}),_.t("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.t(_.U,{cond:function(){return!h()&&!(F==null?0:F())},
then:function(){var X={};return _.t("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.t("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.t(_.Wb,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+N()},
data:function(){var f="loading_animation_"+N();return{animationConfig:{name:f,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+f+".json",loop:!0,autoplay:!0}}}})),_.t("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.t(_.U,{cond:q,
then:function(){return _.t("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},q)}}),_.t("p",{class:_.XH("miniAppSplashScreenViewModelTimeoutMessage",(X.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return w()},X)),
"aria-live":"polite"},R),_.t(_.U,{cond:x,then:function(){return _.t("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.t("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:K}))}})))}}),_.t(_.U,{cond:h,
then:function(){return _.t("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.t("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return y().persistentErrorMessageTitle}),_.t(_.U,{cond:function(){return!!y().persistentErrorMessageDescription},
then:function(){return _.t("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return y().persistentErrorMessageDescription})}}))}}),_.t(_.U,{cond:F,
then:function(){return _.t("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.t("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.t("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},q))}})))},"Uf");var DgT=new _.uk("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var FHb=GB;GB=function(I){function y(D){if(D){var F,R;(F=D.__spec)==null||(R=F.didUnmount)==null||R.call(F);for(F=0;F<D.childNodes.length;F++)y(D.childNodes[F])}}
FHb==null||FHb(I);Tv(function(){for(var D=0;D<I.length;D++)y(I[D])})};var RCg=_.d(function(I){var y=I.data;var D=I.score;var F=I.formattedScore;var R=I.onScoreChanged;var O=I.isEmbeddedInWebview;var w=_.Fh("yt-mini-app-score-button-view-model"),v=function(){var x;return _.u(y==null?void 0:(x=y())==null?void 0:x.buttonViewModel,_.Kb)},P=function(){var x;
return(D==null?void 0:D())||Number(y==null?void 0:(x=y())==null?void 0:x.lastScore)||0},K=function(){var x;
return(F==null?void 0:F())||((x=v())==null?void 0:x.title)||""},r,N=1;
if(I=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))I=Number(I),N=isNaN(I)?1:I/100;_.wZ(function(){R==null||R(P());var x;var q=_.yz((x=v())==null?void 0:x.onTap);if(q){x=_.u(q,Jle);var X,f,m;x=_.u(x==null?void 0:(X=x.panelLoadingStrategy)==null?void 0:(f=X.inlineContent)==null?void 0:(m=f.dialogViewModel)==null?void 0:m.customContent,q2e)}else x=void 0;if(X=x)X.score=K()},"Aekez");
I=_.YY(function(){var x,q,X=y==null?void 0:(x=y())==null?void 0:(q=x.loggingDirectives)==null?void 0:q.trackingParams;X&&_.Cb(_.nR().resolve(_.gi),X);return!1});
_.LR(function(){if(w.value){var x=w.value.querySelector("button"),q=v();x&&q&&WUH(x,q);_.fT("yt-share-playable-with-high-score",function(){var X=P().toString(),f=y==null?void 0:y().onShareHighScoreCommand,m=y==null?void 0:y().highScoreShareClientParamIdentifier,z=O==null?void 0:O();f&&(z?(m=new eJW,X=_.BB(m,2,X),Iz(f,X.JSC$12804_serializeBinary())):m&&(_.nR().resolve(DgT).clientParams.set(m,{miniAppClientParams:{highScore:X}}),h1_(f,!1)))})}});
var h=function(){var x=v();x&&(D==null?0:D())&&x.accessibilityText&&(x.accessibilityText=x.accessibilityText.replace(r,K()));r=K();return{numberValue:P(),numberText:K(),heightPx:36,fontSizeMultiplier:N,shouldAnimate:!(D==null||!D())&&!0}};
return _.t("yt-mini-app-score-button-view-model",{class:function(){var x={};return _.bp("miniAppScoreButtonViewModelHost",(x.miniAppScoreButtonViewModelIsVisible=P()!==0,x))},
el:w,"on:click":I},gk4(!1,function(){return _.t("span",{style:"display:none;"},P)}),_.t(_.aP,{data:function(){var x;
return y==null?void 0:(x=y())==null?void 0:x.buttonViewModel}},{buttonViewModel:function(x){return _.t(_.My,{data:x.data,
animatedTextProps:h})}}))},"Wf");var vsa=_.d(function(I){var y,D=(y=_.bX("yt-mini-app-is-theater-mode-enabled"))!=null?y:!1,F=_.l("enable_playable_container_save_button"),R=_.l("enable_play_next_destination_page_in_toolbar");y={};return _.t("ytm-mini-app-top-bar-view-model",null,_.t("div",{class:_.XH("yt-mini-app-top-bar-view-model",(y["yt-mini-app-top-bar-view-model--mobile"]=!1,y["yt-mini-app-top-bar-view-model--desktop"]=!0,y))},_.t("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.t(_.U,{cond:function(){var O;return!!I.data().backButtonEdu&&
!((O=I.isExitMiniAppSeen)==null?0:O.call(I))},
then:function(){return _.t(_.aP,{data:function(){return I.data().backButtonEdu}},{buttonViewModel:_.My})},
else:function(){return _.t(_.aP,{data:function(){return I.data().backButton}},{buttonViewModel:_.My})}}),_.t(_.U,{cond:function(){return I.data().viewAllButton&&!0},
then:function(){return _.t(_.aP,{data:function(){return I.data().viewAllButton}},{buttonViewModel:_.My})}}),_.t(_.U,{cond:function(){return I.data().title&&!0},
then:function(){return _.t("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return I.data().title})}})),_.t("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.t(_.U,{cond:function(){var O;
return(O=I.isDesktopPlayPage)==null?void 0:O.call(I)},
then:function(){return _.t(_.ni,null,_.t(OSb,{highScoreButton:function(){return I.data().highScoreButton},
score:I.score,formattedScore:I.formattedScore,onScoreChanged:I.onScoreChanged,isEmbeddedInWebview:I.isEmbeddedInWebview}),_.t(LHG,{enableSaveButton:function(){return _.Ki(F)},
saveButton:function(){return I.data().saveButton},
isSaved:I.isSaved,onSaveToggled:function(){return I.onSaveToggled}}),_.t(JVb,{menuButton:function(){return I.data().menuButton}}))},
else:function(){return _.t(_.U,{cond:function(){return!1},
then:function(){return _.t(_.aP,{data:function(){return I.data().playPageButton}},{buttonViewModel:function(O){return _.t(_.My,{data:O.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.t(OSb,{highScoreButton:function(){return I.data().highScoreButton},
score:I.score,formattedScore:I.formattedScore,onScoreChanged:I.onScoreChanged,isEmbeddedInWebview:I.isEmbeddedInWebview})}})}})),_.t("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.t(_.aP,{data:function(){return I.data().muteButton}},{toggleButtonViewModel:function(O){var w=O.data;
return _.t(_.yJ,{data:function(){var v,P;return Object.assign({},w(),{isToggled:(P=(v=I.isAudioEnabled)==null?void 0:v.call(I))!=null?P:!0})},
onToggle:I.onAudioToggled,useOutlinedIcon:!0})}}),_.t(_.aP,{data:function(){return I.data().theatreModeButton}},{toggleButtonViewModel:function(O){var w=O.data;
return _.t("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.t(_.yJ,{data:function(){return Object.assign({},w(),{isToggled:D})},
useOutlinedIcon:!0}))}}),_.t(w$o,{fullscreenButton:function(){return I.data().fullscreenButton}}),_.t(_.U,{cond:function(){return _.Ki(R)&&I.data().viewAllButton&&!1},
then:function(){return _.t(_.aP,{data:function(){return I.data().viewAllButton}},{buttonViewModel:_.My})}}),_.t(_.U,{cond:function(){var O;
return!((O=I.isDesktopPlayPage)==null?0:O.call(I))},
then:function(){return _.t(_.ni,null,_.t(LHG,{enableSaveButton:function(){return _.Ki(F)},
saveButton:function(){return I.data().saveButton},
isSaved:I.isSaved,onSaveToggled:function(){return I.onSaveToggled}}),_.t(JVb,{menuButton:function(){return I.data().menuButton}}))}}))))},"Xf");
vsa.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var JVb=_.d(function(I){return _.t(_.aP,{data:I.menuButton},{buttonViewModel:_.My})},"Yf"),LHG=_.d(function(I){var y=I.enableSaveButton;
var D=I.saveButton;var F=I.isSaved;var R=I.onSaveToggled;return _.t(_.U,{cond:function(){return y()&&!(D==null||!D())},
then:function(){return _.t(_.aP,{data:function(){var O=_.u(D==null?void 0:D(),_.r7),w;return{toggleButtonViewModel:Object.assign({},O,{isToggled:(w=F==null?void 0:F())!=null?w:!(O==null||!O.isToggled)})}}},{toggleButtonViewModel:function(O){return _.t(_.yJ,{data:O.data,
onToggle:R})}})}})},"Zf"),OSb=_.d(function(I){var y=I.highScoreButton;
var D=I.score;var F=I.formattedScore;var R=I.onScoreChanged;var O=I.isEmbeddedInWebview;return _.t(_.aP,{data:y},{miniAppScoreButtonViewModel:function(w){return _.t(RCg,{data:w.data,score:D,formattedScore:F,onScoreChanged:R,isEmbeddedInWebview:O})}})},"$f"),w$o=_.d(function(I){I=I.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.t(_.ni,null):_.t(_.aP,{data:I},{buttonViewModel:_.My})},"ag");_.Sx8=_.d(function(I){var y=I.data;var D=I.extractOverlay;I={};return _.t("player-disclosure-view-model",{class:_.XH("ytwPlayerDisclosureViewModelHost",(I.ytwPlayerDisclosureViewModelExtractOverlay=function(){return D==null?void 0:D()},I))},_.t(_.Yp,{command:function(){return y().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.t(_.U,{cond:function(){return y().iconName},
then:function(F){return _.t(_.mj,{icon:F})}}),_.t(_.U,{cond:function(){return y().iconName?void 0:y().image},
then:function(F){return _.t(_.UE,{data:F,alt:function(){return y().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.t(_.U,{cond:function(){return y().title||y().secondaryText},
then:function(){return _.t("div",null,_.t("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return y().title}),_.t("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return y().text}),_.t(_.U,{cond:function(){return y().secondaryText},
then:function(F){return _.t(_.ni,null,_.t("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.t("div",{class:"ytwPlayerDisclosureViewModelText"},F))}}))},
else:function(){return _.t("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return y().text})}}),_.t(_.U,{cond:function(){return y().showEndChevron},
then:function(){return _.t(_.mj,{icon:"CHEVRON_RIGHT"})}})))},"bg");_.tZZ=new _.uk("DESKTOP_CURRENT_PAGE");var ose=_.d(function(I){var y=I.data;var D=_.l("force_active_time_logging_webview"),F=!1,R=new W1e,O=void 0,w=void 0,v=_.nR().resolve(ceo),P=new pCo,K=void 0,r=void 0,N=[],h=void 0,x=void 0,q=!1,X=!1,f=!1,m=!1,z=new _.n0,B=_.nR().resolve(DgT),C=_.nR().resolve(_.lB),H=_.nR().resolve(_.fR(Hy)),e,T=(e=_.nR().resolve(_.fR(_.tZZ)))==null?void 0:e.getCurrentPage(),L5=!1,vH=0,u_=function(Ie){Ie.preventDefault();return Ie.returnValue=""},jW,xA=_.J(_.$M(!((jW=_.bX("yt-mini-app-is-audio-enabled"))!=null&&!jW),
void 0,"WNrYAe")),dq=xA.next().value,$A=xA.next().value,BH,jf=_.J(_.$M(!((BH=_.bX("exit-mini-app-seen-state"))==null||!BH),void 0,"Ofm4dd")),yg=jf.next().value,eW=jf.next().value,oe=_.J(_.$M(!1,void 0,"xMsPk")),xP=oe.next().value,XW=oe.next().value,zo=_.J(_.$M(void 0,void 0,"V675h")),Ub=zo.next().value,rq=zo.next().value,ao=_.J(_.$M(void 0,void 0,"x9B2v")),rc=ao.next().value,Ta=ao.next().value,f_=_.J(_.$M(!0,void 0,"eAgABf")),mM=f_.next().value,M_=f_.next().value,ZR=_.J(_.$M(!1,void 0,"ek28lf")),
rG=ZR.next().value,$P=ZR.next().value,HC=_.J(_.$M(!1,void 0,"Q6LlPd")),vG=HC.next().value,jg=HC.next().value,UO=_.J(_.$M(void 0,void 0,"V5Rl1c")),HG=UO.next().value,cG=UO.next().value,vC=_.J(_.$M(0,void 0,"kN1acc")),AV=vC.next().value,AM=vC.next().value,oT=_.DF("mini-app-container-view-model"),ZQ=_.J(_.$M(!1,void 0,"HzkXed")),Ox=ZQ.next().value,qa=ZQ.next().value,aB=function(){return y().isEmbeddedInWebview},mE=function(){return y().hasPlayNextShelf};
_.OJ(function(){var Ie,wG=(Ie=_.u(y().contentDisclosure,CCn))==null?void 0:Ie.animationParams;if((wG==null?0:wG.shouldHide)&&(wG==null?0:wG.hideDelaySecs)){var XY=setTimeout(function(){qa(!0)},wG.hideDelaySecs*1E3);
_.tI(function(){clearTimeout(XY)})}});
_.fT("yt-page-type-changed",function(Ie){if(_.l("enable_is_mini_app_page_active_bugfix"))Ie.detail.newPageSubtype==="mini_app"&&Ie.detail.newPageType==="ytd-browse"||!mM()||G8();else if(Ie=_.KV()==="mini_app",Ie!==mM())if(M_(Ie),Ie){var wG;Ie=(wG=y().playableId)==null?void 0:wG.toString();Ie!==void 0&&window.location.href.includes(Ie)&&!X&&(m=!0,Eu(),Ek.value&&B_(Ek.value))}else Ie||G8()});
_.fT("yt-action",function(Ie){Ie.detail.actionName==="yt-engagement-panel-visible-changed"&&Ie.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ie.detail.args[2]==="PAmini_app_panel"&&G8();_.l("enable_is_mini_app_page_active_bugfix")?Ie.detail.actionName==="yt-history-load"&&!mM()&&(T==null?0:T.active)?(M_(!0),Eu(),Ek.value&&B_(Ek.value)):Ie.detail.actionName==="yt-history-load"&&mM()&&!y().isEmbeddedInWebview&&lu():mM()&&Ie.detail.actionName==="yt-history-load"&&(m?m=!1:y().isEmbeddedInWebview||
lu())});
_.tI(function(){cd()});
_.wZ(function(){Eu()},"gT8qHf");
var Eu=function(){var Ie=y().playableId,wG=y().localReleaseId,XY=y().derivedDeviceInterface;if(X)_.tq(new _.g6("[MiniAppContainerViewModel] onEnter was called more than once"));else{X=!0;O=new hZG(Ie,wG,XY,document.visibilityState==="visible");qbT(O);w=new $8R(Ie);PaR(v,Ie);m8a(P,{showMiniAppAdCommand:y().showMiniAppAdCommand,isEmbeddedInWebview:y().isEmbeddedInWebview,playLogger:O});gK5()&&(x=document.body.style.backgroundColor,_.v2(document.body,"background-color","black"));AP();nZ();z=new _.n0;
if(y().isEmbeddedInWebview){if(Ie=(new URLSearchParams(window.location.search)).get("postPlayNonce"))lQY(O,Ie),L5=!0;R.initialize({onAudioStateLoaded:function(Rn){Te(Rn)},
onMuteMiniApp:function(){Te(!1)},
onUnmuteMiniApp:function(){Te(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Rn){L5||(lQY(O,Rn),L5=!0)},
confirmExitMiniApp:function(){var Rn,fG,DZ;return _.S(function(y2){if(y2.nextAddress==1)return y().confirmExitMiniAppCommand?y2.yield(Promise.race([z.promise,Promise.resolve(!1)]),2):y2.return();(Rn=y2.yieldResult)?!y().confirmExitMiniAppCommandEdu||(DZ=(fG=yg)==null?void 0:fG())!=null&&DZ?V9(y().confirmExitMiniAppCommand):(V9(y().confirmExitMiniAppCommandEdu),_.$c("exit-mini-app-seen-state","true",2592E6)):V9(y().closeMiniAppCommand);_.Cj(y2)})},
onNativeBenchmarkingMessageReceived:function(Rn){Rn=NnM(_.i5t(Rn));if(_.Wn(Rn,_.Zy,3,rdc)){var fG=_.gu(Rn,_.Zy,3,rdc),DZ=xxB();var y2=Le(DZ.getSeconds())-Le(fG.getSeconds());fG=_.lD(DZ,2)-_.lD(fG,2);y2<0&&fG>0?(y2+=1,fG-=1E9):y2>0&&fG<0&&(--y2,fG+=1E9);y2=(new hP).setSeconds(y2);y2=_.Fj(y2,2,_.te(fG),0);_.mH(Rn,1,y2)}var WW;(WW=r)==null||WW.returnNativeBenchmarkingMessage(Rn)},
multiplayer3pAckStateLoaded:function(Rn){lu(Rn)},
exitMiniAppSeenStateLoaded:function(Rn){y().confirmExitMiniAppCommandEdu&&eW(Rn)},
onNavigateToNewMiniApp:function(){V9(y().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Rn){Rn=new URLSearchParams(Rn);var fG=void 0;Rn.has("invite_code")&&(fG=new GM_,Rn=Rn.get("invite_code"),fG=_.BB(fG,1,Rn));if(Rn=fG){var DZ;(DZ=r)==null||DZ.sendGameData(Rn)}},
onPauseMiniApp:function(){F=!0;YA()},
onResumeMiniApp:function(){F=!0;cH()},
onPausePlayableDialog:function(){f=!0;YA()},
onResumePlayableDialog:function(){f=!1;cH()},
onAdFinished:function(Rn){P.onAdFinished(Rn)}});
y().showMultiplayer3pConsentDialogCommand||z.resolve(!0);V9(y().onContainerReadyCommand)}else lQY(O),z.resolve(!0);ba1(w,x8a(O));x8a(O).then(function(Rn){Rn={miniAppPlayData:{postPlayNonce:Rn}};var fG,DZ=(fG=y().loggingDirectives)==null?void 0:fG.trackingParams;DZ&&_.W4().stateChanged(DZ,Rn)});
Ie=y().showSignInDialogCommand;!GK5()&&Ie&&(_.$c("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),V9(Ie));y().confirmExitMiniAppCommand&&H&&(Ie=o8_(y().confirmExitMiniAppCommand))&&(H.customConfirmationCommand=Ie)}},cd=function(){x&&_.v2(document.body,"background-color",x);
q=!1;h&&h.release();w.flush().catch(function(Ie){_.tq(Ie)});
v.flush().catch(function(Ie){_.tq(Ie)});
GoZ(O);$R();r=void 0;KH1(B)},G8=function(){M_(!1);
cd();XW(!1);cG(void 0);rq(void 0);Ta(void 0);vH=0;AM(0);X=!1},YA=function(){var Ie;
(Ie=r)==null||Ie.onPause();h&&h.release();w.flush().catch(function(wG){_.tq(wG)});
v.flush().catch(function(wG){_.tq(wG)});
Eyy(O);$P(!0)},cH=function(){var Ie;
(Ie=r)==null||Ie.onResume();nZ();Ie=O;Ie.isForeground=!0;qd(Ie,"PLAY_EVENT_TYPE_PLAY_RESUME");$P(!1)},Te=function(Ie){var wG;
(wG=r)==null||wG.onAudioToggled(Ie);$A(Ie)},lu=function(Ie){y().showMultiplayer3pConsentDialogCommand&&(y().isEmbeddedInWebview&&Ie!==void 0&&z.resolve(Ie),!Ie&&_.KV()==="mini_app"&&V9(y().showMultiplayer3pConsentDialogCommand))},uR=function(){var Ie,wG,XY,Rn;
return _.S(function(fG){if(fG.nextAddress==1){!y().isLivestream||y().disableVideoCapture||(Ie=r)!=null&&Ie.sendStartGameFrameCapture();wG=(new URL(window.location.href)).searchParams;if(wG.has("invite_code")){var DZ=new GM_,y2=wG.get("invite_code");XY=_.BB(DZ,1,y2);(Rn=r)==null||Rn.sendGameData(XY)}xP()||(XW(!0),DZ=O,DZ.state!==1?_.tq(new _.g6("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+oyY[DZ.state])):(_.a8("mini_app_ids_without_game_ready").includes(DZ.JSC$17357_miniAppId)&&(DZ.gameReady=
!0),DZ.state=2,DZ.beforeReady=!1,uB(DZ,"ma_ffr"),qd(DZ,"PLAY_EVENT_TYPE_PLAY_READY")));return fG.yield(z.promise,2)}V9(y().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();y().isEmbeddedInWebview||lu();_.Cj(fG)})},QA=function(){var Ie=O;
Ie.gameReady=!0;uB(Ie,"ma_gr")},Yy=function(Ie){var wG;
return _.S(function(XY){if(XY.nextAddress==1)return _.nj(XY,2),XY.yield(eZa(w,Ie),4);if(XY.nextAddress!=2)return _.lZ(XY,0);wG=_.dj(XY);V9(y().showSavingErrorPopupCommand);throw wG;})},Ga=function(){var Ie,wG;
return _.S(function(XY){if(XY.nextAddress==1)return _.nj(XY,2),XY.yield(HaR(w),4);if(XY.nextAddress!=2)return Ie=XY.yieldResult,XY.return(Ie);wG=_.dj(XY);V9(y().showLoadingErrorDialogCommand);throw wG;})},qz=function(Ie){O.logError(Ie)},iR=function(Ie,wG,XY){QTY(O,Ie,wG,XY)},JV=function(Ie,wG){fQY(O,Ie,wG)},Nz=function(){!D&&y().isEmbeddedInWebview||_.pu();
XC1(O,!0);q||(window.addEventListener("beforeunload",u_,{capture:!0}),q=!0)},z_=function(Ie){var wG,XY,Rn,fG,DZ,y2,WW;
return _.S(function(L2){if(L2.nextAddress==1)return v&&(!K||K<Ie)&&Ie>0?L2.yield(Ugy(v,Ie),3):L2.jumpTo(0);wG=L2.yieldResult;XY=_.J(wG);Rn=XY.next().value;fG=XY.next().value;DZ=Rn;y2=fG;((WW=DZ)==null?0:WW.displayString)&&y2&&(rq(y2),Ta(DZ.displayString));_.Cj(L2)})},gM=function(Ie){var wG=y().onBenchmarkingMessageReceivedCommand;
if(wG){var XY=xxB();_.Mg(Ie,3,rdc,XY);Iz(wG,hdR(Ie))}},$s=function(){var Ie=y().iapPurchaseCommand;
Ie&&Iz(Ie)},jT=function(Ie){var wG=y().onGameFrameReceivedCommand;
if(wG){var XY=new Zj;var Rn=new Nba;var fG=Hn(Ie,1);Rn=_.g2(Rn,1,fG);Ie=_.Tp(Ie,2);Ie=_.BB(Rn,2,Ie);XY=_.mH(XY,2,Ie);Iz(wG,ule(XY))}},DT=function(Ie){var wG=y().onGameAudioDataReceivedCommand;
if(wG){var XY=new Zj;var Rn=new xHn;Ie=_.Tp(Ie,1);Rn=_.BB(Rn,1,Ie);XY=_.mH(XY,4,Rn);Iz(wG,ule(XY))}},fZ=function(){var Ie=new URLSearchParams(window.location.search);
if(y().isEmbeddedInWebview&&Ie&&Ie.get("override_hl")==="true"&&Ie.get("hl"))return Ie.get("hl");Ie=document.documentElement.lang;return Ie!==""?Ie:JS},ye=function(Ie){var wG=y().onShareInviteCodeCommand;
if(wG)if(y().isEmbeddedInWebview){var XY=new eJW;Ie=_.BB(XY,1,Ie);Iz(wG,stu(Ie))}else XY=y().inviteCodeShareClientParamIdentifier,B.clientParams.set(XY,{miniAppClientParams:{inviteCode:Ie}}),V9(wG)},xE=function(Ie){var wG,XY,Rn;
return _.S(function(fG){if(fG.nextAddress==1)return wG=y().onMiniAppOpenYtContentRequested,v&&_.l("enable_open_yt_content")&&wG?fG.yield(rVb(v,Ie),3):fG.jumpTo(0);XY=fG.yieldResult;if(XY==="OK")if(y().isEmbeddedInWebview){var DZ=new UHn;Rn=$7(DZ,2,Vl,Qa(Ie));Iz(wG,o6O(Rn))}else C.clientData.set("video_id",Ie),V9(wG);_.Cj(fG)})},CJ=function(Ie){vH+=_.lD(Ie,3);
Ie=Math.min(Math.log(1+vH/15E6*9)/Math.log(10),.99);AM(Ie);Xg(Ie)},Xg=_.TQ(function(Ie){var wG=y().updateLoadingProgressCommand;
if(wG){var XY=new UHn;Ie=$7(XY,3,Vl,_.DQ(Ie));Iz(wG,o6O(Ie))}},100),ib=function(Ie,wG){switch(Ie){case 1:return zZa(P);
case 2:return koG(P);case 3:return aQ1(P,wG);default:return Promise.reject(Error("ei"))}},nZ=function(){var Ie,wG;
((Ie=_.y$B())==null?void 0:(wG=Ie.wakeLock)==null?void 0:wG.request)!=null&&_.y$B().wakeLock.request("screen").then(function(XY){h=XY}).catch(function(){})},Ek=_.Fh("iframe");
_.wZ(function(){y().isSupportedCountry&&(GK5()||_.l("enable_sign_in_promo")||!y().showSignInDialogCommand?Ek.value&&B_(Ek.value):V9(y().onMiniAppReadyCommand))},"EQIAIf");
var lV=function(){return _.t("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return xP()?0:-1},
title:function(){return y().title},
el:Ek})},B_=function(Ie,wG){wG=wG===void 0?!1:wG;
var XY=i9();if(XY&&(wG||XY.toString()!==Ie.getAttribute("src"))){r=mxB(y().source,{isAudioEnabled:dq,onFirstFrameReady:uR,onGameReady:QA,onSave:Yy,onLoad:Ga,onError:qz,onSdkCalled:iR,onSdkPerformanceUpdate:JV,onClick:Nz,onSendHighScore:z_,onBenchmarkingMessageReceived:gM,getLanguage:fZ,onShareInviteCode:ye,onResourceLoaded:CJ,onOpenYTContent:xE,onShowMiniAppAd:ib,onGameFrameReceived:jT,onGameAudioReceived:DT,onMakeIapPurchase:$s},Ie,XY);Ib(Ie,"load",function(){uB(O,"ma_il");Ib(Ie,"load",function(){B_(Ie,
!0)})});
var Rn=_.kf("mini_app_container_iframe_src_update_delay_ms");y().isEmbeddedInWebview&&!wG&&Rn>0?qw5(Ie,XY,Rn):_.Ok(Ie,XY)}},i9=function(){var Ie=y().url;
if(Ie&&(Ie=_.vP(Ie),Ie!==null)){if(y().source&&y().source==="MINI_APP_SOURCE_GAMESNACKS")Ie=_.G_(Ie,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.l("enable_origin_query_parameter_bugfix")){var wG=_.ez(_.ew5(Ie.toString()));wG=new URLSearchParams(wG||"");wG.set("origin",window.location.origin);wG=wG.toString();Ie=_.W$(Ie).toString();Ie=_.c$(Ytc.exec(Ie)[0]+(wG.trim()?"#"+wG:""))}return Ie}},Bf=function(){var Ie={};
Ie=_.XH("yt-mini-app-container-view-model__loading-screen",(Ie["yt-mini-app-container-view-model__loading-screen--fade-out"]=xP,Ie));var wG=function(){return xP()?1:AV()};
return _.t("div",{class:Ie},_.t(_.aP,{data:function(){return y().splashScreen}},{miniAppSplashScreenViewModel:function(XY){return _.t(yVa,{data:XY.data,
loadingProgress:wG})}}))},cn=function(){var Ie={};
return _.t("div",{class:_.XH("yt-mini-app-container-view-model__pause-interstitial",(Ie["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!rG()},Ie["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=rG,Ie))},_.t(_.aP,{data:function(){return y().splashScreen}},{miniAppSplashScreenViewModel:function(wG){return _.t(yVa,{data:wG.data,
forPaused:!0})}}))},AP=function(){N=[];
N.push(_.bV(window,"visibilitychange",function(){f||F&&aB()||(document.visibilityState==="visible"?cH():YA())}));
N.push(_.bV(window,"pagehide",function(){cd()}));
N.push(_.bV(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&oT.value.dispatchEvent(new Event("tap"))},0)}));
N.push(_.bV(oT.value,"pointerdown",function(){XC1(O,!1)},!0));
N.push(_.bV(oT.value,"pause",function(){f=!0;YA()}));
N.push(_.bV(oT.value,"play",function(){f=!1;cH()}));
N.push(_.bV(oT.value,"exit",function(){cd()}));
var Ie=navigator.keyboard,wG=Ie&&Ie.lock;N.push(_.bV(window,xKR,function(){jg(rPt());rPt()?(y().hasPlayNextShelf&&CM("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),bb("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),wG&&Ie.lock(["Escape"])):(y().hasPlayNextShelf&&bb("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),CM("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),wG&&Ie.unlock())}));
y().showMultiplayer3pConsentDialogCommand&&N.push(_.bV(window,"yt-playables-ack-3p-data-usage",function(){jnG(v)}));
y().confirmExitMiniAppCommandEdu&&N.push(_.bV(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.$c("exit-mini-app-seen-state","true",2592E6)}));
y().onGameAudioDataReceivedCommand&&N.push(_.bV(window,"message",function(XY){XY=XY.event_;var Rn,fG=(Rn=Ek.value)==null?void 0:Rn.src;if(fG&&XY.origin===(new URL(fG)).origin&&XY.data&&XY.data.type==="GAME_AUDIO"&&XY.data.audio&&XY.data.audio.length>0)if(_.l("enable_sending_unwrapped_game_audio_as_serialized_metadata"))u_5(y().onGameAudioDataReceivedCommand,XY.data.audio);else{var DZ=new FileReader;DZ.onload=function(){var y2=new Zj;var WW=new xHn;WW=_.BB(WW,1,DZ.result);y2=_.mH(y2,4,WW);Iz(y().onGameAudioDataReceivedCommand,
ule(y2))};
DZ.readAsDataURL(new Blob([XY.data.audio]))}}))},$R=function(){N.forEach(function(Ie){iV(Ie)});
window.removeEventListener("beforeunload",u_,{capture:!0})},V9=function(Ie){Ie&&h1_(Ie,y().isEmbeddedInWebview||!1)},bb=function(Ie,wG){Ie=_.J(oT.value.getElementsByClassName(Ie));
for(var XY=Ie.next();!XY.done;XY=Ie.next())XY.value.classList.add(wG)},CM=function(Ie,wG){Ie=_.J(oT.value.getElementsByClassName(Ie));
for(var XY=Ie.next();!XY.done;XY=Ie.next())XY.value.classList.remove(wG)};
return function(){var Ie={};Ie=_.XH("yt-mini-app-container-view-model",(Ie["yt-mini-app-container-view-model--desktop"]=!0,Ie["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ie["yt-mini-app-container-view-model--ios-web-view"]=gK5(),Ie["yt-mini-app-container-view-model--no-top-bar"]=function(){return!y().topBar},Ie["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return y().hasPlayNextShelf},Ie["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return y().hasPlayNextShelf},Ie["yt-mini-app-container-view-model--show-peek-below"]=function(){return!vG()&&y().hasPlayNextShelf},Ie));
var wG={};wG=_.XH("yt-mini-app-container-view-model__content",(wG["yt-mini-app-container-view-model__content--desktop-content"]=!0,wG["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},wG["yt-mini-app-container-view-model--desktop-play-page"]=function(){return y().hasPlayNextShelf},wG));
return _.t("mini-app-container-view-model",{el:oT},_.t("div",{class:Ie},_.t(_.U,{cond:function(){return y().topBar&&!vG()},
then:function(){return _.t(_.aP,{data:function(){return y().topBar}},{miniAppTopBarViewModel:function(XY){return _.t(vsa,{data:XY.data,
isAudioEnabled:dq,onAudioToggled:function(Rn){Te(Rn)},
score:Ub,formattedScore:rc,onScoreChanged:function(Rn){K=Rn},
isEmbeddedInWebview:aB,isSaved:HG,onSaveToggled:function(Rn){cG(Rn)},
isExitMiniAppSeen:yg,isDesktopPlayPage:mE})}})}}),_.t("div",{class:wG},_.t(_.U,{cond:mM,
then:function(){return lV()}}),_.t(_.U,{cond:function(){return y().isLivestream},
then:function(){return cn()}}),_.t(_.U,{cond:function(){return!y().isEmbeddedInWebview},
then:function(){return Bf()}}),_.t(_.aP,{data:function(){return y().contentDisclosure}},{playerDisclosureViewModel:function(XY){XY=XY.data;
var Rn={};return _.t("div",{class:_.XH("yt-mini-app-container-view-model__content-disclosure-overlay",(Rn["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=Ox,Rn))},_.t(_.Sx8,{data:XY}))}}))))}()},"fg");
ose.idomCompat=!0;_.NK(ose,"mini-app-container-view-model",{props:{data:_.om}});var NoT=_.d(function(I){var y=I.data;return _.t("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.t("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.YY(function(){var D=y().onTap;D&&_.OE(D)})},_.t(_.U,{cond:function(){return y().icon},
then:function(D){return _.t(_.mj,{icon:function(){return D().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.t("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return y().title})))},"gg");
NoT.idomCompat=!0;var hCR=_.d(function(I){var y=_.DF("div"),D=_.J(_.$M(void 0,void 0,"dg3xff")),F=D.next().value,R=D.next().value;D=_.J(_.$M(void 0,void 0,"AgHNfc"));var O=D.next().value,w=D.next().value;D=_.J(_.$M(void 0,void 0,"fuTKCc"));var v=D.next().value,P=D.next().value,K=function(){var m=F();return m!==void 0?Math.abs(m):void 0},r=function(){var m=K();
return m===void 0||m<=3},N=function(){var m=K();
var z=O(),B=v();m=m!==void 0&&z!==void 0&&B!==void 0?z-B-m:void 0;return m===void 0||m<=3},h=function(m){y.value&&y.value.scrollBy({top:0,
left:(_.Pi("HTML_DIR")==="rtl"?-1:1)*m*y.value.clientWidth,behavior:"smooth"})},x=function(){var m;
R((m=y.value)==null?void 0:m.scrollLeft);var z;w((z=y.value)==null?void 0:z.scrollWidth);var B;P((B=y.value)==null?void 0:B.clientWidth)},q=function(){h(-.5)},X=function(){h(.5)};
D=_.YY(function(){x()});
_.OJ(function(){x();if(y.value&&window.ResizeObserver){var m=new ResizeObserver(x);m.observe(y.value);_.tI(function(){m.disconnect()})}});
var f={};return _.t("yt-sponsorships-scrollable-shelf",{class:_.XH("ytdSponsorshipsScrollableShelfHost",I.className)},_.t("div",{class:_.XH("ytdSponsorshipsScrollableShelfContent",(f.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return I.data().previousButton&&I.data().nextButton&&!r()&&!N()},f.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return I.data().previousButton&&!r()&&N()},f.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return I.data().nextButton&&
r()&&!N()},f)),
el:y,"on:scroll":D},I.children),_.t(_.U,{cond:function(){return!r()},
then:function(){return _.t(_.aP,{data:function(){return I.data().previousButton}},{buttonViewModel:function(m){return _.t(_.My,{data:m.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:q})}})}}),_.t(_.U,{cond:function(){return!N()},
then:function(){return _.t(_.aP,{data:function(){return I.data().nextButton}},{buttonViewModel:function(m){return _.t(_.My,{data:m.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:X})}})}}))},"ig");
hCR.idomCompat=!0;var l0Y=_.d(function(I){var y=I.data;I={};return _.t("yt-sponsorships-hub",{class:_.XH("ytdSponsorshipsHubHost",(I.ytdSponsorshipsHubHostIndented=function(){return y().indented},I))},_.t("div",{class:"ytdSponsorshipsHubHeader"},_.t("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.t("div",{class:"ytdSponsorshipsHubAvatar"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF})),_.t(_.U,{cond:function(){return y().badgeImage},
then:function(D){return _.t("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.t("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.t("div",{class:"ytdSponsorshipsHubBadge"},_.t(_.UE,{data:D,targetWidth:24,targetHeight:24,alt:""}))))}})),_.t("div",{class:"ytdSponsorshipsHubDetails"},_.t("div",{class:"ytdSponsorshipsHubTierName"},function(){return y().tierName}),_.t("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return y().membershipType}),_.t("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return y().membershipDurationOrExpiry})),_.t("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.t(_.aP,{data:function(){return y().manageButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.t(_.aP,{data:function(){return y().actionMenuButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.t("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return y().perksTitle}),_.t(hCR,{data:function(){return{previousButton:y().previousPerkButton,
nextButton:y().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.t("div",{class:"ytdSponsorshipsHubPerkCards"},_.t(_.aP,{data:function(){return y().perkCards}},{sponsorshipsHubPerkCardViewModel:NoT}),_.t(_.U,{cond:function(){return y().viewAllPerksButton},
then:function(D){return _.t(xgC,{data:D})}}))))},"jg");
l0Y.idomCompat=!0;var xgC=_.d(function(I){var y=I.data;return _.t("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.t(_.aP,{data:function(){return y().button}},{buttonViewModel:_.My}),_.t("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.t("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return y().title}),_.t("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return y().subtitle})))},"kg");
xgC.idomCompat=!0;_.NK(l0Y,"yt-sponsorships-hub",{props:{data:_.om}});_.ujR=_.d(function(I){var y=I.data;return _.t("yt-dual-avatar-view-model",{class:_.XH("ytDualAvatarViewModelHost",I.className),style:_.p4({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var D;return((D=y().badgeCutoutRadius)!=null?D:14)+"px"}})},_.t("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.t(_.aP,{data:function(){return y().startAvatar}},{avatarViewModel:_.LF}),_.t(_.aP,{data:function(){return y().endAvatar}},{avatarViewModel:_.LF})),_.t(_.aP,{data:function(){return y().badge}},
{contentPreviewImageViewModel:function(D){return _.t("div",{class:"ytDualAvatarViewModelBadge"},_.t(_.mF,{data:D.data}))}}))},"lg");
_.ujR.idomCompat=!0;var EsC=_.d(function(I){var y=I.data;var D,F=!((D=_.nR().resolve(_.fR(_.cS)))==null||!D());I=_.su(function(){var r,N,h=F?(r=y().header)==null?void 0:r.backgroundColorDarkMode:(N=y().header)==null?void 0:N.backgroundColorLightMode;if(h!==void 0)return _.Z7(h)},void 0,"TDdh7d");
D=_.su(function(){var r,N;return F?(r=y().header)==null?void 0:r.backgroundImagePart1Dark:(N=y().header)==null?void 0:N.backgroundImagePart1Light},void 0,"X0peMe");
var R=_.su(function(){var r,N;return F?(r=y().header)==null?void 0:r.backgroundImagePart2Dark:(N=y().header)==null?void 0:N.backgroundImagePart2Light},void 0,"an0Hzd"),O=_.su(function(){return _.Pi("HTML_DIR")==="rtl"},void 0,"BltEgb"),w=_.DF("yt-sponsorships-perks-list"),v=!1,P=function(){var r=w.value;
if(r&&!v){var N,h=(N=r.parentElement)==null?void 0:N.parentElement;if(h)for(r=r.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),N=0;N<r.length;++N){var x=r[N];if(x instanceof HTMLElement){h.scrollTo({top:x.offsetTop+x.clientHeight/2-h.clientHeight/2,behavior:"smooth"});v=!0;break}}}};
_.LR(function(){var r=w.value;if(r&&window.ResizeObserver){var N=new ResizeObserver(P);N.observe(r);_.tI(function(){N.disconnect()})}});
var K={};return _.t("yt-sponsorships-perks-list",{el:w,class:_.XH("ytdSponsorshipsPerksListHost",(K.ytdSponsorshipsPerksListHorizontalPadding=function(){return y().horizontalPaddingEnabled},K))},_.t("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.t("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.p4({"background-color":I})},_.t("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.t(_.U,{cond:D,then:function(r){var N={};return _.t("div",{class:_.XH((N.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=F,N.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!F,N.ytdSponsorshipsPerksListFlipped=O,N))},_.t(_.UE,{data:r,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.t("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.t(_.U,{cond:R,
then:function(r){var N={};return _.t("div",{class:_.XH((N.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=F,N.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!F,N.ytdSponsorshipsPerksListFlipped=O,N))},_.t(_.UE,{data:r,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.t("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.t(_.aP,{data:function(){var r;
return(r=y().header)==null?void 0:r.dualAvatar}},{dualAvatarViewModel:_.ujR})))),_.t("div",{class:"ytdSponsorshipsPerksListBody"},_.t("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return y().title}),_.t(_.U,{cond:function(){return y().perks},
then:function(r){return _.t(_.gZ,{each:r},function(N,h){var x={};return _.t("div",{class:_.XH("ytdSponsorshipsPerksListPerkContainer",(x.ytdSponsorshipsPerksListSelectedPerk=function(){var q=h(),X=y().selectedPerkIndex;return q===X},x))},_.t(_.U,{cond:function(){return h()>0},
then:function(){return _.t("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.t("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.t(_.U,{cond:function(){return N.icon},
then:function(q){return _.t(_.mj,{icon:function(){return q().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.t("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.t("div",{class:"ytdSponsorshipsPerksListPerkTitle"},N.title),_.t("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.t(_.jr,{text:N.description})),_.t(_.U,{cond:function(){return N.instructions},
then:function(){var q,X;return _.t("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.t("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(q=N.instructions)==null?void 0:q.title),_.t("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.t(_.jr,{text:(X=N.instructions)==null?void 0:X.text})))}}))),_.t(_.U,{cond:function(){return N.emoji},
then:function(q){return _.t("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.t(_.gZ,{each:function(){return q()}},function(X){return _.t(_.UE,{data:X,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.t(qxY,{data:N}))})}})))},"mg");
EsC.idomCompat=!0;var qxY=_.d(function(I){var y=I.data;var D=function(w,v){return w===v},F=function(){var w=y();
w=_.u(w==null?void 0:w.badgesShelf,IWR);return w!==void 0&&w!==null?w:{previousButton:{},nextButton:{}}},R=_.Fh("div"),O=function(){var w=R.value;
if(w){var v=w.parentElement;if(v){w=w.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var P=0;P<w.length;++P){var K=w[P];if(K instanceof HTMLElement){v.scrollTo({left:K.offsetLeft+K.clientWidth/2-v.clientWidth/2,behavior:"instant"});break}}}}};
_.LR(function(){var w=R.value;if(w){var v=new ResizeObserver(O);v.observe(w);_.tI(function(){v.disconnect()})}});
return _.t("div",null,_.t(_.U,{cond:function(){return y().badges},
then:function(w){return _.t(hCR,{data:F},_.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:R},_.t(_.gZ,{each:function(){return w()}},function(v,P){var K={},r={},N={};
return _.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.t(_.U,{cond:function(){return P()>0},
then:function(){return _.t("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.t("div",{class:_.XH("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(K.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return D(P(),y().currentBadgeIndex)},K.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!D(P(),y().currentBadgeIndex)},K))},_.t("div",{class:_.XH("ytdSponsorshipsPerksListLoyaltyBadge",(r.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return D(P(),
y().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!D(P(),y().currentBadgeIndex)},r))},_.t(_.U,{cond:function(){return v.image},
then:function(h){var x={};return _.t("div",{class:_.XH((x.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return D(P(),y().currentBadgeIndex)},x.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!D(P(),y().currentBadgeIndex)},x))},_.t(_.UE,{data:h,
alt:""}))}})),_.t("div",{class:_.XH("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(N.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return D(P(),y().currentBadgeIndex)},N))},v.title)))})))}}))},"ng");
qxY.idomCompat=!0;_.NK(EsC,"yt-sponsorships-perks-list",{props:{data:_.om}});_.NK(_.d(function(I){return _.t("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.t(_.U,{cond:function(){return I.data().image},
then:function(y){return _.t(_.UE,{className:"ytwFantasyEmptyStateViewModelImage",data:y,ariaHidden:!0,alt:""})}}),_.t(_.jr,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return I.data().title}}),_.t(_.jr,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return I.data().subtitle}}),_.t(_.aP,{data:function(){return I.data().primaryButton}},{buttonViewModel:function(y){return _.t(_.My,{data:y.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"og"),"ytw-fantasy-empty-state-view-model",{props:{data:_.om}});var GqZ;var X$y=_.d(function(I){var y=I.data;var D=I.uniqueId;var F=I.overrides;I=_.su(function(){var R,O=((R=y().timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:D(),timings:O,experimentEnabled:O.length>0,enabled:O.length>0}},void 0,"hiuXI");
return _.t("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.t(yjg,{settings:I},_.t(_.aP,{data:function(){return y().buttonRenderer}},{buttonRenderer:function(R){return _.t(_.u1,{data:R.data,
buttonOverrides:F})}})))},"pg");
X$y.idomCompat=!0;_.NK(X$y,"timed-animation-button-renderer",{props:{data:_.om,uniqueId:_.om,overrides:_.om}});var nX=function(){var I=_.k.apply(this,arguments)||this;I.hideJoinButtonBeforeSubscribed=_.l("hide_join_button_before_subscribed");I.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return I};
_.E(nX,_.k);_.L=nX.prototype;_.L.hasShowDialogCommand=function(I){return!!_.u(I,Jle)};
_.L.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"}}}};
_.L.updateJoinButtonOverrides=function(){var I,y;(I=_.XB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(y=I.polymerController)==null||y.set("overrides",this.joinButtonOverrides);if(I=_.XB(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))I.overrides=this.joinButtonOverrides};
_.L.handleButtonRefreshAction=function(I){if(I=_.u(I,Qca))this.set("data.membershipButton",I.membershipButton),this.notifyPath("data.membershipButton")};
_.L.onYtServiceRequestError=function(I){_.v_(this.hostElement,I.detail.error.message)};
_.L.onKeydown=function(I){if(I.key==="Enter"){var y;(y=this.data)!=null&&y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.L.handleUnsubscribeAction=function(){var I,y,D;((I=this.data)==null?void 0:(y=I.membershipButton)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.style)==="STYLE_PRIMARY"&&_.XB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.mD.Object.defineProperties(nX.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.subscriptionStateEntity)==null||!I.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.data)==null?void 0:I.membershipButton,D;I=(y==null?void 0:y.buttonRenderer)||_.u(y==null?void 0:(D=y.timedAnimationButtonRenderer)==null?void 0:D.buttonRenderer,_.S1);return(I==null?void 0:I.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(I==null?void 0:I.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(I==null?void 0:I.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var I;if(this.hasShowDialogCommand((I=this.data)==null?void 0:I.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var I;if(this.hasShowDialogCommand((I=this.data)==null?void 0:I.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.attributedTitle)}}});
nX.prototype.onYtServiceRequestError=nX.prototype.onYtServiceRequestError;nX.prototype.updateJoinButtonOverrides=nX.prototype.updateJoinButtonOverrides;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],nX.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],nX.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],nX.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.ZU),_.A("design:type",Object)],nX.prototype,"ironButtonState",void 0);_.W([_.M(),_.A("design:type",Object)],nX.prototype,"data",void 0);_.W([_.Y("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],nX.prototype,"hideJoin",null);
_.W([_.M(),_.A("design:type",String)],nX.prototype,"subscribeKey",void 0);_.W([_.M({selectorArgs:["subscribeKey"],selector:kXH}),_.A("design:type",Object)],nX.prototype,"subscriptionStateEntity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],nX.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.W([_.Y("subscriptionStateEntity"),_.M({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],nX.prototype,"subscribed",null);
_.W([_.Y("subscribed","data.membershipButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],nX.prototype,"joinButtonOverrides",null);_.W([_.Y("data.navigationEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],nX.prototype,"channelNameTabIndex",null);_.W([_.Y("data.navigationEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],nX.prototype,"channelNameRole",null);
_.W([_.Y("data.attributedTitle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nX.prototype,"hasAttributedTitle",null);_.W([_.ke("joinButtonOverrides"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nX.prototype,"updateJoinButtonOverrides",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],nX.prototype,"onYtServiceRequestError",null);
_.W([_.yd({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],nX);
var QnY=_.Xf()(nX,"ytd-video-owner-renderer",function(){if(GqZ===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);GqZ=I}I=GqZ;return I},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.NK(_.d(function(I){var y=I.data;var D;I=_.J(_.$M(!((D=_.bX("yt-mini-app-is-theater-mode-enabled"))==null||!D),void 0,"i2pjVd"));var F=I.next().value,R=I.next().value;D=_.J(_.$M(!1,void 0,"ga7V5c"));var O=D.next().value,w=D.next().value;_.LR(function(){var K=_.bV(window,xKR,function(){w(rPt())});
_.tI(function(){iV(K)})});
var v;D=(v=_.nR().resolve(_.fR(TqC)))!=null?v:function(){return _.t("div",null)};
_.GU("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){R(!0);_.$c("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.GU("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){R(!1);_.$c("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
v={};I={};var P={};return _.t("mini-app-play-page-renderer",{class:_.XH("miniAppPlayPageRendererHost",(v.miniAppPlayPageRendererHostDetailsView=function(){return!F()},v))},_.t("div",{class:_.XH("miniAppPlayPageRendererGameContainer",(I.miniAppPlayPageRendererGameContainerDetailsView=function(){return!F()},I))},_.t(_.aP,{data:function(){return y().containerViewModel}},{miniAppContainerViewModel:ose}),_.t(_.U,{cond:function(){return y().channel&&y().subscribeButton},
then:function(){var K={};return _.t("div",{class:_.XH("miniAppPlayPageRendererChannelContainer",(K.miniAppPlayPageRendererHideVisibility=function(){return O()},K))},_.t(_.aP,{data:function(){return y().channel}},{videoOwnerRenderer:function(r){return _.t(QnY,{data:r.data})}}),_.t(_.aP,{data:function(){return y().subscribeButton}},{subscribeButtonViewModel:function(r){return _.t(_.Lc,{data:r.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.t(_.U,{cond:function(){return!F()&&y().description},
then:function(){var K={};return _.t("div",{class:_.XH("miniAppPlayPageRendererMiniAppDescriptionWrapper",(K.miniAppPlayPageRendererHideVisibility=function(){return O()},K))},_.t("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return y().description}))}})),_.t("div",{class:_.XH("miniAppPlayPageRendererPlayNextContainer",(P.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!F()},P.miniAppPlayPageRendererHideVisibility=function(){return O()},P))},_.t(_.aP,{data:function(){return y().sectionList}},
{sectionListRenderer:D})))},"qg"),"mini-app-play-page-renderer",{props:{data:_.om}});var pX=function(){var I=_.k.apply(this,arguments)||this;I.isSearch=!1;I.isConstrainedList=!1;I.hasChipsBar=!1;I.inReplyPanel=!1;I.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"}};I.monitorScroll=!0;I.SCROLL_ANIMATION_DURATION_MS=300;I.nextContinuation={continuationType:"sectionListContinuation"};return I};
_.E(pX,_.k);_.L=pX.prototype;
_.L.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(I){switch(I.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:_.l("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.l("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.L.created=function(){var I=this;this.JSC$17499_scrollAnimation=new _.xH(function(y){I.hostElement.scrollTop=y})};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.L.getItemsPath=function(){return"data.contents"};
_.L.replacePrimaryContent=function(I){this.set("data.contents",I)};
_.L.computeHasSortFilter=function(I){return!!I&&!!I.sortFilterSubMenuRenderer};
_.L.computeShouldScrollInPanel=function(I){var y;return!!(I==null?0:(y=I.scrollPaneStyle)==null?0:y.scrollable)};
_.L.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Ye(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.L.scrollToTop=function(){this.hostElement.scrollTop=0};
_.L.scrollToItemSection=function(I){if(I=this.getItemByIdentifier(I))I=this.getScrollPositionForItem(I),this.hostElement.scrollTop!==I&&this.JSC$17499_scrollAnimation.start(this.hostElement.scrollTop,I,this.SCROLL_ANIMATION_DURATION_MS)};
_.L.getItemByIdentifier=function(I){var y=this.contents.querySelectorAll("ytd-item-section-renderer");if(y&&y.length!==0){var D=Array.from(y).findIndex(function(F){return F.sectionIdentifier===I});
return y[D===-1?0:D]}};
_.L.getScrollPositionForItem=function(I){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===I)return 0;I=_.ZO(I).y+this.hostElement.scrollTop-_.ZO(this.hostElement).y;return Math.min(I,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.mD.Object.defineProperties(pX.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.targetId)==="browse-feedFEclips"}}});
pX.prototype.onScroll=pX.prototype.onScroll;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],pX.prototype,"ytLazyListBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],pX.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Q(_.PRo),_.A("design:type",Object)],pX.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],pX.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pX.prototype,"data",void 0);_.W([_.M({value:2}),_.A("design:type",Number)],pX.prototype,"initialCount",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],pX.prototype,"autoFill",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.A("design:type",Boolean)],pX.prototype,"hasSortFilter",void 0);_.W([_.M({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.A("design:type",Boolean)],pX.prototype,"hideBottomSeparator",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.A("design:type",Boolean)],pX.prototype,"shouldScrollInPanel",void 0);
_.W([_.M(),_.A("design:type",Object)],pX.prototype,"isSearch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],pX.prototype,"isConstrainedList",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],pX.prototype,"responsiveSizing",void 0);_.W([_.M(),_.A("design:type",Object)],pX.prototype,"hasChipsBar",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],pX.prototype,"pageSubtype",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],pX.prototype,"engagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],pX.prototype,"liveChatEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],pX.prototype,"inReplyPanel",void 0);_.W([_.a0("#action-button"),_.A("design:type",HTMLElement)],pX.prototype,"actionButton",void 0);_.W([_.M(),_.A("design:type",Object)],pX.prototype,"scrollUpButtonData",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],pX.prototype,"engagementPanelDropdown",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],pX.prototype,"engagementPanelDialog",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],pX.prototype,"isClipList",null);_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],pX.prototype,"monitorScrollElement",void 0);_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],pX.prototype,"contents",void 0);
_.W([_.z4("scroll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pX.prototype,"onScroll",null);_.W([_.yd({is:"ytd-section-list-renderer",disableElementRegistration:!0})],pX);
var YxG=_.Xf()(pX,"ytd-section-list-renderer",function(){if(e4b===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);e4b=I}I=e4b;return I},{mode:1});var f0Z;var nso;var p$g;var mgY;var mo=function(){return _.k.apply(this,arguments)||this};
_.E(mo,_.k);mo.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
mo.prototype.onLikeButtonClick=function(I){I.stopPropagation();I.preventDefault()};
_.mD.Object.defineProperties(mo.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)!=null&&I.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)})}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mo.prototype,"ytRendererStamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mo.prototype,"data",void 0);
_.W([_.M({selectorArgs:["data.likeStatusEntityKey"],selector:_.gV}),_.A("design:type",Object)],mo.prototype,"likeStatusEntity",void 0);_.W([_.Y("data","likeStatusEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],mo.prototype,"likeButtonRenderer",null);_.W([_.yd({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],mo);
_.a(mo,"ytd-slim-metadata-toggle-button-renderer",function(){if(mgY!==void 0)return mgY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return mgY=I},{mode:1});var Md=function(){var I=_.k.apply(this,arguments)||this;I.showEqualizer=_.l("web_enable_playlist_video_lockup_equalizer");I.watchColorUpdate=_.l("kevlar_watch_color_update");I.actionMap={};return I};
_.E(Md,_.k);_.L=Md.prototype;_.L.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.L.computeEditableClass=function(I){return I&&I.menu?"editable":""};
_.L.computeSelected=function(I){return!(I==null||!I.selected)};
_.L.computeUseColorPalette=function(I){return!!((I==null?0:I.lightColorPalette)&&(I==null?0:I.darkColorPalette))};
_.L.computeLargerPlaylistThumbs=function(I,y){return _.l("web_enable_playlist_bigger_thumbnails")&&!y};
_.L.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.L.onYtServiceRequestSent=function(I,y){y.endpoint&&this.isHideEnclosingAction(y.endpoint)&&!this.selected&&cbG(_.xD(),this.data.videoId)};
_.L.isHideEnclosingAction=function(I){var y=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",I);I=this.get("likeEndpoint.status",I)==="INDIFFERENT";return y||I};
_.L.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.L.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.mD.Object.defineProperties(Md.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.l("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var I;return!!(this.withinMiniplayer&&((I=this.data)==null?0:I.actionButtons))}}});
Md.prototype.onYtServiceRequestSent=Md.prototype.onYtServiceRequestSent;Md.prototype.canReorderChanged=Md.prototype.canReorderChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.jo),_.A("design:type",Object)],Md.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Md.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"withinMiniplayer",void 0);_.W([_.M({computed:"computeSelected(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"selected",void 0);
_.W([_.M({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"useColorPalette",void 0);_.W([_.M({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"largerPlaylistThumbs",void 0);_.W([_.M(),_.A("design:type",Object)],Md.prototype,"showEqualizer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"canReorder",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"touchPersistentDragHandle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Md.prototype,"handleIsHovered",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Md.prototype,"watchColorUpdate",void 0);_.W([_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],Md.prototype,"reorderIcon",null);
_.W([_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],Md.prototype,"playIcon",null);_.W([_.M({reflectToAttribute:!0}),_.Y("withinMiniplayer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Md.prototype,"minimizePipBreakages",null);_.W([_.Y("largerPlaylistThumbs"),_.A("design:type",Number),_.A("design:paramtypes",[])],Md.prototype,"thumbnailWidth",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Md.prototype,"showActionButtons",null);_.W([_.Bp("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Md.prototype,"canReorderChanged",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],Md.prototype,"onYtServiceRequestSent",null);
_.W([_.yd({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Md);
_.a(Md,"ytd-playlist-panel-video-renderer",function(){if(p$g!==void 0)return p$g;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return p$g=I},{mode:2});var zx=function(){return _.k.apply(this,arguments)||this};
_.E(zx,_.k);zx.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zx.prototype,"data",void 0);_.W([_.yd({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],zx);
_.a(zx,"ytd-playlist-panel-supported-items",function(){if(nso!==void 0)return nso;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return nso=
I},{mode:1});upP=!0;FVf("\\P{N}");var BLH;var MZQ=_.zC("END_OF_PLAYLIST",void 0,"End of playlist"),zCb=_.zC("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),kH=function(){var I=_.k.apply(this,arguments)||this;I.minimizePipBreakages=_.l("web_pip_minimize_breakages");I.hideHeaderText=!1;I.useColorPalette=!1;I.collapsed=!1;I.collapsedPreServerOverride="not_tracked";I.isHovered=!1;I.expandLabel=_.zC("MINIPLAYER_EXPAND_LABEL");I.collapseLabel=_.zC("MINIPLAYER_COLLAPSE_LABEL");I.isFloating=!1;I.metaPanel=
!1;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};I.currentIndex=void 0;return I};
_.E(kH,_.k);_.L=kH.prototype;
_.L.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"}}}};
_.L.created=function(){var I=this;this.scrollThrottle=new _.n4(this.onThrottledScroll,1E3,this);this.JSC$17521_ytReorderableController=new _.K0c(56,function(y){I.handleDrop(y)})};
_.L.onMouseEnter=function(){this.isHovered=!0};
_.L.onMouseLeave=function(){this.isHovered=!1};
_.L.computeOverflowMenuData=function(I){return I&&I.menu?I.menu:null};
_.L.computeCollapsible=function(I){return!I};
_.L.computeHasPlaylistButtons=function(I){return!(!I||!I.playlistButtons)};
_.L.computeHasSeparateSaveButton=function(I){return!(!I||!I.saveButton)};
_.L.computeHasToolbarButton=function(I,y){return!(!I||!(y||I.saveButton||I.menu))};
_.L.computePlaylistType=function(I){if(I&&I.playlistId)return I.playlistId.substring(0,4)};
_.L.computeCanReorder=function(I){return I?I.playlistId&&I.playlistId.startsWith("TLPQ")?!0:!!I.isEditable&&!I.isInfinite:!1};
_.L.attached=function(){var I=this;try{_.nR().resolve(_.rE).setPlaylistComponent(this.hostElement)}catch(y){if(_.l("kevlar_park_on_playlist_token_killswitch"))throw y;_.oJ().parkOrScheduleJob(function(){_.nR().resolve(_.rE).setPlaylistComponent(I.hostElement)},2,"ci")}_.h9(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.L.detached=function(){_.xI(this.hostElement);_.$g(this.JSC$17521_ytReorderableController)};
_.L.computeTrailingIcon=function(I,y,D){return D?y?"yt-icons:collapse":"yt-icons:close":y?"yt-icons:expand":_.l("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.L.computeIndexMessage=function(I,y){return $xt(I+1)+" / "+$xt(y)};
_.L.onRenderStamperFinished=function(){if(this.scrollForStampDom){var I=!0;this.isHovered&&(I=!1);if(this.collapsed||this.hidden)I=!1;I&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.L.collapseChanged=function(){var I=this;this.collapsed||(_.k1(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.L.hiddenChanged=function(){var I=this;this.hidden||_.k1(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.scrollToCurrentVideo()})};
_.L.setupReordering=function(){var I=_.XB(this.hostElement).querySelector("#items");CNu?_.UsM(this.JSC$17521_ytReorderableController,I,I,"playlist-drag-handle"):_.UsM(this.JSC$17521_ytReorderableController,I,I)};
_.L.scrollToCurrentVideo=function(){var I=this;_.w2.addJob(function(){var y=_.XB(I.hostElement).querySelector("#items");if(y){y.style.setProperty("padding-bottom","");var D=_.XB(I.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(D){y=D.parentElement||_.IR(document);var F=y||_.IR(document);var R=_.ZO(D),O=_.ZO(F),w=_.jDP(F);if(F==_.IR(document)){var v=R.x-F.scrollLeft;R=R.y-F.scrollTop}else v=R.x-O.x-w.left,R=R.y-O.y-w.top;D=PDz(D);O=F.clientHeight-
D.height;w=F.scrollLeft;var P=F.scrollTop;w+=v-(F.clientWidth-D.width)/2;F=new _.XO(w,P+(R-O/2));y.scrollLeft=F.x;y.scrollTop=F.y}}},8)};
_.L.dataChanged=function(){var I=this;_.$g(this.JSC$17521_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.YC(this,function(){_.y9(I.ytTaskEmitterBehavior.getTaskManager(),function(){I.ytRendererBehavior.markDirty();I.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.L.onFullBleedPlayerChanged=function(){_.l("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.L.onFullscreenChanged=function(){_.l("web_watch_imax_theater_mode")||_.l("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.L.updateNowPlayingOverlay=function(){_.l("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.L.onPlaylistLockupNowPlaying=function(I,y){y&&(this.activeNowPlayingRenderer=y);this.updateNowPlayingOverlay()};
_.L.onScroll=function(){this.scrollThrottle.fire()};
_.L.onThrottledScroll=function(){var I=this;_.y9(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.ytRendererBehavior.markDirty()})};
_.L.onToggleExpanded=function(I){!this.collapsible||I&&(_.jv(I).tagName==="A"||_.UP(_.r4(I),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.L.setCollapsed=function(I){this.collapsible&&(this.collapsed=I,_.qr(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.L.handleCollapsedFromData=function(I){if(I){var y=I.playlistPanelCollapseState;y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||y==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),y=y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==y&&this.setCollapsed(y)):this.currentPlaylistId!==I.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(y=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==y&&this.setCollapsed(y),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=I.playlistId}};
_.L.handleDrop=function(I){var y=I.currDragItem;I=y.data.playlistSetVideoId;var D=_.ze(y.parentNode.childNodes,y),F=void 0;D>0&&(F=y.parentNode.childNodes[D-1].data.playlistSetVideoId);y=_.xD();if(y.responsePlaylistData&&y.responsePlaylistData.contents){var R=gSq(I,y.responsePlaylistData);y.responsePlaylistData=(0,_.e$.unsafeClone)(y.responsePlaylistData);aCB(y.responsePlaylistData.contents,R,D);y.queueProxy?UZe(y.queueProxy,R,D,I,F):y.playlistProxy&&UZe(y.playlistProxy,R,D,I,F);_.l3(y,_.u3(y,y.response?
y.response.autoplayRenderer:void 0))}};
_.L.handleDarkModeChange=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
_.L.colorPaletteChanged=function(){var I,y=((I=this.data)==null?void 0:I.contents)||[],D;I=_.J(y);for(y=I.next();!y.done;y=I.next()){y=y.value;var F=void 0;if((F=y.playlistPanelVideoRenderer)==null?0:F.selected){I=y.playlistPanelVideoRenderer;F=y=void 0;(D=this.isDarkTheme?(y=I)==null?void 0:y.darkColorPalette:(F=I)==null?void 0:F.lightColorPalette)&&_.Af(this.hostElement,D);break}}this.useColorPalette=!!D};
_.mD.Object.defineProperties(kH.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.moveThreeDotsMenuToMainHeader)&&_.l("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var I=_.nR().resolve(_.fR(_.rE)),y;if(((y=this.data)==null?0:y.contents)&&(I==null?0:I.hasAutoplayData())){var D;if(((D=this.playlistLoopStateEntity)==null?void 0:D.state)==="PLAYLIST_LOOP_STATE_ONE"){if(I=this.data.currentIndex,I!==void 0){var F,R;var O=(F=this.data.contents[I])==null?void 0:(R=F.playlistPanelVideoRenderer)==null?void 0:R.title}}else{var w,v=(w=_.u(I.getAutoplayEndpoint(),_.t9))==null?void 0:w.videoId,P,K;O=(P=this.data.contents.find(function(r){var N;
return((N=r.playlistPanelVideoRenderer)==null?void 0:N.videoId)===v}))==null?void 0:(K=P.playlistPanelVideoRenderer)==null?void 0:K.title}return O}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)!=null&&I.nextVideoLabel?this.nextVideoTitle?_.rY(this.data.nextVideoLabel)+":":MZQ:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.data)==null?0:I.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.l("web_mix_long_byline_from_data"))return _.Ug(zCb);var y;return(y=this.data)==null?void 0:y.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.playlistButtons)==null?void 0:(D=y.menuRenderer)==null?void 0:D.topLevelButtons;if(F)for(I=_.J(F),y=I.next();!y.done;y=I.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var I;return!!(this.collapsed&&((I=this.data)==null?0:I.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.l("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
kH.prototype.colorPaletteChanged=kH.prototype.colorPaletteChanged;kH.prototype.onPlaylistLockupNowPlaying=kH.prototype.onPlaylistLockupNowPlaying;kH.prototype.updateNowPlayingOverlay=kH.prototype.updateNowPlayingOverlay;kH.prototype.onFullscreenChanged=kH.prototype.onFullscreenChanged;kH.prototype.onFullBleedPlayerChanged=kH.prototype.onFullBleedPlayerChanged;kH.prototype.dataChanged=kH.prototype.dataChanged;kH.prototype.hiddenChanged=kH.prototype.hiddenChanged;kH.prototype.collapseChanged=kH.prototype.collapseChanged;
kH.prototype.onRenderStamperFinished=kH.prototype.onRenderStamperFinished;kH.prototype.onMouseLeave=kH.prototype.onMouseLeave;kH.prototype.onMouseEnter=kH.prototype.onMouseEnter;_.W([_.Q(_.sD),_.A("design:type",Object)],kH.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(WxW.YtPlaylistPanelBehavior),_.A("design:type",Object)],kH.prototype,"ytPlaylistPanelBehavior",void 0);_.W([_.Q(_.uC.YtTaskEmitterBehavior),_.A("design:type",Object)],kH.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],kH.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],kH.prototype,"ytdReduxBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],kH.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kH.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],kH.prototype,"autoplayData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],kH.prototype,"withinMiniplayer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"minimizePipBreakages",void 0);
_.W([_.M({computed:"setMenuData_(data)"}),_.A("design:type",Object)],kH.prototype,"menuRendererData",void 0);_.W([_.M({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],kH.prototype,"overflowMenuDataTopRow",void 0);_.W([_.M({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],kH.prototype,"overflowMenuData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"hideHeaderText",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"useColorPalette",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.A("design:type",Boolean)],kH.prototype,"collapsible",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"collapsed",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],kH.prototype,"hidden",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.A("design:type",Boolean)],kH.prototype,"hasPlaylistButtons",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.A("design:type",Boolean)],kH.prototype,"hasSeparateSaveButton",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.A("design:type",Boolean)],kH.prototype,"hasToolbar",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.A("design:type",String)],kH.prototype,"playlistType",void 0);_.W([_.M(),_.A("design:type",Object)],kH.prototype,"isHovered",void 0);_.W([_.M({selectorArgs:["playlistLoopStateEntityKey"],selector:_.It.playlistLoopStateEntitySelector}),_.A("design:type",Object)],kH.prototype,"playlistLoopStateEntity",void 0);_.W([_.M({computed:"computeCanReorder(data)"}),_.A("design:type",Boolean)],kH.prototype,"canReorder",void 0);
_.W([_.M(),_.A("design:type",Object)],kH.prototype,"expandLabel",void 0);_.W([_.M(),_.A("design:type",Object)],kH.prototype,"collapseLabel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"isFloating",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],kH.prototype,"metaPanel",void 0);_.W([_.M({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.A("design:type",String)],kH.prototype,"trailingIcon",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],kH.prototype,"isDarkTheme",void 0);_.W([_.M({selector:_.Iq}),_.A("design:type",Boolean)],kH.prototype,"miniplayerIsActive",void 0);_.W([_.M({selector:function(I){return I.watch.playerState}}),
_.A("design:type",Number)],kH.prototype,"playerState",void 0);_.W([_.M({selector:_.Vz}),_.A("design:type",Boolean)],kH.prototype,"isFullscreen",void 0);_.W([_.M({selector:_.sE}),_.A("design:type",Boolean)],kH.prototype,"isTheaterMode",void 0);_.W([_.M(),_.A("design:type",Object)],kH.prototype,"activeNowPlayingRenderer",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kH.prototype,"moveThreeDotMenuToTopRow",null);
_.W([_.Y("data","autoplayData","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],kH.prototype,"nextVideoTitle",null);_.W([_.Y("data","nextVideoTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],kH.prototype,"nextVideoLabel",null);_.W([_.Y("collapsed"),_.A("design:type",String),_.A("design:paramtypes",[])],kH.prototype,"buttonAriaLabel",null);
_.W([_.Y("data","playlistId","longBylineText"),_.A("design:type",Object),_.A("design:paramtypes",[])],kH.prototype,"mixLongByLine",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],kH.prototype,"playlistLoopStateEntityKey",null);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onMouseEnter",null);
_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onMouseLeave",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kH.prototype,"showNextVideoHeader",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onRenderStamperFinished",null);
_.W([_.ke("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"collapseChanged",null);_.W([_.ke("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"hiddenChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"dataChanged",null);
_.W([_.Y("isTheaterMode","isFullscreen"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kH.prototype,"isFullBleedPlayer",null);_.W([_.ke("isTheaterMode","isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onFullBleedPlayerChanged",null);_.W([_.ke("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"onFullscreenChanged",null);
_.W([_.ke("playerState","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"updateNowPlayingOverlay",null);_.W([_.z4("yt-playlist-lockup-now-playing-active"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],kH.prototype,"onPlaylistLockupNowPlaying",null);
_.W([_.ke("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kH.prototype,"colorPaletteChanged",null);_.W([_.yd({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],kH);
_.kqZ=_.Xf()(kH,"ytd-playlist-panel-renderer",function(){if(f0Z===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);f0Z=I}I=f0Z;return I},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.dgb={};
_.dgb.YtConditionalRendererBehavior=[_.V.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(I,y){var D=this,F,R;return _.S(function(O){switch(O.nextAddress){case 1:if(!y)return D.hidden=!0,D.showSpinner=!1,O.return();if((F=I)==null?0:(R=F.visibilityCondition)==null?0:R.mode)switch(I.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return O.jumpTo(5);default:return O.jumpTo(6)}D.showSpinner=
!1;D.hidden=!0;return O.yield(D.shouldShow_(I),4);case 4:D.hidden=!O.yieldResult;O.jumpTo(0);break;case 5:return O.yield(D.shouldShow_(I),8);case 8:D.showSpinner=O.yieldResult;D.hidden=!1;O.jumpTo(0);break;case 6:return D.showSpinner=!1,O.yield(D.shouldShow_(I),9);case 9:D.hidden=!O.yieldResult,_.Cj(O)}})},
shouldShow_:function(I){return I&&I.supportedDatas&&I.supportedDatas.rendererVisibilityConditionData&&I.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(I.supportedDatas.rendererVisibilityConditionData.showIf):I&&I.visibilityCondition&&I.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(I.visibilityCondition.showIf):I&&I.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(I.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(I){switch(I){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(I){switch(I){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var I=_.uj(this.hostElement,"yt-get-mdx-status");return I.length==1&&I[0].connected},
isLocationPermissionGranted_:function(){var I;return _.S(function(y){return y.nextAddress==1?navigator.permissions?y.yield(navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2):y.nextAddress!=2?(I=y.yieldResult,y.return(Promise.resolve(I.state==="granted"))):y.return(Promise.resolve(!1))})}}];var a0b=CBJ("yt-icon",{callbackProps:["onKeydown"]}),cVG=_.l("kevlar_use_wil_icons")?_.d(function(I){var y=I.icon;var D=I.active;var F=I.className;var R=I.style;var O=I.title;var w=I.size;var v=I.dataSelected;var P=I.dataDisabled;var K=I.role;var r=I.themeOverride;var N=I.animateIcon;var h=I.ariaHidden;var x=I.ariaExpanded;var q=I.ariaLabel;var X=I.tabindex;var f=I.id;var m=I.iconFilter;var z=I.gradientColor;var B=I.onKeydown;var C=function(){var T=y==null?void 0:y(),L5=null,vH=void 0;T&&(T=jGG(T),
T=jye(T),T.length&&(L5=T[1],vH=T[0]));return{iconName:L5,iconSetName:vH}},H=function(){return ov_(C().iconName,D==null?void 0:D(),void 0,w==null?void 0:w(),C().iconSetName,_.nR().resolve(_.mZ))},e=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:m==null?void 0:m(),iconColor:z==null?void 0:z()}};
return _.t(_.U,{cond:N,then:function(){return _.t(a0b,{icon:y,active:D,className:F,style:R,title:O,dataSelected:v,dataDisabled:P,role:K,themeOverride:r,ariaHidden:h,ariaExpanded:x,ariaLabel:q,tabindex:X,id:f,iconFilter:m,gradientColor:z,onKeydown:B})},
else:function(){return _.t(_.U,{cond:H,then:function(T){return _.t("span",{class:_.XH("ytIconWrapperHost",F),role:K,"aria-label":q,"aria-hidden":h,tabindex:function(){return isNaN(Number(X==null?void 0:X()))?void 0:Number(X==null?void 0:X())},
id:f,style:R,title:O,"on:keydown":_.YY(function(L5){return void(B==null?void 0:B(L5))})},_.t(_.iO,{data:T,
options:e}))}})}})},"rg"):a0b;var WH1=function(I){var y=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];loB();_.fv("ytglobal.ytUtilActivityCallback_",function(){_.qr(I,"yt-user-activity")});
new nu(function(){return y.JSC$17538_onMouseMove});
document.addEventListener("scroll",function(){return y.onScroll});
window.addEventListener("resize",function(){return y.onResize})},Cag=function(I,y,D){y in I.eventJobIds||(D=_.Tr().addLowPriorityJob(function(){_.pu();
delete I.eventJobIds[y]},D),I.eventJobIds[y]=D)};
WH1.prototype.onScroll=function(I){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):I.target===document&&Cag(this,"scroll",200)};
WH1.prototype.onResize=function(){Cag(this,"resize",200)};
WH1.prototype.JSC$17538_onMouseMove=function(){Cag(this,"mousemove",100)};
_.G$=function(I){I.scrollEventsToIgnore+=1;I.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){I.scrollEventsToIgnore--},500))};var Boa=function(I){this.element=I;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Boa.prototype.showFeedbackDialog=function(I,y,D,F){var R=iSe();if(!R)return!1;var O=DIC();O.productId=R;y&&(O.flow="submit",O.report={description:y});D&&(iSe()==="59"?O.callback=_.r6(function(){_.Jq("userFeedbackEvent",{});D()}):O.callback=_.r6(D));
O.bucket=F||_.Pi("GOOGLE_FEEDBACK_BUCKET","Other");AVo(O);I=$gT(this,"GFEEDBACK",I);try{_.rrG(O,I)}catch(w){return _.UJ(w),!1}return!0};
Boa.prototype.showHelpDialog=function(I,y,D){var F=this,R=iSe();if(!R)return!1;var O={helpCenterPath:"/youtube",productData:$gT(this,"GUIDED_HELP",D)};AVo(O);var w=DIC();w.context=I||O.productData.context||"default";w.defaultHelpArticleId=y;w.enableSendFeedback=!0;(_.jF("gapi.load")||function(v,P){return P()})("client",function(){try{var v=$o_(R,O);
if(_.l("web_always_load_chat_support")&&!F.chatSupportLoaded)try{v.JSC$10251_loadChatSupport(w),F.chatSupportLoaded=!0}catch(P){}v.startHelp(w)}catch(P){_.UJ(P)}})};
var iSe=function(){var I=_.Pi("GOOGLE_FEEDBACK_PRODUCT_ID");I||_.UJ(Error("ii"));return I},AVo=function(I){I&&(I.locale=_.l("kevlar_help_use_locale")?_.Pi("INNERTUBE_CONTEXT_HL","en"):_.Pi("HTML_LANG","en"))},$gT=function(I,y,D){var F=I.productData;
delete F.origin;F.device=_.oo();var R;a:{if(R=document.createElement("canvas")){var O=R.getContext("experimental-webgl",{stencil:!0});if(O){var w=O.getExtension("WEBGL_debug_renderer_info");if(w){R=O.getParameter(w.UNMASKED_RENDERER_WEBGL);break a}}if(O=R.getContext("webgl")){R=O.getParameter(O.RENDERER);break a}}R=null}F.gpu=R;F.isSDC=!!_.Pi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(R=_.Pi("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.e$.extend(F,R);_.Ize(y,F);_.yFH(F);(I=_.qr(I.element,"yt-get-autonav-pause-debug-state"))&&
I.length&&(F.autonav_pause_state=I[0]);I=_.cB();F.browser_resolution=I.width+"\u00d7"+I.height+"@"+(window.devicePixelRatio||1)+"x";D&&_.e$.extend(F,D);return F};
Boa.prototype.resetProductData=function(){this.productData={}};var bS1=function(I){this.feedbackManager=new Boa(I)};
bS1.prototype.showFeedbackDialog=function(I,y,D,F){return this.feedbackManager.showFeedbackDialog(I,y,D,F)};
bS1.prototype.showHelpDialog=function(I,y,D){return this.feedbackManager.showHelpDialog(I,y,D)};var HST=function(){this.baseUrl="";this.aTag=document.createElement("a")},eEz=function(I,y,D){D=D===void 0?{}:D;
D.pbj||(D.pbj=1);D=_.FKo(y,D);I.baseUrl&&D&&!_.EJ(D)[1]&&!_.GP(D)&&(y=I.baseUrl,JL(y,"/")&&(y=y.slice(0,-1)),_.Oq(D,"/")&&(D=D.slice(1)),D=y+"/"+D);yr(I.aTag,_.Tq(D||""));return I.aTag.href};
HST.prototype.fetchData=function(I){return _.e1o(I)};
HST.prototype.postData=function(I,y){var D={method:"POST"};if(y){for(var F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next()){R=R.value;var O=y[R];_.b_(O)&&(y[R]=JSON.stringify(O))}D.postParams=y}return _.e1o(I,D)};
_.Twz=function(I,y,D,F,R){I=eEz(I,y,D);if(!I)throw F=Error("ji"),Object.assign(F,{params:y}),F;return _.e1o(I,R,F)};
HST.prototype.requestDataForServiceEndpoint=function(I,y){if(_.u(I,_.Fv_))return this.fetchData("/getAccountSwitcherEndpoint");y=y||{};var D=_.u(I,Yyz);D?y.se=D.base64EncodedServiceEndpoint:y.sej=JSON.stringify(I);(D=_.VO())&&_.l("enable_service_ajax_csn")&&(y.csn=D);y.theme=_.Jt();_.u(I,yEA)&&_.Pi("DELEGATION_CONTEXT")&&(y.delegation_context=JSON.stringify(_.Pi("DELEGATION_CONTEXT")));D=null;for(var F in I)if(JL(F,"Endpoint")||JL(F,"Command")){D=F;break}if(!D){var R=Error("ki");Object.assign(R,{params:I});
_.Iyq(R,"WARNING");return new _.AO(function(w,v){v(R)})}F={name:D};
var O;(D=(O=_.u(I,_.fE))==null?void 0:O.signal)&&(F.signal=D);(O=_.lP(window.location.href))&&O.internalcountrycode&&(F.internalcountrycode=O.internalcountrycode);O="/service_ajax";_.l("debug_forward_web_query_parameters")&&(O=_.NHo(O,window.location.search));O=_.qC(O,F);I.clickTrackingParams&&_.re(O,{itct:I.clickTrackingParams});return this.postData(O,y)};_.eCg=new _.uk("GFEEDBACK_TOKEN");var Toe;var snT;var VZe;var ZSo;var df=function(){var I=_.k.apply(this,arguments)||this;I.compact=!1;I.dismissButtonDisabled=!1;I.shouldRenderReasonAsFormattedString=!_.l("web_player_error_message_reason_as_formatted_string_killswitch");return I};
_.E(df,_.k);df.prototype.computeHasIcon_=function(I){return!!I};
df.prototype.isSignInIcon_=function(I){return I=="yt-icons:prompted_sign_in"};
df.prototype.onDismissButtonClick=function(){var I=this,y=this.data.disableOnClick,D,F=(D=this.data.dismissButton)==null?void 0:D.buttonRenderer;y&&!this.dismissButtonDisabled&&F&&setTimeout(function(){I.dismissButtonDisabled=!0},0)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],df.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.dgb.YtConditionalRendererBehavior),_.A("design:type",Object)],df.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],df.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],df.prototype,"icon_",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.A("design:type",Boolean)],df.prototype,"hasIcon_",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.A("design:type",Boolean)],df.prototype,"signInIcon_",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],df.prototype,"compact",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],df.prototype,"dismissButtonDisabled",void 0);
_.W([_.M({type:Boolean}),_.A("design:type",Object)],df.prototype,"shouldRenderReasonAsFormattedString",void 0);_.W([_.I6({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],df);
_.a(df,"yt-player-error-message-renderer",function(){if(ZSo===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;VZe===void 0&&(VZe=document.createElement("template"));var F=VZe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ZSo=I}I=ZSo;return I},{mode:2});var gs1;var It8;var aW=function(){return _.k.apply(this,arguments)||this};
_.E(aW,_.k);aW.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
aW.prototype.computeIcon_=function(I){return I?"yt-icons:"+I.iconType.toLowerCase():"error_outline"};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aW.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],aW.prototype,"icon_",void 0);_.W([_.I6({is:"yt-player-kav-renderer",disableElementRegistration:!0})],aW);
_.a(aW,"yt-player-kav-renderer",function(){if(It8===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;gs1===void 0&&(gs1=document.createElement("template"));var F=gs1;D.call(y,F.content.cloneNode(!0),I.content.firstChild);It8=I}I=It8;return I},{mode:2});var On5=_.UI(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.NK(_.d(function(I){var y=_.DF("div"),D=_.J(_.$M(0,void 0,"jxh75d")),F=D.next().value,R=D.next().value;D=_.J(_.$M(null,void 0,"F5Zm8"));var O=D.next().value,w=D.next().value;_.LR(function(){La_(y.value,R,w);y.value.scrollIntoView()});
D=JFH.bind(null,I.data,F);_.fT("resize",function(){var v=O();if(F()===1&&v!==null){var P;(P=window.grecaptcha)==null||P.reset(v)}});
return _.t("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.t("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.t("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var v,P;return(v=I.data().accessibility)==null?void 0:(P=v.accessibilityData)==null?void 0:P.label}),_.t(_.jr,{text:D,
className:_.XH("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.t("div",{el:y,class:"ytwPlayerCaptchaViewModelGridItem"})))},"sg"),"yt-player-captcha-view-model",{props:{data:_.rV}});var w65=!1;_.yWZ=_.d(function(I){var y=I.data;return _.t("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.t(_.U,{cond:function(){return y().icon},
then:function(D){return _.t("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.t(_.UE,{data:D,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.t(_.U,{cond:function(){return y().title},
then:function(D){return _.t("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.t(_.jr,{text:D}))}}),_.t(_.U,{cond:function(){return y().description},
then:function(D){return _.t("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.t(_.jr,{text:D}))}}),_.t(_.aP,{data:function(){return y().primaryButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"interstitialViewModelFlexItem"})}}),_.t(_.aP,{data:function(){return y().secondaryButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"interstitialViewModelFlexItem"})}}))},"tg");
_.yWZ.idomCompat=!0;var D_b=_.d(function(I){var y=I.data;_.Lx();return _.t("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.t("div",{class:"playerInterstitialRendererScrim"},_.t(_.aP,{data:function(){return y().content}},{interstitialViewModel:_.yWZ})))},"ug");
D_b.idomCompat=!0;_.NK(D_b,"yt-player-interstitial-renderer",{props:{data:_.om}});var cN=function(){var I=_.k.apply(this,arguments)||this;I.noBackground=!1;I.compact=!1;I.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return I};
_.E(cN,_.k);cN.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"}}}};
cN.prototype.onUpdatePlayerErrorMessageCommand_=function(I){if(_.u(I,WeR)){var y;if(I=(y=_.u(I,WeR))==null?void 0:y.newPlayerErrorMessageRenderer)this.data=I}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],cN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],cN.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],cN.prototype,"status",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cN.prototype,"noBackground",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cN.prototype,"compact",void 0);_.W([_.I6({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],cN);
var F4o=_.Xf()(cN,"yt-playability-error-supported-renderers",function(){if(snT===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Toe===void 0&&(Toe=document.createElement("template"));var F=Toe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);snT=I}I=snT;return I},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var RDa=CBJ("ytd-button-renderer");var vTH=void 0,tiJ=void 0;var UIH=new fT_;var Gr=new _.uk("ENTITY_STATE_TOKEN"),WN=new _.uk("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Oje=function(I){this.store=I;this.bGp=new _.moe},DSz=function(I,y,D){var F,R;
if(!(R=((F=y.playabilityStatus)==null?void 0:F.status)!=="OK")){I=I.store;var O;R=y.offlineState&&((O=y.videoDetails)==null?0:O.videoId)?_.l("enable_pl_r_c_cd")?eQB(I.getState().entities,y.videoDetails.videoId):!!lge(I.getState().entities,y.videoDetails.videoId):!1}if(R)return!0;R=Nse(y);if(R===1){if(_.l("ab_v_vid_sig")){var w,v=(w=y.videoDetails)==null?void 0:w.videoId;if(!v||!D||v!==D){var P;y=new _.g6("282054944_vid",{bP3:D,pEm:(P=y.videoDetails)==null?void 0:P.videoId});_.vu(y)}}return!0}zGH=
0;var K,r;P=(v=y.auxiliaryUi)==null?void 0:(K=v.messageRenderers)==null?void 0:(r=K.bkaEnforcementMessageViewModel)==null?void 0:r.displayType;if(R!==3&&(P==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||P==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;P={reason:_.lo(_.zC("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.l("ks_something_wrong_learn_more")?YzS("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.lo(_.zC("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:_.lo("282054944")};L4C(y,{playerErrorMessageRenderer:P});return!1},FJO=function(I,y){if(ZF5(y)){_.MP(1,!0);
var D=(D=ZF5(y))&&_.SeC()?D:void 0;D?(L4C(y,{enforcementMessageViewModel:D}),I.bGp.increment("IN_PLAYER"),_.MP(5)):(I.bGp.increment("SKIP_DISPLAY"),_.MP(2))}},L4C=function(I,y){I.playabilityStatus=Object.assign({},I.playabilityStatus,{status:"ERROR",
errorScreen:y});I.videoDetails=void 0};
Oje.prototype.handleResponse=function(I,y){if(I.playabilityStatus){var D,F,R,O=(y==null?void 0:(D=y.innerTubeRequest)==null?void 0:D.videoId)||(y==null?void 0:(F=y.innerTubeRequest)==null?void 0:(R=F.playerRequest)==null?void 0:R.videoId);DSz(this,I,O)&&FJO(this,I)}};
Oje[mw]=[Gr];var ICW=new _.uk("ADBLOCK_DETECTION_SERVICE_TOKEN");var UR=function(I){this.cpc=I};
UR.prototype.bindInnertubeChallengeFetcher=function(I){this.cpc.bicf(I)};
UR.prototype.registerChallengeFetchedCallback=function(I){this.cpc.bcr(I)};
UR.prototype.getLatestChallengeResponse=function(){return this.cpc.blc()};var JW8;JW8=_.UI(["https://static.doubleclick.net/instream/ad_status.js"]);_.wdQ=_.Et(JW8);var PiQ;_.CX=function(I,y,D){var F=this;this.network=I;this.options=y;this.networkStatusManager=D;this.iZ=null;if(y.useBotguardEverywhere){var R=new _.n0;this.iZ=R.promise;_.Ft.ytAtRC&&_.ip(_.w2,function(){var O,w;return _.S(function(v){if(v.nextAddress==1){if(!_.Ft.ytAtRC)return v.return();O=vQT(null);return v.yield(F.hM(O),2)}w=v.yieldResult;_.Ft.ytAtRC&&_.Ft.ytAtRC(JSON.stringify(w));_.Cj(v)})});
ETB().then(function(O){var w,v,P,K;return _.S(function(r){if(r.nextAddress==1)return O.bindInnertubeChallengeFetcher(function(N){return F.hM(vQT(N))}),r.yield(LwH(),2);
w=r.yieldResult;v=O.getLatestChallengeResponse();P=v.challenge;if(!P)throw Error("mi");K={challenge:P,z1:Pw(P),vm:w,bgChallenge:new Js};R.resolve(K);O.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("ni");N={challenge:N,z1:Pw(N),vm:w,bgChallenge:new Js};F.iZ=Promise.resolve(N)});
_.Cj(r)})})}else y.preload&&Ska(this,new Promise(function(O){_.y9(_.w2,function(){O(tYe(F))},0)}))};
PiQ=function(I){var y={preload:!0,useBotguardEverywhere:!0},D=!1;if(typeof y==="boolean")var F={preload:y};else typeof y==="undefined"?F={preload:!0}:(F=y,D=!!y.ju5);y=D?void 0:new _.x7;_.CX.instance=new _.CX(I,F,y);return _.CX.instance};
_.CX.prototype.ngU=function(){var I=this;return _.S(function(y){return y.nextAddress==1?y.yield(Promise.race([I.iZ,null]),2):y.return(!!y.yieldResult)})};
_.CX.prototype.dpt=function(I,y,D){var F=this,R,O,w;return _.S(function(v){F.iZ===null&&Ska(F,tYe(F));R=!1;O={};w=function(){var P,K,r,N,h;return _.S(function(x){switch(x.nextAddress){case 1:if(!F.options.aB5||!F.options.useBotguardEverywhere){x.jumpTo(2);break}return x.yield(qeS(),3);case 3:return P=x.yieldResult,x.yield((K=P)==null?void 0:K.checkForRefresh(),2);case 2:return x.yield(F.iZ,5);case 5:r=x.yieldResult;O.challenge=r.challenge;if(!r.vm){"c1a"in r.z1&&(O.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
x.jumpTo(6);break}N=Object.assign({},{c:r.challenge,e:I},y);_.nj(x,7);R=!0;return x.yield(r.vm.snapshot({jH:N}),9);case 9:(h=x.yieldResult)?O.webResponse=h:O.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.lZ(x,6);break;case 7:_.dj(x),O.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(I==="ENGAGEMENT_TYPE_PLAYBACK"){var q=r.z1,X={};if(q.c6a){var f=Number(_.Pi("DCLKSTAT",0));X.reportingStatus=String(Number(q.c)^(isNaN(f)?0:f))}q.c6b&&(X.broadSpectrumDetectionResult=String(Number(q.c)^Number(_.Pi("CATSTAT",
0))));O.adblockReporting=X}return x.return(O)}})};
return v.return(Promise.race([w(),K4e(D,function(){var P=Object.assign({},O);R&&(P.error="ATTESTATION_ERROR_VM_TIMEOUT");return P})]))})};
var vQT=function(I){var y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};I&&(y.interpreterHash=I);return y},tYe=function(I,y){y=y===void 0?0:y;
var D,F,R,O,w,v,P,K,r,N,h,x;return _.S(function(q){switch(q.nextAddress){case 1:D=vQT(piG().vNH);if(_.l("att_fet_ks"))return _.nj(q,7),q.yield(I.hM(D),9);_.nj(q,4);return q.yield(U_R(I,D),6);case 6:w=q.yieldResult;R=w.cfm;O=w.gAd;F=w;_.lZ(q,3);break;case 4:return _.dj(q),_.tq(Error("oi`"+y)),rW1(I,864E5),q.return({challenge:"",z1:{},vm:void 0,bgChallenge:void 0});case 9:F=q.yieldResult;if(!F)throw Error("pi");if(!F.challenge)throw Error("qi");R=F.challenge;O=Pw(R);if("c1a"in O&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("ri");
_.lZ(q,3);break;case 7:v=_.dj(q);_.tq(v);y++;if(y>=5)return _.tq(Error("oi`"+y)),rW1(I,864E5),q.return({challenge:"",z1:{},vm:void 0,bgChallenge:void 0});P=1E3*Math.pow(2,y-1)+Math.random()*1E3;return q.return(new Promise(function(X){_.y9(_.w2,function(){X(tYe(I,y))},P)}));
case 3:K=uUS(O);rW1(I,K*1E3);r=void 0;if(!("c1a"in O&&F.bgChallenge)){q.jumpTo(10);break}N=lze(F.bgChallenge);_.nj(q,11);return q.yield(MFu(piG(),N),13);case 13:_.lZ(q,12);break;case 11:return h=_.dj(q),_.tq(h),q.return({challenge:R,z1:O,vm:r,bgChallenge:N});case 12:return _.nj(q,14),r=new _.SU({challenge:N,rKt:{uR:"aGIf"}}),q.yield(r.oTt,16);case 16:_.lZ(q,10);break;case 14:x=_.dj(q),_.tq(x),r=void 0;case 10:return q.return({challenge:R,z1:O,vm:r,bgChallenge:N})}})},jBe=function(I,y){var D;
return _.S(function(F){if(F.nextAddress==1)return Kx(2),_.nj(F,2),F.yield(I.network.hM(y),4);if(F.nextAddress!=2)return(D=F.yieldResult)?D.challenge&&!D.bgChallenge?Kx(1):Kx(4):Kx(3),F.return(D);_.dj(F);Kx(3);return F.return(void 0)})};
_.CX.prototype.hM=function(I){var y=this,D;return _.S(function(F){D=y.networkStatusManager;if(!D||D.isNetworkAvailable())return F.return(jBe(y,I));_.ge("att_pna",void 0,"attestation_challenge_fetch");return F.return(new Promise(function(R){D.listenOnce("publicytnetworkstatus-online",function(){jBe(y,I).then(R)})}))})};
var oQy=function(I){if(!I)throw Error("pi");if(!I.challenge)throw Error("qi");var y=I.challenge,D=Pw(y);if("c1a"in D&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("ri");return Object.assign({},I,{cfm:y,gAd:D})},U_R=function(I,y){var D,F,R,O,w;
return _.S(function(v){switch(v.nextAddress){case 1:D=void 0,F=0,R={};case 2:if(!(F<5)){v.jumpTo(4);break}if(!(F>0)){v.jumpTo(5);break}R.wAv=1E3*Math.pow(2,F-1)+Math.random()*1E3;return v.yield(new Promise(function(P){return function(K){_.y9(_.w2,function(){K(void 0)},P.wAv)}}(R)),5);
case 5:return _.nj(v,7),v.yield(I.hM(y),9);case 9:return O=v.yieldResult,v.return(oQy(O));case 7:D=w=_.dj(v),w instanceof Error&&_.tq(w);case 8:F++;R={wAv:void 0};v.jumpTo(2);break;case 4:throw D;}})},Ska=function(I,y){I.iZ=y},Nja=function(I){var y,D,F;
return _.S(function(R){if(R.nextAddress==1)return R.yield(Promise.race([I.iZ,null]),2);y=R.yieldResult;var O=tYe(I);I.iZ=O;(D=y)==null||(F=D.vm)==null||F.dispose();_.Cj(R)})},rW1=function(I,y){var D=Date.now()+y,F=function(){var R;
return _.S(function(O){R=D-Date.now();return R<1E3?O.yield(Nja(I),0):(_.y9(_.w2,F,Math.min(R,6E4)),O.jumpTo(0))})};
F()},K4e=function(I,y){return new Promise(function(D){_.y9(_.w2,function(){D(y())},I)})};var hDQ=function(){};
hDQ.prototype.processContext=function(I){var y=_.CX.instance;if(!y)return _.xj();var D=nTq(I);return D?new hz(y.dpt(D,QvL(I),500).then(function(F){var R;(I==null?0:(R=I.innerTubeRequest)==null?0:R.context)||(I.innerTubeRequest.context={});R=I.innerTubeRequest.context;R.request||(R.request={});R.request.attestationResponseData=F})):_.xj()};var x_T=function(I){this.innertubeTransportService=I};
x_T.prototype.hM=function(I){_.ge("att_fsr",void 0,"attestation_challenge_fetch");return _.U3(this.innertubeTransportService,I,_.NP(_.Tmc)).then(function(y){_.ge("att_frr",void 0,"attestation_challenge_fetch");return y})};_.lto=function(I){this.innertubeTransportService=I};var uy8=new _.uk("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var qkG=function(){},GdC=function(I,y,D,F,R){var O=_.Pi("YPC_MB_URL");
_.r6q(O).then(function(){EQZ(O,I,y,D,F,R)})},EQZ=function(I,y,D,F,R,O){try{var w=_.x1.payments.business.integration,v=_.x1.payments.business.integration.Style.create().withMaterialDesignStyle(),P=w.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.l("enable_window_constrained_buy_flow_dialog")&&(P=P.usingPopupStyle("windowConstrained"));O&&(P=P.usingCloseCallback(O));var K=D?D:_.Pi("YPC_GB_LANGUAGE"),r=_.Pi("SESSION_INDEX");w.bootstrap.fromPaymentsUrl(I);w.bootstrap.asMashupMode(P).usingGaiaIndex(r).usingLocale(K).usingStyle(v).usingDefaultActivityStatusChangeHandler().inStandaloneContext(w.standaloneContextAuthId.forGaia()).purchaseManager(y,function(N){F&&F(N)}).load(void 0,R)}catch(N){throw R&&R(N),_.vu(N),N;
}};var Xdy=new _.uk("PURCHASE_MANAGER_TOKEN");var QBG=function(){var I=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return I.videos},
getContinuationsPresent:function(){return I.continuationsPresent},
setVideos:function(y){I.videos=y},
getRecommendedVideos:function(){return I.recommendedVideos},
setRecommendedVideos:function(y){I.recommendedVideos=y}}};
QBG.prototype.addVideos=function(I){I&&(this.videos=I.filter(function(y){return!!_.mIe(y)}).map(function(y){var D=_.mIe(y);
a:{var F;if(y.playlistVideoRenderer&&((F=y.playlistVideoRenderer)==null?0:F.voteSortTiebreaker))var R=y.playlistVideoRenderer.voteSortTiebreaker;else{if(_.u(y,jz)){var O;if(F=(R=_.u(y,jz))==null?void 0:(O=R.playlistItemData)==null?void 0:O.voteSortTiebreaker){R=F;break a}}R=""}}return{itemId:D,videoId:_.kAq(y),voteCount:_.dI_(y),voteSortTiebreaker:R}}),this.continuationsPresent=!!_.u(I[I.length-1],_.hs))};
var Yk1=function(I,y){return I.videos.findIndex(function(D){return D.itemId===y})},ftC=function(I,y){return I.recommendedVideos.findIndex(function(D){return D.itemId===y})},nQb=function(I){I={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:I}}}}};_.nR().resolve(_.MC).resolveCommand(I)};var pdb=function(){QBG.apply(this,arguments)};
_.E(pdb,QBG);
var g$M=function(I,y,D,F){if(!I.parentElem)throw Error("wi");var R=Yk1(I,y);R===-1&&(R=ftC(I,y),R=R!==-1?R+I.videos.length:-1);if(R===-1)throw Error("xi");var O=R>=I.videos.length?I.recommendedVideos[R-I.videos.length]:I.videos[R];O.voteCount=D;O.voteSortTiebreaker=Date.now().toString();R>=I.videos.length?I.recommendedVideos.splice(R-I.videos.length,1):I.videos.splice(R,1);var w=I.videos;for(var v=0,P=w.length-1;v<=P;){var K=Math.floor((v+P)/2);if(w[K].voteCount<O.voteCount)P=K-1;else if(w[K].voteCount>O.voteCount)v=
K+1;else{a:{var r=O.voteSortTiebreaker;var N=w[K].voteSortTiebreaker;if(r.length!==N.length)r=r.length>N.length;else{for(var h=0;h<r.length;h++){var x=r.charCodeAt(h),q=N.charCodeAt(h);if(x>q){r=!0;break a}if(x<q)break}r=!1}}r?P=K-1:v=K+1}}w=v;if(w===-1)throw Error("yi");I.videos.splice(w,0,O);R!==w&&m_e(I,R,w,y,D,F)},m_e=function(I,y,D,F,R,O){var w,v=(w=I.parentElem)==null?void 0:w.children,P=Math.min(y,D),K=Math.max(y,D);
if(v)for(w=P;w<=K;w++)v[w].style.viewTransitionName="item-"+String(w);document.startViewTransition(function(){if(I.parentElem){var r=I.parentElem.children;if(!(!r||y<0||y>=r.length||D<0||D>=r.length)){var N=r[y];if(N){N.remove();I.showRefreshPill=D>=I.videos.length-1&&I.continuationsPresent;if(!I.showRefreshPill){r=r[D]||null;var h;(h=I.parentElem)==null||h.insertBefore(N,r)}_.lj(I.parentElem,"yt-update-video-data-voting-animation",{toIdx:D,itemId:F,newVoteCount:R,voteStatus:O,hideItem:I.showRefreshPill})}}}}).finished.then(function(){if(v)for(var r=
P;r<=K;r++)v[r].style.viewTransitionName="";
if(I.showRefreshPill)nQb(_.zC("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var N;if(N=r=(N=I.parentElem)==null?void 0:N.children[D])N=r.getBoundingClientRect(),r=N.bottom,N=!(N.top>=0&&r<=I.clientHeight);N&&(N=_.kI(y>D?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(y-D)),nQb(N))}})};var kdg=function(I,y){var D=this;I?this.innertubeTransportServicePromise=Promise.resolve(I):y&&(this.innertubeTransportServicePromise=y(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new EF(3E3,function(F){return MYZ(D,F)},0);
this.validateMiniAppVideoIdRateLimiter=new EF(3E3,function(F){return zDC(D,F)},1)},PaR=function(I,y){I.JSC$17655_miniAppId=y;
I.reportMiniAppValueRateLimiter=new EF(3E3,function(D){return MYZ(I,D)},0);
I.validateMiniAppVideoIdRateLimiter=new EF(3E3,function(D){return zDC(I,D)},1)},Ugy=function(I,y){var D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.reportMiniAppValueRateLimiter.call(y),2);D=F.yieldResult;return F.return([D,y])})},MYZ=function(I,y){var D,F,R,O,w,v,P;
return _.S(function(K){switch(K.nextAddress){case 1:return K.yield(I.innertubeTransportServicePromise,2);case 2:return D=K.yieldResult,F=_.NP(yi_),R=Date.now(),O={externalPostId:I.JSC$17655_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(R/1E3),nanos:Math.round(R%1E3*1E6)},intValue:""+y}},_.nj(K,3),K.yield(_.U3(D,O,F),5);case 5:w=K.yieldResult;_.lZ(K,4);break;case 3:throw v=_.dj(K),v;case 4:if(w){if("error"in w&&w.error)throw w.error;if(w.errorMetadata)throw Error("zi`"+
w.errorMetadata.status);if(P=w.userStatResult)return K.return(P);throw Error("Ai");}throw Error("Bi");}})},jnG=function(I){var y,D,F,R,O;
_.S(function(w){switch(w.nextAddress){case 1:return w.yield(I.innertubeTransportServicePromise,2);case 2:return y=w.yieldResult,D=_.NP(yi_),F={externalPostId:I.JSC$17655_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.nj(w,3),w.yield(_.U3(y,F,D),5);case 5:R=w.yieldResult;_.lZ(w,4);break;case 3:throw O=_.dj(w),O;case 4:if(R==null)throw Error("Bi");if("error"in R&&R.error)throw R.error;if(R.errorMetadata)throw Error("zi`"+R.errorMetadata.status);_.Cj(w)}})};
kdg.prototype.flush=function(){var I=this;return _.S(function(y){return y.nextAddress==1?y.yield(I.reportMiniAppValueRateLimiter.flush(),2):y.yield(I.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var rVb=function(I,y){return _.S(function(D){return D.nextAddress==1?D.yield(I.validateMiniAppVideoIdRateLimiter.call(y),2):D.return(D.yieldResult)})},zDC=function(I,y){var D,F,R,O,w,v;
return _.S(function(P){switch(P.nextAddress){case 1:return P.yield(I.innertubeTransportServicePromise,2);case 2:return D=P.yieldResult,F=_.NP(HpM),R={videoId:y},_.nj(P,3),P.yield(_.U3(D,R,F),5);case 5:O=P.yieldResult;_.lZ(P,4);break;case 3:throw w=_.dj(P),w;case 4:if(O){if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("zi`"+O.errorMetadata.status);if(v=O.playabilityStatus)return P.return(v.status);throw Error("Ci");}throw Error("Bi");}})};
kdg[mw]=[_.fR(_.iX),_.fR(fxW)];var d_Z=function(){this.clientData=new Map};
d_Z.prototype.getData=function(I){return this.clientData.get(I)};var ata=function(I){this.store=I};
ata.prototype.handleResponse=function(I){(I=_.u(I.frameworkUpdates,Sa))&&_.kK(I,this.store)};
ata[mw]=[_.LM];var cWa=new _.uk("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var W4g,Cio,Bjg;_.BN=new _.uk("FLOW_STATE_MANAGER_TOKEN");W4g=function(){this.flowStates=new Map};
Cio=function(I,y){I=_.J(I.flowStates.values());for(var D=I.next();!D.done;D=I.next())if(D=D.value,D.flowRenderer.targetId===y)return D};
Bjg=function(I,y){var D,F=((D=I.flowRenderer.steps)!=null?D:[]).filter(function(R){return!y.includes(_.u(R,_.s2).stepId)});
I.flowRenderer.steps=F};var ijT=function(I){this.JSC$17679_flowStateManager=I};
_.E(ijT,rO);ijT.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v;return _.S(function(P){D=_.u(I,DH_);R=(F=D)==null?void 0:F.stepIds;w=(O=D)==null?void 0:O.targetId;if(!R||!w)return P.return();v=Cio(y.JSC$17679_flowStateManager,w);if(!v)return P.return();Bjg(v,R);_.Cj(P)})};
var iB=function(){ijT.apply(this,arguments)};
_.E(iB,ijT);iB[mw]=[_.BN];var AWY=function(I,y){this.JSC$17685_reduxStore=I;this.JSC$17685_flowStateManager=y};
_.E(AWY,rO);
AWY.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q;return _.S(function(X){D=_.u(I,_.Fga);F=D.stepId;R=D.targetId;O=Cio(y.JSC$17685_flowStateManager,R);v=(w=O)==null?void 0:w.flowRenderer;P=v.flowStateEntityKey;K=_.oz(y.JSC$17685_reduxStore.getState(),P);if(!K)return X.return();r=K.currentStepId;x=(h=(N=K)==null?void 0:N.stepIdStack)!=null?h:[];q=r===x[x.length-1]?F:r;y.JSC$17685_reduxStore.dispatch(_.V0("flowStateEntity",P,{currentStepId:F,stepIdStack:[q]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Cj(X)})};
var Ao=function(){AWY.apply(this,arguments)};
_.E(Ao,AWY);Ao[mw]=[_.LM,_.BN];var $_Z=function(I,y,D){this.JSC$17692_reduxStore=I;this.JSC$17692_flowStateManager=y;this.JSC$17692_commandHandler=D};
_.E($_Z,rO);
$_Z.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X;return _.S(function(f){F=_.u(I,_.RRc);R=F.targetId;O=Cio(D.JSC$17692_flowStateManager,R);v=(w=O)==null?void 0:w.flowRenderer;P=v.flowStateEntityKey;K=_.oz(D.JSC$17692_reduxStore.getState(),P);h=[].concat(_.Td((N=(r=K)==null?void 0:r.stepIdStack)!=null?N:[]));x=h.pop();((q=K)==null?void 0:q.currentStepId)===x&&(x=h[h.length-1]);if(!x)return(X=F.onFirstStepCommand)&&D.JSC$17692_commandHandler.resolveCommand(X,y),f.return();
D.JSC$17692_reduxStore.dispatch(_.V0("flowStateEntity",P,{currentStepId:x,stepIdStack:h}));_.Cj(f)})};
var $H=function(){$_Z.apply(this,arguments)};
_.E($H,$_Z);$H[mw]=[_.LM,_.BN,_.MC];var bjG=function(I,y){this.innertubeTransportService=I;this.JSC$17697_commandHandler=y};
_.E(bjG,rO);bjG.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1){F=_.u(I,Ohc);if(!F)return P.return();_.nj(P,2);return P.yield(_.wP(D.innertubeTransportService,I),4)}if(P.nextAddress!=2){R=P.yieldResult;if(!R)return P.return();(O=R.updateFlowCommand)&&D.JSC$17697_commandHandler.resolveCommand(O,y);return _.lZ(P,0)}_.dj(P);(v=(w=F)==null?void 0:w.onFailureCommand)&&D.JSC$17697_commandHandler.resolveCommand(v,y);_.Cj(P)})};
var bB=function(){bjG.apply(this,arguments)};
_.E(bB,bjG);bB[mw]=[_.iX,_.MC];var Hje=function(I,y){this.JSC$17703_flowStateManager=I;this.JSC$17703_commandHandler=y};
_.E(Hje,rO);
Hje.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w;return _.S(function(v){F=_.u(I,_.Jwz);R=F.targetId;O=Cio(D.JSC$17703_flowStateManager,R);if(!O)return v.return(Promise.resolve());var P=O,K=(w=F.steps)!=null?w:[],r,N=(r=P.flowRenderer.steps)!=null?r:[];K=[].concat(_.Td(N),_.Td(K));P.flowRenderer.steps=K;F.flowContinuationCommand&&(O.flowRenderer.flowContinuationCommand=F.flowContinuationCommand);F.entityUpdateCommand&&D.JSC$17703_commandHandler.resolveCommand(F.entityUpdateCommand,y);
return v.return(Promise.resolve())})};
var HN=function(){Hje.apply(this,arguments)};
_.E(HN,Hje);HN[mw]=[_.BN,_.MC];var eDo={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]],android_messenger:[[0,1,192]],"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 TjT=new _.uk("ICON_SET_TOKEN"),sBR=new _.uk("ICON_URL_PROVIDER_TOKEN"),VYR=new _.uk("PREFETCH_ICONS_TOKEN"),ZjY=new _.uk("ICON_MAP_FN_TOKEN");var e8={},gQb=(e8.ACCESS_TIME="clock",e8.ACCOUNT_BOX=_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",e8.ACCOUNT_BOX_CAIRO="person_account_cairo",e8.ACCOUNT_CIRCLE="person_circle",e8.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",e8.ACCOUNT_LINKED="account_link_success",e8.ACCOUNT_UNLINKED="account_link",e8.ADD_FRIEND="people",e8.ADD_MODERATOR="shield_add",e8.ADD_TO_LIBRARY="bookmark",e8.ADD_TO_PLAYLIST="add",e8.ADD_TO_QUEUE_TAIL="list_queue",e8.ADD_TO_REMOTE_QUEUE="list_music",
e8.ADD_TO_WATCH_LATER="clock",e8.ADD_VIDEO_LINK="film_strip_add",e8.ALERT_WARN_RED="alert_triangle",e8.ARROW_BACK="arrow_left",e8.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",e8.ARROW_DROP_DOWN="chevron_down",e8.ARROW_DROP_UP="chevron_up",e8.ARROW_FORWARD="arrow_right",e8.ARTIST="person_music",e8.AUDIOTRACK="audio",e8.AUTO_AWESOME="sparkle",e8.AVATAR_ANONYMOUS="person_circle",e8.AVATAR_LOGGED_OUT="person_circle",e8.BACK="arrow_left",e8.BAR_CHART="bar_graph",e8.BLOCK="slash_circle_left",
e8.BLOCK_USER="slash_circle_left",e8.BOOKMARK_BORDER="bookmark",e8.BREAKING_NEWS_ALT_1="article_alert",e8.BROADCAST_CAIRO="podcast_cairo",e8.BUG_REPORT="bug",e8.CAMERA_ALT="camera",e8.CAMPAIGN="megaphone",e8.CANCEL="x_circle",e8.CAPTIONS="closed_caption",e8.CAST_OUTLINE="chromecast",e8.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",e8.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",e8.CHAT="message_bubble_left",e8.CHAT_BUBBLE="message_bubble_empty",e8.CHAT_SPARK="spark_message_bubble_left",e8.CHECK_BOX_OUTLINE_BLANK=
"box_empty",e8.CHECK_CIRCLE_OUTLINE="check_circle",e8.CHECK_CIRCLE_THICK="check_circle",e8.CLARIFY="article_clarify",e8.CLOSED_CAPTION_SELECTED="closed_caption",e8.CLOSE="x_mark",e8.CLOUD_UPLOAD="cloud_arrow_up",e8.COLLAPSE="chevron_up",e8.COLLAPSE_CAIRO="chevron_up_cairo",e8.COLLECTION="layers",e8.COLOR_LENS="palette",e8.COMMENT="message_bubble_right",e8.CONSENT_SHIELD="person_shield",e8.CONTENT_CUT="scissors",e8.CONTENT_CUT_CAIRO="scissors_cairo",e8.COURSE=_.l("web_enable_course_icon_update")?"creator_academy":
"lightbulb",e8.COURSE_CAIRO=_.l("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",e8.CREATION_LIVE="radar_live",e8.CREATION_POST="box_pencil",e8.CREATION_UPLOAD="my_videos",e8.CREATION_UPLOAD_RED="upload",e8.CREATOR_METADATA_MONETIZATION="dollar_sign",e8.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",e8.CREATOR_STUDIO="youtube_studio",e8.DASHBOARD="grid_asymmetrical",e8.DELETE="trash_can",e8.DELETE_SWEEP="trash_can",e8.DESKTOP="laptop",e8.DISLIKE="thumb_down",e8.DISLIKE_SELECTED=
"thumb_down",e8.DISMISSAL="x_mark",e8.DISMISS_QUEUE="list_remove",e8.DONE_ALL="check_double",e8.DOWN_ARROW="arrow_down",e8.DO_NOT_DISTURB="slash_circle_left",e8.DRAFT="paper_corner_folded",e8.DRAG_HANDLE="bars_2",e8.EDIT="pencil",e8.EMOJI="face_very_happy",e8.EMOJI_FLAGS="flag",e8.EMOJI_OBJECTS="lightbulb",e8.EMOJI_PEOPLE="face_very_happy",e8.EMOJI_RECENT="clock",e8.EMPTY_HEART="heart",e8.EMPTY_LIKE="thumb_up",e8.ERROR_BLACK="alert_circle",e8.ERROR_OUTLINE="alert_circle",e8.EXIT_APP="arrow_in",e8.EXIT_TO_APP=
"arrow_in",e8.EXPAND="chevron_down",e8.EXPAND_ALL="chevron_expand",e8.EXPAND_CAIRO="chevron_down_cairo",e8.EXPAND_LESS="chevron_up",e8.EXPAND_MORE="chevron_down",e8.EXPLORE="compass",e8.EXPLORE_DESTINATION="compass",e8.EXTERNAL_LINK="open_new",e8.FAB_UPLOAD="upload",e8.FACE_HAPPY_OUTLINE="face_happy",e8.FACT_CHECK="article_check",e8.FASHION_LOGO="fashion",e8.FASHION_LOGO_CAIRO="fashion_cairo",e8.FAVORITE="heart",e8.FEEDBACK="message_bubble_alert",e8.FEEDBACK_CAIRO="message_bubble_alert_cairo",e8.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",e8.FILL_ARROW_SOLID_UP_16="arrow_solid_up",e8.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",e8.FILTER="menu_filter",e8.FIRST_PAGE="chevron_first",e8.FLAG="flag",e8.FULL_HEART="heart",e8.GAME_CONSOLE_DPAD="game_console_dpad",e8.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",e8.GAMING_LOGO="gaming",e8.GAMING_LOGO_CAIRO="gaming_cairo",e8.GO_TO_PAGE="arrow_right",e8.GROUPS="people_group",e8.HAPPY="face_happy",e8.HEALTH_AND_SAFETY="shield_plus",e8.HELP="question_circle",e8.HELP_CAIRO=
"question_circle_cairo",e8.HELP_OUTLINE="question_circle",e8.HIDE="slash_circle_left",e8.IMAGE="image",e8.INFINITY_ICON="infinity",e8.INFO="info_circle",e8.INFO_OUTLINE="info_circle",e8.INSERT_CHART="bar_graph_box_vertical",e8.INSERT_CHART_OUTLINED="bar_graph_box_vertical",e8.INSERT_PHOTO="image",e8.KEEP="pin",e8.KEEP_OFF="pin_off",e8.KEYBOARD="keyboard",e8.KEYBOARD_ARROW_DOWN="chevron_down",e8.KEYBOARD_ARROW_UP="chevron_up",e8.KIDS_BLOCK="slash_circle_left",e8.LANGUAGE="globe",e8.LAST_PAGE="chevron_last",
e8.LAUNCH="open_new",e8.LEARNING="lightbulb",e8.LEARNING_CAIRO="lightbulb_cairo",e8.LIBRARY_ADD=C6W("library_add"),e8.LIBRARY_OUTLINE="library",e8.LIBRARY_REMOVE=C6W(),e8.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",e8.LIKES_PLAYLIST="thumb_up",e8.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",e8.LIKE="thumb_up",e8.LIKE_SELECTED="thumb_up",e8.LIVE="radar_live",e8.LIVE_CAIRO="radar_live_cairo",e8.LIVE_UNLISTED="link",e8.LOCATION_ON="location_point",e8.LOCATION_PIN="location_point",e8.LOOP="arrow_repeat",e8.LOOP_ACTIVE=
"arrow_repeat",e8.LOOP_ONE="arrow_repeat_1",e8.LOOP_ONE_ACTIVE="arrow_repeat_1",e8.MEH="face_meh",e8.MEMBERS_ONLY_MODE_OFF="message_bubble_left",e8.MESSAGE="message_bubble_left",e8.MICROPHONE_ON="mic",e8.MIX="youtube_mix",e8.MONETIZATION_ON="dollar_sign_circle",e8.MONEY_FILL="dollar_sign_container",e8.MONEY_FILL_JPY="yen_sign_container",e8.MONEY_HEART="dollar_sign_heart",e8.MORE_HORIZ="overflow_horizontal",e8.MORE_VERT="overflow_vertical",e8.MUSIC="audio",e8.MUSIC_CAIRO="audio_cairo",e8.MUSIC_NOTE_SYMBOL=
"music",e8.MUSIC_SHUFFLE="arrow_shuffle",e8.MY_CHANNEL="person_circle",e8.MY_LOCATION="location_point",e8.NEWS_STORY="news",e8.NEXT="chevron_right",e8.NOTIFICATIONS="bell",e8.NOTIFICATIONS_ACTIVE="bell_on",e8.NOTIFICATIONS_CAIRO="bell_cairo",e8.NOTIFICATIONS_DONE_CHECKMARK="check",e8.NOTIFICATIONS_INBOX="bell",e8.NOTIFICATIONS_NONE="bell",e8.NOTIFICATIONS_OFF="bell_off",e8.NOT_INTERESTED="slash_circle_left",e8.OFFICIAL_ARTIST_BADGE="audio",e8.OFFLINE_CLOUD="cloud_off",e8.OFFLINE_DOWNLOAD="download",
e8.OFFLINE_DOWNLOAD_CAIRO="download_cairo",e8.OFFLINE_PAUSE="pause",e8.OPEN_IN_NEW="open_new",e8.OUTLINE_ADJUST="adjust",e8.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",e8.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",e8.OUTLINE_BAG="bag",e8.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",e8.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",e8.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",e8.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",e8.PAID="dollar_sign",e8.PAUSE_OUTLINED="pause",e8.PAYMENT=
"credit_card",e8.PERSON_RADAR_FILLED="person_radar",e8.PHONE_DOWNLOAD="mobile_download",e8.PLAYABLES_LOGO="tic_tac_toe",e8.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",e8.PLAYLISTS="list_play_arrow",e8.PLAYLISTS_CAIRO="list_play_arrow_cairo",e8.PLAYLIST_ADD=C6W("list_add"),e8.PLAYLIST_ADD_CHECK=C6W("list_check"),e8.PLAYLIST_PLAY="list_play_arrow",e8.PLAY_ALL="play_arrow",e8.PLAY_CIRCLE="play_arrow_circle",e8.PLAY_OUTLINED="play_arrow_circle",e8.PRIVACY_INFO="shield",e8.PRIVACY_PRIVATE="lock",e8.PRIVACY_PUBLIC=
"earth",e8.PRIVACY_UNLISTED="link",e8.PROMOTE="megaphone",e8.PURCHASES="price_tag",e8.PURCHASE_SUPER_CHAT="super_chat",e8.PURCHASE_SUPER_STICKER="super_sticker",e8.QUESTION_ANSWER="message_bubble_question",e8.QUEUE_PLAY_LAST="list_queue_last",e8.QUEUE_PLAY_NEXT="list_play_arrow",e8.REMIX_FILLED="youtube_shorts_remix",e8.REMOVE="bar_circle",e8.REMOVE_CIRCLE="bar_circle",e8.REMOVE_CIRCLE_OUTLINE="bar_circle",e8.REMOVE_DONE="check_double_off",e8.REMOVE_FROM_HISTORY="bar_circle",e8.REMOVE_FROM_PLAYLIST=
"bar_circle",e8.REMOVE_MODERATOR="shield_off",e8.REPLAY="arrow_circle",e8.REPLAY_10="skip_back_10",e8.REPORT_PROBLEM="alert_triangle",e8.SAD="face_sad",e8.SAVE_PLAYLIST="bookmark",e8.SCHEDULE="clock",e8.SCHOOL="creator_academy",e8.SCREEN_FULLSCREEN="screen_full",e8.SEARCH_HISTORY="arrow_time",e8.SELL="price_tag",e8.SETTINGS="gear",e8.SETTINGS_CAIRO="gear_cairo",e8.SETTINGS_LIGHT="gear",e8.SETTINGS_MATERIAL="gear",e8.SHARE_ARROW="share",e8.SHIELD_WITH_AVATAR="person_shield",e8.SHOPPING_BAG="bag",e8.SHOPPING_BAG_CAIRO=
"bag_cairo",e8.SHOPPING_CART="cart",e8.SHORTS_COMMENT="youtube_shorts_message_bubble_right",e8.SHORTS_DISLIKE="youtube_shorts_thumb_down",e8.SHORTS_LIKE="youtube_shorts_thumb_up",e8.SHORTS_SHARE="youtube_shorts_share",e8.SHUFFLE="arrow_shuffle",e8.SLOW_MODE_OFF="message_bubble_left",e8.SOCIAL="people",e8.SORT="menu_sort",e8.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",e8.SPEED_1X="1x",e8.SPEED_1_POINT_2X="1_point_2x",e8.SPEED_1_POINT_5X="1_point_5x",e8.SPEED_1_POINT_8X="1_point_8x",e8.SPEED_2X="2x",
e8.SPEED_POINT_2X="point_2x",e8.SPEED_POINT_8X="point_8x",e8.SPONSORSHIP_STAR="star_circle",e8.STAFF_PICK="spotlight",e8.START_DVR="add",e8.STAR_BORDER="star",e8.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",e8.STICKER_EMOTICON="face_happy",e8.STOP_DVR="stop",e8.SUBSCRIBE="youtube_logo_icon",e8.SUBSCRIBE_PLUS="add_cairo",e8.SUBSCRIPTION_MANAGER="gear",e8.SUPERVISOR_ACCOUNT="people",e8.SUPER_CHAT_FOR_GOOD="hands_heart",e8.SWAP_HORIZ="arrow_swap_horizontal",e8.SWITCH_ACCOUNTS="person_account",e8.TAB_ACCOUNT=
"person",e8.TAB_ACTIVITY="bell",e8.TAB_BOOKMARK="bookmark",e8.TAB_EXPLORE="compass",e8.TAB_HOME="home",e8.TAB_HOME_CAIRO="home_cairo",e8.TAB_INBOX="mail",e8.TAB_LIKED="thumb_up",e8.TAB_MUSIC_PREMIUM="youtube_music",e8.TAB_SHORTS="youtube_shorts",e8.TAB_SHORTS_CAIRO="youtube_shorts_cairo",e8.TAB_SUBSCRIPTIONS="subscriptions",e8.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",e8.TAB_TRENDING="fire",e8.TIMER="stopwatch",e8.TRAILER="youtube_originals",e8.TRENDING="fire",e8.TRENDING_CAIRO="fire_cairo",e8.TRENDING_DOWN=
"rating_down",e8.TRENDING_UP="rating_up",e8.TROPHY="trophy",e8.TROPHY_CELEBRATIONS="fireworks",e8.TUNE="adjust",e8.UNBLOCK_USER="bar_circle",e8.UNLIMITED="youtube_logo_icon",e8.UNPLUGGED_LIVE_GUIDE="radar_live",e8.UNPLUGGED_SPORTS="eye_off",e8.UPLOADS="library",e8.UP_ARROW="arrow_up",e8.VERTICAL_ALIGN_BOTTOM="download",e8.VERY_HAPPY="face_very_happy",e8.VERY_SAD="face_very_sad",e8.VIDEOGAME_ASSET="gaming",e8.VIDEOS="play_arrow_circle",e8.VIDEO_CALL="video_camera_add",e8.VIDEO_LIBRARY_WHITE="library",
e8.VIDEO_YOUTUBE="youtube_logo_icon",e8.VIEW_LIST="list_view",e8.VIEW_LIST_CAIRO="list_view_cairo",e8.VISIBILITY="eye",e8.VISIBILITY_OFF="eye_off",e8.VOLUME_MUTE="volume_off",e8.VOLUME_UP="volume_on",e8.WALLPAPER="image",e8.WARNING="alert_triangle",e8.WATCH_HISTORY="arrow_time",e8.WATCH_HISTORY_CAIRO="arrow_time_cairo",e8.WATCH_LATER="clock",e8.WATCH_LATER_CAIRO="clock_cairo",e8.WATCH_RELATED_MIX="youtube_mix",e8.WHAT_TO_WATCH="home",e8.YOUTUBE_MUSIC_MONOCHROME="youtube_music",e8.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",e8.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",e8.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",e8.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",e8.YT_OUTLINE_MUSIC_24="music",e8);var Tx={},IOb=(Tx.ACCESS_TIME="clock",Tx.ACCOUNT_BOX="person_square",Tx.ACCOUNT_BOX_CAIRO="person_square",Tx.ACCOUNT_CIRCLE="person_circle",Tx.ACCOUNT_CIRCLE_CAIRO="person_circle",Tx.ACCOUNT_LINKED="account_link",Tx.ACCOUNT_UNLINKED="account_link",Tx.ADD_CIRCLE="add_circle",Tx.ADD_CIRCLE_OUTLINE="add_circle",Tx.ADD_FRIEND="person_child",Tx.ADD_MODERATOR="shield_add",Tx.ADD_TO_LIBRARY="bookmark",Tx.ADD_TO_PLAYLIST="add",Tx.ADD_TO_QUEUE_TAIL="queue",Tx.ADD_TO_REMOTE_QUEUE="playlist_audio",Tx.ADD_TO_WATCH_LATER=
"clock",Tx.ADD_VIDEO_LINK="film_strip_add",Tx.ADMIN_PANEL_SETTINGS="person_gear",Tx.ALERT_WARN_RED="alert_triangle",Tx.ALIGN_LEFT="text_align_left",Tx.ARROWS_ALERT="arrow_split_alert",Tx.ARROW_BACK="arrow_left",Tx.ARROW_CIRCLE="arrow_counterclockwise",Tx.ARROW_CIRCLE_PLAY="replay",Tx.ARROW_CIRCLE_RIGHT="arrow_clockwise",Tx.ARROW_DIAGONAL="arrow_up_left",Tx.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Tx.ARROW_DROP_DOWN="triangle_down",Tx.ARROW_DROP_UP="triangle_up",Tx.ARROW_FORWARD="arrow_right",Tx.ARROW_PAUSE=
"pause_history",Tx.ARROW_UNDO="undo",Tx.ARTICLE="text_page",Tx.ARTICLE_ALERT="text_page_alert",Tx.ARTICLE_CHECK="text_page_check",Tx.ARTICLE_CLARIFY="text_page_info",Tx.ARTIST="person_audio",Tx.AUDIOTRACK="audio",Tx.AUDIO_BADGE="audio_badge",Tx.AUDIO_SURROUND="surround_sound",Tx.AUTO_AWESOME="sparkles",Tx.AVATAR_ANONYMOUS="person_circle",Tx.AVATAR_LOGGED_OUT="person_circle",Tx.BACK="arrow_left",Tx.BAR_CHART="chart_bar",Tx.BAR_CIRCLE="minus_circle",Tx.BAR_HORIZONTAL="minus",Tx.BLOCK="circle_slash",
Tx.BLOCK_USER="circle_slash",Tx.BOOKMARK_BORDER="bookmark",Tx.BOX_OPEN_CHECK="quiz",Tx.BOX_PENCIL="square_pencil",Tx.BOX_STACK_3="square3_stack",Tx.BREAKING_NEWS_ALT_1="text_page_alert",Tx.BROADCAST="podcast",Tx.BROADCAST_CAIRO="podcast",Tx.BUG_REPORT="bug",Tx.CAMERA_ALT="camera",Tx.CAMPAIGN="megaphone",Tx.CANCEL="x_circle",Tx.CAPTIONS="closed_captions",Tx.CAST_ICON="chromecast",Tx.CAST_OUTLINE="chromecast",Tx.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Tx.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
Tx.CHAT="text_bubble",Tx.CHAT_BUBBLE="bubble",Tx.CHECK_BOX="check_square",Tx.CHECK_BOX_OUTLINE_BLANK="square",Tx.CHECK_CIRCLE_FILLED="check_circle",Tx.CHECK_CIRCLE_OUTLINE="check_circle",Tx.CHECK_CIRCLE_THICK="check_circle",Tx.CHECK_DOUBLE="check_done",Tx.CHECK_DOUBLE_OFF="check_done_slash",Tx.CHEVRON_LEFT="chevron_left",Tx.CHEVRON_RIGHT="chevron_right",Tx.CHEVRON_RIGHT_CAIRO="chevron_right",Tx.CIRCLES_OVERLAP="account_link",Tx.CLAPPERBOARD_CAIRO="clapperboard",Tx.CLARIFY="text_page_info",Tx.CLOCK_ARROWS=
"clock_split",Tx.CLOCK_ARROWS_ALERT="clock_split_alert",Tx.CLOSED_CAPTION="closed_captions",Tx.CLOSED_CAPTION_SELECTED="closed_captions",Tx.CLOSE="x",Tx.CLOUD_UPLOAD="cloud_arrow_up",Tx.COLLAPSE="chevron_up",Tx.COLLAPSE_CAIRO="chevron_up",Tx.COLLECTION="square3d_stack",Tx.COLOR_LENS="paint_palette",Tx.COMMENT="text_bubble",Tx.CONSENT_SHIELD="person_shield",Tx.CONTENT_CUT="scissors",Tx.CONTENT_CUT_CAIRO="scissors",Tx.COURSE="graduation_cap",Tx.COURSE_CAIRO="graduation_cap",Tx.CREATION_LIVE="live",
Tx.CREATION_POST="square_pencil",Tx.CREATION_UPLOAD="video",Tx.CREATION_UPLOAD_RED="upload",Tx.CREATOR_ACADEMY="graduation_cap",Tx.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",Tx.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",Tx.CREATOR_STUDIO="youtube_studio",Tx.DARK_THEME="theme",Tx.DELETE="trash_can",Tx.DELETE_SWEEP="trash_can",Tx.DESKTOP="laptop",Tx.DISLIKE="thumb_down",Tx.DISLIKE_SELECTED="thumb_down",Tx.DISMISSAL="x",Tx.DISMISS_QUEUE="playlist_x",Tx.DOGFOOD="pawprint",Tx.DOLLAR_SIGN=
"dollar_sign_circle",Tx.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Tx.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Tx.DOWN_ARROW="arrow_down",Tx.DO_NOT_DISTURB="circle_slash",Tx.DRAFT="document",Tx.DRAG_HANDLE="equal",Tx.EARTH="globe",Tx.EDIT="pencil",Tx.EMOJI="face_very_happy",Tx.EMOJI_FLAGS="flag",Tx.EMOJI_OBJECTS="lightbulb",Tx.EMOJI_PEOPLE="face_very_happy",Tx.EMOJI_RECENT="clock",Tx.EMPTY_HEART="heart",Tx.EMPTY_LIKE="thumb_up",Tx.ERROR_BLACK="alert_circle",Tx.ERROR_OUTLINE="alert_circle",Tx.ERROR_WHITE=
"alert_circle",Tx.EXIT_APP="arrow_in",Tx.EXIT_TO_APP="arrow_in",Tx.EXPAND="chevron_down",Tx.EXPAND_ALL="chevron_expand",Tx.EXPAND_CAIRO="chevron_down",Tx.EXPAND_LESS="chevron_up",Tx.EXPAND_MORE="chevron_down",Tx.EXPLORE="compass",Tx.EXPLORE_DESTINATION="compass",Tx.EXTERNAL_LINK="arrow_up_right",Tx.EYE_OFF="eye_slash",Tx.FAB_UPLOAD="upload",Tx.FACE_HAPPY_OUTLINE="face_happy",Tx.FACE_MEH="face_neutral",Tx.FACT_CHECK="text_page_check",Tx.FASHION_LOGO="fashion",Tx.FASHION_LOGO_CAIRO="fashion",Tx.FAVORITE=
"thumb_up",Tx.FEEDBACK="alert_bubble",Tx.FEEDBACK_CAIRO="alert_bubble",Tx.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Tx.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Tx.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Tx.FIRST_PAGE="chevron_left_end",Tx.FLAG_CAIRO="flag",Tx.FLASH_OFF="flash_slash",Tx.FLASH_ON="flash",Tx.FULL_HEART="heart",Tx.GAMING_LOGO="gaming",Tx.GAMING_LOGO_CAIRO="gaming",Tx.GO_TO_PAGE="arrow_right",Tx.GRID_ASYMMETRICAL="dashboard",Tx.GROUPS="person3",Tx.HAND_SWIPE_LEFT="gesture_swipe_left",
Tx.HAND_SWIPE_RIGHT="gesture_swipe_right",Tx.HAPPY="face_happy",Tx.HEALTH_AND_SAFETY="shield_health",Tx.HEART_BOX="heart_cube",Tx.HELP="help_circle",Tx.HELP_CAIRO="help_circle",Tx.HELP_OUTLINE="help_circle",Tx.HIDE="circle_slash",Tx.INCOGNITO_CAIRO="incognito",Tx.INFINITY_ICON="infinity",Tx.INFO="info_circle",Tx.INFO_OUTLINE="info_circle",Tx.INSERT_CHART="chart_bar_square",Tx.INSERT_CHART_OUTLINED="chart_bar_square",Tx.INSERT_PHOTO="image",Tx.KEEP="pin",Tx.KEEP_OFF="pin_slash",Tx.KEYBOARD="keyboard",
Tx.KEYBOARD_ARROW_DOWN="chevron_down",Tx.KEYBOARD_ARROW_UP="chevron_up",Tx.KIDS_BLOCK="circle_slash",Tx.LANGUAGE="globe",Tx.LAST_PAGE="chevron_right_end",Tx.LAUNCH="arrow_up_right",Tx.LEARNING="lightbulb",Tx.LEARNING_CAIRO="lightbulb",Tx.LIBRARY_ADD="bookmark",Tx.LIBRARY_IMAGE="image_stack",Tx.LIBRARY_MUSIC="audio_square_stack",Tx.LIBRARY_OUTLINE="play_square_stack",Tx.LIBRARY_REMOVE="bookmark",Tx.LIBRARY_SAVED="check_square_stack",Tx.LIKES_PLAYLIST="thumb_up",Tx.LIKES_PLAYLIST_CAIRO="thumb_up",Tx.LIKE=
"thumb_up",Tx.LIKE_SELECTED="thumb_up",Tx.LIST_QUEUE="queue",Tx.LIVE_CAIRO="live",Tx.LIVE_UNLISTED="link",Tx.LOCATION_ON="location_pin",Tx.LOCATION_PIN="location_pin",Tx.LOCATION_POINT="location_pin",Tx.LOOP="repeat",Tx.LOOP_ACTIVE="repeat",Tx.LOOP_ONE="repeat1",Tx.LOOP_ONE_ACTIVE="repeat1",Tx.MEET="google_meet",Tx.MEH="face_neutral",Tx.MEMBERSHIPS="memberships",Tx.MEMBERS_ONLY_MODE_OFF="text_bubble",Tx.MENU_FILTER="filter",Tx.MESSAGE="text_bubble",Tx.MESSAGE_BUBBLE_GEAR="bubble_gear",Tx.MESSAGE_BUBBLE_LEFT=
"text_bubble",Tx.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Tx.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Tx.MESSAGE_BUBBLE_QUESTION="help_bubble",Tx.MICROPHONE_ON="mic",Tx.MONETIZATION_ON="dollar_sign_circle",Tx.MONEY_FILL="dollar_sign_rectangle",Tx.MONEY_FILL_JPY="yen_sign_rectangle",Tx.MONEY_HAND="dollar_sign_circle_hand",Tx.MONEY_HEART="dollar_sign_heart",Tx.MOON_Z="sleep_timer",Tx.MORE_HORIZ="overflow_horizontal",Tx.MORE_VERT="overflow_vertical",Tx.MUSIC="audio",Tx.MUSIC_CAIRO="audio",Tx.MUSIC_EXPLICIT_BADGE=
"explicit",Tx.MUSIC_NEW_RELEASE="audio_badge",Tx.MUSIC_NOTE_SYMBOL="audio",Tx.MUSIC_SCISSORS="audio_scissors",Tx.MUSIC_SHUFFLE="shuffle",Tx.MY_CHANNEL="person_circle",Tx.MY_LOCATION="location_pin",Tx.MY_VIDEOS="video",Tx.MY_VIDEOS_CAIRO="video",Tx.NEWS_CAIRO="news",Tx.NEWS_STORY="news",Tx.NEXT="chevron_right",Tx.NOTE_ADD="bubble_pencil",Tx.NOTIFICATIONS="bell",Tx.NOTIFICATIONS_ACTIVE="bell_waves",Tx.NOTIFICATIONS_CAIRO="bell",Tx.NOTIFICATIONS_DONE_CHECKMARK="check",Tx.NOTIFICATIONS_INBOX="bell",Tx.NOTIFICATIONS_NONE=
"bell",Tx.NOTIFICATIONS_OFF="bell_slash",Tx.NOT_INTERESTED="circle_slash",Tx.OFFICIAL_ARTIST_BADGE="audio",Tx.OFFLINE_CLOUD="cloud_slash",Tx.OFFLINE_DOWNLOAD="download",Tx.OFFLINE_DOWNLOAD_CAIRO="download",Tx.OFFLINE_PAUSE="pause",Tx.OPEN_IN_NEW="arrow_up_right",Tx.OUTLINE_ADJUST="adjust",Tx.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Tx.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Tx.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Tx.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Tx.OUTLINE_BAG="bag",Tx.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",Tx.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Tx.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Tx.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Tx.PAID="dollar_sign_circle",Tx.PAUSE_OUTLINED="pause",Tx.PAYMENT="credit_card",Tx.PEOPLE="person_child",Tx.PEOPLE_2="person2_rectangle",Tx.PEOPLE_GROUP="person3",Tx.PEOPLE_NOTE="bubble_asterisk",Tx.PERSON_2="person2",Tx.PERSON_ACCOUNT="person_square_stack",Tx.PERSON_MINUS="person_x",Tx.PERSON_MUSIC="person_audio",Tx.PERSON_RADAR="person_waves",
Tx.PERSON_RADAR_FILLED="person_waves",Tx.PERSON_SETTING="person_gear",Tx.PHONE="phone",Tx.PHONE_DOWNLOAD="mobile_arrow_down",Tx.PICTURE_IN_PICTURE="picture_in_picture",Tx.PLAYABLES_LOGO="playables",Tx.PLAYABLES_LOGO_CAIRO="playables",Tx.PLAYLISTS="playlist",Tx.PLAYLISTS_CAIRO="playlist",Tx.PLAYLIST_ADD_CHECK="bookmark",Tx.PLAY_ALL="play",Tx.PLAY_ARROW="play",Tx.PLAY_ARROW_CIRCLE="play_circle",Tx.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Tx.PLAY_CIRCLE="play_circle",Tx.PLAY_OUTLINED="play_circle",
Tx.PODCAST_ADD="podcast_add",Tx.PODCAST_CHECK="podcast_check",Tx.PRIVACY_INFO="shield_x",Tx.PRIVACY_PRIVATE="lock",Tx.PRIVACY_PUBLIC="globe",Tx.PRIVACY_UNLISTED="link",Tx.PROMOTE="megaphone",Tx.PURCHASES="price_tag",Tx.PURCHASE_SUPER_CHAT="super_chat",Tx.PURCHASE_SUPER_STICKER="super_sticker",Tx.QUESTION_ANSWER="help_bubble",Tx.QUESTION_CIRCLE="help_circle",Tx.QUEUE_PLAY_LAST="queue_last",Tx.QUEUE_PLAY_NEXT="queue_next",Tx.QUOTATION_MARK="quote",Tx.RADAR_LIVE="live",Tx.REMOVE="minus_circle",Tx.REMOVE_CIRCLE=
"minus_circle",Tx.REMOVE_CIRCLE_OUTLINE="minus_circle",Tx.REMOVE_FROM_HISTORY="minus_circle",Tx.REMOVE_FROM_PLAYLIST="minus_circle",Tx.REMOVE_MODERATOR="shield_slash",Tx.REPLAY="arrow_counterclockwise",Tx.REPLAY_10="skip10_back",Tx.REPLAY_ARROW="replay",Tx.REPORT_PROBLEM="alert_triangle",Tx.RSS_OFF="rss_slash",Tx.SAD="face_sad",Tx.SAVE_PLAYLIST="bookmark",Tx.SCHEDULE="clock",Tx.SCHOOL="graduation_cap",Tx.SCREEN_DEFAULT="player_default",Tx.SCREEN_FULLSCREEN="player_full_enter",Tx.SCREEN_LIGHT="ambient_mode",
Tx.SCREEN_ROTATION="rotate_portrait",Tx.SCREEN_SWITCH="player_switch",Tx.SCREEN_THEATRE="player_theater",Tx.SEARCH_CAIRO="search",Tx.SEARCH_HISTORY="history",Tx.SELL="price_tag",Tx.SETTINGS="gear",Tx.SETTINGS_CAIRO="gear",Tx.SETTINGS_LIGHT="gear",Tx.SETTINGS_MATERIAL="gear",Tx.SETTINGS_REMOTE="remote_waves",Tx.SHARE="share",Tx.SHARE_ARROW="share",Tx.SHARE_CAIRO="share",Tx.SHIELD="shield_x",Tx.SHIELD_EMPTY="shield",Tx.SHIELD_OFF="shield_slash",Tx.SHIELD_WITH_AVATAR="person_shield",Tx.SHOPPING_BAG=
"bag",Tx.SHOPPING_BAG_CAIRO="bag",Tx.SHOPPING_CART="cart",Tx.SHORTS_COMMENT="text_bubble",Tx.SHORTS_DISLIKE="thumb_down",Tx.SHORTS_LIKE="thumb_up",Tx.SHORTS_SHARE="share",Tx.SKIP_FORWARD_30="skip30_forward",Tx.SLASH_CIRCLE_LEFT="circle_slash",Tx.SLASH_CIRCLE_RIGHT="circle_slash",Tx.SLOW_MODE="bubble_slow",Tx.SLOW_MODE_OFF="text_bubble",Tx.SOCIAL="person_child",Tx.SPARKLE="sparkles",Tx.SPARK_IMAGE="image_spark",Tx.SPARK_PENCIL="pencil_spark",Tx.SPARK_RADAR="spark_waves",Tx.SPARK_VIDEO="video_spark",
Tx.SPEAKER_GROUP="speaker_stack",Tx.SPEAKER_OFF="speaker_slash",Tx.SPEED_1X="n1x",Tx.SPEED_1_POINT_2X="n1point2x",Tx.SPEED_1_POINT_5X="n1point5x",Tx.SPEED_1_POINT_8X="n1point8x",Tx.SPEED_2X="n2x",Tx.SPONSORSHIP_STAR="star_circle",Tx.SPORTS="basketball",Tx.SPOTLIGHT="spotlight",Tx.STAFF_PICK="spotlight",Tx.START_DVR="add",Tx.STAR_BORDER="star",Tx.STAR_CIRCLE_RIBBON="memberships_gift",Tx.STAR_HALF="star_full_half",Tx.STAR_SHOOTING="hype",Tx.STICKER="sticker",Tx.STICKER_EMOTICON="face_happy",Tx.STOP_DVR=
"stop",Tx.SUBSCRIBE="youtube",Tx.SUBSCRIBE_PLUS="add",Tx.SUBSCRIPTION_MANAGER="gear",Tx.SUPERSTAR="super_star",Tx.SUPERVISOR_ACCOUNT="person_child",Tx.SUPER_CHAT_FOR_GOOD="hands_heart",Tx.SWAP_HORIZ="arrow_swap_horizontal",Tx.SWITCH_ACCOUNTS="person_square_stack",Tx.TAB_ACCOUNT="person",Tx.TAB_ACTIVITY="bell",Tx.TAB_BOOKMARK="bookmark",Tx.TAB_EXPLORE="compass",Tx.TAB_HOME="home",Tx.TAB_HOME_CAIRO="home",Tx.TAB_INBOX="mail",Tx.TAB_LIKED="thumb_up",Tx.TAB_MUSIC_PREMIUM="youtube_music",Tx.TAB_SHORTS=
"shorts",Tx.TAB_SHORTS_CAIRO="shorts",Tx.TAB_SUBSCRIPTIONS="subscriptions",Tx.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Tx.TAB_TRENDING="trending",Tx.TARGET="target",Tx.TARGET_ADD="target_add",Tx.TEMPLATE_ADD="template_add",Tx.TEXT="font",Tx.TICKET_STAR="star_ticket",Tx.TIMER="stopwatch",Tx.TRENDING_CAIRO="trending",Tx.TRENDING_DOWN="arrow_trend_down",Tx.TRENDING_UP="arrow_trend_up",Tx.TROPHY_CAIRO="trophy",Tx.TROPHY_CELEBRATIONS="fireworks",Tx.TROPHY_STAR="star_trophy",Tx.TUNE="adjust",Tx.TV_OFF="tv_slash",
Tx.UNBLOCK_USER="minus_circle",Tx.UNFAVORITE="thumb_down",Tx.UNLIMITED="youtube",Tx.UNPLUGGED_LIVE_GUIDE="live",Tx.UNPLUGGED_SPORTS="eye_slash",Tx.UPLOADS="play_square_stack",Tx.UP_ARROW="arrow_up",Tx.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Tx.VERTICAL_ALIGN_TOP="chevron_up_end",Tx.VERY_HAPPY="face_very_happy",Tx.VERY_SAD="face_very_sad",Tx.VIDEOS="play_circle",Tx.VIDEO_CALL="video_camera_add",Tx.VIDEO_LIBRARY_WHITE="play_square_stack",Tx.VIDEO_QUALITY_4K="n4k",Tx.VIDEO_QUALITY_8K="n8k",Tx.VIDEO_YOUTUBE=
"youtube",Tx.VIEW_LIST_CAIRO="view_list",Tx.VIEW_MODULE="view_column3_row2",Tx.VISIBILITY="eye",Tx.VISIBILITY_OFF="eye_slash",Tx.VOLUME_DOWN="volume_min",Tx.VOLUME_MUTE="volume_mute",Tx.VOLUME_OFF="volume_mute",Tx.VOLUME_STABLE="stable_volume",Tx.VOLUME_UP="volume_max",Tx.WALLPAPER="image",Tx.WARNING="alert_triangle",Tx.WATCH_HISTORY="history",Tx.WATCH_HISTORY_CAIRO="history",Tx.WATCH_LATER="clock",Tx.WATCH_LATER_CAIRO="clock",Tx.WATCH_RELATED_MIX="mix",Tx.WHAT_TO_WATCH="home",Tx.YOUTUBE_LINKED_TV=
"tv_mobile",Tx.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Tx.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Tx.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Tx.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Tx.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Tx.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Tx.YOUTUBE_SHORTS_OUTLINE_24="shorts",Tx.YT_OUTLINE_MUSIC_24="audio",Tx);var yYQ={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,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,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,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,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,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,4,24],[1,4,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_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var DRC={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]],cart_spark:[[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,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,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,2,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]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,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,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,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_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,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,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,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_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var F2C={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"},sF=function(I){this.iconUrlProvider=I};
sF.prototype.resolveIcon=function(I,y){var D=F2C[I.iconName.toUpperCase()];D&&(I.iconName=D);var F=I.iconName;F=F.replace(/-/g,"_");I=Object.assign({},I,{iconName:this.mapIconTypeToStandardName(F,!!D)||F.toLowerCase()});if(_.l("enable_web_delhi_icons")||D){var R;return cFH(DRC,I,((R=this.iconUrlProvider)==null?void 0:R.getYtStandardUrl)||inq,y)}var O;return cFH(yYQ,I,((O=this.iconUrlProvider)==null?void 0:O.getYtStandardUrl)||Bs5,y)};
sF.prototype.mapIconTypeToStandardName=function(I,y){return _.l("enable_web_delhi_icons")||y?IOb[I.toUpperCase()]:gQb[I.toUpperCase()]};
sF[mw]=[_.fR(sBR)];var Rqy=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),OGR=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),L2Z=function(I){this.urlProvider=this.iconUrlProvider=I};
_.E(L2Z,sF);
L2Z.prototype.resolveIcon=function(I,y){I.iconName==="youtube_logo"&&(I.iconName="yt-logo-updated");if(I.iconName==="youtube_premium_logo"||I.iconName==="youtube_red_logo")I.iconName="yt-logo-red-updated";var D=Object.assign({},I);I.iconName==="menu"&&(_.l("enable_web_delhi_icons")||(D.iconName="bars_3"),D.iconStyle="youtube_outline");I.iconSetName==="socialNetworksRound"&&(I.iconName==="mail"&&(D.iconName="email"),I.iconName==="embed"&&(D.iconSize=60));I.iconName==="more"&&(D.iconName="overflow_horizontal");
I.iconName==="fullscreen"&&(D.iconName="screen_full");I.iconName==="premium_standalone"&&(D.iconName="premium_standalone_cairo");_.l("enable_connect_icon_update_web")&&I.iconName==="account_linked"&&(D.iconName="circles_overlap_check",D.iconStyle="youtube_fill");_.l("enable_connect_icon_update_web")&&I.iconName==="account_unlinked"&&(D.iconName="circles_overlap",D.iconStyle="youtube_outline");Rqy.has(I.iconName)&&(D.iconStyle="youtube_fill");if(_.l("enable_web_delhi_icons")){I.iconName==="playlist_add"&&
(D.iconName="bookmark");I.iconName==="offline_pin"&&(D.iconName="arrow_down_circle",D.iconStyle="youtube_fill");if(I.iconName==="circles_overlap_check"||D.iconName==="circles_overlap_check")D.iconName="account_link",D.iconStyle="youtube_fill";OGR.has(I.iconName)&&(D.iconName+="_updated")}I=Object.assign({},D,{iconName:(sF.prototype.mapIconTypeToStandardName.call(this,D.iconName)||D.iconName).toLowerCase()});var F;return(I=cFH(eDo,I,((F=this.urlProvider)==null?void 0:F.getUrl)||AFH,y))?I:sF.prototype.resolveIcon.call(this,
D,y)};
L2Z[mw]=[_.fR(sBR)];_.JYo=1;var V$=function(I,y){this.JSC$17724_commandHandler=I;this.innertubeTransportService=y};
_.E(V$,rO);V$.prototype.resolveCommand=function(I,y){var D=this,F,R,O;return _.S(function(w){return(F=_.u(I,hPg))?w.return(wBR(D,F,(R=y)==null?void 0:(O=R.form)==null?void 0:O.element)):w.return()})};
var wBR=function(I,y,D){y={profileCardContext:y.profileCardContext,profileOwnerExternalChannelId:y.profileOwnerExternalChannelId};var F=_.NP(nxz);return _.U3(I.innertubeTransportService,y,F).then(function(R){if(!R)throw new _.g6("GetProfileCard failed");if(R=R.popupCommand){I.JSC$17724_commandHandler.resolveCommand(R,{form:{element:D}});_.d7(_.W4(),66557);R=R==null?void 0:R.clickTrackingParams;var O=_.s_();R&&O&&_.W4().graftServerVe(R,O)}})};
V$[mw]=[_.MC,_.iX];var Zc=function(){};
_.E(Zc,rO);Zc.prototype.resolveCommand=function(I){var y,D;return _.S(function(F){y=_.u(I,Ysn);if(!y)return F.return();D=Number(y.enableDelayedPacfLoggingTvMs);if(isNaN(D)){var R=Bj();iyz(R,y,0)}else iyz(Bj(),y,D);_.Cj(F)})};_.gf=function(){};
_.E(_.gf,rO);
_.gf.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K;return _.S(function(r){F=_.u(I,fmu);O=(R=y.form)==null?void 0:R.element;v=(w=O)==null?void 0:w.closest("ytd-enforcement-message-view-model");if(!F||!v)return r.return();D.allowAdsAction||(P=F.fundingChoiceInstructionPageUrl,D.allowAdsAction=new iua(window,_.vP(P)));var N=D.allowAdsAction;N.wallElement=v;N.allowAdsPopup.style.setProperty("display","flex","important");var h=N.scrollManager;h.isScrollingEnabled&&(h.originalBodyOverflow=h.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow,
h.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow="hidden",h.isScrollingEnabled=!1);N.wallElement.style.setProperty("display","none","important");L$P(N.accessibilityManager,N.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((K=D.allowAdsAction.allowAdsPopup)&&K instanceof HTMLElement)for(N=_.J(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h=N.next();!h.done;h=N.next()){var x=_.J(h.value);h=x.next().value;x=x.next().value;
K.style.setProperty(h,x)}_.Cj(r)})};
_.gf.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Iy=function(){};
_.E(Iy,rO);Iy.prototype.resolveCommand=function(I){var y;return _.S(function(D){y=_.u(I,agP);if(!y)return D.return();hTJ(I);_.Cj(D)})};_.yb=new _.uk("AI_CHAT_CONTROLLER_TOKEN");var Db=function(I,y,D,F){this.JSC$17739_commandHandler=I;this.store=y;this.getPlayerCb=D;this.aiChatController=F};
_.E(Db,rO);Db.prototype.pageContext=function(){var I=_.LV.currentPageSubTypeSelector(this.store.getState()),y;return(y=this.aiChatController)==null?void 0:_.vBy(y,I)};
Db.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w;return _.S(function(v){D=_.u(I,Cku);R=(F=D)==null?void 0:F.command;if(!R)return v.return();switch((w=D)==null?void 0:w.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var P="youchat-"+Date.now(),K;var r=String(Math.floor(((K=y.getPlayerCb())==null?void 0:K.getCurrentTime())||0)*1E3);O={inputComposerFormData:{clientMessageId:P,playerOffsetMs:r,pageContext:y.pageContext()}}}if(!O)return v.return();y.JSC$17739_commandHandler.resolveCommand(R,
{form:{formData:O}});_.Cj(v)})};
Db[mw]=[_.MC,_.LM,rcA,_.fR(_.yb)];var StZ=new _.uk("SESSION_STORAGE");var F2=function(I){this.sessionStorage=I("conversations")};
_.E(F2,rO);F2.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){D=_.u(I,BX_);if(!D)return F.return();D.conversationId?y.sessionStorage.set("conversation_id",D.conversationId):y.sessionStorage.remove("conversation_id");_.Cj(F)})};
F2[mw]=[StZ];var Ry=function(I){this.JSC$17751_commandHandler=I};
_.E(Ry,rO);
Ry.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1){D=_.u(I,SYO);if((F=D)==null||!F.text||!navigator.clipboard)return r.return();_.nj(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();R=_.J(D.successActions);for(O=R.next();!O.done;O=R.next())w=O.value,y.JSC$17751_commandHandler.resolveCommand(w);return _.lZ(r,0)}_.dj(r);if(!D.failureActions||D.failureActions.length===
0)return r.return();v=_.J(D.failureActions);for(P=v.next();!P.done;P=v.next())K=P.value,y.JSC$17751_commandHandler.resolveCommand(K);_.Cj(r)})};
Ry[mw]=[_.MC];var Or=function(I){this.JSC$17755_commandHandler=I};
_.E(Or,rO);
Or.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h;return _.S(function(x){switch(x.nextAddress){case 1:F=_.u(I,$Ta);if(!F)return x.return();_.nj(x,2);if(!F.imageBytes&&!F.imageUrl)throw Error("Di");if(!F.imageUrl){if(F.imageBytes){O=F.imageBytes;w=O.replace(/-/g,"+").replace(/_/g,"/");var q=Hnq(w);R=_.Z0(q)}x.jumpTo(4);break}return x.yield(fetch(F.imageUrl),5);case 5:return v=x.yieldResult,x.yield(v.blob(),6);case 6:P=x.yieldResult,R=_.Z0(P);case 4:N=(K=y)==null?void 0:(r=K.form)==
null?void 0:r.element;h=document.createElement("a");yr(h,R);N.appendChild(h);h.download="";h.click();N.removeChild(h);URL.revokeObjectURL(_.H$(R));F.successCommand&&D.JSC$17755_commandHandler.resolveCommand(F.successCommand);_.lZ(x,0);break;case 2:_.dj(x),F.errorCommand&&D.JSC$17755_commandHandler.resolveCommand(F.errorCommand),_.Cj(x)}})};
Or[mw]=[_.MC];var LL=function(I){this.store=I};
_.E(LL,rO);LL.prototype.resolveCommand=function(I){var y=this,D,F,R;return _.S(function(O){F=(D=_.u(I,_.C8a))==null?void 0:D.entityBatchUpdate;if(!F)return O.jumpTo(0);R=Object.assign({},F,{mutations:[].concat(_.Td(F.mutations||[]))});return O.yield(_.kK(R,y.store),0)})};
LL[mw]=[Gr];var t$o=function(I){this.JSC$17762_commandHandler=I;this.feedbackDialogMap=new Map};
t$o.prototype.openDialog=function(I,y){(I=this.feedbackDialogMap.get(I))&&this.JSC$17762_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:I}},y)};
t$o[mw]=[_.MC];var Plo=new _.uk("FEEDBACK_CONTROLLER_TOKEN");var JD=function(I,y,D,F){this.dispatch=I;this.controller=y;this.JSC$17765_commandHandler=D;this.innertubeTransportService=F};
_.E(JD,rO);
JD.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW;return _.S(function(xA){switch(xA.nextAddress){case 1:F=_.u(I,_.gT);if(O=(R=F)==null?void 0:R.contentId)for(v=_.J(((w=F)==null?void 0:w.actions)||[]),P=v.next();!P.done;P=v.next())K=P.value,K2g(D,K,O);h=(r=y)==null?void 0:(N=r.form)==null?void 0:N.element;return _.l("wug_feedback_endpoint_use_its")?(X=new _.RP,X.endpoint=I,m=_.wP(D.innertubeTransportService,I,(f=y)==null?void 0:f.form),X.ajaxPromise=
m,_.lj(h,"yt-service-request-sent",X),xA.yield(m,5)):xA.yield(_.E$(h,[I,{impression:(q=y)==null?void 0:q.disableClickTracking}]).catch(function(){}),4);
case 4:x=xA.yieldResult;xA.jumpTo(3);break;case 5:x=xA.yieldResult,_.lj(h,"yt-service-request-completed",{data:x});case 3:H=((z=x)==null?void 0:(B=z.data)==null?void 0:B.feedbackResponses)||((C=x)==null?void 0:C.feedbackResponses);if((e=H)==null?0:e.length)(L5=(T=H[0])==null?void 0:T.followUpDialog)&&O&&(vH=D.controller)!=null&&vH.feedbackDialogMap.set(O,L5),(jW=(u_=H[0])==null?void 0:u_.isThumbnailReporting)&&D.JSC$17765_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Cj(xA)}})};
var K2g=function(I,y,D){var F=_.u(y,_.Q_);if(F){F=_.J(F.commands||[]);for(var R=F.next();!R.done;R=F.next())K2g(I,R.value,D)}_.u(y,_.iE)&&I.dispatch(_.WS("commandEntity",n2q(D),{key:D,command:y}));_.u(y,XRM)&&I.dispatch(_.WS("commandEntity",n2q(D),{key:D,command:y}))};
JD[mw]=[SrM,Plo,_.MC,_.iX];var wS=function(I){this.controller=I};
_.E(wS,rO);wS.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w;return _.S(function(v){F=_.u(I,_.hq);O=(R=F)==null?void 0:R.targetId;if(((w=F)==null?void 0:w.signal)!=="TELL_US_WHY"||!O)return v.return();D.controller.openDialog(O,y);_.Cj(v)})};
wS[mw]=[Plo];var vT=new _.uk("APP_STORE_TOKEN");var SS=function(I){this.store=I};
_.E(SS,rO);SS.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K;return _.S(function(r){F=_.u(I,e$_);O=(R=F)==null?void 0:R.contentId;P=(w=y)==null?void 0:(v=w.form)==null?void 0:v.element;K=_.E$(P,[I]);O&&D.undo(O);return r.yield(K,0)})};
SS.prototype.undo=function(I){this.store.dispatch(_.WS("commandEntity",n2q(I),{key:I,command:void 0}))};
SS[mw]=[vT];var tD=function(I){this.JSC$17777_commandHandler=I};
_.E(tD,rO);tD.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){D=_.u(I,LgO);F=D.flowStateKey;R=D.validationFailureCommand;O=D.submitValidFormCommand;w=gJC(_.oz,[F||""]);v=_.u(w,v6M);((P=v)==null?0:P.isValid)&&O&&y.JSC$17777_commandHandler.resolveCommand(O);((K=v)==null?0:K.isValid)||!R||y.JSC$17777_commandHandler.resolveCommand(R);_.Cj(r)})};
tD[mw]=[_.MC];var PT=function(I){this.innertubeTransportService=I};
_.E(PT,rO);PT.prototype.resolveCommand=function(I,y){var D=this,F;return _.S(function(R){return R.yield(_.wP(D.innertubeTransportService,I,(F=y)==null?void 0:F.form).then(function(O){var w,v;y==null||(w=y.commandController)==null||(v=w.onSuccess)==null||v.call(w,I,O)},function(O){var w,v;
y==null||(w=y.commandController)==null||(v=w.onServerError)==null||v.call(w,I,O)}),0)})};
PT[mw]=[_.iX];var KL=function(){};
_.E(KL,rO);KL.prototype.resolveCommand=function(I){var y,D,F,R;return _.S(function(O){if(y=_.u(I,_.OFe)){if(D=y.gtmId)F=_.Pi("GL",""),_.V8(D,F);(R=y.gtmData)&&_.ZI(R)}_.Cj(O)})};var Ur=function(I,y,D){this.innertubeTransportService=I;this.JSC$17788_actionRouter=y;this.JSC$17788_screenManager=D};
_.E(Ur,rO);Ur.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){D=_.u(I,IBz);if(!D)return R.return();F=D.command;if(!F)return R.return();y.JSC$17788_actionRouter.triggerAction("yt-insert-rich-section-action",D);return R.yield(_.wP(y.innertubeTransportService,F,{disableCache:!0}).then(function(O){I.clickTrackingParams&&(O==null?0:O.trackingParams)&&y.JSC$17788_screenManager.graftServerVe(O.trackingParams,_.AC(I.clickTrackingParams))}),0)})};
Ur[mw]=[_.iX,GV,_.gi];Ts5.bind(null,jw);var URC=Ts5.bind(null,OyG);Vie.bind(null,jw);var rYG=Vie.bind(null,OyG);gTo.bind(null,jw);var jdR=gTo.bind(null,OyG);var rS=function(){};
_.E(rS,rO);
rS.prototype.resolveCommand=function(I){var y,D,F,R,O,w,v,P,K,r;return _.S(function(N){y=_.u(I,cgW);if(!y)return N.return();F=((D=y.operations)==null?void 0:D.operations)||[];R=_.J(F);for(O=R.next();!O.done;O=R.next())if(w=O.value,w.insertItemSectionContent){var h=w.insertItemSectionContent,x=h.contents||[];h.insertByPositionInSection?URC(h.insertByPositionInSection.sectionTargetId,x,h.insertByPositionInSection.position):h.insertByRelativePositionInSection&&h.insertByRelativePositionInSection.sectionTargetId&&h.insertByRelativePositionInSection.itemTargetId&&
rYG(h.insertByRelativePositionInSection.sectionTargetId,h.insertByRelativePositionInSection.itemTargetId,x,h.insertByRelativePositionInSection.relativePosition)}else w.replaceSection?(h=w.replaceSection,x={},h.replaceByTargetId?x=h.replaceByTargetId:h.replaceByGroupId&&(x={targetId:h.replaceByGroupId.groupId,newContent:h.replaceByGroupId.newContent,undoKey:""}),x.newContent&&w8e(x.targetId,{continuationItems:[x.newContent]})):w.removeItem?(h=w.removeItem,h.removeByTargetId&&h.sectionTargetId&&jdR(h.sectionTargetId,
h.removeByTargetId.targetIds||[])):w.removeSection&&(w.removeSection.removeByTargetId?(v=void 0,oBG(((v=w.removeSection)==null?void 0:v.removeByTargetId.targetIds)||[])):w.removeSection.removeByGroupId&&(P=void 0,oBG(((P=w.removeSection)==null?void 0:P.removeByGroupId.groupIds)||[])));r=((K=y.operations)==null?void 0:K.scrollConfig)||{};NBY(r);_.Cj(N)})};
var oBG=function(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next())w8e(y.value,{continuationItems:[]})},NBY=function(I){if(I.scrollToItem){var y=I.scrollToItem.item||{},D=y.itemTargetId;
y=y.sectionTargetId;if(D&&y){var F=document.querySelector("[data-target-id="+y+"]"),R=F==null?void 0:F.querySelector("[data-target-id="+D+"]");F&&R&&setTimeout(function(){var O=R.offsetTop-F.offsetTop,w;if(((w=I.scrollToItem)==null?void 0:w.scrollPosition)==="SCROLL_POSITION_CENTER")O-=F.offsetHeight/2,O+=R.offsetHeight/2;else{var v;((v=I.scrollToItem)==null?void 0:v.scrollPosition)==="SCROLL_POSITION_END"&&(O-=F.offsetHeight,O+=R.offsetHeight)}F.scroll({top:O,behavior:"smooth"})},100)}}};var jS=new _.uk("CLIENT_NAME_TOKEN");var hqY=new _.uk("DEFAULT_STORE_EXPIRATION_TOKEN");var yLR=new _.uk("CLIENT_LOCATION_SERVICE_TOKEN");var oy=function(I,y,D){this.clientName=I||_.Pi("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=y||_.Sv.getInstance();this.JSC$17816_commandHandler=D||_.M4.instance};
_.E(oy,rO);oy.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){F=(D=_.u(I,lfP))==null?void 0:D.onComplete;y.clientLocationService.clearLocationPlayabilityToken(y.clientName);F&&y.JSC$17816_commandHandler.resolveCommand(F);_.Cj(R)})};
oy[mw]=[jS,yLR,_.MC];var NN=function(I){this.innertubeTransportService=I};
_.E(NN,rO);NN.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w;return _.S(function(v){O=(F=y)==null?void 0:(R=F.form)==null?void 0:R.element;return v.yield(_.wP(D.innertubeTransportService,I,(w=y)==null?void 0:w.form).then(function(P){ZrJ(O,new CustomEvent("yt-service-request-completed"),{data:P},_.Pi("openPopupConfig"))}),0)})};
NN[mw]=[_.iX];var hD=function(){};
_.E(hD,rO);hD.prototype.resolveCommand=function(I){var y,D;return _.S(function(F){y=_.u(I,Kgu);D=document.querySelector("mini-app-container-view-model");if(!y||!D)return F.return();y.isPlaying?D.dispatchEvent(new Event("play")):D.dispatchEvent(new Event("pause"));_.Cj(F)})};var xh=function(){};
_.E(xh,rO);xh.prototype.resolveCommand=function(I){var y,D,F,R,O,w,v;return _.S(function(P){y=_.u(I,gSO);if((D=y)==null||!D.paramKeys)return P.return();F=y.paramKeys;R=_.ob(window.location.href);O=_.J(F);for(w=O.next();!w.done;w=O.next())v=w.value,R.JSC$10308_queryData_.remove(v);window.history.replaceState(window.history.state,document.title,R.toString());_.Cj(P)})};var xR1=function(){this.dropdownMap=new Map};_.lOZ=new _.uk("DROPDOWN_CONTROLLER_TOKEN");var lh=function(I){this.controller=I};
_.E(lh,rO);lh.prototype.resolveCommand=function(I){var y=this,D,F,R,O;return _.S(function(w){D=_.u(I,Xyf);if(!D)return w.return();F=D;R=F.dropdownId;O=F.selectedOptionIndex;if(R===void 0||O===void 0)return w.return();var v=y.controller.dropdownMap.get(R);v&&v(O);_.Cj(w)})};
lh[mw]=[_.lOZ];var uh=function(I){this.controller=I};
_.E(uh,rO);uh.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){return(D=_.u(I,kVW))?F.yield(y.controller.closeDialog(),0):F.return()})};
uh[mw]=[_.Fu];var qN=function(I){this.controller=I};
_.E(qN,rO);qN.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){D=_.u(I,NEc);if(!D)return R.return();var O,w=D.panelIdentifier||((O=D.identifier)==null?void 0:O.tag);if(!w)throw Error("Ei");return(F=w)?R.yield(y.controller.hidePanel({identifier:F}),0):R.jumpTo(0)})};
qN[mw]=[_.yR];var Er=function(I){this.controller=I};
_.E(Er,rO);Er.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){return(D=_.u(I,ONf))?F.yield(y.controller.closeSheet(),0):F.return()})};
Er[mw]=[_.DP];var Gc=function(I,y){this.innertubeTransportService=I;this.controller=y};
_.E(Gc,rO);Gc.prototype.resolveCommand=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D=_.u(I,hSR),(F=D)!=null&&F.panelId?w.yield(y.controller.getReloadContinuation(D.panelId),2):w.return();if(w.nextAddress!=3)return(R=w.yieldResult)?w.yield(_.wP(y.innertubeTransportService,I,{continuation:R}),3):w.return();O=w.yieldResult;return w.yield(y.controller.updatePanel({identifier:D.panelId,panelContents:O.content,shouldFocus:!1}),0)})};
Gc[mw]=[_.iX,_.yR];var X2=function(I,y,D){this.innertubeTransportService=I;this.JSC$17857_screenManager=y;this.JSC$17857_commandHandler=D};
_.E(X2,rO);
X2.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1){D=_.u(I,_.Kee);if(!D)return P.return();if(D.commands)for(F=_.J(D.commands),R=F.next();!R.done;R=F.next())O=R.value,y.JSC$17857_commandHandler.resolveCommand(O,{disableClickTracking:!0});w=_.AC(I.clickTrackingParams);_.d7(y.JSC$17857_screenManager,21760,w,{layer:7,parentLayer:0});return P.yield(_.wP(y.innertubeTransportService,I),2)}v=P.yieldResult;if(!v)return P.return();y.JSC$17857_screenManager.graftServerVe(v.trackingParams,w,
7);_.Cj(P)})};
X2[mw]=[_.iX,_.gi,_.MC];var Qb=new _.uk("PANEL_LOADING_STRATEGY_TOKEN");var Yh=function(I,y){this.controller=I;this.panelLoadingStrategy=y};
_.E(Yh,rO);
Yh.prototype.resolveCommand=function(I,y){var D=this,F,R,O;return _.S(function(w){F=_.u(I,Jle);if((R=F)==null||!R.panelLoadingStrategy)return w.return();O=function(v){var P,K,r,N,h,x,q,X,f,m;return _.S(function(z){K=_.u((P=v.dialogViewModel)==null?void 0:P.header,QKu);r={viewModel:v.dialogViewModel};N={};if(q=_.l("web_enable_dialog_header_label")?(h=K)==null?void 0:(x=h.headline)==null?void 0:x.content:void 0)N.ariaLabel=q;F.dismissOnBackgroundTap===!1&&(N.isModal=!0);return v.dialogViewModel?z.yield(D.controller.openDialog(r,
(m=(X=y)==null?void 0:(f=X.form)==null?void 0:f.element)!=null?m:document.body,N),0):z.return()})};
return w.yield(D.panelLoadingStrategy.execute({command:I,data:F.panelLoadingStrategy,renderFn:O,createScreenConfig:{layer:4}}),0)})};
Yh[mw]=[_.Fu,Qb];var fL=function(I,y,D){this.innertubeTransportService=I;this.controller=y;this.JSC$17877_screenManager=D};
_.E(fL,rO);
fL.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m;return _.S(function(z){switch(z.nextAddress){case 1:F=_.u(I,_.Z3);if(!F)return z.return();var B,C=F.panelIdentifier||((B=F.identifier)==null?void 0:B.tag);if(!C)throw Error("Ei");R=C;return z.yield(D.controller.isVisible(R,!0),2);case 2:if((O=z.yieldResult)&&F.blockIfPanelOpen)return z.return();P=(v=(w=D.controller).getPanelContent)==null?void 0:v.call(w,R);if(!(B=P))if(F){var H;B=((H=F.globalConfiguration)==null?void 0:
H.initialState)||F.engagementPanel;if(H=!B)H=!!(F==null?0:(C=F.engagementPanelPresentationConfigs)==null?0:C.engagementPanelPopupPresentationConfig);H&&(B=_.Ivt(F.panelIdentifier,F.identifier))}else B=void 0;K=B;r=F.engagementPanelPresentationConfigs;N=F.engagementPanelExtras;return z.yield(D.controller.showPanel({identifier:R,panelContents:K,config:r,extras:N,target:(h=y)==null?void 0:(x=h.form)==null?void 0:x.element}),3);case 3:if(!F.globalConfiguration){z.jumpTo(0);break}if(F.globalConfiguration.reuseModelAndState&&
_.l("enable_ai_companion")&&(f=(X=(q=D.controller).getPanelContent)==null?void 0:X.call(q,R)))return z.return();_.d7(D.JSC$17877_screenManager,32633);return z.yield(_.wP(D.innertubeTransportService,I),5);case 5:return m=z.yieldResult,D.JSC$17877_screenManager.graftServerVe(m.trackingParams),z.yield(D.controller.updatePanel({identifier:R,panelContents:m.content,shouldFocus:!0,extras:N,updatePanelContinuationData:m.updatePanelContinuationData}),0)}})};
fL[mw]=[_.iX,_.yR,_.gi];var nL=function(I,y){this.controller=I;this.panelLoadingStrategy=y};
_.E(nL,rO);
nL.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q;return _.S(function(X){F=_.u(I,_.Ct);if((R=F)==null||!R.panelLoadingStrategy)return X.return();v=uOy(D.controller,(O=y)==null?void 0:(w=O.form)==null?void 0:w.element);K=(P=F.contextualSheetPresentationConfig)==null?void 0:P.position;N=(r=F.contextualSheetPresentationConfig)==null?void 0:r.hoverConfig;x=(h=F.contextualSheetPresentationConfig)==null?void 0:h.expandToFullWidth;q=function(f){var m,z;return _.S(function(B){if(!f.sheetViewModel)return B.return();if(N){var C=
D.controller;C.shouldPreventClosingWhileHovered=!!N.preventCloseWhileHovered;var H;C.hideDelayMs=(H=N.hideDelayMs)!=null?H:0}return B.yield(D.controller.openSheet({viewModel:f.sheetViewModel,sheetPosition:K,expandToFullWidth:x},v,(m=y)==null?void 0:(z=m.form)==null?void 0:z.element),0)})};
return X.yield(D.panelLoadingStrategy.execute({command:I,data:F.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:0}}),0)})};
nL[mw]=[_.DP,Qb];var pL=function(I,y){this.controller=I;this.JSC$17888_commandHandler=y};
_.E(pL,rO);pL.prototype.resolveCommand=function(I,y){var D=this,F,R,O;return _.S(function(w){if(w.nextAddress==1){F=_.u(I,q3G);var v=_.u(F.showCommand,_.Z3),P,K,r=(K=v==null?void 0:v.panelIdentifier)!=null?K:v==null?void 0:(P=v.identifier)==null?void 0:P.tag;if(!r)throw Error("Fi");R=r;return w.yield(D.controller.isVisible(R),2)}return(O=w.yieldResult)?w.yield(D.controller.hidePanel({identifier:R}),0):w.yield(D.JSC$17888_commandHandler.resolveCommand(F.showCommand,y),0)})};
pL[mw]=[_.yR,_.MC];var mu=function(I,y,D){this.innertubeTransportService=I;this.controller=y;this.JSC$17891_screenManager=D};
_.E(mu,rO);
mu.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T;return _.S(function(L5){switch(L5.nextAddress){case 1:return F=D=_.u(I,YYc),R=F.targetPanelIdentifier,O=F.contentSourcePanelIdentifier,w=F.globalConfiguration,((v=R)==null?0:v.tag)&&((P=O)==null?0:P.tag)?w?L5.yield(y.controller.showPanel({identifier:R.tag,panelContents:_.Ivt(R.tag,R)}),5):L5.yield((h=(N=y.controller).getPanel)==null?void 0:h.call(N,O.tag),4):L5.return();case 4:x=L5.yieldResult;K=(q=x)==
null?void 0:(f=(X=q).getPanelContent)==null?void 0:f.call(X);L5.jumpTo(3);break;case 5:return L5.yield(_.wP(y.innertubeTransportService,I),6);case 6:m=L5.yieldResult,((z=m)==null?0:z.trackingParams)&&y.JSC$17891_screenManager.graftServerVe(m.trackingParams),K=(B=m)==null?void 0:B.content,r=(C=m)==null?void 0:C.updatePanelContinuationData;case 3:if(e=(H=K)==null?void 0:H.engagementPanelSectionListRenderer)return L5.yield(y.controller.showPanel({identifier:R.tag,panelUpdatableFields:{content:e.content,
secondaryHeaderContent:(T=e.header)!=null?T:{},targetId:e.targetId,loggingDirectives:e.loggingDirectives},updatePanelContinuationData:r}),0);L5.jumpTo(0)}})};
mu[mw]=[_.iX,_.yR,_.gi];var MN=function(){};
_.E(MN,rO);MN.prototype.resolveCommand=function(I){var y,D,F;return _.S(function(R){if(R.nextAddress==1)return(y=_.u(I,p0a))?R.yield(_.Yz(),2):R.return();D=R.yieldResult;if(!D)return R.return();var O=D,w=(F=y)==null?void 0:F.languageCode,v;(O==null?0:(v=O.isReady)==null?0:v.call(O))&&(w=y6H(O,w))&&O.setAudioTrack(w);_.Cj(R)})};var zc=function(){};
_.E(zc,v9);_.L=zc.prototype;_.L.getApiPaths=function(){return EbP};
_.L.getExtension=function(I){return _.u(I,_.t9)};
_.L.isNavigationCommand=function(){return!0};
_.L.JSC$14452_getStoreKey=function(I){if((I=this.getExtension(I))&&I.videoId){var y={videoId:I.videoId};I.playlistId&&(y.playlistId=I.playlistId);I.index&&(y.index=I.index);I.params&&(y.params=I.params);return _.Sk("next",y)}};
_.L.JSC$14445_getClientScreen=function(I){var y;return((y=I.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.L.JSC$14445_buildRequest=function(I,y,D){y.videoId&&(I.videoId=y.videoId);y.playlistId&&(I.playlistId=y.playlistId);y.params&&(I.params=y.params);y.index!==void 0&&(I.playlistIndex=y.index);I.racyCheckOk=!(!D.racyCheckOk&&!y.racyCheckOk);I.contentCheckOk=!!y.contentCheckOk;D.contentPlaybackContext&&(I.autonavState=D.contentPlaybackContext.autonavState,I.playbackContext={vis:D.contentPlaybackContext.vis,lactMilliseconds:D.contentPlaybackContext.lactMilliseconds});D.prefetchPlaybackContext&&(I.context.request||
(I.context.request={}),I.context.request.isPrefetch=!0);_.l("captions_hats_killswitch")||(y=_.a1().getFlag(65),y=y!=null?!y:!1,D=!!_.bX("yt-player-sticky-caption"),I.captionsRequested=y&&D)};
_.L.getRequestConfig=function(I){I=this.JSC$14452_getStoreKey(I);var y;I&&(y={storeStrategy:{storeKey:I}});_.l("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="wn_s",y.responseTick="wn_r");return y};
var kh=function(){};
_.E(kh,v9);kh.prototype.getApiPaths=function(){return EbP};
kh.prototype.getExtension=function(I){return _.u(I,_.IP)};
kh.prototype.JSC$14445_buildRequest=function(I,y){y.token&&(I.continuation=y.token)};var dS=function(){this.innerTubeTransport=_.nR().resolve(_.iX);this.miniplayerService=_.nR().resolve(_.OI)};
_.E(dS,rO);var qto=function(I){var y;return _.S(function(D){y=_.Pi("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;I.JSC$17916_mainAppPlayer=new xg(y);document.addEventListener("yt-navigate-start",I.JSC$17916_pauseOnNavigation.bind(I));_.Cj(D)})},EBT=function(I,y){var D,F,R,O;
return _.S(function(w){if(w.nextAddress==1){D=new zc;F=D.JSC$14445_getRequest(y);if(!F)return w.return(void 0);R=F.innerTubeRequest;return w.yield(_.U3(I.innerTubeTransport,R,"/youtubei/v1/next"),2)}O=w.yieldResult;var v;var P,K,r=(v=O.contents)==null?void 0:(P=v.twoColumnWatchNextResults)==null?void 0:(K=P.playlist)==null?void 0:K.playlist,N;v=(r==null?0:(N=r.contents)==null?0:N.length)?r:void 0;return w.return(v)})},G_G=function(I,y){var D,F,R,O,w;
return _.S(function(v){if(v.nextAddress==1)return D=I.JSC$17916_mainAppPlayer,v.yield(D.api,2);if(v.nextAddress!=3)return F=v.yieldResult,y.watchCommand?v.yield(EBT(I,y.watchCommand),3):v.return();R=v.yieldResult;if((O=R)==null||!O.contents)return v.return();w=R.contents.map(function(P){var K;return(K=P.playlistPanelVideoRenderer)==null?void 0:K.videoId}).filter(function(P){return!!P}).map(function(P){return{encrypted_id:P}});
F.updatePlaylist({video:w});_.Cj(v)})},XBb=function(I,y){var D,F,R;
return _.S(function(O){return O.nextAddress==1?(D=I.JSC$17916_mainAppPlayer,R=(F=y.playerParams)!=null?F:"",y.externalVideoId?O.yield(D.loadVideoWithPlayerVars({videoId:y.externalVideoId,audio_only:"1",player_params:R}),2):O.jumpTo(2)):y.watchCommand?O.yield(G_G(I,y),0):O.jumpTo(0)})};
dS.prototype.JSC$17916_pauseOnNavigation=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.pauseVideo();_.Cj(F)})};
dS.prototype.pauseVideo=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.pauseVideo();_.Cj(F)})};
dS.prototype.playVideo=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.playVideo();_.Cj(F)})};
var Qd1=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.mute();_.Cj(F)})},YtG=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.unMute();_.Cj(F)})};
dS.prototype.stopVideo=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return y=I.JSC$17916_mainAppPlayer,F.yield(y.api,2);D=F.yieldResult;D.stopVideo();_.Cj(F)})};
var fOy=function(I,y){return _.S(function(D){switch(D.nextAddress){case 1:switch(y){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_STOP":return D.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return D.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return D.jumpTo(6)}D.jumpTo(0);break;case 2:return D.yield(I.playVideo(),8);case 8:D.jumpTo(0);break;case 3:return D.yield(I.pauseVideo(),
9);case 9:D.jumpTo(0);break;case 4:return D.yield(I.stopVideo(),10);case 10:D.jumpTo(0);break;case 5:return D.yield(Qd1(I),11);case 11:D.jumpTo(0);break;case 6:return D.yield(YtG(I),12);case 12:D.jumpTo(0)}})};
dS.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v;return _.S(function(P){return P.nextAddress==1?(D=_.u(I,F6W),((F=D)==null?0:F.newPlaybackParams)||((R=D)==null?0:R.controlAction)?y.JSC$17916_mainAppPlayer?P.jumpTo(2):P.yield(qto(y),2):P.return()):((O=D)==null?0:O.newPlaybackParams)?(y.miniplayerService.isMiniplayerActive()&&((w=y.miniplayerService.getPlayerElement())==null||w.pause()),v=D.newPlaybackParams,v.externalVideoId||v.externalPlaylistId?P.yield(XBb(y,v),0):P.return()):P.yield(fOy(y,
D.controlAction),0)})};var ay=function(I){this.JSC$17922_commandHandler=I};
_.E(ay,rO);
ay.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return(D=_.u(I,mEO))?P.yield(_.Yz(),2):P.return();F=P.yieldResult;if(!F)return P.return();var K=F,r=(R=D)==null?void 0:R.languageCode,N=(O=D)==null?void 0:O.isAutoTranslated;K.getVideoData&&_.FRS(K).length&&((r=OB4(K,r,N))?K.setOption("captions","track",r):(K.setOption("captions","stickyLoading",{}),K.setOption("captions","track",{})));w=F.isSubtitlesOn()?_.zC("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.zC("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");v=_.xc(w,5E3);y.JSC$17922_commandHandler.resolveCommand(v);_.Cj(P)})};
ay[mw]=[_.MC];var cT=function(I,y){this.shortsPlayerPromise=I;this.JSC$17926_commandHandler=y};
_.E(cT,rO);
cT.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1)return(D=_.u(I,y2a))?r.yield(y.shortsPlayerPromise,2):r.return();F=r.yieldResult;var N=LRA(F);N!=null&&N.length||(F.loadModule("captions"),N=LRA(F));R=N;if((O=R)==null||!O.length)return w=_.zC("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.xc(w),y.JSC$17926_commandHandler.resolveCommand(v),r.return();F.toggleSubtitles();P=F.isSubtitlesOn()?_.zC("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.zC("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");K=_.xc(P);y.JSC$17926_commandHandler.resolveCommand(K);_.Cj(r)})};
cT[mw]=[_.gue,_.MC];var WT=function(I){this.JSC$17929_actionRouter=I;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(y,D){y.triggerAction("yt-dismiss-shopping-timely-shelf-action",D);(y=_.nR().resolve(_.fR(_.Pwu)))&&y.dismissFeaturedProductOverlay()}]])};
_.E(WT,rO);WT.prototype.resolveCommand=function(I){var y=this,D,F,R;return _.S(function(O){D=_.u(I,dEP);if((F=D)==null||!F.overlayId)return O.return();R=y.dismissPlayerOverlayActions.get(D.overlayId);if(!R)throw Error("Gi`"+D.overlayId);R(y.JSC$17929_actionRouter,D);_.Cj(O)})};
WT[mw]=[GV];var CL=function(I){this.JSC$17933_playerPromise=I};
_.E(CL,rO);CL.prototype.resolveCommand=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return(D=_.u(I,lIa))?w.yield(y.JSC$17933_playerPromise,2):w.return();F=w.yieldResult;R=F.getVideoData().video_id;D.videoId===R&&(O=Number(D.offsetFromVideoStartMilliseconds),O>=0&&F.seekTo(O/1E3));_.Cj(w)})};
CL[mw]=[_.qY];var nBT=_.fC("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),BT=function(I){this.store=I};
_.E(BT,rO);
var pBR=function(I){var y,D,F,R;return _.S(function(O){if(O.nextAddress==1)return y=_.Pi("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,D=_.Pi("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,F=y||D,I.JSC$17937_mainAppPlayer=new xg(F),O.yield(I.JSC$17937_mainAppPlayer.api,2);R=O.yieldResult;R.addEventListener("onStateChange",I.JSC$17937_playerStateChangeListener.bind(I));document.addEventListener("yt-page-data-updated",I.JSC$17937_pauseOnNavigation.bind(I));window.addEventListener("state-navigatestart",
I.JSC$17937_pauseOnNavigation.bind(I));_.Cj(O)})};
BT.prototype.JSC$17937_playerStateChangeListener=function(I){switch(I){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"}mRG(this)};
var mRG=function(I){I.store.dispatch(_.WS("sfvAudioItemCurrentlyPlayingEntity",nBT,{key:nBT,externalVideoId:I.externalVideoId,sfvAudioItemPlaybackState:I.playbackState,nowPlayingEntityValue:I.nowPlayingEntityValue}))};
BT.prototype.JSC$17937_pauseOnNavigation=function(){var I=this,y,D,F,R;return _.S(function(O){if(O.nextAddress==1){if(!I.JSC$17937_mainAppPlayer){var w=new _.g6("Error: mainAppPlayer is unavailable",I.JSC$17937_mainAppPlayer);_.vu(w);return O.return()}return O.yield(I.JSC$17937_mainAppPlayer.api,2)}y=O.yieldResult;F=(D=y)==null?void 0:D.getPlayerState();F!==1||(R=y)!=null&&R.pauseVideo();_.Cj(O)})};
BT.prototype.playVideo=function(I,y,D){var F=this,R,O;return _.S(function(w){if(w.nextAddress==1)return w.yield((R=F.JSC$17937_mainAppPlayer)==null?void 0:R.api,2);O=w.yieldResult;if(!F.JSC$17937_mainAppPlayer||!O){var v=new _.g6("Error: mainAppPlayer is unavailable",F.JSC$17937_mainAppPlayer);_.vu(v);return w.return()}return w.yield(F.JSC$17937_mainAppPlayer.loadVideoWithPlayerVars({videoId:F.externalVideoId,audio_only:"1",start:I/1E3,end:I/1E3+y,player_params:D}),0)})};
BT.prototype.pauseVideo=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1){if(!I.JSC$17937_mainAppPlayer){var R=new _.g6("Error: mainAppPlayer is unavailable",I.JSC$17937_mainAppPlayer);_.vu(R);return F.return()}return F.yield(I.JSC$17937_mainAppPlayer.api,2)}y=F.yieldResult;(D=y)==null||D.pauseVideo();_.Cj(F)})};
BT.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C;return _.S(function(H){if(H.nextAddress==1)return D=_.u(I,ZMg),R=(F=D)==null?void 0:F.nowPlayingEntityValue,w=(O=D)==null?void 0:O.externalVideoId,N=Number((r=(v=D)==null?void 0:(P=v.defaultStartPoints)==null?void 0:(K=P[0])==null?void 0:K.offsetMs)!=null?r:"0"),m=Number((f=(h=D)==null?void 0:(x=h.defaultStartPoints)==null?void 0:(q=x[0])==null?void 0:(X=q.duration)==null?void 0:X.seconds)!=null?f:"15"),C=(B=
(z=D)==null?void 0:z.playerParams)!=null?B:"",R&&w?y.JSC$17937_mainAppPlayer?H.jumpTo(2):H.yield(pBR(y),2):H.return();if(H.nextAddress!=6){if(y.nowPlayingEntityValue&&R===y.nowPlayingEntityValue)return y.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?H.yield(y.pauseVideo(),0):H.yield(y.playVideo(N,m,C),0);y.externalVideoId=w;y.nowPlayingEntityValue=R;y.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return H.yield(y.playVideo(N,m,C),6)}mRG(y);return H.jumpTo(0)})};
BT[mw]=[Gr];var ih=function(I){this.JSC$17955_commandHandler=I};
_.E(ih,rO);ih.prototype.resolveCommand=function(I,y){var D=this,F,R,O;return _.S(function(w){if(w.nextAddress==1)return(F=_.u(I,M1a))?w.yield(_.Yz(),2):w.return();R=w.yieldResult;if(!R)return w.return();(O=J6q(R))&&D.JSC$17955_commandHandler.resolveCommand(O,y);_.Cj(w)})};
ih[mw]=[_.MC];var AD=function(I){this.JSC$17961_commandHandler=I};
_.E(AD,rO);AD.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return(F=_.u(I,zeu))?P.yield(_.Yz(),2):P.return();R=P.yieldResult;if(!R)return P.return();(O=PxJ(R))?D.JSC$17961_commandHandler.resolveCommand(O,y):(w=_.zC("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),v=_.xc(w),D.JSC$17961_commandHandler.resolveCommand(v));_.Cj(P)})};
AD[mw]=[_.MC];var $h=function(I){this.JSC$17964_playerPromise=I};
_.E($h,rO);$h.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return(D=_.u(I,CLz))?R.yield(y.JSC$17964_playerPromise,2):R.return();F=R.yieldResult;F.isFullscreen()&&F.wakeUpControls();_.Cj(R)})};
$h[mw]=[_.qY];var bh=function(I){this.JSC$17967_playerPromise=I};
_.E(bh,rO);bh.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w;return _.S(function(v){if(v.nextAddress==1){D=_.u(I,uDu);if(!D)return v.return();F=D.overlayRenderer;return F?(R=_.u(F,bNf))?v.yield(y.JSC$17967_playerPromise,3):v.jumpTo(0):v.return()}O=v.yieldResult;O.renderChapterSeekingAnimation(1,_.rY(R.text),(w=R.icon)==null?void 0:w.iconType);_.Cj(v)})};
bh[mw]=[_.qY];var HT=function(I){this.store=I};
_.E(HT,rO);
HT.prototype.resolveCommand=function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1){D=_.u(I,RlM);if(!D)return O.return();F="";(R=y.store.getState().collabInviteLink)&&D.id===R.playlistId?F=R.inviteLinkURL:D.shortUrl&&(F=D.shortUrl);return F?O.yield(navigator.clipboard.writeText(F),3):O.jumpTo(0)}var w={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zC("COPY_LINK_SUCCESS_TOAST")}}}}};_.nR().resolve(_.MC).resolveCommand(w);_.Cj(O)})};
HT[mw]=[vT];var eS=function(I,y){this.innertubeTransportService=I;this.JSC$17977_commandHandler=y};
_.E(eS,rO);eS.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h;return _.S(function(x){if(x.nextAddress==1)return(F=_.u(I,_.P0))?x.yield(_.wP(D.innertubeTransportService,I,(R=y)==null?void 0:R.form),2):x.return();(O=x.yieldResult)&&O.errorMetadata&&(w=O,v=_.xc(w.error.message),D.JSC$17977_commandHandler.resolveCommand(v));P=O;if((K=P)==null?0:K.actions)for(r=_.J(P.actions),N=r.next();!N.done;N=r.next())h=N.value,D.JSC$17977_commandHandler.resolveCommand(h);_.Cj(x)})};
eS[mw]=[_.iX,_.MC];var Tc=function(){};
_.E(Tc,rO);Tc.prototype.resolveCommand=function(I){var y;return _.S(function(D){y=_.u(I,etP);if(!y)return D.return();(new X3M(y)).show();_.Cj(D)})};_.sr=new _.uk("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Vb=function(I,y,D,F){this.store=I;this.innertubeTransportService=y;this.controller=D;this.JSC$17985_commandHandler=F};
_.E(Vb,rO);
Vb.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA;return _.S(function(dq){if(dq.nextAddress==1){F=_.u(I,_.Lb);if(!F)return dq.return();if(F.clientActions){R=_.J(F.clientActions);for(O=R.next();!O.done;O=R.next())w=O.value,D.JSC$17985_commandHandler.resolveCommand(w,y);var $A,BH=y==null?void 0:($A=y.form)==null?void 0:$A.element;BH&&_.lj(BH,"yt-dismissible-item-action",F.clientActions)}return dq.yield(_.wP(D.innertubeTransportService,I,(v=
y)==null?void 0:v.form),2)}if(P=dq.yieldResult)P.errorMetadata?(K=P,r=_.xc(K.error.message),D.JSC$17985_commandHandler.resolveCommand(r),"error"in P&&((N=y)==null?0:(h=N.commandController)==null?0:h.onServerError)&&((x=y)==null||(q=x.commandController)==null||q.onServerError(I,P))):(X=y)==null||(f=X.commandController)==null||(z=(m=f).onSuccess)==null||z.call(m,I,P);B=P;((C=B)==null?0:C.collaborationInviteLink)&&F.playlistId&&(_.l("web_enable_invite_collaborators_link")||_.l("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
D.store.dispatch(_.Ec({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:F.playlistId,inviteLinkUrl:B.collaborationInviteLink}}));((H=B)==null?0:H.redirectEndpoint)&&D.JSC$17985_commandHandler.resolveCommand(B.redirectEndpoint);((e=B)==null?0:(T=e.newHeader)==null?0:T.playlistHeaderRenderer)?M$C(D.controller,B.newHeader.playlistHeaderRenderer):((L5=B)==null?0:(vH=L5.newHeader)==null?0:vH.musicEditablePlaylistDetailHeaderRenderer)&&M$C(D.controller,B.newHeader.musicEditablePlaylistDetailHeaderRenderer);
D.controller.playlistVideoListElement&&((u_=B)==null?0:(jW=u_.playlistEditResults)==null?0:(xA=jW[0])==null?0:xA.playlistEditVideoAddedResultData)&&((BH=D.controller.playlistVideoListElement)==null||BH.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:B.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Cj(dq)})};
Vb[mw]=[_.LM,_.iX,_.sr,_.MC];var Zb=function(I,y){this.controller=I;this.JSC$17995_commandHandler=y};
_.E(Zb,rO);Zb.prototype.resolveCommand=function(I,y){var D=this,F,R,O;return _.S(function(w){F=_.u(I,OPP);D.controller.showRefreshPill&&((R=F)==null?0:R.command)&&(D.JSC$17995_commandHandler.resolveCommand((O=F)==null?void 0:O.command,y),D.controller.showRefreshPill=!1);_.Cj(w)})};
Zb[mw]=[_.dx,_.MC];var gS=function(I,y){this.store=I;this.JSC$17999_commandHandler=y||_.M4.instance};
_.E(gS,rO);gS.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h;return _.S(function(x){F=_.u(I,hlM);R=D.store.getState().radioButtonGroup;if((O=F)==null?0:O.command)D.JSC$17999_commandHandler.resolveCommand((w=F)==null?void 0:w.command,y);else if(R&&((v=F)==null?void 0:v.formId)===R.currentFormId)for(P=Object.values(R.commandsMap),K=_.J(P),r=K.next();!r.done;r=K.next())N=r.value,(h=_.yz(N))&&D.JSC$17999_commandHandler.resolveCommand(h,y);_.Cj(x)})};
gS[mw]=[_.LM];var I$=new _.uk("USER_PREFS");var yQ=function(I){this.JSC$18004_prefCookie=I};
_.E(yQ,rO);yQ.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){(D=_.u(I,Wza))&&typeof D.useListView==="boolean"&&(_.cg(0,155,D.useListView),y.JSC$18004_prefCookie.save());_.Cj(F)})};
yQ[mw]=[I$];var DS=function(I){this.JSC$18008_prefCookie=I};
_.E(DS,rO);DS.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w;return _.S(function(v){D=_.u(I,sZu);if((F=D)==null||!F.gl)return v.return();R=D.gl;O={persist_gl:"1",gl:R};y.JSC$18008_prefCookie.set("gl",R);y.JSC$18008_prefCookie.save();w=k6O(O);_.FB(w);_.Cj(v)})};
DS[mw]=[I$];var FC=function(I){this.JSC$18012_prefCookie=I};
_.E(FC,rO);FC.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){D=_.u(I,JKg);if(!D)return R.return();F=!1;D.flagNum&&typeof D.value==="boolean"?(_.cg(0,D.flagNum,D.value),F=!0):D.key&&typeof D.stringValue==="string"&&(y.JSC$18012_prefCookie.set(D.key,D.stringValue),F=!0);F&&y.JSC$18012_prefCookie.save();_.Cj(R)})};
FC[mw]=[I$];var R$=new _.uk("PREF_STORAGE_PROMISE_TOKEN");var Op=function(I){this.JSC$18016_prefStoragePromise=I};
_.E(Op,rO);Op.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return(D=_.u(I,vFn))?R.yield(y.JSC$18016_prefStoragePromise,2):R.return();F=R.yieldResult;return F===void 0||D.key===void 0||D.value===void 0?R.return():R.yield(F.set(D.key,D.value),0)})};
Op[mw]=[R$];var LO=function(I){this.innertubeTransportService=I};
_.E(LO,rO);LO.prototype.resolveCommand=function(I,y){var D=this,F,R;return _.S(function(O){(F=_.u(I,_.uXa))&&F&&F.isFirstRequest&&(_.s$("search_overview_answer"),_.V_("so_rq",void 0,"search_overview_answer"));return O.yield(_.wP(D.innertubeTransportService,I,(R=y)==null?void 0:R.form),0)})};
LO[mw]=[_.iX];var zqb=function(){};
_.E(zqb,rO);
zqb.prototype.resolveCommand=function(I){var y,D,F,R,O,w,v,P,K;return _.S(function(r){y=_.u(I,xFu);if((D=y)==null?0:D.sectionIdentifier){if(y.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(R=(F=document.getElementsByTagName(y.sectionIdentifier))==null?void 0:F.item(0))R.scrollIntoView({behavior:"smooth"}),(O=PO5(R))&&O.focus({preventScroll:!0});return r.return()}w=document.querySelector("[section-identifier="+y.sectionIdentifier+"]");v=document.querySelector("[section-identifier="+y.referenceSectionIdentifier+
"]");if(!w)return r.return();P=y.verticalScrollOffsetDp?y.verticalScrollOffsetDp:0;v&&(P-=v.offsetTop);window.scrollTo({top:w.offsetTop+P,behavior:"smooth"});(K=PO5(w))&&K.focus({preventScroll:!0})}_.Cj(r)})};var JX=function(I){this.JSC$18028_commandHandler=I};
_.E(JX,rO);
JX.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P;return _.S(function(K){if(K.nextAddress==1){D=_.u(I,bYc);if(!D||!D.imageBytes||!navigator.clipboard)return K.return();if(D.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.vu(Error("Ii")),K.return();_.nj(K,2);R=(F=D)==null?void 0:F.imageBytes;O=R.replace(/-/g,"+").replace(/_/g,"/");w=Hnq(O);v={};P=[new ClipboardItem((v[w.type]=w,v))];return K.yield(navigator.clipboard.write(P),4)}if(K.nextAddress!=2)return D.successCommand&&
y.JSC$18028_commandHandler.resolveCommand(D.successCommand),_.lZ(K,0);_.dj(K);D.errorCommand&&y.JSC$18028_commandHandler.resolveCommand(D.errorCommand);_.Cj(K)})};
JX[mw]=[_.MC];var wd=function(I,y){this.innertubeTransportService=I;this.JSC$18032_commandHandler=y};
_.E(wd,rO);wd.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return(F=_.u(I,HYu))?P.yield(_.wP(D.innertubeTransportService,I,(R=y)==null?void 0:R.form),2):P.return();(O=P.yieldResult)&&O.errorMetadata&&F.onFailureCommand&&D.JSC$18032_commandHandler.resolveCommand(F.onFailureCommand);w=O;((v=w)==null?0:v.shareCommand)&&D.JSC$18032_commandHandler.resolveCommand(w.shareCommand,y);_.Cj(P)})};
wd[mw]=[_.iX,_.MC];var vY=function(){};
_.E(vY,rO);vY.prototype.resolveCommand=function(I){var y,D;return _.S(function(F){y=_.u(I,DLa);if(!y||!navigator.share)return F.return();D={url:y.url};try{return F.return(navigator.share(D))}catch(R){}_.Cj(F)})};var SB=function(){};
_.E(SB,rO);SB.prototype.resolveCommand=function(){return _.S(function(I){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Cj(I)})};var tX=function(I){this.JSC$18042_navigationConfirmationService=I};
_.E(tX,rO);tX.prototype.resolveCommand=function(){var I=this;return _.S(function(y){I.JSC$18042_navigationConfirmationService.cancelPendingNavigation();_.Cj(y)})};
tX[mw]=[Hy];var PY=function(I){this.JSC$18045_screenManager=I};
_.E(PY,rO);PY.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K;return _.S(function(r){R=(F=y.form)==null?void 0:F.event;w=(O=y.form)==null?void 0:O.element;if(!R)throw new _.g6("Event not passed in when resolving command");v=_.J(R.composedPath());for(P=v.next();!P.done;P=v.next())if(K=P.value,K.tagName==="YT-COPY-LINK-RENDERER")return K.copyUrlToClipboard(),w&&_.OP(D.JSC$18045_screenManager,w),r.return();_.Cj(r)})};
PY[mw]=[_.gi];var KO=function(){this.JSC$18049_miniAppClientDataProvider=_.nR().resolve(_.lB)};
_.E(KO,rO);KO.prototype.resolveCommand=function(){var I=this,y,D;return _.S(function(F){if(I.JSC$18049_miniAppClientDataProvider.clientData.has("video_id")){var R=I.JSC$18049_miniAppClientDataProvider,O=R.clientData.get("video_id");O&&R.clientData.delete("video_id");y="https://youtube.com/watch?v="+O;D=_.Tq(y);if(D===void 0)throw Error("Ji`"+y);_.wj(window,D)}_.Cj(F)})};var Up=function(){};
_.E(Up,rO);Up.prototype.resolveCommand=function(){return _.S(function(I){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Cj(I)})};var rd=function(){};
_.E(rd,rO);rd.prototype.resolveCommand=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.L7L(window.document.documentElement),2);(I=document.querySelector("mini-app-container-view-model iframe"))&&I.focus();_.Cj(y)})};var jB=function(I){this.JSC$18056_navigationConfirmationService=I};
_.E(jB,rO);
jB.prototype.resolveCommand=function(){var I=this;return _.S(function(y){var D=I.JSC$18056_navigationConfirmationService,F=_.nR().resolve(_.Wf),R;if(((R=D.navigateParams)==null?void 0:R.data)!==void 0){var O;_.dsg(F,D.navigateParams.endpoint,D.navigateParams.data,(O=D.navigateParams.navigationType)!=null?O:1,D.navigateParams.tempData,D.navigateParams.isMiniplayer,void 0,!0);D.navigateParams=void 0;D.customConfirmationCommand=void 0}else D.navigateParams&&(F.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);_.Cj(y)})};
jB[mw]=[Hy];var o$=function(){};
_.E(o$,rO);o$.prototype.resolveCommand=function(){return _.S(function(I){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Cj(I)})};var Nm=function(I){this.JSC$18061_prefStorage=I};
_.E(Nm,rO);Nm.prototype.resolveCommand=function(){var I=this,y,D;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(I.JSC$18061_prefStorage,2);case 2:return(y=F.yieldResult)?F.yield(y.set("sfvle",!1),3):F.return();case 3:return F.yield(y.set("sfvles",!0),4);case 4:D=_.a1(),_.cg(0,203,!1),_.cg(0,204,!0),D.save(),_.Cj(F)}})};
Nm[mw]=[R$];var hX=function(I){this.JSC$18064_prefStorage=I};
_.E(hX,rO);hX.prototype.resolveCommand=function(){var I=this,y,D;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(I.JSC$18064_prefStorage,2);case 2:return(y=F.yieldResult)?F.yield(y.set("sfvle",!0),3):F.return();case 3:return F.yield(y.set("sfvles",!0),4);case 4:D=_.a1(),_.cg(0,203,!0),_.cg(0,204,!0),D.save(),_.Cj(F)}})};
hX[mw]=[R$];_.k_e=new _.uk("SNACKBAR_CONTROLLER_TOKEN");_.dRa=new _.uk("SHOULD_SHOW_PIVOT_BAR_TOKEN");var x5=function(I){this.controller=I};
_.E(x5,rO);x5.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){D=_.u(I,Lfu);if(!D)return F.return();var R=y.controller;R.closeSnackbarFn&&R.closeSnackbarFn();_.Cj(F)})};
x5[mw]=[_.k_e];var le=function(I,y){this.controller=I;this.JSC$18071_sheetController=y};
_.E(le,rO);le.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P;return _.S(function(K){F=_.u(I,wyW);if(!F)return K.return();w=uOy(D.JSC$18071_sheetController,(R=y)==null?void 0:(O=R.form)==null?void 0:O.element);v=_.u(F.content,ubM);if(!v)return K.return();var r=D.controller,N=v,h=(P=F.animationStyle)!=null?P:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(r.showSnackbarFn)r.showSnackbarFn({snackbarViewModel:N,animationStyle:h,durationMs:F.durationSeconds*1E3,target:w});else throw Error("Cj");_.Cj(K)})};
le[mw]=[_.k_e,_.DP];var ue=function(){};
_.E(ue,rO);ue.prototype.resolveCommand=function(I){var y;return _.S(function(D){y=_.u(I,wZe);if(!y||typeof y.key!=="string"||typeof y.value!=="string")return D.return();window.localStorage.setItem(y.key,y.value);_.Cj(D)})};var qm=function(I){this.store=I};
_.E(qm,rO);qm.prototype.resolveCommand=function(I){var y=this,D;return _.S(function(F){D=_.u(I,Hlo);if(!D||!D.stepId||!D.token)return F.return();y.store.dispatch(DZe({stepId:D.stepId,token:D.token,isSelected:!1}));_.Cj(F)})};
qm[mw]=[vT];var Ep=function(I,y,D){this.innertubeTransportService=I;this.store=y;this.JSC$18083_screenManager=D};
_.E(Ep,rO);
Ep.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq;return _.S(function($A){D=_.u(I,ygO);if(!D||(F=D.stepIds)==null||!F.length)return $A.return();R=y.store.getState().talkToRecs;O=[];w=[];v=_.J(D.stepIds);for(P=v.next();!P.done;P=v.next())for(K=P.value,r=void 0,(N=(r=R.stepStates[K])==null?void 0:r.userQuery)&&w.push({userQuery:D.submitEmptyUserQuery?"":N.userQuery,userQueryToken:N.token}),x=h=void 0,q=(x=(h=R.stepStates[K])==null?void 0:
h.selectionStates)!=null?x:{},X=_.J(Object.entries(q)),f=X.next();!f.done;f=X.next())m=f.value,z=_.J(m),B=z.next().value,C=z.next().value,H=B,e=C,e.isSelected&&O.push(H);T={selectedChipTokens:O,userQueries:w,submittedStepIds:D.stepIds};L5={browseTalk2recsFormData:T};D.browseEndpoint?(vH=I,_.sv(vH,_.kc,D.browseEndpoint)):D.command&&(vH=D.command);if(!vH)return $A.return();u_=_.u(vH,_.IP);if((jW=u_)==null?0:jW.command)if(xA=_.u(u_.command,Vlf))dq=_.M4.instance,dq.resolveCommand(u_.command);return $A.yield(_.wP(y.innertubeTransportService,
vH,{formData:L5,disableCache:!0}).then(function(BH){(BH==null?0:BH.trackingParams)&&y.JSC$18083_screenManager.graftServerVe(BH==null?void 0:BH.trackingParams)}),0)})};
Ep[mw]=[_.iX,vT,_.gi];var Gs=function(I){this.store=I};
_.E(Gs,rO);
Gs.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){D=_.u(I,blH);if(!D||!D.stepId)return r.return();if(D.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")w=(O=(F=y.store.getState().talkToRecs.stepStates[D.stepId])==null?void 0:(R=F.userQuery)==null?void 0:R.userQuery)!=null?O:"",v=w.length>0?". ":"",P=w+v+D.selectedText,y.store.dispatch(Fba({stepId:D.stepId,userQueryToken:"",userQuery:P}));else if(D.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")y.store.dispatch(Fba({stepId:D.stepId,userQueryToken:"",
userQuery:(K=D.selectedText)!=null?K:""}));else{if(!D.token)return r.return();y.store.dispatch(DZe({stepId:D.stepId,token:D.token,isSelected:!0}))}_.Cj(r)})};
Gs[mw]=[vT];var XC=function(I){this.store=I};
_.E(XC,rO);XC.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P;return _.S(function(K){F=_.u(I,Dnn);if(!F||!F.stepId)return K.return();v=(w=(R=y)==null?void 0:(O=R.form)==null?void 0:O.userQuery)!=null?w:"";D.store.dispatch(Fba({stepId:F.stepId,userQuery:v,userQueryToken:(P=F.userQueryToken)!=null?P:""}));_.Cj(K)})};
XC[mw]=[vT];_.aOQ=new _.uk("TIMELY_ACTIONS_CONTROLLER_TOKEN");var QQ=function(I){this.controller=I};
_.E(QQ,rO);QQ.prototype.resolveCommand=function(I){var y=this,D,F,R,O;return _.S(function(w){D=_.u(I,oDa);if(!D)return w.return();F=D;R=F.id;O=F.isVisible;if(R===void 0||O===void 0)return w.return();var v;(v=y.controller.timelyActionsMap.get(R))==null||v(R,O);_.Cj(w)})};
QQ[mw]=[_.aOQ];var cY8=function(){this.timelyActionsMap=new Map};var Y5=function(I){this.JSC$18109_commandHandler=I};
_.E(Y5,rO);Y5.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w;return _.S(function(v){D=_.u(I,_.G9O);if(!D)return v.return();O=(F=D.item)==null?void 0:(R=F.notificationTextRenderer)==null?void 0:R.successResponseText;if(!O)return v.return();w=_.hS(O);y.JSC$18109_commandHandler.resolveCommand(w);_.Cj(v)})};
Y5[mw]=[_.MC];var fO=function(I,y){this.innertubeTransportService=I;this.JSC$18114_playerApiPromise=y};
_.E(fO,rO);
fO.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r;return _.S(function(N){if(N.nextAddress==1)return N.yield(y.JSC$18114_playerApiPromise,2);D=N.yieldResult;F=D.getOption("captions","track");R=Object.assign({},_.u(I,_.nFM));(w=(O=D.getVideoData())==null?void 0:O.video_id)?R.externalVideoId=w:_.o8(Error("Ki"));if((v=F)==null?0:v.languageCode)R.languageCode=F.languageCode;if((P=F)==null?0:P.kind)R.kind=F.kind;if((K=F)==null?0:K.name)R.name=F.name;r=Object.assign({},I,{getTranscriptEndpoint:R});return N.yield(_.wP(y.innertubeTransportService,
r),0)})};
fO[mw]=[_.iX,_.qY];var nO=function(){};
_.E(nO,rO);nO.prototype.resolveCommand=function(I){var y,D,F,R,O,w,v,P;return _.S(function(K){y=_.u(I,Ntn);if((D=y)==null||!D.paramKeyValuePairs)return K.return();F=window.location.href;R=_.J(y.paramKeyValuePairs);for(O=R.next();!O.done;O=R.next())w=O.value,w.key&&w.value&&(v={},F=_.uP(F,(v[w.key]=w.value,v)));P=_.nR().resolve(_.iL);_.By(P,F);_.Cj(K)})};_.pO=new _.uk("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var mT=function(I,y,D,F){this.controller=I;this.JSC$18121_playerApiPromise=y;this.innertubeTransportService=D;this.JSC$18121_commandHandler=F};
_.E(mT,rO);
mT.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B;return _.S(function(C){if(C.nextAddress==1){D=_.u(I,Bp_);if((F=D)==null||!F.watchEndpoint)return C.return();R=new zc;O=R.JSC$14445_getRequest(D.watchEndpoint);if(!O)return C.return();w=D.watchEndpoint.clickTrackingParams;return C.yield(_.U3(y.innertubeTransportService,O.innerTubeRequest,O.input,w,O.config),2)}if(C.nextAddress!=3)return v=C.yieldResult,C.yield(y.JSC$18121_playerApiPromise,3);P=C.yieldResult;P.updateVideoData({raw_watch_next_response:v});
if(q=(K=v)==null?void 0:(r=K.contents)==null?void 0:(N=r.twoColumnWatchNextResults)==null?void 0:(h=N.results)==null?void 0:(x=h.results)==null?void 0:x.contents)f=(X=q.find(function(H){return H.videoPrimaryInfoRenderer}))==null?void 0:X.videoPrimaryInfoRenderer,((m=f)==null?0:m.subtitle)&&W2b(y.controller,f.subtitle);
(B=(z=v)==null?void 0:z.onUiReady)&&y.JSC$18121_commandHandler.resolveCommand(B);_.Cj(C)})};
mT[mw]=[_.pO,_.qY,_.iX,_.MC];var ClQ=function(){this.subtitleChangeCallbackMap=new Map},W2b=function(I,y){I=_.J(I.subtitleChangeCallbackMap.values());
for(var D=I.next();!D.done;D=I.next())D=D.value,D(y)};var Mm=function(I,y){this.JSC$18131_commandHandler=I;this.innertubeTransportService=y};
_.E(Mm,rO);
Mm.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B;return _.S(function(C){switch(C.nextAddress){case 1:return(O=(F=y)==null?void 0:(R=F.form)==null?void 0:R.element)&&_.Rz(O),w=_.a1().get("hl"),v="",_.nj(C,2),C.yield(j4H(w),4);case 4:v=C.yieldResult;_.lZ(C,3);break;case 2:return _.dj(C),O&&_.OR(O),_.vu(Error("Mi"),"ERROR"),C.return();case 3:P=_.u(I,D1_);if(!P)return O&&_.OR(O),C.return();(N=(K=P.commerceActionConfig)==null?void 0:(r=K.commandLifeCycleConfig)==null?
void 0:r.onStartCommand)&&D.JSC$18131_commandHandler.resolveCommand(N);return C.yield(_.wP(D.innertubeTransportService,I,{client_data:{paymentsClientToken:{token:v}}}),5);case 5:(h=C.yieldResult)?(O&&_.OR(O),((f=h)==null?0:f.command)&&D.JSC$18131_commandHandler.resolveCommand(h.command),(B=(m=P.commerceActionConfig)==null?void 0:(z=m.commandLifeCycleConfig)==null?void 0:z.onSuccessCommand)&&D.JSC$18131_commandHandler.resolveCommand(B)):(O&&_.OR(O),_.vu(Error("Ni")),(X=(x=P.commerceActionConfig)==
null?void 0:(q=x.commandLifeCycleConfig)==null?void 0:q.onFailureCommand)&&D.JSC$18131_commandHandler.resolveCommand(X)),_.Cj(C)}})};
Mm[mw]=[_.MC,_.iX];var zs=function(I,y,D){this.store=I;this.JSC$18147_commandHandler=y;this.innertubeTransportService=D};
_.E(zs,rO);
zs.prototype.resolveCommand=function(I,y){var D=this,F,R,O,w,v,P,K,r,N;return _.S(function(h){F=_.u(I,FFz);R=F.googlePaymentPayload;F.onStartCommand&&D.JSC$18147_commandHandler.resolveCommand(F.onStartCommand);O=R.encryptedPurchaseParams;w=R.ypcLogWalletAnalyticDataEndpoint;v=F.serializedTransactionFlowLoggingParams;P=R.serializedPaymentsClientParams;K=F.ypcCujContext;N=hO5(D.innertubeTransportService,(r=y)==null?void 0:r.form,O,w,v,P,K);return h.return(N.then(function(x){oLo(y==null?void 0:y.form,
!1);var q=D.store,X=D.JSC$18147_commandHandler,f=x.integratorData;f==null||f===""||x.error!=null?(String(x.error)==="-1"&&F.onDismissCommand?X.resolveCommand(F.onDismissCommand):String(x.error)!=="-1"&&F.onFailureCommand&&X.resolveCommand(F.onFailureCommand),String(x.error)!=="-1"&&String(x.error)!=="132"&&_.vu(Error("Oi"),"ERROR")):(F.googlePaymentEntityKey&&q.dispatch(_.WS("commerceAcquisitionClientPayloadEntity",F.googlePaymentEntityKey,{key:F.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:f,
fundsGuaranteeCallbackClientData:x.integratorClientCallbackData}}})),F.onSuccessCommand&&X.resolveCommand(F.onSuccessCommand));_.Xs()},function(x){oLo(y==null?void 0:y.form,!1);
_.vu(x,"ERROR");F.onFailureCommand&&D.JSC$18147_commandHandler.resolveCommand(F.onFailureCommand)}))})};
zs[mw]=[Gr,_.MC,_.iX];var k5=function(I,y){this.JSC$18151_commandHandler=I;this.purchaseManager=y};
_.E(k5,rO);
k5.prototype.resolveCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r;return _.S(function(N){D=_.u(I,RGf);((F=D)==null?0:(R=F.commandLifeCycleConfig)==null?0:R.onStartCommand)&&y.JSC$18151_commandHandler.resolveCommand(D.commandLifeCycleConfig.onStartCommand);if(!((O=D)==null?0:(w=O.googlePaymentPurchaseManagerPayload)==null?0:w.securePayloadBytes))return _.vu(Error("Pi"),"ERROR"),N.return();v=VEP(_.ZC(D.googlePaymentPurchaseManagerPayload.securePayloadBytes));P=_.a1().get("hl");K=_.vS();GdC(v.serialize(),
P,function(h){K.resolve(h)},function(h){K.reject(h)},K.resolve);
r=K.promise;return N.return(r.then(function(h){if(h)if(h==null?0:h.errorCode){_.vu(Error("Qi`"+h.errorCode),"ERROR");var x,q;((x=D)==null?0:(q=x.commandLifeCycleConfig)==null?0:q.onFailureCommand)&&y.JSC$18151_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}else if(h==null?0:h.isCancelled){var X,f;((X=D)==null?0:(f=X.commandLifeCycleConfig)==null?0:f.onCancelCommand)&&y.JSC$18151_commandHandler.resolveCommand(D.commandLifeCycleConfig.onCancelCommand)}else{var m,z;((m=D)==
null?0:(z=m.commandLifeCycleConfig)==null?0:z.onSuccessCommand)&&y.JSC$18151_commandHandler.resolveCommand(D.commandLifeCycleConfig.onSuccessCommand)}},function(h){_.vu(h,"ERROR");
var x,q;((x=D)==null?0:(q=x.commandLifeCycleConfig)==null?0:q.onFailureCommand)&&y.JSC$18151_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}))})};
k5[mw]=[_.MC,Xdy];var BBa=function(I,y){this.JSC$18159_commandHandler=I;this.commandAllowlistOverride=y;var D;this.commandAllowlist=(D=this.commandAllowlistOverride)!=null?D:wsL};
BBa.prototype.handleResponse=function(I,y,D){var F,R=y==null?void 0:(F=y.config)==null?void 0:F.command;if(!R||this.commandAllowlist.some(function(O){return!!_.u(R,O)})){y=void 0;
D!==void 0&&(y={form:{element:D}});I.onResponseReceivedCommand&&this.JSC$18159_commandHandler.resolveCommand(I.onResponseReceivedCommand,y);I.onResponseReceivedAction&&this.JSC$18159_commandHandler.resolveCommand(I.onResponseReceivedAction,y);I.onResponseReceivedEndpoint&&this.JSC$18159_commandHandler.resolveCommand(I.onResponseReceivedEndpoint,y);I.command&&this.JSC$18159_commandHandler.resolveCommand(I.command,y);if(I.onResponseReceivedCommands)for(D=_.J(I.onResponseReceivedCommands),F=D.next();!F.done;F=
D.next())this.JSC$18159_commandHandler.resolveCommand(F.value,y);if(I.onResponseReceivedActions)for(D=_.J(I.onResponseReceivedActions),F=D.next();!F.done;F=D.next())this.JSC$18159_commandHandler.resolveCommand(F.value,y);if(I.onResponseReceivedEndpoints)for(D=_.J(I.onResponseReceivedEndpoints),F=D.next();!F.done;F=D.next())this.JSC$18159_commandHandler.resolveCommand(F.value,y);if(I.actions)for(I=_.J(I.actions),D=I.next();!D.done;D=I.next())this.JSC$18159_commandHandler.resolveCommand(D.value,y)}};
BBa[mw]=[_.MC,_.fR(JEe)];var iGa=new _.uk("INNERTUBE_TOKEN_SERVICE");var AYR=new _.uk("SCHEDULER_TOKEN");var $Re=function(I){this.scheduler=I;I={};this.tokenMap=(I.app={},I.user={},I)};
$Re.prototype.handleResponse=function(I,y){if(!y)throw Error("Ri");var D;if(I=(D=I.responseContext)==null?void 0:D.innertubeTokenJar){if(I.appTokens){var F,R,O;D=(F=y.innerTubeRequest.context)==null?void 0:(R=F.request)==null?void 0:(O=R.innertubeTokenJar)==null?void 0:O.appTokens;bGT(this,I.appTokens,this.tokenMap.app,D)}if(I.userTokens){var w,v,P;y=(w=y.innerTubeRequest.context)==null?void 0:(v=w.request)==null?void 0:(P=v.innertubeTokenJar)==null?void 0:P.userTokens;bGT(this,I.userTokens,this.tokenMap.user,
y)}}};
$Re.prototype.processContext=function(I){I.request||(I.request={});var y=Object.keys(this.tokenMap.app).length,D=Object.keys(this.tokenMap.user).length;if(y||D)I.request.innertubeTokenJar={},y&&(I.request.innertubeTokenJar.appTokens=[].concat(_.Td(Object.values(this.tokenMap.app).flat()))),D&&(I.request.innertubeTokenJar.userTokens=[].concat(_.Td(Object.values(this.tokenMap.user).flat())))};
var bGT=function(I,y,D,F){y=_.J(y);for(var R=y.next(),O={};!R.done;O={token$jscomp$139:void 0},R=y.next()){O.token$jscomp$139=R.value;if(O.token$jscomp$139.type===void 0)throw new _.g6("InnerTube token has no type",O.token$jscomp$139);if(O.token$jscomp$139.clearTokens)D[O.token$jscomp$139.type]=[];else if(O.token$jscomp$139.value!==void 0){D[O.token$jscomp$139.type]||(D[O.token$jscomp$139.type]=[]);if(F!==void 0&&F.length){R=_.J(F);for(var w=R.next(),v={};!w.done;v={requestToken:void 0},w=R.next())v.requestToken=
w.value,w=D[O.token$jscomp$139.type].findIndex(function(P){return function(K){return K===P.requestToken||(0,_.e$.equals)(K,P.requestToken)}}(v)),w>-1&&D[O.token$jscomp$139.type].splice(w,1)}D[O.token$jscomp$139.type].push(O.token$jscomp$139);
O.token$jscomp$139.maxAgeSeconds&&Number(O.token$jscomp$139.maxAgeSeconds)>0&&I.scheduler.addLowPriorityJob(function(P){return function(){var K=D[P.token$jscomp$139.type].indexOf(P.token$jscomp$139);K>-1&&D[P.token$jscomp$139.type].splice(K,1)}}(O),Number(O.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.g6("InnerTube token has no value",O.token$jscomp$139);
}};
$Re[mw]=[AYR];var HGa=new _.uk("LOCAL_INNERTUBE_ROUTER_TOKEN"),eqQ=new _.uk("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var dd=function(I){this.serviceMap=I};
dd.prototype.shouldPreferLocalResponse=function(I,y){return(I=TBR(this,I))?I.shouldPreferLocalResponse(y):!1};
dd.prototype.localInnertubeResponse=function(I,y){var D=this,F;return _.S(function(R){return(F=TBR(D,I))?R.return(F.localInnertubeResponse(y)):R.return(Promise.reject(Error("Si")))})};
dd.prototype.canProvideFallbackResponse=function(I,y){return(I=TBR(this,I))?I.canProvideFallbackResponse(y):!1};
dd.prototype.localFallbackInnertubeResponse=function(I,y){var D=this,F;return _.S(function(R){return(F=TBR(D,I))?R.return(F.localFallbackInnertubeResponse(y)):R.return(Promise.reject(Error("Si")))})};
var TBR=function(I,y){y=_.iP(y);return y?(I=I.serviceMap[y])?I:null:null};
dd[mw]=[eqQ];var As=function(){};
As.prototype.shouldPreferLocalResponse=function(){return!1};
As.prototype.localInnertubeResponse=function(){return _.S(function(I){return I.return(Promise.reject(Error("Ti")))})};
As.prototype.canProvideFallbackResponse=function(){return!0};
As.prototype.localFallbackInnertubeResponse=function(){var I,y,D;return _.S(function(F){I=mK("CLOSE_POPUP");y={openPopupAction:lvq()};D={actions:[I,y]};return F.return(D)})};var dBt=function(I,y){this.JSC$18208_upliftPromise=I;this.store=y};
_.L=dBt.prototype;_.L.shouldPreferLocalResponse=function(I){var y=I.videoId,D;if(D=y)D=eQB(this.store.getState().entities,I.videoId);return D&&TiA(this.store.getState().entities,y)?qi_(this.store.getState().entities,I.playlistId):!1};
_.L.localInnertubeResponse=function(I){var y=this,D;return _.S(function(F){return(D=y.getPlayerResponse(I))?F.return(Promise.resolve(D)):F.return(Promise.reject(Error("Ui")))})};
_.L.canProvideFallbackResponse=function(I){return!!I.videoId};
_.L.localFallbackInnertubeResponse=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.JSC$18208_upliftPromise,2);D=y.getPlayerResponse(I);var R;D?R=F.return(Promise.resolve(D)):R=$K(y.store.getState().entities,I.videoId)?F.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lo(_.zC("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:f2B()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
F.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lo(_.zC("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:YzS()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return R})};
_.L.getPlayerResponse=function(I){return lge(this.store.getState().entities,I.videoId)};var i0=function(I,y){this.localPlayerService=I;this.localWatchNextService=y};
i0.prototype.shouldPreferLocalResponse=function(I){var y=I.playerRequest;I=I.watchNextRequest;return!!(y&&this.localPlayerService.shouldPreferLocalResponse(y)&&I&&this.localWatchNextService.shouldPreferLocalResponse(I))};
i0.prototype.localInnertubeResponse=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1){D=I.playerRequest;F=I.watchNextRequest;if(!D||!F)throw new _.g6("Missing streaming request",I);return w.yield(y.localPlayerService.localInnertubeResponse(D),2)}if(w.nextAddress!=3)return R=w.yieldResult,w.yield(y.localWatchNextService.localInnertubeResponse(F),3);O=w.yieldResult;return w.return({playerResponse:R,watchNextResponse:O})})};
i0.prototype.canProvideFallbackResponse=function(I){var y=I.playerRequest;I=I.watchNextRequest;return!!(y&&this.localPlayerService.canProvideFallbackResponse(y)&&I&&this.localWatchNextService.canProvideFallbackResponse(I))};
i0.prototype.localFallbackInnertubeResponse=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D=I.playerRequest,F=I.watchNextRequest,D&&F?w.yield(y.localPlayerService.localFallbackInnertubeResponse(D),2):w.return(Promise.reject(new _.g6("Missing streaming request",I)));if(w.nextAddress!=3)return R=w.yieldResult,w.yield(y.localWatchNextService.localFallbackInnertubeResponse(F),3);O=w.yieldResult;return w.return({playerResponse:R,watchNextResponse:O})})};var Ww=function(I){this.JSC$18218_persistentStorePromiseAccessor=I};
Ww.prototype.shouldPreferLocalResponse=function(){return!1};
Ww.prototype.localInnertubeResponse=function(){return _.S(function(I){return I.return(Promise.reject(Error("Vi")))})};
Ww.prototype.canProvideFallbackResponse=function(){return!0};
Ww.prototype.localFallbackInnertubeResponse=function(){var I=this,y,D;return _.S(function(F){return F.nextAddress==1?F.yield(I.JSC$18218_persistentStorePromiseAccessor(),2):F.nextAddress!=3?(y=F.yieldResult)?F.yield(y.get("service:guide:fallback"),3):F.return(Promise.reject(Error("Wi"))):(D=F.yieldResult)&&_.qv(D)?F.return(ELt(_.qv(D))):F.return(Promise.reject(Error("Xi")))})};var $1=function(){};
$1.prototype.shouldPreferLocalResponse=function(){return!1};
$1.prototype.localInnertubeResponse=function(){return _.S(function(I){return I.return(Promise.reject(Error("Yi")))})};
$1.prototype.canProvideFallbackResponse=function(){return!0};
$1.prototype.localFallbackInnertubeResponse=function(){var I,y,D;return _.S(function(F){I=mK("CLOSE_POPUP");y={openPopupAction:lvq()};D={actions:[I,y]};return F.return(D)})};var cw=function(){this.urlMap=sde;this.fallbackCommand=_.e1};
cw.prototype.shouldPreferLocalResponse=function(I){return(I=I.url)?!!V$a(this,I):!1};
cw.prototype.localInnertubeResponse=function(I){var y=this,D;return _.S(function(F){return(D=I.url)?F.return(ZGC(I,V$a(y,D))):F.return(Promise.reject(Error("Zi")))})};
cw.prototype.canProvideFallbackResponse=function(){return!0};
cw.prototype.localFallbackInnertubeResponse=function(I){var y=this,D,F,R,O,w,v,P;return _.S(function(K){D=I.url;if(!D)return K.return(ZGC(I,y.fallbackCommand));if(F=V$a(y,D))return K.return(ZGC(I,F));R=void 0;O=_.iP(D);O==="/watch"&&(w=_.rR(D,"v"))&&(P=(v=_.rR(D,"list"))!=null?v:void 0,R=_.xK(w,P));R||(R=y.fallbackCommand);return K.return(ZGC(I,R))})};
var V$a=function(I,y){if(y)return I.urlMap[_.LE(y)]},ZGC=function(I,y){y&&I.parentTrackingParams&&(y.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:I.parentTrackingParams}},y.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:y})};var Cx=function(I,y,D){this.JSC$18229_upliftPromise=I;this.store=y;this.JSC$18229_persistentStorePromiseAccessor=D};
Cx.prototype.shouldPreferLocalResponse=function(){return!1};
Cx.prototype.localInnertubeResponse=function(){return _.S(function(I){return I.return(Promise.reject(Error("$i")))})};
Cx.prototype.canProvideFallbackResponse=function(){return!0};
Cx.prototype.localFallbackInnertubeResponse=function(){var I=this;return _.S(function(y){return y.return(gBG(I))})};
var gBG=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(u0(I.JSC$18229_upliftPromise,I.store),2);y=F.yieldResult;D={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[uv4(y)]}}}};return F.return(IZo(I,D))})},IZo=function(I,y){var D,F;
return _.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$18229_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3)return D=R.yieldResult,R.yield(ER(D),3);F=R.yieldResult;return R.return({responseContext:{},contents:y,topbar:F})})};var dT=function(I,y,D){this.JSC$18236_upliftPromise=I;this.store=y;this.JSC$18236_persistentStorePromiseAccessor=D};
dT.prototype.shouldPreferLocalResponse=function(I){var y=I.videoId;return y&&eQB(this.store.getState().entities,y)&&TiA(this.store.getState().entities,y)?qi_(this.store.getState().entities,I.playlistId):!1};
dT.prototype.localInnertubeResponse=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return(D=I.videoId)?R.yield(y.JSC$18236_upliftPromise,2):R.return(Promise.reject(Error("aj")));if(R.nextAddress!=3)return R.yield(yv1(y,I,D),3);F=R.yieldResult;return R.return(DJb(y,F,D))})};
dT.prototype.canProvideFallbackResponse=function(I){return I.videoId?!0:!1};
dT.prototype.localFallbackInnertubeResponse=function(I){var y=this,D,F,R,O;return _.S(function(w){switch(w.nextAddress){case 1:return(D=I.videoId)?w.yield(y.JSC$18236_upliftPromise,2):w.return(Promise.reject(Error("aj")));case 2:return w.yield(yv1(y,I,D),3);case 3:F=w.yieldResult;if($K(y.store.getState().entities,D)){w.jumpTo(4);break}return w.yield(u0(y.JSC$18236_upliftPromise,y.store),5);case 5:return R=w.yieldResult,w.return(F5e(F,R));case 4:return eQB(y.store.getState().entities,D)&&TiA(y.store.getState().entities,
D)?w.return(DJb(y,F,D)):(O={title:_.lo(_.zC("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:f2B()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},w.return(F5e(F,O)))}})};
var yv1=function(I,y,D){var F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return F=y.playlistId,R=_.xK(D,F),P.yield(I.JSC$18236_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3)return O=P.yieldResult,P.yield(ER(O),3);w=P.yieldResult;v={responseContext:{},currentVideoEndpoint:R,topbar:w};return P.return(v)})},DJb=function(I,y,D){if(I=$K(I.store.getState().entities,D)){var F;
D=I.videoEntity;var R,O={title:uo(D.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.ql((F=D.localizedStrings)==null?void 0:F.viewCount),viewCount:_.ql((R=D.localizedStrings)==null?void 0:R.viewCount)}}};D.publishedTimestampMillis&&(O.dateText=_.ql(iN_(new Date(Number(D.publishedTimestampMillis)))));F={videoPrimaryInfoRenderer:O};R=I.videoEntity;I=I.channelEntity;I={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:uo(_.zC("SHOW_MORE",void 0,"Show more")),
showLessText:uo(_.zC("SHOW_LESS",void 0,"Show less")),description:R.formattedDescription,owner:{videoOwnerRenderer:{title:uo(I.title),thumbnail:I.avatar}}}};y.contents={twoColumnWatchNextResults:{results:{results:{contents:[F,I]}}}}}return y},F5e=function(I,y){I.contents={singleColumnWatchNextResults:{results:{results:{contents:[uv4(y)]}}}};
return I};var Bw=function(I,y,D){this.JSC$18241_upliftPromise=I;this.store=y;this.JSC$18241_persistentStorePromiseAccessor=D};
Bw.prototype.shouldPreferLocalResponse=function(){return!1};
Bw.prototype.localInnertubeResponse=function(){return _.S(function(I){return I.return(Promise.reject(Error("bj")))})};
Bw.prototype.canProvideFallbackResponse=function(){return!0};
Bw.prototype.localFallbackInnertubeResponse=function(){var I=this,y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return O.yield(I.JSC$18241_persistentStorePromiseAccessor(),2);case 2:return y=O.yieldResult,O.yield(ER(y),3);case 3:return D=O.yieldResult,F={responseContext:{},topbar:D},O.yield(I.JSC$18241_upliftPromise,4);case 4:return O.yield(u0(I.JSC$18241_upliftPromise,I.store),5);case 5:return R=O.yieldResult,F.watchStatus={backgroundPromoRenderer:R},O.return(F)}})};var RBo=new _.uk("ENDPOINT_MAP"),OWa=new _.uk("WATCH_ENDPOINT_MAP"),L51=new _.uk("REEL_ENDPOINT_MAP");var nLL=/^[a-zA-Z0-9_\-]{11}$/;var pEo=_.eq(function(){var I,y;return(y=(I=window).matchMedia)==null?void 0:y.call(I,"(prefers-reduced-motion: reduce)").matches});var JvC=_.eq(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 I=_.jF("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");I||(I=_.kW("VIDEO"),_.fv("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
I));return!!(I&&I.canPlayType&&I.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var w51=XMLHttpRequest.prototype.fetch,vWQ=w51&&w51.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Qx?!0:!1;var a$=function(I){this.JSC$18252_storeWithEntities=I};
_.E(a$,v9);_.L=a$.prototype;_.L.getApiPaths=function(){return HpM};
_.L.getExtension=function(I){return _.u(I,_.t9)||_.u(I,_.WF)||_.u(I,c2f)};
_.L.isNavigationCommand=function(){return!0};
_.L.JSC$14452_getStoreKey=function(I){if((_.l("kevlar_cache_on_ttl_player")||_.l("mweb_enable_shorts_innertube_player_prefetch")||_.l("mweb_use_new_history_manager")||_.l("web_shorts_prefetch_service_enabled"))&&(I=this.getExtension(I))&&I.videoId){var y={videoId:I.videoId};I.playlistId&&(y.playlistId=I.playlistId);I.playerParams&&(y.params=I.playerParams);return _.Sk("player",y)}};
_.L.JSC$14445_getClientScreen=function(I){var y;return((y=I.contentPlaybackContext)==null?void 0:y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.L.JSC$14445_buildRequest=function(I,y,D){if(_.l("enable_interstitial_entity_check")){var F=this.JSC$18252_storeWithEntities;if(y.videoId)for(var R=_.J(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),O=R.next();!O.done;O=R.next()){O=O.value;var w;var v=void 0,P=void 0,K=y.videoId,r=O;(w=F)?(K=_.fC(K+r,"interstitialInteractionStateEntity"),w=(v=(P=_.nC(w.getState().entities,"interstitialInteractionStateEntity",K))==null?void 0:P.primaryButtonClicked)!=null?v:!1):w=!1;if(w)switch(O){case "CONTENT_CHECK_REQUIRED":y.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":y.racyCheckOk=!0}}}y.videoId&&(I.videoId=y.videoId);y.playlistId&&(I.playlistId=y.playlistId);y.index!==void 0&&(I.playlistIndex=y.index+1);y.playerParams&&(I.params=y.playerParams);"startTimeSeconds"in y&&y.startTimeSeconds&&(_.l("enable_player_request_builder_start_time_floor")?I.startTimeSecs=Math.floor(y.startTimeSeconds):I.startTimeSecs=y.startTimeSeconds);D.contentPlaybackContext&&(I.playbackContext={contentPlaybackContext:D.contentPlaybackContext});D.prefetchPlaybackContext&&
(I.playbackContext=Object.assign({},I.playbackContext,{prefetchPlaybackContext:D.prefetchPlaybackContext}),I.context.request||(I.context.request={}),I.context.request.isPrefetch=!0);I.playbackContext||(I.playbackContext={});F=JvC();I.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!F,supportXhr:vWQ};D.overrideMutedAtStart&&(I.overrideMutedAtStart=D.overrideMutedAtStart);I.racyCheckOk=!!y.racyCheckOk;I.contentCheckOk=!!y.contentCheckOk;!_.l("captions_prefs_killswitch")&&(D=(D=_.bX("yt-player-caption-language-preferences"))?
D:[],D==null?0:D.length)&&(I.captionParams={viewerSelectedCaptionLangs:D})};
_.L.getRequestConfig=function(I){I=this.JSC$14452_getStoreKey(I);var y;I&&(y={storeStrategy:{storeKey:I}});_.l("web_log_player_watch_next_ticks")&&(y=y||{},y.requestTick="ps_s",y.responseTick="ps_r");return y};
a$[mw]=[Gr];var cY=function(I,y){this.playerRequestBuilder=I;this.watchNextRequestBuilder=y};
_.E(cY,v9);cY.prototype.getApiPaths=function(){return k3c};
cY.prototype.getExtension=function(I){return _.u(I,_.t9)};
cY.prototype.isNavigationCommand=function(){return!0};
cY.prototype.JSC$14445_buildRequest=function(I,y,D){I.playerRequest={};this.playerRequestBuilder.JSC$14445_buildRequest(I.playerRequest,y,D);if(_.l("web_streaming_watch")||_.l("mweb_streaming_watch"))I.watchNextRequest={},this.watchNextRequestBuilder.JSC$14445_buildRequest(I.watchNextRequest,y,D)};
cY[mw]=[a$,zc];var SWY;_.WY=new _.uk("SHORTS_CONTROLLER_TOKEN");SWY=new _.uk("SHORTS_STATE_STORE_TOKEN");var CO=function(I,y){var D=_.go.apply(2,arguments);I=I===void 0?0:I;_.g6.call(this,y,D);this.errorType=I;Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(CO,_.g6);var tTb,PD8,K5g,c1o,wu,Zmt,jDy,rvY,lZe,hB1,NMg;tTb=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(I){return I+"="}).join("|"));
PD8=RegExp(".*\\?.*playnext=1.*");K5g=function(I,y,D,F,R,O){this.watchEndpointMap=I;this.reelWatchEndpointMap=y;this.innerTubeTransportService=D;this.fetchPbj=F;this.ephemeralStore=R;this.reloadOnPlayerFailure=O===void 0?!0:O};
_.UJ8=function(I,y){var D=_.kf("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;var F;if((F=_.u(y.commandMetadata,_.nE))==null||!F.rootVe)return D&&_.tq(Error("gj")),!1;var R;F=(R=_.u(y.commandMetadata,_.nE))==null?void 0:R.url;if(!F)return D&&_.tq(Error("hj")),!1;if(PD8.test(F))return!0;if(tTb.test(F))return D&&_.tq(Error("ij`"+F)),!1;if(_.u(y,_.t9)){if(!(I.watchEndpointMap.watchNext&&I.watchEndpointMap.player||_.l("kevlar_fetch_initial_data_op_watch_client")))return D&&_.tq(Error("cj")),!1;
I=_.kf("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;_.u(y,_.t9)?YiB(y)?y=!0:(I&&_.tq(Error("dj")),y=!1):(I&&_.tq(Error("cj")),y=!1);return y}if(_.u(y,_.WF))return fvL(y);if(_.u(y,_.Jz))return!0;I=_.JZ(I.innerTubeTransportService,y);!I&&D&&_.vu(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(y)});return I};
c1o=function(I,y,D,F,R,O){y={url:y};if(D==null?0:D.itct)y.parentTrackingParams=D.itct;var w=_.NP(DcR);return _.U3(I.innerTubeTransportService,y,w).then(function(v){(v=v.endpoint)||(v=_.e1);(D==null?0:D.itct)&&v&&!v.trackingParams&&(v.trackingParams=D.itct);var P=aq(v);return wu(I,v,D,F,P,R,O)})};
wu=function(I,y,D,F,R,O,w,v){v=v===void 0?{}:v;if(I.fetchPbj&&!_.UJ8(I,y)&&!_.l("force_one_platform")){var P=I.fetchPbj(y),K=_.Xs(P.then(function(e){if(!e)throw Error("kj");w(K)||O(y,e);return e}));
return K}var r,N,h={rootVe:(r=_.u(y.commandMetadata,_.nE))==null?void 0:r.rootVe,url:(N=_.u(y.commandMetadata,_.nE))==null?void 0:N.url,endpoint:y,page:R};if(_.u(y,_.t9)){var x,q={contentPlaybackContext:_.X9(D,(x=_.u(y.commandMetadata,_.nE))==null?void 0:x.url,F)},X=_.vS(),f,m=(f=I.watchEndpointMap.player)==null?void 0:f().JSC$14452_getStoreKey(y);f=m!==void 0&&((P=I.ephemeralStore)==null?void 0:P.has(m));(_.l("web_streaming_watch")||_.l("mweb_streaming_watch"))&&window.TextDecoderStream&&!f?(P=mhO(I.innerTubeTransportService,
y,q,function(e){!h.response&&e.content&&(h.response=e.content);!h.playerResponse&&e.player&&(h.playerResponse=e.player);O(y,h)}),m=s7q(y),m.length&&(h.preconnect=m,O(y,h)),rvY(P,X,h).catch(function(e){e instanceof CO&&e.errorType===2&&_.l("web_streaming_watch_fallback")&&jDy(I,y,q,h,O,w,X)})):jDy(I,y,q,h,O,w,X);
return X.promise}if(_.u(y,_.WF)){var z;if(((z=_.u(y,_.WF))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B=_.vS();_.oWy(_.nR().resolve(_.WY),y).then(function(e){NMg(I,D,F,R,O,B,e)});
return B.promise}P=_.Xs();f={contentPlaybackContext:_.X9(D,(m=_.u(y.commandMetadata,_.nE))==null?void 0:m.url,F)};(m=I.reelWatchEndpointMap.player)&&(m=m().JSC$14445_getRequest(y,f))&&(P=_.U3(I.innerTubeTransportService,m.innerTubeRequest,m.input,y.clickTrackingParams,m.config));m=_.Xs();(v=I.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$14445_getRequest(y))&&(m=_.U3(I.innerTubeTransportService,v.innerTubeRequest,v.input,y.clickTrackingParams,v.config));v=_.Xs();(r=I.reelWatchEndpointMap.reelWatchSequence)&&
_.u(y,_.WF).sequenceParams&&(f=r().JSC$14445_getRequest(y,f))&&(v=_.U3(I.innerTubeTransportService,f.innerTubeRequest,f.input,y.clickTrackingParams,f.config));f=_.Xs(h);r=_.vS();hB1(y,f,P,m,v,O,w,r);return r.promise}var C;if(_.u(y,JaL)&&((C=_.u(y.commandMetadata,_.nE))==null?0:C.url))return P=Sdq(_.ob(st().location.href),_.ob(_.u(y.commandMetadata,_.nE).url)).toString(),c1o(I,P,D,F,O,function(){return!1});
if(_.u(y,_.Jz))return O(y,h),_.Xs(h);if(_.JZ(I.innerTubeTransportService,y)){P=Object.assign({},{tempData:D,disableCache:D.disableCache},v);var H=_.wP(I.innerTubeTransportService,y,P).then(function(e){h.response=e;w(H)||O(y,h);return h});
return H}return _.Xs(h)};
_.xJo=function(I,y,D,F){if(_.u(y,_.t9)||_.u(y,_.WF)&&(_.l("mweb_enable_shorts_innertube_player_prefetch")||_.l("kevlar_enable_shorts_prefetch_in_sequence"))||_.u(y,c2f)&&_.l("web_enable_prefetching_videos_on_home")){var R,O={contentPlaybackContext:_.X9(D,(R=_.u(y.commandMetadata,_.nE))==null?void 0:R.url,F),prefetchPlaybackContext:Mho(D)},w,v,P;if(((w=_.u(y,_.t9))==null?void 0:(v=w.watchEndpointSupportedPrefetchConfig)==null?void 0:(P=v.prefetchHintConfig)==null?void 0:P.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(D=
I.watchEndpointMap.watchNext)if(O=D().JSC$14445_getRequest(y,O))return Promise.resolve(_.U3(I.innerTubeTransportService,O.innerTubeRequest,O.input,void 0,O.config).then(function(N){return N}))}else if(D=I.watchEndpointMap.player)if(O=D().JSC$14445_getRequest(y,O))return Promise.resolve(_.U3(I.innerTubeTransportService,O.innerTubeRequest,O.input,void 0,O.config).then(function(N){return N}))}else if(_.JZ(I.innerTubeTransportService,y)){var K={tempData:D},r=Qwz(I.innerTubeTransportService,y);
return r?new Promise(function(N,h){var x,q;return _.S(function(X){if(X.nextAddress==1)return X.yield(r,2);if(X.nextAddress!=4)return x=X.yieldResult,x.JSC$14452_getStoreKey(y,K)?X.yield(_.wP(I.innerTubeTransportService,y,K),4):(h(new _.g6("Prefetching request builder with no store key.",y)),X.jumpTo(0));q=X.yieldResult;N(q);_.Cj(X)})}):Promise.reject(new _.g6("Prefetching unregistered request builder.",y))}return Promise.reject(new _.g6("No request builder available to prefetch endpoint.",y))};
Zmt=function(I,y){var D,F,R;if(_.u(y,_.t9)){var O=I.watchEndpointMap.watchNext;O&&(D=O());(I=I.watchEndpointMap.player)&&(F=I())}else if(_.u(y,_.WF))(O=I.reelWatchEndpointMap.reelItemWatch)&&(D=O()),(O=I.reelWatchEndpointMap.player)&&(F=O()),(I=I.reelWatchEndpointMap.reelWatchSequence)&&(R=I());else{a:{I=A8W(y,I.innerTubeTransportService.endpointMap);if(I!==void 0)if(typeof I.then==="function")_.vu(new _.g6("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",y));else break a;
I=void 0}I&&(D=I)}var w,v,P;return{content:(w=D)==null?void 0:w.JSC$14452_getStoreKey(y),player:(v=F)==null?void 0:v.JSC$14452_getStoreKey(y),reelSequence:(P=R)==null?void 0:P.JSC$14452_getStoreKey(y)}};
jDy=function(I,y,D,F,R,O,w){var v=_.Xs(),P=I.watchEndpointMap.player;_.l("web_streaming_player")&&(P=DX(cY));P&&(P=P().JSC$14445_getRequest(y,D))&&(v=_.U3(I.innerTubeTransportService,P.innerTubeRequest,P.input,y.clickTrackingParams,P.config));P=_.Xs();var K=I.watchEndpointMap.watchNext;K&&(D=K().JSC$14445_getRequest(y,D))&&(P=_.U3(I.innerTubeTransportService,D.innerTubeRequest,D.input,y.clickTrackingParams,D.config));F=_.Xs(F);lZe(I,y,F,v,P,R,O,w)};
rvY=function(I,y,D){var F;return _.S(function(R){if(R.nextAddress==1)return R.yield(I,2);_.l("web_streaming_watch_delay_200")||_.l("web_streaming_watch_delay_400")?(F=_.l("web_streaming_watch_delay_200")?200:400,setTimeout(function(){y.resolve(D)},F)):y.resolve(D);
_.Cj(R)})};
lZe=function(I,y,D,F,R,O,w,v){var P,K,r,N,h;_.S(function(x){switch(x.nextAddress){case 1:return x.yield(D,2);case 2:P=x.yieldResult;if(w(v.promise))return v.resolve(P),x.return();O(y,P);K=s7q(y);if(!K.length){x.jumpTo(3);break}return x.yield(D,4);case 4:P.preconnect=K,O(y,P);case 3:return _.nj(x,5),x.yield(F,7);case 7:r=x.yieldResult;_.lZ(x,6);break;case 5:return N=_.dj(x),v.reject(N),x.return();case 6:if(r===void 0&&I.reloadOnPlayerFailure)return P.reload=!0,O(y,P),v.resolve(P),x.return();if(w(v.promise))return v.resolve(P),
x.return();P.playerResponse=r;O(y,P);(_.l("web_watch_stop_scheduler_on_player_response")||_.l("mweb_watch_stop_scheduler_on_player_response"))&&z3_();_.nj(x,8);return x.yield(R,10);case 10:h=x.yieldResult;_.lZ(x,9);break;case 8:_.dj(x);case 9:if(h===void 0)return P.response={responseContext:{}},v.resolve(P),x.return();if(w(v.promise))return v.resolve(P),x.return();P.response=h;O(y,P);v.resolve(P);_.Cj(x)}})};
hB1=function(I,y,D,F,R,O,w,v){var P,K,r,N,h,x;_.S(function(q){switch(q.nextAddress){case 1:return q.yield(y,2);case 2:P=q.yieldResult;if(w(v.promise))return v.resolve(P),q.return();O(I,P);K=s7q(I);if(!K.length){q.jumpTo(3);break}return q.yield(y,4);case 4:P.preconnect=K,O(I,P);case 3:return _.nj(q,5),q.yield(D,7);case 7:r=q.yieldResult;_.lZ(q,6);break;case 5:return N=_.dj(q),v.reject(N),q.return();case 6:if(r===void 0)return P.reload=!0,O(I,P),v.resolve(P),q.return();if(w(v.promise))return v.resolve(P),
q.return();P.playerResponse=r;O(I,P);(_.l("web_shorts_stop_scheduler_on_player_response")||_.l("mweb_shorts_stop_scheduler_on_player_response"))&&z3_();_.nj(q,8);return q.yield(F,10);case 10:h=q.yieldResult;_.lZ(q,9);break;case 8:_.dj(q);case 9:if(h===void 0)return P.response={responseContext:{}},v.resolve(P),q.return();if(w(v.promise))return v.resolve(P),q.return();P.response=h;O(I,P);_.nj(q,11);return q.yield(R,13);case 13:x=q.yieldResult;_.lZ(q,12);break;case 11:_.dj(q);case 12:if(w(v.promise))return v.resolve(P),
q.return();x&&(P.reelWatchSequenceResponse=x);O(I,P);v.resolve(P);_.Cj(q)}})};
NMg=function(I,y,D,F,R,O,w){var v,P,K,r,N,h;_.S(function(x){if((v=w)==null||!v.replacementEndpoint)return O.reject(),x.return();P=w.replacementEndpoint;(K=_.u(P,_.WF))?(w.sequenceContinuation&&(K.sequenceParams=w.sequenceContinuation),r=_.nR().resolve(_.WY),N=K.sequenceParams,uma(r,P)&&delete K.sequenceParams,h=wu(I,P,y,D,F,R,function(){return!1}),h.then(function(q){return _.S(function(X){if(X.nextAddress==1)return qWg(r,{reelWatchEndpoint:{sequenceParams:N}},q),X.yield(0,2);
O.resolve(q);_.Cj(X)})})):O.reject();
_.Cj(x)})};
K5g[mw]=[OWa,L51,_.iX,_.fR(qhM),_.fR(_.aK)];var EWC=function(){var I=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return I.sequenceMap}}},M3u=function(I,y,D){var F,R=(F=y.config)==null?void 0:F.sequenceStrategy;
if(!R)return D();I.sequenceMap.has(R.sequenceKey)||I.sequenceMap.set(R.sequenceKey,[]);I=I.sequenceMap.get(R.sequenceKey);switch(R.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return G6y(I,y,D);case "REQUEST_SEQUENCE_TYPE_REPLACE":return X5Y(I,y,D);default:throw new _.g6("Request could not be sequenced",y);}},G6y=function(I,y,D){var F,R,O;
return _.S(function(w){I.length>0?(R=I[I.length-1],F=R.responsePromise.then(function(){return D()})):F=D();
O={request:y,responsePromise:F};I.push(O);QD1(I,O);return w.return(O.responsePromise)})},X5Y=function(I,y,D){D=D();
if(I.length>0)for(var F=_.J(I),R=F.next();!R.done;R=F.next())R.value.responsePromise=D;var O={request:y,responsePromise:D};I.push(O);QD1(I,O);return Promise.resolve().then(function(){return I.indexOf(O)>0?O.responsePromise.then(function(w){return Object.assign({},w,{sequenceMetaData:{skipProcessing:!0}})}):O.responsePromise})},QD1=function(I,y){y.responsePromise.then(function(){var D=I.indexOf(y);
D>-1&&I.splice(D,1)})};var YWT=new _.uk("REQUEST_SEQUENCING");var BY=function(){};
_.E(BY,v9);BY.prototype.getApiPaths=function(){return[]};
BY.prototype.getExtension=function(I){return _.u(I,o_W)};
BY.prototype.JSC$14445_buildRequest=function(I,y){I.recaptchaToken=y.recaptchaToken};
BY.prototype.getApiUrl=function(){return"/das_captcha"};var ie=function(){};
_.E(ie,v9);ie.prototype.getApiPaths=function(){return DDG};
ie.prototype.getExtension=function(I){return _.u(I,scg)};
ie.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.createBackstagePostParams&&(I.createBackstagePostParams=y.createBackstagePostParams);D.comment_text&&(I.commentText=D.comment_text);if(D.attached_video_id)I.videoAttachment={videoId:D.attached_video_id};else if(D.image_poll_options)I.pollAttachmentData={options:D.image_poll_options};else if(D.poll_options)I.pollAttachment={choices:D.poll_options};else if(D.quiz_options)I.quizAttachmentData={options:D.quiz_options};else if(D.image_blob_id)I.imageAttachment=
{encryptedBlobId:D.image_blob_id},D.source_video_id&&(I.imageAttachment.sourceExternalVideoId=D.source_video_id),D.image_preview_coordinates&&(I.imageAttachment.previewCoordinates=JSON.parse(D.image_preview_coordinates));else if(D.images_data)I.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 F,R,O,w,v;I.clipAttachment={externalVideoId:(O=D.clip_external_video_id)!=null?O:"",offsetMs:(w=(F=D.clip_offset_ms)==
null?void 0:F.toString())!=null?w:"",durationMs:(v=(R=D.clip_duration_ms)==null?void 0:R.toString())!=null?v:""}}else D.shared_post_id&&(I.sharedPostAttachment={postId:D.shared_post_id});D.tagged_video_id&&(I.postCreationData={taggedVideoId:D.tagged_video_id});D.access_restrictions&&(typeof D.access_restrictions==="number"&&(y=D.access_restrictions,I.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof D.access_restrictions==="string"&&
(I.accessRestrictionsParams=D.access_restrictions));D.scheduled_publish_time_sec&&(I.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString())};var AX=function(){};
_.E(AX,v9);AX.prototype.getApiPaths=function(){return vxu};
AX.prototype.getExtension=function(I){return _.u(I,smu)};
AX.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.decorateMessageParams&&(I.params=y.decorateMessageParams);D.text&&(I.text=D.text)};var $5=function(){};
_.E($5,v9);$5.prototype.getApiPaths=function(){return fVn};
$5.prototype.getExtension=function(I){return _.u(I,VVW)};
$5.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;D.video_id&&(I.videoId=D.video_id)};var be=function(){};
_.E(be,v9);be.prototype.getApiPaths=function(){return zof};
be.prototype.getExtension=function(I){return _.u(I,_.fE)};
be.prototype.JSC$14445_buildRequest=function(I,y,D){D.suggestions_query&&(I.input=D.suggestions_query)};var HY=function(){};
_.E(HY,v9);HY.prototype.getApiPaths=function(){return UcM};
HY.prototype.getExtension=function(I){return _.u(I,ZHa)};
HY.prototype.JSC$14445_buildRequest=function(I,y,D){D.comment_text!==void 0&&(I.commentText=D.comment_text);D.scheduled_publish_time_sec&&(I.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString());I.updateBackstagePostParams=y.updateBackstagePostParams};var eB=function(){};
_.E(eB,v9);eB.prototype.getApiPaths=function(){return rT};
eB.prototype.getExtension=function(I){return _.u(I,_.IP)};
eB.prototype.JSC$14445_buildRequest=function(I,y,D){D.formData&&(I.formData=D.formData);y.token?I.continuation=y.token:y.continuationTokenKey&&(D=_.oq().getState(),y=_.nC(D.entities,"continuationTokenEntity",y.continuationTokenKey))&&(I.continuation=String(y.continuationToken))};
var fZo=function(){};
_.E(fZo,v9);_.L=fZo.prototype;_.L.getApiPaths=function(){return rT};
_.L.getExtension=function(I){return _.u(I,_.kc)};
_.L.isNavigationCommand=function(){return!0};
_.L.JSC$14452_getStoreKey=function(I){if((I=this.getExtension(I))&&I.browseId){var y={browseId:I.browseId};I.browseEndpointContextSupportedConfigs&&(y.browseEndpointContextSupportedConfigs=JSON.stringify(I.browseEndpointContextSupportedConfigs));I.params&&(y.params=I.params);I.query&&(y.query=I.query);return _.Sk("browse",y)}};
_.L.JSC$14445_buildRequest=function(I,y,D){y.browseId&&(I.browseId=y.browseId);y.params&&(I.params=y.params);y.query&&(I.query=y.query);D.formData?I.formData=D.formData:y.formData&&(I.formData=y.formData);y.browseId==="FEsubscriptions"&&_.a1().getFlag(155)&&(I.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");y.browseId==="SPaccount_playback"&&(D=_.a1(),I.formData||(I.formData={}),I.formData.accountSettingsFormData={flagCaptionsDefaultOff:D.getFlag(65),flagAutoCaptionsDefaultOn:D.getFlag(66),
flagDisableInlinePreview:D.getFlag(186),flagAudioDescriptionDefaultOn:D.getFlag(198)});if(y.browseId==="FEwhat_to_watch"){D=_.a1();var F=D.getFlag(196);D.getFlag(197)&&(I.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:F}}})}y.browseId==="FEwhat_to_watch"&&(y=_.a1().getFlag(186),I.inlineSettingStatus=y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.L.getRequestConfig=function(I,y){y=y===void 0?{}:y;var D={};if(I=this.JSC$14452_getStoreKey(I,y))D.storeStrategy={storeKey:I,disableCache:y.disableCache};_.l("web_log_browse_ticks_ks")||(D.requestTick="br_s",D.responseTick="br_r");return D};var Ts=function(){};
_.E(Ts,v9);Ts.prototype.getApiPaths=function(){return s2O};
Ts.prototype.getExtension=function(I){return _.u(I,QOu)};
Ts.prototype.JSC$14445_buildRequest=function(I,y,D){I.legacyYoutubeChannelUsername=D.legacyYouTubeChannelUsername||"";I.legacyYoutubeChannelPassword=D.legacyYouTubeChannelPassword||""};var sp=function(){};
_.E(sp,v9);sp.prototype.getApiPaths=function(){return FsW};
sp.prototype.getExtension=function(I){return _.u(I,Lzz)};
sp.prototype.JSC$14445_buildRequest=function(I,y,D){D.recaptcha_response_token&&(I.recaptchaResponseToken=D.recaptcha_response_token);D.channel_id&&(I.channelId=D.channel_id)};var VQ=function(){};
_.E(VQ,v9);VQ.prototype.getApiPaths=function(){return ria};
VQ.prototype.getExtension=function(I){return _.u(I,PMg)};
VQ.prototype.JSC$14445_buildRequest=function(I,y,D){y.externalChannelId&&(I.externalChannelId=y.externalChannelId);D.handle&&(I.handleUpdate={handle:D.handle},y.handleEditSource&&(I.handleUpdate.handleEditSource=y.handleEditSource))};var ZS=function(){};
_.E(ZS,v9);ZS.prototype.getApiPaths=function(){return hyM};
ZS.prototype.getExtension=function(I){return _.u(I,ztu)};
ZS.prototype.JSC$14445_buildRequest=function(I,y,D){y.request&&(I.channelId=y.request.channelId);var F;if(D==null?0:(F=D.uploadDefaults)==null?0:F.emojiReactionSet)I.uploadDefaultsRequest||(I.uploadDefaultsRequest={}),I.uploadDefaultsRequest.emojiReactionSet=D.uploadDefaults.emojiReactionSet};var gd=function(){};
_.E(gd,v9);gd.prototype.getApiPaths=function(){return uJc};
gd.prototype.getExtension=function(I){return _.u(I,JgO)};
gd.prototype.JSC$14445_buildRequest=function(I,y,D){y.externalChannelId&&(I.externalChannelId=y.externalChannelId);y.channelHandleEntityKey&&(I.channelHandleEntityKey=y.channelHandleEntityKey);y.handleEditSource&&(I.handleEditSource=y.handleEditSource);D.handle?I.handle=D.handle:D.name&&(I.name=D.name)};var IG=function(){};
_.E(IG,v9);IG.prototype.getApiPaths=function(){return gZc};
IG.prototype.getExtension=function(I){return _.u(I,p9u)};
IG.prototype.JSC$14445_buildRequest=function(I,y){y.actions?I.actions=y.actions:y.action&&(I.actions=[y.action])};var yX=function(){};
_.E(yX,v9);yX.prototype.getApiPaths=function(){return IVO};
yX.prototype.getExtension=function(I){return _.u(I,_.IP)};
yX.prototype.JSC$14445_buildRequest=function(I,y){y.token&&(I.continuation=y.token)};var DE=function(){};
_.E(DE,v9);DE.prototype.getApiPaths=function(){return QFO};
DE.prototype.getExtension=function(I){return _.u(I,_.IP)};
DE.prototype.JSC$14445_buildRequest=function(I,y){I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";y.token&&(I.fetchCommentsParams={continuation:y.token})};var F$=function(){};
_.E(F$,v9);F$.prototype.getApiPaths=function(){return Opz};
F$.prototype.getExtension=function(I){return _.u(I,n3P)};
F$.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.createReplyParams&&(I.createReplyParams=y.createReplyParams);y.commentText&&(I.commentText=_.rY(y.commentText));D.comment_text&&(I.commentText=D.comment_text);D.image_blob_id&&(I.imageAttachment={encryptedBlobId:D.image_blob_id});D.botguard_response&&(I.botguardResponse=D.botguard_response)};
_.mD.Object.defineProperties(F$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RG=function(){};
_.E(RG,v9);RG.prototype.getApiPaths=function(){return Lc_};
RG.prototype.getExtension=function(I){return _.u(I,_.fgG)};
RG.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.createCommentParams&&(I.createCommentParams=y.createCommentParams);y.commentText&&(I.commentText=_.rY(y.commentText));y.videoPositionMention&&(I.videoPositionMention=y.videoPositionMention);y.sources&&(I.sources=y.sources);D.comment_text&&(I.commentText=D.comment_text);D.attached_video_id?I.videoAttachment={videoId:D.attached_video_id}:D.poll_options?I.pollAttachment={choices:D.poll_options}:D.image_blob_id?I.imageAttachment=
{encryptedBlobId:D.image_blob_id}:D.shared_post_id&&(I.sharedPostAttachment={postId:D.shared_post_id});D.access_restrictions&&typeof D.access_restrictions==="number"&&(y=D.access_restrictions,I.accessRestrictions={restriction:y!==1&&y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});D.botguard_response&&(I.botguardResponse=D.botguard_response)};
_.mD.Object.defineProperties(RG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O8=function(){};
_.E(O8,v9);O8.prototype.getApiPaths=function(){return jl_};
O8.prototype.getExtension=function(I){return _.u(I,MxM)};
O8.prototype.JSC$14445_buildRequest=function(I,y,D){y.commentText&&(I.replyText=_.rY(y.commentText));D.comment_text&&(I.replyText=D.comment_text);I.updateReplyParams=y.updateReplyParams};
_.mD.Object.defineProperties(O8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var L8=function(){};
_.E(L8,v9);L8.prototype.getApiPaths=function(){return obu};
L8.prototype.getExtension=function(I){return _.u(I,mTe)};
L8.prototype.JSC$14445_buildRequest=function(I,y,D){y.commentText&&(I.commentText=_.rY(y.commentText));D.comment_text&&(I.commentText=D.comment_text);I.updateCommentParams=y.updateCommentParams};
_.mD.Object.defineProperties(L8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var J7=function(){};
_.E(J7,v9);J7.prototype.getApiPaths=function(){return NlW};
J7.prototype.getExtension=function(I){return _.u(I,n0u)};
J7.prototype.JSC$14445_buildRequest=function(I,y){y.settings&&(I.settings=y.settings)};var wr=function(){};
_.E(wr,v9);wr.prototype.getApiPaths=function(){return xDG};
wr.prototype.getExtension=function(I){return _.u(I,wta)};
wr.prototype.JSC$14445_buildRequest=function(I,y){y.channelCreationToken&&(I.channelCreationToken=y.channelCreationToken);y.source&&(I.source=y.source)};var vl=function(){};
_.E(vl,v9);vl.prototype.getApiPaths=function(){return RoM};
vl.prototype.getExtension=function(I){return _.u(I,tlR)};
vl.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;if(D.name&&(D.given_name||D.family_name))I=new _.g6("channel creation cannot set both GAIA and YouTube names",y),_.vu(I);else{if(y.zeroStepChannelCreationParams){if(!D.comment_text){I=new _.g6("zero_step_create_comment_params but no zero_step_texts",y);_.vu(I);return}I.zeroStepChannelCreationParams=y.zeroStepChannelCreationParams;I.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(I.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
D.comment_text,D.botguard_response&&(I.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=D.botguard_response))}I.channelCreationToken=y.channelCreationToken;D.given_name&&(I.givenName=D.given_name);D.family_name&&(I.familyName=D.family_name);y.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(I.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)I.overrideChannelCreationParams={},D.name&&(I.overrideChannelCreationParams.name=D.name),D.handle&&(I.overrideChannelCreationParams.handle=D.handle),D.avatar_url&&(I.overrideChannelCreationParams.avatarUrl=D.avatar_url),D.encryptedBlobId&&(I.overrideChannelCreationParams.blobEncryptionId=D.encryptedBlobId),D.enableIdentityForAllChannelCreationDialog&&(D.encryptedBlobId?I.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
D.isDefaultProfilePhoto!==void 0&&(I.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&&(I.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&&(I.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=D.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),D.obakeImageSource&&(I.overrideChannelCreationParams.obakeImageSourceType=D.obakeImageSource))}};var S6=function(){};
_.E(S6,v9);S6.prototype.getApiPaths=function(I){return(I=this.getExtension(I))&&I.status==="DISLIKE"?KcW:I&&I.status==="INDIFFERENT"?Zp_:Wcc};
S6.prototype.getExtension=function(I){return _.u(I,_.gb)};
S6.prototype.JSC$14445_buildRequest=function(I,y){y.target&&(I.target=y.target);if(y=this.getParams(y))I.params=y};
S6.prototype.getParams=function(I){switch(I==null?void 0:I.status){case "DISLIKE":return I.dislikeParams;case "INDIFFERENT":return I.removeLikeParams;default:return I==null?void 0:I.likeParams}};var t7=function(){};
_.E(t7,v9);t7.prototype.getApiPaths=function(){return woc};
t7.prototype.getExtension=function(I){return _.u(I,Wk_)};
t7.prototype.JSC$14445_buildRequest=function(I,y){y.settingItemId&&(I.settingItemId=y.settingItemId);y.stringValue!=null&&y.stringValue!==void 0?I.newValue={stringValue:y.stringValue}:y.intValue?I.newValue={intValue:y.intValue}:y.boolValue!==null&&y.boolValue!==void 0?I.newValue={boolValue:y.boolValue}:(I=new _.g6("Unknown value type for SetSettingEndpoint.",y),_.vu(I))};var Pl=function(){};
_.E(Pl,v9);Pl.prototype.getApiPaths=function(){return t4n};
Pl.prototype.getExtension=function(I){return _.u(I,Ffe)||void 0};
Pl.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.channelIds&&(I.channelIds=y.channelIds);y.siloName&&(I.siloName=y.siloName);y.params&&(I.params=y.params);D.botguardResponse&&(I.botguardResponse=D.botguardResponse);D.feature&&(I.clientFeature=D.feature)};
_.mD.Object.defineProperties(Pl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var K8=function(){};
_.E(K8,v9);K8.prototype.getApiPaths=function(){return Ksa};
K8.prototype.getExtension=function(I){return _.u(I,CqW)||void 0};
K8.prototype.JSC$14445_buildRequest=function(I,y){y.channelIds&&(I.channelIds=y.channelIds);y.siloName&&(I.siloName=y.siloName);y.params&&(I.params=y.params)};
_.mD.Object.defineProperties(K8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U8=function(I){this.shareClientParamsProvider=I};
_.E(U8,v9);U8.prototype.getApiPaths=function(){return YeL};
U8.prototype.getExtension=function(I){return _.u(I,PCP)||_.u(I,_.Kee)||_.u(I,tre)};
U8.prototype.JSC$14445_buildRequest=function(I,y){y.serializedShareEntity&&(I.serializedSharedEntity=y.serializedShareEntity);if(y.clientParamIdentifier){var D;if((D=this.shareClientParamsProvider)==null?0:D.clientParams.has(y.clientParamIdentifier)){D=this.shareClientParamsProvider;y=y.clientParamIdentifier;var F=D.clientParams.get(y);F&&D.clientParams.delete(y);I.clientParams=F}}};
U8[mw]=[DgT];var rr=function(){};
_.E(rr,v9);rr.prototype.getApiPaths=function(){return HFG};
rr.prototype.getExtension=function(I){return _.u(I,aUn)};
rr.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var qu=function(){};
_.E(qu,v9);qu.prototype.getApiPaths=function(){return UDP};
qu.prototype.getExtension=function(I){return _.u(I,zlc)};
qu.prototype.JSC$14445_buildRequest=function(I,y){y.dismissal&&(I.items=[y.dismissal])};
_.mD.Object.defineProperties(qu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E8=function(){};
_.E(E8,v9);E8.prototype.getApiPaths=function(){return aVn};
E8.prototype.getExtension=function(I){return _.u(I,_.gT)||void 0};
E8.prototype.JSC$14445_buildRequest=function(I,y,D){I.feedbackTokens=[];y.feedbackToken&&I.feedbackTokens.push(y.feedbackToken);if(y=y.cpn||D.cpn)I.feedbackContext={cpn:y};I.isFeedbackTokenUnencrypted=!!D.is_feedback_token_unencrypted;I.shouldMerge=!1;D.extra_feedback_tokens&&(I.shouldMerge=!0,I.feedbackTokens=I.feedbackTokens.concat(D.extra_feedback_tokens))};
_.mD.Object.defineProperties(E8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Gf=function(){};
_.E(Gf,v9);Gf.prototype.getApiPaths=function(){return aVn};
Gf.prototype.getExtension=function(I){return _.u(I,_.fE)};
Gf.prototype.JSC$14445_buildRequest=function(I,y,D){D.feedback_tokens&&(I.feedbackTokens=D.feedback_tokens,I.shouldMerge=!0)};
_.mD.Object.defineProperties(Gf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var X$=function(){};
_.E(X$,v9);X$.prototype.getApiPaths=function(){return aVn};
X$.prototype.getExtension=function(I){return _.u(I,e$_)};
X$.prototype.JSC$14445_buildRequest=function(I,y){y.undoToken&&(I.feedbackTokens=[y.undoToken]);y.isUndoTokenUnencrypted&&(I.isFeedbackTokenUnencrypted=y.isUndoTokenUnencrypted)};
_.mD.Object.defineProperties(X$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QX=function(){};
_.E(QX,v9);QX.prototype.getApiPaths=function(){return qde};
QX.prototype.getExtension=function(I){return _.u(I,pZO)};
QX.prototype.JSC$14445_buildRequest=function(I,y){y.nextEndpoint&&_.u(y.nextEndpoint,_.lK)?I.nextEndpoint={urlEndpoint:_.u(y.nextEndpoint,_.lK)}:y.nextEndpoint&&_.u(y.nextEndpoint,_.t9)&&(I.nextEndpoint={watchEndpoint:_.u(y.nextEndpoint,_.t9)});y.setRacy&&(I.setRacy=y.setRacy);y.setControvercy&&(I.setControvercy=y.setControvercy)};var Yv=function(I){this.JSC$18454_storeWithEntities=I};
_.E(Yv,v9);Yv.prototype.getApiPaths=function(){return jFn};
Yv.prototype.getExtension=function(I){return _.u(I,Ohc)};
Yv.prototype.JSC$14445_buildRequest=function(I,y){y.flowId&&(I.flowId=y.flowId);y.targetId&&(I.targetId=y.targetId);y.continuation&&(I.continuation=y.continuation);var D=y.flowStateEntityKey;if(y.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&D&&this.JSC$18454_storeWithEntities){var F;if(y=(F=this.JSC$18454_storeWithEntities.getState())==null?void 0:F.entities)if(F=_.Xw(D).entityType,F=_.nC(y,F,D))I.flowState=F,I.flowStateEntityKey=D}};
_.mD.Object.defineProperties(Yv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Yv[mw]=[Gr];var nWy=function(){};
_.E(nWy,v9);_.L=nWy.prototype;_.L.getApiPaths=function(){return dDa};
_.L.JSC$14452_getStoreKey=function(){return _.Sk("guide")};
_.L.getRequestConfig=function(){var I=this.JSC$14452_getStoreKey(),y;I&&(y={storeStrategy:{storeKey:I}});return y};
_.L.isNavigationCommand=function(){return!0};
_.L.getExtension=function(I){return _.u(I,_.fE)};
_.L.JSC$14445_buildRequest=function(I){I.fetchLiveState=!0};var f8=function(){};
_.E(f8,v9);f8.prototype.getApiPaths=function(){return V9M};
f8.prototype.getExtension=function(I){return _.u(I,X9f)};
f8.prototype.JSC$14445_buildRequest=function(){};var n8=function(){};
_.E(n8,v9);n8.prototype.getApiPaths=function(){return ZF_};
n8.prototype.getExtension=function(I){return _.u(I,Qta)};
n8.prototype.JSC$14445_buildRequest=function(){};var p8=function(){};
_.E(p8,v9);p8.prototype.getApiPaths=function(){return bFg};
p8.prototype.getExtension=function(I){return _.u(I,_.IP)};
p8.prototype.JSC$14445_buildRequest=function(I,y){y.token&&(I.continuation=y.token);var D,F;I==null||(D=I.context)==null||(F=D.user)==null||delete F.onBehalfOfUser};
p8.prototype.getRequestConfig=function(I){var y={},D;if(((D=this.getExtension(I))==null?void 0:D.sessionIndex)!==void 0){var F;y={authStrategy:{sessionIndex:(F=this.getExtension(I))==null?void 0:F.sessionIndex}}}return y};var mm=function(){};
_.E(mm,v9);mm.prototype.JSC$14445_getRequest=function(I){var y=this.getExtension(I),D=I="";if(y==null?0:y.popup)I="true";if(y==null?0:y.disableSignout)D="true";y={};return{input:"/getAccountSwitcherEndpoint",requestShell:vg("/getAccountSwitcherEndpoint","GET",(y["X-YouTube-Delegation-Context"]=_.Pi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),y["X-YouTube-Account-Switcher-Popup"]=I,y["X-YouTube-Account-Switcher-Disable-Signout"]=D,y)),innerTubeRequest:{}}};
mm.prototype.getApiPaths=function(){return[]};
mm.prototype.getExtension=function(I){return _.u(I,_.Fv_)};
mm.prototype.JSC$14445_buildRequest=function(){};var Mu=function(){};
_.E(Mu,v9);Mu.prototype.JSC$14445_getRequest=function(I){var y="/cross_account_channel_transfer";(I=this.getExtension(I))&&(y=e3q(y,{target_session:I.targetSessionIndex,source_rapt:I.sourceRapt,rapt:I.targetRapt}));return{input:y,requestShell:vg(y,"GET"),innerTubeRequest:{}}};
Mu.prototype.getApiPaths=function(){return[]};
Mu.prototype.getExtension=function(I){return _.u(I,qsf)};
Mu.prototype.JSC$14445_buildRequest=function(){};var zf=function(){};
_.E(zf,v9);zf.prototype.getApiPaths=function(){return oxW};
zf.prototype.isNavigationCommand=function(){return!0};
zf.prototype.getExtension=function(I){return _.u(I,_.fE)};
zf.prototype.JSC$14445_buildRequest=function(I){var y=_.a1().get("gsml","");y&&(I.safetyModeLockerObfuscatedGaiaId=y);I.userInterfaceTheme=_.Jt(!0);_.w4()?I.deviceTheme="DEVICE_THEME_SELECTED":_.JiH()?I.deviceTheme="DEVICE_THEME_SUPPORTED":I.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var kv=function(){};
_.E(kv,v9);kv.prototype.getApiPaths=function(){return bFg};
kv.prototype.getExtension=function(I){return _.u(I,E_f)};
kv.prototype.JSC$14445_buildRequest=function(I,y){if(y&&y.requestType&&(I.requestType=y.requestType,y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var D=y.nextUrl;D&&(_.s1q(D)||QV(D))&&(I.nextNavendpoint={urlEndpoint:{url:D}})}y&&y.channelSwitcherQuery&&(I.channelSwitcherQuery=y.channelSwitcherQuery);y&&y.triggerChannelCreation&&(I.triggerChannelCreation=y.triggerChannelCreation);var F;if(y==null?0:(F=y.contentOwnerConfig)==
null?0:F.externalContentOwnerId)I.contentOwnerConfig=y.contentOwnerConfig;I.callCircumstance=y&&y.requestType&&y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var R,O;y=I==null?void 0:(R=I.context)==null?void 0:(O=R.user)==null?void 0:O.onBehalfOfUser;if(y!==void 0){I.obfuscatedSelectedGaiaId=y;var w,v;I==null||(w=I.context)==null||(v=w.user)==null||delete v.onBehalfOfUser}var P,K;if(R=I==null?void 0:(P=I.context)==null?void 0:(K=P.user)==null?
void 0:K.serializedDelegationContext)I.selectedSerializedDelegationContext=R};var dr=function(){};
_.E(dr,v9);dr.prototype.getApiPaths=function(){return eGu};
dr.prototype.getExtension=function(I){return _.u(I,Uya)};
dr.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var aG=function(){};
_.E(aG,v9);aG.prototype.getApiPaths=function(){return Fca};
aG.prototype.getExtension=function(I){return _.u(I,_.GL_)};
aG.prototype.JSC$14445_buildRequest=function(I,y){if(y=y.createBroadcastRequest)I.useMasks=y.useMasks,I.broadcastType=y.broadcastType,I.broadcastSource=y.broadcastSource,I.broadcastMetadata=y.broadcastMetadata,I.broadcastMetadataMask=y.broadcastMetadataMask,I.videoMetadata=y.videoMetadata,I.videoMetadataMask=y.videoMetadataMask,I.liveChatSettingsUpdate=y.liveChatSettingsUpdate,I.liveChatSettingsUpdateMask=y.liveChatSettingsUpdateMask,I.cloneVideoId=y.cloneVideoId,I.cloneWithOverrides=y.cloneWithOverrides,
I.targetEntity=y.targetEntity,I.scheduledRedirectMetadata=y.scheduledRedirectMetadata};var cl=function(){};
_.E(cl,v9);cl.prototype.getApiPaths=function(){return JaM};
cl.prototype.getExtension=function(I){return _.u(I,jju)};
cl.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.params&&(I.params=y.params);D.questionText&&(I.questionText=D.questionText);D.optionText&&D.optionText.length>0&&(I.optionText=D.optionText)};var Wl=function(){};
_.E(Wl,v9);Wl.prototype.getApiPaths=function(){return SKe};
Wl.prototype.getExtension=function(I){return _.u(I,UEO)};
Wl.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var C8=function(){};
_.E(C8,v9);C8.prototype.getApiPaths=function(){return uA_};
C8.prototype.getExtension=function(I){return _.u(I,SZO)};
C8.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var Bl=function(){};
_.E(Bl,v9);Bl.prototype.getApiPaths=function(){return ExM};
Bl.prototype.getExtension=function(I){return _.u(I,t1f)};
Bl.prototype.JSC$14445_buildRequest=function(I,y,D){y.params&&(I.params=y.params);y.continuation&&(I.continuation=y.continuation);D.currentPlayerState&&D.currentPlayerState.playerOffsetMs&&(I.currentPlayerState={playerOffsetMs:D.currentPlayerState.playerOffsetMs.toString()})};var i4=function(){};
_.E(i4,v9);i4.prototype.getApiPaths=function(){return G3e};
i4.prototype.getExtension=function(I){return _.u(I,vjO)};
i4.prototype.JSC$14445_buildRequest=function(I,y,D){y.params&&(I.params=y.params);D.continuation&&(I.continuation=D.continuation);"hidden"in D&&(I.webClientInfo={isDocumentHidden:D.hidden});D.isInvalidationTimeoutRequest&&(I.isInvalidationTimeoutRequest=D.isInvalidationTimeoutRequest);D.invalidationPayload&&(y=w0a(_.ZC(Yf(D.invalidationPayload))),I.invalidationPayloadLastPublishAtUsec=Vt(y,2));D.reloadActionPanel&&(I.reloadActionPanel=D.reloadActionPanel);D.fullReload&&(I.fullReload=D.fullReload);
D.currentPlayerState&&(I.currentPlayerState=D.currentPlayerState)};var A7=function(){};
_.E(A7,v9);A7.prototype.getApiPaths=function(){return CQe};
A7.prototype.getExtension=function(I){return _.u(I,rzO)};
A7.prototype.JSC$14445_buildRequest=function(I,y){I.params=y.params};var $v=function(){};
_.E($v,v9);$v.prototype.getApiPaths=function(){return qKO};
$v.prototype.getExtension=function(I){return _.u(I,npP)};
$v.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var b4=function(){};
_.E(b4,v9);b4.prototype.getApiPaths=function(){return Xju};
b4.prototype.getExtension=function(I){return _.u(I,pbn)};
b4.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var Hl=function(){};
_.E(Hl,v9);Hl.prototype.getApiPaths=function(){return BOc};
Hl.prototype.getExtension=function(I){return _.u(I,ojO)};
Hl.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var e6=function(){};
_.E(e6,v9);e6.prototype.getApiPaths=function(){return AaP};
e6.prototype.getExtension=function(I){return _.u(I,N7M)};
e6.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var Tf=function(){};
_.E(Tf,v9);Tf.prototype.getApiPaths=function(){return gx_};
Tf.prototype.getExtension=function(I){return _.u(I,opf)};
Tf.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var s8=function(){};
_.E(s8,v9);s8.prototype.getApiPaths=function(){return LsW};
s8.prototype.getExtension=function(I){return _.u(I,_.hee)};
s8.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.params&&(I.params=y.params);D.client_message_id&&(I.clientMessageId=D.client_message_id);D.recaptcha_token&&(I.recaptchaToken=D.recaptcha_token);D.rich_message&&D.rich_message.text_segments?(y=D.rich_message.text_segments.map(function(F){var R={};F.text&&(R.text=F.text);F.emoji_id&&(R.emojiId=F.emoji_id);return R}),I.richMessage={textSegments:y}):D.message&&(I.message=D.message);
D.currentPlayerState&&(I.currentPlayerState=D.currentPlayerState)};var VX=function(){};
_.E(VX,v9);VX.prototype.getApiPaths=function(){return JiG};
VX.prototype.getExtension=function(I){return _.u(I,xEO)};
VX.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var ZE=function(){};
_.E(ZE,v9);ZE.prototype.getApiPaths=function(){return P$e};
ZE.prototype.getExtension=function(I){return _.u(I,u4a)};
ZE.prototype.JSC$14445_buildRequest=function(I,y,D){y.isUserInitiated&&(I.isUserInitiated=y.isUserInitiated);y.initiationSource&&(I.initiationSource=y.initiationSource);D.locationInfo&&(I.context.client.locationInfo=D.locationInfo)};var gr=function(){};
_.E(gr,v9);gr.prototype.getApiPaths=function(){return ipc};
gr.prototype.getExtension=function(I){return _.u(I,XfM)};
gr.prototype.JSC$14445_buildRequest=function(I,y,D){y.metadataUpdateRequest&&(y=y.metadataUpdateRequest,I.encryptedVideoId=y.encryptedVideoId,y.liveChat&&(y=y.liveChat,I.liveChat||(I.liveChat={}),y.performAsExternalChannelId&&(I.liveChat.performAsExternalChannelId=y.performAsExternalChannelId),y.source&&(I.liveChat.source=y.source)));var F;if(D==null?0:(F=D.liveChat)==null?0:F.liveChatSettings)I.liveChat||(I.liveChat={}),D=D.liveChat.liveChatSettings,I.liveChat.newLiveChatSettings=D,I.liveChat.newLiveChatSettingsMask||
(I.liveChat.newLiveChatSettingsMask={}),D.emojiReactionSet&&(I.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Iw=function(){};
_.E(Iw,v9);Iw.prototype.getApiPaths=function(){return ln_};
Iw.prototype.getExtension=function(I){return _.u(I,_.BQO)};
Iw.prototype.JSC$14445_buildRequest=function(I,y,D){D.continuation?I.continuation=D.continuation:y.videoId&&(I.videoId=y.videoId);D.clientParams&&(I.clientParams=D.clientParams)};var yf=function(){};
_.E(yf,v9);yf.prototype.getApiPaths=function(){return QFO};
yf.prototype.getExtension=function(I){return _.u(I,_.OZ)};
yf.prototype.JSC$14445_buildRequest=function(I,y){I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";I.fetchCommentsParams={};y.videoId&&(I.fetchCommentsParams.encryptedVideoId=y.videoId);y.postId&&(I.fetchCommentsParams.postId=y.postId);y.externalChannelId&&(I.fetchCommentsParams.externalChannelId=y.externalChannelId);y.linkedCommentId&&(I.fetchCommentsParams.linkedCommentId=y.linkedCommentId);(0,_.e$.isEmpty)(I.fetchCommentsParams)&&delete I.fetchCommentsParams};var DD=function(){};
_.E(DD,v9);DD.prototype.getApiPaths=function(){return rT};
DD.prototype.JSC$14445_buildRequest=function(I){I.browseId="FEnotifications_inbox"};
DD.prototype.getExtension=function(I){return _.u(I,_.fE)};var Fz=function(){};
_.E(Fz,v9);Fz.prototype.getApiPaths=function(){return QFO};
Fz.prototype.JSC$14445_buildRequest=function(I,y){y.signal==="GET_NOTIFICATIONS_MENU"&&(I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");y.ctoken&&(I.ctoken=y.ctoken)};
var p5b=function(){};
_.E(p5b,Fz);p5b.prototype.getExtension=function(I){return _.u(I,_.fE)};
var mJo=function(){};
_.E(mJo,Fz);mJo.prototype.getExtension=function(I){return _.u(I,YDG)};var Rw=function(){};
_.E(Rw,v9);Rw.prototype.getApiPaths=function(){return MwW};
Rw.prototype.getExtension=function(I){return _.u(I,_.fE)};
Rw.prototype.JSC$14445_buildRequest=function(){};var OT=function(){};
_.E(OT,v9);OT.prototype.getApiPaths=function(){return $DR};
OT.prototype.getExtension=function(I){return _.u(I,dTu)||void 0};
OT.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params);y.secondaryParams&&(I.secondaryParams=y.secondaryParams)};var Lr=function(){};
_.E(Lr,v9);Lr.prototype.getApiPaths=function(){return bpn};
Lr.prototype.getExtension=function(I){return _.u(I,r2u)};
Lr.prototype.JSC$14445_buildRequest=function(I,y){y.undo&&(I.undo=y.undo);y.serializedOptOut&&(I.serializedOptOut=y.serializedOptOut);y.serializedRecordInteractionsRequest&&(I.serializedRecordInteractionsRequest=y.serializedRecordInteractionsRequest)};var JN=function(){};
_.E(JN,v9);JN.prototype.getApiPaths=function(){return TOO};
JN.prototype.getExtension=function(I){return _.u(I,jmW)};
JN.prototype.JSC$14445_buildRequest=function(I,y){y.serializedInteractionsRequest&&(I.serializedRecordNotificationInteractionsRequest=y.serializedInteractionsRequest)};var ww=function(){};
_.E(ww,v9);ww.prototype.getApiPaths=function(){return fzo};
ww.prototype.getExtension=function(I){return _.u(I,_.Kt)};
ww.prototype.JSC$14445_buildRequest=function(I,y,D){y=y===void 0?{}:y;D=D===void 0?{}:D;y.videoId?I.videoId=y.videoId:y.playlistId&&(I.playlistId=y.playlistId);var F;I.crossDeviceDownloadData={isCrossDeviceDownload:(F=y.isCrossDeviceDownload)!=null?F:!1};!D.downloadToMobileEduShown&&y.isCrossDeviceDownload&&(I.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var R;if(F=(R=y.offlineWebClientEligibility)!=null?R:D.offlineWebClientEligibility)I.offlineWebClientEligibility=F;var O;if(R=(O=y.preferredFormatType)!=
null?O:D.preferredFormatType)I.preferredFormatType=R;var w;if(O=(w=y.lastOfflineQualitySettingsSavedMs)!=null?w:D.lastOfflineQualitySettingsSavedMs)I.lastOfflineQualitySettingsSavedMs=O;y.params&&(I.params=y.params)};var vD=function(){};
_.E(vD,v9);vD.prototype.getApiPaths=function(){return EZ};
vD.prototype.getExtension=function(I){return _.u(I,_.IP)};
vD.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.token&&(I.continuation=y.token);D.formData&&(I.formData=D.formData)};var S3=function(){};
_.E(S3,v9);S3.prototype.getApiPaths=function(){return EZ};
S3.prototype.getExtension=function(I){return _.u(I,hSR)};
S3.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;I.continuation=D.continuation};var tN=function(){};
_.E(tN,v9);tN.prototype.getApiPaths=function(){return EZ};
tN.prototype.getExtension=function(I){return _.u(I,_.Z3)};
tN.prototype.JSC$14445_buildRequest=function(I,y){var D,F=y.panelIdentifier||((D=y.identifier)==null?void 0:D.tag);F&&(I.panelId=F);var R;if((R=y.globalConfiguration)==null?0:R.params){var O;I.params=(O=y.globalConfiguration)==null?void 0:O.params}if(_.l("enable_ai_companion")){var w;y=y.engagementPanelExtras;if(y==null?0:(w=y.aiCompanionPanelExtras)==null?0:w.includeClientConversationId){var v,P;w=(P=(v=_.nR().resolve(_.fR(StZ)))==null?void 0:v("conversations"))==null?void 0:P.get("conversation_id")}else w=
void 0;if(v=w)I.formData=Object.assign({},I.formData,{inputComposerFormData:{conversationId:v}})}};
_.mD.Object.defineProperties(tN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var PD=function(){};
_.E(PD,v9);PD.prototype.getApiPaths=function(){return EZ};
PD.prototype.getExtension=function(I){return _.u(I,Jle)};
PD.prototype.JSC$14445_buildRequest=function(I,y){y.panelLoadingStrategy&&zOq(I,y.panelLoadingStrategy)};var Kr=function(){};
_.E(Kr,v9);Kr.prototype.getApiPaths=function(){return EZ};
Kr.prototype.getExtension=function(I){return _.u(I,Qmn)};
Kr.prototype.JSC$14445_buildRequest=function(I,y){y.loadingStrategy&&zOq(I,y.loadingStrategy)};var UT=function(){};
_.E(UT,v9);UT.prototype.getApiPaths=function(){return EZ};
UT.prototype.getExtension=function(I){return _.u(I,_.Ct)};
UT.prototype.JSC$14445_buildRequest=function(I,y){y.panelLoadingStrategy&&zOq(I,y.panelLoadingStrategy)};var rw=function(){};
_.E(rw,v9);rw.prototype.getApiPaths=function(){return EZ};
rw.prototype.getExtension=function(I){return _.u(I,YYc)};
rw.prototype.JSC$14445_buildRequest=function(I,y){var D,F=(D=y.contentSourcePanelIdentifier)==null?void 0:D.tag;F&&(I.panelId=F);var R;if((R=y.globalConfiguration)==null?0:R.params){var O;I.params=(O=y.globalConfiguration)==null?void 0:O.params}};var j3=function(){};
_.E(j3,v9);j3.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
j3.prototype.getExtension=function(I){return _.u(I,f8e)};
j3.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var ow=function(){};
_.E(ow,v9);ow.prototype.getApiPaths=function(){return xca};
ow.prototype.getExtension=function(I){return _.u(I,myn)};
ow.prototype.JSC$14445_buildRequest=function(I,y){y.externalChannelId&&(I.externalChannelId=y.externalChannelId);y.superChatAction&&(I.superChatAction=y.superChatAction);y.superStickersAction&&(I.superStickersAction=y.superStickersAction)};var Nh=function(){};
_.E(Nh,v9);Nh.prototype.getApiPaths=function(){return NOP};
Nh.prototype.getExtension=function(I){return _.u(I,G2R)||_.u(I,Kv_)};
Nh.prototype.JSC$14445_buildRequest=function(I,y){y.videoIds?I.videoIds=y.videoIds:y.videoId&&(I.videoIds=[y.videoId]);y.playlistId&&(I.playlistId=y.playlistId);y.params&&(I.params=y.params);I.excludeWatchLater=!1};var hN=function(){};
_.E(hN,v9);hN.prototype.getApiPaths=function(){return wjn};
hN.prototype.getExtension=function(I){return _.u(I,_.P0)};
hN.prototype.JSC$14445_buildRequest=function(I,y,D){D.create_playlist_title?I.title=D.create_playlist_title:y.title&&(I.title=y.title);if(D.create_playlist_privacy_status&&typeof D.create_playlist_privacy_status==="number"){a:{var F=D.create_playlist_privacy_status;if(F!==0){if(F===1){F="PUBLIC";break a}if(F===2){F="UNLISTED";break a}}F="PRIVATE"}I.privacyStatus=F}else y.privacyStatus&&(I.privacyStatus=y.privacyStatus);D.create_playlist_description&&(I.description=D.create_playlist_description);y.videoIds&&
(I.videoIds=y.videoIds);y.params&&(I.params=y.params);y.sourcePlaylistId&&(I.sourcePlaylistId=y.sourcePlaylistId)};var xq=function(){};
_.E(xq,v9);xq.prototype.getApiPaths=function(){return twn};
xq.prototype.getExtension=function(I){return _.u(I,zJa)};
xq.prototype.JSC$14445_buildRequest=function(I,y){I.playlistId=y.playlistId};var lT=function(){};
_.E(lT,v9);lT.prototype.getApiPaths=function(){return YKg};
lT.prototype.getExtension=function(I){return _.u(I,vpg)};
lT.prototype.JSC$14445_buildRequest=function(I,y){y.playlistId&&(I.playlistId=y.playlistId);y.params&&(I.params=y.params)};var uT=function(){};
_.E(uT,v9);uT.prototype.getApiPaths=function(){return eoR};
uT.prototype.getExtension=function(I){return _.u(I,_.Lb)||void 0};
uT.prototype.JSC$14445_buildRequest=function(I,y){y.actions&&(I.actions=y.actions);y.params&&(I.params=y.params);y.playlistId&&(I.playlistId=y.playlistId)};var qh=function(){};
_.E(qh,v9);_.L=qh.prototype;_.L.getApiPaths=function(){return sFn};
_.L.getExtension=function(I){return _.u(I,_.WF)};
_.L.JSC$14445_buildRequest=function(I,y){y.videoId&&(I.playerRequest={videoId:y.videoId},y.playerParams&&(I.playerRequest.params=y.playerParams),y.racyCheckOk&&(I.playerRequest.racyCheckOk=!!y.racyCheckOk),y.contentCheckOk&&(I.playerRequest.contentCheckOk=!!y.contentCheckOk));y.params&&(I.params=y.params);y.inputType&&(I.inputType=y.inputType);I.disablePlayerResponse=!0};
_.L.getRequestConfig=function(I){var y;(I=this.JSC$14452_getStoreKey(I))&&(y={storeStrategy:{storeKey:I}});_.l("web_log_reels_ticks")&&(y=y||{},y.requestTick="r_wrs",y.responseTick="r_wrr");return y};
_.L.JSC$14452_getStoreKey=function(I){I=this.getExtension(I);if(I!=null&&I.videoId){var y={videoId:I.videoId};I.params&&(y.params=I.params);return _.Sk("reel_item_watch",y)}};var ET=function(){};
_.E(ET,v9);_.L=ET.prototype;_.L.getApiPaths=function(){return Vwn};
_.L.getExtension=function(I){return _.u(I,_.WF)};
_.L.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;I.sequenceParams=y.sequenceParams;var F;((F=D)==null?0:F.contentPlaybackContext)&&_.l("web_shorts_prefetch_service_enabled")&&(I.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
_.L.JSC$14452_getStoreKey=function(I){if(_.l("shorts_controller_retrieve_seedless_sequence_v2")&&(I=this.getExtension(I),I==null?0:I.sequenceParams))return _.Sk("reel_watch_sequence",{sequenceParams:I.sequenceParams})};
_.L.getRequestConfig=function(I){I=this.JSC$14452_getStoreKey(I);var y;I&&(y={storeStrategy:{storeKey:I}});y=y||{};y.requestTick="r_wsrs";y.responseTick="r_wsrr";y.processorTick="r_wsrp";return y};
var GZ=function(){};
_.E(GZ,v9);GZ.prototype.getApiPaths=function(){return Vwn};
GZ.prototype.getExtension=function(I){return _.u(I,_.IP)};
GZ.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.token&&(I.continuation=y.token);var F;((F=D)==null?0:F.contentPlaybackContext)&&_.l("web_shorts_prefetch_service_enabled")&&(I.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
GZ.prototype.getRequestConfig=function(I){I=this.JSC$14452_getStoreKey(I);var y;I&&(y={storeStrategy:{storeKey:I}});y=y||{};y.requestTick="r_wsrs";y.responseTick="r_wsrr";y.processorTick="r_wsrp";return y};var Xz=function(){};
_.E(Xz,v9);Xz.prototype.getApiPaths=function(){return raf};
Xz.prototype.getExtension=function(I){return _.u(I,_.ywM)};
Xz.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.flagAction&&(I.action=y.flagAction);y.flagRequestType&&(I.flagRequestType=y.flagRequestType);y.additionalDetailCheckboxChecked&&(I.additionalDetailCheckboxChecked=y.additionalDetailCheckboxChecked);y.legalCheckboxChecked&&(I.legalCheckboxChecked=y.legalCheckboxChecked);y={};D.flag_issue_type!==void 0&&(y.issue=D.flag_issue_type);D.flag_affiliation!==void 0&&(y.affiliation=D.flag_affiliation);D.flag_full_name&&(y.fullName=D.flag_full_name);
Object.keys(y).length&&(I.legalReportDetails=y);if(D.flag_description||D.text)I.userComments=D.flag_description||D.text;y={};D.minutes!==void 0&&D.seconds!==void 0&&(y.minutes=D.minutes,y.seconds=D.seconds);D.vss_id&&(y.vssId=D.vss_id);Object.keys(y).length&&(I.videoReportDetails=y);y={};D.video_ids&&(y.videoIds=D.video_ids);D.impersonated_channel_url&&(y.impersonatedChannelUrl=D.impersonated_channel_url);Object.keys(y).length&&(I.channelAbuseReportDetails=y)};
_.mD.Object.defineProperties(Xz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qf=function(){};
_.E(Qf,v9);Qf.prototype.getApiPaths=function(){return lVO};
Qf.prototype.getExtension=function(I){return _.u(I,n6W)};
Qf.prototype.JSC$14445_buildRequest=function(I,y){y.blockedForKidsContent&&(I.blockedForKidsContent=y.blockedForKidsContent)};var Yq=function(){};
_.E(Yq,v9);Yq.prototype.getApiPaths=function(){return Ine};
Yq.prototype.getExtension=function(I){return _.u(I,Ps4)};
Yq.prototype.JSC$14445_buildRequest=function(I,y,D){I.params=y.params;D.impersonated_channel_url&&(I.impersonatedChannelUrl=D.impersonated_channel_url)};var fr=function(){};
_.E(fr,v9);fr.prototype.getApiPaths=function(){return ca_};
fr.prototype.getExtension=function(I){return _.u(I,_.pcc)};
fr.prototype.JSC$14445_buildRequest=function(I,y){y.items&&(I.items=y.items);y.kidGaiaId&&(I.kidGaiaId=y.kidGaiaId)};var nr=function(){};
_.E(nr,v9);nr.prototype.getApiPaths=function(){return hoa};
nr.prototype.getExtension=function(I){return _.u(I,_.uXa)};
nr.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params);y.targetId&&(I.targetId=y.targetId)};var pr=function(){};
_.E(pr,v9);pr.prototype.getApiPaths=function(){return RyM};
pr.prototype.getExtension=function(I){return _.u(I,fUa)};
pr.prototype.JSC$14445_buildRequest=function(I,y){y.externalVideoId&&(I.externalVideoId=y.externalVideoId);y.query&&(I.query=y.query);y.sourceTimelines&&(I.sourceTimelines=y.sourceTimelines)};var mY=function(){};
_.E(mY,v9);mY.prototype.getApiPaths=function(){return O1M};
mY.prototype.getExtension=function(I){return _.u(I,_.IP)||void 0};
mY.prototype.JSC$14445_buildRequest=function(I,y){y.token&&(I.continuation=y.token)};
_.MTR=function(){};
_.E(_.MTR,v9);_.L=_.MTR.prototype;_.L.getApiPaths=function(){return O1M};
_.L.getExtension=function(I){return _.u(I,_.dY)||void 0};
_.L.isNavigationCommand=function(){return!0};
_.L.JSC$14452_getStoreKey=function(I,y){y=y===void 0?{}:y;if(!y.disableCache&&(I=this.getExtension(I))&&I.query)return y={query:I.query},I.params&&(y.params=I.params),_.Sk("search",y)};
_.L.JSC$14445_buildRequest=function(I,y,D){y.query&&(I.query=y.query);y.params&&(I.params=y.params);if(!_.l("web_forward_suggest_stats_killswitch")){var F=_.u(y,DyM);F&&(I.suggestStats=F)}var R;!_.l("kevlar_searchbox_stats_killswitch")&&((R=D.tempData)==null?0:R.gs_l)&&!_.u(y,DyM)&&(I.webSearchboxStatsUrl="/search?oq="+(D.tempData.oq||"")+"&gs_l="+D.tempData.gs_l);var O;if((O=D.tempData)==null?0:O.entityMid)y=I.suggestionSearchParams||{},y.entityMid=D.tempData.entityMid,I.suggestionSearchParams=y;
if(_.l("enable_desktop_vdcbg_components")||_.l("enable_inline_muted_playback_on_web_search"))y=_.a1().getFlag(186),I.inlineSettingStatus=y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";D.isFromShorts&&(I.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.L.getRequestConfig=function(I,y){y=y===void 0?{}:y;I=this.JSC$14452_getStoreKey(I,y);var D;I&&(D={storeStrategy:{storeKey:I}});_.l("web_log_search_ticks_ks")||(D=D||{},D.requestTick="sr_s",D.responseTick="sr_r");return D};var Mh=function(){};
_.E(Mh,v9);Mh.prototype.getApiPaths=function(){return pjG};
Mh.prototype.getExtension=function(I){return _.u(I,HYu)};
Mh.prototype.JSC$14445_buildRequest=function(I,y){y.serializedGetSharingProviderDataParams&&(I.serializedGetSharingProviderDataParams=y.serializedGetSharingProviderDataParams)};var zZ=function(){};
_.E(zZ,v9);zZ.prototype.getApiPaths=function(){return mDW};
zZ.prototype.getExtension=function(I){return _.u(I,sOn)};
zZ.prototype.JSC$14445_buildRequest=function(I,y){y.endpoint&&(I.endpoint=y.endpoint);y.action&&(I.action=y.action)};var kq=function(){};
_.E(kq,v9);kq.prototype.getApiPaths=function(){return PQc};
kq.prototype.getExtension=function(I){return _.u(I,k2O)};
kq.prototype.JSC$14445_buildRequest=function(I,y){I.videoId=y.videoId;y.scheduledRedirectMetadataSourceVideoId&&(I.scheduledRedirectMetadata={sourceVideoId:y.scheduledRedirectMetadataSourceVideoId})};var dw=function(){};
_.E(dw,v9);dw.prototype.getApiPaths=function(){return vbM};
dw.prototype.getExtension=function(I){return _.u(I,_.Mon)};
dw.prototype.JSC$14445_buildRequest=function(I,y){I.params=y.params;I.correctionText=y.correctionText};var aw=function(){};
_.E(aw,v9);aw.prototype.getApiPaths=function(){return X64};
aw.prototype.getExtension=function(I){return _.u(I,_.nFM)};
aw.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params);I.searchQuery=y.searchQuery;I.languageCode=y.languageCode;I.kind=y.kind;I.name=y.name;I.externalVideoId=y.externalVideoId};var cD=function(){};
_.E(cD,v9);cD.prototype.getApiPaths=function(){return G7f};
cD.prototype.getExtension=function(I){return _.u(I,Zcc)};
cD.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.params=y.params)};var WD=function(I){this.JSC$18730_storeWithEntities=I};
_.E(WD,v9);WD.prototype.getApiPaths=function(){return yag};
WD.prototype.getExtension=function(I){return _.u(I,IkP)||_.u(I,D1_)};
WD.prototype.JSC$14445_buildRequest=function(I,y,D){D.client_data&&(I.clientData=D.client_data);if(y.commerceActionConfig){var F=y.commerceActionConfig;y=F.actionId;F=F.commerceActionParams;y&&(I.actionId=y);F&&(I.commerceActionParams=F)}else{var R=y.actionId,O=y.commerceActionParams;D=y.entityKeys;R&&(I.actionId=R);O&&(I.commerceActionParams=O);var w;y=(F=this.JSC$18730_storeWithEntities)==null?void 0:(w=F.getState())==null?void 0:w.entities;if(D&&y){F=[];w=_.J(D);for(D=w.next();!D.done;D=w.next())if(R=
D.value,D=_.Xw(R).entityType,R=_.nC(y,D,R))O={},F.push((O[D]=R,O));I.entityMutationPayloads=F}}};
WD.prototype.getRequestConfig=function(I){var y,D=(y=_.u(I,IkP))==null?void 0:y.requestSequenceType;if(D&&I.clickTrackingParams&&D!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:I.clickTrackingParams,sequenceType:D}}};
WD[mw]=[Gr];var Cr=function(){};
_.E(Cr,v9);Cr.prototype.getApiPaths=function(){return Xoa};
Cr.prototype.getExtension=function(I){return _.u(I,_.x1f)};
Cr.prototype.JSC$14445_buildRequest=function(I,y){y.feedbackData&&(I.feedbackData=y.feedbackData);y.params&&(I.itemParams=y.params)};
_.mD.Object.defineProperties(Cr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BD=function(){};
_.E(BD,v9);BD.prototype.getApiPaths=function(){return QlO};
BD.prototype.getExtension=function(I){return _.u(I,lkP)};
BD.prototype.JSC$14445_buildRequest=function(I,y,D){D.payments_payload&&(I.paymentsPayload=D.payments_payload);D.offer_params&&(I.offerParams=D.offer_params);y.transactionParams&&(I.transactionParams=y.transactionParams)};var iT=function(){};
_.E(iT,v9);iT.prototype.getApiPaths=function(){return YdO};
iT.prototype.getExtension=function(I){return _.u(I,_.uLP)};
iT.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.buybucketParams&&(I.buybucketData={params:y.buybucketParams},y.stickerParams?I.buybucketData.stickerParams=y.stickerParams:(D.rich_chat_message?I.buybucketData.richChatMessage=D.rich_chat_message:D.chat_message_text&&(I.buybucketData.chatMessageText=D.chat_message_text),D.purchase_price_micros&&(I.buybucketData.purchasePriceMicros=D.purchase_price_micros.toString())));y.donationAmountMicros&&(I.tipAmountMicros=y.donationAmountMicros,
y.tipParams&&(I.tipParams=y.tipParams));y.offerParams&&(I.offerParams=y.offerParams);y.productData&&(I.productData=y.productData);y.transactionParams&&(I.transactionParams=y.transactionParams)};var AN=function(){};
_.E(AN,v9);AN.prototype.getApiPaths=function(){return fng};
AN.prototype.getExtension=function(I){return _.u(I,GRe)};
AN.prototype.JSC$14445_buildRequest=function(I,y){y.updateFopParams&&(I.updateFopParams=y.updateFopParams)};var $q=function(){};
_.E($q,v9);$q.prototype.getApiPaths=function(){return nbu};
$q.prototype.getExtension=function(I){return _.u(I,_.P_)};
$q.prototype.JSC$14445_buildRequest=function(I,y){y.couponCode&&(I.couponCode=y.couponCode);y.params&&(I.itemParams=y.params)};var bT=function(){};
_.E(bT,v9);bT.prototype.getApiPaths=function(){return poz};
bT.prototype.getExtension=function(I){return _.u(I,_.yhM)};
bT.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;y.params&&(I.params=y.params);D.ctk&&(I.clientToken=D.ctk)};var HD=function(I){this.JSC$18765_storeWithEntities=I};
_.E(HD,v9);HD.prototype.getApiPaths=function(){return mcc};
HD.prototype.getExtension=function(I){return _.u(I,_.j1)};
HD.prototype.JSC$14445_buildRequest=function(I,y,D){D.purchase_price_micros&&(I.productData={pdgData:{purchasePriceMicros:D.purchase_price_micros.toString()}},D.rich_chat_message&&(I.productData.pdgData.richChatMessage=D.rich_chat_message),D.currency_code&&(I.productData.pdgData.currencyCode=D.currency_code));y.transactionParams&&(I.transactionParams=y.transactionParams);y.clientLocationContext&&(I.clientLocationContext=y.clientLocationContext);D.payments_payload&&(I.paymentsPayload=D.payments_payload);
D.funds_guarantee_callback_client_data&&(I.fundsGuaranteeCallbackClientData=D.funds_guarantee_callback_client_data);var F,R;D=(F=this.JSC$18765_storeWithEntities)==null?void 0:(R=F.getState())==null?void 0:R.entities;if(y.entityKeys&&D){F=[];y=_.J(y.entityKeys);for(R=y.next();!R.done;R=y.next()){var O=R.value;R=_.Xw(O).entityType;if(O=_.nC(D,R,O)){var w={};F.push((w[R]=O,w))}}I.entityMutationPayloads=F}};
HD[mw]=[Gr];var e3=function(){};
_.E(e3,v9);e3.prototype.getApiPaths=function(){return M4M};
e3.prototype.getExtension=function(I){return _.u(I,qHR)};
e3.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;D.backend_analytics&&(I.serializedBackendAnalyticsEvent=D.backend_analytics);y.offerParams&&(I.offerParams=y.offerParams)};var TZ=function(){};
_.E(TZ,v9);TZ.prototype.getApiPaths=function(){return nbu};
TZ.prototype.getExtension=function(I){return _.u(I,Z7W)};
TZ.prototype.JSC$14445_buildRequest=function(I,y){y.params&&(I.itemParams=y.params)};var sT=function(){};
_.E(sT,v9);sT.prototype.getApiPaths=function(){return zyR};
sT.prototype.getExtension=function(I){return _.u(I,_.Jhc)};
sT.prototype.JSC$14445_buildRequest=function(I,y,D){D.resume_time_ms&&(I.resumeTimeMs=D.resume_time_ms);y.pauseParams&&(I.pauseParams=y.pauseParams)};var Vf=function(){};
_.E(Vf,v9);Vf.prototype.getApiPaths=function(){return k7c};
Vf.prototype.getExtension=function(I){return _.u(I,_.EZg)};
Vf.prototype.JSC$14445_buildRequest=function(I,y,D){D=D===void 0?{}:D;D.c&&(I.redeemCode=D.c);D.rd&&(I.riskData=D.rd);D.ctk&&(I.clientToken=D.ctk)};var ZD=function(){};
_.E(ZD,v9);ZD.prototype.getApiPaths=function(){return dc_};
ZD.prototype.getExtension=function(I){return _.u(I,_.w7c)};
ZD.prototype.JSC$14445_buildRequest=function(I,y){y.resumeParams&&(I.resumeParams=y.resumeParams)};var gw=function(I,y){this.clientName=I;this.defaultExpirationDelayMs=y};
gw.prototype.put=function(I,y){var D=this,F;return _.S(function(R){F=Object.assign({},y.data);F.key=I;F.clientName=D.clientName;F.expireTimestampMs===void 0&&(F.expireTimestampMs=(Math.round((0,_.m_)())+D.defaultExpirationDelayMs).toString());return R.return(D.putInternal(I,F))})};
gw[mw]=[jS,hqY];var zBa=function(){gw.apply(this,arguments);this.JSC$18795_responseStore=new Map};
_.E(zBa,gw);_.L=zBa.prototype;_.L.get=function(I){var y=this;return _.S(function(D){return D.return(Wy(y,I))})};
_.L.putInternal=function(I,y){var D=this,F,R,O;return _.S(function(w){F=D.defaultExpirationDelayMs;y.expireTimestampMs&&(F=Number(y.expireTimestampMs)-Math.round((0,_.m_)()),R=_.kf("mweb_override_response_store_expiration_ms"),R>0&&R<F&&(F=R));O=setTimeout(function(){D.remove(I)},F);
D.JSC$18795_responseStore.set(I,{entryData:y,timer:O});_.Cj(w)})};
_.L.remove=function(I){var y=this;return _.S(function(D){k6b(y,I);_.Cj(D)})};
_.L.removeAll=function(){var I=this;return _.S(function(y){I.JSC$18795_responseStore.forEach(function(D){clearTimeout(D.timer)});
I.JSC$18795_responseStore.clear();_.Cj(y)})};
_.L.has=function(I){return!!this.JSC$18795_responseStore.get(I)};
_.L.getKeys=function(){return this.JSC$18795_responseStore.keys()};
var Wy=function(I,y){if(I=I.JSC$18795_responseStore.get(y))return new _.cy(I.entryData)},k6b=function(I,y){var D=I.JSC$18795_responseStore.get(y);
D&&(clearTimeout(D.timer),I.JSC$18795_responseStore.delete(y))};
zBa.prototype.markAsProcessed=function(I){var y=this,D;return _.S(function(F){D=y.JSC$18795_responseStore.get(I);if(!D)return F.jumpTo(0);D.entryData.isProcessed=!0;return F.yield(y.putInternal(I,D.entryData),0)})};var kDS;var avH=function(I,y,D){gw.call(this,I,y);this.token=D};
_.E(avH,gw);_.L=avH.prototype;_.L.get=function(I){var y=this,D,F;return _.S(function(R){return R.nextAddress==1?R.yield(Qo(y.token),2):R.nextAddress!=3?(D=R.yieldResult,R.yield(D.get("ResponseStore",[I,y.clientName]),3)):(F=R.yieldResult)?R.return(new _.cy(F)):R.return(void 0)})};
_.L.putInternal=function(I,y){var D=this,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(Qo(D.token),2);F=R.yieldResult;return R.yield(F.put("ResponseStore",y),0)})};
_.L.remove=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(Qo(y.token),2);D=F.yieldResult;return F.return(D.delete("ResponseStore",[I,y.clientName]))})};
_.L.removeAll=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(Qo(I.token),2);y=D.yieldResult;return D.yield(Tea(y,IDBKeyRange.only(I.clientName)),0)})};
_.L.has=function(){throw Error("lj");};
_.L.markAsProcessed=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield(Qo(y.token),2);if(R.nextAddress!=3)return D=R.yieldResult,R.yield(D.get("ResponseStore",[I,y.clientName]),3);F=R.yieldResult;if(!F)return R.jumpTo(0);F.isProcessed=!0;return R.yield(D.put("ResponseStore",F),0)})};_.Ig=new _.uk("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var dJg=function(I){var y;this.stateTagsData=(y=I.responseContext)==null?void 0:y.stateTags},aZR=function(I){var y;
return((y=I.stateTagsData)==null?void 0:y.stateTagsModified)||[]};var cvY;cvY=function(I){this.JSC$18808_responseStore=I};
_.vn=function(I,y,D){if(!_.l("state_tags_killswitch")){var F=new dJg(y);if(aZR(F).length>0){var R=I.JSC$18808_responseStore.getKeys();R=_.J(R);for(var O=R.next();!O.done;O=R.next()){O=O.value;var w=Wy(I.JSC$18808_responseStore,O);if(w){var v=_.qv(w);a:{var P=void 0;w=aZR(F);v=((P=(new dJg(v)).stateTagsData)==null?void 0:P.relevantStateTags)||[];P=_.J(v);for(v=P.next();!v.done;v=P.next())if(v=v.value,v.stateTag!=null&&w.includes(v.stateTag)&&v.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){w=
!0;break a}w=!1}w&&k6b(I.JSC$18808_responseStore,O)}}}}var K;F=(K=y.responseContext)==null?void 0:K.maxAgeSeconds;D&&F&&Number(F)>0&&(y=Gj(y,F),I.JSC$18808_responseStore.put(D,new _.cy(y)))};
cvY.prototype.handleResponse=function(I,y){if(!y)throw Error("mj");var D,F;y=(D=y.config)==null?void 0:(F=D.storeStrategy)==null?void 0:F.storeKey;_.vn(this,I,y)};
cvY[mw]=[_.aK];_.VyW=new _.uk("STORE_RESPONSE_PROCESSOR_TOKEN");var W5Q=function(I){this.JSC$18811_responseStore=I};
W5Q.prototype.handleResponse=function(I,y){if(y.input.match(_.NP(Vwn))){var D;if(I==null?0:(D=I.entries)==null?0:D.length)for(I=_.J(I.entries),y=I.next();!y.done;y=I.next()){D=y.value.command;var F=void 0;y=(F=_.u(D,_.WF))==null?void 0:F.unserializedPrefetchData;if(!D||!y)break;F=(new qh).JSC$14452_getStoreKey(D);var R=_.u(y,OYg),O=void 0,w=void 0,v=void 0,P=void 0,K=void 0,r=void 0,N=((O=R)==null?0:(w=O.responseContext)==null?0:w.maxAgeSeconds)&&Number((v=R)==null?void 0:(P=v.responseContext)==null?
void 0:P.maxAgeSeconds)>0?Number((K=R)==null?void 0:(r=K.responseContext)==null?void 0:r.maxAgeSeconds):600;F&&N>0&&(R=Gj(R,N),this.JSC$18811_responseStore.put(F,new _.cy(R)));D=(new a$).JSC$14452_getStoreKey(D);y=_.u(y,iMu);P=v=w=O=R=F=void 0;K=((F=y)==null?0:(R=F.responseContext)==null?0:R.maxAgeSeconds)&&Number((O=y)==null?void 0:(w=O.responseContext)==null?void 0:w.maxAgeSeconds)>0?Number((v=y)==null?void 0:(P=v.responseContext)==null?void 0:P.maxAgeSeconds):600;D&&K>0&&(y=Gj(y,K),this.JSC$18811_responseStore.put(D,
new _.cy(y)))}}};
W5Q[mw]=[_.aK];var CDG=function(I,y){this.innertubeTransportService=I;this.JSC$18814_commandHandler=y};
CDG.prototype.submitForm=function(I,y,D,F,R){var O=this,w,v,P,K,r,N;return _.S(function(h){if(h.nextAddress==1)return w={submitId:I,formData:y,submitBehavior:D,params:F},v=_.NP(Sdc),h.yield(_.U3(O.innertubeTransportService,w,v,R),2);P=h.yieldResult;if(!P)return h.return(Promise.reject(new _.g6("Submit API returned an undefined response. Submit ID: "+I)));K=P;(N=(r=K)==null?void 0:r.onResponseReceived)&&O.JSC$18814_commandHandler.resolveCommand(N);return h.return(K)})};
CDG[mw]=[_.iX,_.MC];var y7=function(){this.scheduler=_.Tr()},BMC;
y7.prototype.pause=function(){throw Error("nj");};
y7.prototype.resume=function(){throw Error("nj");};
y7.prototype.queue=function(I){var y=this,D=_.vS(),F=_.y9(this.scheduler,function(){try{var R;if(_.M4.instance)var O=_.M4.instance;else{var w=new _.g6("Error: Unexpected uninitialized CommandHandler.");_.vu(w);O=void 0}(R=O)==null||R.resolveCommand(I.command);D.resolve()}catch(v){D.reject(v)}});
D.promise.thenCatch(function(R){R instanceof _.F9&&y.scheduler.cancelJob(F)});
return D.promise};
y7.prototype.queueAll=function(I){var y=new Map;I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,y.set(D.id,this.queue(D));return y};var Ava=function(I,y){var D=this;this.taskModel=I;this.onTaskCancelledCallback=y;this.resolver=_.vS();I=I.proto.prefetchConfig;if(!I)throw Error("oj");if(!I.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(F){F instanceof _.F9&&(iW1(D,D.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),D.onTaskCancelledCallback(D.taskModel.id,D.jobId),D.tick("pcc"));
throw F;});
this.timerName=this.taskModel.id;_.s$(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Ava.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 iW1=function(I,y){_.ek({prefetchInfo:{cancellationReason:y}},I.timerName)};
Ava.prototype.tick=function(I){_.V_(I,void 0,this.timerName)};var F3=function(){var I=this;this.scheduler=_.Tr();this.maxInflightTasks=_.kf("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.kf("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new owg;this.onTaskCancelled=function(y,D){D&&I.scheduler.cancelJob(D);$Je(I,y);D9(I,3)}},bWC=function(){F3.instance||(F3.instance=new F3);
return F3.instance};
F3.prototype.pause=function(){this.prefetchCoordinatorState=0};
F3.prototype.resume=function(){D9(this,0)};
F3.prototype.queue=function(I){I=HWa(this,I);D9(this,1);return I};
F3.prototype.queueAll=function(I){var y=new Map;I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,y.set(D.id,HWa(this,D));D9(this,1);return y};
var HWa=function(I,y){var D=I.allPrefetchTasks.get(y.id);if(D)return D.cancellablePromise;try{var F=new Ava(y,I.onTaskCancelled)}catch(O){return _.eE(O)}D=F;D.tick("pcq");var R={prefetchInfo:{taskId:D.taskModel.id,isPrefetch:!0,fetchAction:D.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:D.taskModel.command.clickTrackingParams}};D.taskModel.csn&&(R.clientScreenNonce=D.taskModel.csn);_.ek(R,D.timerName);I.allPrefetchTasks.set(y.id,F);I.drainingHeap.insert(-F.getPriority(),F);return F.cancellablePromise},
D9=function(I,y){I.prefetchCoordinatorState===y&&(I.prefetchCoordinatorState=2,eBa(I))},eBa=function(I){for(var y={};I.prefetchCoordinatorState!==0;y={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(I.inflightPrefetchTasks.size>=I.maxInflightTasks){I.prefetchCoordinatorState=3;break}y.prefetchTask$jscomp$1=I.drainingHeap.remove();if(!y.prefetchTask$jscomp$1){I.prefetchCoordinatorState=1;break}y.taskId$jscomp$3=y.prefetchTask$jscomp$1.taskModel.id;if(I.allPrefetchTasks.has(y.taskId$jscomp$3)){var D=-1;I.coordinatorTimeoutMs>0&&(D=_.y9(I.scheduler,function(F){return function(){Rg(I,F.taskId$jscomp$3,Error("qj"))}}(y),I.coordinatorTimeoutMs));
I.inflightPrefetchTasks.set(y.taskId$jscomp$3,D);if(!I.JSC$18831_commandHandler){if(!_.M4.instance){Rg(I,y.taskId$jscomp$3,Error("rj"));continue}I.JSC$18831_commandHandler=_.M4.instance}a:switch(y.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":D=1;break a;default:D=0}y.prefetchTask$jscomp$1.jobId=I.scheduler.addJob(function(F){return function(){F.prefetchTask$jscomp$1.tick("pcr");try{I.JSC$18831_commandHandler.resolveCommand(F.prefetchTask$jscomp$1.taskModel.command)||
Rg(I,F.taskId$jscomp$3,Error("sj"))}catch(R){Rg(I,F.taskId$jscomp$3,R)}}}(y),D,0)}}},TMT=function(I,y){(y=$Je(I,y))!=null&&(y.resolver.resolve(),y.tick("pce"));
D9(I,3)},Rg=function(I,y,D){(y=$Je(I,y,D))!=null&&(y.resolver.reject(D),y.tick("pcc"),iW1(y,"CANCELLATION_REASON_ERROR"),Math.random()<=_.kf("prefetch_coordinator_error_logging_sampling_rate")&&(D=new _.g6("Prefetch Command failed.",y.taskModel.id,D.message),_.vu(D)));
D9(I,3)},$Je=function(I,y,D){var F=I.allPrefetchTasks.get(y);
F?((D=I.inflightPrefetchTasks.get(y))&&D!==-1&&I.scheduler.cancelJob(D),I.inflightPrefetchTasks.delete(y),I.allPrefetchTasks.delete(y)):_.tq(new _.g6("Unexpected missing prefetch task when deleting task.",y,D==null?void 0:D.message));return F};var sDe=function(I,y,D,F,R){this.id=I;this.triggerOn=y;this.cancelOn=D;this.command=F;this.proto=R};
_.mD.Object.defineProperties(sDe.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var VTT=function(){this.JSC$18836_prefetchCoordinator=bWC();BMC||(BMC=new y7);this.defaultCoordinator=BMC},ZW1;
VTT.getInstance=function(){ZW1||(ZW1=new VTT);return ZW1};
VTT.prototype.get=function(I){switch(I){case 0:return this.JSC$18836_prefetchCoordinator;default:return this.defaultCoordinator}};var Oo=function(){this.coordinatorSupplier=VTT.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},yue=function(I){var y=_.VO()||void 0,D=Object.keys(gWa)[0];
if(D){var F=I.taskIdByTriggerId.get(D);if(F!=null){I.taskIdByTriggerId.delete(D);D=[];F=_.J(F);for(var R=F.next();!R.done;R=F.next())if(R=I.tasks.get(R.value))y!=="UNDEFINED_CSN"&&(R.csn=y),D.push(R);D=Cx4(D);y=[];D=_.J(D);for(F=D.next();!F.done;F=D.next()){R=_.J(F.value);F=R.next().value;R=R.next().value;F=I.coordinatorSupplier.get(F).queueAll(R);F=_.J(F);var O=F.next();for(R={};!O.done;R={taskId$jscomp$9:void 0},O=F.next()){var w=_.J(O.value);O=w.next().value;w=w.next().value;R.taskId$jscomp$9=
O;O=w;y.push(R.taskId$jscomp$9);I.queuedPromisesByTask.set(R.taskId$jscomp$9,_.D1(O,function(v){return function(){Iay(I,v.taskId$jscomp$9)}}(R)))}}}}else _.tq(new _.g6("Unexpected malformed TriggerEvent."))};
Oo.prototype.trigger=function(I,y){var D=this,F=this.tasks.get(I);if(!F||this.queuedPromisesByTask.has(I))return!1;DaG(this,I,F.triggerOn);y!=="UNDEFINED_CSN"&&(F.csn=y);y=this.coordinatorSupplier.get(F.taskType).queue(F);this.queuedPromisesByTask.set(I,_.D1(y,function(){Iay(D,I)}));
return!0};
Oo.prototype.cancel=function(I){var y=this.queuedPromisesByTask.get(I);if(y)y.cancel();else return Iay(this,I)};
var Iay=function(I,y){I.queuedPromisesByTask.delete(y);var D=I.tasks.get(y);if(!D)return!1;I.tasks.delete(y);DaG(I,y,D.triggerOn);(D=WR_(D.cancelOn))&&(I=I.taskIdByCancelId.get(D))&&I.delete(y);return!0},DaG=function(I,y,D){(D=Object.keys(D)[0])&&(I=I.taskIdByTriggerId.get(D))&&I.delete(y)};var gWa={taskRegistered:{}},LI=function(){Oo.instance||(Oo.instance=new Oo);this.JSC$18845_taskManager=Oo.instance};
_.E(LI,rO);
LI.prototype.resolveCommand=function(I){var y=this,D,F;return _.S(function(R){D=_.u(I,R9_);if((F=D)==null||!F.tasks){var O=new _.g6("RegisterTasksCommand is missing tasks.");_.vu(O);return R.return()}O=y.JSC$18845_taskManager;for(var w=_.J(D.tasks),v=w.next();!v.done;v=w.next())if(v=v.value,v=v.id&&v.triggerOn&&v.cancelOn&&v.command?new sDe(v.id,v.triggerOn,v.cancelOn,v.command,v):void 0,v){var P=Object.keys(v.triggerOn)[0];if(P){var K=WR_(v.cancelOn);K?(O.tasks.set(v.id,v),O.taskIdByTriggerId.has(P)||O.taskIdByTriggerId.set(P,
new Set),O.taskIdByTriggerId.get(P).add(v.id),O.taskIdByCancelId.has(K)||O.taskIdByCancelId.set(K,new Set),O.taskIdByCancelId.get(K).add(v.id)):_.tq(new _.g6("Unexpected malformed cancelOn field."))}else _.tq(new _.g6("Unexpected malformed triggerOn field."))}else _.tq(new _.g6("Unexpected malformed Task proto."));yue(y.JSC$18845_taskManager);_.Cj(R)})};var FOa={},RkC=(FOa.rendered={priority:_.l("web_adaptive_early_init")?8:0,callback:function(){var I={};I.numCpu=navigator.hardwareConcurrency;var y={};y.ramGb=_.Ft.navigator.deviceMemory;var D={staticContext:{}};y.ramGb&&Vd5(y.ramGb)&&(D.staticContext.memoryTotalKbytes=(y.ramGb*1048576).toString());I.numCpu&&Vd5(I.numCpu)&&(D.staticContext.cpuCores=I.numCpu);if(_.l("web_enable_adaptive_appl_signal")){I={};y=X05();y=y.length>0?y[0]:void 0;var F,R=(F=_.IQ("rses_dpj"))!=null?F:y==null?void 0:y.tick.rses_dpj,
O;F=(O=_.IQ("rsef_dpj"))!=null?O:y==null?void 0:y.tick.rsef_dpj;R&&Number(R)>0&&F&&Number(F)>0&&(O=Math.ceil(Number(F)-Number(R)),O>0&&(I.loadLatency=O));I.loadLatency&&Vd5(I.loadLatency)&&(D.appL=I.loadLatency.toString())}_.Jq("applicationStarted",D);ZKH=D;_.l("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",gNq)}},FOa);var Oe8=new _.uk("WINDOW_ON_ERROR"),LOg=new _.uk("ERROR_WEIGHT_MAPS"),JuR=new _.uk("INIT_ERROR");var wmG={},vM1=(wmG.initialized={priority:10,callback:function(I){I.injector.resolve(JuR)()}},wmG);var SuR=function(){},tRo=function(){var I=_.jF("meta_logger_impl");
I||(I=new SuR,_.fv("meta_logger_impl",I));return I},PSy=function(){tRo().csiSubscriptionKey=ig5("meta_logging_csi_event",function(I){var y=I.timerName;
if(I=I.timelineData){_.s$(y,{startTime:I.startTime},y);I.infos&&_.ek(I.infos,y);for(var D=_.J(Object.keys(I.ticks)),F=D.next();!F.done;F=D.next())F=F.value,_.V_(F,I.ticks[F],y)}})};
SuR.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&bgS(this.csiSubscriptionKey)};var KOC={},UaY=(KOC.initialized={priority:10,callback:function(){PSy()}},KOC);var ru8=function(I,y){this.innertubeClientName=I;this.JSC$18856_prefCookie=y};
ru8.prototype.record=function(){if(_.l("web_li_record_binary_eval_tick")){var I=_.IQ("rsef_dpj");var y=_.IQ("rses_dpj");I=I!==void 0&&y!==void 0?Math.round(I-y):void 0;if(I!==void 0&&I>0){y=_.bX(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var D=this.poolSize;if(!(y.valuesSeen>=1E9)){if(y.valuesSample.length<D)y.valuesSample.push(I);else{var F=Math.floor(Math.random()*(y.valuesSeen+1));F<D&&(y.valuesSample[F]=I)}y.valuesSeen+=1}_.$c(this.storagePrefix+"-"+this.innertubeClientName,
y,2592E3);I=y.valuesSample;y=BDB(I);I=I.length<this.poolSize?void 0:y<400?1:y<1700?2:3;I!==void 0&&(this.JSC$18856_prefCookie.set(this.cookiePrefix+this.innertubeClientName,I),this.JSC$18856_prefCookie.save())}}else _.HF(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18856_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18856_prefCookie.save()};
ru8[mw]=[jS,I$];var jby=function(){ru8.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.E(jby,ru8);var oMY=new _.uk("PAGE_LOAD_TIME_TOKEN");var NRQ=function(I){this.signal=I;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;I.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.y9(_.w2,this.disableLoggingAndSendPayload,1E4)};
NRQ.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.w2.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),hky(this))};
var hky=function(I){var y=_.s_();if(y){var D={webClientComponentsData:{components:Array.from(I.ids,function(F){return{id:F}})}};
I.ids.clear();_.W4().visualElementStateChanged(y,D)}};var xae=ep({a11y:ife});_.la1=TJ(xae)(xae.a11y,{ephemeralActionSelector:function(I){return I.ephemeralAction||null}});var u5a=ep({continuation:esg});var qua=TJ(u5a)(u5a.continuation,{continuationCommandSelector:function(I){return I.continuationCommand}});var EMZ=new _.uk("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var J8=function(I,y){this.JSC$18885_storeWithEntities=I;this.JSC$18885_commandHandler=y;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
J8.prototype.start=function(){this.JSC$18885_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
J8.prototype.observeDownloadingEntities=function(){var I=_.iM_(this.JSC$18885_storeWithEntities.getState().entities).map(function(F){return A2q(F)});
if(I.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var y={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:nUq()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.lo(_.zC("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18885_commandHandler.resolveCommand(y)}this.downloadingEntities=I}else if(this.downloadingEntities.length){var D=Biq(this.JSC$18885_storeWithEntities.getState().entities).map(function(F){return A2q(F)});
this.downloadingEntities.filter(function(F){return D.includes(F)}).length&&(I={openPopupAction:xfJ()},this.JSC$18885_commandHandler.resolveCommand(I));
this.downloadingEntities=[]}};
J8[mw]=[Gr,_.MC];var GOo;_.wg=function(I,y,D,F,R,O,w,v){this.JSC$18888_playerApiPromise=I;this.JSC$18888_commandHandler=y;this.JSC$18888_screenManager=D;this.offlineWebClientEligibility=F;this.JSC$18888_prefStorage=R;this.JSC$18888_actionRouter=O;this.entityTypeMap=w;this.JSC$18888_persistentStorePromiseAccessor=v;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
GOo=function(){var I=_.nR().resolve(_.wg),y;_.S(function(D){if(D.nextAddress==1)return I.downloadFailureListenerBound?D.return():D.yield(I.JSC$18888_playerApiPromise,2);y=D.yieldResult;y.addEventListener("onOfflineOperationFailure",function(F){if(F.failureReason&&F.entityKey&&F.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(F.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var R=_.Xw(F.entityKey).entityId;R&&I.JSC$18888_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
R)}else if(_.l("kevlar_woffle")){R=I.JSC$18888_commandHandler;var O=R.resolveCommand;F=F.failureReason;var w=_.zC("TRANSFER_FAILED",void 0,"Download failed");F==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(w=_.zC("STORAGE_FULL",void 0,"Storage full"));O.call(R,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lo(w),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
I.downloadFailureListenerBound=!0;_.Cj(D)})};
_.wg.prototype.deleteVideo=function(I,y){var D=this,F,R,O;return _.S(function(w){if(w.nextAddress==1)return w.yield(D.JSC$18888_playerApiPromise,2);F=w.yieldResult;O={offlineLoggingData:{offlineDeleteReason:(R=y)!=null?R:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return w.yield(F.queueOfflineAction(I,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",O),0)})};
_.wg.prototype.pauseVideoDownload=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.JSC$18888_playerApiPromise,2);D=F.yieldResult;D.pauseVideoDownload(I);_.Cj(F)})};
_.wg.prototype.resumeVideoDownload=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.JSC$18888_playerApiPromise,2);D=F.yieldResult;return F.yield(D.resumeVideoDownload(I),0)})};
_.wg[mw]=[_.qY,_.MC,_.gi,EMZ,R$,GV,WBg,WN];var Xma=new _.uk("DOWNLOAD_STATE_STORE_TOKEN");var Qbb=function(I,y){this.JSC$18909_persistentStorePromiseAccessor=I;this.store=y;this.upliftCompletionResolver=new _.n0},nMb=function(){var I=_.nR().resolve(YuY),y;
_.S(function(D){switch(D.nextAddress){case 1:if(I.upliftImplPromise)return D.return(I.upliftImplPromise);_.nj(D,2);I.upliftImplPromise=fae(I);return D.yield(I.upliftImplPromise,4);case 4:I.upliftCompletionResolver.resolve();_.lZ(D,3);break;case 2:throw y=_.dj(D),I.upliftCompletionResolver.reject(y),y;case 3:return D.return(I.upliftImplPromise)}})},fae=function(I){var y,D,F;
return _.S(function(R){switch(R.nextAddress){case 1:return _.KR("LOGGED_IN")?R.yield(I.JSC$18909_persistentStorePromiseAccessor(),2):R.return();case 2:y=R.yieldResult;if(!y)return _.V_("vdeur"),R.return();_.V_("vdeus");_.nj(R,3);return R.yield(pmY(y),5);case 5:D=R.yieldResult;I.store.dispatch(Qm4(D));y.observe(function(O){YYq(I.store,O)});
_.lZ(R,4);break;case 3:throw F=_.dj(R),_.V_("vdeur"),F;case 4:_.V_("vdeuc"),_.Cj(R)}})},pmY=function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(eOq(I),2);y=D.yieldResult;return D.return(y.reduce(function(F,R){if(!R.data||!R.key||!R.entityType)return F;F[R.entityType]||(F[R.entityType]={});F[R.entityType][R.key]=R.data;return F},{}))})};
Qbb[mw]=[WN,_.LM];var YuY;YuY=new _.uk("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.vL=new _.uk("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Sm=function(I,y){this.JSC$18912_persistentStorePromiseAccessor=I;this.transportService=y};
Sm.prototype.refresh=function(){var I=this,y,D,F,R;return _.S(function(O){if(O.nextAddress==1)return _.KR("LOGGED_IN")?O.yield(I.JSC$18912_persistentStorePromiseAccessor(),2):O.return();if(O.nextAddress!=3)return(y=O.yieldResult)?O.yield(XEe(y),3):O.return();if((D=O.yieldResult)&&!(Number(D.data.refreshTimestampMs||0)<(0,_.m_)()))return O.return();F={browseId:"SPaccount_downloads"};R=_.NP(rT);_.U3(I.transportService,F,R).then(function(w){var v;if(y&&(w==null?void 0:(v=w.responseContext)==null?void 0:
v.maxAgeSeconds)!==0){var P;v=(w==null?void 0:(P=w.responseContext)==null?void 0:P.maxAgeSeconds)||604800;P=String(Math.floor((0,_.m_)())+v*1E3);y.put("service:downloads_settings:fallback",new _.cy({innertubeResponse:w,refreshTimestampMs:P}))}});
_.Cj(O)})};
Sm[mw]=[_.Ig,_.iX];var t8=function(I,y){this.JSC$18916_playerPromise=I;this.store=y;this.started=!1};
t8.prototype.start=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return I.started?D.return():D.yield(I.JSC$18916_playerPromise,2);y=D.yieldResult;y.addEventListener("onOrchestrationBecameLeader",I.updateIsLeader.bind(I,!0));y.addEventListener("onOrchestrationLostLeader",I.updateIsLeader.bind(I,!1));if(y.isOrchestrationLeader)I.updateIsLeader(y.isOrchestrationLeader());else{var F=new _.g6("Function isOrchestrationLeader is undefined",{"player.isReady":y.isReady(),"player.playVideo":y.playVideo?
"defined":"undefined"});_.vu(F);I.updateIsLeader(!1)}I.started=!0;_.Cj(D)})};
t8.prototype.updateIsLeader=function(I){this.store.dispatch(_.Ec({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:I}}))};
t8[mw]=[_.qY,_.LM];var mag=function(I,y){this.networkStatusManager=I;this.JSC$18919_prefStoragePromise=y;this.redirectsToPreload=["https://youtube.com"]},MRa=function(){var I=_.nR().resolve(mag),y,D,F,R,O,w;
_.S(function(v){switch(v.nextAddress){case 1:return v.yield(I.JSC$18919_prefStoragePromise,2);case 2:y=v.yieldResult;if(!(D=y)){v.jumpTo(3);break}return v.yield(y.get("yt-redirect-prefetch-id"),4);case 4:D=v.yieldResult;case 3:if(D||!I.networkStatusManager.isNetworkAvailable())return v.return();F={cache:"reload",redirect:"manual"};R=_.J(I.redirectsToPreload);O=R.next();case 5:if(O.done){if(!y){v.jumpTo(0);break}return v.yield(y.set("yt-redirect-prefetch-id",!0,86400),0)}w=O.value;_.nj(v,8);return v.yield(_.Ft.fetch(w,
F),10);case 10:_.lZ(v,6);break;case 8:_.dj(v);case 6:O=R.next(),v.jumpTo(5)}})};var zkg=function(I){this.JSC$18925_pageManager=I},kO8=function(I){var y=[];
ZBB(["videoId","contentId"],I.JSC$18925_pageManager.data,new Set,y);return y},daa=function(I){return kO8(I).filter(function(y){return y.contentType==="video"}).map(function(y){return y.contentId}).filter(function(y){return y!==void 0})};
zkg[mw]=[_.ja];var aaR=new _.uk("PAGE_CONTENT_EXTRACTOR_TOKEN");var PL=function(I){I?(this.container=I,this.containerWasInjected=!0):this.containerWasInjected=!1};
PL.prototype.openDialog=function(I,y,D){var F=this,R;return _.S(function(O){(R=F.container)==null||R.openDialog(I,y,D);_.Cj(O)})};
PL.prototype.closeDialog=function(){var I=this,y;return _.S(function(D){(y=I.container)==null||y.closeDialog();_.Cj(D)})};
PL.prototype.isDialogOpen=function(){var I=this,y,D;return _.S(function(F){return F.return((D=(y=I.container)==null?void 0:y.isDialogOpen())!=null?D:!1)})};
PL[mw]=[_.fR(LLP)];_.cuR=new _.uk("POPUP_CONTROLLER_TOKEN");var WOZ=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
WOZ.prototype.registerPanel=function(I,y){if(I){this.panelMap.set(I,y);var D=this.pendingPanelResolvers.get(I);D&&(D.resolve(y),this.pendingPanelResolvers.delete(I))}};
WOZ.prototype.getPanel=function(I){var y=this,D;return _.S(function(F){return(D=y.panelMap.get(I))?F.return(D):F.return(CSa(y,I))})};
var CSa=function(I,y){var D,F;return _.S(function(R){if(D=I.pendingPanelResolvers.get(y))return R.return(D.promise);F=new _.n0;I.pendingPanelResolvers.set(y,F);return R.return(F.promise)})},BR8=function(I,y){WOZ.call(this);
var D=this;this.popupController=I;this.persistentPanelController=y;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return D.panelMap.size}}};
_.E(BR8,WOZ);_.L=BR8.prototype;_.L.getReloadContinuation=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.getPanel(I),2);D=F.yieldResult;return F.return(D.getReloadContinuation())})};
_.L.showPanel=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x;return _.S(function(q){if(q.nextAddress==1){D=I;F=D.identifier;R=D.panelContents;O=D.config;w=D.extras;v=D.panelUpdatableFields;P=D.updatePanelContinuationData;K=I.target;P&&y.updatePanelContinuationDatas.set(F,P);if((r=O)==null?0:(N=r.engagementPanelPopupPresentationConfig)==null?0:N.popupType)if(h=O.engagementPanelPopupPresentationConfig.popupType,K===void 0&&(K=document.body),h==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!y.persistentPanelController)return _.tq(new _.g6("Persistent panel controller is not available.")),
q.return();var X=y.persistentPanelController;X.persistentPanelIdentifiers.has(F)||(X.persistentPanelWrapper.appendChild(X.engagementPanelElement({panelIdentifier:F},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),X.persistentPanelIdentifiers.add(F));a:switch(_.LV.currentPageSubTypeSelector(X.store.getState())){case "watch":var f="WATCH";break a;default:f="APP"}_.ie8(X,f);X.store.dispatch($ka(!0))}else{if(h==="PANEL_POPUP_TYPE_DIALOG"||h==="PANEL_POPUP_TYPE_DROPDOWN"){X=q.return;f=y.popupController;
var m=f.openPopup;a:switch(h){case "PANEL_POPUP_TYPE_DIALOG":var z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":z="DROPDOWN";break a;default:throw Error("uj`"+h);}return X.call(q,m.call(f,F,R,z,K))}_.tq(new _.g6("Popup type "+h+" not supported in PanelController."))}return q.yield(y.getPanel(F),2)}x=q.yieldResult;(R||v)&&x.updatePanel(R,!1,w,v);x.showPanel(w);_.Cj(q)})};
_.L.hidePanel=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D=I,F=D.identifier,w.yield(y.getPanel(F),2);R=w.yieldResult;R.hidePanel();y.popupController.closePopup(F);(O=y.persistentPanelController)!=null&&O.persistentPanelIdentifiers.has(F)&&O.store.dispatch($ka(!1));_.Cj(w)})};
_.L.isVisible=function(I,y){var D=this,F;return _.S(function(R){if(R.nextAddress==1)return y&&!D.panelMap.has(I)?R.return(!1):R.yield(D.getPanel(I),2);F=R.yieldResult;return R.return(F.isVisible())})};
_.L.updatePanel=function(I){var y=this,D,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1){D=I;F=D.identifier;R=D.panelContents;O=D.shouldFocus===void 0?!1:D.shouldFocus;w=D.extras;v=D.panelUpdatableFields;P=D.updatePanelContinuationData;if(!R&&!v)return r.return();P&&y.updatePanelContinuationDatas.set(F,P);_.l("enable_ai_companion")&&F==="PAai_companion"&&_.dP.remove("youchat_messages_section");return r.yield(y.getPanel(F),2)}K=r.yieldResult;K.updatePanel(R,O,w,v);R&&_.l("enable_ai_companion")&&
y.registerPanelContent(F,R);_.Cj(r)})};
_.L.registerPanelContent=function(I,y){I&&this.panelContentMap.set(I,y)};
_.L.unregisterPanelContent=function(I){this.panelContentMap.delete(I)};
_.L.getPanelContent=function(I){return this.panelContentMap.get(I)};
_.L.getUpdatePanelContinuationData=function(I){return this.updatePanelContinuationDatas.get(I)};
BR8[mw]=[_.cuR,_.fR(_.R_)];var KI=function(I,y){this.innertubeTransportService=I;this.JSC$18944_screenManager=y},Au1=function(I){var y;
return!((y=I.panelLoadingStrategy)==null||!y.requestTemplate)};
KI.prototype.makeRequest=function(I){var y=this,D,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!Au1(y)){R.jumpTo(2);break}_.nj(R,3);return R.yield(_.wP(y.innertubeTransportService,I),5);case 5:return D=R.yieldResult,D?R.return(D.content):(_.vu(Error("vj")),R.return(void 0));case 3:F=_.dj(R),_.vu(F);case 2:return R.return(void 0)}})};
KI.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
KI.prototype.execute=function(I){var y=this,D,F,R,O,w,v,P,K,r,N;return _.S(function(h){if(h.nextAddress==1){D=I;F=D.data;R=D.fallbackVe;O=D.parentVe;w=D.createScreenConfig;v=D.renderFn;P=D.command;y.panelLoadingStrategy=F;var x,q,X=((x=y.panelLoadingStrategy)==null?0:x.screenVe)?(q=y.panelLoadingStrategy)==null?void 0:q.screenVe:R;X&&_.d7(y.JSC$18944_screenManager,X,O,w);return(K=y.getContent())?h.yield(v(K),2):h.jumpTo(2)}return h.nextAddress!=4?Au1(y)?h.yield(y.makeRequest(P),4):h.return():(N=r=
h.yieldResult)?h.yield(v(N),0):h.return()})};
KI[mw]=[_.iX,_.gi];var $aG;$aG=function(I,y){this.engagementPanelElement=I;this.store=y;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.ie8=function(I,y){var D=I.persistentPanelContainerMap.get(y);D?D.contains(I.persistentPanelWrapper)||(I=I.persistentPanelWrapper,_.jp=!0,_.ou.set(I,!0),D.insertBefore(I,null),_.ou.delete(I),_.jp=!1):_.tq(new _.g6("Persistent panel container not found for surface "+y+"."))};
$aG[mw]=[JjP,_.LM];var Uo=function(){var I=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){I.isHovered=!0};
this.onTargetHoverLeft=function(){I.isHovered=!1};
this.onSheetHoverEntered=function(){I.isHovered=!0;var y;(y=I.hoverEnterCallback)==null||y.call(I)};
this.onSheetHoverLeft=function(){I.isHovered=!1;var y;(y=I.hoverLeaveCallback)==null||y.call(I)}};
Uo.prototype.getContainer=function(){return _.o1()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Uo.prototype.openSheet=function(I,y,D){D=D===void 0?y:D;var F=this,R,O,w,v,P,K,r;return _.S(function(N){switch(N.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.nj(N,2,3),O=YM,N.yield(F.isSheetOpen(),5);case 5:w=N.yieldResult;i5W(R,Ouq(O));if(!w){N.jumpTo(6);break}if(!F.shouldPreventClosingWhileHovered){if(!_.l("delay_sheet_open_killswitch")){if(_.l("web_close_sheet_if_same_target_killswitch")&&y&&F.currentTarget===y)return(v=F.getContainer())==null||v.closeSheet(),N.return();F.pendingData=
{data:I,target:uOy(F,y)};return N.return()}N.jumpTo(6);break}if(F.currentTarget===y)return N.return();beG(F);Heg(F);return N.yield((P=F.getContainer())==null?void 0:P.closeSheet(),6);case 6:if(I.viewModel&&(I={viewModel:I.viewModel,sheetPosition:I.sheetPosition,expandToFullWidth:I.expandToFullWidth}),(K=F.getContainer())==null||K.openSheet(I,y,D),F.currentTarget=y,F.shouldPreventClosingWhileHovered){F.onTargetHoverEntered();var h;(h=F.currentTarget)==null||h.addEventListener("mouseenter",F.onTargetHoverEntered);
var x;(x=F.currentTarget)==null||x.addEventListener("mouseleave",F.onTargetHoverLeft);eka(F)}else F.hasRegisteredHoverCallbacks&&eka(F);case 3:_.m4(N);ALe(R);_.kQ(N,0);break;case 2:r=_.dj(N),R.error=r,R.hasError=!0,N.jumpTo(3)}})};
Uo.prototype.closeSheet=function(){var I=this;return _.S(function(y){return I.hideDelayMs?(setTimeout(function(){return _.S(function(D){return D.yield(TRa(I),0)})},I.hideDelayMs),y.return()):y.yield(TRa(I),0)})};
var TRa=function(I){var y;return _.S(function(D){if(D.nextAddress==1){if(I.shouldPreventClosingWhileHovered){if(I.isHovered)return D.return();beG(I);Heg(I)}else I.hasRegisteredHoverCallbacks&&(Heg(I),I.onSheetHoverLeft());return D.yield((y=I.getContainer())==null?void 0:y.closeSheet(),2)}if(D.nextAddress!=4)return I.resetState(),!I.pendingData||_.l("delay_sheet_open_killswitch")?D.jumpTo(0):D.yield(I.openSheet(I.pendingData.data,I.pendingData.target),4);I.pendingData=void 0;_.Cj(D)})};
Uo.prototype.isSheetOpen=function(){var I=this,y,D;return _.S(function(F){return F.return((D=(y=I.getContainer())==null?void 0:y.isSheetOpen())!=null?D:!1)})};
Uo.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var beG=function(I){var y;(y=I.currentTarget)==null||y.removeEventListener("mouseenter",I.onTargetHoverEntered);var D;(D=I.currentTarget)==null||D.removeEventListener("mouseleave",I.onTargetHoverLeft)},eka=function(I){var y,D=(y=I.getContainer())==null?void 0:y.getSheetContainerElement();
D==null||D.addEventListener("mouseenter",I.onSheetHoverEntered);D==null||D.addEventListener("mouseleave",I.onSheetHoverLeft)},Heg=function(I){var y,D=(y=I.getContainer())==null?void 0:y.getSheetContainerElement();
D==null||D.removeEventListener("mouseenter",I.onSheetHoverEntered);D==null||D.removeEventListener("mouseleave",I.onSheetHoverLeft)},uOy=function(I,y){if(!_.l("web_parent_target_for_sheets"))return y;
var D,F;return(F=(D=I.getContainer())==null?void 0:D.getParentTarget(y))!=null?F:y};var Y1=window.documentPictureInPicture;var waJ=_.UI(["dark"]),v$t=_.UI(["system-icons"]),SUo=_.UI(["typography"]),t2t=_.UI(["lang"]),PnC=_.UI(["style"]),RWq=_.UI(["dir"]),O6_=_.UI(["rounded-container"]),Ltq=_.UI(["style"]),Ut4=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],rg=function(I){this.JSC$18962_clientRoot=I;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
rg.prototype.openWindow=function(I){var y=this,D,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!Y1||!Y1||!QB()||y.currentPipWindow)return R.return(!1);_.nj(R,2);return R.yield((F=Y1?Y1:null)==null?void 0:F.requestWindow(I),4);case 4:D=R.yieldResult;_.lZ(R,3);break;case 2:return _.dj(R),R.return(!1);case 3:if(!D)return R.return(!1);D.addEventListener("pagehide",function(){sbG(y)});
D.addEventListener("resize",y.handlePipWindowResize);Kt_(D);jIB(D);hgJ(D);return R.yield(Ftt(D),5);case 5:if(!gLH())return R.return(!1);y.currentPipWindow=D;y.JSC$18962_eventForwarder=r$_(D,y.JSC$18962_clientRoot);y.pipWindowResizeDelay=new _.kC(function(){y.currentPipWindow&&_.uj(y.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.ad(y.currentPipWindow.innerWidth,y.currentPipWindow.innerHeight)])},D);
y.pipWindowResizeDelay.start();return R.return(!0)}})};
rg.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var sbG=function(I){if(I.currentPipWindow){var y,D;(y=Y1?Y1:null)==null||(D=y.window)==null||D.close();I.currentPipWindow.removeEventListener("resize",I.handlePipWindowResize);var F;(F=I.pipWindowResizeDelay)==null||F.dispose();I.pipWindowResizeDelay=void 0;var R;(R=I.JSC$18962_eventForwarder)==null||R.stop();I.JSC$18962_eventForwarder=void 0;y=_.J(I.onCloseCallbacks);for(D=y.next();!D.done;D=y.next())D=D.value,D();I.onCloseCallbacks=[];I.currentPipWindow=null}};
rg.prototype.getWindow=function(){return this.currentPipWindow};
var VRa=function(I,y){var D;(D=I.onCloseCallbacks)==null||D.push(y)};
rg.prototype.pictureInPictureSupported=function(){return!(!Y1||!Y1)&&QB()};
_.mD.Object.defineProperties(rg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
rg[mw]=[q9R];var Zeb=new _.uk("PICTURE_IN_PICTURE_CONTROLLER");var o$W=function(I,y){this.lengthY=this.lengthX=0;this.lengthX=y.x-I.x;this.lengthY=y.y-I.y};var gMR=function(){},M$C=function(I,y){var D;
(D=I.headerElement)==null||D.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:y}))};var I41=function(){};
I41.prototype.openPopup=function(I,y,D,F){var R=this,O;return _.S(function(w){if(!R.container)return w.return();O={openPopupAction:{popup:y,popupType:D,uniqueId:I}};return w.return(R.container.handleOpenPopupAction(O,F))})};
I41.prototype.closePopup=function(I){this.container&&this.container.closePopup(I)};var yIG=function(){this.openTunnels=new Map},FxC=function(I,y,D){if(qU_(D)){var F=_.rR(D,"gclid");
D={handleEvent:function(v){y&&!y.closed&&typeof y.postMessage==="function"&&v&&v.origin&&v.source===y&&v.data&&v.data.action==="gcl_setup"&&y.postMessage(Object.assign({},{action:"gcl_transfer"},F&&{gclid:F},{gadSource:2}),v.origin)}};
for(var R=_.J(I.openTunnels),O=R.next();!O.done;O=R.next()){var w=_.J(O.value);O=w.next().value;w=w.next().value;if(O.closed)try{window.removeEventListener("message",w),I.openTunnels.delete(O)}catch(v){_.vu(v)}}y&&I.openTunnels.size<15&&(I.openTunnels.set(y,D),window.addEventListener("message",D))}};var D3Q=function(){this.clientParams=new Map},KH1=function(I){for(var y=_.J(I.clientParams.keys()),D=y.next();!D.done;D=y.next())D=D.value,D.startsWith("yt-mini-app-share")&&I.clientParams.delete(D)};var FEC=function(I,y){_.B5.call(this);var D=this;this.shortsController=I;this.storeWithShorts=y;I=_.TV(this.storeWithShorts,_.qQB,function(F){if(F){var R,O=(R=D.shortsController.getRoot())==null?void 0:R.getPlayer(),w;(R=(w=D.shortsController.alternativePlayerContainerElement)==null?void 0:w.getPlayerContainer())&&(O==null||O.appendTo(R))}else{var v;w=(v=D.shortsController.alternativePlayerContainerElement)==null?void 0:v.getPlayerContainer().querySelector("#player");R=D.shortsController.activeIndex;
(v=(O=D.shortsController.getRoot())==null?void 0:O.querySelector('ytd-reel-video-renderer[id="'+R+'"] #player-container'))&&(w==null||w.appendTo(v,void 0,!0))}});
this.addOnDisposeCallback(I)};
_.E(FEC,_.B5);var jm=function(I,y,D,F){var R=this;this.storeWithShorts=I;this.ephemeralResponseStore=y;this.innertubeTransportService=D;this.innertubeTransportLoader=F;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.dV(_.u9);this.isShortsPipActive=_.dV(_.q5);this.nextReelVe=_.QM(56921);this.prevReelVe=_.QM(56922);this.backButtonVe=_.QM(22156);this.TEST_ONLY={getActiveModules:function(){return R.activeModules}}},RYb=function(I){I.unsubscribeFromStore=
_.TV(I.storeWithShorts,_.unW,function(y){I.initOrDisposeActiveModules(y);
!y&&I.storeWithShorts.getState().shorts.isFullscreen&&(_.Nr(document.documentElement),I.storeWithShorts.dispatch(_.T5g(!1)))});
I.initOrDisposeActiveModules(_.unW(I.storeWithShorts.getState()))},uma,qWg,OiR;
jm.prototype.initOrDisposeActiveModules=function(I){I?this.activeModules.push(new FEC(this,this.storeWithShorts)):(_.oD(this.activeModules),this.activeModules.length=0)};
jm.prototype.registerRootElement=function(I){this.rootElement=I;RYb(this)};
jm.prototype.getRoot=function(){return this.rootElement};
jm.prototype.setActiveIndex=function(I){this.activeIndex=I};
_.oWy=function(I,y){var D,F,R,O,w,v,P;return _.S(function(K){switch(K.nextAddress){case 1:return D=new qh,(F=D.JSC$14452_getStoreKey(y))&&I.ephemeralResponseStore.has(F)?K.yield(I.ephemeralResponseStore.get(F),7):K.yield(OiR(I,y),4);case 4:R=K.yieldResult;if(!F){K.jumpTo(3);break}O=Gj(R,3600);return K.yield(I.ephemeralResponseStore.put(F,new _.cy(O)),3);case 7:R=(w=K.yieldResult)==null?void 0:_.qv(w);case 3:return((v=R)==null?0:v.replacementEndpoint)&&(P=_.u(R.replacementEndpoint,_.WF))&&R.sequenceContinuation&&
(P.sequenceParams=R.sequenceContinuation),K.return(R)}})};
uma=function(I,y){y=(new ET).JSC$14452_getStoreKey(y);return!!y&&I.ephemeralResponseStore.has(y)};
qWg=function(I,y,D){var F,R,O,w,v;_.S(function(P){if(P.nextAddress==1){F=new ET;R=F.JSC$14452_getStoreKey(y);if(!R)return P.return();if(D.reelWatchSequenceResponse)return O=Gj(D.reelWatchSequenceResponse,3600),I.ephemeralResponseStore.put(R,new _.cy(O)),P.jumpTo(0);if(!I.ephemeralResponseStore.has(R))return P.jumpTo(0);v=D;return P.yield(I.ephemeralResponseStore.get(R),4)}v.reelWatchSequenceResponse=(w=P.yieldResult)==null?void 0:_.qv(w);_.Cj(P)})};
OiR=function(I,y){var D=D===void 0?{}:D;var F,R,O;return _.S(function(w){switch(w.nextAddress){case 1:if(I.innertubeTransportService){F=I.innertubeTransportService;w.jumpTo(2);break}if(!I.innertubeTransportLoader){_.UJ(Error("xj"));w.jumpTo(2);break}return w.yield(I.innertubeTransportLoader(),4);case 4:F=w.yieldResult;case 2:return w.yield((R=F)==null?void 0:_.wP(R,y,D),5);case 5:return O=w.yieldResult,w.return(O)}})};
_.mD.Object.defineProperties(jm.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jm[mw]=[SWY,_.aK,_.fR(_.iX),_.fR(fxW)];_.LEG=new _.uk("STORAGE_MANAGER_TOKEN");var H65=["touchmove","scroll"];var JIo=!1;var fi_=!1;var b6H={onSpanEnd:function(I){I.parentId==null&&(JIo||(QIJ(),setInterval(QIJ,6E5),JIo=!0),pa4(I,"web_tracing_action"))}};var dtC=URL.createObjectURL;var A$S,wVC={traceAllComponents:_.l("web_tracing_all_components"),exportToCsi:_.l("web_tracing_export_to_csi"),enabledSpansArray:_.a8("web_tracing_enabled_spans"),exportToDevTools:_.l("web_tracing_export_to_devtools"),maxBreadcrumbs:_.kf("tel_max_breadcrumbs",0)};A$S=new kNB(wVC);var $t4=_.l("web_shorts_enable_tracing");var v4R=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Sfa;
v4R.prototype.enqueue=function(I,y){y===1?this.currentPersistentToast=I:this.queue.push(I);_.tjg(this)};
_.tjg=function(I){var y;(y=I.currentToast)!=null&&y.isOpened()||(I.queue.length?(I.currentToast=I.queue.shift(),I.currentToast.open()):I.currentPersistentToast&&I.currentPersistentToast.open())};_.og=new _.uk("TOAST_MANAGER_TOKEN");var PFY=new _.uk("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var KEY=new _.uk("VIEW_TRANSITION_COORDINATOR_TOKEN");var U3a=function(I){this.config=I;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;I=_.J(I.transitionConfigs);for(var y=I.next();!y.done;y=I.next())y=_.J(y.value).next().value,this.transitionTasksMap.set(y,[])};
U3a.prototype.registerElement=function(I,y,D){D=D===void 0?!1:D;for(var F=_.J(Object.keys(y)),R=F.next(),O={};!R.done;O={viewTransitionName:void 0},R=F.next()){R=R.value;O.viewTransitionName=y[R];var w=this.elementTasksMap.get(I),v=void 0;if((v=w)==null?0:v.has(R)){_.Sb(new _.g6("Element already registered for transition",I.tagName,R));break}w=w||new Map;w.set(R,{beforeTransition:function(P){return function(){I.style.viewTransitionName=P.viewTransitionName}}(O),
afterTransition:function(){I.style.viewTransitionName&&(I.style.viewTransitionName="")},
runOnce:D});this.elementTasksMap.set(I,w)}};
_.y0=function(I,y){var D=I.elementTasksMap.get(y);D&&(D.clear(),D.size===0&&I.elementTasksMap.delete(y))};
U3a[mw]=[PFY];var jUg=_.d(function(I){var y=_.DF("yt-expandable-metadata-header-view-model"),D=_.YY(function(F){_.OP(_.W4(),{data:I.data()});if(!_.ea(_.HS(F),y.value,["A".toString(),"BUTTON".toString()])){var R;(R=I.expandedCallback)==null||R.call(I,!1)}});
return _.t("yt-expandable-metadata-header-view-model",{el:y,class:"ytExpandableMetadataHeaderViewModelHost"},_.t(_.U,{cond:function(){return I.expanded()},
then:function(){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":D},_.t("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.t(_.U,{cond:function(){return I.data().expandedTitleImage},
then:function(F){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.t(_.UE,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:F}))}}),_.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.t("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.t(_.jr,{text:function(){return I.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.t(_.jr,{text:function(){return I.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.t(_.jr,{text:function(){return I.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.t("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.t(_.aP,{data:function(){return I.data().infoButton}},{buttonViewModel:_.My}),_.t(_.aP,{data:function(){return I.data().collapseButton}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
onClick:function(){var R;(R=I.expandedCallback)==null||R.call(I,!1)}})}})))},
else:function(){return _.t(rIQ,Object.assign({},I))}}))},"wg"),o41=_.d(function(I){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.t(_.U,{cond:function(){return I.data().collapsedLabelImage},
then:function(y){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.t(_.UE,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:y,alt:""}))}}),_.t(_.jr,{text:function(){return I.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"xg"),rIQ=_.d(function(I){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.YY(function(){_.OP(_.W4(),{data:I.data()});var y;(y=I.expandedCallback)==null||y.call(I,!0)})},_.t("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.t(_.U,{cond:function(){return I.data().collapsedImage},
then:function(y){return _.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.t(_.UE,{height:20,preserveHeight:!0,preserveWidth:!0,data:y,alt:""}))}}),_.t(_.U,{cond:function(){return I.data().showLeadingCollapsedLabel},
then:function(){return _.t(o41,Object.assign({},I))}}),_.t("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.t(_.jr,{text:function(){return I.data().collapsedTitle}}))),_.t("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.t(_.U,{cond:function(){return!I.data().showLeadingCollapsedLabel},
then:function(){return _.t(o41,Object.assign({},I))}}),_.t(_.aP,{data:function(){return I.data().infoButton}},{buttonViewModel:_.My}),_.t(_.aP,{data:function(){return I.data().expandButton}},{buttonViewModel:function(y){var D=y.data;
return _.t(_.My,{data:D,onClick:function(){_.OP(_.W4(),{data:D});var F;(F=I.expandedCallback)==null||F.call(I,!0)}})}})))},"yg");_.NZe=_.d(function(I){var y=_.J(_.N4(function(){return I.data().initiallyExpanded})),D=y.next().value,F=y.next().value,R,O=(R=_.nR().resolve(_.fR(_.cS)))==null?void 0:R(),w=function(){var v=I.data().colorData;
if(v)return O?v==null?void 0:v.darkColorPalette:v==null?void 0:v.lightColorPalette};
return _.t("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.p4({"background-color":function(){var v=w();return(v==null?0:v.section2Color)?_.Z7(v.section2Color):""}})},_.t(_.aP,{data:function(){return I.data().header}},{expandableMetadataHeaderViewModel:function(v){return _.t(jUg,{data:v.data,
expanded:function(){return!!D()},
expandedCallback:function(P){F(P)}})}}),_.t(_.U,{cond:function(){return D()},
then:function(){return _.t("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.t(_.aP,{data:function(){return I.data().expandedContent}},{horizontalShelfViewModel:function(v){return _.t(_.r_,{data:v.data,
includeMargin:!0,forceNarrowLayout:!0,palette:w})},
videoSummaryContentViewModel:function(v){return _.t(LyM,{data:v.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(v){return _.t(_.W7,{data:v.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(v){return _.t(_.Sc,{data:v.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.t(_.aP,{data:function(){return I.data().expandedBottomButtons}},{buttonViewModel:function(v){return _.t("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.t(_.My,{data:v.data}))}}))}}))},"zg");var hYC=_.d(function(I){var y=I.text;var D=I.marqueeSpacing;var F=I.scrollDelay;var R=I.scrollDuration;var O=I.enableMarqueeScroll;I=I.large;var w=_.J(_.$M(!1,void 0,"WyNYFf")),v=w.next().value,P=w.next().value,K=_.J(_.$M(0,void 0,"OoTdhe"));w=K.next().value;var r=K.next().value,N=_.DF("marquee-scroll");K=_.DF("div");var h=_.DF("span"),x=_.nR().resolve(_.JU);_.wZ(function(){if(O()){var f=h.value.getBoundingClientRect().width,m=N.value.getBoundingClientRect().width;if(f>m){var z=(x==="ltr"?-1:1)*(f+
(D?D():16));Promise.resolve().then(function(){P(!0);r(z)})}}},"dv0Anf");
var q={},X={};return _.t("marquee-scroll",{class:_.XH("ytMarqueeScrollHost",(q.ytMarqueeScrollHostLarge=I,q)),el:N},_.t("div",{id:"marquee-scroll-inner-container",class:_.XH("ytMarqueeScrollInnerContainer",(X.ytMarqueeScrollAnimationEnabled=function(){return v()},X)),
el:K,style:_.p4({gap:D?(0,_.w_)(D):"16px","animation-duration":R?rye(R):"16s","animation-delay":F?rye(F):"3s","--marquee-translate":(0,_.w_)(w)})},_.t("span",{el:h,dir:"auto"},_.t(_.jr,{text:y,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.t(_.U,{cond:v,then:function(){return _.t("span",{"aria-hidden":"true",dir:"auto"},_.t(_.jr,{text:y,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Bg");_.x3o=_.d(function(I){var y=I.data;var D=I.overlayDensity;I=_.YY(function(){y().onTapCommand&&_.OE(y().onTapCommand);return!1});
var F=_.xqL(),R=function(){return(D==null?void 0:D())===1?22:16},O={};
return _.t("reel-sound-metadata-view-model",{class:_.XH("ytReelSoundMetadataViewModelHost",(O.ytReelSoundMetadataViewModelHostLarge=function(){return(D==null?void 0:D())===1},O)),
"on:click":I,tabindex:0,role:"button","on:keydown":F},_.t("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.t(_.U,{cond:function(){return y().musicIcon},
then:function(w){return _.t(_.UE,{data:w,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:R})}}),_.t("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.t(hYC,{text:function(){return y().soundMetadata},
enableMarqueeScroll:function(){return!!y().enableMarqueeScroll},
large:function(){return(D==null?void 0:D())===1}}))))},"Cg");var l4a,u8o,N6,XVQ,Yfe,GBo,pVZ,n4a;l4a=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];u8o=_.kf("wil_icon_max_concurrent_fetches",Infinity);
N6=function(I,y,D){var F=this;this.iconSet=I;this.appDirection=y;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Ft.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.l("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.l("wil_icon_network_first");this.renderWhenIdle=_.l("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.l("wil_icon_load_immediately");this.isPurging=!1;I=function(){F.cacheStorageAvailable&&(F.cacheStorageAsync=_.Ft.caches.open("yt-icons").then(function(O){return F.cacheStorageSync=O}).catch(function(){F.cacheStorageAvailable=!1}))};
D=(D==null?void 0:D())||{};D=_.J(Object.entries(D));for(y=D.next();!y.done;y=D.next()){var R=_.J(y.value);y=R.next().value;R=R.next().value;R=$4(R);qf1(R);this.iconCache[y]=R.cloneNode(!0)}this.isPurging=E4o(this);this.isPurging instanceof Promise?this.isPurging.then(I):I()};
_.Ngq=function(I,y){var D=I.resolveIcon(y);return D?I.renderingMode===1?GBo(I,D,I.renderingMode):(y=I.iconCache[D.url])?(y=y.cloneNode(!0),XVQ(I,y),GBo(I,D,I.renderingMode,y)):_.QUC(I,D).then(function(F){var R=F?0:1;XVQ(I,F);return GBo(I,D,R,F)}):(_.Sb(new _.g6("Icon not found",{iconShape:y})),function(){})};
XVQ=function(I,y){if(y){I.counter+=1;I="_yt"+I.counter;y=[y].concat(_.Td(y.getElementsByTagName("*")));y=_.J(y);for(var D=y.next();!D.done;D=y.next())if(D=D.value,D.tagName==="style"&&D.textContent)D.textContent=Yfe(D.textContent,I,!0);else for(var F=_.J(D.attributes),R=F.next();!R.done;R=F.next()){R=R.value;R.name==="id"&&(R.value+=I);["mask","fill","clip-path"].includes(R.name)&&(R.value=Yfe(R.value,I));if(R.name==="style"){var O=D.style;try{O.cssText=Yfe(O.cssText,I,!0)}catch(r){var w=void 0,v=
void 0,P=void 0,K=void 0;h8({error:((w=r)==null?void 0:(P=(v=w).toString)==null?void 0:P.call(v))||"",el:D.outerHTML,style:!!O,cssText:(K=O)==null?void 0:K.cssText})}}R.name==="xlink:href"&&(R.value=R.value.replace(/#(.*)/,"#$1"+I))}}};
Yfe=function(I,y,D){var F=/url\(["']?#(.*?)["']?\)/;(D===void 0?0:D)&&(F=/url\(["']?#(.*?)["']?\)/g);return I.replace(F,"url(#$1"+y+")")};
GBo=function(I,y,D,F){return function(R,O){var w;var v=Object.assign({},{iconWidth:y.size+"px",iconHeight:y.size+"px",iconDisplay:"block"},O,{iconColor:(w=O==null?void 0:O.iconColor)!=null?w:"currentcolor"});w=_.kW("DIV");O=v.iconColor;var P=v.iconFilter;v="width: "+v.iconWidth+"; height: "+v.iconHeight+"; display: "+v.iconDisplay+";";P&&(v+=" filter: "+P+";");D===0&&(v+=" fill: "+O+";");D===1&&(P=y.url,v+=" -webkit-mask: url("+P+") no-repeat center / cover; mask: url("+(P+") no-repeat center / cover; background-color: ")+
O);y.allowMirroring&&I.appDirection==="rtl"&&(v+=" transform: scale(-1, 1); transform-origin: center center;");w.setAttribute("style",v);D===0&&F&&w.appendChild(F);R.appendChild(w)}};
_.QUC=function(I,y){var D,F,R;return _.S(function(O){D=function(w){return Fy(w)};
F=y.url;if(!f4y(F))throw Error("Aj");R=n4a(I,F);return O.return(R.then(function(w){return w.clone().text()}).then(function(w){var v=D(w);
w=y.size;var P=_.kW("DIV");_.rj(P,v);v=_.dM(P.firstElementChild!==void 0?P.firstElementChild:_.HG_(P.firstChild,!0));w=qf1(v,w);I.iconCache[F]=w.cloneNode(!0);delete I.responsePromises[F];return w}).catch(function(){}))})};
pVZ=function(I){var y,D=(y=I.requestAninmationFrameResolver)==null?void 0:y.promise;D||(I.requestAninmationFrameResolver=new _.n0,D=I.requestAninmationFrameResolver.promise,_.Ft.requestAnimationFrame(function(){var F;(F=I.requestAninmationFrameResolver)==null||F.resolve();I.requestAninmationFrameResolver=null}));
return D};
n4a=function(I,y){var D,F;return _.S(function(R){if(R.nextAddress==1)return I.waitForAnimationFrame?R.yield(pVZ(I),2):R.jumpTo(2);D=I.responsePromises[y];D||(F=function(){var O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:if(!I.cacheStorageAvailable){O=void 0;P.jumpTo(2);break}if(w=I.cacheStorageSync){P.jumpTo(3);break}return P.yield(I.cacheStorageAsync,4);case 4:w=P.yieldResult;case 3:O=w;case 2:return v=O,I.isNetworkFirstStrategy?P.return(I.fetchAndUpdateCache(y,v).catch(I.getCacheStorageResponse.bind(I,
y,v))):P.return(I.getCacheStorageResponse(y,v).catch(I.fetchAndUpdateCache.bind(I,y,v)))}})},D=I.renderWhenIdle?new Promise(function(O,w){_.y9(_.w2,function(){F().then(O).catch(w)},10)}):F(),I.responsePromises[y]=D);
return R.return(D.catch(function(O){delete I.responsePromises[y];h8({error:(O==null?0:O.toString)?O.toString():"",url:y});throw O;}))})};
N6.prototype.fetchAndUpdateCache=function(I,y){var D=this;return _.S(function(F){return F.return(m3b(D,I).then(function(R){MjC(D,I,R,y);return R}))})};
var m3b=function(I,y){var D;return _.S(function(F){if(I.numFetches<u8o)return I.numFetches+=1,F.return(zYe(I,y).finally(function(){--I.numFetches;if(Object.keys(I.queuedResponseResolvers).length){var R=Object.keys(I.queuedResponseResolvers)[0],O=I.queuedResponseResolvers[R];delete I.queuedResponseResolvers[R];O.resolve(m3b(I,R))}}));
D=new _.n0;I.queuedResponseResolvers[y]=D;return F.return(D.promise)})},zYe=function(I,y,D){D=D===void 0?2:D;
var F;return _.S(function(R){F={credentials:"same-origin",priority:"low"};return R.return(_.Ft.fetch(y,F).then(function(O){return O.ok?O:Promise.reject(Error("Bj`"+O.status+"`"+O.statusText))}).catch(function(O){if(D>0)return zYe(I,y,D-1);
throw O;}))})},MjC=function(I,y,D,F){_.S(function(R){return F?R.return(new Promise(function(O){_.y9(_.w2,function(){var w,v;
return _.S(function(P){switch(P.nextAddress){case 1:if(!I.isNetworkFirstStrategy){w=void 0;P.jumpTo(2);break}return P.yield(F.match(y).catch(function(){}),3);
case 3:w=P.yieldResult;case 2:if(v=w){P.jumpTo(4);break}return P.yield(F.put(y,D.clone()).catch(function(K){h8({error:(K==null?0:K.toString)?K.toString():"",url:y})}),4);
case 4:O(),_.Cj(P)}})},50)})):R.return()})};
N6.prototype.getCacheStorageResponse=function(I,y){return _.S(function(D){return y?D.return(y.match(I).then(function(F){return F&&F.ok?F:Promise.reject()})):D.return(Promise.reject())})};
var qf1=function(I,y){y===void 0||I.getAttribute("viewBox")||I.setAttribute("viewBox","0 0 "+y+" "+y);I.setAttribute("focusable","false");I.setAttribute("aria-hidden","true");y=_.l("killswitch_remove_icon_fill_color");I.getAttribute("fill")!=="currentcolor"&&I.getAttribute("fill")!=="currentColor"||y||I.removeAttribute("fill");try{I.style.pointerEvents="none",I.style.display="inherit",I.style.width="100%",I.style.height="100%"}catch(R){var D;h8({error:((D=R)==null?0:D.toString)?R.toString():""});
try{I.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(O){var F;h8({error:((F=O)==null?0:F.toString)?O.toString():""})}}return I},f4y=function(I){for(var y=_.J(l4a),D=y.next();!D.done;D=y.next())if(I.startsWith(D.value)&&I.endsWith(".svg"))return!0;
return!1};
N6.prototype.resolveIcon=function(I){return this.iconSet.resolveIcon(I)};
var h8=function(I){_.tq(new _.g6("Error in IconManager",I))},E4o=function(I){if(_.l("wil_icons_cache_purge_killswitch"))return!1;
try{var y=_.Ft.localStorage}catch(O){return!1}if(!y||!I.cacheStorageAvailable)return!1;var D=function(O){try{var w;(w=y)==null||w.setItem("yt-icons-last-purged",O.toString())}catch(P){var v;h8({error:((v=P)==null?0:v.toString)?P.toString():""})}},F=Number(y.getItem("yt-icons-last-purged"));
if(!F)return F=new Date,F=F.setDate(F.getDate()-Math.floor(Math.random()*90+1)),D(F),!1;if(function(O,w){O=new Date(O);w=new Date(w);return w.getMonth()-O.getMonth()+12*(w.getFullYear()-O.getFullYear())}(F,Date.now())<3)return!1;
try{return _.Ft.caches.delete("yt-icons").then(function(O){O&&D(Date.now());return O}).catch(function(){return!1}).finally(function(){I.isPurging=!1})}catch(O){var R;
h8({error:((R=O)==null?0:R.toString)?O.toString():""});return!1}};
N6[mw]=[TjT,_.JU,_.fR(ZjY)];_.xO=function(I,y){this.iconManager=I;this.iconsToFetch=y};
_.xO[mw]=[_.mZ,_.fR(VYR)];var kBY=function(){};var d3a=function(I,y,D){this.requestKey=I;this.rRK=y;this.fM2=D;this.czO=function(){return new XMLHttpRequest};
this.r9e=void 0;this.ddX=[]};
d3a.prototype.getLatestChallengeResponse=function(){return this.fM2};
var eXG=function(I,y,D){var F,R,O,w;return _.S(function(v){if(v.nextAddress==1){_.s$("attestation_challenge_fetch");_.V_("att_fs",void 0,"attestation_challenge_fetch");if(!I.r9e)throw new _.Ra(9,"Missing fetcher");return v.yield(I.r9e(y,D),2)}F=v.yieldResult;O=(R=F)==null?void 0:R.bgChallenge;if(!O)throw new _.Ra(15,"Missing field");I.fM2=F;I.ddX.forEach(function(P){P(F)});
w=lze(O);_.V_("att_fc",void 0,"attestation_challenge_fetch");TC("attestation_challenge_fetch");return v.return(w)})},okP=function(I,y){var D,F,R,O,w;
return _.S(function(v){switch(v.nextAddress){case 1:D=new Qe(100,3E5,.25,2),F=void 0;case 2:if(!(D.currBackoffCount_<10)){v.jumpTo(4);break}_.nj(v,5);if(!(D.currBackoffCount_>0)){v.jumpTo(7);break}return v.yield(Tzq(D.getValue()),7);case 7:return v.yield(a4a(I,y),9);case 9:return R=v.yieldResult,v.return(R);case 5:O=_.dj(v);O instanceof _.Ra?F=O:(w=O instanceof Error?O.message:"Unknown",F=new _.Ra(9,w));RYO(D);v.jumpTo(2);break;case 4:if(F)throw F;throw new _.Ra(9,"Unknown error");}})},a4a=function(I,
y){y=kPc(dCe(new zXW,y),I.requestKey);
var D=new _.n0,F=I.czO();F.open("POST",I.rRK);F.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");F.setRequestHeader("Content-Type","application/json+protobuf");F.onload=function(){if(_.Sc5(F)){var R=HvR(F.responseText);D.resolve(R)}else D.reject(new _.Ra(_.XiL(_.ci(F)),F.statusText))};
F.onerror=function(){D.reject(new _.Ra(_.XiL(_.ci(F)),F.statusText))};
F.send(y.serialize());return D.promise};var WE8=function(I){this.networkStatusManager=I;this.isDownloaded=Q4q===void 0?function(){return!1}:Q4q;
this.isReady=!1;this.wQC=cIa(this)},cIa=function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(LwH(),2);if(D.nextAddress!=3)return y=D.yieldResult,D.yield(Juu(y),3);I.mw=D.yieldResult;V2_(I.mw).then(function(){I.isReady=!0});
return D.return(I.mw)})},CFC=function(I,y,D){I.mw?(I=I.mw.xBp({jH:D,
y2j:!0,kam:!0}),y.serviceIntegrityDimensions={poToken:I}):_.vu(Error("Dj"))};
WE8.prototype.processContext=function(I){var y=this;if(!I.input.match(_.NP(HpM)))return _.xj();var D=I.innerTubeRequest,F=D.videoId;return!F||this.isDownloaded(D)||this.networkStatusManager&&!this.mw&&!this.networkStatusManager.isNetworkAvailable()||_.l("webpo_exit_on_net_err")&&!this.mw&&(window.bgens===1||window.bgens===3)?_.xj():this.mw?this.isReady?(CFC(this,D,F),_.xj()):new hz(V2_(this.mw).then(function(){CFC(y,D,F)})):new hz(this.wQC.then(function(R){return _.S(function(O){if(O.nextAddress==
1)return O.yield(V2_(R),2);
CFC(y,D,F);_.Cj(O)})}))};var BZY=new _.uk("WEB_PO_CONTEXT_PROCESSOR");var iiR=function(I,y){var D=this;this.e0p=0;var F;this.jTu=(F=y==null?void 0:y.jTu)!=null?F:window;this.networkStatusManagerPromise=y==null?void 0:y.networkStatusManagerPromise;var R;this.requestKey=(R=y==null?void 0:y.requestKey)!=null?R:_.d6("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var O;this.wxY=(O=y==null?void 0:y.wxY)!=null?O:function(P){return new td(P)};
var w;F=(w=y==null?void 0:y.xIz)!=null?w:function(P,K,r){return new d3a(P,K,r)};
this.bgChallenge=lze(I.bgChallenge);this.ttlSeconds=uUS(Pw(I.challenge||""));this.fW=F(this.requestKey,_.l("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Ft.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",I);this.cXO=y==null?void 0:y.cXO;sI4(this.fW);var v;this.uj1=(v=y==null?void 0:y.uj1)!=null?v:function(P){_.bV(D.jTu.document,"visibilitychange",
function(){D.jTu.document.visibilityState==="visible"&&P()})}},$3R=function(I){if(!I.vm){var y={maxAttempts:5,
fQ7:I.ttlSeconds*1E3};Z6B(I.jTu);I.vm=I.wxY({fW:I.fW,rKt:{disable:_.l("html5_web_po_disable_remote_logging"),uR:"aGIf",fLm:OC4("html5_web_po_experiment_ids"),iP5:_.l("wpo_dis_lfdms")?0:1E3,k0t:function(F){var R=VHu.get(F);R||(R=new Tx_(F),R=new m5(R),VHu.set(F,R));return R}},
guv:y,nP2:I.bgChallenge,re5:g$J});I.e0p=Date.now();AGW(I.vm,function(){I.e0p=Date.now()});
I.jTu.bgevmc={p:function(){var F;(F=I.vm)==null||F.pause()},
r:function(){var F;(F=I.vm)==null||F.resume()},
cr:function(){var F,R;return(R=(F=I.vm)==null?void 0:F.checkForRefresh())!=null?R:Promise.resolve()}};
SJH(I.vm,function(){return _.S(function(F){return F.return(AIZ(I))})});
var D=I.em5.bind(I);I.networkStatusManagerPromise&&I.ttlSeconds>0&&I.networkStatusManagerPromise.then(function(F){F.listen("publicytnetworkstatus-online",D)});
I.uj1(D)}};
iiR.prototype.em5=function(){if(Date.now()>this.e0p+this.ttlSeconds*1E3){var I;(I=this.vm)==null||iRG(I)}};
var AIZ=function(I){if(I.bxe)return I.bxe;if(!I.vm)throw Error("Ej");I.bxe=new jU({vm:I.vm,fW:I.fW,vFk:!0,onError:g$J,guv:I.cXO});return I.bxe},y1t=function(I,y){I=new iiR(I,y);
$3R(I);(y==null?0:y.eAz)||AIZ(I)};var big=_.la1.ephemeralActionSelector,lY=function(I,y){this.store=I;this.queue=[];y==null||y.addEventListener("yt-navigate-start",this.reset.bind(this))};
lY.prototype.enqueue=function(I){var y=I.command,D=I.durationMs,F=I.elementToFocus;var R=I.label;var O=I.elementToFocus;I.command?R=_.zC("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:R,shortcut:_.zC("SHIFT_PLUS_ENTER")}):O&&(I=R+". "+_.zC("SHIFT_PLUS_ENTER")+" for more information.",R=_.zC("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:R,shortcut:_.zC("SHIFT_PLUS_ENTER")},I));D={announcement:R,durationMs:D!=null?D:8E3};y?D.command=y:F&&(F.classList.add("ephemeral-action-focusable-element"),D.selector=F.tagName+
".ephemeral-action-focusable-element");this.queue.push(D);Hib(this)};
lY.prototype.activate=function(I){var y=big(this.store.getState());if(y){if(y==null?0:y.command)_.Do(y.command),this.store.dispatch(B5M(null));if(y==null?0:y.selector)y=document.querySelector(y.selector),_.jCt(y);I.preventDefault()}};
var Hib=function(I){if(!big(I.store.getState())&&I.queue.length){var y=I.queue.shift();y&&(I.previousAnnouncement===y.announcement&&(y.announcement+="\u00a0"),I.store.dispatch(B5M(y)),I.previousAnnouncement=y.announcement,I.JSC$19084_timeoutId=setTimeout(function(){if(y.selector){var D;(D=document.querySelector(y.selector))==null||D.classList.remove("ephemeral-action-focusable-element")}I.store.dispatch(B5M(null));Hib(I)},y.durationMs))}};
lY.prototype.reset=function(){this.JSC$19084_timeoutId&&clearTimeout(this.JSC$19084_timeoutId);this.store.dispatch(B5M(null));this.queue.length=0;this.JSC$19084_timeoutId=void 0};
lY[mw]=[_.LM,_.fR(_.Wf)];_.uY=new _.uk("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var eY8=new _.uk("AUTH_SERVICE_TOKEN");var R$o=_.UI(["about:blank"]),FIC;var TZa=new _.uk("API_IFRAME_TOKEN");var sCW;sCW=new _.uk("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.sU1=new _.uk("MISC_UI_SHARED_FLAGS_TOKEN");var Vja=function(){};
Vja.prototype.getFlag=function(I){if(I.configType!==2)throw Error("Fj");return ZiR(I)};
var ZiR=function(I){switch(I.flagType){case "bool":return _.l(I.flagName);case "int":return _.ae(_.kf(I.flagName));case "double":return _.kf(I.flagName);case "string":return _.d6(I.flagName);case "int32_list":return OC4(I.flagName);case "int64_list":return OC4(I.flagName).map(function(y){return _.ae(y)});
case "string_list":return _.a8(I.flagName);default:throw Error("Gj");}};var q6=function(I,y,D){y=y===void 0?{}:y;DB.call(this,D===void 0?"uninitialized":D);this.env=I;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}];y.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=y.shouldWaitOnAsyncImmediate)};
_.E(q6,DB);q6.prototype.init=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(I(y.env),2):(I(y.env),F.jumpTo(2));if(F.nextAddress!=4)return y.jobSet?F.yield(y.jobSet.completedResolver.promise,4):F.jumpTo(4);D=_.oJ();D.parkOrScheduleJob(function(){y.transition("rendering")},10,"ci");
_.Cj(F)})};
q6.prototype.initialRender=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(I(y.env),2):(I(y.env),F.jumpTo(2));if(F.nextAddress!=4)return y.jobSet?F.yield(y.jobSet.completedResolver.promise,4):F.jumpTo(4);D=_.oJ();D.parkOrScheduleJob(function(){y.transition("rendered")},10,"cr");
_.Cj(F)})};
q6.prototype.afterRenderImmediate=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return y.processPluginOptions.shouldWaitOnAsyncImmediate?F.yield(I(y.env),2):(I(y.env),F.jumpTo(2));if(F.nextAddress!=4)return y.jobSet?F.yield(y.jobSet.completedResolver.promise,4):F.jumpTo(4);D=_.oJ();D.parkOrScheduleJob(function(){y.transition("after-render-deferred")},10,"carml");
_.Cj(F)})};
q6.prototype.afterRenderDeferred=function(I){var y=this;return _.S(function(D){I(y.env);_.Cj(D)})};_.tG("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var g4a={},IFb=(g4a.rendered={priority:0,callback:function(I){r_g(I.injector.resolve(DM))}},g4a);var HmJ=new _.uk("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),yGT=new _.uk("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var DCY=function(I){this.callbackFnMap=I;this.configMap={}};
DCY.prototype.handleResponse=function(I){var y;if(I=(y=I.responseContext)==null?void 0:y.serviceTrackingParams)for(y=_.J(I),I=y.next();!I.done;I=y.next()){I=I.value;var D=I.params,F=I.service;if(D&&F){this.configMap[F]||(this.configMap[F]=new xha);I=this.configMap[F];var R=void 0,O=(R=this.callbackFnMap)==null?void 0:R[F];D=_.J(D);for(F=D.next();!F.done;F=D.next())R=F.value,F=R.key,R=R.value,F&&R&&(I.set(F,R),O&&O(F,R))}}};
DCY.prototype.getConfig=function(I){return this.configMap[I]||void 0};
DCY[mw]=[_.fR(yGT)];var Fwg=!1,PJ4=0,weW=null,tOH=null;var RXG=new _.uk("NETWORK_SLI_TOKEN");var ORg=function(I){this.networkSli=I};
ORg.prototype.fetch=function(I,y,D){var F=this,R;return _.S(function(O){R=LwC(F,I,y);return O.return(fetch(R).then(function(w){return F.handleResponse(w,D)}).catch(function(w){_.tq(w);
if((D==null?0:D.expectJsonStrict)&&w instanceof CO&&w.errorType===1)return Promise.reject(w)}))})};
var pDg=function(I,y,D,F){var R,O,w,v,P,K,r;return _.S(function(N){switch(N.nextAddress){case 1:return R=LwC(I,y,D),_.nj(N,2),N.yield(fetch(R),4);case 4:O=N.yieldResult;_.lZ(N,3);break;case 2:throw _.dj(N),new CO(2,"Failed to parse streaming response",R.url);case 3:if(!O.redirected&&!O.ok)throw(w=I.networkSli)==null||w.failure(),new _.g6("Streaming fetch request not ok",R.url);if(!O.body)throw new _.g6("No response body in streaming response",R.url);v={};if(_.l("web_streaming_fast"))return P=O.body.getReader(),
N.return(JGR(I,P,v,F));K=O.body.pipeThrough(new TextDecoderStream).getReader();r=new _.eu;return N.return(wiy(I,K,r,bIW,v,F))}})},LwC=function(I,y,D){if(I.networkSli){var F=_.iP(_.jk(y,"key"))||"/UNKNOWN_PATH";
I.networkSli.start(F)}I=D;_.l("wug_networking_gzip_request")&&(I=j6_(D));return new window.Request(y,I)},JGR=function(I,y,D,F){var R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e,T,L5,vH,u_,jW,xA,dq,$A,BH,jf,yg,eW;
return _.S(function(oe){switch(oe.nextAddress){case 1:R=new TextDecoder("utf-8"),O=[],v=w=0,_.nj(oe,2,3);case 5:return oe.yield(y.read(),8);case 8:P=oe.yieldResult;K=P.value;if(r=P.done){N=0;if(O.length>w)for(N=O[w].length-v,h=w+1;h<O.length;h++)N+=O[h].length;N>0&&(x=KIC(O,N,w,v),q=x.indexOf(123),X=x.lastIndexOf(125),q!==-1&&X!==-1&&X>q&&(f=x.subarray(q,X+1),m=JSON.parse(R.decode(f)),bIW(D,m),z=void 0,(z=F)==null||z(D,m)));B=void 0;(B=I.networkSli)==null||B.success();return oe.return(D)}O.push(K);
C=w;for(H=v;C<O.length;)if(e=O[C],T=e.indexOf(10,H),T===-1){if(C===O.length-1)break;C++;H=0}else{L5=C;vH=T+1;u_=0;if(w===L5)u_=vH-v;else{u_=O[w].length-v;for(jW=w+1;jW<L5;jW++)u_+=O[jW].length;u_+=vH}xA=KIC(O,u_,w,v,L5,vH);dq=xA.indexOf(123);$A=xA.lastIndexOf(125);if(dq!==-1&&$A!==-1&&$A>dq){BH=xA.subarray(dq,$A+1);try{jf=JSON.parse(R.decode(BH)),bIW(D,jf),yg=void 0,(yg=F)==null||yg(D,jf)}catch(xP){throw new CO(1,"Failed to parse streaming response object",R.decode(BH));}}w=C;H=v=T+1;v===e.length&&
(w++,v=0,C=w,H=0)}oe.jumpTo(5);break;case 3:_.m4(oe);y.releaseLock();_.kQ(oe,0);break;case 2:eW=_.dj(oe);if(eW instanceof CO)throw eW;throw new CO(1,"Failed to process streaming response");}})},wiy=function(I,y,D,F,R,O){var w,v,P,K,r,N,h,x,q;
return _.S(function(X){if(X.nextAddress==1)return X.yield(y.read(),2);w=X.yieldResult;v=w.value;if(P=w.done)return(K=I.networkSli)==null||K.success(),X.return(R);try{r=D.parse(v)}catch(f){throw new CO(1,"Failed to parse streaming response",v);}if(r!=null)for(N=_.J(r),h=N.next();!h.done;h=N.next())x=h.value,F(R,x),q=void 0,(q=O)==null||q(R,x);return X.return(wiy(I,y,D,F,R,O))})};
ORg.prototype.handleResponse=function(I,y){var D=I.text().then(function(F){if((y==null?0:y.jspbResponseCtor)&&I.ok)return vQo(y.jspbResponseCtor,F);F=F.replace(")]}'","");if((y==null?0:y.expectJsonStrict)&&F)try{var R=JSON.parse(F)}catch(w){throw new CO(1,"JSON parsing failed after fetch");}var O;return(O=R)!=null?O:JSON.parse(F)});
I.redirected||I.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),D=D.then(function(F){_.tq(new _.g6("Error: API fetch failed",I.status,I.url,F));return Object.assign({},F,{errorMetadata:{status:I.status}})}));
return D};
ORg[mw]=[_.fR(RXG)];var vfa=new _.uk("NETWORK_MANAGER_TOKEN");var SJC=[1,2,4,8,16,30],PPQ=function(I){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=I.maxTimeMs;this.maxFrameCount=I.maxFrameCount===void 0?Math.ceil(60*I.maxTimeMs/1E3):I.maxFrameCount;I=_.J(SJC);for(var y=I.next();!y.done;y=I.next())this.brokenFrameSummarizers.push(new tFR(y.value/60*1E3))},Kwb=function(I){var y=I.frameCountInternal>=I.maxFrameCount;
return I.elapsedTimeMs>=I.maxTimeMs||y};
PPQ.prototype.summarize=function(){for(var I=[],y=_.J(this.brokenFrameSummarizers),D=y.next();!D.done;D=y.next())D=D.value,D=D.brokenFrameCount!==0?{severityMs:Math.round(D.targetFrameTimeMs),eventCount:D.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(D.averageDurationBetweenEventsMs)}:void 0,D&&I.push(D);return{summaries:I,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.mD.Object.defineProperties(PPQ.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 tFR=function(I){this.targetFrameTimeMs=I;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.mD.Object.defineProperties(tFR.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var UCa=function(){};
UCa.prototype.start=function(I,y){var D=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var F=new PPQ({maxTimeMs:I});this.monitor=F;this.lastSummaryInternal=void 0;this.metadataToLog=y;return new Promise(function(R){var O=function(w){if(w===void 0)D.stop(),R(void 0);else if(D.monitor!==F)w=Object.assign({},F.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),R(w);else{var v=D.monitor;if(!Kwb(v)){v.frameCountInternal++;if(v.prevTime===
void 0)v.startTime=w;else for(var P=w-v.prevTime,K=_.J(v.brokenFrameSummarizers),r=K.next();!r.done;r=K.next()){r=r.value;var N=r.currTimeMs;r.currTimeMs+=P;P>r.targetFrameTimeMs+2&&(r.brokenFrameCount++,r.timeOfFirstBrokenFrameMs===void 0&&(r.timeOfFirstBrokenFrameMs=N),r.timeOfLastBrokenFrameMs=N)}v.prevTime=w}Kwb(D.monitor)?R(D.stop()):_.w2.addJob(O,5,0)}};
_.w2.addJob(O,5,0)})};
UCa.prototype.stop=function(I){if(!this.monitor)return this.lastSummaryInternal;var y=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(y.monitoringDurationMs){I=I!=null?I:this.metadataToLog;var D={droppedFramesSummary:y,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};I&&(D[I.type]=I.data);_.Jq("manualSmoothnessMeasurement",D)}this.monitor=void 0;this.lastSummaryInternal=y;this.metadataToLog=void 0;return y};_.rGy=new _.uk("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var j8y;j8y=function(I){this.JSC$19126_expiringStorage=new yx(I)};
_.of1=function(I){if(_.UBe()&&(I=_.HCA(_.VV()+"::"+I)))return new j8y(I)};
j8y.prototype.set=function(I,y,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$19126_expiringStorage.set(I,y,D)};
j8y.prototype.get=function(I){return this.JSC$19126_expiringStorage.get(I)};
j8y.prototype.remove=function(I){this.JSC$19126_expiringStorage.remove(I)};_.Eo=function(){};
_.Eo.getInstance=function(){var I=_.jF("ytglobal.storage_");I||(I=new _.Eo,_.fv("ytglobal.storage_",I));return I};
_.Eo.prototype.estimate=function(){var I,y,D;return _.S(function(F){I=navigator;return((y=I.storage)==null?0:y.estimate)?F.return(I.storage.estimate()):((D=I.webkitTemporaryStorage)==null?0:D.queryUsageAndQuota)?F.return(r1q()):F.return()})};
_.fv("ytglobal.storageClass_",_.Eo);var uco=0;var fGJ=!1;var N6b=_.UI(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),hXb=_.UI(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var sde={"/":_.e1,"/?feature=ytca":_.e1,"/feed/downloads":_.XOe};var xCR=qua.continuationCommandSelector,az=function(I,y,D){this.JSC$19141_upliftPromise=I;this.store=y;this.JSC$19141_persistentStorePromiseAccessor=D};
az.prototype.shouldPreferLocalResponse=function(I){return I.browseId==="FEdownloads"||I.browseId==="FEsmart_downloads"&&_.l("kevlar_modern_downloads_page")?!0:!1};
az.prototype.localInnertubeResponse=function(I){var y=this;return _.S(function(D){return I.browseId==="FEdownloads"?_.l("kevlar_modern_downloads_page")?D.return(lFa(y)):D.return(uhY(y)):I.browseId==="FEsmart_downloads"&&_.l("kevlar_modern_downloads_page")?D.return(qJy(y)):D.return(Promise.reject(Error("Ij")))})};
az.prototype.canProvideFallbackResponse=function(){return!0};
az.prototype.localFallbackInnertubeResponse=function(I){var y=this,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return O.yield(y.JSC$19141_persistentStorePromiseAccessor(),2);case 2:D=O.yieldResult;if(I.browseId!=="SPaccount_downloads"||!D){O.jumpTo(3);break}return O.yield(XEe(D),4);case 4:if(F=O.yieldResult)return O.return(_.qv(F));case 3:return I.browseId==="FEwhat_to_watch"?O.return(Efb(y)):(R=_.l("web_offline_continuation_automatic_retry")||_.l("web_offline_continuation_retry_button"))&&
I.continuation?O.return(GPZ(y)):O.return(Xie(y))}})};
var Efb=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$19141_upliftPromise,2);y=_.xTq(I.store.getState().entities);return y.length?D.return(Q8R(I,y)):D.return(Xie(I))})},uhY=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$19141_upliftPromise,2);if(F.nextAddress!=3)return y=YJo([{offlineItemSectionRenderer:{}}]),F.yield(fF8(I,y),3);D=F.yieldResult;D.onResponseReceivedActions=[mK("REFRESH_DOWNLOADS")];return F.return(D)})},lFa=function(I){var y,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f;
return _.S(function(m){if(m.nextAddress==1)return m.yield(I.JSC$19141_upliftPromise,2);if(m.nextAddress!=3)return y=I.store.getState(),D=y.entities,F=_.Tz(D),R=_.sc(D),O=_.ZYo(y),w=_.Vxe(y),v=_.g3W(y),P=_.qyB(D),K=_.io(F),r=_.Vi(D),N=_.Qte(D),h=_.ylL(y),x=_.D7(y),q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.B0B(F,R,P,N,O,w,K,r,v,h,x),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},X="",_.l("kevlar_modern_downloads_skip_downloads_title")||
(X=_.zC("DOWNLOADS",void 0,"Downloads")),m.yield(nfR(I,q,X),3);f=m.yieldResult;f.onResponseReceivedActions=[mK("REFRESH_DOWNLOADS")];return m.return(f)})},qJy=function(I){var y,D,F,R,O,w,v,P,K;
return _.S(function(r){if(r.nextAddress==1)return r.yield(I.JSC$19141_upliftPromise,2);if(r.nextAddress!=3)return y=I.store.getState(),D=y.entities,F=_.Tz(D),R=_.io(F),O=_.Vi(D),w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.A3B(F),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},v=_.zC("SMART_DOWNLOADS",void 0,"Smart downloads"),P=WyB(R,O),r.yield(nfR(I,w,v,P),3);K=r.yieldResult;K.onResponseReceivedActions=
[mK("REFRESH_DOWNLOADS")];return r.return(K)})},Xie=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(u0(I.JSC$19141_upliftPromise,I.store),2);y=F.yieldResult;D=YJo([uv4(y)]);return F.return(fF8(I,D))})},GPZ=function(I){var y,D,F,R;
return _.S(function(O){if(O.nextAddress==1)return y={},D=xCR(I.store.getState()),_.sv(y,_.IP,D),O.yield(u0(I.JSC$19141_upliftPromise,I.store,y,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);F=O.yieldResult;R={};_.sv(R,_.k0g,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:F}}}],targetId:"browse-feedFEwhat_to_watch"});return O.return({responseContext:{},onResponseReceivedActions:[R]})})},YJo=function(I){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:I}}}}]}}},Q8R=function(I,y){var D,F;
return _.S(function(R){var O={contents:M5(y)};D=O&&O.contents?O:{};_.l("kevlar_modern_downloads_page")&&(D=Object.assign({},_.$p_(y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));F={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:D}}}]}};return R.return(fF8(I,F))})},fF8=function(I,y){var D,F;
return _.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$19141_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3)return D=R.yieldResult,R.yield(ER(D),3);F=R.yieldResult;return R.return({responseContext:{},contents:y,topbar:F})})},nfR=function(I,y,D,F){var R,O;
return _.S(function(w){if(w.nextAddress==1)return w.yield(I.JSC$19141_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return R=w.yieldResult,w.yield(ER(R),3);O=w.yieldResult;var v=w.return;var P=D;var K=F;P=P===void 0?"":P;K=K===void 0?"":K;P={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:P}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.zC("SETTINGS",void 0,"Settings"),accessibilityText:_.zC("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:_.h_("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:K}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:P};
return v.call(w,{responseContext:{},contents:y,topbar:O,header:{pageHeaderRenderer:P}})})};var piC={},mC8=(piC.rendered={priority:0,callback:function(I){a:{var y=void 0;try{var D;b:{if(_.ipq()){var F=_.Ol(_.VV()+"::pom");if(F){var R=new Hf(F);break b}}R=void 0}var O=(D=R)==null?void 0:D.get("role_text");if(!O)break a;y={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:O}]}}}}}}catch(P){}y&&I.injector.resolve(_.MC).resolveCommand(y)}try{var w=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(w){var v=JSON.parse(w);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
v&&I.injector.resolve(_.MC).resolveCommand(v)}}catch(P){}}},piC);var MFR,zXY={},kPG=(zXY.initialized={priority:10,callback:function(){MFR=Hw()}},zXY.rendering={callback:function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(MFR,2);y=D.yieldResult;if(!y.endpoint)throw Error("Kj`"+_.Ft.location.href);Vo(I,y);_.Cj(D)})}},zXY);var dCT={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Td(_.l("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(I){var y=I.stack;if(y.includes("chrome://")||y.includes("chrome-extension://")||I.message.includes("chrome-extension://")||y.includes("moz-extension://")||
y.includes("local.adguard.org")||y.includes("auctioneer3.50million.club")||y.includes("youtubedownloader")||y.includes("youtube_home_page")||y.includes("is_youtube_video_no_longer_available")||y.includes("switchScreenSizeHack")||y.includes("yt_main_big_banner.js")||y.includes("YouTubeCenter.js")||y.includes("/mytube.js")||y.includes("JSON.parseWrapper")||y.includes("/inj_js/common.js")||y.includes("firebug-lite")||y.includes(".repl.co/")||y.includes("linkfix")||y.includes("playAfterAd")||I.message.includes("Access is denied for this document")&&
y.includes("<anonymous>")||I.fileName==="user-script"||I.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&y.includes("<anonymous>"))return!0;if(y.includes("https://www.youtube.com"))return!1;I=y.split("\n");if(!I.length)return!1;if(I.length<=3&&y.includes("s.onloadeddata"))return!0;y=0;for(var D=_.J(I),F=D.next();!F.done;F=D.next())F=F.value,(F.includes("https://")||F.includes("http://"))&&y++;return y/I.length>.95},
weight:0},{callback:function(I){return I.message==="Unknown Error"&&I.name.indexOf("NS_")===0},
weight:100},{callback:function(I){if(!_.fz)return!1;var y=I.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||I.message.includes("available to complete this operation"),D=I.stack.includes("webcomponents")&&I.message==="Object doesn't support this action";I=I.message.includes("object that does not implement interface Element");return y||D||I},
weight:0},{callback:function(I){return I.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(I){return I.message==="Operation is not supported"&&(I.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(I){return I.stack.includes("eval code (eval (code:1:1)")||I.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(I){return I.message.includes("Permission denied")&&I.stack.includes("this.domHandler")?!0:I.name.includes("TypeError")&&I.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(I){if(!I.stack)return!1;var y=I.stack.trim().split("\n");y.length&&y[0].endsWith("Error: "+I.message)&&y.shift();y.length&&y[y.length-1].includes("at window.onerror (")&&y.pop();if(!y.length)return!0;if(I.message==="Script error.")return y[0].includes("www.youtube.com")||y.length>=2&&y[0].startsWith("at new")&&y[1].startsWith("at window.onerror");if(I.message==="Unexpected token")return!0;I=_.J(y);for(y=I.next();!y.done;y=I.next())if(y=y.value,!(y.includes("<anonymous>")||
y.startsWith("load@")||y.startsWith("global code@")||y.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(I){return I.message==="Cannot read property 'experiments'"&&I.stack.includes("/s/player/")},
weight:500},{callback:function(I){return I.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(I){return I.stack.includes("/embed.js")?(I.params&&I.params&&(I.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.l("use_error_suppression"))var I=_.Pi("SUPPRESS_CLIENT_ERRORS",!1);else{if(I=_.mr)I=/Chrome\/(\d+)/.exec(_.oo()),I=(I?parseFloat(I[1]):NaN)>=66;I=!(I||_.pz&&_.nz(65)||_.Ul&&_.nz(12.1)||Qx&&_.nz(79))}return I},
weight:500}]};var aFo={},cGZ=(aFo.initialized={priority:10,callback:function(I){I.injector.addProvider({provide:q9R,useValue:I.root});I.injector.addProvider({provide:Oe8,useValue:Cp4});I.injector.addProvider({provide:LOg,useValue:dCT});var y={};I.injector.addProvider((y.provide=JuR,y.useFactory=function(D,F){return function(){$fL(D,F)}},y[mw]=[Oe8,
LOg],y));I.injector.addProvider({provide:Al,useClass:Al})}},aFo);var WwQ={},CPb=(WwQ.initialized={priority:3,callback:function(){var I;if(I=WdL()){I=I.replace("/",".");var y=_.a1();y.set("tz",I);y.save();I=!0}else I=!1;I||(I=_.a1(),I.set("utco",-Math.floor((new Date).getTimezoneOffset())),I.save())}},WwQ);var B6Y={},iRC=(B6Y.initialized={priority:10,callback:function(I){I.injector.resolve(Al).start();I=_.tt();var y=_.KR("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.KR("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.KR("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.KR("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.mP(_.mHC(),{mainAppWeb:Object.assign({},I,{pageType:y})});_.mP(zRA(),{mainAppWeb:Object.assign({},I,{pageType:y})});
_.mP(khJ(),{mainAppWeb:I});_.mP(dHB(),{mainAppWeb:I});XgW(function(){_.Mv(khJ(),"FAILURE");_.Mv(dHB(),"FAILURE")});
A1C();$BL();mDt()}},B6Y);var AGY={},$Ce=(AGY.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.V_("dl"),_.oJ().processSignal("pcl");else{var I=function(){_.V_("dl");_.oJ().processSignal("pcl");window.removeEventListener("load",I)};
window.addEventListener("load",I)}}},AGY);var bRb={},HRG=(bRb.rendering={priority:0,callback:function(){var I=_.oJ();I.parkOrScheduleJob(function(){I.processSignal("eocs")},10,"eor",5E3)}},bRb);var eXC=function(){};
_.E(eXC,rO);
eXC.prototype.resolveCommand=function(I,y){var D,F,R,O,w,v,P,K;return _.S(function(r){R=(D=_.u(I,_.OMg))==null?void 0:(F=D.dialog)==null?void 0:F.commentReplyDialogRenderer;if(!R)throw new _.g6("No dialog in createCommentReplyDialogEndpoint");w=(O=y.form)==null?void 0:O.event;if(!w)throw new _.g6("Event not passed in when resolving command");v=_.J(w.composedPath());for(P=v.next();!P.done;P=v.next())if(K=P.value,K.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||K.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return K.showReplyDialog(R),r.return();
_.Cj(r)})};var GY=function(){};
_.E(GY,rO);GY.prototype.resolveCommand=function(){var I;return _.S(function(y){if(I=document.getElementById("creator-chatbots-panel"))I.style.display="none";_.Cj(y)})};var X3=function(){};
_.E(X3,rO);X3.prototype.resolveCommand=function(I){var y,D,F,R,O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:return y=_.u(I,rKc),((D=y)==null?void 0:D.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?P.yield((0,_.kn)("NSzT5"),6):(F=y)!=null&&F.externalChannelId?P.yield((0,_.kn)("NSzT5"),4):P.return();case 4:return R=_.T6Q,w=(O=y.forceInstall)!=null?O:!1,P.yield(R(y.externalChannelId,w,y.surface),0);case 6:return v=_.T6Q,P.yield(v("",!1,y.surface),7);case 7:return P.return()}})};var Q7=function(I){this.JSC$19167_pageRequestService=I;this.JSC$19167_prefetchCoordinator=bWC()};
_.E(Q7,rO);Q7.prototype.resolveCommand=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1){D=_.u(I,c2f);if((F=D)==null||!F.taskId)throw Error("Lj");R=D.taskId;_.nj(w,2);return w.yield(_.xJo(y.JSC$19167_pageRequestService,I,{},"").then(function(v){if(!v)throw Error("Mj");},function(v){throw Error("Nj`"+v);
}),4)}if(w.nextAddress!=2)return TMT(y.JSC$19167_prefetchCoordinator,R),_.lZ(w,0);
O=_.dj(w);Rg(y.JSC$19167_prefetchCoordinator,R,O);_.Cj(w)})};
Q7[mw]=[_.b0];var YO=function(I,y){this.innertubeTransportService=I;this.JSC$19171_commandHandler=y};
_.E(YO,rO);YO.prototype.resolveCommand=function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1){D=_.u(I,Wk_);if(D.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||D.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")F=D.boolValue?2:1,_.X4.getInstance().setState(F,!0,!0);return O.yield(_.wP(y.innertubeTransportService,I),2)}R=O.yieldResult;s8G(y,R);_.Cj(O)})};
var s8G=function(I,y){y.actions&&y.actions.forEach(function(D){I.JSC$19171_commandHandler.resolveCommand(D)})};
YO[mw]=[_.iX,_.MC];var fI={},nI=(fI.addToPlaylistEndpoint=Nl(NN),fI.addToToastAction=Nl(Y5),fI.adsControlFlowOpportunityReceivedCommand=Nl(Zc),fI.audioTrackSelectActionCommand=Nl(MN),fI.backgroundAudioPlaybackCommand=Nl(dS),fI.captionLanguageSelectActionCommand=Nl(ay),fI.captionPickerEndpoint=Nl(cT),fI.changeMiniAppPlayStateCommand=Nl(hD),fI.changeTimelyActionVisibilityCommand=Nl(QQ),fI.channelCreationFormEndpoint=Nl(PT),fI.clearLocationCommand=Nl(oy),fI.clearUrlParamCommand=Nl(xh),fI.copyLinkCommand=Nl(HT),fI.copyTextEndpoint=
Nl(Ry),fI.createCommentReplyDialogEndpoint=kLo(eXC),fI.createPlaylistServiceEndpoint=Nl(eS),fI.dismissDialogEndpoint=Nl(uh),fI.dismissPlayerOverlayCommand=Nl(WT),fI.entityUpdateCommand=Nl(LL),fI.feedbackEndpoint=Nl(JD),fI.getAnswerCommand=Nl(LO),fI.getPaymentsClientTokenCommand=Nl(Mm),fI.getTranscriptEndpoint=Nl(fO),fI.googlePaymentBillingCommand=Nl(zs),fI.googlePaymentPurchaseManagerCommand=Nl(k5),fI.hideCreatorChatbotEngagementPanelCommand=Nl(GY),fI.hideEngagementPanelEndpoint=Nl(qN),fI.hideSheetCommand=
Nl(Er),fI.hideSnackbarCommand=Nl(x5),fI.insertRichSectionCommand=Nl(Ur),fI.listMutationCommand=Nl(rS),fI.logGtmCommand=Nl(KL),fI.notifyDropdownOptionSelectedCommand=Nl(lh),fI.openAdAllowlistInstructionCommand=Nl(_.gf),fI.openOnePickAddVideoModalCommand=Nl(Tc),fI.persistSubscriptionsDisplayPreferencesCommand=Nl(yQ),fI.pingingEndpoint=Nl(Iy),fI.playlistEditEndpoint=Nl(Vb),fI.playlistVotingRefreshPopupCommand=Nl(Zb),fI.profileCardCommand=Nl(V$),fI.refreshPanelEndpoint=Nl(Gc),fI.saveImageToDeviceEndpoint=
Nl(Or),fI.scrollToSectionEndpoint=kLo(zqb),fI.seekToVideoTimestampCommand=Nl(CL),fI.selectCountryCommand=Nl(DS),fI.setCookieCommand=Nl(FC),fI.setLocalStorageCommand=Nl(ue),fI.setPrefStorageEntryCommand=Nl(Op),fI.setSettingEndpoint=Nl(YO),fI.sfvAudioItemPlaybackCommand=Nl(BT),fI.shareImageCommand=Nl(JX),fI.sharingProviderDataCommand=Nl(wd),fI.showAudioTrackPickerActionCommand=Nl(ih),fI.showCaptionLanguageSelectActionCommand=Nl(AD),fI.showCreatorChatbotEngagementPanelCommand=Nl(X3),fI.showDialogCommand=
Nl(Yh),fI.showEngagementPanelEndpoint=Nl(fL),fI.showFullscreenPlayerControlsCommand=Nl($h),fI.showSheetCommand=Nl(nL),fI.showSnackbarCommand=Nl(le),fI.showTransientPlayerScrimOverlayCommand=Nl(bh),fI.submitFormWithValidationFlowCommand=Nl(tD),fI.talkToRecsDeselectCommand=Nl(qm),fI.talkToRecsNextCommand=Nl(Ep),fI.talkToRecsSelectCommand=Nl(Gs),fI.talkToRecsUpdateTextCommand=Nl(XC),fI.toggleEngagementPanelCommand=Nl(pL),fI.undoFeedbackEndpoint=Nl(SS),fI.updateEngagementPanelContentCommand=Nl(mu),fI.updateUrlParamCommand=
Nl(nO),fI.updateVideoMetadataCommand=Nl(mT),fI.verifyCommand=Nl(PT),fI.webNativeShareCommand=Nl(vY),fI.webSubmitFormCommand=Nl(gS),fI.ACK_PLAYABLES_3P_DATA_CONSENT=Nl(SB),fI.CANCEL_NAVIGATION=Nl(tX),fI.COPY_SHARE_URL=Nl(PY),fI.MINI_APP_EXIT_DIALOG_SEEN=Nl(Up),fI.MINI_APP_OPEN_URL=Nl(KO),fI.REQUEST_MINI_APP_FULLSCREEN=Nl(rd),fI.RESUME_NAVIGATION=Nl(jB),fI.SHARE_PLAYABLE_WITH_HIGH_SCORE=Nl(o$),fI.TELL_US_WHY=Nl(wS),fI);
_.l("web_enable_prefetching_videos_on_home")&&(nI.prefetchWatchCommand=Nl(Q7),nI.registerTasksCommand=Nl(LI));_.l("enable_share_panel_navigation_logging_fix_on_web")&&(nI.shareEntityServiceEndpoint=Nl(X2));_.l("web_use_flow_state_manager")&&(nI.deleteFlowStepsCommand=Nl(iB),nI.flowNextStepCommand=Nl(Ao),nI.flowPrevStepCommand=Nl($H),nI.getFlowCommand=Nl(bB),nI.updateFlowCommand=Nl(HN));_.l("enable_ai_companion")&&(nI.updateConversationIdCommand=Nl(F2),nI.formDataDecoratorCommand=Nl(Db));
var gbf=Object.assign({},nI);var VF1={},ZRR=(VF1.initialized={priority:10,callback:sNH},VF1);var gfC={},ITa=(gfC.initialized={callback:function(I){var y={},D={};d95().install((y.document_disposed={callback:function(){_.l("finalize_all_timelines")?Zbt():Hg();vde("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Iuo();var F=I.injector.resolve(Al);F.intervalId!==void 0&&(F.intervalId&&_.w2.cancelJob(F.intervalId),F.intervalId=void 0,--F.currentPartitionIndex,F=vVP(F),F>0&&kRM({mainAppWeb:_.tt(),survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Q2M(oj);NE!=null&&
NE.flush();GF&&GF.snapshotAndFlush();F=_.J(VHu.values());for(var R=F.next();!R.done;R=F.next())R.value.snapshotAndFlush()}},y),(D.flush_logs={callback:function(){_.wI()}},D))}},gfC);var y0Y={},Doy=(y0Y.rendered={priority:0,callback:function(){var I=new QCz;I.increment("STARTED");if(_.Pi("LOGGED_IN")&&!_.Pi("IS_DBSC",!1)&&_.Pi("SERVER_VERSION")!=="test"&&_.Pi("SERVER_VERSION")!=="dev"&&!gBq()&&!ZGH()){I.increment("EXECUTING");var y=document.createElement("iframe");y.style.display="none";_.JW(y,2,_.VA("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(y);I.increment("DONE")}}},
y0Y);var F_g={},R5a=(F_g.rendered={callback:function(){bWC().resume()}},F_g);var Ova={acknowledgeChannelTouStrikeCommand:yM(rr),addToPlaylistServiceEndpoint:yM(Nh),addToPlaylistEndpoint:yM(Nh),addUpcomingEventReminderEndpoint:yM(dr),browseEndpoint:yM(fZo),channelCreationFormEndpoint:yM(wr),channelCreationServiceEndpoint:yM(vl),claimLegacyYoutubeChannelEndpoint:yM(Ts),clearSearchHistoryEndpoint:yM(f8),clearWatchHistoryEndpoint:yM(n8),commerceActionCommand:DX(WD),createBackstagePostEndpoint:yM(ie),createBroadcastCommand:yM(aG),createCommentEndpoint:yM(RG),createCommentReplyEndpoint:yM(F$),
createLiveChatPollEndpoint:yM(cl),createPlaylistServiceEndpoint:yM(hN),crossAccountChannelTransferEndpoint:yM(Mu),deleteLiveChatMessageCommand:yM(Wl),deletePlaylistEndpoint:yM(xq),deleteVideoEndpoint:yM(kq),dismissalEndpoint:yM(qu),feedbackEndpoint:yM(E8),flagEndpoint:yM(Xz),getAccountSwitcherEndpoint:yM(mm),verifyCommand:yM(BY),getAccountsListInnertubeEndpoint:yM(kv),getCommentsFromInboxCommand:yM(yf),getDownloadActionCommand:yM(ww),getFlowCommand:DX(Yv),getKidsBlocklistPickerCommand:yM(Qf),getNotificationMenuEndpoint:yM(mJo),
getPaymentInstrumentsParamsCommand:yM(bT),getPaymentsClientTokenCommand:DX(WD),getPdgBuyFlowCommand:yM(j3),getReportFormEndpoint:yM(Yq),getSearchInVideoCommand:yM(pr),getAnswerCommand:yM(nr),getSurveyCommand:yM(zZ),getTranscriptEndpoint:yM(aw),getPostVideoPreviewEndpoint:yM($5),decorateMessageEndpoint:yM(AX),likeEndpoint:yM(S6),liveChatActionEndpoint:yM(A7),liveChatEndpoint:yM(i4),liveChatItemContextMenuEndpoint:yM(C8),liveChatPurchaseMessageEndpoint:yM($v),liveChatReplayEndpoint:yM(Bl),manageLiveChatUserEndpoint:yM(Hl),
metadataUpdateCommand:yM(gr),moderateLiveChatEndpoint:yM(e6),modifyChannelNotificationPreferenceEndpoint:yM(OT),notificationOptOutEndpoint:yM(Lr),openSuperStickerBuyFlowCommand:yM(b4),performCommentActionEndpoint:yM(IG),playlistEditEndpoint:yM(uT),playlistEditorEndpoint:yM(lT),recordNotificationInteractionsEndpoint:yM(JN),reelWatchEndpoint:yM(qh),refreshPanelEndpoint:yM(S3),removeUpcomingEventReminderEndpoint:yM(Tf),resolveLocationCommand:yM(ZE),revealBusinessEmailCommand:yM(sp),searchEndpoint:yM(_.MTR),
sendLiveChatMessageEndpoint:yM(s8),sendLiveChatVoteEndpoint:yM(VX),setSettingEndpoint:yM(t7),shareEntityServiceEndpoint:DX(U8),sharingProviderDataCommand:yM(Mh),showEngagementPanelEndpoint:yM(tN),showMoreDrawerCommand:yM(Kr),showSheetCommand:yM(UT),showDialogCommand:yM(PD),subscribeEndpoint:yM(Pl),transcriptSubmitCaptionCorrectionCommand:yM(dw),undoFeedbackEndpoint:yM(X$),unsubscribeEndpoint:yM(K8),updateBackstagePostEndpoint:yM(HY),updateCommentEndpoint:yM(L8),updateCommentReplyEndpoint:yM(O8),updateCommentsSettingsEndpoint:yM(J7),
updateCreatorChannelInnertubeCommand:yM(ZS),updateKidsBlacklistEndpoint:yM(fr),updateEngagementPanelContentCommand:yM(rw),updatePdgFeatureEnablementCommand:yM(ow),updatedMetadataEndpoint:yM(Iw),validateChannelHandleCommand:yM(gd),updateChannelPageSettingsEndpoint:yM(VQ),verifyAgeEndpoint:yM(QX),watchEndpoint:DX(a$),whitelistEditEndpoint:yM(cD),ypcCancelRecurrenceEndpoint:yM(Cr),ypcCompleteTransactionEndpoint:yM(BD),ypcFixInstrumentEndpoint:yM(AN),ypcGetCartEndpoint:yM(iT),ypcGetOffersEndpoint:yM($q),
ypcHandleTransactionEndpoint:DX(HD),ypcLogWalletAnalyticDataEndpoint:yM(e3),ypcOffersEndpoint:yM(TZ),ypcPauseSubscriptionCommand:yM(sT),ypcRedeemCodeEndpoint:yM(Vf),ypcResumeSubscriptionCommand:yM(ZD),ypcUpdateFopEndpoint:yM(AN)},pI={},L_8=(pI.GET_ACCOUNT_MENU=yM(zf),pI.GET_NOTIFICATIONS_MENU=yM(p5b),pI.GET_NOTIFICATIONS_INBOX=yM(DD),pI.GET_UNSEEN_NOTIFICATION_COUNT=yM(Rw),pI.GET_USER_MENTION_SUGGESTIONS=yM(be),pI.LOAD_GUIDE=yM(nWy),pI.SUBMIT_FEEDBACK=yM(Gf),pI),mp={},J0T=(mp.CONTINUATION_REQUEST_TYPE_BROWSE=
yM(eB),mp.CONTINUATION_REQUEST_TYPE_SEARCH=yM(mY),mp.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=yM(kh),mp.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=yM(p8),mp.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=yM(DE),mp.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=yM(yX),mp.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=yM(GZ),mp.CONTINUATION_REQUEST_TYPE_GET_PANEL=yM(vD),mp),w11={player:DX(a$),watchNext:yM(zc)},vkb={player:DX(a$),reelItemWatch:yM(qh),reelWatchSequence:yM(ET)},SlZ={watchEndpoint:DX(cY)},tAT=
{commandEndpointMap:Ova,signalEndpointMap:L_8,continuationEndpointMap:J0T,watchEndpointMap:w11,reelWatchEndpointMap:vkb,streamingEndpointMap:SlZ};var PZY,K_y,Uo8;_.r0y=((K_y=(PZY=window).matchMedia)==null?void 0:(Uo8=K_y.call(PZY,"(prefers-reduced-motion: reduce)"))==null?void 0:Uo8.matches)||!document.startViewTransition;var jCY={},oky={disableAllTransitions:_.r0y,ignoredErrors:(jCY.DOCUMENT_HIDDEN=!0,jCY.WINDOW_SIZE_CHANGED=!0,jCY.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,jCY),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 N1o=_.UI("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),xo1=function(I){var y=this;this.viewTransitionCoordinator=
I;this.disableTransitionsForUltraHigh=_.l("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=h5a();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.d6("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.l("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.l("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.l("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.d6("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.l("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.w2.addJob(function(){y.registerRootElement();if(y.isAnyTransitionEnabled){var D=
_.kf("web_page_transition_exit_ms"),F=_.kf("web_page_transition_wait_ms"),R=_.kf("web_page_transition_enter_fast_ms"),O=_.kf("web_page_transition_watch_exit_ms"),w=_.kf("web_page_transition_watch_wait_ms"),v=_.kf("web_page_transition_watch_enter_ms"),P=_.kf("web_page_transition_watch_next_exit_ms"),K=_.kf("web_page_transition_watch_next_wait_ms"),r=_.kf("web_page_transition_watch_next_enter_fast_ms"),N=_.kf("web_page_transition_enter_ms"),h=_.kf("web_page_transition_watch_next_enter_ms");y.enableFasterTransitions&&
y.isUltraHighBucketDevice&&(N=R,h=r);isNaN(D)&&isNaN(F)&&isNaN(N)&&isNaN(O)&&isNaN(w)&&isNaN(v)&&isNaN(P)&&isNaN(K)&&isNaN(h)||!(D=IZe(N1o,D,F,N,O,w,v,P,K,h))||(F=document.createElement("style"),F.textContent=pdq(D),document.head.appendChild(F))}},8)},h5a=function(){var I=_.Ft.navigator.deviceMemory;
return I>=8||I===void 0?!0:!1};
xo1.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var I={};this.viewTransitionCoordinator.registerElement(document.documentElement,(I.slide="root-slide",I["lockup-to-watch"]="root-lockup-to-watch",I["learning-journey"]="root-learning-journey",I))}};
_.gLG=function(I,y){I.isLockupToWatchTransitionEnabled&&I.isLockupThumbnailRegistrationEnabled&&(I.registeredLockupThumbnail?I.lockupThumbnailRegisteredFromWatchEndpoint?_.tq(new _.g6("Lockup thumbnail registration order is incorrect.")):_.tq(new _.g6("Lockup thumbnail already registered.")):(I.registeredLockupThumbnail=y,_.lTa(I,y)))};
_.lTa=function(I,y){var D={};I.viewTransitionCoordinator.registerElement(y,(D["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",D),!0)};
xo1[mw]=[KEY];var VOq={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData: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 gd5=["videoPrimaryInfoRenderer","title"],IYL=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var uGo;uGo=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.qlY=_.d(function(I){I=_.o6(I,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var y=I.data,D=I.playlistData,F=I.expanded,R=I.onExpandClick,O=I.isReadyToResume,w=function(){var r;return!((r=D())==null||!r.contents)},v=function(){var r=D();
return r&&r.totalVideos&&r.currentIndex!==void 0?r.currentIndex+1+" / "+r.totalVideos:""};
I=_.YY(function(){_.M6(_.nR().resolve(_.OI));return!1});
var P=_.YY(function(){w()&&R&&R()}),K={};
return _.t("ytd-miniplayer-info-bar",{class:_.XH("ytdMiniplayerInfoBarHost",(K.ytdMiniplayerInfoBarHasPlaylistData=w,K)),"on:click":P},_.t("div",{class:"ytdMiniplayerInfoBarContent"},_.t("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":I},_.t(_.jr,{text:function(){var r=y();var N=D();if(N==null?0:N.contents){var h;r=(h=_.D15(N))==null?void 0:h.title}else r=r==null?void 0:r.miniplayerTitle;return Dee(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.t("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.t(_.U,{cond:O,then:function(){return _.t(GWa,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:uGo})}}),_.t("h1",null,_.t(_.jr,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var r=y();var N=D();r=O()?{simpleText:_.zC("CONTINUE_WATCHING",void 0,"Continue watching")}:(N==null?0:N.contents)?N.titleText:r==null?void 0:r.miniplayerSubtitle;return Dee(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.t(_.U,{cond:function(){return!!v()&&!O()},
then:function(){return _.t("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.t("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.t("span",null,v))}}))),_.t(_.U,{cond:w,
then:function(){return _.t("div",{class:"ytdMiniplayerInfoBarExpand"},_.t(_.me,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(r){R&&(R(),r.stopPropagation())}}},
iconName:function(){return F()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Eg");var Eka;Eka=_.d(function(I){return _.t("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.t(_.me,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:I.onTap}},
iconName:"yt-icons:close"}))},"Fg");
_.Gma=_.d(function(I){I=_.o6(I,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var y=I.size,D=I.playabilityStatus,F=I.isDisabled,R=I.isPictureInPicture,O=_.DF("div");I=_.J(_.$M(void 0,void 0,"w4RAU"));var w=I.next().value,v=I.next().value;I=_.dV(_.q5);var P=!1,K=function(){return y().height<=0};
_.wZ(function(){var x=y(),q=K(),X=w();X&&!q&&X.setInternalSize(x.width,x.height)},"BHFc2b");
_.OJ(function(){var x,q,X;return _.S(function(f){if(f.nextAddress==1){x=_.nR().resolve(_.OI);q=x.getPlayerElement();if(!x.isMiniplayerActive()||!q||!O.value)return f.return();q.appendTo(O.value);return f.yield(q.getPlayerPromise(),2)}X=f.yieldResult;R()||X.setSizeStyle(!1,!0);v(X);_.Cj(f)})});
_.tI(function(){r()});
_.wZ(function(){var x=w();if(x)if(F()){var q=x.getPlayerState();(P=q===-1||q===1||q===3)&&x.pauseVideo()}else r()},"Invykd");
var r=function(){if(P){P=!1;var x;(x=w())==null||x.playVideo()}},N=_.YY(function(){_.M6(_.nR().resolve(_.OI))}),h={};
return _.t("ytd-miniplayer-player-container",{class:_.XH("ytdMiniplayerPlayerContainerHost",(h.ytdMiniplayerPlayerContainerHidden=K,h.ytdMiniplayerPlayerContainerHostShortsPip=I,h)),style:_.p4({width:function(){return y().width+"px"},
height:function(){return y().height+"px"}})},_.t("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:O}),_.t(_.U,{cond:function(){return!!D()&&!_.xt4(D())},
then:function(){return _.t(F4o,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var x;return((x=D())==null?void 0:x.errorScreen)||null},
status:function(){var x;return((x=D())==null?void 0:x.status)||null}})}}),_.t(_.U,{cond:F,
then:function(){return _.t("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":N},_.t(Eka,{onTap:function(){_.nR().resolve(_.OI).close()}}))}}))},"Jg");var PUL;var ryo=null;var QC8=_.d(function(I){var y=I.progressState;var D=I.multiMarkersPlayerBarRenderer;var F=I.progressBarWidth;var R=function(){return h84(D())},O=function(){return u05(y())},w=function(){return F()*(y().playedTime/y().videoDuration)};
return _.t("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.t(_.gZ,{each:R},function(v,P){return _.t(X18,{modifiedProps:O,chapters:R,index:P,playedProgressWidth:w,backgroundGradientPosition:function(){var K=O(),r=R(),N=P(),h=w();return(K.playedTime-Fq(_.u(r[N],D$)))/K.playedTime*h}})}))},"Kg"),X18=_.d(function(I){var y=I.modifiedProps;
var D=I.chapters;var F=I.index;var R=I.playedProgressWidth;var O=I.backgroundGradientPosition;I={};I=_.XH("ytChapteredProgressBarChapteredPlayerBarChapter",(I.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return w().isScrubbing},I.ytChapteredProgressBarHoveredMacroMarker=function(){return w().scrubberHovering},I.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return w().videoPosition==="seen"},I));
var w=function(){return qXJ(y(),D(),F())},v=function(){var P=y();
var K=D(),r=F();if(qXJ(P,K,r).videoPosition!=="active")P=0;else{var N=Fq(_.u(K[r],D$));P=(P.playedTime-N)/((Fq(_.u(K[r+1],D$))||P.videoDuration)-N)}return P};
return _.t("div",{class:I,style:_.p4({width:function(){var P=y(),K=D(),r=F(),N=_.u(K[r],D$);K=_.u(K[r+1],D$);return(K?Fq(K)-Fq(N):P.videoDuration-Fq(N))/P.videoDuration*100+"%"},
"background-color":function(){a:{var P=w();switch(P.videoPosition){case "pending":P=P.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":P=P.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:P=""}}return P},
"background-size":function(){return(EGo(w())?R():"")+"px"},
"background-position-x":function(){return(EGo(w())?O():"")+"px"}})},_.t("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var P=y(),K=D(),r=F();if(qXJ(P,K,r).videoPosition==="seen")var N=0;else N=Fq(_.u(K[r],D$)),K=Fq(_.u(K[r+1],D$))||P.videoDuration,P=P.videoDuration*P.percentLoaded,N=K<=P?1:N>=P?0:(P-N)/(K-N);return"width: "+N*100+"%"}}),_.t("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.p4({width:function(){return v()*100+"%"},
"background-size":function(){return(EGo(w(),v())?R():"")+"px"},
"background-position-x":function(){return(EGo(w(),v())?O():"")+"px"}})}))},"Lg");var Ylb=function(I,y){y=y===void 0?krG:y;var D,F=[],R,O=!1;return function(){var w=_.go.apply(0,arguments);if(O&&D===this&&y(w,F))return R;R=I.apply(this,w);O=!0;D=this;F=w;return R}}(function(I){var y=I.heatMarkers,D=I.minHeightDp===void 0?0:I.minHeightDp,F=I.maxHeightDp===void 0?60:I.maxHeightDp;
var R=R===void 0?!1:R;var O=1E3/y.length;I=[];I.push({x:0,y:100});for(var w=0;w<y.length;w++){var v=void 0,P=((v=_.u(y[w],$GR))==null?void 0:v.heatMarkerIntensityScoreNormalized)||0;v=(w+.5)*O;P=100-_.IL(P*100,D/321*100,F/321*100);w!==0||R||I.push({x:0,y:P});I.push({x:v,y:P});w===y.length-1&&I.push({x:1E3,y:P})}I.push({x:1E3,y:100});y="";for(D=0;D<I.length;D++)R=I[D],D===0?R="M "+R.x.toFixed(1)+","+R.y.toFixed(1):(F=Nzq(I[D-1],I[D-2],R),O=Nzq(R,I[D-1],I[D+1],!0),R=" C "+(F.x.toFixed(1)+","+F.y.toFixed(1)+
" "+O.x.toFixed(1)+","+O.y.toFixed(1)+" "+R.x.toFixed(1)+","+R.y.toFixed(1))),y+=R;return y});var fTa=_.d(function(I){var y=I.progressBarProps;var D=I.config;var F={};I=_.XH("ytHeatSeekerHost",(F.ytHeatSeekerHighContrast=I.highContrast,F));var R=function(){return JyS(D().chapterData)};
return _.t("yt-progress-bar-heatseeker",{class:I,style:function(){var O;return"height: 320px; display: "+(y().isDragging&&((O=R())==null?0:O.heatMarkers)?"block":"none")}},_.t(_.U,{cond:R,
then:function(O){return _.t(_.U,{cond:function(){return O().heatMarkers},
then:function(){return _.t("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.t("path",{d:function(){return Ylb(O())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Mg");var nkG=_.d(function(I){var y=I.progressBarProps;var D=I.config;I={};I=_.XH("ytProgressBarLineProgressBarLine",(I.ytProgressBarLineProgressBarLineRounded=function(){return D().rounded},I.ytProgressBarLineProgressBarLineBottomInset=function(){return D().position===2},I));
return _.t("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.t("div",{class:I},_.t("div",{class:"ytProgressBarLineProgressBarBackground"}),_.t("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+y().percentLoaded*100+"%"}}),_.t("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var F=y();return"width: "+(F.videoDuration?_.IL(F.hoveredTime/F.videoDuration,0,1):0)*100+"%"}}),_.t("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+R8o(y())*100+"%"}})))},"Ng");
nkG.idomCompat=!0;var p18=_.d(function(I){var y=I.progressBarProps;var D=I.playheadData;var F=I.interpolateDotPosition;var R=I.hidePlayhead;I={};var O=_.XH("ytProgressBarPlayheadProgressBarPlayheadDot",(I.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return y().isDragging},I.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!y().isDragging&&R()},I));
return _.t("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.p4({"margin-left":function(){return OmA(y())*100+"%"},
transform:function(){return"translateX(-"+(F()?OmA(y())*12:6)+"px)"}})},_.t(_.U,{cond:function(){var w;
return(w=_.jE(D)())==null?void 0:w.playheadImage},
then:function(w){var v={};return _.t("div",{class:_.XH("ytProgressBarPlayheadProgressBarPlayheadCustom",(v.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return y().isDragging},v.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!y().isDragging&&R()},v)),
style:_.p4({"transform-origin":function(){return(F()?OmA(y())*20:10)+"px center"}})},_.t(_.UE,{data:w,
alt:"","aria-hidden":"true"}))},
else:function(){return _.t("div",{class:O,style:_.p4({"transform-origin":function(){return(F()?OmA(y())*12:6)+"px center"}})})}}))},"Og");
p18.idomCompat=!0;var zY=function(I,y,D,F,R,O){this.getProgressBarRect=I;this.updateProgressBarRect=y;this.getFilmstripYPosition=D;this.setFineScrubbingDraggedTime=F;this.updateFilmStripDraggedYDistance=R;this.resetFilmStripYOffset=O;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.n4(this.onThrottledSeek,100,this)},moT=function(I,y,D){return function(F){I.handleClick(F,y(),D())}},kma=function(I,y){return function(D){MAZ(I,
D,z5y(D),y())}},doo=function(I,y){return function(D){MAZ(I,D,{x:D.clientX,
y:D.clientY},y())}},c0o=function(I,y,D){return function(F){var R=y(),O=D();
aTy(I,F,z5y(F),R,O,!0);if(O.onTouchMove)O.onTouchMove(R)}},CZY=function(I,y,D){return function(F){W_T(I,F,y(),D())}},B1y=function(I,y){return function(){I.handleMouseLeave(y())}},ivQ=function(I,y,D){return function(){var F=y(),R=D();
kO(I,F,R);if(R.onTouchEnd)R.onTouchEnd(F)}},A0a=function(I,y,D){return function(){var F=y(),R=D();
kO(I,F,R);if(R.onTouchEnd)R.onTouchEnd(F)}},$oa=function(I,y,D){return function(){kO(I,y(),D())}},bva=function(I){return function(y){if(y.keyCode===39||y.keyCode===38){var D,F;
(D=I())==null||(F=D.playerApi)==null||F.seekBy(5,void 0,void 0,72)}else if(y.keyCode===37||y.keyCode===40){var R,O;(R=I())==null||(O=R.playerApi)==null||O.seekBy(-5,void 0,void 0,71)}}},HvQ=function(I,y,D){return function(F){!D().disableScrubbing&&I.startPosition&&W_T(I,F,y(),D())}},e5T=function(I,y,D){return function(){if(!D().disableScrubbing)if(I.startPosition){var F=y(),R=D();
kO(I,y(),D());if(R.onTouchEnd)R.onTouchEnd(F)}else y().setState({isDragging:!1})}},z5y=function(I){I=I.touches[0];
return{x:I.clientX,y:I.clientY}},W_T=function(I,y,D,F){if(y.buttons!==1){if(y.movementX||y.movementY)y.preventDefault(),y.stopPropagation(),I=T1C(I,D,y.clientX),D.setState({isHovering:!0,
hoveredTime:I*D.videoDuration})}else sCY(D),aTy(I,y,{x:y.clientX,y:y.clientY},D,F,!1)};
zY.prototype.handleMouseLeave=function(I){sCY(I)};
var sCY=function(I){I.isHovering&&I.setState({isHovering:!1,hoveredTime:0})},MAZ=function(I,y,D,F){I.startPosition||(I.startPosition=D,I.updateProgressBarRect(),I.controlsWereVisibleBeforeDragging=F.controlsVisible,y.stopPropagation(),_.l("medium_progress_bar_modification")||y.preventDefault())},aTy=function(I,y,D,F,R,O){if(I.startPosition)if(O&&R.isInlinePlayback&&I.startPosition&&!I.hasDraggedTheMinimumDistance&&Math.abs(D.y-I.startPosition.y)>Math.abs(D.x-I.startPosition.x))kO(I,F,R);
else if(y.preventDefault(),y.stopPropagation(),F.videoDuration&&(I.startPosition&&!I.hasDraggedTheMinimumDistance&&(I.hasDraggedTheMinimumDistance=Math.abs(D.x-I.startPosition.x)>=1),R.enableFineScrubbing&&(I.startPosition&&(I.isDraggedForFineScrubbing=-(D.y-I.startPosition.y)>=60),!I.startPosition||D.y>=I.startPosition.y||(F.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:GTJ(F.draggedTime,F,R.chapterData)}),I.setFineScrubbingDraggedTime(F.draggedTime),I.updateFilmStripDraggedYDistance(I.startPosition.y,
D.y,F))),I.hasDraggedTheMinimumDistance)){y=T1C(I,F,D.x);if(I.isDraggedForFineScrubbing){var w;(w=F.playerApi)==null||w.pauseVideo();F.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:F.draggedTime,filmStripXDistance:GTJ(y*F.videoDuration,F,R.chapterData)})}R.enableFineScrubbing&&(!R.enableFineScrubbing||I.getFilmstripYPosition(F)<68)||F.setState({draggedTime:y*F.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:I.controlsWereVisibleBeforeDragging});var v;(v=
R.cancelAutohideControlsFn)==null||v.call(R)}},kO=function(I,y,D){var F=D.enableFineScrubbing&&y.fineScrubbingActiveState!=="off";
if(y.isDragging||F){F={isDragging:!1,playedTime:y.draggedTime,controlsVisible:I.controlsWereVisibleBeforeDragging};D.enableFineScrubbing&&y.fineScrubbingActiveState!=="on"&&(I.resetFilmStripYOffset(),F.fineScrubbingActiveState="off");var R=R===void 0?ryo:R;var O=_.VO(0);if(O&&R){var w=Math.round(y.playedTime*1E3),v=Math.round(y.draggedTime*1E3);w>2147483647||v>2147483647||_.t_(O,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(w),endMediaTimeMs:String(v),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}y.setState(F);
I.seekThrottle.fire(y.draggedTime,y,7);_.l("mweb_new_progress_bar_play_on_seek")&&I.resumeVideo(y);D.unmuteOnSeek&&(D=y.playerApi,y.volumeMuted&&(D==null||D.unMute()))}else y.setState({controlsVisible:!y.controlsVisible}),(O=D.triggerAutohideControlsAfterDelayFn)==null||O.call(D);I.startPosition=null;I.hasDraggedTheMinimumDistance=!1;I.isDraggedForFineScrubbing=!1;I.controlsWereVisibleBeforeDragging=!1};
zY.prototype.handleClick=function(I,y,D){this.updateProgressBarRect();I.stopPropagation();I=T1C(this,y,I.clientX)*y.videoDuration;y.setState({playedTime:I});if(y.playerState!==2){var F;(F=D.triggerAutohideControlsAfterDelayFn)==null||F.call(D)}this.seekThrottle.fire(I,y,7)};
var T1C=function(I,y,D){I=I.getProgressBarRect(y);return _.IL(0,(D-I.left)/I.width,1)};
zY.prototype.resumeVideo=function(I){if(I.draggedTime<I.videoDuration){var y;(y=I.playerApi)==null||y.playVideo()}};
zY.prototype.onThrottledSeek=function(I,y,D){if(y=y.playerApi){var F;if((F=y.getVideoData())==null?0:F.isLive)F=this.getProgressState(y),I+=(F==null?void 0:F.seekableStart)||0;y.seekTo(I,void 0,void 0,void 0,D)}};
zY.prototype.getProgressState=function(I){var y=I==null?void 0:I.getPresentingPlayerType();return I==null?void 0:I.getProgressState(y)};var gkZ,ZvY,IJg,Dwg,VA1,F$R,RfT,OuG,L$y;gkZ=_.d(function(I){var y=I.progressBarProps;var D=I.config;var F=I.progressBarWidthPx;var R=I.chapterData;var O=nGJ(y,function(){return D().isShortsPage}),w=function(){return!y().isHovering&&!D().isShortsPage};
I={};var v=_.XH("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(I.ytPlayerStoryboardHostMwebShorts=function(){return D().isShortsPage&&!1},I));
return _.t("yt-player-storyboard",null,_.t(_.U,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.t(_.U,{cond:O,then:function(P){return _.t(_.U,{cond:w,then:function(){return _.t("div",{class:v,"aria-hidden":"true"},_.t(VA1,{props:y,config:D,isBigboard:!0,chapterData:R}))},
else:function(){return _.t(ZvY,{props:y,frame:P,config:D,progressBarWidthPx:F,chapterData:R})}})}})}}))},"Pg");
_.yOC=_.d(function(I){var y=I.progressBarProps;var D=nGJ(y,I.isShortsPage);return _.t("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.t(_.U,{cond:function(){return y().isDragging||y().isHovering},
then:function(){return _.t(_.U,{cond:D,then:function(F){return _.t(IJg,{frame:F,props:y,isBigboard:!0})}})}}))},"Qg");
ZvY=_.d(function(I){var y=I.props;var D=I.frame;var F=I.config;var R=I.progressBarWidthPx;I=I.chapterData;var O={};O=_.XH("ytPlayerStoryboardHost",(O.ytPlayerStoryboardHostMwebShorts=function(){return F().isShortsPage&&!1},O.ytPlayerStoryboardHostInlinePlayer=function(){return F().isInlinePlayer},O.ytPlayerStoryboardHostFadeIn=function(){return F().useFadeInAnimation},O));
return _.t("div",{class:O,"aria-hidden":"true",style:function(){var w=y(),v=XhJ(D()),P=R();w=QsJ(w)/w.videoDuration;var K=P*w,r=v/2+6;v=P-(v/2+6);return"left: "+(K<=r?r/P*100:K>=v?v/P*100:w*100)+"%"}},_.t(_.U,{cond:function(){var w=y();
return!(F().isShortsPage&&w.videoDuration<15)},
then:function(){return _.t(IJg,{frame:D,props:y,isBigboard:!1})}}),_.t(VA1,{props:y,
config:F,isBigboard:!1,chapterData:I}))},"Rg");
IJg=_.d(function(I){var y=I.frame;var D=I.props;var F=I.isBigboard;var R=function(){var v,P;return(P=(v=D().playerApi)==null?void 0:v.getVideoContentRect())!=null?P:{width:0,height:0}},O=function(){return XhJ(y())},w=function(){var v=y();
return v?v.height/v.rows:0};
I={};I=_.XH((I.ytPlayerStoryboardBigboardImageWrapper=F,I.ytPlayerStoryboardStoryboardImageWrapper=function(){return!F()},I));
return _.t("div",{class:I,style:function(){return"width: "+(F()?R().width:O())+"px; height: "+(F()?R().height:w())+"px;"}},_.t(Dwg,{frame:y,
storyboardWidth:O,storyboardHeight:w,storyboardScale:function(){return(F()?R().width:O())/O()}}))},"Sg");
Dwg=_.d(function(I){var y=I.frame;var D=I.storyboardWidth;var F=I.storyboardHeight;var R=I.storyboardScale;var O=function(){var w=y().row,v=y().column,P=D(),K=F(),r=R();return{left:-v*P*r,top:-w*K*r}};
return _.t("img",{src:function(){return y().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+O().left+"px; top: "+O().top+"px; width: "+y().width*R()+"px; height: "+y().height*R()+"px;"}})},"Tg");
VA1=_.d(function(I){var y=I.props;var D=I.config;var F=I.isBigboard;var R=I.chapterData;I={};I=_.XH("ytPlayerStoryboardMetadata",(I.ytPlayerStoryboardMetadataBigboard=F,I));return _.t("div",{class:I},_.t(_.U,{cond:F,then:function(){return _.t(_.ni,null,_.t(F$R,{props:y,config:D}),_.t(_.U,{cond:function(){a:{var O=y();var w=D(),v=R(),P;if((w==null?0:w.activeChapter)&&((P=_.u(w==null?void 0:w.activeChapter,D$))==null?0:P.title))O=!0;else{w=_.J(whW(v));for(w=w.next();!w.done;w=w.next()){O=(w=_.u(w.value,
HNG))&&YX4(O,w);break a}O=!1}}return O},
then:function(){return _.t(RfT,{props:y,config:D,isBigboard:!0,chapterData:R})}}))},
else:function(){return _.t(_.ni,null,_.t(RfT,{props:y,config:D,isBigboard:!0,chapterData:R}),_.t(F$R,{props:y,config:D}))}}))},"Ug");
F$R=_.d(function(I){var y=I.props;var D=I.config;I={};I=_.XH("ytPlayerStoryboardTimestamp",(I.ytPlayerStoryboardTimestampShorts=function(){return D().isShortsPage},I.ytPlayerStoryboardTimestampIsHovering=function(){return y().isHovering||D().isShortsPage&&!0},I));
return _.t("div",{class:I},_.t(_.ni,null,function(){return _.fYt(QsJ(y()))}))},"Vg");
RfT=_.d(function(I){var y=I.props;var D=I.config;var F=I.isBigboard;var R=I.chapterData;I={};F=_.XH("ytPlayerStoryboardTitle",(I.ytPlayerStoryboardTitleBigboard=F,I));return _.t("div",{class:F},_.t(_.U,{cond:function(){return!D().isShortsPage},
then:function(){return _.t(OuG,{props:y,activeChapter:function(){return D().activeChapter},
chapterData:R})}}))},"Wg");
OuG=_.d(function(I){var y=I.props;var D=I.activeChapter;var F=I.chapterData;return _.t(_.ni,null,_.t(_.gZ,{each:function(){return whW(F())},
keyBy:"INDEX"},function(R){return _.t(_.ni,null,_.t(_.U,{cond:function(){return _.u(R(),HNG)&&YX4(y(),_.u(R(),HNG))},
then:function(){return _.t(L$y,{timedMarker:function(){return _.u(R(),HNG)}})}}))}),_.t(_.U,{cond:function(){var R;
return D()&&((R=_.u(D(),D$))==null?void 0:R.title)},
then:function(R){return _.t(_.jr,{text:R,noPreWrap:!0})}}))},"Xg");
L$y=_.d(function(I){var y=I.timedMarker;return _.t(_.ni,null,_.t("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.t(_.mj,{icon:function(){return y().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.t(_.jr,{text:function(){return y().label},
noPreWrap:!0}))},"Yg");_.JOb=_.d(function(I){var y=I.progressBarProps;var D=I.playheadData;var F=I.config;I=_.DF("yt-progress-bar");var R=_.DF("div"),O=_.DF("div"),w=_.J(_.$M({width:0,left:0},void 0,"XjZjde")),v=w.next().value,P=w.next().value,K=function(){O.value&&P(O.value.getBoundingClientRect())},r=function(){v().width<=0&&K();
return v()};
_.fT("resize",K);var N=new zY(r,function(){},function(){return 0},function(){},function(){},function(){}),h=function(){return y()};
w=_.J(_.$M(!1,void 0,"uZlOJc"));var x=w.next().value,q=w.next().value;w=_.YY(function(){q(!0);F().position===2?setTimeout(function(){K()},100):K()});
var X=_.YY(function(){q(!1);B1y(N,h)()}),f=_.YY(function($A){(F().doSeekOnClick||_.l("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&$A instanceof PointerEvent&&$A.pointerType==="mouse")&&moT(N,h,F)($A);
return!1}),m=_.YY(function($A){kma(N,h)($A);
return!1}),z=_.YY(function($A){doo(N,h)($A);
return!1}),B=_.YY(function($A){c0o(N,h,F)($A);
return!1}),C=_.YY(function($A){CZY(N,h,F)($A);
return!1}),H=_.YY(function(){ivQ(N,h,F)();
return!1}),e=_.YY(function(){A0a(N,h,F)();
return!1}),T=_.YY(function(){$oa(N,h,F)();
return!1}),L5=_.YY(function($A){bva(h)($A);
return!1});
_.fT("mousemove",HvQ(N,h,F));_.fT("mouseup",e5T(N,h,F));_.LR(function(){jsH(R.value);q(!1);K();e5T(N,h,F)()});
var vH={};vH=_.XH("ytPlayerProgressBarHost",function(){return F().className},(vH.ytPlayerProgressBarHostReadOnly=function(){return F().disableScrubbing},vH.ytPlayerProgressBarHostHidden=function(){return F().hideProgressBar&&!x()},vH.ytPlayerProgressBarHostLowerPlayer=function(){return F().position===0},vH.ytPlayerProgressBarHostBottomEdge=function(){return F().position===1},vH.ytPlayerProgressBarHostBottomInset=function(){return F().position===2},vH.ytPlayerProgressBarHostCustom=function(){return F().position===
3},vH));
var u_={},jW=_.XH("ytPlayerProgressBarBackground",(u_.ytPlayerProgressBarBackgroundHide=function(){return F().position===2&&!x()&&!y().isDragging},u_));
u_={};u_=_.XH("ytPlayerProgressBarDragContainer",(u_.ytPlayerProgressBarDragContainerBottomEdge=function(){return F().position===1},u_));
var xA={};xA=_.XH("ytPlayerProgressBarProgressBar",(xA.ytPlayerProgressBarProgressBarInset=function(){return F().position===2},xA.ytPlayerProgressBarProgressBarInsetMinimized=function(){return F().position===2&&!x()&&!y().isDragging},xA));
var dq=function(){return Math.floor(R8o(y())*100)};
return _.t("yt-progress-bar",{el:I,class:vH},_.t(_.U,{cond:function(){return F().position===2},
then:function(){return _.t("div",{class:jW})}}),_.t("div",{el:R,
"on:click":f,"on:touchstart":m,"on:touchmove":B,"on:mouseenter":w,"on:mousedown":z,"on:mouseleave":X,"on:mousemove":C,"on:mouseup":e,"on:touchend":H,"on:touchcancel":T,"on:keydown":L5,class:u_,role:"slider","aria-valuenow":dq,"aria-valuetext":function(){return dq()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return y().videoDuration},
draggable:_.l("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.zC("SEEK_SLIDER")},_.t("div",{el:O,class:xA},_.t(fTa,{progressBarProps:y,config:F,highContrast:function(){return!!F().isInlinePlayback}}),_.t(_.U,{cond:function(){return F().chapterData&&vGW(F().chapterData)},
then:function(){return _.t(QC8,{progressState:y,multiMarkersPlayerBarRenderer:function(){return F().chapterData},
progressBarWidth:function(){return v().width}})},
else:function(){return _.t(nkG,{progressBarProps:y,config:F})}}),_.t(p18,{progressBarProps:y,
playheadData:D,interpolateDotPosition:function(){return F().position!==2},
hidePlayhead:function(){return F().playheadDotBehavior===1&&!x()}}))),_.t(gkZ,{progressBarProps:y,
config:function(){return{activeChapter:lYt(y(),F().chapterData),getProgressBarWidthPx:function(){return r().width},
isShortsPage:!!F().isShortsPage,isInlinePlayer:!!F().isInlinePlayback,useFadeInAnimation:!!F().isInlinePlayback}},
progressBarWidthPx:function(){return v().width},
chapterData:function(){return F().chapterData}}))},"Zg");
_.JOb.idomCompat=!0;Object.assign({},_.SXq(),{setState:function(){},
domMeasurements:{},appApi:_.Fl_(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var wPQ;
_.v7g=_.d(function(){var I,y=(I=_.RL(ph5().playerApi))!=null?I:void 0;I=_.J(_.$M(!1,void 0,"Z9NQ1b"));var D=I.next().value,F=I.next().value;I=_.J(_.$M(!1,void 0,"HoVJXe"));var R=I.next().value,O=I.next().value;I=_.J(_.$M(!1,void 0,"DWCY3"));var w=I.next().value,v=I.next().value;I=_.J(_.$M(!1,void 0,"g4C2Zd"));var P=I.next().value,K=I.next().value;I=_.J(_.$M(0,void 0,"lmVfFb"));var r=I.next().value,N=I.next().value;I=_.J(_.$M(0,void 0,"mFLbzb"));var h=I.next().value,x=I.next().value;I=_.J(_.$M(!1,void 0,
"hQN4Wb"));var q=I.next().value,X=I.next().value;I=_.J(_.$M(0,void 0,"WWU0fb"));var f=I.next().value,m=I.next().value;I=_.J(_.$M(0,void 0,"MJ7LMd"));var z=I.next().value,B=I.next().value;I=_.J(_.$M("",void 0,"hnomOe"));var C=I.next().value,H=I.next().value;I=_.J(_.$M(-1,void 0,"ARe3pf"));var e=I.next().value,T=I.next().value,L5=_.su(function(){var vH={controlsVisible:D(),isOverlayHidden:R(),shouldWaitToHideControls:w(),isDragging:P(),isHovering:q(),videoDuration:f(),playedTime:z(),videoId:C(),draggedTime:h(),
hoveredTime:r(),playerState:e()};return Object.assign({},_.SXq(),vH,{domMeasurements:{},setState:function(u_){u_.controlsVisible!==void 0&&F(u_.controlsVisible);u_.isOverlayHidden!==void 0&&O(u_.isOverlayHidden);u_.shouldWaitToHideControls!==void 0&&v(u_.shouldWaitToHideControls);u_.isDragging!==void 0&&K(u_.isDragging);u_.isHovering!==void 0&&X(u_.isHovering);u_.draggedTime!==void 0&&x(u_.draggedTime);u_.hoveredTime!==void 0&&N(u_.hoveredTime);u_.videoDuration!==void 0&&m(u_.videoDuration);u_.playedTime!==
void 0&&B(u_.playedTime);u_.videoId!==void 0&&H(u_.videoId);u_.playerState!==void 0&&T(u_.playerState)},
appApi:_.Fl_(),playerApi:y})},void 0,"Au4PIf");
_.OJ(function(){y==null||y.addEventListener("onVideoProgress",UeB(L5));y==null||y.addEventListener("onVideoDataChange",KlL(L5));y==null||y.addEventListener("onStateChange",tyA(L5))});
_.tI(function(){if(y==null?0:y.isReady())y==null||y.removeEventListener("onVideoProgress",UeB(L5)),y==null||y.removeEventListener("onVideoDataChange",KlL(L5)),y==null||y.removeEventListener("onStateChange",tyA(L5))});
return _.t("desktop-shorts-player-controls",null,_.t(wPQ,{playerControlsProps:L5}))},"ah");
wPQ=_.d(function(I){var y=I.playerControlsProps;return _.t("div",{class:"desktopShortsPlayerControlsHost"},_.t(_.JOb,{progressBarProps:y,config:function(){return{isShortsPage:!0,hideProgressBar:y().videoDuration<30&&y().playerState!==2&&!y().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bh");_.S6g=_.d(function(I){function y(vH){vH!==0||N()?vH>50&&(N()||!x())?(h(!1),q(!0)):vH<=50&&(N()||x())&&(h(!1),q(!1)):h(!0)}
function D(vH,u_){var jW;return _.S(function(xA){if(xA.nextAddress==1)return xA.yield(_.Yz(),2);jW=xA.yieldResult;u_&&jW?(jW.unMute(!0),vH&&(My_(vH,jW.getVolume()),f(jW.getVolume()))):jW&&(jW.mute(!0),vH&&My_(vH,0));_.Cj(xA)})}
function F(vH){var u_,jW;return _.S(function(xA){if(xA.nextAddress==1)return xA.yield(_.Yz(),2);u_=xA.yieldResult;jW=50;u_&&(jW=u_.getVolume(),u_.isMuted()?My_(vH,0):My_(vH,jW));f(jW);_.Cj(xA)})}
var R=I.orientation;I=_.DF("desktop-shorts-volume-controls");var O=_.DF("button"),w=_.Fh("input"),v=_.J(_.$M(!1,void 0,"RuD0I")),P=v.next().value,K=v.next().value,r=_.J(_.$M(!1,void 0,"YbWwwb"));v=r.next().value;r=r.next().value;var N=v,h=r;r=_.J(_.$M(!0,void 0,"F7Esub"));v=r.next().value;r=r.next().value;var x=v,q=r;v=_.J(_.$M(50,void 0,"QFGbod"));var X=v.next().value,f=v.next().value;v=_.su(function(){var vH=N();return _.l("web_shorts_keyboard_enable_mute_shortcut")?vH?_.zC("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.zC("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):vH?_.zC("UNMUTE_VOLUME",void 0,"Unmute"):_.zC("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
r=_.su(function(){var vH=N(),u_=x();return{sources:[{clientResource:{imageName:vH?_.l("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":u_?_.l("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.l("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var m=_.su(function(){var vH=X();return N()?vH+"% volume muted":vH+"% volume"},void 0,"QaT2u"),z=_.su(function(){return R()==="vertical_down"},void 0,"LkJ9ac");
_.LR(function(){function vH(){K(!0)}
function u_(){K(!1)}
w&&w.value&&(w.value.addEventListener("focus",vH),w.value.addEventListener("focusout",u_),F(w.value).then(function(){y(Number(z8A(w.value)))}));
O&&O.value&&(O.value.addEventListener("focus",vH),O.value.addEventListener("focusout",u_));_.tI(function(){var jW;w==null||(jW=w.value)==null||jW.removeEventListener("focus",vH);var xA;w==null||(xA=w.value)==null||xA.removeEventListener("focusout",u_);var dq;O==null||(dq=O.value)==null||dq.removeEventListener("focus",vH);var $A;O==null||($A=O.value)==null||$A.removeEventListener("focusout",u_)})});
var B=_.YY(function(){if(w&&w.value){var vH=Number(z8A(w.value));meW(vH);f(vH);w.value.style.setProperty("--gradient-percent",vH+"%");y(vH)}return!1}),C=_.YY(function(){w&&w.value&&(D(w.value,N()),h(!N()));
return!1}),H={},e={},T={},L5={};
return _.t("desktop-shorts-volume-controls",{"on:pointerleave":_.YY(function(){K(!1)}),
"on:pointerenter":_.YY(function(){K(!0)}),
class:_.XH("ytdDesktopShortsVolumeControlsHost",(H.ytdDesktopShortsVolumeControlsHostVertical=z,H.ytdDesktopShortsVolumeControlsHostModern=_.l("web_shorts_modern_controls"),H.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.l("web_shorts_modern_controls")&&P()},H)),
el:I},_.t(_.U,{cond:function(){return!z()},
then:function(){var vH={};return _.t("div",{class:_.XH("ytdDesktopShortsVolumeControlsBackgroundScrim",(vH.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=P,vH.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.l("web_shorts_modern_controls")&&P()},vH))})}}),_.t("div",{class:_.XH((e.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=z,e))},_.t("button",{"aria-label":v,
title:v,el:O,"on:click":C,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},r?_.t(_.UE,{data:r,alt:v,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.t("div",{class:_.XH("ytdDesktopShortsVolumeControlsSliderContainer",(T.ytdDesktopShortsVolumeControlsSliderContainerExpanded=P,T.ytdDesktopShortsVolumeControlsSliderContainerVertical=z,T.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=z,T.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return P()&&
z()},T))},_.t("input",{"aria-label":_.zC("VOLUME"),
title:_.zC("VOLUME"),el:w,"on:input":B,type:"range",class:_.XH("ytdDesktopShortsVolumeControlsNativeSlider",(L5.ytdDesktopShortsVolumeControlsNativeSliderModern=_.l("web_shorts_modern_controls"),L5)),id:"volume-input",role:"slider","aria-valuenow":X,"aria-valuetext":m,"aria-valuemin":0,"aria-valuemax":100})))},"ch");var tnG=_.d(function(I){var y=I.data;var D=I.overlayDensity;I={};return _.t("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.t(_.aP,{data:function(){return y().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(F){var R=F.data;
return _.t(_.Jh,{data:function(){return(D==null?void 0:D())===1?Object.assign({},R(),{avatar:{avatarViewModel:Object.assign({},_.u(R().avatar,_.gP),{avatarImageSize:"AVATAR_SIZE_M"})}}):R()}})}}),_.t(_.aP,{data:function(){return y().avatarStackViewModel}},{avatarStackViewModel:function(F){return _.t(_.wm,{data:F.data})}}),_.t(_.jr,{className:_.XH("ytReelChannelBarViewModelChannelName",(I.ytReelChannelBarViewModelChannelNameLarge=function(){return(D==null?void 0:D())===1},I)),
text:function(){return y().channelName},
linkInheritColor:!0,userInput:!0}),_.t("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.t(_.aP,{data:function(){return y().subscribeButtonViewModel}},{subscribeButtonViewModel:function(F){var R=F.data;
return _.t(_.Lc,{data:function(){return(D==null?void 0:D())===1?Object.assign({},R(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},R().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):R()},
isOverlay:!1})},
buttonViewModel:_.My})),_.t("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.t(_.aP,{data:function(){var F,R;return(R=_.u((F=y())==null?void 0:F.sponsorButtonViewModel,RJe))==null?void 0:R.sponsorButton}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"dh");var PHa=_.d(function(I){var y=function(){var R;return((R=I.overlayDensity)==null?void 0:R.call(I))===1},D=function(){return y()?22:16},F={};
return _.t("yt-reel-multi-format-link-view-model",{class:_.XH("ytReelMultiFormatLinkViewModelHost",(F.ytReelMultiFormatLinkViewModelHostTall=!0,F.ytReelMultiFormatLinkViewModelHostLarge=function(){return y()},F))},_.t(_.Yp,{ariaLabel:function(){return I.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return I.data().command}},_.t("h3",{class:function(){return y()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.t(_.U,{cond:function(){return I.data().icon},
then:function(R){return _.t(_.UE,{data:R,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:D})}}),_.t(_.jr,{text:function(){return I.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"eh");
PHa.idomCompat=!0;var K$a=_.d(function(I){var y=I.data;var D=I.overlayDensity;var F=I.extractOverlay;var R=_.DF("yt-shorts-suggested-action-view-model");I=_.J(_.$M(!1,void 0,"S60Hzc"));var O=I.next().value,w=I.next().value;I=_.J(_.$M(!1,void 0,"O76chf"));var v=I.next().value,P=I.next().value,K=function(){return y().isMultiLineSa},r=_.zj(gvq,function(){var T,L5;
return(L5=(T=y().toggleableContent)==null?void 0:T.entityKey)!=null?L5:""}),N=function(){var T,L5,vH;
return(vH=y().toggleableContent)!=null&&vH.entityKey?(L5=(T=r())==null?void 0:T.value)!=null?L5:!1:!1},h=function(){var T,L5,vH,u_,jW,xA,dq,$A,BH,jf,yg;
return y().toggleableContent?N()?(T=y().toggleableContent)==null?void 0:T.toggledData:(L5=y().toggleableContent)==null?void 0:L5.untoggledData:{primaryText:($A=(vH=y().defaultContent)==null?void 0:vH.primaryText)!=null?$A:y().text,secondaryText:(u_=y().defaultContent)==null?void 0:u_.secondaryText,onTapCommand:(BH=(jW=y().defaultContent)==null?void 0:jW.onTapCommand)!=null?BH:y().onTapCommand,icon:(jf=(xA=y().defaultContent)==null?void 0:xA.icon)!=null?jf:y().icon,image:(yg=(dq=y().defaultContent)==
null?void 0:dq.image)!=null?yg:y().image}},x=function(){return K()?y().trailingTapTarget:void 0},q=function(T,L5){return function(){return O()?L5:T}},X=function(){return{leadingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(D==null?void 0:D())===1?q("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):q("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:q("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:q("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
I={};I=_.XH((I.ytShortsSuggestedActionViewModelStaticHost=function(){return!K()},I.ytShortsSuggestedActionViewModelDynamicHost=K,I.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return K()&&v()},I.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return K()&&!v()},I.ytShortsSuggestedActionViewModelExtractOverlay=function(){return F==null?void 0:F()},I));
_.LR(function(){if(K()){var T=0,L5;if((L5=y().animationParams)==null?0:L5.shouldExpand){var vH,u_;T=((u_=(vH=y().animationParams)==null?void 0:vH.expansionDelaySecs)!=null?u_:0)*1E3}var jW,xA=((jW=y().animationParams)==null?0:jW.shouldExpand)?setTimeout(function(){w(!0)},T):void 0,dq,$A;
T=((dq=y().animationParams)==null?0:dq.visibilityDelaySecs)?(($A=y().animationParams)==null?NaN:$A.visibilityDelaySecs)*1E3:0;var BH=setTimeout(function(){P(!0)},T);
_.tI(function(){xA&&clearTimeout(xA);clearTimeout(BH)})}});
var f=function(T){_.OE(T,Object.assign({},{form:{element:R.value}}))},m=_.YY(function(){var T,L5=(T=h())==null?void 0:T.onTapCommand;
L5&&f(L5)}),z=_.YY(function(){var T,L5;
if(T=(L5=x())==null?void 0:L5.onTapCommand)return f(T),!1}),B=_.p4({"vertical-align":"bottom",
"border-radius":function(){var T;return K()?((T=y().defaultContent)==null?0:T.isCircleImage)?"50%":"4px":"0px"},
width:function(){var T,L5,vH;return K()&&((T=y().defaultContent)==null?0:T.imageSize)?((vH=(L5=y().defaultContent)==null?void 0:L5.imageSize)!=null?vH:24)+"px":null},
height:function(){var T,L5,vH;return K()&&((T=y().defaultContent)==null?0:T.imageSize)?((vH=(L5=y().defaultContent)==null?void 0:L5.imageSize)!=null?vH:24)+"px":null}}),C=function(){return K()?X().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},H=function(){return K()?X().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},e={};
return _.t("yt-shorts-suggested-action-view-model",{class:I,el:R},_.t("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.t("button",{class:_.XH(function(){return K()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var T;
return(T=y().useFullRoundedBorder)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!x()&&K()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":K()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var T;
return(T=y().disableFixedHeight)!=null&&T?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(e.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(D==null?void 0:D())===1},e.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return F==null?void 0:F()},e)),
"on:click":m},_.t(_.fM,{model:{color:4}}),_.t("div",{class:_.XH(function(){return K()?X().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.t(_.U,{cond:function(){var T;
return(T=h())==null?void 0:T.image},
then:function(T){return _.t(_.UE,{data:T,alt:"",className:H,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:B})}}),_.t(_.U,{cond:function(){var T,L5;
return(T=h())==null?void 0:(L5=T.icon)==null?void 0:L5.iconType},
then:function(T){return _.t(_.mj,{icon:T,active:N,className:C})}})),_.t("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.t(_.U,{cond:function(){var T;
return(T=h())==null?void 0:T.primaryText},
then:function(T){var L5={};return _.t("div",{class:_.XH("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(L5.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(D==null?void 0:D())===1},L5))},_.t(_.jr,{text:T}))}}),_.t(_.U,{cond:function(){var T;
return(T=h())==null?void 0:T.secondaryText},
then:function(T){return _.t("div",{class:function(){return X().secondaryText()}},_.t(_.jr,{text:T}))}}))),_.t(_.U,{cond:x,
then:function(T){return _.t("div",{class:_.XH(function(){return X().trailingSection()},function(){var L5,vH;
return(F==null?void 0:F())&&((vH=(L5=X()).trailingSectionExtractOverlay)==null?void 0:vH.call(L5))||""}),
"aria-label":function(){var L5;return(L5=T().a11yLabel)!=null?L5:""},
"on:click":z,role:"button",tabindex:0},_.t(_.fM,{model:{color:4}}),_.t(_.mj,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"fh");var Uwo=_.d(function(I){var y=I.data;var D=I.overlayDensity;var F=_.DF("yt-shorts-video-title-view-model");I=_.YY(function(w){if(_.ea(_.HS(w),F.value,["A".toString()]))return!1;(w=y().truncatedTextOnTapCommand)&&_.OE(w);return!1});
var R={},O={};return _.t("yt-shorts-video-title-view-model",{el:F,class:_.XH("ytShortsVideoTitleViewModelHost",(R.ytShortsVideoTitleViewModelHostClickable=function(){return!!y().truncatedTextOnTapCommand},R)),
"on:click":I},_.t("h2",{class:_.XH("ytShortsVideoTitleViewModelShortsVideoTitle",(O.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(D==null?void 0:D())===1},O.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.l("enable_shorts_declutter_ui")},O))},_.t(_.jr,{text:function(){return y().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(D==null?void 0:D())===1}})))},"gh");_.rOY=_.d(function(I){var y=I.data;var D=I.overlayDensity;var F=I.extractOverlay;var R=function(){return(D==null?void 0:D())===1};
return _.t("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.t(_.aP,{data:function(){return y().metadataItems}},{badgeViewModel:function(O){O=O.data;
return _.t("div",{class:_.XH(function(){return R()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.t(_.q1,{data:O}))},
playerDisclosureViewModel:function(O){O=O.data;return _.t("div",{class:_.XH(function(){return R()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.t(_.Sx8,{data:O,
extractOverlay:F}))},
shortsSuggestedActionViewModel:function(O){O=O.data;return _.t("div",{class:_.XH(function(){return R()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.t(K$a,{data:O,
overlayDensity:D,extractOverlay:F}))},
reelChannelBarViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytReelMetapanelViewModelMetapanelItem",(w.ytReelMetapanelViewModelExpansive=function(){return R()},w))},_.t(tnG,{data:O,
overlayDensity:D}))},
reelMultiFormatLinkViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytReelMetapanelViewModelMetapanelItem",(w.ytReelMetapanelViewModelExpansive=function(){return R()},w))},_.t(PHa,{data:O,
overlayDensity:D}))},
shortsVideoTitleViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytReelMetapanelViewModelMetapanelItem",(w.ytReelMetapanelViewModelExpansive=function(){return R()},w))},_.t(Uwo,{data:O,
overlayDensity:D}))},
reelSoundMetadataViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytReelMetapanelViewModelMetapanelItem",(w.ytReelMetapanelViewModelExpansive=function(){return R()},w))},_.t(_.x3o,{data:O,
overlayDensity:D}))},
toggleButtonViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytReelMetapanelViewModelMetapanelItem",(w.ytReelMetapanelViewModelExpansive=function(){return R()},w))},_.t(_.yJ,{data:O}))}}))},"hh");var jry=_.d(function(I){var y=_.o6(I,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),D=y.size,F=y.onTap,R=y.disabled,O=y.tooltipText;return _.t("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.t(_.me,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:D(),disabled:R(),tooltipText:O(),onTap:F}},
iconName:I.iconType}))},"ih"),o7Y=_.d(function(I){function y(r){r.stopPropagation();
r.code==="ArrowUp"?(r.preventDefault(),cyH(v.value)):r.code==="ArrowDown"?(r.preventDefault(),Wl5(v.value)):r.code==="KeyM"?kTe():(r.code==="KeyK"||r.code==="Space")&&de_(P())}
var D=_.o6(I,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});I=D.previousButtonDisabled;var F=D.nextButtonDisabled,R=D.data,O=D.playabilityStatus,w=D.previewThumbnail,v=_.DF("ytd-shorts-miniplayer-overlay"),P=_.dV(_.Wk5),K;_.OJ(function(){(K=_.VE(v.value))&&K.addEventListener("keydown",y)});
_.tI(function(){var r;(r=K)==null||r.removeEventListener("keydown",y)});
D=function(){var r,N;var h=_.u((r=R())==null?void 0:(N=r.reelPlayerOverlayRenderer)==null?void 0:N.buttonBar,IgR);if(h){var x;r=Object.assign({},h,{buttonViewModels:(x=h.buttonViewModels)==null?void 0:x.filter(aY_)})}else r=void 0;return r};
return _.t("ytd-shorts-miniplayer-overlay",{el:v,class:"ytdShortsMiniplayerOverlayHost"},_.t("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.p4({"background-image":function(){var r=w();return r?'url("'+_.xY(r.thumbnails)+'")':""}})}),_.t("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.t("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.t(jry,{iconType:function(){var r=P();
return r===2||r===-1||r===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){de_(P())},
tooltipText:function(){var r=P();return r===1||r===3?_.zC("PLAYER_LABEL_PAUSE"):_.zC("PLAYER_LABEL_PLAY")}}),_.t(_.S6g,{orientation:"horizontal_right"})),_.t("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.t(jry,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:I,onTap:function(){cyH(v.value)},
tooltipText:_.zC("PREVIOUS_VIDEO_LABEL")}),_.t(jry,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:F,onTap:function(){Wl5(v.value)},
tooltipText:_.zC("NEXT_VIDEO_LABEL")}),_.l("web_shorts_pip_like_button")?_.t(_.U,{cond:D,then:function(r){return _.t("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.t(_.FUg,{data:r,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.t("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.t(_.U,{cond:function(){var r,N;
return _.u((r=R())==null?void 0:(N=r.reelPlayerOverlayRenderer)==null?void 0:N.metapanel,ymz)},
then:function(r){return _.t("div",{class:_.XH("ytdShortsMiniplayerOverlayInteractive")},_.t(_.rOY,{data:r}))}})),_.t("div",{class:_.XH("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var r;return!((r=R())==null||!r.adsOverlay)||O()&&!hWe(O())}},_.t("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.t(_.v7g,null)))),_.t(_.U,{cond:function(){var r=R(),N,h;
r=_.u(r==null?void 0:(N=r.adsOverlay)==null?void 0:(h=N.fulfillmentContent)==null?void 0:h.fulfilledLayout,MVW);return _.u(r==null?void 0:r.renderingContent,WSe)},
then:function(r){return _.t("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.t(v8G,{data:r}))}}))},"kh");var CUA=_.d(function(){var I=_.J(_.$M(new _.ad(NaN,NaN),void 0,"ejTaF")),y=I.next().value,D=I.next().value;I=_.J(_.$M(!1,void 0,"aTA69e"));var F=I.next().value,R=I.next().value,O=_.J(_.$M(!1,void 0,"OsC2Ib"));I=O.next().value;var w=O.next().value;O=_.nR().resolve(_.OI).miniplayerPropSignalMap[0];var v=O.data,P=O.shortsData,K=O.nextButtonDisabled,r=O.shortsPreviewThumbnail,N=O.previousButtonDisabled,h=O.externalPlaylistData,x=O.playabilityStatus,q=O.isDisabled,X=O.playerVe,f=O.closeVe;O=_.dV(_.q5);
_.GU("yt-pip-window-resized",function(C){D(C)});
_.GU("yt-activate-pip-miniplayer",function(){return _.S(function(C){w(!0);_.Cj(C)})});
var m=function(){var C;return!((C=h())==null||!C.contents)&&F()},z=function(){var C=y(),H=!!v(),e=m();
C=C.clone();H&&(C.height-=76);e&&(C.height-=285);return C},B=function(){R(!F())};
_.wZ(function(){var C=X(),H=_.VO(11),e=_.s_(11);H&&e&&C&&(_.Oc(H,e,C),e=f())&&(_.LC(H,C,[e]),_.wH(H,[e]))},"h5qKie");
return _.t("ytd-pip-container",{class:"ytdPipContainerHost"},_.t(_.U,{cond:I,then:function(){return _.t(_.Gma,{isDisabled:q,playabilityStatus:x,size:z,isPictureInPicture:!0})}}),_.t(_.U,{cond:v,
then:function(){return _.t(_.qlY,{data:v,expanded:F,onExpandClick:B,playlistData:h})}}),_.t(_.U,{cond:m,
then:function(){return _.t("div",{class:"ytdPipContainerPlaylistPanel"},_.t(_.kqZ,{data:h,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.t(_.U,{cond:O,
then:function(){return _.t(o7Y,{data:P,nextButtonDisabled:K,previousButtonDisabled:N,playabilityStatus:x,previewThumbnail:r})}}))},"mh");var dg=function(I,y,D){var F=this;this.pipController=I;this.JSC$19303_clientRoot=y;this.JSC$19303_pageRequestService=D;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=ZlL();this.JSC$19303_watchPipEnabled=_.l("web_watch_pip");this.watchPipManualOnlyEnabled=_.l("web_watch_pip_manual");this.shortsPipEnabled=_.l("web_shorts_pip");this.JSC$19303_watchWhileEnabled=_.l("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;_.TV(_.oq(),zJe,function(R){F.isSingleOptionSurveyActive=R});
this.JSC$19303_onPlayerPlayVideo=this.JSC$19303_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);_.qM(_.uK.getInstance(),this.miniplayerServiceActionMap,this.JSC$19303_clientRoot);I.pictureInPictureSupported()&&_.Jq("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Y9M,QrY,q6R,Y6y,fJg,y1W,n71,pPa,mwG,G8Y;
dg.prototype.handleMediaSessionPipActivation=function(I){var y=this,D,F;return _.S(function(R){_.bW().mediaSessionPipActivation=!0;D=_.nR().resolve(_.ja);if(D.isOnWatch()&&y.JSC$19303_watchPipEnabled){if(y.watchPipManualOnlyEnabled&&((F=I)==null?void 0:F.enterPictureInPictureReason)!=="useraction")return H0(),R.return();_.bW().watchPipActivation=!0;_.N21(y,D.data);return R.jumpTo(0)}return D.isOnShorts()&&y.shortsPipEnabled?(_.bW().shortsPipActivation=!0,_.hfT(y),R.jumpTo(0)):y.isMiniplayerActive()&&
y.JSC$19303_watchPipEnabled&&!y.watchWhileMode?R.yield(xwy(y),0):R.jumpTo(0)})};
var xwy=function(I){var y,D,F,R;return _.S(function(O){if(O.nextAddress==1)return y=!I.miniplayerToPipMode,D=I.playerElement,F=I.miniplayerData,R=I.watchResponse,O.yield(I.deactivate(),2);if(O.nextAddress!=3)return y?(_.bW().mediaSessionPipActivation=!0,_.bW().watchPipActivation=!0):_.bW().miniplayerButtonActivation=!0,O.yield(I.activate(D,F,R),3);I.miniplayerToPipMode=y;_.Cj(O)})};
dg.prototype.onDownloadedVideoDeleted=function(I){var y,D=_.u((y=this.miniplayerData)==null?void 0:y.watchEndpoint,_.t9),F,R;D&&((F=this.watchResponse)==null?void 0:(R=F.playerResponse)==null?void 0:R.offlineState)!==void 0&&(y=D.videoId)&&I&&y===I&&this.close()};
dg.prototype.onShowMiniplayerCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h;return _.S(function(x){switch(x.nextAddress){case 1:return D=_.u(I,czu),R=(F=D)==null?void 0:F.miniplayerCommand,O=_.u(R,_.t9),R&&O&&!y.active?x.yield(_.DI.getInstance(),2):x.return();case 2:return w=x.yieldResult,x.yield((v=w)==null?void 0:v.get("yt-miniplayer-shown-video-id"),3);case 3:P=x.yieldResult;K=O.videoId;if(!K||P===K)return x.return();r=_.nR().resolve(_.ja);if(r.isOnWatch())return _.tq(Error("Wj")),x.return();
N={channelItem:{externalId:btoa(K)}};y.readyToResumeVe=_.QM(121253,void 0,void 0,N);_.bW().showMiniplayerCommandActivation=!0;return x.yield(_.DBz(y,R,!0),4);case 4:return y.active&&(_.ag(y,{readyToResumeVe:y.readyToResumeVe,isReadyToResume:!0}),y.isReadyToResume=!0),x.yield((h=w)==null?void 0:h.set("yt-miniplayer-shown-video-id",O.videoId),5);case 5:y.readyToResumeVe=void 0,_.Cj(x)}})};
dg.prototype.init=function(I){this.miniplayerEl?_.tq(new _.g6("MiniplayerService already initialized.")):this.miniplayerEl=I};
dg.prototype.isInitialized=function(){var I=!!this.miniplayerEl;I||_.tq(new _.g6("MiniplayerService used before initialized."));return I};
_.N21=function(I,y){if(I.isInitialized()){var D=_.yy_(y.response,y.playerResponse),F=_.nR().resolve(_.ja).getPlayerFromWatch();_.bW().currentEndpoint=D.watchEndpoint||null;I.activate(F,D,y)}};
_.hfT=function(I){if(I.isInitialized()){var y=_.nR().resolve(_.ja).getPlayerFromShorts();I.activate(y)}};
Y9M=function(I,y){var D;(D=!I.isInitialized())||(D=_.nR().resolve(_.ja).isOnWatch()&&I.watchPipMode,D=!(I.isMiniplayerActive()&&(_.bW().userActivation||_.bW().lockupActivation||D)));if(D)return!1;lJy(I,y)?_.M6(I):y1W(I,y);return I.watchPipMode?!_.nR().resolve(_.ja).isOnWatch():!0};
dg.prototype.isMiniplayerActive=function(){return this.active};
var lJy=function(I,y){var D;y=(D=_.u(y,_.t9))==null?void 0:D.videoId;var F,R;I=(R=_.u((F=I.miniplayerData)==null?void 0:F.watchEndpoint,_.t9))==null?void 0:R.videoId;return y!=null&&y===I};
dg.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.lj(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.uj(this.miniplayerEl,"yt-navigate-home-action"))};
_.DBz=function(I,y,D,F){D=D===void 0?!1:D;var R,O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:if(I.active){P.jumpTo(2);break}R=_.nR().resolve(_.ja);if(w=(O=I.playerElement)!=null?O:R.getPlayerFromWatch()){P.jumpTo(3);break}return P.yield(_.nR().resolve(_.qY),4);case 4:w=R.getPlayerFromWatch();case 3:if(!w){_.tq(Error("Yj"));P.jumpTo(2);break}return P.yield(I.activate(w,F),2);case 2:return I.active?P.yield(y1W(I,y,D),7):P.return();case 7:(v=I.getPlayerElement())==null||v.focusOnPlayer(),
_.Cj(P)}})};
dg.prototype.activate=function(I,y,D){var F=this,R,O,w,v,P,K,r,N,h;return _.S(function(x){switch(x.nextAddress){case 1:if(!F.isInitialized())return x.return();if(!I)return _.tq(Error("Yj")),x.return();if(_.wJu()||F.isMiniplayerActive())var q=!0;else q=_.bW().watchPipActivation||_.bW().watchWhileActivation,_.nR().resolve(_.ja).isOnWatch()&&!q?(_.tq(new _.g6("miniplayer activated on watch page")),q=!0):q=_.bW().watchWhileActivation?F.userDeactivatedWatchWhile||!!document.pictureInPictureElement||gLH():
!1;if(q)return H0(),x.return();R=_.bW().mediaSessionPipActivation;O=_.bW().shortsPipActivation;w=_.bW().watchPipActivation;P=(v=_.bW().watchWhileActivation)||w;K=w||O;if(!F.pictureInPictureEnabled()||!K){x.jumpTo(2);break}return x.yield(ugZ(F,R),3);case 3:if(!x.yieldResult)return _.tq(Error("Xj")),H0(),x.return();case 2:return F.setActive(!0),F.watchResponse=D,F.playerElement=I,F.updateMiniplayerData(y),x.yield(q6R(F,I),4);case 4:if(!F.active)return _.tq(new _.g6("miniplayer deactivated during activation")),
F.removePlayerListeners(),x.return();q=_.nR().resolve(_.rE);q.addEventListener("yt-navigate",_.MX(F,F.onPlaylistNavigate));q.addEventListener("yt-playlist-data-updated",_.MX(F,F.JSC$19303_onPlaylistDataUpdated));F.JSC$19303_onPlaylistDataUpdated();H0();F.JSC$19303_watchWhileEnabled&&_.E7T(F,v);F.pictureInPictureEnabled()&&F.shortsPipEnabled&&(F.shortsPipMode=O,_.oq().dispatch(sYf(F.shortsPipMode)));F.pictureInPictureEnabled()&&F.JSC$19303_watchPipEnabled&&(F.watchPipMode=w,F.JSC$19303_watchPipEnabled&&
(!F.watchPipManualOnlyEnabled||_.Iie()&&_.utA("Chromium")>=142)&&_.Dto(F.handleMediaSessionPipActivation));F.player&&(r=F.player.getPlayerState(),N=r===1,_.oq().dispatch(LbO(r)),_.qr(F.miniplayerEl,"yt-miniplayer-play-state-changed",[N]),_.bW().isVideoPlaying=N);_.qr(F.miniplayerEl,"yt-miniplayer-endpoint-changed");G8Y(F);_.XPe(F);if(F.shortsPipMode||F.watchPipMode)x=x.yield(_.uj(F.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{q=x.yield;var X=_.uj(F.miniplayerEl,"yt-activate-miniplayer",[P])[0];
x=q.call(x,X,6)}return x;case 6:if(F.watchResponse){q=F.getScreenLayer();X=_.VO(0);var f=Nbe(0);X&&f&&(_.gU(X,f,q),q===0&&j7B(void 0,0))}QrY(F);Y6y(F,!0);(h=F.getPlayerElement())==null||h.focusOnPlayer();_.Cj(x)}})};
dg.prototype.updateMiniplayerData=function(I){this.miniplayerData=I;_.ag(this,{data:I})};
_.XPe=function(I){var y,D,F=((y=I.miniplayerData)==null?void 0:(D=y.miniplayerRenderer)==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";y=I.watchWhileMode||I.watchPipMode?F&&!_.nR().resolve(_.ja).isOnWatch():F;_.ag(I,{isDisabled:y});var R,O;D=_.u((R=I.miniplayerData)==null?void 0:(O=R.miniplayerRenderer)==null?void 0:O.minimizedEndpoint,_.Hc);y&&D&&_.nR().resolve(_.DP).openSheet({openPopupActionCommand:{openPopupAction:D}},I.miniplayerEl)};
QrY=function(I){if(I.watchResponse&&!fJg(I)){var y,D=(y=I.watchResponse.playerResponse)==null?void 0:y.trackingParams;D&&(_.ag(I,{expandVe:_.QM(35989),closeVe:_.QM(34699),readyToResumeCloseVe:_.QM(131070),repositionVe:_.QM(226204),resizeVe:_.QM(226205)}),_.ag(I,{playerVe:_.AC(D)}))}};
q6R=function(I,y){return _.S(function(D){if(D.nextAddress==1)return y.preparePlayer(),D.yield(y.getPlayerPromise(),2);I.player=D.yieldResult;I.player&&(I.player.addEventListener("onPlayVideo",I.JSC$19303_onPlayerPlayVideo),I.player.addEventListener("onCloseMiniplayer",I.onPlayerCloseMiniplayer),I.player.addEventListener("onExpandMiniplayer",I.onPlayerExpandMiniplayer),I.player.addEventListener("onStateChange",I.onPlayerStateChange));_.Cj(D)})};
_.L=dg.prototype;_.L.JSC$19303_onPlayerPlayVideo=function(I){var y=I.sessionData&&"autonav"in I.sessionData,D;I.sessionData&&I.sessionData.itct&&(D=I.sessionData.itct);var F=I.watchEndpoint;y=F&&y?_.x9B(F,D):_.xK(I.videoId,I.listId||void 0,D);I.sessionData&&_.re(_.u(y.commandMetadata,_.nE).url,I.sessionData);y1W(this,y)};
_.L.onPlayerExpandMiniplayer=function(){_.M6(this)};
_.L.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.L.onPlayerStateChange=function(){if(this.player){var I=this.player.getPlayerState(),y=I===1;_.oq().dispatch(LbO(I));_.oq().dispatch(_.vaP(I));_.qr(this.miniplayerEl,"yt-miniplayer-play-state-changed",[y]);_.bW().isVideoPlaying=y;if(I===0){y=!_.X4.getInstance().isAutoplaySetExplicitly();var D,F,R,O,w,v,P=(D=this.watchResponse.response)==null?void 0:(F=D.contents)==null?void 0:(R=F.twoColumnWatchNextResults)==null?void 0:(O=R.autoplay)==null?void 0:(w=O.autoplay)==null?void 0:(v=w.autoplayExplicitChoiceDialogRenderer)==
null?void 0:v.confirmDialogRenderer;y&&P&&this.player.setAutonavState(1)}I===0&&this.watchWhileMode&&this.deactivate()}};
_.L.onPlaylistNavigate=function(I,y){var D=this,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1){if(!_.u(y.endpoint,_.t9))return r.return();_.bW().currentEndpoint=y.endpoint;_.qr(D.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.nR().resolve(_.ja).isOnWatch()&&(D.watchWhileMode||D.watchPipMode))return r.return();I.stopPropagation();(O=(R=_.u((F=y.endpoint)==null?void 0:F.commandMetadata,_.nE))==null?void 0:R.url)&&y.tempData&&!_.e$.isEmpty(y.tempData)&&_.re(O,y.tempData);w={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};v=new Shf(function(){return D.getPlayerElement()},w,{layer:D.getScreenLayer()});
P=function(N){v.processChunk({endpoint:y.endpoint,data:N})};
n71(D);D.miniplayerFetchRequest=pPa(D,y.endpoint,P);_.nj(r,2);return r.yield(D.miniplayerFetchRequest,4)}if(r.nextAddress!=2)return K=r.yieldResult,mwG(D,K),_.lZ(r,0);_.dj(r);_.Cj(r)})};
_.L.JSC$19303_onPlaylistDataUpdated=function(){var I=_.nR().resolve(_.rE).getPlaylistData();this.hasPlaylistData=!!I;_.ag(this,{externalPlaylistData:I||{}})};
_.L.close=function(I){if(this.isInitialized())if(I){if(!((this.watchWhileMode||this.watchPipMode)&&_.nR().resolve(_.ja).isOnWatch()||this.shortsPipMode)){var y;(y=this.getPlayerElement())==null||y.stop()}this.deactivate()}else _.xD().closeMiniplayer(this.miniplayerEl)};
_.L.deactivate=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1){if(!y.isInitialized()||!y.active)return w.return();y.setActive(!1);n71(y);(D=!!I&&lJy(y,I))&&y.isSingleOptionSurveyActive&&_.uj(y.miniplayerEl,"yt-show-watch-page-survey",[y.isSingleOptionSurveyActive]);return w.yield(MnY(y),2)}if(w.nextAddress!=3){Y6y(y,!1);y.isReadyToResume=!1;y.watchResponse=void 0;y.updateMiniplayerData(void 0);y.shortsPipMode&&(y.shortsPipMode=!1,_.oq().dispatch(sYf(y.shortsPipMode)),sbG(y.pipController),
(F=y.player)==null||F.setInternalSize(NaN,NaN));y.watchPipMode&&(y.watchPipMode=!1,sbG(y.pipController));(R=y.watchWhileMode)&&_.E7T(y,!1);y.removePlayerListeners();var v=_.nR().resolve(_.rE);v.removeEventListener("yt-navigate",_.MX(y,y.onPlaylistNavigate));v.removeEventListener("yt-playlist-data-updated",_.MX(y,y.JSC$19303_onPlaylistDataUpdated));_.bW().currentEndpoint=null;_.qr(y.miniplayerEl,"yt-miniplayer-endpoint-changed");y.playerElement=null;H0();if(y.shortsPipMode||y.watchPipMode)w=w.jumpTo(3);
else{v=w.yield;var P=_.uj(y.miniplayerEl,"yt-deactivate-miniplayer",[D,R])[0];w=v.call(w,P,3)}return w}(O=y.player)==null||O.setInternalSize(NaN,NaN);y.player=null;_.Cj(w)})};
var MnY=function(I){var y;return _.S(function(D){y=_.nR().resolve(_.ja);return I.shortsPipMode?D.yield(y.movePlayerToShorts(I.playerElement),0):D.yield(y.movePlayerToWatch(I.playerElement),0)})};
dg.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19303_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
dg.prototype.setActive=function(I){this.active=I;this.isSingleOptionSurveyActive?_.uj(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.uj(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.oq().dispatch(_.Ec({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.E7T=function(I,y){I.watchWhileMode=y;_.ag(I,{watchWhile:y})};
Y6y=function(I,y){if(!fJg(I))if(I.shortsPipMode||I.watchPipMode){var D;(D=I.player)==null||D.setDocumentPictureInPicture(y)}else{var F;(F=I.player)==null||F.setMinimized(y)}};
fJg=function(I){return I.watchWhileMode&&_.l("kevlar_watch_while_counterfactual")};
_.M6=function(I){var y;return _.S(function(D){switch(D.nextAddress){case 1:if(!I.isInitialized())return D.return();_.nj(D,2);return D.yield(I.miniplayerFetchRequest,4);case 4:_.lZ(D,3);break;case 2:_.dj(D);case 3:I.watchResponse&&I.miniplayerData&&I.miniplayerData.watchEndpoint?(y={url:I.watchResponse.url,endpoint:I.miniplayerData.watchEndpoint,data:I.watchResponse,miniplayer:!0},_.lj(I.miniplayerEl,"yt-navigate-cache",y)):I.miniplayerData&&I.miniplayerData.watchEndpoint&&_.lj(I.miniplayerEl,"yt-navigate",
{endpoint:I.miniplayerData.watchEndpoint}),_.Cj(D)}})};
y1W=function(I,y,D){var F,R,O,w;return _.S(function(v){if(v.nextAddress==1){if(lJy(I,y))return v.return();_.bW().currentEndpoint=y;_.qr(I.miniplayerEl,"yt-miniplayer-endpoint-changed");_.qr(I.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.bW().isVideoPlaying=!1;F={clientParams:{miniplayer:!0,autoSaveToQueue:!D}};R=new Shf(function(){return I.getPlayerElement()},F,{layer:I.getScreenLayer(),
parentLayer:0},void 0,I.readyToResumeVe);O=function(P){var K,r,N=Object.assign({},(K=P.playerResponse)==null?void 0:(r=K.playerConfig)==null?void 0:r.playbackStartConfig,{startPaused:!0}),h;D&&((h=P.playerResponse)==null?0:h.playerConfig)&&(P.playerResponse.playerConfig.playbackStartConfig=N);R.processChunk({endpoint:y,data:P})};
n71(I);I.miniplayerFetchRequest=pPa(I,y,O);_.nj(v,2);return v.yield(I.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return w=v.yieldResult,mwG(I,w),_.lZ(v,0);_.dj(v);_.Cj(v)})};
dg.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
n71=function(I){I.miniplayerFetchRequest&&(I.miniplayerFetchRequest.cancel&&I.miniplayerFetchRequest.cancel("Active request obsolete"),I.miniplayerFetchRequest=null)};
pPa=function(I,y,D){var F,R=(F=_.u(y.commandMetadata,_.nE))==null?void 0:F.url,O;F=!R||_.uI("disable_miniplayer_tempdata")?{}:(O=Ret(R))!=null?O:{};return wu(I.JSC$19303_pageRequestService,y,F,window.location.href,"watch",function(w,v){D(v)},function(w){return w!==I.miniplayerFetchRequest})};
mwG=function(I,y){var D;_.S(function(F){if(!y)return F.return();I.watchResponse=y;QrY(I);G8Y(I);D=_.yy_(y.response,y.playerResponse);if(I.isMiniplayerActive()){y.response&&(I.playerElement.watchNextData=y.response);var R=_.e$.getValueByKeys.apply(_.e$,[y].concat(_.Td(hxO)));_.e$.getValueByKeys.apply(_.e$,[y].concat(_.Td(Ea_)))&&R&&_.nR().resolve(_.rE).setAutoplayRenderer(R);if(R)if(_.l("kevlar_is_pupi_enabled")){var O,w,v,P,K,r=((O=y.response)==null?0:(w=O.playerOverlays)==null?0:(v=w.playerOverlayRenderer)==
null?0:(P=v.autonavToggle)==null?0:(K=P.autoplaySwitchButtonRenderer)==null?0:K.enabled)?2:1;_.X4.getInstance().setState(r,!1,!1)}else O=ojq()?2:1,(r=I.player)==null||r.setAutonavState(O);I.updateMiniplayerData(D);_.XPe(I)}_.Cj(F)})};
G8Y=function(I){var y,D,F=(y=I.watchResponse)==null?void 0:(D=y.playerResponse)==null?void 0:D.playabilityStatus,R;y=F==null?void 0:(R=F.miniplayer)==null?void 0:R.miniplayerRenderer;(y==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&y.minimizedEndpoint&&_.E$(I.miniplayerEl,[y.minimizedEndpoint]);_.ag(I,{playabilityStatus:F})};
_.ag=function(I,y){(0,I.miniplayerPropSignalMap[1])(y)};
dg.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var I;return this.playerElement?this.playerElement:(I=_.XB(this.miniplayerEl).querySelector("#player-container"))==null?void 0:I.firstElementChild};
dg.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var ugZ=function(I,y){y=y===void 0?!1:y;var D,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1){if(!I.pictureInPictureSupported()||!imq()&&!y)return P.return(!1);D=zfe(I);F=D.width;R=D.height;return P.yield(I.pipController.openWindow({width:F,height:R}),2)}O=P.yieldResult;w=I.pipController.getWindow();if(!w||!O)return P.return(!1);w.document.body.style.overflow="hidden";v=B8S(w);VRa(I.pipController,function(){k88(I);v()});
return P.return(!0)})},zfe=function(I){var y=_.bW().shortsPipActivation,D,F;
I=y?.5625:(F=(D=I.player)==null?void 0:D.getVideoAspectRatio())!=null?F:16/9;D=Math.min(window.innerWidth,window.innerHeight)/2;y=y?0:76;return I>1?new _.ad(D,y+D/I):new _.ad(D*I,y+D)},k88=function(I){var y;
_.S(function(D){y=_.nR().resolve(_.ja);return y.isOnWatch()&&I.watchPipMode||y.isOnShorts()&&I.shortsPipMode?D.yield(I.deactivate(),0):I.miniplayerToPipMode?D.yield(xwy(I),0):I.watchPipMode?D.yield(_.M6(I),0):D.jumpTo(0)})};
dg.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19303_watchPipEnabled||this.shortsPipEnabled)};
_.mD.Object.defineProperties(dg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
dg[mw]=[Zeb,q9R,_.b0];var dwa="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(" "),
aJb="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(" "),cOb="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
W$a="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var CHY=function(I,y,D){_.B5.call(this);this.store=I;this.panelController=y;this.pageContentExtractor=D;this.isInitialized=!1};
_.E(CHY,_.B5);
CHY.prototype.init=function(I){var y=this;this.isInitialized||(this.isInitialized=!0,this.environment=I!=null?I:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.LV.currentPageSubTypeSelector(this.store.getState()),I=_.TV(this.store,_.LV.currentPageSubTypeSelector,function(D){a:if(_.B2a(y))switch(D){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var F=!0;break a;default:F=!1}else F=!1;F&&y.panelController.hidePanel({identifier:"PAai_companion"});
y.pageSubtype!==D&&(y.pageSubtype=D)}),this.addOnDisposeCallback(I))};
_.vBy=function(I,y){if(_.B2a(I))switch(y){case "watch":var D,F;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(D=_.ft())==null?void 0:(F=D.getVideoData())==null?void 0:F.video_id};case "search":var R,O,w;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(O=(R=I.pageContentExtractor)==null?void 0:daa(R))!=null?O:[],entityId:(w=(new URLSearchParams(window.location.search)).get("search_query"))!=null?w:void 0};case "companion-canvas":var v,P;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(P=(v=
I.pageContentExtractor)==null?void 0:daa(v))!=null?P:[]};default:var K,r;I={videoIds:(r=(K=I.pageContentExtractor)==null?void 0:daa(K))!=null?r:[]};return _.l("enable_ai_companion_default_page_context")?I:void 0}};
_.B2a=function(I){return I.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
CHY[mw]=[_.LM,_.yR,_.fR(aaR)];var iuo=_.d(function(I){return _.t("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.t(_.ox,{text:function(){return I.data().text||""},
wrapCodeBlocks:I.shouldWrapCodeBlock}))},"oh");_.AOZ=_.d(function(I){return _.t("yt-ai-companion-attachment-view-model",{el:_.K4(_.VM(function(){return I.data().rendererContext})),
class:_.XH("ytAiCompanionAttachmentViewModelHost",I.className)},_.t("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.t(_.U,{cond:function(){return I.data().title},
then:function(y){return _.t("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return y().content}},_.t(_.jr,{text:y}))}}),_.t(_.U,{cond:function(){return _.OA(I.data().trailingTitleIcon)},
then:function(y){return _.t("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.t(_.UE,{data:y,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.t(_.U,{cond:function(){return I.data().description},
then:function(y){return _.t("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.t(_.jr,{text:y}))}}),_.t(_.U,{cond:function(){return I.data().bottomItem},
then:function(y){return _.t("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.t(_.aP,{data:y},{tableViewModel:cQW}))}}))},"ph");_.$wa=_.d(function(I){return _.t("yt-channel-attribution-view-model",{class:_.XH("ytChannelAttributionViewModelHost",I.className)},_.t("div",{class:"ytChannelAttributionViewModelUpper"},_.t(_.aP,{data:function(){return I.data().avatar}},{decoratedAvatarViewModel:_.Jh}),_.t("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.t(_.jr,{text:function(){return I.data().title}}))),_.t("div",{class:"ytChannelAttributionViewModelBottom"},_.t(_.jr,{text:function(){return I.data().subtitle}})))},"qh");var bua=_.d(function(I){var y=_.J(_.$M(!1,void 0,"MFRKRb")),D=y.next().value,F=y.next().value,R=function(){return I.data().activeRenderer},O=function(){return I.data().inactiveRenderer};
return _.t("yt-channel-disclosure-view-model",{"on:mouseleave":_.YY(function(){F(!1)}),
"on:mouseover":_.YY(function(){F(!0)}),
class:_.XH("ytChannelDisclosureViewModelHost",I.className)},_.t(_.U,{cond:function(){return D()},
then:function(){return _.t(_.aP,{data:R},{channelAttributionViewModel:_.$wa})},
else:function(){return _.t(_.aP,{data:O},{decoratedAvatarViewModel:_.Jh})}}))},"rh");var Huo=null;var efe={},T2G=(efe.initialized={priority:10,callback:function(I){var y=_.nR();y.addProvider({provide:sCW,useClass:Vja});y.addProvider({provide:_.sU1,useFactory:function(){return new VAM}});
y.addProvider({provide:jS,useValue:_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});y.addProvider({provide:hqY,useValue:5184E6});y.addProvider({provide:AYR,useValue:_.Tr()});y.addProvider({provide:oMY,useClass:E5f});y.addProvider({provide:oF,useClass:oF});y.addProvider({provide:_.qY,useFactory:function(){return Vtz.promise}});
y.addProvider({provide:_.gue,useFactory:function(){return _.ZfO.promise}});
y.addProvider({provide:rcA,useValue:function(){var P;return((P=_.NY())==null?void 0:P.getPlayer())||null}});
var D={};y.addProvider((D.provide=_.Ig,D.useFactory=function(P,K){return function(){return c6H(P,K)}},D[mw]=[jS,
hqY],D));D={};y.addProvider((D.provide=_.aK,D.useClass=zBa,D[mw]=[jS,hqY],D));D={};y.addProvider((D.provide=_.VyW,D.useClass=cvY,D[mw]=[_.aK],D));y.addProvider({provide:vT,useFactory:_.oq});y.addProvider({provide:Gr,useFactory:_.oq});y.addProvider({provide:Xma,useFactory:_.oq});y.addProvider({provide:_.Pwu,useFactory:function(){var P;return((P=_.NY())==null?void 0:P.getPlayer())||null}});
y.addProvider({provide:SWY,useFactory:_.oq});y.addProvider({provide:_.LM,useFactory:_.oq});D={};y.addProvider((D.provide=SrM,D.useFactory=function(P){return P.dispatch.bind(P)},D[mw]=[_.LM],D));
y.addProvider({provide:WN,useValue:_.Ml});y.addProvider({provide:eY8,useClass:sqW});y.addProvider({provide:cWa,useClass:ata});y.addProvider({provide:WD,useClass:WD});y.addProvider({provide:a$,useClass:a$});y.addProvider({provide:zc,useClass:zc});y.addProvider({provide:cY,useClass:cY});y.addProvider({provide:HD,useClass:HD});y.addProvider({provide:Yv,useClass:Yv});y.addProvider({provide:U8,useClass:U8});y.addProvider({provide:RBo,useValue:tAT});D={};y.addProvider((D.provide=OWa,D.useFactory=function(P){return P.watchEndpointMap||
{}},D[mw]=[RBo],D));
D={};y.addProvider((D.provide=L51,D.useFactory=function(P){return P.reelWatchEndpointMap||{}},D[mw]=[RBo],D));
y.addProvider({provide:_.gi,useFactory:_.W4});y.addProvider({provide:I$,useFactory:_.a1});D={};y.addProvider((D.provide=CJL,D.useFactory=function(P){return function(K){var r={automatedLogEventSource:5};r=r===void 0?{}:r;var N,h,x=(h=_.u((N=K.endpoint)==null?void 0:N.commandMetadata,_.nE))==null?void 0:h.rootVe;if(x){var q,X;if(N=K.previousCsn||((X=_.u((q=K.endpoint)==null?void 0:q.commandMetadata,xTc))==null?void 0:X.parentCsn)){var f=f===void 0?{}:f;if(N!==_.VO(f.layer)||x!==Nbe(f.layer))q2o(N,f.cttAuthInfo,
f.layer||0),j7B(N,f.layer||0),q=f.layer||0,_.tG(o6q(q===void 0?0:q),x);r.parentCsn=N}K.endpoint&&N?b1a(P,K.endpoint,r):_.d7(P,x,void 0,r);var m;((m=K.response)==null?0:m.trackingParams)&&P.graftServerVe(K.response.trackingParams);var z;((z=K.playerResponse)==null?0:z.trackingParams)&&P.graftServerVe(K.playerResponse.trackingParams);var B;((B=K.reelWatchSequenceResponse)==null?0:B.trackingParams)&&P.graftServerVe(K.reelWatchSequenceResponse.trackingParams)}}},D[mw]=[_.gi],D));
D={};y.addProvider((D.provide=YuY,D.useClass=Qbb,D[mw]=[WN,_.LM],D));D={};y.addProvider((D.provide=t8,D.useClass=t8,D[mw]=[_.qY,_.LM],D));D={};y.addProvider((D.provide=J8,D.useClass=J8,D[mw]=[Gr,_.MC],D));y.addProvider({provide:_.cuR,useClass:I41});D={};y.addProvider((D.provide=_.yR,D.useClass=BR8,D[mw]=[_.cuR,_.fR(_.R_)],D));y.addProvider({provide:_.pO,useClass:ClQ});D={};y.addProvider((D.provide=mT,D.useClass=mT,D[mw]=[_.pO,_.qY,_.iX,_.MC],D));y.addProvider({provide:_.DP,useClass:Uo});y.addProvider({provide:_.k_e,
useClass:kBY});y.addProvider({provide:_.Fu,useClass:PL});_.l("enable_ai_companion")&&(y.addProvider({provide:_.R_,useClass:$aG}),y.addProvider({provide:_.leM,useClass:Cra}),y.addProvider({provide:aaR,useClass:zkg}),y.addProvider({provide:F2,useClass:F2}),y.addProvider({provide:Db,useClass:Db}),y.addProvider({provide:unf,useValue:bua}),y.addProvider({provide:_.qQg,useValue:_.AOZ}),y.addProvider({provide:Etg,useValue:iuo}));_.l("enable_ai_chat_controller")&&y.addProvider({provide:_.yb,useClass:CHY});
D={};y.addProvider((D.provide=_.sr,D.useClass=gMR,D[mw]=[_.sr],D));y.addProvider({provide:_.dx,useClass:pdb});y.addProvider({provide:PT,useClass:PT});y.addProvider({provide:dS,useClass:dS});y.addProvider({provide:NN,useClass:NN});D={};y.addProvider((D.provide=V$,D.useClass=V$,D[mw]=[_.MC,_.iX],D));y.addProvider({provide:Qb,useClass:KI});D={};y.addProvider((D.provide=nL,D.useClass=nL,D[mw]=[_.DP,Qb],D));D={};y.addProvider((D.provide=Er,D.useClass=Er,D[mw]=[_.DP],D));y.addProvider({provide:JD,useClass:JD});
y.addProvider({provide:Plo,useClass:t$o});_.l("web_enable_feedback_endpoint_resolver_batch_2")&&(D={},y.addProvider((D.provide=SS,D.useClass=SS,D[mw]=[vT],D)),D={},y.addProvider((D.provide=wS,D.useClass=wS,D[mw]=[Plo],D)));D={};y.addProvider((D.provide=Yh,D.useClass=Yh,D[mw]=[_.Fu,Qb],D));D={};y.addProvider((D.provide=uh,D.useClass=uh,D[mw]=[_.Fu],D));D={};y.addProvider((D.provide=fL,D.useClass=fL,D[mw]=[_.iX,_.yR],D));D={};y.addProvider((D.provide=X2,D.useClass=X2,D[mw]=[_.iX,_.gi],D));y.addProvider({provide:JX,
useClass:JX});D={};y.addProvider((D.provide=gS,D.useClass=gS,D[mw]=[vT],D));y.addProvider({provide:le,useClass:le});y.addProvider({provide:x5,useClass:x5});D={};y.addProvider((D.provide=qm,D.useClass=qm,D[mw]=[vT],D));D={};y.addProvider((D.provide=Ep,D.useClass=Ep,D[mw]=[_.iX,vT],D));D={};y.addProvider((D.provide=Gs,D.useClass=Gs,D[mw]=[vT],D));D={};y.addProvider((D.provide=XC,D.useClass=XC,D[mw]=[vT],D));D={};y.addProvider((D.provide=qN,D.useClass=qN,D[mw]=[_.yR],D));D={};y.addProvider((D.provide=
PY,D.useClass=PY,D[mw]=[_.gi],D));D={};y.addProvider((D.provide=Nm,D.useClass=Nm,D[mw]=[R$],D));D={};y.addProvider((D.provide=hX,D.useClass=hX,D[mw]=[R$],D));y.addProvider({provide:rd,useClass:rd});y.addProvider({provide:jB,useClass:jB});y.addProvider({provide:tX,useClass:tX});D={};y.addProvider((D.provide=pL,D.useClass=pL,D[mw]=[_.yR,_.MC],D));y.addProvider({provide:rS,useClass:rS});D={};y.addProvider((D.provide=Gc,D.useClass=Gc,D[mw]=[_.iX,_.yR],D));y.addProvider({provide:hD,useClass:hD});D={};
y.addProvider((D.provide=Vb,D.useClass=Vb,D[mw]=[vT,_.iX,_.sr],D));D={};y.addProvider((D.provide=eS,D.useClass=eS,D[mw]=[_.iX,_.MC],D));y.addProvider({provide:jHM,useValue:bnA});y.addProvider({provide:Gwf,useValue:nvA});y.addProvider({provide:Tc,useClass:Tc});D={};y.addProvider((D.provide=HT,D.useClass=HT,D[mw]=[vT],D));D={};y.addProvider((D.provide=Zb,D.useClass=Zb,D[mw]=[_.dx,_.MC],D));D={};y.addProvider((D.provide=tD,D.useClass=tD,D[mw]=[_.MC],D));D={};y.addProvider((D.provide=LL,D.useClass=LL,
D[mw]=[Gr],D));y.addProvider({provide:yLR,useFactory:_.Sv.getInstance});D={};y.addProvider((D.provide=oy,D.useClass=oy,D[mw]=[jS,yLR,_.MC],D));y.addProvider({provide:KL,useClass:KL});y.addProvider({provide:Zc,useClass:Zc});y.addProvider({provide:Iy,useClass:Iy});y.addProvider({provide:_.gf,useClass:_.gf});y.addProvider({provide:fO,useClass:fO});D={};y.addProvider((D.provide=BT,D.useClass=BT,D[mw]=[Gr],D));D={};y.addProvider((D.provide=MN,D.useClass=MN,D[mw]=[_.MC],D));D={};y.addProvider((D.provide=
ih,D.useClass=ih,D[mw]=[_.MC],D));D={};y.addProvider((D.provide=AD,D.useClass=AD,D[mw]=[_.MC],D));_.l("web_enable_prefetching_videos_on_home")&&(y.addProvider({provide:LI,useClass:LI}),y.addProvider({provide:Q7,useClass:Q7}));D={};y.addProvider((D.provide=Y5,D.useClass=Y5,D[mw]=[_.MC],D));y.addProvider({provide:Ry,useClass:Ry});D={};y.addProvider((D.provide=wd,D.useClass=wd,D[mw]=[_.iX,_.MC],D));D={};y.addProvider((D.provide=Or,D.useClass=Or,D[mw]=[_.MC],D));D={};y.addProvider((D.provide=YO,D.useClass=
YO,D[mw]=[_.iX,_.MC],D));y.addProvider({provide:X3,useClass:X3});y.addProvider({provide:GY,useClass:GY});y.addProvider({provide:cT,useClass:cT});D={};y.addProvider((D.provide=ay,D.useClass=ay,D[mw]=[Gr,_.MC],D));y.addProvider({provide:WT,useClass:WT});D={};y.addProvider((D.provide=zs,D.useClass=zs,D[mw]=[Gr,_.MC,_.iX],D));D={};y.addProvider((D.provide=k5,D.useClass=k5,D[mw]=[_.MC],D));D={};y.addProvider((D.provide=Mm,D.useClass=Mm,D[mw]=[_.MC,_.iX],D));D={};y.addProvider((D.provide=LO,D.useClass=
LO,D[mw]=[_.MC,_.iX],D));D={};y.addProvider((D.provide=bh,D.useClass=bh,D[mw]=[_.qY],D));D={};y.addProvider((D.provide=$h,D.useClass=$h,D[mw]=[_.qY],D));D={};y.addProvider((D.provide=CL,D.useClass=CL,D[mw]=[_.qY],D));y.addProvider({provide:FC,useClass:FC});y.addProvider({provide:Op,useClass:Op});y.addProvider({provide:ue,useClass:ue});y.addProvider({provide:vY,useClass:vY});y.addProvider({provide:DS,useClass:DS});y.addProvider({provide:xh,useClass:xh});y.addProvider({provide:yQ,useClass:yQ});y.addProvider({provide:_.WY,
useClass:jm});y.addProvider({provide:GV,useFactory:function(){return _.uK.getInstance()}});
y.addProvider({provide:EMZ,useFactory:VhW});y.addProvider({provide:R$,useFactory:function(){return _.DI.getInstance()}});
y.addProvider({provide:WBg,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});D={};y.addProvider((D.provide=_.wg,D.useClass=_.wg,D[mw]=[_.qY,_.MC,_.gi,EMZ,R$,GV,WBg,WN],D));y.addProvider({provide:_.iL,useClass:OdR});y.addProvider({provide:_.lOZ,useClass:xR1});D={};y.addProvider((D.provide=lh,D.useClass=lh,D[mw]=[_.lOZ],D));D={};y.addProvider((D.provide=_.vL,D.useFactory=function(P){return P.upliftCompletionResolver.promise},D[mw]=[YuY],D));
D=_.KR("IS_SHELL_LOAD")?"aa":"eocs";var F=_.KR("IS_SHELL_LOAD")?3:2;_.oJ().parkOrScheduleJob(function(){nMb()},F,D);
_.oJ().parkOrScheduleJob(function(){_.nR().resolve(t8).start()},2,"eocs");
_.oJ().parkOrScheduleJob(function(){GOo()},2,"eocs");
_.oJ().parkOrScheduleJob(function(){_.nR().resolve(J8).start()},2,"eocs");
_.l("kevlar_debug_data_app_registration_ks")||iKW();y.addProvider({provide:_.cU,useValue:new WH1(I.root)});y.addProvider({provide:xn,useValue:new P9W});y.addProvider({provide:_.eCg,useValue:new bS1(I.root)});y.addProvider({provide:_.BF,useValue:new HST});y.addProvider({provide:_.Wf,useClass:eo});y.addProvider({provide:Zeb,useClass:rg});_.l("kevlar_network_sli_killswitch")||y.addProvider({provide:RXG,useValue:JoR});y.addProvider({provide:TZa,useFactory:Ol4});D={};y.addProvider((D.provide=eqQ,D.useFactory=
aGC,D[mw]=[_.vL,vT,_.Ig],D));D={};y.addProvider((D.provide=HGa,D.useClass=dd,D[mw]=[eqQ],D));y.addProvider({provide:YWT,useClass:EWC});y.addProvider({provide:iGa,useClass:$Re});D=[].concat(_.Td(wsL));D.push(_.IP);D.push(IkP);_.l("enable_share_panel_navigation_logging_fix_on_web")&&D.push(_.Kee);y.addProvider({provide:JEe,useValue:D});y.addProvider({provide:R4z,useClass:BBa});y.addProvider({provide:vfa,useClass:ORg});D={};y.addProvider((D.provide=ICW,D.useClass=Oje,D[mw]=[Gr],D));_.w2.addLowPriorityJob(function(){KaA()});
D={};y.addProvider((D.provide=qhM,D.useFactory=function(P){return function(K){var r,N=(r=_.u(K.commandMetadata,_.nE))==null?void 0:r.url;if(!N)throw new _.g6("No URL for PBJ Command",K);N=e3q(N,{pbj:"1"});r=Ulo(N,{})||{};r=Object.assign({},r,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Pi("STS").toString()});K=_.$f({command:JSON.stringify(K),session_token:_.Pi("XSRF_TOKEN")});return P.fetch(N,{method:"POST",headers:r,body:K})}},D[mw]=[vfa],D));
y.addProvider({provide:yGT,useFactory:function(){var P={};return P.CSI=J1H(),P.ECATCHER=LIo(),P}});
y.addProvider({provide:HmJ,useClass:DCY});D=[];D.push(y.resolve(iGa));F={};F=(F.client_location=_.Sv.getInstance(),F.consistency=_.t44(),F.entities=y.resolve(cWa),F.response_received_commands=y.resolve(R4z),F.store=y.resolve(_.VyW),F.tokens=y.resolve(iGa),F.service_params=y.resolve(HmJ),F);if(_.l("web_shorts_prefetch_service_enabled")){var R=new W5Q(y.resolve(_.aK));F.shorts_prefetch=R}F.adblock_detection=y.resolve(ICW);y.addProvider({provide:_.x7,useClass:_.x7});R=y.resolve(RBo);var O=[];_.l("PremiumClientSharedConfig__enable_att_context_processor")&&
(y.addProvider({provide:uy8,useClass:hDQ}),O.push(y.resolve(uy8)));if(_.l("owl_pl_await")){var w={};y.addProvider((w.provide=BZY,w.useFactory=function(P){return new WE8(P)},w[mw]=[_.x7],w));
O.push(y.resolve(BZY))}XDz(R,y.resolve(vfa),y.resolve(eY8),F,y.resolve(_.aK),D,O,y.resolve(HGa),y.resolve(YWT));y.addProvider({provide:_.iX,useValue:_.Lt.instance});_.l("start_client_gcf")&&y.addProvider({provide:DM,useValue:PoW()});y.addProvider({provide:mag,useFactory:function(){return new mag(_.nR().resolve(_.x7),_.DI.getInstance())}});
_.oJ().parkOrScheduleJob(function(){MRa()},1,"eocs");
D={};y.addProvider((D.provide=Sm,D.useClass=Sm,D[mw]=[_.Ig,_.iX],D));y.addProvider({provide:_.LEG,useFactory:_.Eo.getInstance});_.oJ().parkOrScheduleJob(function(){_.nR().resolve(Sm).refresh()},0,"eocs");
y.addProvider({provide:_.b0,useClass:K5g});_.l("kevlar_signal_collection_killswitch")||(D={},y.addProvider((D.provide=jby,D.useClass=jby,D[mw]=[jS,I$],D)),_.oJ().parkOrScheduleJob(function(){_.nR().resolve(jby).record()},1,"eocs"));
_.l("web_debug_handler_registration_killswitch")||_.oJ().parkOrScheduleJob(function(){Cso("DOWNLOAD_PES",s45);_.l("offline_client_state_export_ks")||Cso("OFFLINE_CLIENT_STATE",HBq)},0,"eocs");
_.l("kevlar_prevent_polymer_dynamic_font_load")&&_.oJ().parkOrScheduleJob(function(){var P=[_.Et(N6b),_.Et(hXb)];P=_.J(P);for(var K=P.next();!K.done;K=P.next()){K=K.value;var r=document.createElement("link");_.oB(r,K,"stylesheet");document.head.appendChild(r)}},1,"eocs");
D=I.injector.resolve(_.iX);_.lto.instance=new _.lto(D);GAJ(PiQ(new x_T(D)));D={};I.injector.addProvider((D.provide=nT,D.useFactory=function(P){(P=P==null?void 0:P.getCurrentPage())?P=P.visibilityObserver:(Huo||(Huo=raW()),P=Huo);return P},D[mw]=[_.fR(_.ja)],D.skipCache=!0,D));
y.addProvider({provide:_.OI,useClass:dg});y.addProvider({provide:Hy,useClass:rAa});I.injector.addProvider({provide:Spg,useValue:cVG});y.addProvider({provide:g2g,useValue:RDa});y.addProvider({provide:JjP,useValue:Cct});y.addProvider({provide:_.cS,useValue:g8W});I=y.addProvider;Sfa||(Sfa=new v4R);I.call(y,{provide:_.og,useValue:Sfa});y.addProvider({provide:_.JU,useValue:_.Pi("HTML_DIR")==="rtl"?"rtl":"ltr"});y.addProvider({provide:TjT,useClass:L2Z});y.addProvider({provide:_.mZ,useClass:N6});_.nR().addProvider({provide:VYR,
useValue:_.l("enable_web_delhi_icons")?aJb.concat(W$a):dwa.concat(cOb)});y.addProvider({provide:_.xO,useClass:_.xO});y.addProvider({provide:_.rGy,useValue:new UCa});y.addProvider({provide:ceo,useClass:kdg});y.addProvider({provide:SB,useClass:SB});y.addProvider({provide:KO,useClass:KO});I={};y.addProvider((I.provide=mu,I.useClass=mu,I[mw]=[_.iX,_.yR],I));y.addProvider({provide:nO,useClass:nO});y.addProvider({provide:DgT,useClass:D3Q});y.addProvider({provide:o$,useClass:o$});y.addProvider({provide:r$u,
useValue:Iia});y.addProvider({provide:_.lB,useClass:d_Z});_.l("enable_payments_purchase_manager")&&y.addProvider({provide:Xdy,useClass:qkG});y.addProvider({provide:StZ,useFactory:function(){return function(P){return _.of1(P)}}});
y.addProvider({provide:_.aOQ,useClass:cY8});I={};y.addProvider((I.provide=QQ,I.useClass=QQ,I[mw]=[_.aOQ],I));y.addProvider({provide:Up,useClass:Up});y.addProvider({provide:TqC,useValue:YxG});y.addProvider({provide:zUW,useValue:_.NZe});y.addProvider({provide:RmB,useClass:yIG});y.addProvider({provide:PFY,useValue:oky});I={};y.addProvider((I.provide=KEY,I.useClass=U3a,I[mw]=[PFY],I));I={};y.addProvider((I.provide=_.et,I.useClass=xo1,I[mw]=[KEY],I));I={};y.addProvider((I.provide=_.uY,I.useClass=lY,I[mw]=
[_.LM,_.Wf],I));if(_.l("web_explore_hub_on_hover")||_.l("web_client_explore_hub_on_hover"))I={},y.addProvider((I.provide=Ur,I.useClass=Ur,I[mw]=[_.iX,GV],I));if(_.l("web_enable_renderer_logger")){var v=new iVA;vjq(function(){v.abort()});
y.addProvider({provide:UsJ,useValue:new NRQ(v.signal)})}y.addProvider({provide:P4n,useValue:SoJ});y.addProvider({provide:TFq,useClass:CDG});_.l("web_use_flow_state_manager")&&(y.addProvider({provide:_.BN,useClass:W4g}),I={},y.addProvider((I.provide=iB,I.useClass=iB,I[mw]=[_.BN],I)),I={},y.addProvider((I.provide=Ao,I.useClass=Ao,I[mw]=[_.LM,_.BN],I)),I={},y.addProvider((I.provide=$H,I.useClass=$H,I[mw]=[_.LM,_.BN,_.MC],I)),I={},y.addProvider((I.provide=bB,I.useClass=bB,I[mw]=[_.iX,_.MC],I)),I={},y.addProvider((I.provide=
HN,I.useClass=HN,I[mw]=[_.BN,_.MC],I)))}},efe);var sry={},Vn8=(sry.initialized={priority:10,callback:function(){if(!Fwg){loB();vde("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.CR(_.de(vde,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.l("log_heartbeat_with_lifecycles")){var I={};qG.instance||(qG.instance=new qG);qG.instance.install((I.document_visible={callback:Sa4,priority:10},I.document_hidden={callback:Sa4,priority:10},I))}else _.fu(document,"visibilitychange",Sa4);Fwg=!0}(I=_.VO())&&I!=="UNDEFINED_CSN"&&UH4(I)}},sry);var Zua={},g7R=(Zua.initialized={callback:function(I){var y=_.QM(232091),D=I.injector.resolve(_.gi);_.aj(D,y);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?AyH()&&_.W0(D,y):(I=I.injector.resolve(StZ)("refresh_detector"))&&(I.get("first_tab_load")?_.W0(D,y):I.set("first_tab_load","1"))}},Zua);var IMy={},yqQ=(IMy.initialized={priority:0,callback:function(){var I=new X1z,y="other";_.mr?y="chrome":_.pz?y="firefox":_.Ul?y="safari":Qx&&(y="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(D){I.increment(_.sJ(),D,y)}).catch(function(){I.increment(_.sJ(),!1,y)}):I.increment(_.sJ(),!1,y)}},IMy);var DMG={},FAb=(DMG.rendering={priority:8,callback:$eW},DMG);var RNo={},OTo=(RNo.rendering={priority:10,callback:LJn},RNo.rendered={callback:O5_},RNo),LAC={},JqC=(LAC.rendering={callback:LJn},LAC.rendered={callback:O5_},LAC);var wuR=!1,vnZ={},SNR=(vnZ.initialized={priority:10,callback:function(){wuR||(cRe({didPatch:function(I){I.el&&lGq(I.el,I.props)},
didUnmount:function(I){h$J(I.el)}}),wuR=!0)}},vnZ);var tbC=/^\/shorts\/?$/;_.tG("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:{}}}}}}});_.l("kevlar_use_common_module_manager_ks")?(_.h5B(new JLO),DvL()):wHe();
(function(){var I=document.querySelector("ytd-app");if(!I)throw Error("$j");I=new q6({root:I,injector:_.nR()});I.install(Vn8);var y={};I.install((y.initialized={priority:10,callback:Fst},y));_.l("wp_lat_b")&&(y={},I.install((y.initialized={priority:10,callback:function(){DBS()}},y)));
y={};I.install((y.rendered={priority:0,callback:Ino},y));y={};I.install((y.rendered={priority:0,callback:function(){_.w2.addLowPriorityJob(function(){_.JYo>1&&(HpL(),Zp5())},4E4)}},y));
I.install($Ce);I.install(g7R);I.install(SNR);mBe();I.install(ITa);I.install(cGZ);I.install(iRC);I.install(vM1);I.install(UaY);I.install(ZRR);I.install(T2G);I.install(CPb);I.install(yqQ);if(!_.KR("IS_SHELL_LOAD")||_.l("kevlar_fetch_initial_data_promise_client")||_.l("sw_nav_preload_pbj")){var D=_.iP(window.location.href);y=D&&D==="/watch";D=D&&D.match(tbC);y?I.install(JqC):D?I.install(FAb):I.install(OTo)}else I.install(kPG);I.install(HRG);_.l("web_enable_prefetching_videos_on_home")&&I.install(R5a);
_.l("start_client_gcf")&&I.install(IFb);I.install(RkC);(new QCz).increment("INSTALLED");I.install(Doy);I.install(mC8);I.transition("initialized");eWq();ai4()})();
_.f0=[[["cWszcGc0aXc1ZGVraW5kI2Q=","ZHIwbDVkNXl1dmFsdWUjYTE1"],"bHFkNDZ4cXo3QURfUExBQ0VNRU5UX0tJTkRfUEFVU0UjYTB5"]];_.Yc=["YWNrcyM0Mm1uYnc0YTV6MTdnbG9iYWxDYWxsYg==","cGQydDNnMWp5bzhvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjbQ==","OTNmb25BZFNraXAjdGdhZmd6bm1p","I25rM3RhODU5anU3NHJhd19wbGF5ZXJfcmVzcG9uc2U=","ZW50I2hyOXgwbzV0NjRzeHJlbmRlcmluZ0NvbnQ="];_.qF="YWNrcyM0Mm1uYnc0YTV6MTdnbG9iYWxDYWxsYg== cGQydDNnMWp5bzhvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjbQ== OTNmb25BZFNraXAjdGdhZmd6bm1p I25rM3RhODU5anU3NHJhd19wbGF5ZXJfcmVzcG9uc2U= cGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjbDlhMzdtYnI5Ym91d2ViXw== NG9lYWJfc2FfZWYjdmg3YnA0ZDQ3 ZW50I2hyOXgwbzV0NjRzeHJlbmRlcmluZ0NvbnQ=".split(" ");
_._ModuleManager_initialize=function(I,y){if(!_.F5){if(!_.Rb)return;_.h5B(_.Rb())}_.F5.setAllModuleInfoString(I,y)};
_._ModuleManager_initialize('kevlar_base_module/sy1/kevlar_main_module/NSzT5:1',['sy1','NSzT5','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var NIa;_.cL=function(I){var y=document.createElement("link");_.oB(y,I,"stylesheet");document.head.appendChild(y)};
_.WL=function(I,y){var D,F;return _.S(function(R){D=document.createElement("div");D.id=I.id;I.className&&(D.className=I.className);F=I.element;if(!F)throw Error("ak");if(I.location==="prepend")F.prepend(D);else if(I.location==="appendChild")F.appendChild(D);else if(I.location==="after")F.after(D);else throw Error("bk");return R.return(_.R8(D,y,"th"))})};
_.CI=function(I){var y;return _.S(function(D){(y=document.getElementById(I))&&y.remove();_.Cj(D)})};
_.BL=function(I,y){var D=document.querySelector(I);D?y(D):setTimeout(function(){_.BL(I,y)},1E3)};
_.hNa=function(I,y,D){var F;_.S(function(R){if(R.nextAddress==1)return(F=document.getElementById(I))?R.jumpTo(2):R.yield(NIa(I,y,D),2);if(F=document.getElementById(I))F.style.display="block";_.Cj(R)})};
NIa=function(I,y,D){return _.S(function(F){return F.return(new Promise(function(R){_.BL("div #panels",function(O){_.WL({element:O,location:"appendChild",id:I,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+D},y);R()})}))})};_.iY=_.d(function(I){var y=I.text;var D=I.onClick;var F=I.color;var R=I.backgroundColor;var O=I.buttonSize;var w=I.disabled;var v=I.iconName;var P=I.iconSize;var K=I.className;var r=I.iconClassName;I=I.ariaLabel;var N=_.YY(function(x){D(x)}),h={};
return _.t("button",{class:_.XH("ytpStandardButtonsHost",(h.ytpStandardButtonsLarge=function(){return(O==null?void 0:O())==="large"},h),K),
"on:click":N,style:_.p4({color:F,"background-color":R}),disabled:w,"aria-label":I},_.t(_.U,{cond:v,then:function(){return _.t(_.mj,{className:_.XH("ytpStandardButtonsIconContainer",r),icon:v,size:P})}}),y)},"sh");_.A8=_.d(function(I){var y,D,F={};return _.t("div",{class:_.XH("ytprototypesEngagementPanelComponentHost",(F.ytprototypesEngagementPanelComponentHostMweb=I.isMweb,F),I.className),id:I.id},_.t("div",{class:_.XH("ytprototypesEngagementPanelComponentEngagementPanelHeader",I.headerClassName)},_.t("div",null,I.header()),_.t("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.t("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(y=I.HeaderButton)==null?void 0:y.call(I)),
_.t(_.iY,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var R;(R=I.onHide)==null||R.call(I);var O;if((O=I.preventDefault)==null||!O.call(I))if(R=I.id(),R=document.getElementById(R))R.style.display="none"}}))),_.t("div",{class:_.XH("ytprototypesEngagementPanelComponentEngagementPanelContent",I.contentClassName),
style:function(){var R,O;return"height: "+(((R=I.height)==null?0:R.call(I))||((O=I.isMweb)==null?0:O.call(I))?"100%":"800px")+";"}},I.content()),_.t("div",null,(D=I.Footer)==null?void 0:D.call(I)))},"uh");
}catch(e){_._DumpException(e)}
try{
_.F5&&_.F5.beforeLoadModuleCode("NSzT5");
var YvS=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nR().resolve(_.qY),2);(I=y.yieldResult)&&I.pauseVideo();_.Cj(y)})};var fdq=_.UI(["https://portraits.google.com"]),nEx=_.UI(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),p4V=_.UI(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),m4$=_.Et(fdq),MEx=_.d(function(I){function y(N){var h;if(N=(h=N.detail)==null?void 0:h.endpoint){h=_.u(N,_.kc);var x;h&&((x=h.browseId)==null?0:x.startsWith("UC"))&&h.browseId!==R()&&(_.CI("creator-chatbots-panel-persistent"),K.removeEventListener("yt-navigate-start",y))}}
var D=I.usePlayerHeight;var F=I.isPersistentPanel;var R=I.creatorChannelId;var O=_.dV(_.d6q),w=_.K4(function(N){var h=R();h=_.Et(nEx,h);_.JW(N,1,h)}),v=function(){var N,h,x;
return _.S(function(q){return q.nextAddress==1?q.yield(_.nR().resolve(_.qY),2):(N=q.yieldResult)?q.return({video_id:(x=(h=N.getVideoData())==null?void 0:h.video_id)!=null?x:"",timestamp_sec:N.getCurrentTime().toString()}):q.return({})})};
_.fT("message",function(N){var h,x,q,X,f,m,z;return _.S(function(B){if(B.nextAddress==1){if(N.origin!==m4$.toString())return console.warn("Received message from untrusted origin:",N.origin),B.return();h=N.data;if(typeof h!=="object"||h===null||!h.action)return B.return();if(h.action==="pause")return B.yield(YvS(),0);if(h.action!=="getYouTubeContext")return B.jumpTo(0);if(((x=F)==null?0:x())&&N.source)return(q=N.source)==null||q.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:N.origin}),
B.jumpTo(0);if(!N.source)return B.jumpTo(0);X=N.source;f=X.postMessage;m=JSON;z=m.stringify;return B.yield(v(),8)}f.call(X,z.call(m,{youTubeContext:B.yieldResult}),{targetOrigin:N.origin});return B.jumpTo(0)})});
var P=function(){var N,h;(N=w.value)==null||(h=N.contentWindow)==null||h.postMessage("ep_closed",m4$.toString())};
_.fT("yt-page-type-changed",function(){if(F==null?0:F()){var N;((N=_.nR().resolve(_.ja).getCurrentPage())==null?void 0:N.pageSubtype)!=="channels"&&(N=document.getElementById("creator-chatbots-panel-persistent"))&&(N.style.display="none")}});
var K=_.nR().resolve(_.Wf),r;(r=K)==null||r.addEventListener("yt-navigate-start",y);_.OJ(function(){var N=(F==null?0:F())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",h=document.getElementById(N);if(h){var x=new MutationObserver(function(q){q.forEach(function(X){X.type==="attributes"&&X.attributeName==="style"&&h.style.display==="none"&&P()})});
x.observe(h,{attributes:!0});_.tI(function(){x.disconnect()})}});
_.tI(function(){var N;(N=K)==null||N.removeEventListener("yt-navigate-start",y)});
I={};return _.t("div",{class:_.XH("ytprotoCreatorChatbotsAppHost",(I.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return O()},I)),
style:_.p4({height:function(){return(D==null?0:D())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(F==null?0:F())?"800px":void 0}})},_.t(_.A8,{id:function(){return(F==null?0:F())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(F==null?0:F())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){F!=null&&F()||(P(),_.CI("creator-chatbots-panel"))},
header:function(){return _.t("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.t("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.t(_.PQ,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.t(_.iY,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var N=_.Tq("https://portraits.google.com/gallery?ytChannelId="+R());N&&_.wj(window,N,"_blank");P()}})},
content:function(){return _.t("iframe",{el:w,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+m4$.toString()})}}))},"Jo"),z0g=_.d(function(I){var y=I.creatorChannelId;
var D=_.dV(_.d6q),F=_.K4(function(O){var w=y();w=_.Et(p4V,w);_.JW(O,1,w)}),R=_.c4(_.W4(),{veType:281629});
I={};return _.t("div",{class:_.XH("ytprotoCreatorChatbotsAppHost",(I.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return D()},I)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.t(_.A8,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.t("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.t("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.t(_.PQ,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.t("iframe",{el:F,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.t("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.t(_.iY,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var O=_.Tq("https://portraits.google.com/gallery?ytChannelId="+y());O&&_.wj(window,O,"_blank");YvS();R&&_.OP(_.W4(),{visualElement:R})},
"client-ve-type":281629}),_.t("div",null,"This will take you to Google Portraits"))}}))},"Ko");var kvC,d4j;kvC=_.UI(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);d4j=_.Et(kvC);_.XOo=function(I){I=I===void 0?"":I;_.CI("creator-chatbots-panel");_.cL(d4j);_.BL("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.hNa("creator-chatbots-panel",function(){return _.t(MEx,{usePlayerHeight:!0,creatorChannelId:I})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.QMg=function(I){I=I===void 0?"":I;_.CI("creator-chatbots-panel");_.BL("ytd-watch-metadata #top-level-buttons-computed",function(){_.hNa("creator-chatbots-panel",function(){return _.t(z0g,{creatorChannelId:I})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.T6Q=function(I,y,D){I=I===void 0?"":I;y=y===void 0?!1:y;D=D===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":D;var F,R;return _.S(function(O){if(D==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(F=document.getElementById("creator-chatbots-panel"))F.style.display="block";return O.jumpTo(0)}R=document.getElementById("creator-chatbots-panel-persistent");return!y||R?(!y&&R&&R.style.display==="none"&&(R.style.display="block"),O.jumpTo(0)):O.yield(new Promise(function(w){_.BL("ytd-app",
function(v){_.WL({element:v,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.t(MEx,{isPersistentPanel:!0,creatorChannelId:I})});
w()})}),0)})};
_.F5&&_.F5.JSC$11332_setLoaded();
}catch(e){_._DumpException(e)}
try{
_.F5&&_.F5.beforeLoadModuleCode("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 xMg,$O,lMg,uSa,qNC,Eny,GUQ,Xua,QfQ,YNC,fMQ,nnQ,pua,bY,mMe,Mbg,zNo,HL,kUe,dMa,aMg,cqR,WAo,CKg,BIa,iTR,AqQ,$Mo,bTb,HTC,TIY,sfy,ZTg,gnC,ypo,DQZ,FDo,OZa,LDC,Jpg,wr1,em,S1Z,TY,tuQ,so,PgR,rpa,j58,oCy,NNb,xQb,l6T,q1g,Gt8,uTe,VbY,XrT,Q5G,Y1g,IX,yu,f6Y,nCb,mQ1,MuT,ktg,dQC,a6b,cpa,WDT,Cga,BNo,iZR,DA,Apa,bZb,HZY,eAC,TNT,s5g,ZZG,gCe,I_b,yRQ,RLa,ODR,wxC,viG,tCY,P5R,UUo,FQ,rRe,oiR,NUg,hLC,l_C,q_y,EiC,GGR,Xxa,QVY,Y_G,f_R,nia,px8,mUb,MCo,zLC,kGY,dUG,a_a,cRo,WQQ,iD1,ARZ,$UZ,bDT,HDY,eLY,TUg,sVC,ZDZ,gia,IL8,y9a,
DrC,F9g,R3o,OEG,L9R,LK,J9o,wgZ,vIo,S$Y,tkQ,Pjg,JE,K9G,Urb,r91,j1e,oIR,Ney,h3a,xra,lLY,us1,q$y,EIb,GCy,w9,XgY,Q1b,Y$T,fLZ,nIg,pgT,mra,MkZ,z3a,kCR,drZ,aL1,c9Z,W9C,Cjy,Be1,iET,A91,bEQ,Teo,s1G,Vkb,ZEQ,gIy,I5y,y_G,Dlg,FdC,RV1,OCZ,LdR,J_y,Sd,tE,vKo,Sca,tIa,PoY,Kdy,UlT,r_a,jQo,oK8,l5g,nK8,zV8,kze,Coe,iCG,Wde,a5G,sQZ,gKa,O0e,dlC,ySY,VIa,BHY,JSG,Sgy,KXC,t71,PXb,UPC,NYy,jqC,hja,xPy,ocg,rSY,l7G,r9,jd,QqZ,oX,Yga,nca,pFe,mPy,N9,M7a,zjQ,kFb,BY8,i0o,hE,xN,$PG,b0R,ls,ejb,TYe,us,V71,q9,EB,Gb,IN1,gca,ytY,DXy,XQ,Fh8,
R6R,Qu,PIT,YN,Khy,UXC,rtg,fK,lNR,oea,xXT,uBe,N4Y,Eee,h6R,Q01,G41,XpY,YMR,ne1,fNy,z6b,ctC,M9,zb,dXZ,CIC,aNC,WhC,d9,cs,Ws,CK,vEY,geY,PVb,KZb,U4R,rC1,oEe,e68,T4y,AE,Vva,Bs,is,ZgZ,j6R,SvC,s0G,bs,fdo,p4e,m4C,nEb,Gvg,z08,adQ,qvT,ldo,ufZ,CVC,EEC,Tb,d4Y,X4C,kvZ,Yva,x4a,Q61,iQy,ZQa,gEb,Ioo,yfa,DKa,Fja,O4T,yN,Jfo,wUZ,SEb,tpo,POa,Kj8,UKR,rfR,ju1,oYZ,NVQ,Du,hg1,xKQ,loa,uHZ,qER,nYT,Fa,foe,GJ8,YEa,Qua,XU1,EYQ,pUa,mKZ,MpT,zgy,R9,kJ8,dKo,COa,Lw,cfT,wF,Oj,Jc,WjC,aog,BVg,i4g,Af1,$Ky,b4a,H4a,TVY,suT,VpT,Z4R,gYC,IXQ,
yZY,DYG,FC8,Ot8,LCb,JZG,vzR,taT,KCQ,UYY,rZY,jPT,NPy,h21,xYo,lXG,upy,qP8,Eze,XSY,fXy,pS1,Mab,nzo,QP1,YPZ,aXT,dYZ,z2Z,cZ1,kjZ,WCQ,$Ya,AZC,BP1,itR,vM,bt1,e2R,TPg,sPy,yUo,D5g,FKT,RbR,OVR,LKg,JUZ,w_Z,vwZ,SAQ,t58,P9g,KKa,U5C,rUR,jkY,owa,NvQ,hba,x5G,lyy,uPG,Ewo,GEy,X_1,Qko,YAQ,fyg,nwG,p_G,m5a,M58,d5b,cUo,C9R,Bva,iVy,AUy,zbG,kEe,HVR,ebG,TvR,skb,V5Y,ZVe,gwg,I3G,Dve,ysR,Rpg,Oxo,Jsa,ww1,SRa,tza,Kw,rsb,jzC,NTa,hp1,l3y,xvg,E1a,u9g,qRG,GrQ,Xwg,QzQ,YRb,f3b,n1C,pwT,mva,Mze,zpe,krC,dv8,csG,a3b,WPT,ixG,Asg,$vQ,Uj,
bx1,HxG,epC,TTG,sz1,Vz1,Zxa,g1Q,I$b,yTy,D0G,RMo,Oze,LrQ,JTR,SIC,PyT,Kro,rTa,U0C,jLa,omZ,NuT,hM8,l$g,uqa,qIb,EmR,Gpo,XnT,QLe,YIQ,f$G,nmY,pnR,kp8,d0o,M0Q,zMy,m0Z,a$8,CyC,cTy,WrY,ATC,Bua,iz1,$0o,bza,Hze,eMG,sLo,V0g,Zz8,Ih1,y4y,FVg,O2a,J4G,vXa,tqa,KVa,r4y,oXY,xVe,udC,qma,EXY,Xqy,GQo,YmT,fhC,nXT,pqa,jL,mV1,MqZ,zvy,H2G,TJo,shC,IwR,hc,yPa,DO8,FWC,OAa,Rre,LWy,JPZ,w2y,vRb,S5y,NHT,teC,Pbg,KWg,wqR,UOe,rPY,jVQ,jRC,oRa,NCa,hry,xOe,lwC,n_a,pRa,mja,MVY,zPg;
xMg=function(){switch(_.SEq()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
$O=function(I){if(!I)return"browse";var y=I.page,D=I.url,F,R,O,w=(F=I.response)==null?void 0:(R=F.responseContext)==null?void 0:(O=R.webResponseContextExtensionData)==null?void 0:O.pageTheme;if(w)y=w.toLowerCase().replace(/_/g,"-");else if(y!=="watch"&&y!=="learning_journey_watch"){var v,P;if((y==="browse"||y==="settings")&&((v=I.response)==null?0:(P=v.sidebar)==null?0:P.settingsSidebarRenderer))y="WEB_PAGE_TYPE_SETTINGS";else{var K,r;y==="browse"&&((K=I.response)==null?0:(r=K.metadata)==null?0:r.channelMetadataRenderer)?
y="channel":D&&(y=_.OpS(D)||y)}}return y};
lMg=function(I){I=I.command;var y=_.u(I,_.WF);return{command:I,reelPlayerOverlayRenderer:_.u(y==null?void 0:y.overlay,_.DTP),thumbnail:y==null?void 0:y.thumbnail,videoId:y.videoId}};
uSa=function(I){I=I.command;var y=_.u(I,_.Jz);return{command:I,reelNonVideoContentRenderer:_.u(y==null?void 0:y.renderer,_.v0)}};
qNC=function(I){return I.entries?I.entries.map(function(y){return _.u(y==null?void 0:y.command,_.WF)?lMg(y):uSa(y)}):[]};
Eny=function(I){return I.prevEntries?I.prevEntries.map(function(y){return _.u(y==null?void 0:y.command,_.WF)?lMg(y):uSa(y)}):[]};
GUQ=function(){return new Promise(function(I){var y=window;y.attmp!==void 0?I(y.attmp):(y.attmq===void 0&&(y.attmq=[]),y.attmq.push(function(D){I(D)}))})};
Xua=function(){var I=_.jF("yt.aba.att");return I?I:_.CX.instance!==void 0?_.CX.instance.dpt.bind(_.CX.instance):null};
QfQ=function(I,y){var D,F;return _.S(function(R){return R.nextAddress==1?_.l("attmusi")&&_.l("attmusi_ue")?R.yield(GUQ(),3):R.jumpTo(2):R.nextAddress!=2?(D=R.yieldResult,R.return(D.s(I,y,6E4))):(F=Xua())?R.return(F(I,y,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
YNC=function(I,y,D,F,R){y=y===void 0?[]:y;R=R?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:R}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.lo(I),dialogMessages:y.map(function(O){return _.lo(O)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lo(D),serviceEndpoint:R}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lo(F)}}}}}};
fMQ=function(I,y,D,F){D||(I?F&&(F.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||F.WINDOW_SIZE_CHANGED&&(y.width!==window.innerWidth||y.height!==window.innerHeight)||F.SAFARI_ABORTED_BY_NEW_TRANSITION&&I instanceof DOMException&&I.name==="AbortError"&&I.message.includes("Old view transition aborted by new view transition"))||_.vu(I):_.vu(Error("zj")))};
nnQ=function(I,y){y=y===void 0?{}:y;var D,F,R,O,w,v,P,K,r,N,h,x,q;return _.S(function(X){switch(X.nextAddress){case 1:D=y;F=D.shouldWrap===void 0?!0:D.shouldWrap;R=D.skipTransitionTimeoutMs===void 0?300:D.skipTransitionTimeoutMs;O=D.beforeTransition;w=D.afterTransition;if(!F||!document.startViewTransition||document.visibilityState==="hidden")return X.return(I());v={width:window.innerWidth,height:window.innerHeight};P=!1;(K=O)==null||K();_.nj(X,2);r=document.startViewTransition(I);N=setTimeout(function(){r.skipTransition();
P=!0},R);
return X.yield(r.ready,4);case 4:return clearTimeout(N),X.yield(r.finished,5);case 5:clearTimeout(N);(h=w)==null||h();_.lZ(X,0);break;case 2:x=_.dj(X),(q=w)==null||q(),fMQ(x,v,P,y.ignoredErrors),_.Cj(X)}})};
pua=function(I,y,D){D=D===void 0?!1:D;var F=_.bW(),R=!!_.xD().queueProxy,O,w,v;I=I==null?void 0:(O=I.response)==null?void 0:(w=O.currentVideoEndpoint)==null?void 0:(v=w.watchEndpoint)==null?void 0:v.playlistId;if((R||I)&&!_.l("web_watch_disable_playlist_auto_miniplayer"))return D&&(F.playlistWatchPageActivation=!0),!0;switch($O(y)){case "yts-products":return D&&(F.productDetailsPageActivation=!0),!0;case "mini_app":return D&&(F.miniAppPageActivation=!0),!0;case "playables":return D&&(F.playablesDestPageActivation=
!0),!0;case "companion-canvas":return D&&(F.companionCanvasActivation=!0),!0;default:return!1}};
bY=function(I){var y=I.clientMessageId;var D=I.playerOffsetMs;var F=I.pageContext;I=I.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:y},!!D&&{playerOffsetMs:D},!!F&&{pageContext:F},!!I&&{userInputText:I})}};
mMe=function(I){I=_.JLq(I);I.length>0&&I[0].focus()};
Mbg=function(I,y,D){for(var F=typeof I==="string"?I.split(""):I,R=I.length-1;R>=0;--R)R in F&&y.call(D,F[R],R,I)};
zNo=function(I,y,D){for(var F=I.length,R=typeof I==="string"?I.split(""):I,O=0;O<F;O++)if(O in R&&y.call(D,R[O],O,I))return O;return-1};
HL=function(I,y,D){y=zNo(I,y,D);return y<0?null:typeof I==="string"?I.charAt(y):I[y]};
kUe=function(I,y){y=zNo(I,y);y>=0&&_.nA_(I,y)};
dMa=function(I){return Array.prototype.concat.apply([],arguments)};
aMg=function(I){var y=0;y=y===void 0?0:y;if(!_.La(I))throw _.DR("uint64");var D=typeof I;switch(y){case 512:switch(D){case "string":return _.Cuq(I);case "bigint":return String((0,_.Eb)(64,I));default:return _.cMC(I)}case 1024:switch(D){case "string":return _.BcC(I);case "bigint":return _.ae((0,_.Eb)(64,I));default:return _.WMH(I)}case 0:switch(D){case "string":return _.Cuq(I);case "bigint":return _.ae((0,_.Eb)(64,I));default:return _.aRJ(I)}default:return _.ya(y,"Unknown format requested type for int64")}};
cqR=function(I,y,D){if(y)return _.Go(I);var F;return(F=_.fa(I))!=null?F:D?"":void 0};
WAo=function(I){I!=null&&(I=I.JSC$9096_value_||"",I=typeof I==="string"?I:new Uint8Array(I));return I};
CKg=function(I,y){var D=_.EQ4(y);D!=="javascript:"&&D!=="data:"&&I.setAttribute("href",y)};
BIa=function(I,y){if(/-[a-z]/.test(y))return null;if(_.dJf&&I.dataset){if(_.h4B()&&!(y in I.dataset))return null;I=I.dataset[y];return I===void 0?null:I}return I.getAttribute("data-"+_.mQ(y))};
iTR=function(I,y,D){y=y===void 0?5:y;if(y!==0){var F=typeof I==="function"?I():document.querySelector(I);F?(D==null?0:D.enableSmartFocus)?_.jCt(F):F.focus():setTimeout(function(){iTR(I,y-1,D)},500)}};
AqQ=function(){var I=_.Ul&&_.Uq(_.Apg,10)>=0,y;if(y=_.Gaf)y=_.Uq(_.iZu,10)>=0;var D=_.mr&&_.Uq(_.Apg,85)>=0;return _.Wr||I||y||D};
$Mo=function(I){var y=_.UJz(I);return y&&AqQ()?-I.scrollLeft:y&&_.Ke(I,"overflowX")!="visible"?I.scrollWidth-I.clientWidth-I.scrollLeft:I.scrollLeft};
bTb=function(I,y){y=Math.max(y,0);_.UJz(I)?AqQ()?I.scrollLeft=-y:I.scrollLeft=I.scrollWidth-y-I.clientWidth:I.scrollLeft=y};
HTC=function(I){return String.raw.apply(String,[{raw:I}].concat(_.Td(_.go.apply(1,arguments).map(function(y){return y instanceof Array?y.join(""):y}))))};
TIY=function(I){var y=_.go.apply(1,arguments),D=y.length;if(!Array.isArray(I)||!Array.isArray(I.raw)||I.length!==I.raw.length||!_.rWM&&I===I.raw||!(_.rWM&&!_.jBM||_.CS(I))||D+1!==I.length)throw new TypeError("$");return new eNa(Object.freeze({strings:Object.freeze(I),args:Object.freeze(y)}))};
sfy=function(){var I=window.location.hash;I.charAt(0)==="#"&&(I=I.charAt(1)==="!"?I.substring(2):I.substring(1));return _.xf(I)};
ZTg=function(){var I=VbY;_.jF("yt.ads.biscotti.getId_")||_.fv("yt.ads.biscotti.getId_",I)};
gnC=function(I){_.fv("yt.ads.biscotti.lastId_",I)};
ypo=function(){var I={};for(_.Lv=new I6C(I.handleError===void 0?_.Sb:I.handleError,I.logEvent===void 0?_.Jq:I.logEvent);_.J0.length>0;)switch(I=_.J0.shift(),I.type){case "ERROR":_.Lv.logError(I.payload);break;case "EVENT":_.Lv.logEvent(I.eventType,I.payload)}};
DQZ=function(I,y,D){return _.PXq(function(F){return D?F.userIdentifier!==void 0&&!I.includes(F.userIdentifier)&&D.includes(F.publicName):F.userIdentifier!==void 0&&!I.includes(F.userIdentifier)},y)};
FDo=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return y=_.VV("YtIdbMeta hasAnyMeta other"),F.yield(_.PXq(function(R){return R.userIdentifier!==void 0&&R.userIdentifier!==y},I),2);
D=F.yieldResult;return F.return(D.length>0)})};
OZa=function(I,y){RA1||(RA1=_.w2.addLowPriorityJob(function(){var D,F,R,O,w;return _.S(function(v){switch(v.nextAddress){case 1:return v.yield(_.nv(),2);case 2:D=v.yieldResult;if(!D)return v.return();F=!0;_.nj(v,3);return v.yield(DQZ(I,D,y),5);case 5:R=v.yieldResult;if(!R.length){F=!1;v.jumpTo(6);break}O=R[0];return v.yield(_.uZ(O.actualName),7);case 7:return v.yield(_.Gm(O.actualName,D),6);case 6:_.lZ(v,4);break;case 3:w=_.dj(v),_.w1(w),F=!1;case 4:_.w2.cancelJob(RA1),RA1=0,F&&OZa(I,y),_.Cj(v)}})}))};
LDC=function(){var I;return _.S(function(y){return y.nextAddress==1?y.yield(_.nv(),2):(I=y.yieldResult)?y.return(FDo(I)):y.return(!1)})};
Jpg=function(I){var y=100;y=y===void 0?500:y;var D,F,R,O,w,v;return _.S(function(P){return P.nextAddress==1?(D=_.Pi("INNERTUBE_CONTEXT_CLIENT_NAME",0),F=[D,(0,_.m_)()-2592E6],R=[D,(0,_.m_)()],O=IDBKeyRange.bound(F,R),P.yield(_.cCJ(I),2)):P.nextAddress!=3?(w=P.yieldResult,v=[],P.yield(_.El(w,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(K){v.length=0;return _.Mo(K.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:O,direction:"prev"},function(r){if(r.getValue()&&v.length<
y)return v.push(r.getValue()),r.delete().then(function(){return r.continue()})})}),3)):P.return(v)})};
wr1=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nv(),2);I=y.yieldResult;if(!I||!_.ZF()&&!_.l("nwl_init_require_datasync_id_killswitch")||!_.RgW())return y.jumpTo(0);_.LjW=!0;_.O4o.isNwlInitialized=_.LjW;return y.yield(_.WdM().awaitInitialization(),0)})};
em=function(I,y){_.qE_[I]=!0;var D=_.z8();D&&D.publish.apply(D,arguments);_.qE_[I]=!1};
S1Z=function(){if(_.IdA()&&!vC1){var I=function(D){D=D.data;if(D.op==="serializedGelBatch"){var F=_.qPS.get(D.key);F&&(_.GjC(D.serializedBatch,F.client,F.resolve,F.networklessOptions,F.isIsolated,F.useVSSEndpoint,F.dangerousLogToVisitorSession,F.requestsOutstanding),_.qPS.delete(D.key))}},y=_.get();
y&&(y.addEventListener("message",I),y.onerror=function(){_.qPS.clear()});
vC1=!0}};
TY=function(){this.relativeTimeStart_=_.q0()};
tuQ=function(I,y){I!=null&&this.append.apply(this,arguments)};
so=function(){for(var I=Array(36),y=0,D,F=0;F<36;F++)F==8||F==13||F==18||F==23?I[F]="-":F==14?I[F]="4":(y<=2&&(y=33554432+Math.random()*16777216|0),D=y&15,y>>=4,I[F]=_.ZAt[F==19?D&3|8:D]);return I.join("")};
PgR=function(){return _.DL("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
rpa=function(){var I=_.e$.clone(KDQ),y;return(new _.AO(function(D,F){I.onSuccess=function(R){_.Sc5(R)?D(new UQ8(R)):F(new V7("Request failed, status="+_.ci(R),"net.badstatus",R))};
I.onError=function(R){F(new V7("Unknown request error","net.unknown",R))};
I.onTimeout=function(R){F(new V7("Request timed out","net.timeout",R))};
y=_.AG("//googleads.g.doubleclick.net/pagead/id",I)})).thenCatch(function(D){if(D instanceof _.F9){var F;
(F=y)==null||F.abort()}return _.eE(D)})};
j58=function(I,y,D){D=D===void 0?!1:D;var F,R,O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:_.TP("SOCS",I,34128E3,"youtube.com",!0);if(_.pz)return R=fetch(y,{method:"POST",mode:_.we(y),credentials:_.J9(y),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),O=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.we("/upgrade_visitor_cookie?eom=1"),credentials:_.J9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),P.yield(Promise.all([R,O]).then(function(K){return K[1]}),5);
fetch(y,{method:"POST",mode:_.we(y),credentials:_.J9(y),cache:"no-store",headers:{"Content-Type":"text/plain"}});return P.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.we("/upgrade_visitor_cookie?eom=1"),credentials:_.J9("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:F=P.yieldResult;P.jumpTo(3);break;case 5:F=w=P.yieldResult;case 3:if(!F.ok)throw Error("vf");return P.yield(F.text(),7);case 7:v=P.yieldResult,
!v.includes('"state_switch":true')&&!D||v.includes("skip_reload_for_test")||window.location.reload(),_.Cj(P)}})};
oCy=function(I){return _.S(function(y){return y.nextAddress==1?y.yield(j58(I.socsCookie,I.savePreferenceUrl,!0),2):y.return()})};
NNb=function(I){return _.S(function(y){return y.nextAddress==1?y.yield(j58(I.socsCookie,I.savePreferenceUrl),2):y.return()})};
xQb=function(I){a:{var y="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(y="EMBEDDED_PLAYER_MODE_PFL");var D=I.raw_embedded_player_response;if(!D&&(I=I.embedded_player_response))try{D=JSON.parse(I)}catch(R){break a}if(D)b:{I=hA8;for(var F in I)if(I[F]==D.embeddedPlayerMode){y=I[F];break b}}}return y==="EMBEDDED_PLAYER_MODE_PFL"};
l6T=function(){if(_.l("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.g6W())return Error("xf");var I=_.Pi("PLAYER_VARS",{});if(_.e$.get(I,"privembed",!1)=="1")return Error("yf");if(xQb(I))return Error("zf")};
q1g=function(I){I=I.xhr.responseText;if(!_.Oq(I,")]}'"))throw new Z9;I=JSON.parse(I.substr(4));if((I.type||1)>1)throw new Z9;I=I.id;gnC(I);gg=_.xj(I);uTe(18E5,2);return I};
Gt8=function(I,y){y=new ECR(y);gnC("");gg=_.WFM(y);I>0&&uTe(12E4,I-1);throw y;};
uTe=function(I,y){_.Wi(function(){rpa().then(q1g,function(D){return Gt8(y,D)}).thenCatch(_.Hq)},I)};
VbY=function(){var I=l6T();if(I!==void 0)return _.eE(I);gg||(gg=rpa().then(q1g).thenCatch(function(y){return Gt8(2,y)}));
return gg};
XrT=function(){var I=document;return HL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(y){return"on"+y.toLowerCase()in I})};
Q5G=function(I){I.addEventListener("click",function(y){var D=y.target;D&&D.getAttribute("href")&&(D=D.getAttribute("href"),_.wj(window,D,"_blank"),y.preventDefault(),y.stopImmediatePropagation())})};
Y1g=function(){var I=_.Wg();I.info||(I.info={});return I.info};
IX=function(){return(_.l("csi_use_time_origin")||_.l("csi_use_time_origin_tvhtml5"))&&_.$I.timeOrigin?Math.floor(_.$I.timeOrigin):_.$I.timing.navigationStart};
yu=function(I){return Math.round(IX()+I)};
f6Y=function(){var I;if(_.l("csi_use_performance_navigation_timing")){var y,D,F,R=_.$I==null?void 0:(I=_.$I.getEntriesByType)==null?void 0:(y=I.call(_.$I,"navigation"))==null?void 0:(D=y[0])==null?void 0:(F=D.toJSON)==null?void 0:F.call(D);R?(R.requestStart=yu(R.requestStart),R.responseEnd=yu(R.responseEnd),R.redirectStart=yu(R.redirectStart),R.redirectEnd=yu(R.redirectEnd),R.domainLookupEnd=yu(R.domainLookupEnd),R.connectStart=yu(R.connectStart),R.connectEnd=yu(R.connectEnd),R.responseStart=yu(R.responseStart),
R.secureConnectionStart=yu(R.secureConnectionStart),R.domainLookupStart=yu(R.domainLookupStart),R.isPerformanceNavigationTiming=!0,I=R):I=_.$I.timing}else I=_.l("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.$I.timing)):_.$I.timing;return I};
nCb=function(){if(_.$I.getEntriesByType){var I=_.$I.getEntriesByType("paint");if(I=HL(I,function(D){return D.name==="first-paint"}))return yu(I.startTime)}var y;
_.l("csi_use_performance_navigation_timing")?y=_.$I.getEntriesByType("first-paint")[0].startTime:y=_.$I.timing.msFirstPaint;return y?Math.max(0,y):0};
mQ1=function(){var I=window.location.protocol,y=_.$I.getEntriesByType("resource");y=_.Qt(y,function(D){return D.name.indexOf(I+"//fonts.gstatic.com/s/")===0});
(y=prg(y,function(D,F){return F.duration>D.duration?F:D}))&&y.startTime>0&&y.responseEnd>0&&(_.ij("wffs",yu(y.startTime)),_.ij("wffe",yu(y.responseEnd)))};
MuT=function(I,y){I=document.querySelector(I);if(!I)return!1;var D="",F=I.nodeName;F==="SCRIPT"?(D=I.src,D||(D=I.getAttribute("data-timing-href"))&&(D=window.location.protocol+D)):F==="LINK"&&(D=I.href);_.vd(document)&&I.setAttribute("nonce",_.vd(document));return D?(I=_.$I.getEntriesByName(D))&&I[0]&&(I=I[0],D=IX(),_.ij("rsf_"+y,D+Math.round(I.fetchStart)),_.ij("rse_"+y,D+Math.round(I.responseEnd)),I.transferSize!==void 0&&I.transferSize===0)?!0:!1:!1};
ktg=function(I,y){_.r6(function(){_.Bg("").info.actionType=I;y&&_.tG("TIMING_AFT_KEYS",y);_.tG("TIMING_ACTION",I);var D=_.ibW(_.Pi("TIMING_INFO",{}));Object.keys(D).length>0&&_.A9(D);D={isNavigation:!0,actionType:_.njC(_.Pi("TIMING_ACTION"))};var F=_.Pi("PREVIOUS_ACTION");F&&(D.previousAction=_.njC(F));if(F=_.Pi("CLIENT_PROTOCOL"))D.httpProtocol=F;if(F=_.Pi("CLIENT_TRANSPORT"))D.transportProtocol=F;(F=_.VO())&&F!=="UNDEFINED_CSN"&&(D.clientScreenNonce=F);F=xMg();if(F===1||F===-1)D.isVisible=!0;F=
_.u4e().loadType==="cold";var R=Y1g();F||(F=R.yt_lt==="cold");if(F){D.loadType="cold";F=Y1g();R=f6Y();var O=IX(),w=_.Pi("CSI_START_TIMESTAMP_MILLIS",0);w>0&&!_.l("embeds_web_enable_csi_start_override_killswitch")&&(O=w);O&&(_.ij("srt",R.responseStart),F.prerender!==1&&_.kVt(O));F=nCb();F>0&&_.ij("fpt",F);F=f6Y();F.isPerformanceNavigationTiming&&_.A9({performanceNavigationTiming:!0},void 0);_.ij("nreqs",F.requestStart,void 0);_.ij("nress",F.responseStart,void 0);_.ij("nrese",F.responseEnd,void 0);
F.redirectEnd-F.redirectStart>0&&(_.ij("nrs",F.redirectStart,void 0),_.ij("nre",F.redirectEnd,void 0));F.domainLookupEnd-F.domainLookupStart>0&&(_.ij("ndnss",F.domainLookupStart,void 0),_.ij("ndnse",F.domainLookupEnd,void 0));F.connectEnd-F.connectStart>0&&(_.ij("ntcps",F.connectStart,void 0),_.ij("ntcpe",F.connectEnd,void 0));F.secureConnectionStart>=IX()&&F.connectEnd-F.secureConnectionStart>0&&(_.ij("nstcps",F.secureConnectionStart,void 0),_.ij("ntcpe",F.connectEnd,void 0));_.$I&&"getEntriesByType"in
_.$I&&mQ1();F=[];if(document.querySelector&&_.$I&&_.$I.getEntriesByName)for(var v in zAy)zAy.hasOwnProperty(v)&&(R=zAy[v],MuT(v,R)&&F.push(R));if(F.length>0)for(D.resourceInfo=[],v=_.J(F),F=v.next();!F.done;F=v.next())D.resourceInfo.push({resourceCache:F.value})}_.A9(D);D=_.CE();D.preLoggedGelInfos||(D.preLoggedGelInfos=[]);v=D.preLoggedGelInfos;D=_.EjH();F=void 0;for(R=0;R<v.length;R++)if(O=v[R],O.loadType){F=O.loadType;break}if(_.u4e().loadType==="cold"&&(D.loadType==="cold"||F==="cold")){F=_.qZ5();
R=_.CE();R=R.gelTicks?R.gelTicks:R.gelTicks={};for(var P in F)P in R||typeof F[P]==="number"&&_.ij(P,_.bj(P));P={};F=!1;v=_.J(v);for(R=v.next();!R.done;R=v.next())F=R.value,_.y_(D,F),_.y_(P,F),F=!0;F&&_.A9(P)}_.$E5(!0);P=_.Pi("TIMING_ACTION");_.jF("ytglobal.timingready_")&&P&&_.IIe()&&_.AzJ()&&_.CWL()})()};
dQC=function(I){var y,D,F,R=(F=(D=((y=I.mainDownloadsListEntity)!=null?y:{})[_.E35])==null?void 0:D.refresh)!=null?F:"",O;I=(O=I.refresh)==null?void 0:O[R];R=I!=null?I:{};return(R==null?0:R.refreshTime)?Number(R==null?void 0:R.refreshTime):0};
a6b=function(I,y){var D=_.HW(I);return y.every(function(F){var R;F=F==null?void 0:(R=F.playbackDataEntity)==null?void 0:R.key;if(!F)return!1;R=_.fC(_.Xw(F).entityId,"mainVideoEntity");return!!D[R]})};
cpa=function(I){return I.ui.guideIsVisibleButNotPersistent};
WDT=function(I){return I.ui.scrollAtTop};
Cga=function(I){return I.ui.tabGesturesIsActive};
BNo=function(I){I=_.A_(I.entities);return _.c2W(I).length};
iZR=function(I,y){if(y){var D;I=(D=_.nC(I.entities,"downloadQualityPickerEntity",y))!=null?D:void 0}else I=void 0;return I};
DA=function(I,y,D){var F;return _.S(function(R){if(R.nextAddress==1)return R.yield(y(),2);F=R.yieldResult;D(F,I);_.Cj(R)})};
Apa=function(){return _.S(function(I){return I.nextAddress==1?I.yield((l6T()!==void 0?_.eE(Error("Af")):rpa()).then(function(){return 1},function(y){if(y.message==="Biscotti id is disabled")return 3;
_.tq("Failed fetching bid");return 0}),2):I.return(I.yieldResult)})};
bZb=function(){var I=_.lX("NWYzbjNzbHpvM3p5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjbw=="),y=_.lX("NTR5eGlqYzdwaWZyYW1lI3V1");return document.querySelector(y+$QR+I)?0:1};
HZY=function(I){var y=document.getElementsByTagName("ytd-enforcement-message-view-model");y.length===0||getComputedStyle(y[0]).display==="none"?I(0,"p.h_"):I(1,"p.h_")};
eAC=function(){return _.akq(_.qF)};
TNT=function(){return _.chL()===0?0:_.WFJ()};
s5g=function(){return _.$1o(_.OFo([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ZZG=function(){return _.fkq(Vuo)};
gCe=function(I){_.S(function(y){switch(y.nextAddress){case 1:return y.yield(DA("b.f_",Apa,I),2);case 2:return y.yield(DA("j.s_",_.Q2L,I),3);case 3:return y.yield(DA("r.s_",_.EZB,I),4);case 4:return y.yield(DA("e.h_",ZZG,I),5);case 5:if(!_.l("ab_det_sc_inj")){y.jumpTo(6);break}return y.yield(DA("s.i_",_.kRJ,I),6);case 6:if(_.l("ab_deg_unex_thr")){y.jumpTo(8);break}return y.yield(DA("a.o_",_.M9e,I),8);case 8:if(_.l("ks_get_o_pp")){y.jumpTo(10);break}return y.yield(DA("g.o_",_.m1W,I),10);case 10:if(_.l("ks_det_gpbl")){y.jumpTo(12);
break}return y.yield(DA("p.i_",_.p7A,I),12);case 12:return y.yield(DA("f.i_",_.KFq,I),14);case 14:return y.yield(DA("a.b_",_.uLA,I),15);case 15:return y.yield(DA("p.m_",_.j2H,I),16);case 16:if(!_.l("ab_det_el_h_v2")){y.jumpTo(17);break}return y.yield(DA("n.h_",s5g,I),17);case 17:return y.yield(DA("o.p_",eAC,I),19);case 19:return y.yield(DA("e.i_",bZb,I),20);case 20:if(_.l("ab_det_apm"))return y.yield(DA("o.a_",TNT,I),0);y.jumpTo(0)}})};
I_b=function(I){switch(I){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:_.ya(I,"unknown result type")}};
yRQ=function(I,y,D){y=_.gZq[y];D={detected:I===0,source:y.g6R,detectionResult:I_b(I),contentCpn:D};_.Jq("biscottiBasedDetection",D);_.D7z.increment(y.g6R,I);y.qQt!==void 0&&_.tG("CATSTAT",_.V9L(I,y))};
RLa=function(){DUe=0;var I=[_.cF(!0)];FQo&&_.qr(FQo,"yt-window-resized",I)};
ODR=function(){DUe||(DUe=_.w2.addLowPriorityJob(RLa,200))};
wxC=function(){LQy=0;JRQ=_.W2O(document);var I=[JRQ];FQo&&_.qr(FQo,"yt-window-scrolled",I)};
viG=function(){LQy||(LQy=_.w2.addLowPriorityJob(wxC,200))};
tCY=function(I){I=I===void 0?null:I;S_C.push(_.fu(window,"resize",ODR));S_C.push(_.fu(window,"scroll",viG));I&&(FQo=I)};
P5R=function(I){I=I.target.result;I.objectStoreNames.contains("swpushnotificationsstore")&&I.deleteObjectStore("swpushnotificationsstore");I.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
UUo=function(){return KQy?Promise.resolve(KQy):new Promise(function(I,y){var D=self.indexedDB.open("swpushnotificationsdb");D.onerror=y;D.onsuccess=function(){var F=D.result;if(F.objectStoreNames.contains("swpushnotificationsstore"))KQy=F,I(KQy);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),UUo()};
D.onupgradeneeded=P5R})};
FQ=function(I){var y=new _.g6("Error accessing DB");return UUo().then(function(D){return new Promise(function(F,R){try{var O=D.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(I);O.onsuccess=function(){var w=O.result;F(w?w.value:null)};
O.onerror=function(){y.params={key:I,source:"onerror"};R(y)}}catch(w){y.params={key:I,
thrownError:String(w)},R(y)}})},function(){return null})};
rRe=function(I,y){var D={};D.key=I;D.value=y;return UUo().then(function(F){return new Promise(function(R,O){try{var w=F.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(D);w.onsuccess=function(){R()};
w.onerror=function(){O()}}catch(v){O(v)}})})};
oiR=function(){var I=_.AS.getLocalStorage();I&&jVQ(I,I.mechanism.__iterator__(!0))};
NUg=function(I){_.S(function(y){if(y.nextAddress==1)return y.yield(I.delete("yt-appshell-assets"),2);_.Cj(y)})};
hLC=function(I){return _.qo((0,_.AHM)(),I)};
l_C=function(){var I;_.S(function(y){return y.nextAddress==1?y.yield(RX.getInstance(),2):(I=y.yieldResult)?y.yield(xUa(I),0):y.jumpTo(0)})};
q_y=function(){var I;_.S(function(y){return y.nextAddress==1?y.yield(OB.getInstance(),2):(I=y.yieldResult)?y.yield(u1G(I),0):y.jumpTo(0)})};
EiC=function(I){NUg(I);l_C();q_y()};
GGR=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.ExL(I),2);if(y=F.yieldResult){var R;a:{if(y.headers&&(R=y.headers.get("date"))&&(R=Date.parse(R),!isNaN(R))){R=Math.round((0,_.m_)()-R);break a}R=-1}D=R;if(D>-1)return F.return(D)}return F.return(-1)})};
Xxa=function(){var I=_.Ft.caches,y=_.KR("IS_SHELL_LOAD"),D,F;_.S(function(R){if(R.nextAddress==1)return D=-1,y?R.yield(GGR(I),3):(F=IX(),D=Math.round((0,_.m_)()-F),R.jumpTo(2));R.nextAddress!=2&&(D=R.yieldResult);D>=0&&D<2147483648&&_.ek({appInstallDataAgeMs:D});_.Cj(R)})};
QVY=function(I){var y=_.ob(_.Ft.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(F){var R=y.JSC$10308_queryData_.getValues(F);if(R==null?0:R.length)D[F]=R});
return _.G_(I,new Map(Object.entries(D)))};
Y_G=function(I){return _.BOq(_.CQo(I&16777215))<.5};
f_R=function(I){I=I.match(/(.*)::.*::.*/);if(I!==null)return I[1]};
nia=function(I){if(_.ipq()){var y=Object.keys(window.localStorage);y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=f_R(D);F===void 0||I.includes(F)||self.localStorage.removeItem(D)}}};
px8=function(){if(!_.ipq())return!1;var I=_.VV(),y=Object.keys(window.localStorage);y=_.J(y);for(var D=y.next();!D.done;D=y.next())if(D=f_R(D.value),D!==void 0&&D!==I)return!0;return!1};
mUb=function(I){return rRe("NotificationsDisabled",I)};
MCo=function(){var I=_.d6("service_worker_scope");try{return navigator.serviceWorker.getRegistration(I)}catch(y){return Promise.reject(y)}};
zLC=function(){return Notification.permission!="granted"?Promise.resolve():MCo().then(function(I){return I?I.pushManager.getSubscription().then(function(y){if(y)return Promise.resolve();y={userVisibleOnly:!0,applicationServerKey:_.ZC("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return I.pushManager.subscribe(y).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
kGY=function(I){return MCo().then(function(y){if(!y||!y.active)return Promise.reject(new _.g6("serviceworker.postMessage",I,y));try{return y.active.postMessage(I),Promise.resolve()}catch(D){return Promise.reject(D)}})};
dUG=function(){kGY({type:"notifications_register",data:_.Pi("ID_TOKEN")})};
a_a=function(I){return!(!I||!I.pushManager)};
cRo=function(){return MCo().then(a_a).catch(function(){return!1})};
WQQ=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?cRo():Promise.resolve(!1)};
iD1=function(){var I={isWide:_.eF.get("wide","0")==="1"},y=_.a1();if(y=y.getFlag(165)||y.getFlag(174))I.theme=_.Jt(!0);if(_.JiH()){var D=_.Lg()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I.systemTheme=D}!y&&_.l("parent_tools_enable_app_settings")&&_.lP(window.location.href).theme!==void 0&&(I.theme=_.Jt());if((y=C5G)?!_.e$.equals(y,I):I)y={currentValue:I},BUG&&(y.timeSinceLastSnapshotSecs=Math.round(((0,_.m_)()-BUG)/1E3)),C5G&&(y.previousValue=C5G),_.Jq("appSettingsCaptured",y),C5G=
I,BUG=(0,_.m_)()};
ARZ=function(){if(!_.KR("LOGGED_IN"))return Promise.resolve(!1);var I=_.d6("service_worker_push_force_notification_prompt_tag");return I?FQ("PromptTags").then(function(y){if(!y)return!0;var D=[];try{D=JSON.parse(y)}catch(F){return!1}return D&&D.indexOf(I)==-1}):Promise.resolve(!1)};
$UZ=function(){var I=_.kf("service_worker_push_prompt_delay_microseconds");return I?FQ("PromptTime").then(function(y){return Promise.resolve(Date.now()-I>(y||0))}):Promise.resolve(!0)};
bDT=function(){var I=_.kf("service_worker_push_logged_out_prompt_watches");return I==-1?Promise.resolve(!1):FQ("WatchCount").then(function(y){return y>=I})};
HDY=function(){var I=_.xz(document,"yt-push-prompt-modal-bg");I&&_.dM(I)};
eLY=function(){return _.kf("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):FQ("PromptCount").then(function(I){I||(I=0);return Promise.resolve(I<_.kf("service_worker_push_prompt_cap"))})};
TUg=function(I){return _.KR("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.KR("LOGGED_IN")&&(I===void 0?0:I)?ARZ().then(function(y){if(y)return!0;y=[eLY(),$UZ()];_.KR("LOGGED_IN")||y.push(bDT());return Promise.all(y).then(function(D){return D.every(function(F){return F})})}):Promise.resolve(!1)};
sVC=function(){FQ("PromptCount").then(function(I){return rRe("PromptCount",I+1)}).then(function(){return rRe("PromptTime",Date.now())}).then(function(){var I=_.d6("service_worker_push_force_notification_prompt_tag");
if(I)return FQ("PromptTags").then(function(y){var D=[];if(y)try{D=JSON.parse(y)}catch(F){return!1}D||(D=[]);D.push(I);return rRe("PromptTags",JSON.stringify(D))})})};
ZDZ=function(){VCy||HDY()};
gia=function(I){I.style.zIndex=2147483648;I.style.pointerEvents="auto";I.style.backgroundColor="rgba(0, 0, 0, 0.6)";I.style.width="100%";I.style.height="100vh";I.style.position="absolute";I.style.top="0";I.style.left="0";I.style.border="none"};
IL8=function(){var I=_.xz(document,"yt-push-prompt-modal-bg");VCy=_.l("service_worker_push_prompt_modal_ignore_click");I?gia(I):(I=_.y1("div",{id:"yt-push-prompt-modal-bg"}),gia(I),document.body.appendChild(I),_.NVC(document,"click",ZDZ))};
y9a=function(){var I=arguments;_.l("service_worker_push_prompt_modal_enable")&&IL8();return Notification.requestPermission().then(function(y){HDY();var D=document.getElementById("ticker");D&&(D.className=D.classList.remove("show"));if(y=="granted")return zLC().then(function(){mUb(!1);dUG();return Promise.resolve(!0)});
y=="denied"&&dUG();return Promise.resolve(!1)}).catch(function(){HDY();
return Promise.reject.apply(Promise,_.Td(I))})};
DrC=function(I){I=I===void 0?!1:I;var y=_.P$o().client;if(y&&y.browserVersion){var D=y.browserVersion,F=y.browserName=="CHROME"&&_.Uq(D,"50.0.0")<0;y=y.browserName=="OPERA"&&_.Uq(D,"42.0.0")<0;if(F||y)return Promise.resolve()}return WQQ().then(function(R){if(!R)return Promise.resolve();R=zLC().then(function(){return kGY({type:"notifications_check_registration",data:_.Pi("ID_TOKEN")})});
return Notification.permission!="default"?R.catch(function(){}):R.then(function(){return TUg(I)}).then(function(O){if(O)return sVC(),y9a().then(function(){})}).catch(function(){})})};
F9g=function(I){return a_a(I)?DrC():Promise.resolve()};
R3o=function(I){var y=I.installing||I.waiting;return I.active||!y?Promise.resolve(I):new Promise(function(D){var F=function(R){R=R.target;if(R.state==="activated"||R.state==="redundant")y.removeEventListener("statechange",F),D(I)};
y.addEventListener("statechange",F)})};
OEG=function(){var I=new _.pcq("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.mP(I,{mainAppWeb:_.tt()});var y=_.SFR;_.l("service_worker_forward_exp_params")&&(y=QVY(y));try{var D=_.rie(y).catch(function(){_.Mv(I,"FAILURE");return new Promise(function(){})});
_.l("service_worker_push_enabled")&&D.then(function(F){_.Mv(I,"SUCCESS");return F}).then(R3o).then(F9g)}catch(F){if(_.Mv(I,"FAILURE"),F.name!=="SecurityError")throw F;
}};
L9R=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&OEG()};
LK=function(I,y,D,F,R){var O={};y&&(O[y]=D);F?O.errorType=F:R&&(O.errorReason=R);_.Jq(I,O);_.wI()};
J9o=function(I,y){var D={};y&&(D.serializedYpcFamilyCreateLoggingParams=y);_.Jq(I,D);_.wI()};
wgZ=function(I,y){var D={};D.serializedYpcRefundFlowLoggingParams=y;I&&(D.eventType=I);_.Jq("ypcRefundFlowEvent",D);_.wI()};
vIo=function(I){I&&_.ob_("transactionFlowSucceeded",I)};
S$Y=function(){LK("ypcRedeemFlowStarted")};
tkQ=function(I){LK("ypcRedeemFlowFailed",void 0,void 0,void 0,I)};
Pjg=function(I){I&&LK("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
JE=function(I){return function(y,D){var F=I||D.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(y,D,{get:function(){var R;return this.$?this.$[F]:(R=_.d4(this))==null?void 0:R.querySelector("#"+F)},
enumerable:!0,configurable:!0})}};
K9G=function(I){if(I=_.aS4(I)){var y;(y=I.sources)!=null&&y[0]?(y=_.WTt(I),y=y<1?"VERTICAL":y>1?"HORIZONTAL":"SQUARE"):y=void 0;return y}};
Urb=function(I){return(I=_.aS4(I))?_.WTt(I):0};
r91=function(I){var y,D,F,R,O,w,v;_.S(function(P){if(P.nextAddress==1)return P.yield(_.zFL(),2);if(P.nextAddress!=3){if(!P.yieldResult)return P.return(!1);y=[];return P.yield(_.EE.keys(),3)}D=P.yieldResult;F=_.J(D);for(R=F.next();!R.done;R=F.next())O=R.value,w=_.muo(O),v=w.datasyncId,!v||I.includes(v)||y.push(_.EE.delete(O));return P.return(Promise.all(y).then(function(K){return K.some(function(r){return r})}))})};
j1e=function(){var I,y,D,F,R,O,w;return _.S(function(v){if(v.nextAddress==1)return v.yield(_.zFL(),2);if(v.nextAddress!=3){if(!v.yieldResult)return v.return(!1);I=_.VV("cache contains other");return v.yield(_.EE.keys(),3)}y=v.yieldResult;D=_.J(y);for(F=D.next();!F.done;F=D.next())if(R=F.value,O=_.muo(R),(w=O.datasyncId)&&w!==I)return v.return(!0);return v.return(!1)})};
oIR=function(I,y){return _.nC(I.entities,"inlineExpansionEntity",y)};
Ney=function(I,y){return _.nC(I.entities,"timedMarkersListSyncEntity",y)};
h3a=function(I,y){return _.nC(I.entities,"liveReactionsDataEntity",y)};
xra=function(I,y){I=_.nC(I.entities,"booleanEntity",y);return!(!I||!I.value)};
lLY=function(I,y){var D=_.VO();D&&I&&_.Oc(D,_.AC(I),y)};
us1=function(I){return I.watch.isWatchActive};
q$y=function(I){return I.watch.isLearningJourneyActive};
EIb=function(I){return I.watch.watchWindowSize};
GCy=function(I){return!_.d6q(I)};
w9=function(I){return I.watch.watchScrollTop};
XgY=function(I){return I.watch.isLiveChatCollapsed};
Q1b=function(I,y){return _.nC(I.entities,"flowStateEntity",y)};
Y$T=function(){var I=_.nR().resolve(_.fR(_.Pwu));return I?I.getCurrentTime():0};
fLZ=function(I,y){I={videoId:I};y&&(I.playlistId=y);return I};
nIg=function(){var I,y,D,F,R,O,w,v,P,K,r,N,h,x;return _.S(function(q){switch(q.nextAddress){case 1:I={},y=_.cEq(),D=_.J(Object.entries(y)),F=D.next();case 4:if(F.done){q.jumpTo(3);break}R=F.value;O=_.J(R);w=O.next().value;v=O.next().value;P=w;K=v;if(!K){q.jumpTo(5);break}return q.yield(K(),8);case 8:I[P]=q.yieldResult;case 5:F=D.next();q.jumpTo(4);break;case 2:r=_.J(),N=r.next();case 9:if(N.done){q.jumpTo(3);break}h=N.value;x=y[h];if(!x){q.jumpTo(10);break}return q.yield(x(),13);case 13:I[h]=q.yieldResult;
case 10:N=r.next();q.jumpTo(9);break;case 3:return q.return(I)}})};
pgT=function(){var I;_.S(function(y){if(y.nextAddress==1)return y.yield(nIg(),2);I=y.yieldResult;return y.yield(navigator.clipboard.writeText(JSON.stringify(I,null,2)),0)})};
mra=function(I,y){if(I&&y){var D=_.kz();D().set(I,y);_.emJ(D())}};
MkZ=function(I,y){if(I&&y){var D=_.kz();D().set(I,y);_.emJ(D())}};
z3a=function(I,y){return _.nC(I.entities,"superThanksSelectedTierEntity",y)};
kCR=function(I,y){return _.nC(I.entities,"contextNoteUserRatingEntityPayload",y)};
drZ=function(){_.l("web_watch_log_theater_mode")&&_.JjA("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
aL1=function(I,y,D){if(!I.includes("START_TIME_PLACEHOLDER")||!I.includes("END_TIME_PLACEHOLDER"))return I;var F=new Date(0),R=new Date(0);F.setUTCMilliseconds(y);R.setUTCMilliseconds(D);return I.replace("START_TIME_PLACEHOLDER",_.tS(F,7)).replace("END_TIME_PLACEHOLDER",_.tS(R,7))};
c9Z=function(I,y,D){var F=D.minimumRowsOfVideosBetweenSections===void 0?1:D.minimumRowsOfVideosBetweenSections;return I<(D.minimumRowsOfVideosAtStart===void 0?2:D.minimumRowsOfVideosAtStart)||y!==null&&I-y<=F?!1:!0};
W9C=function(I,y){var D=0,F=0;I=_.J(I);for(var R=I.next();!R.done;R=I.next()){var O=R.value;if(O.richItemRenderer)O.richItemRenderer.rowIndex=F,O.richItemRenderer.colIndex=D++,D===y&&(D=0,F++);else if(O.richGroupRenderer&&O.richGroupRenderer.numColumns!==void 0)O.richGroupRenderer.rowIndex=F,O.richGroupRenderer.colIndex=D,D+=O.richGroupRenderer.numColumns,D===y&&(D=0,F++);else if(O.richSectionRenderer){var w=R=void 0;if(O=_.u((R=O)==null?void 0:(w=R.richSectionRenderer)==null?void 0:w.content,_.qDM))O.rowIndex=
F++}}};
Cjy=function(I,y){var D=y.contentElement;y=y.rendererToTagNameMap;if(D&&y&&y.size!==0){for(var F=new Map,R=_.J(D.children),O=R.next();!O.done;O=R.next()){O=O.value;var w=O.tagName.toLowerCase(),v=F.get(w);v||(v=[],F.set(w,v));v.push(O)}if(F.size!==0)for(R=Math.min(I.length,D.children.length),O=new Map,w=0;w<R;w++){v=Object.keys(I[w])[0];v=y.get(v);if(!v)break;var P=O.get(v);P===void 0&&(P=0,O.set(v,P));var K=F.get(v);if(!K||P>=K.length)break;O.set(v,P+1);v=K[P];P=D.children[w];P!==v&&(_.jp=!0,_.ou.set(v,
!0),D.insertBefore(v,P),_.ou.delete(v),_.jp=!1)}}};
Be1=function(I,y,D,F,R,O,w){F=F===void 0?{}:F;if(!I||!I.length)return{orderedContent:[]};I=I.slice();var v=[],P=[];R=null;for(var K=0,r=function(B){P.sort(function(e,T){return T.skippedOnRow-e.skippedOnRow});
for(var C,H=(C=P.shift())==null?void 0:C.content;H;)!H.richSectionRenderer&&B||v.push(H),C=void 0,H=(C=P.shift())==null?void 0:C.content},N=void 0,h=void 0,x=new Set;I.length>0||P.length>0;){for(var q=[],X=y;X>0;){var f=void 0,m=void 0,z=(m=P[0]&&P[0].skippedOnRow<K?(f=P.shift())==null?void 0:f.content:void 0)!=null?m:I.shift();
if(!z)break;if(z.richItemRenderer)f=z.richItemRenderer.targetId,m=void 0,f&&((m=w)==null?0:m.has(f))&&(m=w.get(f),!N||m&&m.timestamp>N.timestamp)&&(N=m,h&&x.add(h),h=f),q.push(z),X--;else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.numColumns<=X?(q.push(z),X-=z.richGroupRenderer.numColumns):X===y&&z.richGroupRenderer.numColumns>y?(q.push({richGroupRenderer:Object.assign({},z.richGroupRenderer,{numColumns:y})}),X=0):P.push({content:z,skippedOnRow:K});else if(z.richSectionRenderer)if(c9Z(K,
R,F)&&X===y){v.push(z);R=K;K++;continue}else P.push({content:z,skippedOnRow:K});else if(z.continuationItemRenderer){r(!0);v.push(z);X=0;break}if(X===0)v.push.apply(v,_.Td(q));else if(!D&&I.length===0){r(!1);v.push.apply(v,_.Td(q));X=0;break}}K++;N&&(v.push(N.content),K++);h=N=void 0}W9C(v,y);O&&Cjy(v,O);return{orderedContent:v,pinnedContentNotShownTargetIds:x}};
iET=function(I){return I.shorts.isSmallScreenSqueezeback};
A91=function(I){return I.shorts.isPlaybackStarted};
bEQ=function(){if(_.l("kevlar_home_skeleton")&&!$rZ){var I=document.querySelector("#home-page-skeleton");I&&(_.V_("hgcr"),_.dM(I),$rZ=!0)}};
Teo=function(){if(_.g6W()){var I=_.Pi("PLAYER_VARS",{});if(_.e$.get(I,"privembed",!1)!="1"&&!xQb(I)){var y=function(){HEa=!0;"google_ad_status"in window?_.tG("DCLKSTAT",1):_.tG("DCLKSTAT",2)};
try{_.R1(_.wdQ,y)}catch(D){}e3G.push(_.w2.addLowPriorityJob(function(){if(!(HEa||"google_ad_status"in window)){try{_.$H5(_.wdQ.toString(),y)}catch(D){}HEa=!0;_.tG("DCLKSTAT",3)}},5E3))}}};
s1G=function(I){return!!I.getOptions("captions")};
Vkb=function(I){return(I=I.getOption("captions","track"))?!!I.displayName:!1};
ZEQ=function(I){return HL(I,function(y){return y.languageCode==="en"})};
gIy=function(I){var y=vs;if(Vkb(I))I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{});else{var D=HL(_.FRS(I),function(F){return F.displayName===y});
I.setOption("captions","track",D)}};
I5y=function(I,y){return{popup:{searchSuggestionReportDialog:{searchQuery:I,title:_.zC("SBOX_INAPPROPRIATE_TITLE"),suggestions:y,categoryLabel:_.zC("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.zC("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.zC("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.zC("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.zC("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.zC("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.zC("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.zC("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.zC("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.zC("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
y_G=function(I){var y=_.a1();if(y.getFlag(202))y=y.getFlag(201);else{var D;y=(I==null?void 0:(D=I.config)==null?void 0:D.settingOnByDefault)!==void 0?I.config.settingOnByDefault:!_.uI("web_shorts_cinematics_disabled_by_default")}return y};
Dlg=function(I){var y=_.a1();_.cg(0,201,I);_.cg(0,202,!0);y.save()};
FdC=function(I){var y,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B;return _.S(function(C){switch(C.nextAddress){case 1:return C.yield(_.Ml(),2);case 2:return(y=C.yieldResult)?C.yield(_.bB_(y),3):C.return();case 3:D=C.yieldResult;if(!D)return C.return();R=((F=D.offlineVideos)==null?void 0:F.length)||0;w=((O=D.offlinePlaylists)==null?void 0:O.length)||0;if(R===0&&w===0)return C.return();v=0;if(D.offlineVideos)for(P=_.J(D.offlineVideos),K=P.next();!K.done;K=P.next())r=K.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
r.videoState&&(v+=1);I.offline_videos_count=R.toString();_.l("kevlar_log_offline_current_network_type_ks")||(I.offline_current_network_type=(N=_.BHt())!=null?N:"CONN_INVALID");_.l("kevlar_log_updated_time_for_smart_downloads")&&(h=_.oq().getState().entities,x=_.Vi(h),q=dQC(h),I.offline_smart_downloads_last_sync_time_ms=x.toString(),I.offline_smart_downloads_next_sync_time_ms=q.toString());I.offline_videos_playable=v.toString();I.offline_playlists_count=w.toString();D.offlineVideos&&(X=D.offlineVideos.reduce(function(H,
e){e.downloadedBytes&&(H+=Number(e.downloadedBytes));return H},0).toString())&&(I.offline_used_disk_space_bytes=X);
if(!((f=navigator)==null?0:(m=f.storage)==null?0:m.estimate)){C.jumpTo(4);break}return C.yield(navigator.storage.estimate(),5);case 5:z=C.yieldResult,I.offline_free_disk_space_bytes=(((B=z)==null?void 0:B.quota)||0).toString();case 4:I.offline_client_state=JSON.stringify(D),_.Cj(C)}})};
RV1=function(I){I=I.match(/(.*)::.*::.*/);if(I!==null)return I[1]};
OCZ=function(I){if(_.UBe()){var y=Object.keys(window.sessionStorage);y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=RV1(D);F===void 0||I.includes(F)||self.sessionStorage.removeItem(D)}}};
LdR=function(){if(!_.UBe())return!1;var I=_.VV(),y=Object.keys(window.sessionStorage);y=_.J(y);for(var D=y.next();!D.done;D=y.next())if(D=RV1(D.value),D!==void 0&&D!==I)return!0;return!1};
J_y=function(I){if(!I)return 0;var y=I.getPresentingPlayerType(),D=I.getVideoData();return D&&D.isLive?(I=I.getProgressState(y),I.seekableEnd-I.seekableStart):I.getDuration(y)};
Sd=function(I,y){_.H_(y,I,function(){return wWa[y]},function(D){wWa[y]=D;
if(!_.l("mweb_player_ve_show_ks")){var F=_.VO(0);F&&D&&_.J_(F,D)}})};
tE=function(I){(I=wWa[I])&&_.W0(_.W4(),I)};
vKo=function(I,y){for(var D=_.J(Object.keys(I)),F=D.next();!F.done;F=D.next())if(F=F.value,I[F]!==y[F])return!1;return!0};
Sca=function(){return document.getElementById("player-control-overlay")};
tIa=function(I){I!==-1&&!_.l("player_controls_log_creation_killswitch")&&Sca()&&(_.V_("pcu_cs",I),_.V_("pcu_ce"))};
PoY=function(I){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:I}}]}}}};
Kdy=function(I,y,D){var F=_.l("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;y=Object.assign({},{text:y,hasGradientBackground:D},F&&{itemTargetId:F});F=_.l("web_enable_chat_autoscroll_to_user_turn")&&F?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:F,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:y}],insertByPositionInSection:{sectionTargetId:I,
position:"INSERTION_POSITION_LAST"}}}]},F?{scrollConfig:F}:{})}}};
UlT=function(I){return{continuationCommand:{token:I,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
r_a=function(I,y){y.stack&&(I.stack+="\n"+y.stack);return I};
jQo=function(){this.isInputValid_=!0;this.JSC$19519_streamPos_=0;this.leftoverInput_=""};
oK8=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19522_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
l5g=function(I){var y=NHT(I,"Content-Type");if(!y)return null;y=y.toLowerCase();if(y.startsWith("application/json"))return y.startsWith("application/json+protobuf")?new hVT:new _.eu;if(y.startsWith("application/x-protobuf")){I=NHT(I,"Content-Transfer-Encoding");if(!I)return new oK8;if(I.toLowerCase()=="base64")return new xlZ}return null};
nK8=function(I,y,D,F){var R=new uwZ(function(v,P){return qcg.has(P)?v.sentinel==="gal"&&v.event!==void 0:!1},function(v){v.event?(v=EKT(v.event),v=!v||GzY(F,v)?!0:_.Wn(I.lastEvent,Ps,2,KK)?!_.Wn(v,UB,1,KK)&&!_.Wn(v,Ps,2,KK):!_.Wn(v,UB,1,KK)&&!_.Wn(v,Ps,3,KK)):v=!0;
return v});
D=_.G_(I.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",XWa(D)]]));if(I.nestedOrigins!==void 0)for(var O=_.J(I.nestedOrigins),w=O.next();!w.done;w=O.next())D=_.G_(D,new Map([["origin",w.value]]));return QQe(R,D,y).then(function(v){v=YcQ(v.event);if(_.Wn(v,UB,1,KK)){var P,K=(P=_.gu(v,UB,1,KK))==null?void 0:_.sI(P,2);K&&F.JSC$19574_logErrorEvent(f5R(K));P=_.gu(v,UB,1,KK);_.sI(P,2)===4?(v=_.gu(v,UB,1,KK),v={statusCode:11,statusMessage:_.Tp(v,
3)}):(v=_.gu(v,UB,1,KK),v={statusCode:12,statusMessage:_.Tp(v,3)});return v}_.Wn(v,Ps,3,KK)?(v=_.gu(v,Ps,3,KK),v={statusCode:1,consentLanguageKeys:_.Tp(v,2)}):v={statusCode:1};return v}).catch(function(v){return v.errorCode!==void 0?{statusCode:v.errorCode,
statusMessage:v.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
zV8=function(I){var y={};if(I===void 0||I===null)return y;I.getToken()!==void 0&&pWZ(I.getToken())&&pWZ(I.getToken()).length>0&&(y.scopes=new Set(pWZ(I.getToken())));I.getToken()!==void 0&&ml8(I.getToken())&&ml8(I.getToken()).length>0&&(y.capabilities=new Set(ml8(I.getToken())));_.Tp(I,3)!==void 0&&(y.consistencyKey=_.Tp(I,3));I.getName()!==void 0&&I.getName()!==""&&(y.linkName=I.getName());_.aL(I,MIR,4)&&(I=_.kk(I,MIR,4),I=Object.assign({},_.Tp(I,1)&&{userId:_.Tp(I,1)},_.Tp(I,2)&&{displayName:_.Tp(I,
2)},_.Tp(I,3)&&{email:_.Tp(I,3)},_.Tp(I,5)&&{username:_.Tp(I,5)},_.Tp(I,4)&&{profilePicture:_.Tp(I,4)}),y.profile=I);return y};
kze=function(I,y){var D=I.flowParams,F;return{serviceId:D.serviceId,sessionId:D.sessionId,currentFlow:I.currentFlow,googleScopesString:y,linkingSessionSerialized:I.session.serialize(),consentLanguageKeys:D.consentLanguageKeys,callerState:I.callerState,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(F=D.partnerConfigMinReadTimestamp)==null?void 0:F.serialize()}};
Coe=function(I){var y=I.googleScopes!==void 0?Array.from(I.googleScopes).join(","):"";dlC(kze(I,y),I.config.localStorage);y=a5G(I);return y===null?Promise.resolve(c_C):y.start().then(function(D){var F,R=(F=D.link)==null?void 0:F.consistencyKey;return D.statusCode===1&&I.googleScopes!==void 0&&I.googleScopes.size>0&&R!==void 0?(F=I.flowParams,Wde(F.serviceId,F.sessionId,I.googleScopes,R,F.galService,I.config,D)):D})};
iCG=function(I){var y=a5G(I);return y===null?Promise.resolve(BHY({statusCode:7,statusMessage:"Failed to create flow object"},I.callerState)):y.complete().then(function(D){var F,R=(F=D.link)==null?void 0:F.consistencyKey;return D.statusCode===1&&I.googleScopes!==void 0&&I.googleScopes.size>0&&R!==void 0?(F=I.flowParams,Wde(F.serviceId,F.sessionId,I.googleScopes,R,F.galService,I.config,D)):BHY(D,I.callerState)},function(D){return BHY({statusCode:12,
statusMessage:"Failed to complete the flow: "+D.message},I.callerState)})};
Wde=function(I,y,D,F,R,O,w){return A_G(R,{serviceId:I,sessionId:y,googleScopes:D,consistencyKey:F}).then(function(){return w},function(v){return R.deleteLink({serviceId:I,
sessionId:y,accountLinkingEntryPoint:O.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+v.message}},function(P){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+P.message}})})};
a5G=function(I){switch(I.currentFlow){case 1:var y=I.flowParams;I=_.kk(I.session,$la,1);return bC8.createOAuthFlow(y,I);case 2:case 3:return y=I.flowParams,I=_.kk(I.session,HCy,6),eVg.createStreamlinedFlow(y,I);default:return null}};
sQZ=function(I,y){I===2&&(I=3);var D=0;THQ.indexOf(I)!==-1&&(D=THQ.indexOf(I)+1);for(I=D;I<THQ.length;I++)if(y.has(THQ[I]))return THQ[I]};
gKa=function(I){var y=I.serviceId;var D=I.sessionId;var F=I.config;var R=I.galService;var O=I.capabilities;var w=I.scopes;var v=I.loginHint;var P=I.callerState;var K=I.consentLanguageKeys;var r=I.linkName;var N=I.dynamicUrlParameters;var h=I.partnerConfigMinReadTimestamp;I=F.dataUsageNoticeConfig?F.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return R.startLinkingSession({serviceId:y,sessionId:D,capabilities:O,scopes:w,loginHint:v,callerState:P,supportedFlows:VIa(F.supportedFlows),completionUrl:F.completionUrl,
accountLinkingEntryPoint:F.accountLinkingEntryPoint,consentLanguageKeys:K,dataUsageNoticeConfig:I,linkName:r,dynamicUrlParameters:N,partnerConfigMinReadTimestamp:h}).then(function(x){return new ZCb(y,D,F,R,x,void 0,P,K,N,h)})};
O0e=function(I,y,D){var F=(new I7y(y.localStorage)).getSession(I);if(F===null)return Promise.resolve({statusCode:2});ySY(I,y.localStorage);var R=DPQ(F.linkingSessionSerialized),O=F.googleScopesString!==""&&F.googleScopesString!==void 0?new Set(F.googleScopesString.split(",")):void 0,w=F.partnerConfigMinReadTimestampSerialized?FXy(F.partnerConfigMinReadTimestampSerialized):void 0;return Rjg(new ZCb(I,F.sessionId,y,D,R,O,F.callerState,F.consentLanguageKeys,F.dynamicUrlParameters,w),F.currentFlow,F.consentLanguageKeys)};
dlC=function(I,y){y=new I7y(y);y.storage!==null&&y.storage.set("SAVED_SESSION",I)};
ySY=function(I,y){y=new I7y(y);if(y.storage!==null){var D=y.storage.get("SAVED_SESSION");D!==void 0&&D.serviceId===I&&y.storage.remove("SAVED_SESSION")}};
VIa=function(I){var y=new Set;I=_.J(I);for(var D=I.next();!D.done;D=I.next())D=D.value,D!==1&&LXG.has(D)&&y.add(LXG.get(D));return y};
BHY=function(I,y){y!==void 0&&(I.callerState=y);return I};
JSG=function(I){switch(I){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Sgy=function(I){return new wFC(I,new vc1(I))};
KXC=function(I,y){y=y===void 0?!1:y;var D=document.createElement("div");I&&(D.style.transform="scaleX(-1)");D.style.backgroundColor=y?"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");I=document.createElement("style");I.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(I);I=t71();I.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";I.style.left="-145.166611%";var F=PXb(y);F.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";I.appendChild(F);D.appendChild(I);I=t71();I.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";I.style.left="-54.888891%";y=PXb(y);y.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
I.appendChild(y);D.appendChild(I);return D};
t71=function(){var I=document.createElement("div");I.style.height="100%";I.style.position="absolute";I.style.transformOrigin="top left";I.style.width="100%";return I};
PXb=function(I){var y=document.createElement("span");y.style.borderTop=I?"4px solid #669df6":"4px solid #4285f4";y.style.display="inline-block";y.style.position="absolute";y.style.width="100%";return y};
UPC=function(I){return I==null?void 0:_.$JM(I).valueOf()};
NYy=function(I){var y=document.body,D=!1,F=function(){D||(D=!0,rSY(R,O),setTimeout(function(){y.removeChild(O);y.removeChild(R)},150))},R=jqC(I,getComputedStyle(y).direction==="rtl",F),O=ocg(F);
rSY(R,O);y.appendChild(O);y.appendChild(R);window.requestAnimationFrame(function(){O.style.opacity="1";R.style.opacity="1";R.style.transform="translate(-50%, -50%) scale(1)";R.children[0].focus()})};
jqC=function(I,y,D){var F=document.createElement("div");F.style.position="fixed";F.style.alignItems="center";F.style.backgroundColor=I?"rgb(32, 33, 36)":"white";F.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";F.style.display="flex";F.style.flexDirection="column";F.style.justifyContent="center";F.style.left="50%";F.style.top="50%";F.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";F.style.zIndex="2002";document.body.clientWidth>=
660?(F.style.borderRadius="8px",F.style.minHeight="220px",F.style.maxHeight="90%",F.style.maxWidth="90%",F.style.minWidth="540px"):(F.style.height="100%",F.style.width="100%");F.setAttribute("aria-label","Error");F.setAttribute("aria-modal","true");F.setAttribute("role","alertdialog");F.addEventListener("keydown",function(O){O.key==="Escape"&&D()});
y=hja(I,y,D);F.appendChild(xPy(y));F.appendChild(y);var R=document.createElement("img");R.src=I?"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";R.style.height="72px";R.style.width="72px";R.style.color="#9aa0a6";R.setAttribute("alt","");F.appendChild(R);R=document.createElement("h1");R.textContent="Something went wrong.  Try again.";
R.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";R.style.lineHeight="24px";R.style.fontSize="16px";R.style.textAlign="center";R.style.letterSpacing="0.1px";R.style.color=I?"rgb(232,234,237)":"#3c4043";F.appendChild(R);F.appendChild(xPy(y));return F};
hja=function(I,y,D){var F=document.createElement("button");F.style.backgroundColor="transparent";F.style.border="none";F.style.borderRadius="50%";F.style.cursor="pointer";F.style.outline="none";F.style.padding="12px";F.setAttribute("aria-label","Close dialog");F.style.position="absolute";F.style.top="0";y?F.style.right="0":F.style.left="0";F.addEventListener("focus",function(){F.style.backgroundColor=I?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
F.addEventListener("blur",function(){F.style.backgroundColor="transparent"});
F.addEventListener("mouseenter",function(){F.style.backgroundColor=I?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
F.addEventListener("mouseleave",function(){F.style.backgroundColor="transparent"});
F.addEventListener("click",D);F.addEventListener("keydown",function(R){R.key!=="Enter"&&R.key!=="Space"||D()});
y=document.createElement("img");y.src=I?"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";y.style.display="block";y.style.height="24px";y.style.width="24px";y.setAttribute("alt","");F.appendChild(y);return F};
xPy=function(I){var y=document.createElement("div");y.setAttribute("tabindex","0");y.setAttribute("aria-hidden","true");y.addEventListener("focus",function(){return void I.focus()});
return y};
ocg=function(I){var y=document.createElement("div");y.style.backgroundColor="rgba(32,33,36,0.6)";y.style.bottom="0";y.style.left="0";y.style.position="fixed";y.style.right="0";y.style.top="0";y.style.transition=" opacity 150 ms linear";y.style.zIndex="2001";y.addEventListener("click",I);return y};
rSY=function(I,y){y.style.opacity="0";I.style.opacity="0";I.style.transform="translate(-50%, -50%) scale(0.8)"};
l7G=function(I,y){I.sandbox&&I.sandbox.add&&(I.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),I.sandbox.add("allow-downloads"));I.src=y};
r9=function(I){this.JSC$19762_value_=void 0;this.childNodes_={};if(I){var y=_.fJf(I);I=_.q2(I);for(var D=0;D<y.length;D++)this.set(y[D],I[D])}};
jd=function(I){uMC.call(this,I)};
QqZ=function(I,y){y=y===void 0?!1:y;this.parsedImageUrl_=null;I instanceof qgb||(EcZ==void 0&&(EcZ=new GFT),I=EcZ.parse(I.toString(),y));I=this.parsedImageUrl_=I;I.JSC$19787_parsedOptions_==void 0&&((y=I.getOptions())||(y=""),I.JSC$19787_parsedOptions_=(new XFa).parse(y));uMC.call(this,I.JSC$19787_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;I=this.parsedImageUrl_;y=I.uri_.JSC$10308_port_;this.JSC$19789_domain_=I.uri_.JSC$10308_domain_+(y?":"+y:"");this.JSC$19789_query_=
this.parsedImageUrl_.uri_.JSC$10308_queryData_.toString()};
oX=function(I){_.Hv.call(this,"upload");this.opts.query=I};
Yga=function(){return _.go.apply(0,arguments).flat().filter(function(I){return I}).join(";")};
nca=function(){return TIY(f7R,Yga.apply(null,_.Td(_.go.apply(0,arguments))))};
pFe=function(I){this.mode=4;this.data=I;this.parsedData=[];I=0;for(var y=this.data.length;I<y;I++){var D=[],F=this.data.charCodeAt(I);F>65536?(D[0]=240|(F&1835008)>>>18,D[1]=128|(F&258048)>>>12,D[2]=128|(F&4032)>>>6,D[3]=128|F&63):F>2048?(D[0]=224|(F&61440)>>>12,D[1]=128|(F&4032)>>>6,D[2]=128|F&63):F>128?(D[0]=192|(F&1984)>>>6,D[1]=128|F&63):D[0]=F;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))};
mPy=function(I){this.typeNumber=0;this.errorCorrectLevel=I===void 0?2:I;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
N9=function(I,y){if(I.length==void 0)throw Error("Kk`"+I.length+"`"+y);for(var D=0;D<I.length&&I[D]==0;)D++;this.num=Array(I.length-D+y);for(y=0;y<I.length-D;y++)this.num[y]=I[y+D]};
M7a=function(I,y){this.totalCount=I;this.dataCount=y};
zjQ=function(){this.buffer=[];this.length=0};
kFb=function(){var I=!1;if(_.qqH()){I=_.oo();var y="";_.XHq()?(y=/Windows (?:NT|Phone) ([0-9.]+)/,y=(I=y.exec(I))?I[1]:"0.0"):_.n5()?(y=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,y=(I=y.exec(I))&&I[1].replace(/_/g,".")):_.GeA()?(y=/Mac OS X ([0-9_.]+)/,y=(I=y.exec(I))?I[1].replace(/_/g,"."):"10"):_.PH(_.oo(),"KaiOS")?(y=/(?:KaiOS)\/(\S+)/i,y=(I=y.exec(I))&&I[1]):_.qqH()?(y=/Android\s+([^\);]+)(\)|;)/,y=(I=y.exec(I))&&I[1]):_.Qo4()&&(y=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,y=(I=y.exec(I))&&I[1]);I=
y||""}return I};
BY8=function(I,y){this.JSC$19818__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(y)for(var D in y)this.JSC$19818__htOption[D]=y[D];this.JSC$19818__htOption.useSVG&&(dPR=a7a);this.JSC$19818__android=kFb();this.JSC$19818__el=I;this._oQRCode=null;this._oDrawing=new dPR(this.JSC$19818__el,this.JSC$19818__htOption);this.JSC$19818__htOption.text&&(I=this.JSC$19818__htOption.text,this._oQRCode=new mPy(this.JSC$19818__htOption.correctLevel),cSy(this._oQRCode,
I),y=this._oQRCode,WXY(y,!1,CXY(y)),this.JSC$19818__el.title=I,this._oDrawing.draw(this._oQRCode),this.makeImage())};
i0o=function(I,y,D,F,R){I.save();var O=new Path2D;O.roundRect(y,D,F*7,F*7,F*2);O.roundRect(y+F,D+F,F*5,F*5,F*1.3);O.roundRect(y+2*F,D+2*F,F*3,F*3,F);I.clip(O,"evenodd");I.fillStyle=R;I.fillRect(0,0,I.canvas.width,I.canvas.height);I.restore()};
hE=function(){this.redactEnabled_=!0};
xN=function(I,y,D,F,R){this.JSC$19840_channel_=I;this.JSC$19840_channelDebug_=y;this.sid_=D;this.JSC$19840_rid_=F;this.JSC$19840_retryId_=R||1;this.JSC$19840_eventHandler_=new _.H5(this);this.timeout_=45E3;this.JSC$19840_extraHeaders_=null;this.JSC$19840_successful_=!1;this.JSC$19840_postData_=this.JSC$19840_requestUri_=this.JSC$19840_baseUri_=this.JSC$19840_type_=this.JSC$19840_requestStartTime_=this.JSC$19840_watchDogTimeoutTime_=this.JSC$19840_watchDogTimerId_=null;this.JSC$19840_pendingMessages_=
[];this.JSC$19840_xmlHttp_=null;this.JSC$19840_xmlHttpChunkStart_=0;this.JSC$19840_lastError_=this.JSC$19840_verb_=null;this.JSC$19840_lastStatusCode_=-1;this.JSC$19840_cancelled_=!1;this.JSC$19840_readyStateChangeThrottleMs_=0;this.JSC$19840_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ASR};
$PG=function(I,y){var D=new hE;D.debug("TestLoadImage: loading "+I);if(_.Ft.Image){var F=new Image;F.onload=_.de(ls,D,"TestLoadImage: loaded",!0,y,F);F.onerror=_.de(ls,D,"TestLoadImage: error",!1,y,F);F.onabort=_.de(ls,D,"TestLoadImage: abort",!1,y,F);F.ontimeout=_.de(ls,D,"TestLoadImage: timeout",!1,y,F);_.Ft.setTimeout(function(){if(F.ontimeout)F.ontimeout()},1E4);
F.src=I}else y(!1)};
b0R=function(I,y){var D=new hE,F=new AbortController,R=setTimeout(function(){F.abort();ls(D,"TestPingServer: timeout",!1,y)},1E4);
fetch(I,{signal:F.signal}).then(function(O){clearTimeout(R);O.ok?ls(D,"TestPingServer: ok",!0,y):ls(D,"TestPingServer: server error",!1,y)}).catch(function(){clearTimeout(R);
ls(D,"TestPingServer: error",!1,y)})};
ls=function(I,y,D,F,R){try{I.debug(y),R&&(R.onload=null,R.onerror=null,R.onabort=null,R.ontimeout=null),F(D)}catch(O){}};
ejb=function(){this.JSC$19854_parser_=new H0e};
TYe=function(I,y,D){return D&&D.internalChannelParams?D.internalChannelParams[I]||y:y};
us=function(I){this.serverVersion_=0;this.JSC$19859_outgoingMaps_=[];this.JSC$19859_channelDebug_=new hE;this.JSC$19859_hostPrefix_=this.JSC$19859_backChannelUri_=this.JSC$19859_forwardChannelUri_=this.JSC$19859_path_=this.JSC$19859_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19859_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19859_extraHeaders_=null;this.JSC$19859_nextMapId_=this.JSC$19859_nextRid_=0;this.JSC$19859_failFast_=TYe("failFast",
!1,I);this.enableStreaming_=this.JSC$19859_deadBackChannelTimerId_=this.JSC$19859_backChannelTimerId_=this.JSC$19859_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19859_lastPostResponseArrayId_=this.JSC$19859_lastArrayId_=-1;this.JSC$19859_backChannelAttemptId_=this.JSC$19859_backChannelRetryCount_=this.JSC$19859_forwardChannelRetryCount_=0;this.JSC$19859_baseRetryDelayMs_=TYe("baseRetryDelayMs",5E3,I);this.JSC$19859_retryDelaySeedMs_=
TYe("retryDelaySeedMs",1E4,I);this.JSC$19859_forwardChannelMaxRetries_=TYe("forwardChannelMaxRetries",2,I);this.JSC$19859_forwardChannelRequestTimeoutMs_=TYe("forwardChannelRequestTimeoutMs",2E4,I);this.JSC$19859_xmlHttpFactory_=I&&I.xmlHttpFactory||void 0;this.networkTestUrl_=I&&I.networkTestUrl||void 0;this.usesFetchStreams_=I&&I.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19859_supportsCrossDomainXhrs_=I&&I.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new sqg(I&&I.concurrentRequestLimit);this.wireCodec_=new ejb;this.fastHandshake_=I&&I.fastHandshake||!1;this.encodeInitMessageHeaders_=I&&I.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19859_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=I&&I.blockingHandshake||!1;I&&I.disableRedact&&this.JSC$19859_channelDebug_.disableRedact();I&&I.forceLongPolling&&(this.allowStreamingMode_=
!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&I&&I.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;I&&I.longPollingTimeout&&I.longPollingTimeout>0&&(this.longPollingTimeout_=I.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
V71=function(){};
q9=function(I,y){if(I instanceof q9)this.array_=I.array_;else{var D;if(D=_.i_(I))a:{for(var F=D=0;F<I.length;F++){if(!_.i_(I[F])||D>0&&I[F].length!=D){D=!1;break a}for(var R=0;R<I[F].length;R++)if(typeof I[F][R]!=="number"){D=!1;break a}D==0&&(D=I[F].length)}D=D!=0}if(D)this.array_=_.C5(I);else if(I instanceof _.ad)this.array_=Z0b(I.height,I.width);else if(typeof I==="number"&&typeof y==="number"&&I>0&&y>0)this.array_=Z0b(I,y);else throw Error("Rk");}this.size_=new _.ad(this.array_[0].length,this.array_.length)};
EB=function(I,y){if(typeof I!=="function")throw Error("Nk");return _.Ft.setTimeout(function(){I()},y)};
Gb=function(){};
IN1=function(I,y,D,F,R){(new Gb).debug("TestLoadImageWithRetries: "+R);if(F==0)D(!1);else{var O=R||0;F--;gca(I,y,function(w){w?D(!0):_.Ft.setTimeout(function(){IN1(I,y,D,F,O)},O)})}};
gca=function(I,y,D){var F=new Gb;F.debug("TestLoadImage: loading "+I);var R=new Image;R.onload=function(){try{F.debug("TestLoadImage: loaded"),ytY(R),D(!0)}catch(O){}};
R.onerror=function(){try{F.debug("TestLoadImage: error"),ytY(R),D(!1)}catch(O){}};
R.onabort=function(){try{F.debug("TestLoadImage: abort"),ytY(R),D(!1)}catch(O){}};
R.ontimeout=function(){try{F.debug("TestLoadImage: timeout"),ytY(R),D(!1)}catch(O){}};
_.Ft.setTimeout(function(){if(R.ontimeout)R.ontimeout()},y);
R.src=I};
ytY=function(I){I.onload=null;I.onerror=null;I.onabort=null;I.ontimeout=null};
DXy=function(){this.front_=[];this.back_=[]};
XQ=function(I){this.JSC$19911_map_=new _.VG;this.size=0;I&&this.addAll(I)};
Fh8=function(I,y){this.action=I;this.params=y||{}};
R6R=function(I,y){_.B5.call(this);this.delay_=new _.Av(this.JSC$19985_onTick_,0,this);_.pW(this,this.delay_);this.JSC$19983_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof I==="function")y&&(I=(0,_.iD)(I,y));else if(I&&typeof I.handleEvent==="function")I=(0,_.iD)(I.handleEvent,I);else throw Error("ya");this.JSC$19985_listener_=I};
Qu=function(I,y,D,F,R,O,w,v,P,K,r,N,h,x,q,X){var f=this;D=D===void 0?!1:D;F=F===void 0?function(){return""}:F;
R=R===void 0?!1:R;O=O===void 0?!1:O;w=w===void 0?!1:w;v=v===void 0?function(){return _.Xs({})}:v;
P=P===void 0?!1:P;r=r===void 0?!1:r;N=N===void 0?!1:N;h=h===void 0?!1:h;x=x===void 0?!1:x;this.JSC$19986_pathPrefix_=I;this.defaultQueryParams_=y;this.pubsub_=new _.bP;this.retryLogger_=X;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!q)?q(function(){f.safeReconnect_()}):new R6R(this.safeReconnect_,this);
this.JSC$19986_channel_=null;this.JSC$19986_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19986_pendingMessages_=[];this.enableAsyncTest_=D;this.JSC$19986_getXsrfToken_=F;this.useAsyncBrowserChannelHandler_=O;this.getAuthorizationHeader_=v;this.getAuthorizationHeaderSync_=K;this.enableCachedUpdateAuthorizationHeader_=w;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Xs();this.enableLoungeTokenRefresh_=R;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
P;this.disableMdxAuthForNonPlaybackMessages_=r;this.disableMdxAuthForAdMessages_=N;this.enableMdxAuthForConnectionOnly_=h;this.disableMdxAuthForShortsMessages_=x;this.JSC$19986_channelOpenedCounter=new Ogy;this.JSC$19986_channelClosedCounter=new Lha;this.channelMessageSentCounter=new Jta;this.JSC$19986_channelMessageReceivedCounter=new wpQ;this.JSC$19986_channelErrorCounter=new ve8;this.pendingMapsOnClosedCounter=new SM1;this.undeliveredMapsOnClosedCounter=new tve};
PIT=function(I){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;I=I||document.location.href;var y=Number(_.EJ(I)[4]||null)||"";y&&(this.port=":"+y);this.domain=_.GP(I)||"";I=_.oo();I.search("MSIE")>=0&&_.Uq(I.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
YN=function(I){I=I||{};this.name=I.name||"";this.id=I.id||I.screenId||"";this.token=I.token||I.loungeToken||"";this.uuid=I.uuid||I.dialId||"";this.idType=I.screenIdType||"normal";this.secret=I.screenIdSecret||""};
Khy=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(I){var y=Math.random()*16|0;return(I=="x"?y:y&3|8).toString(16)})};
UXC=function(I){return _.T_(I,function(y){return{key:y.id,name:y.name}})};
rtg=function(I,y){return HL(I,function(D){return D||y?!D!=!y?!1:D.id==y.id:!0})};
fK=function(I,y){return HL(I,function(D){return j0R(D,y)})};
lNR=function(){var I=oea(),y=N4Y();if(h6R()){var D=I,F=_.ke_(D,y);F<0&&_.mSS(D,-(F+1),0,y)}I=xXT(I);if(I.length==0)try{_.a5q("remote_sid")}catch(R){}else try{_.TP("remote_sid",I.join(","),-1)}catch(R){}};
oea=function(){var I=_.bX("yt-remote-connected-devices")||[];I.sort(_.z4q);return I};
xXT=function(I){if(I.length==0)return[];var y=I[0].indexOf("#"),D=y==-1?I[0]:I[0].substring(0,y);return _.T_(I,function(F,R){return R==0?F:F.substring(D.length)})};
uBe=function(I){_.$c("yt-remote-connected-devices",I,86400)};
N4Y=function(){if(qMZ)return qMZ;var I=_.bX("yt-remote-device-id");I||(I=Khy(),_.$c("yt-remote-device-id",I,31536E3));for(var y=oea(),D=1,F=I;_.kA(y,F);)D++,F=I+"#"+D;return qMZ=F};
Eee=function(){return _.bX("yt-remote-session-browser-channel")};
h6R=function(){return _.bX("yt-remote-session-screen-id")};
Q01=function(I){I.length>5&&(I=I.slice(I.length-5));var y=_.T_(G41(),function(F){return F.loungeToken}),D=_.T_(I,function(F){return F.loungeToken});
_.Wcq(D,function(F){return!_.kA(y,F)})&&XpY();
_.$c("yt-remote-local-screens",I,31536E3)};
G41=function(){return _.bX("yt-remote-local-screens")||[]};
XpY=function(){_.$c("yt-remote-lounge-token-expiration",!0,86400)};
YMR=function(I){I||(_.HF("yt-remote-session-screen-id"),_.HF("yt-remote-session-video-id"));lNR();I=oea();_.WH(I,N4Y());uBe(I)};
ne1=function(){fNy();return nK?!!nK.get("yt-remote-use-staging-server"):!1};
fNy=function(){if(!nK){var I=_.Ol();I&&(nK=new _.IC(I))}};
z6b=function(I,y,D,F,R){D=D===void 0?function(){return""}:D;
var O=function(){return new Qu(pK(I,"/bc"),y,!1,D,F)};
return _.l("enable_mdx_web_channel_desktop")?new pp1(function(){return new mXo(pK(I,"/wc"),y,D)}):new Mv1(O,R)};
ctC=function(){var I=k4y;dXZ();mv.push(I);aNC()};
M9=function(I,y){dXZ();var D=WhC(I,String(y));mv.length==0?CIC(D):(aNC(),_.hG(mv,function(F){F(D)}))};
zb=function(I){M9("CP",I)};
dXZ=function(){mv||(mv=_.jF("yt.mdx.remote.debug.handlers_")||[],_.fv("yt.mdx.remote.debug.handlers_",mv))};
CIC=function(I){var y=(B4g+1)%50;B4g=y;iga[y]=I;AtZ||(AtZ=y==49)};
aNC=function(){var I=mv;if(iga[0]){var y=AtZ?B4g:-1,D={};do D={record$jscomp$15:void 0},y=(y+1)%50,D.record$jscomp$15=iga[y],_.hG(I,function(F){return function(R){R(F.record$jscomp$15)}}(D));
while(y!=B4g);iga=Array(50);B4g=-1;AtZ=!1}};
WhC=function(I,y){var D=(Date.now()-$XQ)/1E3;D.toFixed&&(D=D.toFixed(3));var F=[];F.push("[",D+"s","] ");F.push("[","yt.mdx.remote","] ");F.push(I+": "+y,"\n");return F.join("")};
d9=function(I){kN.call(this);this.JSC$20015_logName_=I;this.screens=[]};
cs=function(I){d9.call(this,"LocalScreenService");this.JSC$20022_http_=I;this.loungeTokenRefreshTimer_=NaN;aX(this);this.info("Initializing with "+bg8(this.screens))};
Ws=function(I,y){y=y===void 0?!1:y;d9.call(this,"ScreenService");this.JSC$20028_http_=I;this.disableAutomaticScreenCache_=y;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};HgC(this)};
CK=function(I,y,D){kN.call(this);this.JSC$20032_logName_=D;this.JSC$20032_screenService_=I;this.receiver_=y;this.screen_=null};
vEY=function(I,y,D){D.disableCastApi?Bs("Cannot initialize because disabled by Mdx config."):e68()?T4y(I,D)&&(s0G(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Vva(y):(window.__onGCastApiAvailable=function(F,R){F?Vva(y):(is("Failed to load cast API: "+R),ZgZ(!1),s0G(!1),_.HF("yt-remote-cast-available"),_.HF("yt-remote-cast-receiver"),geY(),y(!1))},D.loadCastApiSetupScript?_.R1(Idy):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
yCY()>=60&&D4e():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?FZQ():yCY()>=89?R08():(OQT(),LZo(JCY.map(w4G))))):Bs("Cannot initialize because not running Chrome")};
geY=function(){Bs("dispose");var I=AE();I&&I.dispose();_.fv("yt.mdx.remote.cloudview.instance_",null);SvC(!1);_.EYC(tER);tER.length=0};
PVb=function(){return!!_.bX("yt-remote-cast-installed")};
KZb=function(){var I=_.bX("yt-remote-cast-receiver");return I?I.friendlyName:null};
U4R=function(){Bs("clearCurrentReceiver");_.HF("yt-remote-cast-receiver")};
rC1=function(){return PVb()?AE()?AE().getCastSession():(is("getCastSelector: Cast is not initialized."),null):(is("getCastSelector: Cast API is not installed!"),null)};
oEe=function(I,y){j6R()?AE().setConnectedScreenStatus(I,y):is("setConnectedScreenStatus called before ready.")};
e68=function(){var I=_.oo().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.mr||I};
T4y=function(I,y){var D=!1;AE()||(I=new $N(I,y),I.subscribe("yt-remote-cast2-availability-change",function(F){_.$c("yt-remote-cast-available",F);em("yt-remote-cast2-availability-change",F)}),I.subscribe("yt-remote-cast2-receiver-selected",function(F){Bs("onReceiverSelected: "+F.friendlyName);
_.$c("yt-remote-cast-receiver",F);em("yt-remote-cast2-receiver-selected",F)}),I.subscribe("yt-remote-cast2-receiver-resumed",function(F){Bs("onReceiverResumed: "+F.friendlyName);
_.$c("yt-remote-cast-receiver",F);em("yt-remote-cast2-receiver-resumed",F)}),I.subscribe("yt-remote-cast2-session-change",function(F){Bs("onSessionChange: "+NyQ(F));
F||_.HF("yt-remote-cast-receiver");em("yt-remote-cast2-session-change",F)}),_.fv("yt.mdx.remote.cloudview.instance_",I),D=!0);
Bs("cloudview.createSingleton_: "+D);return D};
AE=function(){return _.jF("yt.mdx.remote.cloudview.instance_")};
Vva=function(I){ZgZ(!0);s0G(!1);AE().init(!1,function(y){y?(SvC(!0),_.GJS("yt-remote-cast2-api-ready")):(is("Failed to initialize cast API."),ZgZ(!1),_.HF("yt-remote-cast-available"),_.HF("yt-remote-cast-receiver"),geY());I(y)})};
Bs=function(I){M9("cloudview",I)};
is=function(I){M9("cloudview",I)};
ZgZ=function(I){Bs("setCastInstalled_ "+I);_.$c("yt-remote-cast-installed",I)};
j6R=function(){return!!_.jF("yt.mdx.remote.cloudview.apiReady_")};
SvC=function(I){Bs("setApiReady_ "+I);_.fv("yt.mdx.remote.cloudview.apiReady_",I)};
s0G=function(I){_.fv("yt.mdx.remote.cloudview.initializing_",I)};
bs=function(I){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(I)};
fdo=function(I){fNy();if(!nK||!nK.get("yt-remote-disable-remote-module-for-dev")){I=_.Pi("MDX_CONFIG")||I;oiR();lNR();h0C||(h0C=new PIT(I?I.loungeApiHost:void 0),ne1()&&(h0C.basePath="/api/loungedev"));Hs||(Hs=_.jF("yt.mdx.remote.deferredProxies_")||[],_.fv("yt.mdx.remote.deferredProxies_",Hs));x4a();var y=ldo();if(!y){var D=new Ws(h0C,I?I.disableAutomaticScreenCache||!1:!1);_.fv("yt.mdx.remote.screenService_",D);y=ldo();var F={};I&&(F={appId:I.appId,disableDial:I.disableDial,theme:I.theme,loadCastApiSetupScript:I.loadCastApiSetupScript,
disableCastApi:I.disableCastApi,enableDialLoungeToken:I.enableDialLoungeToken,enableCastLoungeToken:I.enableCastLoungeToken,forceMirroring:I.forceMirroring});_.fv("yt.mdx.remote.enableConnectWithInitialState_",I?I.enableConnectWithInitialState||!1:!1);vEY(D,function(O){O?ufZ()&&oEe(ufZ(),"YouTube TV"):D.subscribe("onlineScreenChange",function(){em("yt-remote-receiver-availability-change")})},F)}if(I&&!_.jF("yt.mdx.remote.initialized_")){_.fv("yt.mdx.remote.initialized_",!0);
qvT("Initializing: "+(0,_.O7)(I));ed.push(_.ar("yt-remote-cast2-api-ready",function(){em("yt-remote-api-ready")}));
ed.push(_.ar("yt-remote-cast2-availability-change",function(){em("yt-remote-receiver-availability-change")}));
ed.push(_.ar("yt-remote-cast2-receiver-selected",function(){EEC();em("yt-remote-auto-connect","cast-selector-receiver")}));
ed.push(_.ar("yt-remote-cast2-receiver-resumed",function(){em("yt-remote-receiver-resumed","cast-selector-receiver")}));
ed.push(_.ar("yt-remote-cast2-session-change",Gvg));ed.push(_.ar("yt-remote-connection-change",function(O){O?oEe(ufZ(),"YouTube TV"):X4C()||(oEe(null,null),U4R())}));
ed.push(_.ar("yt-remote-cast2-session-failed",function(){em("yt-remote-connection-failed")}));
F=Q61();I.isAuto&&(F.id+="#dial");var R=I.capabilities||[];R.length>0&&(F.capabilities=R);F.name=I.device;F.app=I.app;(I=I.theme)&&(F.theme=I);qvT(" -- with channel params: "+(0,_.O7)(F));F?(_.$c("yt-remote-session-app",F.app),_.$c("yt-remote-session-name",F.name)):(_.HF("yt-remote-session-app"),_.HF("yt-remote-session-name"));_.fv("yt.mdx.remote.channelParams_",F);y.start();ufZ()||Yva()}}};
p4e=function(){var I=ldo().instance_.$_gos();var y=nEb();y&&Tb()&&(rtg(I,y)||I.push(y));return UXC(I)};
m4C=function(){var I=p4e(),y=nEb();y||(y=X4C());return HL(I,function(D){return y&&j0R(y,D.key)?!0:!1})};
nEb=function(){var I=ufZ();if(!I)return null;var y=ldo().getScreens();return fK(y,I)};
Gvg=function(I){qvT("remote.onCastSessionChange_: "+NyQ(I));if(I){var y=nEb();if(y&&y.id==I.id){if(oEe(y.id,"YouTube TV"),I.idType=="shortLived"&&(I=I.token))MEb&&(MEb.token=I),(y=Tb())&&y.setLoungeToken(I)}else y&&z08(),kvZ(I,1)}else Tb()&&z08()};
z08=function(){j6R()?AE().stopSession():is("stopSession called before API ready.");var I=Tb();I&&(I.disconnect(1),d4Y(null))};
adQ=function(){var I=Tb();return I&&I.getProxyState()!=3?new sB(Tb(),void 0):null};
qvT=function(I){M9("remote",I)};
ldo=function(){if(!cC1){var I=_.jF("yt.mdx.remote.screenService_");cC1=I?new WZZ(I):null}return cC1};
ufZ=function(){return _.jF("yt.mdx.remote.currentScreenId_")};
CVC=function(I){_.fv("yt.mdx.remote.currentScreenId_",I)};
EEC=function(){_.fv("yt.mdx.remote.connectData_",null)};
Tb=function(){return _.jF("yt.mdx.remote.connection_")};
d4Y=function(I){var y=Tb();EEC();I||CVC("");_.fv("yt.mdx.remote.connection_",I);Hs&&(_.hG(Hs,function(D){D(I)}),Hs.length=0);
y&&!I?em("yt-remote-connection-change",!1):!y&&I&&em("yt-remote-connection-change",!0)};
X4C=function(){var I=h6R();if(!I)return null;var y=ldo();if(!y)return null;y=y.getScreens();return fK(y,I)};
kvZ=function(I,y){Bye?MEb=I:(CVC(I.id),I=new Vu(h0C,I,Q61(),_.jF("yt.mdx.remote.enableConnectWithInitialState_")||!1),I.connect(y,_.jF("yt.mdx.remote.connectData_")),I.subscribe("beforeDisconnect",function(D){em("yt-remote-before-disconnect",D)}),I.subscribe("beforeDispose",function(){Tb()&&d4Y(null)}),I.subscribe("browserChannelAuthError",function(){var D=nEb();
D&&D.idType=="shortLived"&&(j6R()?AE().handleBrowserChannelAuthError():is("refreshLoungeToken called before API ready."))}),d4Y(I))};
Yva=function(){var I=X4C();I?(qvT("Resume connection to: "+NyQ(I)),kvZ(I,0)):(YMR(),U4R(),qvT("Skipping connecting because no session screen found."))};
x4a=function(){var I=Q61();if(_.e$.isEmpty(I)){I=N4Y();var y=_.bX("yt-remote-session-name")||"",D=_.bX("yt-remote-session-app")||"";I={device:"REMOTE_CONTROL",id:I,name:y,app:D,mdxVersion:3};I.authuser=String(_.Pi("SESSION_INDEX","0"));(y=_.Pi("DELEGATED_SESSION_ID"))&&(I.pageId=String(y));_.fv("yt.mdx.remote.channelParams_",I)}};
Q61=function(){return _.jF("yt.mdx.remote.channelParams_")||{}};
iQy=function(){var I,y;return _.S(function(D){if(D.nextAddress==1)return(_.Jfe()||_.l("use_new_nwl"))&&_.FjB().isNetworkAvailable()?D.yield(_.nv(),2):D.return();if(D.nextAddress!=3)return(I=D.yieldResult)?D.yield(Jpg(I),3):D.return();y=D.yieldResult;if(!y.length)return D.return();y.forEach(function(F){var R={timestamp:F.timestamp};F=F.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:F.appShellAssetLoadReport,options:R}:F.clientError?{payloadName:"clientError",payload:F.clientError,
options:R}:void 0;F&&_.Jq(F.payloadName,F.payload,F.options)});
y.length===100&&_.w2.addLowPriorityJob(iQy);_.Cj(D)})};
ZQa=function(I,y,D){D=D===void 0?!1:D;var F=Math.max(I.width,ACg);if(_.l("kevlar_watch_feed_big_thumbs")&&I.width>=1550-ZA()&&I.height>=800)F-=$48;else if(I.width>=g9){var R=bQ8+HQb+I9;_.l("kevlar_watch_feed_big_thumbs")&&(R=e0T);F-=R}else F-=bQ8;F=Math.min(F,Tyb);R=240;D&&(R=380);y<.5624||(!_.l("kevlar_watch_flexy_disable_small_window_sizing")&&(I.height<630&&I.width>=657||I.height>=630&&I.width>=g9&&I.width<1327)?R=360:!_.l("kevlar_watch_flexy_disable_large_window_sizing")&&I.height>=630&&I.width>=
1327&&(R=480));var O=Math.min(F*y,I.height-(56+s6y+VEy));O=Math.max(O,R);y<1?F=O/y:I.width>=g9&&(F=ZQa(I,.5625,D).width);return new _.ad(Math.round(F),Math.round(O))};
gEb=function(I){if(I.playerResponse){if(I=I.playerResponse,I.messages&&I.messages.length>0&&(I=I.messages.find(function(y){return!(!y||!y.mealbarPromoRenderer)}))&&I.mealbarPromoRenderer)return I.mealbarPromoRenderer}else if(I.response&&(I=I.response)&&I.overlay&&I.overlay.mealbarPromoRenderer)return I.overlay.mealbarPromoRenderer};
Ioo=function(I){if(I.response){var y=I.response;if(y&&y.overlay&&y.overlay.tooltipRenderer)return y.overlay.tooltipRenderer}if(I.playerResponse&&(I=I.playerResponse,I.messages&&I.messages.length>0&&(I=I.messages.find(function(D){return!(!D||!D.tooltipRenderer)}))&&I.tooltipRenderer))return I.tooltipRenderer};
yfa=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
DKa=function(){var I,y,D;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(_.DI.getInstance(),2);case 2:I=F.yieldResult;if(!I){y=void 0;F.jumpTo(3);break}return F.yield(I.get("lmqf"),4);case 4:y=F.yieldResult;case 3:switch((D=y)||(D="SD"),D){case "HD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return F.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Fja=function(I){var y,D,F;return _.S(function(R){if(R.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.l("disable_av1_setting")){var O=window.localStorage["yt-player-av1-pref"];O=O==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":O==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else O="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(y=I===O)return R.jumpTo(2);F=D=I;return R.yield(DKa(),3)}R.nextAddress!=2&&(y=F===R.yieldResult);return R.return(y)})};
O4T=function(){var I=_.kf("user_engagement_experiments_rate_limit_ms"),y=Rgg.get("last-user-engagement-exp-trigger-timestamp");return!y||(0,_.m_)()>=y+I?(Rgg.set("last-user-engagement-exp-trigger-timestamp",(0,_.m_)()),!0):!1};
yN=function(I,y,D,F,R){y=y===void 0?null:y;D=D===void 0?null:D;F=F===void 0?null:F;R=R===void 0?null:R;I={youThereEventType:I};D&&(I.lactThresholdMs=D.lactThresholdMs,I.mediaPosSec=D.promptDelaySec,I.lactServerRequestMs=D.lactServerRequestMs,I.triggerReason=D.triggerReason);R!=null&&(I.renderingMediaPosSec=Math.round(R));y||(y=_.VO());y&&(I.clientScreenNonce=y);F&&(I.clientPlaybackNonce=F);_.Jq("youThere",I)};
Jfo=function(I){if(!Ljg&&(I=I||_.Pi("ZWIEBACK_PING_URLS"))&&I.length){Ljg=!0;for(var y=0;y<I.length;y++)_.Nw(I[y])}};
wUZ=function(I){var y=0;I.indexOf("h")!=-1&&(I=I.split("h"),y=I[0]*60*60,I=I[1]);I.indexOf("m")!=-1&&(I=I.split("m"),y=I[0]*60+y,I=I[1]);I.indexOf("s")!=-1?(I=I.split("s"),y=I[0]*1+y):y=I*1+y;return y};
SEb=function(I){if(_.e$.get(_.Pi("PLAYER_VARS",{}),"privembed",!1)!="1"){I&&ZTg();try{vYa().then(function(){},function(){}),_.Wi(SEb,18E5)}catch(y){_.UJ(y)}}};
tpo=function(){var I=_.a1(),y=I.getFlag(119),D=window.devicePixelRatio>1;document.body&&_.hd(document.body,"exp-invert-logo")&&(D&&!_.hd(document.body,"inverted-hdpi")?_.PU(document.body,"inverted-hdpi"):!D&&_.hd(document.body,"inverted-hdpi")&&_.tf(document.body,"inverted-hdpi"));y!=D&&(_.cg(0,119,D),I.save())};
POa=function(){_.kf("service_worker_push_logged_out_prompt_watches")!=-1&&FQ("WatchCount").then(function(I){I>=100||rRe("WatchCount",I+1)})};
Kj8=function(I){return I.filter(function(y){return"ypcGetCartEndpoint"in y||"ypcFixInstrumentEndpoint"in y})};
UKR=function(I){return I.filter(function(y){return!_.u(y,_.uLP)})};
rfR=function(I){switch(I){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}};
ju1=function(I,y,D){var F=_.yz(D);I&&y&&F&&I.getPlayerPromise().then(function(R){_.tL_(F)&&_.wI();(new _.DV(R)).executeCommand(F,y);_.l("continue_playback_on_desktop_companion_click")||R.pauseVideo()})};
oYZ=function(I){var y=_.NY(),D;if(D=_.jF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;D=(F=D())==null?void 0:F.layoutId}else D=null;ju1(y,D,I)};
NVQ=function(I){var y=_.NY(),D;if(D=_.jF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;D=(F=D())==null?void 0:F.layoutId}else D=null;ju1(y,D,I)};
Du=function(I,y){var D=I<0?"-":"";I=Math.abs(I);var F=Math.floor(I/3600),R=Math.floor(I)%3600,O=Math.floor(R/60);R=Math.floor(R)%60;var w="";(y===void 0?0:y)&&(w="."+Math.round((I-Math.floor(I))*10));return F>0?D+F+":"+(O<10?"0"+O:""+O)+":"+(R<10?"0"+R:""+R)+w:D+O+":"+(R<10?"0"+R:""+R)+w};
hg1=function(I){var y=I.match(/[^0-9:\.]/g);if(y&&y.length>0)return null;I=I.split(":");if(I.length===0||I.length>3)return null;y=1;for(var D=0;I.length>0;){var F=I.pop();if(F===void 0)break;var R=Number(F);if(F===""||isNaN(R))return null;D+=R*y;y*=60}return D};
xKQ=function(I,y,D,F){I=Math.max(D,I);y=Math.min(y,F-D);I+y>F?(D=F,I=D-y):D=I+y;return{start:I,end:D}};
loa=function(I,y,D,F,R,O){I<D?I=D:I+R>F&&(I=F-R);y>F&&(y=F);y=Math.min(I+O,Math.max(I+R,y));return{start:I,end:y}};
uHZ=function(I,y,D,F,R,O){y>F?y=F:y-R<D&&(y=D+R);I<D&&(I=D);I=Math.min(y-R,Math.max(y-O,I));return{start:I,end:y}};
qER=function(I,y){if(y)return"ytCardViewModelCardSelected";switch(I){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
nYT=function(I,y){var D=_.jE(I,{}),F=EYQ("top",y),R=EYQ("bottom",y),O=EYQ("left",y),w=EYQ("right",y);return _.p4({top:function(){return Fa(D().position,F)},
bottom:function(){return Fa(D().position,R)},
left:function(){return Fa(D().position,O)},
right:function(){return Fa(D().position,w)},
position:function(){return Fa(D().positionType,GJ8)},
height:function(){return Fa(D().height,R9)},
width:function(){return Fa(D().width,R9)},
"min-width":function(){return Fa(D().minWidth,R9)},
"min-height":function(){return Fa(D().minHeight,R9)},
"max-width":function(){return Fa(D().maxWidth,R9)},
"max-height":function(){return Fa(D().maxHeight,R9)},
"aspect-ratio":function(){return Fa(D().aspectRatio,String)},
"margin-top":function(){return Fa(D().margin,F)},
"margin-bottom":function(){return Fa(D().margin,R)},
"margin-left":function(){return Fa(D().margin,O)},
"margin-right":function(){return Fa(D().margin,w)},
"padding-top":function(){return Fa(D().padding,F)},
"padding-bottom":function(){return Fa(D().padding,R)},
"padding-left":function(){return Fa(D().padding,O)},
"padding-right":function(){return Fa(D().padding,w)},
"flex-direction":function(){return Fa(D().flexDirection,XU1)},
"justify-content":function(){return Fa(D().justifyContent,Qua)},
"align-items":function(){return Fa(D().alignItems,YEa)},
"flex-grow":function(){return Fa(D().flexGrow,String)},
"flex-shrink":function(){return Fa(D().flexShrink,String)},
"flex-basis":function(){return Fa(D().flexBasis,R9)},
"align-self":function(){return Fa(D().alignSelf,YEa)},
"flex-wrap":function(){return Fa(D().flexWrap,foe)},
"align-content":function(){return Fa(D().alignContent,YEa)}})};
Fa=function(I,y){return I!==void 0?y(I):void 0};
foe=function(I){switch(I){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
GJ8=function(I){switch(I){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
YEa=function(I){switch(I){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"}};
Qua=function(I){switch(I){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"}};
XU1=function(I){switch(I){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"}};
EYQ=function(I,y){var D=y==="rtl";switch(I){case "top":var F=pUa;break;case "bottom":F=mKZ;break;case "left":F=MpT;break;default:F=zgy}return function(R){return Fa(F(R,D),R9)}};
pUa=function(I){var y=I.top;var D=I.vertical;I=I.all;var F;return(F=y!=null?y:D)!=null?F:I};
mKZ=function(I){var y=I.bottom;var D=I.vertical;I=I.all;var F;return(F=y!=null?y:D)!=null?F:I};
MpT=function(I,y){var D=I.left;var F=I.end;var R=I.start;var O=I.horizontal;I=I.all;var w,v;return(v=(w=D!=null?D:y?F:R)!=null?w:O)!=null?v:I};
zgy=function(I,y){var D=I.right;var F=I.end;var R=I.start;var O=I.horizontal;I=I.all;var w,v;return(v=(w=D!=null?D:y?R:F)!=null?w:O)!=null?v:I};
R9=function(I){var y=I.value;switch(I.unit){case "YPC_DIMENSION_UNIT_POINT":return y+"px";case "YPC_DIMENSION_UNIT_FRACTION":return y+"%";default:return""+y}};
kJ8=function(I){switch(I){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"}};
dKo=function(I){var y=I!=null?I:{};I=y.fontRole;var D=y.fontSize;y=y.fontWeight;if(I!==null&&D!==null)switch(I){case "YPC_FONT_ROLE_DISPLAY":switch(D){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(D){case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return y===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(D){case "YPC_FONT_SIZE_XL":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
COa=function(I,y,D){function F(N){return Object.values(N).map(function(h){var x=h.productId;h=h.pricingOptionIndex;return Oj(R(x).pricingOptions,h).pricingOptionId})}
function R(N){return P().get(N)}
function O(N){N=F(N);D(N)}
function w(N,h){return Array.from(Lw(N.pricingOptions)).filter(function(x){x=_.J(x);x.next();x=x.next().value;return Jc(x.pricingGroupAttributes,h)}).map(function(x){return _.J(x).next().value})}
var v=aog([I,y],function(N,h){var x=N==null?void 0:N.selectedPricingOptions;N={};var q=!0;if(x&&h.length)for(var X=_.J(h),f=X.next();!f.done;f=X.next()){f=f.value;var m=cfT(f.pricingOptions,function(C){a:{C=C.pricingOptionId;for(var H=_.J(x),e=H.next();!e.done;e=H.next())if(e.value===C){C=!0;break a}C=!1}return C});
if(m>=0){q=!1;var z=Oj(f.pricingOptions,m),B=void 0;N[f.groupId]={productId:f.productId,pricingOptionIndex:m,pricingGroupAttributes:(B=z)==null?void 0:B.pricingGroupAttributes}}}q&&h.length&&(q=Oj(h[0].pricingOptions,0),N[h[0].groupId]={productId:h[0].productId,pricingOptionIndex:0,pricingGroupAttributes:q==null?void 0:q.pricingGroupAttributes});return N}),P=aog([y],function(N){return new Map(N.map(function(h){return[h.productId,
h]}))}),K=aog([y],function(N){var h=new Map;
N=_.J(N);for(var x=N.next();!x.done;x=N.next()){var q=x.value;x=q.groupId;var X=q.productId;q=_.J(Lw(q.pricingOptions));for(var f=q.next();!f.done;f=q.next()){var m=_.J(f.value);f=m.next().value;m=m.next().value;h.set(m.pricingOptionId,{groupId:x,productId:X,index:f,pricingOption:m,pricingGroupAttributes:m.pricingGroupAttributes})}}return h}),r=aog([y],function(N){var h=new Map;
N=_.J(N);for(var x=N.next();!x.done;x=N.next()){var q=x.value;x=q.groupId;var X=q.productId,f=void 0;q=_.J(Lw((f=q.pricingGroups)!=null?f:[]));for(f=q.next();!f.done;f=q.next()){var m=_.J(f.value);f=m.next().value;m=m.next().value;h.set(m.pricingGroupId,{groupId:x,productId:X,index:f,pricingGroup:m,pricingGroupAttributes:m.pricingGroupAttributes})}}return h});
return{getProductById:R,isProductSelected:function(N){var h=R(N);if(!h)return!1;var x;return((x=v()[h.groupId])==null?void 0:x.productId)===N},
getSelectedPricingOptions:function(){return Object.values(v()).map(function(N){var h=N.productId;N=N.pricingOptionIndex;return Oj(R(h).pricingOptions,N)})},
getSelectedPricingGroupAttributesByGroupId:function(N){var h;return(N=(h=v()[N])==null?void 0:h.pricingGroupAttributes)?Array.from(N):void 0},
getSelectedProductByGroupId:function(N){var h;return(N=(h=v()[N])==null?void 0:h.productId)?R(N):void 0},
onProductSelected:function(N){var h=R(N);if(h){var x=v(),q;if(((q=x[h.groupId])==null?void 0:q.productId)!==N){var X=(q=(X=x[h.groupId])==null?void 0:X.productId)?R(q):void 0;var f;q=(f=x[h.groupId])==null?void 0:f.pricingGroupAttributes;var m;f=(m=x[h.groupId])==null?void 0:m.pricingOptionIndex;if(X&&f!==void 0)if(q){m=w(X,q).indexOf(f);if(m===-1)throw Error("Bl`"+f+"`"+X.productId);f=w(h,q);m=m<f.length?f[m]:f.length>0?f[0]:0}else m=f<wF(h.pricingOptions)?f:0;else m=0;wF(h.pricingOptions)<=m&&(m=
0);f=Oj(h.pricingOptions,m);var z;X={};O(Object.assign({},x,(X[h.groupId]={productId:N,pricingOptionIndex:m,pricingGroupAttributes:(z=f==null?void 0:f.pricingGroupAttributes)!=null?z:[]},X)))}}},
onPricingOptionSelected:function(N){var h=K().get(N);if(h){N=h.groupId;var x=h.productId;h=h.index;var q=v(),X,f;if(((X=q[N])==null?void 0:X.productId)!==x||((f=q[N])==null?void 0:f.pricingOptionIndex)!==h){var m,z;X={};O(Object.assign({},q,(X[N]={productId:x,pricingOptionIndex:h,pricingGroupAttributes:(z=(m=q[N])==null?void 0:m.pricingGroupAttributes)!=null?z:[]},X)))}}},
onPricingGroupSelected:function(N){var h=r().get(N);if(h){N=h.groupId;var x=h.productId,q=h.pricingGroup.pricingGroupAttributes,X=R(x);if(X){h=v();var f=h[N].pricingGroupAttributes,m;if(((m=h[N])==null?void 0:m.productId)!==x||!Jc(WjC(f,wF(q)),q)){m=Array.from(q);for(q=wF(q);q<wF(f);q++){var z="",B=!1,C=Array.from(m);C.push(Oj(f,q));for(var H=_.J(X.pricingGroups),e=H.next();!e.done;e=H.next())if(e=e.value,Jc(e.pricingGroupAttributes,C)){m.push(Oj(f,q));B=!0;break}else z===""&&wF(e.pricingGroupAttributes)===
C.length&&Jc(WjC(e.pricingGroupAttributes,m.length),m)&&(z=Oj(e.pricingGroupAttributes,q));B||m.push(z)}z=h[N].pricingOptionIndex;q=[];B=new Map;C=0;X=_.J(Lw(X.pricingOptions));for(H=X.next();!H.done;H=X.next())e=_.J(H.value),H=e.next().value,e=e.next().value,Jc(e.pricingGroupAttributes,m)&&q.push(H),Jc(e.pricingGroupAttributes,f)&&B.set(H,C++);q.length===0?f=0:(f=B.get(z),f=f!==void 0&&f<q.length?q[f]:q[0]);X={};O(Object.assign({},h,(X[N]={productId:x,pricingOptionIndex:f,pricingGroupAttributes:m},
X)))}}}},
onClearGroupSelected:function(N){var h=v();h[N]&&(h=Object.fromEntries(Object.entries(h).filter(function(x){return _.J(x).next().value!==N})),O(h))}}};
Lw=function(I){return function D(){var F,R,O,w,v;return _.nx(D,function(P){switch(P.nextAddress){case 1:_.zd(P,2),F=0,R=_.J(I),O=R.next();case 4:if(O.done){P.jumpTo(2);break}w=O.value;v=_.px;return P.yield([F++,w],7);case 7:v(P.yieldResult);O=R.next();P.jumpTo(4);break;case 2:_.m4(P),_.kQ(P,0)}})}()};
cfT=function(I,y){I=_.J(Lw(I));for(var D=I.next();!D.done;D=I.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;if(y(F))return D}return-1};
wF=function(I){var y=0;for(I=I[Symbol.iterator]();!I.next().done;)++y;return y};
Oj=function(I,y){I=_.J(Lw(I));for(var D=I.next();!D.done;D=I.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;if(D===y)return F}};
Jc=function(I,y){if(!I&&!y)return!0;if(!I||!y)return!1;I=Array.from(I);y=Array.from(y);if(I.length!==y.length)return!1;for(var D=0;D<I.length;D++)if(I[D]!==y[D])return!1;return!0};
WjC=function(I,y){y=y===void 0?Infinity:y;var D=[];I=_.J(Lw(I));for(var F=I.next();!F.done;F=I.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;if(F>=y)break;F>=0&&D.push(R)}return D};
aog=function(I,y){var D,F;return function(){for(var R=I.map(function(w){return w()}),O=0;O<R.length;O++)if(!D||R[O]!==D[O]){D=R;
F=y.apply(null,_.Td(R));break}return F}};
BVg=function(I,y,D){var F=[];I=_.J(I);for(var R=I.next();!R.done;R=I.next()){R=R.value;var O=void 0;((O=y)==null?0:O.length)&&!Jc(R.pricingGroupAttributes,y)||F.push({pricingOption:R,isSelected:D.includes(R.pricingOptionId)})}return F};
i4g=function(I,y){return _.nC(I.entities,"pdpStateEntity",y)};
Af1=function(I){var y,D;return!!(I.productId&&I.groupId&&((y=I.pricingOptions)==null?0:y.length)&&I.pricingOptions.every(function(F){return F.pricingOptionId})&&((D=I.pricingGroups)==null||!D.length||Array.isArray(I.pricingGroups)&&I.pricingGroups.every(function(F){return F.pricingGroupId&&F.pricingGroupAttributes&&F.pricingGroupAttributes.length>0})))};
$Ky=function(I,y,D){return COa(I,aog([y],function(F){return F.filter(Af1)}),D)};
b4a=function(I,y){return y.length===0?[I]:[I.slice(0,y[0]),I.slice(y[0])].filter(function(D){return D.length>0})};
H4a=function(I){switch(I){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""}};
TVY=function(I,y,D,F){F=Object.assign({},F);_.sv(F,egQ,{selectedOptionId:I,primaryButtonOverride:D});_.Uv().dispatch(_.WS("flowStateEntity",y,F))};
suT=function(I,y,D){!_.u(D,egQ)&&I.noPreselect&&y!==""&&I.defaultButtonOverride&&TVY("default",y,I.defaultButtonOverride,D)};
VpT=function(I){switch(I){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"}};
Z4R=function(I){switch(I){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"}};
gYC=function(I,y){y.includes(I)?y=y.filter(function(D){return D!==I}):y.push(I);
return[].concat(_.Td(y))};
IXQ=function(I,y){return _.nC(I.entities,"contextNoteFeedEntityPayload",y)};
yZY=function(I,y){switch(I){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return y==null?void 0:y.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return y==null?void 0:y.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return y==null?void 0:y.ratingNotHelpfulText}};
DYG=function(I,y,D){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:D||I.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:I.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:I.deleteDialogTitle}]},dialogMessages:[{runs:[{text:I.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:I.deleteActionText}]},command:{performCommentActionEndpoint:{action:y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:I.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
FC8=function(I,y,D){var F;if(I&&((F=y())==null?0:F.includes(I))){var R;D((R=y())==null?void 0:R.filter(function(O){return O!==I}))}else D([].concat(_.Td(y()||[]),[I]))};
Ot8=function(I,y){if(I){var D=[];y=_.J((y==null?void 0:y.checkboxes)||[]);for(var F=y.next();!F.done;F=y.next()){F=_.u(F.value,R2b);var R=void 0;((R=F)==null?0:R.value)&&I.includes(F.key||"")&&D.push(F.value)}return D}};
LCb=function(I){I.style.height="auto";I.style.height=I.scrollHeight+"px"};
JZG=function(I){return[I.syncStep,I.asyncStep].filter(function(y){return y!==void 0})};
vzR=function(I){var y,D,F;if(I=(y=I.structuredContextNoteFormSchema)==null?void 0:(D=y.fieldSchemas)==null?void 0:(F=D.noteBody)==null?void 0:F.validationSchema)for(y=_.J(JZG(I)),D=y.next();!D.done;D=y.next()){D=D.value.rules;if(!D)break;D=_.J(D);for(D=D.next();!D.done;D=D.next())return _.u(D.value,wSg)}};
taT=function(I){if(I){I=_.J(JZG(I));for(var y=I.next();!y.done;y=I.next()){y=y.value.rules;if(!y)break;y=_.J(y);for(y=y.next();!y.done;y=y.next())return _.u(y.value,SPZ)}}};
KCQ=function(I){if(I){I=_.J(JZG(I));for(var y=I.next();!y.done;y=I.next()){y=y.value.rules;if(!y)break;y=_.J(y);for(y=y.next();!y.done;y=y.next())return _.u(y.value,PpQ)}}};
UYY=function(I){I=/^https?:\/\//.test(I)?I:"http://"+I;try{var y=_.ob(I)}catch(D){return!1}if(y.toString()!==I)return!1;I=y.JSC$10308_domain_.split(".");return I.length>1&&I.every(function(D){return!!D})};
rZY=function(I,y,D,F){var R;F=(R=F.structuredContextNoteData)==null?void 0:R.createCommentEndpoint;if(R=_.u(F,_.fgG))return R.commentText=_.Ug(I),R.videoPositionMention=y,R.sources=D,F};
jPT=function(I){return I==null?void 0:I.stringValue};
NPy=function(I,y,D){I=I.map(function(F,R){return{listItemViewModel:{title:F.title,subtitle:F.subtitle,leadingImage:F.leadingImage,trailingImage:R===y?ozZ:void 0,rendererContext:{commandContext:{onTap:F.onTap}}}}});
return Object.assign({},D&&{header:{panelHeaderViewModel:{title:D}}},{content:{listViewModel:{listItems:I}}})};
h21=function(I,y){if(I&&y)switch(y){case "SELECTION_TYPE_BOOL":return I.boolValue;case "SELECTION_TYPE_INT":return I.intValue;case "SELECTION_TYPE_STRING":return I.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return I.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return I.timePickerFormatValue}};
xYo=function(I){var y;I=(y=I.options)==null?void 0:y.findIndex(function(D){return D.isSelected});
return I===void 0?-1:I};
lXG=function(I,y,D){var F=function(){return I().label},R={},O=_.XH("ytDropdownViewModelLabel",(R.ytDropdownViewModelLabelError=y,R));
return _.t(_.U,{cond:function(){return I().label&&!(D()===-1&&I().label&&!I().placeholderText)},
then:function(){return _.t("div",{class:O},_.t(_.jr,{text:F}))}})};
upy=function(I,y){var D={};D=_.XH("ytDropdownViewModelTitle",(D.ytDropdownViewModelTitlePlaceholder=function(){return y()===-1},D));
return _.t("div",{class:D},_.t(_.jr,{text:function(){var F=I();var R=y();if(R===-1)F=F.placeholderText?F.placeholderText:F.label;else{var O,w;F=(O=F.options)==null?void 0:(w=O[R])==null?void 0:w.title}return F}}))};
qP8=function(I,y){var D=function(){return I().hint};
return _.t(_.ni,null,_.t(_.U,{cond:function(){return D()&&!y()},
then:function(){return _.t("div",{class:_.XH("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.t(_.jr,{text:D,className:"ytDropdownViewModelSupportText"}))}}),_.t(_.U,{cond:y,
then:function(){return _.t("div",{id:"dropdown-view-model-error",role:"alert",class:_.XH("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.t(_.mj,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.t(_.jr,{text:y,className:"ytDropdownViewModelSupportText"}))}}))};
Eze=function(I,y){var D=_.nR().resolve(_.lOZ);_.LR(function(){var F=I().id;F&&D!=null&&D.dropdownMap.set(F,y)})};
XSY=function(I){I=_.u(I.scheduleButton,GjQ);I=_.u(I==null?void 0:I.primaryButton,_.Kb);I=_.u(I==null?void 0:I.onTap,_.Iu);var y,D,F=((D=_.u(I,_.Q_))==null?void 0:D.commands)||[I];D=_.J(F);for(I=D.next();!I.done&&!(y=_.u(I.value,_.GL_));I=D.next());var R;y=(R=y)==null?void 0:R.createBroadcastRequest;if(!y)throw Error("Il");return y};
fXy=function(I,y){if(y){var D=_.oq().getState().entities.flowStateEntity,F=QP1(I),R=[y];F&&F!==y&&R.push(F);var O=!0,w;if(D&&I.flowStateEntityKey&&((w=D[I.flowStateEntityKey])==null?void 0:w.primaryButtonDisabled)!==void 0){var v;O=!((v=D[I.flowStateEntityKey])==null||!v.primaryButtonDisabled)}YPZ(I,F!=null?F:y,R,O)}};
pS1=function(I){return _.TV(_.oq(),function(y){return y.entities.flowStateEntity},function(y,D){if(I.flowStateEntityKey){var F,R=y==null?void 0:(F=y[I.flowStateEntityKey])==null?void 0:F.currentStepId,O;
D=D==null?void 0:(O=D[I.flowStateEntityKey])==null?void 0:O.currentStepId;O=_.oq().getState().talkToRecs;if(R&&R!==D){var w;y=(y==null?void 0:(w=y[I.flowStateEntityKey])==null?void 0:w.stepIdStack)||Object.keys(O.stepStates);w=!nzo(O==null?void 0:O.stepStates[R]);YPZ(I,R,y,w)}}})};
Mab=function(I){return _.TV(_.oq(),mYb,function(y){var D=QP1(I);if(D){var F=Object.keys(y.stepStates);y=!nzo(y==null?void 0:y.stepStates[D]);YPZ(I,D,F,y)}})};
nzo=function(I){var y=Object.keys((I==null?void 0:I.selectionStates)||{}).reduce(function(O,w){return O||(I==null?void 0:I.selectionStates[w].isSelected)},!1),D,F,R=!!(I==null?0:(D=I.userQuery)==null?0:(F=D.userQuery)==null?0:F.trim());
return y||R};
QP1=function(I){if(I.flowStateEntityKey){var y,D,F=(y=_.oq().getState().entities.flowStateEntity)==null?void 0:(D=y[I.flowStateEntityKey])==null?void 0:D.currentStepId;if(F)return F}};
YPZ=function(I,y,D,F){_.oq().dispatch(_.WS("flowStateEntity",I.flowStateEntityKey,{currentStepId:y,stepIdStack:D,key:I.flowStateEntityKey,primaryButtonDisabled:F}))};
aXT=function(I,y,D){D=D===void 0?{}:D;var F,R;return _.S(function(O){if(F=z2Z(y))return O.return(F);(R=kjZ(I,y,D))&&dYZ(y,R);return O.return(R)})};
dYZ=function(I,y){var D=cZ1(I);D&&y.then(function(F){_.nR().resolve(_.aK).put(D,new _.cy({innertubeResponse:F}))})};
z2Z=function(I){if(I=cZ1(I)){var y=_.nR().resolve(_.aK);if(y.has(I))return y.get(I).then(function(D){return D==null?void 0:_.qv(D)})}return null};
cZ1=function(I){var y=_.u(I.endpoint,_.t9);if(y!=null&&y.videoId)return y={videoId:y.videoId},_.l("web_imp_player_mute_params")&&(y.mutedAtStart=I.startPlaybackInMutedState),_.Sk("inline_playback",y)};
kjZ=function(I,y,D){I=_.wP(I,y.endpoint,WCQ(y,D)).then(function(F){return F});
return Promise.resolve(I)};
WCQ=function(I,y){y=_.l("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!I.startPlaybackInMutedState},y):Object.assign({},{vis:5,autonav:"1"},y);var D;y={contentPlaybackContext:_.X9(y,(D=_.u(I.endpoint.commandMetadata,_.nE))==null?void 0:D.url,window.location.href)};_.l("web_imp_player_mute_params")&&(y.overrideMutedAtStart=!I.startPlaybackInMutedState);return y};
$Ya=function(I,y){var D=window.MutationObserver;D&&(CpZ=new D(function(F,R){F=_.J(F);for(var O=F.next();!O.done;O=F.next()){O=O.value;var w;if(w=O.type==="childList"&&O.target)a:{w=I;O=BP1(O.target);w=BP1(w);for(var v=null,P=0;P<O.length;P++)if(w.includes(O[P])){if(P===0){w=!1;break a}v=O[P];break}v?(O=itR(O,v),w=itR(w,v),w=O<w):w=!1}if(w){y();R.disconnect();break}}}),(D=AZC())&&CpZ.observe(D,{childList:!0,
subtree:!0}))};
AZC=function(){var I=document.getElementsByTagName("ytd-rich-grid-renderer");if(I.length>0)return I[0];I=document.getElementsByTagName("ytd-section-list-renderer");return I.length>0?I[0]:null};
BP1=function(I){for(var y=[];I;)y.push(I),I=I.parentElement;return y};
itR=function(I,y){var D=Array.from(y.children);y=I.indexOf(y);return y>0?D.indexOf(I[y-1]):-1};
vM=function(I,y,D){D=D===void 0?{}:D;return _.zC(I,D,y)};
bt1=function(I){switch(I){case "MUSIC":return!0;default:return!1}};
e2R=function(I){if(I=I==null?void 0:I.find(function(F){var R,O;return((R=_.u(F,Htg))==null?void 0:(O=R.inlinePlaybackBadgeData)==null?void 0:O.replicateAsTimestamp)===!0}))if(I=_.u(I,Htg),I==null?0:I.icon){var y,D;
if((I=(y=_.CeW(I.icon))==null?void 0:(D=y.clientResource)==null?void 0:D.imageName)&&bt1(I))return I}};
TPg=function(I){return I==null?void 0:I.filter(function(y){return y.premiereTrailerBadgeRenderer})};
sPy=function(I){var y,D=I==null?void 0:(y=I.find(function(P){return P.thumbnailOverlayTimeStatusRenderer}))==null?void 0:y.thumbnailOverlayTimeStatusRenderer,F,R;
if((D==null?0:(F=D.icon)==null?0:F.iconType)&&bt1(D==null?void 0:(R=D.icon)==null?void 0:R.iconType)){var O;return{icon:D==null?void 0:(O=D.icon)==null?void 0:O.iconType}}var w;if(y=I==null?void 0:(w=I.find(function(P){return P.thumbnailOverlayBadgeViewModel}))==null?void 0:w.thumbnailOverlayBadgeViewModel)if(w=e2R(y.thumbnailBadges))return{icon:w};
var v;if(I=I==null?void 0:(v=I.find(function(P){return P.thumbnailBottomOverlayViewModel}))==null?void 0:v.thumbnailBottomOverlayViewModel)if(v=e2R(I.badges))return{icon:v};
return{}};
yUo=function(I,y){var D=new VaR(function(O){R(O)},y);
y=_.J(_.$M(ZtC(D),void 0,"D2uee"));var F=y.next().value,R=y.next().value;_.wZ(function(){Promise.resolve().then(function(){var O,w=(O=I())!=null?O:{};D.playerControlsData=w;D.lastSeenPlayerApi=_.RL(w.playerApi);gzZ(D)});
_.tI(function(){Iyb(D)})},"xfRk8b");
return F};
D5g=function(I){return function(y){var D=I(),F={playerState:y};if(y===1){var R;(R=D.playerApi)==null||R.loadModule("captions")}if(y===0){var O;(O=D.playerApi)==null||O.unloadModule("captions")}y!==-1&&D.setState(F)}};
FKT=function(I){return function(y){I().setState({playbackRate:y})}};
RbR=function(I){return function(y){var D=I(),F=D.playerApi,R=F==null?void 0:F.getVideoData(),O=(R==null?void 0:R.isLive)||!1;R=R==null?void 0:R.video_id;O={videoDuration:J_y(F||void 0),isLive:O,videoId:R};O.videoId!==D.videoId&&(O=Object.assign({},_.SXq(F),O));if(y==null?0:y.playertype)O.playerType=y.playertype;if(F){O.captionsAvailable=s1G(F);y=O;var w;R=(w=F.getStoryboardLevel(F.getNumberOfStoryboardLevels()-1))==null?void 0:w.intervalMs;y.storyboardInterval=R?R/1E3:void 0;O.captionsAvailable&&
(O.captionsEnabled=Vkb(F))}O.volumeMuted=!(F==null||!F.isMuted());D.setState(O)}};
OVR=function(I){return function(y){var D=I(),F=D.playerApi;if(F){var R=F.getPresentingPlayerType();y={playedTime:y||0,percentLoaded:F.getVideoLoadedFraction(),playerType:R};D.playerState===0&&(y.playedTime=D.videoDuration);D.isLive&&(R=F.getProgressState(R),y.playedTime-=R.seekableStart,y.videoDuration=J_y(F));if(D.playerType===1)F=!1;else{var O;if((O=D.uxConfig)==null?0:O.showCuedOverlay){var w;F=!((w=D.playerApi)==null?0:w.getPlayerStateObject(D.playerType).isDomPaused)}else F=!0}F&&delete y.playedTime;
D.setState(y)}}};
LKg=function(I){return function(){var y=I(),D,F,R,O={volume:(R=(D=y.playerApi)==null?void 0:D.getVolume())!=null?R:0,volumeMuted:!((F=y.playerApi)==null||!F.isMuted())};y.setState(O)}};
JUZ=function(I){return function(){var y=I(),D=y.playerApi;if(D){var F={captionsAvailable:s1G(D)};F.captionsAvailable&&(F.captionsEnabled=Vkb(D));y.setState(F)}}};
w_Z=function(I){return{appApi:Object.assign({},_.Fl_(),{showCaptionsToggleToast:function(y){var D,F;(F=(D=I()).showCaptionsToggleToast)==null||F.call(D,y)},
openInMiniplayer:function(){var y,D;(D=(y=I()).openInMiniplayer)==null||D.call(y)}})}};
vwZ=function(I,y){var D,F,R;return!!(I==null?0:(D=I.playerResponse)==null?0:(F=D.playerConfig)==null?0:(R=F.inlinePlaybackConfig)==null?0:R.showScrubbingControls)&&!(y==null?0:y.hideScrubbingControls)};
SAQ=function(I){var y=!I.miniplayerIsActive;return[5,2,0].includes(I.miniplayerPlaybackState)||y};
t58=function(I){return _.l("web_transcript_cue_id_killswitch")?String(I):"ytd-transcript-renderer_"+I};
P9g=function(I){return _.l("web_transcript_cue_id_killswitch")?!0:I.startsWith("ytd-transcript-renderer")};
KKa=function(I){var y=_.NY(),D;if(D=_.jF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var F;D=(F=D())==null?void 0:F.layoutId}else D=null;ju1(y,D,I)};
U5C=function(I,y){if(_.l("web_enable_chat_autoscroll_to_user_turn")&&I&&y)return I-4+"px"};
rUR=function(I,y){return _.nC(I.entities,"youchatPendingResponseEntity",y)};
jkY=function(I){return function(y){_.ry(_.WS("youchatPendingResponseEntity",I,{entityKey:I,isPendingResponse:y}))}};
owa=function(I,y){return _.nC(I.entities,"booleanEntity",y)};
NvQ=function(){return function(I){_.ry(_.WS("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:I}))}};
hba=function(I){I==null||I.addEventListener("DOMLoaded",function(){I.goToAndPlay(I.totalFrames-48,!0)})};
x5G=function(I){if(I.backgroundStyle)switch(I.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return I.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};
lyy=function(I){I.style.height="auto";I.style.height=Math.min(I.scrollHeight||20,80)+"px"};
uPG=function(){var I;return String(Math.floor(((I=_.ft())==null?void 0:I.getCurrentTime())||0)*1E3)};
Ewo=function(I){if(I.onWelcomeCommand)return _.yz(I.onWelcomeCommand);I=_.u(I.inputComposerViewModel,qAa);if(I==null?0:I.welcomeFeatureContinuation)return UlT(I.welcomeFeatureContinuation)};
GEy=function(I){var y=_.NY(),D;D=(D=_.jF("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;ju1(y,D,I)};
X_1=function(I){var y=_.NY(),D;D=(D=_.jF("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;ju1(y,D,I)};
Qko=function(I){return I.filter(function(y){return!_.u(y,_.JT)})};
YAQ=function(I){var y,D,F,R;if(I=I==null?void 0:(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.results)==null?void 0:(R=F.results)==null?void 0:R.contents){var O,w;return(w=(O=I.find(function(v){return!!v.videoPrimaryInfoRenderer}))==null?void 0:O.videoPrimaryInfoRenderer)==null?void 0:w.updatedMetadataEndpoint}};
fyg=function(I,y){var D;return(D=I.sourceConfigs)==null?void 0:D.find(function(F){return F.videoId===y})};
nwG=function(I){return I==="End of video"||I==="End of playlist"};
p_G=function(I){var y,D,F,R;return(y=I.getWatchNextResponse())==null?void 0:(D=y.contents)==null?void 0:(F=D.twoColumnWatchNextResults)==null?void 0:(R=F.playlist)==null?void 0:R.playlist};
m5a=function(I){var y,D,F,R,O,w;return(y=p_G(I))==null?void 0:(D=y.playlistButtons)==null?void 0:(F=D.menuRenderer)==null?void 0:(R=F.topLevelButtons)==null?void 0:(O=R[0])==null?void 0:(w=O.playlistLoopButtonRenderer)==null?void 0:w.playlistLoopStateEntityKey};
M58=function(I){var y=_.nR().resolve(_.rE),D;return(y=(D=_.u(y.getAutoplayEndpoint(),_.t9))==null?void 0:D.playlistId)&&y===I};
d5b=function(I,y,D,F,R){function O(){_.w2.cancelJob(SL);var w=zbG(y,D/I.getPlaybackRate()),v=w.hours,P=w.minutes;w=(w.seconds*1E3||6E4)/I.getPlaybackRate();I.setVideoTimeLeft(kEe(v,P));F&&I.getPlayerState()!==0&&I.setSleepTimerTimeLeft(kEe(v,P,!0));(v>0||P>0)&&!R&&(SL=_.ip(_.w2,O,w))}
_.w2.cancelJob(SL);SL=_.ip(_.w2,O)};
cUo=function(I,y,D){function F(){_.w2.cancelJob(ayC);var R=zbG(y,D),O=R.hours;R=R.minutes;var w=6E4/I.getPlaybackRate();if(O>0||R>0)I.setSleepTimerTimeLeft(kEe(O,R,!0)),ayC=_.ip(_.w2,F,w)}
_.w2.cancelJob(ayC);ayC=_.ip(_.w2,F)};
C9R=function(I,y){var D=I.getVolume()/(y/500),F=function(R){_.w2.cancelJob(WKb);var O=Math.floor(R-D);I.setVolume(O,!1);O>0&&(WKb=_.ip(_.w2,function(){F(O)},500))};
_.w2.cancelJob(WKb);WKb=_.ip(_.w2,function(){F(I.getVolume())})};
Bva=function(I,y){_.w2.cancelJob(WKb);y&&I.syncVolume()};
iVy=function(){var I={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zC("SLEEP_TIMER_DISRUPTED")}}}}};_.nR().resolve(_.MC).resolveCommand(I)};
AUy=function(I){return(I.getDuration()-I.getProgressState().current)*1E3};
zbG=function(I,y){I=I+y-(0,_.m_)();if(I<=0)return{hours:0,minutes:0,seconds:0};var D=new $5G(0,0,0,0,0,0,I);I=D.getHours();y=D.getMinutes();D=D.getSeconds();D!==0&&y++;y!==0&&y%60===0&&(I++,y=0);return{hours:I,minutes:y,seconds:D}};
kEe=function(I,y,D){return I>0&&y>0?D?_.zC("TIME_LEFT_HOURS_MINUTES",{hours:I.toString(),minutes:y.toString()}):_.zC("TIME_HOURS_MINUTES",{hours:I.toString(),minutes:y.toString()}):I>0?D?_.kI("TIME_LEFT_HOURS",I):_.kI("TIME_HOURS",I):D?_.zC("TIME_LEFT_MINUTES",{minutes:y.toString()}):_.zC("TIME_MINUTES",{minutes:y.toString()})};
HVR=function(I,y){if(I.timelyActions)return I.timelyActions.find(function(D){var F;return((F=_.u(D,bV8))==null?void 0:F.cueRangeId)===y})};
ebG=function(I){return _.l("kevlar_watch_cinematics_invisible")||I.fullscreen&&_.l("kevlar_watch_cinematics_invisible_in_fullscreen")||I.theater&&!I.fullscreen&&_.l("kevlar_watch_cinematics_invisible_in_theater")};
TvR=function(){var I=document.createElement("canvas"),y=I.getContext("2d");if(!y)throw Error("Ml");_.v2(I,{position:"absolute",width:"100%",height:"100%"});return{element:I,context:y}};
skb=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.l("kevlar_watch_cinematics_css_blur")};
V5Y=function(I){var y=I.externalVideoId||"";return y?I.isShortsEligible?"https://www.youtube.com/shorts/"+y:"https://www.youtube.com/watch?v="+y:""};
ZVe=function(I){var y=[];I.viewCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:I.viewCount});I.likeCount&&y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:I.likeCount});return y};
gwg=function(I){var y,D,F={"@context":"https://schema.org","@type":"VideoObject",description:_.rY(I.description),duration:"PT"+(I.lengthSeconds||"0")+"S",embedUrl:I.embed?I.embed.iframeUrl:"",name:_.rY(I.title),thumbnailUrl:((y=I.thumbnail)==null?void 0:(D=y.thumbnails)==null?void 0:D.map(function(r){return r&&r.url||""}))||[],
uploadDate:I.publishDate};_.l("mweb_video_schema_id_killswitch")||(F["@id"]=V5Y(I));y=ZVe(I);y.length&&(F.interactionStatistic=y);I.category&&(F.genre=I.category);I.ownerChannelName&&(F.author=I.ownerChannelName);I.liveBroadcastDetails&&(F.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:I.liveBroadcastDetails.startTimestamp,endDate:I.liveBroadcastDetails.endTimestamp}]);if(I.learningResource){I=I.learningResource;F["@type"]=["VideoObject","LearningResource"];var R;if((R=I.learningResourceType)==
null?0:R.length)F.learningResourceType=I.learningResourceType[0];var O;if((O=I.educationalAlignment)==null?0:O.length)F.educationalAlignment={"@type":"AlignmentObject",targetName:I.educationalAlignment[0]};var w;if((w=I.educationalLevel)==null?0:w.length){R=I.educationalLevel[0];var v;if((v=I.educationalLevelCountry)==null?0:v.length)R+=" ("+I.educationalLevelCountry+")";F.educationalLevel=R}var P,K;if(((P=I.learningResourceType)==null?0:P.length)&&I.learningResourceType[0]==="Problem walkthrough"&&
((K=I.problemDescriptions)==null?0:K.length))for(F.hasPart=[],v=_.J(I.problemDescriptions),P=v.next();!P.done;P=v.next())R=P.value,P=R.problemDescriptionText,K=R.startOffset,R=R.url,P&&K!==void 0&&R&&F.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:P,text:P,startOffset:K,url:R})}return F};
I3G=function(I){if((I==null?void 0:I.value)===void 0||I==null||!I.unit)return"initial";a:{switch(I.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var y="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":y="%";break a}y=void 0}return y?""+I.value+y:"initial"};
Dve=function(I,y){var D,F,R,O,w,v,P;_.S(function(K){switch(K.nextAddress){case 1:D=_.Sv.getInstance();F=_.M4.instance;R=_.Lt.instance;if(!R)return ysR(I,F,y),K.return();_.nj(K,2);I.onLoadingCommand&&F.resolveCommand(I.onLoadingCommand);return K.yield(D.getCurrentPositionFromGeolocation(),4);case 4:O=K.yieldResult;if(!I.resolveLocationCommand){K.jumpTo(5);break}w=D.createLocationInfo(O);return K.yield(_.wP(R,I.resolveLocationCommand,{locationInfo:w}),6);case 6:v=K.yieldResult;if(!v||"error"in v&&v.error||
v.errorMetadata)return ysR(I,F,y),K.return();var r;if(v==null?0:(r=v.onResponseReceivedActions)==null?0:r.length){r=_.J(v.onResponseReceivedActions);for(var N=r.next();!N.done;N=r.next())F.resolveCommand(N.value)}(_.u(I.onSuccessCommand,_.t9)||_.u(I.onSuccessCommand,_.kc))&&_.lj(y.hostElement,"yt-navigate",{endpoint:I.onSuccessCommand,reload:!0});case 5:_.lZ(K,0);break;case 2:P=_.dj(K);if(P instanceof GeolocationPositionError&&P.code===GeolocationPositionError.PERMISSION_DENIED)return I.onDeniedCommand&&
F.resolveCommand(I.onDeniedCommand),K.return();ysR(I,F,y);_.Cj(K)}})};
ysR=function(I,y,D){I.onFailureCommand&&(y.resolveCommand(I.onFailureCommand),_.uj(D.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
Rpg=function(I,y){var D=_.u(I,_.i3G);if(D&&y){I=D.videoIds||[D.videoId];var F;y=(F=_.lj(y,"yt-lockup-requested",{videoIds:I}).detail)==null?void 0:F.returnValue;var R;D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?R=y?y:I.map(function(O){return{videoId:O,navigationEndpoint:D.videoCommand}}):y&&(R=y);
R&&(F=R.map(function(O){var w=Object,v=w.assign;var P=O.navigationEndpoint;if(!_.u(P,_.WF)){var K=_.u(P,_.t9);if(K){if(delete K.index,delete K.playlistId,K=_.u(P==null?void 0:P.commandMetadata,_.nE),K==null?0:K.url){var r=K.url;r=_.jk(r,"list");r=_.jk(r,"index");K.url=r}}else P=void 0}return v.call(w,{},O,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:P})}),FPC(F,D))}};
Oxo=function(I){var y=_.xD();if(I=_.u(I,_.Age))I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&y.clearQueue(),I.closeMiniplayer&&_.nR().resolve(_.OI).close(!0)};
Jsa=function(I){LPC(_.xD(),I)};
ww1=function(I){var y;(I=(y=_.u(I,_.CMu))==null?void 0:y.setVideoIds)&&I.forEach(function(D){_.Wbn(_.xD(),D)})};
SRa=function(I){v11(_.xD(),I)};
tza=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(I){return!1}};
Kw=function(I,y,D){(_.l("desktop_keyboard_shortcut_usage_log")||D&&_.l("web_shorts_keyboard_shortcut_usage_log"))&&(y?tc.get(I):PM.get(I))&&(I=y?P0a.get(I):KPb.get(I))&&_.SI(_.VO(),I)};
rsb=function(I){return I.findIndex(function(y){return Uvy.indexOf(y.tagName)>-1})>-1};
jzC=function(I,y){return I.findIndex(function(D){return D.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(y.keyCode):!1};
NTa=function(I,y){return _.t(o1a,{data:I,onYtNavigate:y})};
hp1=function(I,y){return _.nC(I.entities,"pageHeaderEntity",y)};
l3y=function(I,y){return I.map(function(D){if(D.tabRenderer)return xvg(D.tabRenderer);if(D.expandableTabRenderer&&y){var F=D.expandableTabRenderer;return{customTabRenderable:function(){return y(F)}}}return{}})};
xvg=function(I){return{identifier:I.tabIdentifier,aTagConfig:_.FH({innertubeCommand:I.endpoint,forceNewState:!0}),title:I.title,selected:I.selected,disabled:I.unselectable,icon:I.icon}};
E1a=function(I,y,D,F){if(I)return F=F||I.likeStatus,y?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:F==="LIKE",isDisabled:!I.likesAllowed,defaultIcon:{iconType:D},defaultText:F==="LIKE"?I.likeCountWithUnlikeText:I.likeCountText,toggledText:F==="LIKE"?I.likeCountText:I.likeCountWithLikeText,defaultNavigationEndpoint:u9g(I,"LIKE"),defaultServiceEndpoint:qRG(I,"LIKE"),toggledServiceEndpoint:qRG(I,"INDIFFERENT"),defaultTooltip:_.rY(I.likeCountTooltipText),toggledTooltip:_.rY(I.likeCountTooltipText),
targetId:I.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:F==="DISLIKE",isDisabled:!I.likesAllowed,defaultIcon:{iconType:D},defaultText:F==="DISLIKE"?I.dislikeCountWithUndislikeText:I.dislikeCountText,toggledText:F==="DISLIKE"?I.dislikeCountText:I.dislikeCountWithDislikeText,defaultNavigationEndpoint:u9g(I,"DISLIKE"),defaultServiceEndpoint:qRG(I,"DISLIKE"),toggledServiceEndpoint:qRG(I,"INDIFFERENT"),defaultTooltip:_.rY(I.dislikeCountTooltipText),
toggledTooltip:_.rY(I.dislikeCountTooltipText)}};
u9g=function(I,y){if(y==="LIKE")return I.likeCommand;if(y==="DISLIKE")return I.dislikeNavigationEndpoint};
qRG=function(I,y){var D;return(D=I.serviceEndpoints)==null?void 0:D.find(function(F){var R;return((R=_.u(F,_.gb))==null?void 0:R.status)===y})};
GrQ=function(I,y,D,F){I=y-I;D=F-D;return Math.sqrt(I*I+D*D)};
Xwg=function(I){var y=I>>8&255,D=I&255;return"#"+(I>>16&255).toString(16).padStart(2,"0")+y.toString(16).padStart(2,"0")+D.toString(16).padStart(2,"0")};
QzQ=function(I,y){I&&_.nR().resolve(_.MC).resolveCommand(I,{forceClickLogging:!0,form:{element:y}})};
YRb=function(I){if(I.simpleText)return[{text:I.simpleText}];var y;return(y=I.runs)!=null?y:[]};
f3b=function(I){var y=I.startEndTimeTemplate,D=I.startTimeUtcMillis;I=I.endTimeUtcMillis;if(y&&D&&I)return _.Ug(aL1(_.rY(y),Number(D),Number(I)))};
n1C=function(I,y){var D,F,R=I==null?void 0:(D=I.viewCount)==null?void 0:(F=D.videoViewCountRenderer)==null?void 0:F.shortViewCount;if(!y&&R)return R;var O,w;return I==null?void 0:(O=I.viewCount)==null?void 0:(w=O.videoViewCountRenderer)==null?void 0:w.viewCount};
pwT=function(I,y){var D=I==null?void 0:I.relativeDateText;return!y&&D?[D,!0]:[I==null?void 0:I.dateText,!1]};
mva=function(I,y,D,F,R){F=F===void 0?"":F;R=R===void 0?!1:R;var O=n1C(I,y),w=_.J(pwT(I,y)),v=w.next().value;w=w.next().value;y=y?I==null?void 0:I.sponsorsOnlyFirstTimeLongText:I==null?void 0:I.sponsorsOnlyFirstTimeShortText;var P=[];D&&O&&P.push(O);!D&&w||!v||P.push(v);I=[R?I==null?void 0:I.subtitle:void 0].concat(_.Td(P),[y,I==null?void 0:I.stationName,I==null?void 0:I.rating,I?f3b(I):void 0,I==null?void 0:I.upNextProgramText,I==null?void 0:I.superTitleLink]).filter(function(K){return!!K});
D={runs:[]};for(R=0;R<I.length;R++)D.runs.push.apply(D.runs,_.Td(YRb(I[R]))),R<I.length-1&&D.runs.push({text:" "+F+" "});return D};
Mze=function(I,y){var D=_.SsG(y,{},I,!0);return new Promise(function(F,R){D.listenOnce("n",function(){R(Error("Zl`"+D.JSC$30394_getErrorDescription()))});
D.listenOnce("l",function(){var O=D.getResponseCode();if(O!==200)R(Error("$l`"+y+"`"+I.type+"`"+I.size+"`"+O));else try{F(JSON.parse(D.getResponseText()).encryptedBlobId)}catch(w){R(w)}});
D.run()})};
zpe=function(I){return I.substring(I.indexOf(":")+1,I.indexOf(";"))};
krC=function(I){return new Promise(function(y,D){var F=new FileReader;F.onloadend=function(){try{var R=new Uint8Array(F.result);R.length<8&&D(void 0);var O=R.subarray(0,8);R="";for(var w=0;w<O.length;w++)R+=("0"+O[w].toString(16)).substr(-2);R.startsWith("ffd8ff")?y("image/jpeg"):R.startsWith("47494638")?y("image/gif"):R.startsWith("89504e470d0a1a0a")?y("image/png"):R.startsWith("424d")?y("image/bmp"):y(void 0)}catch(v){D(v)}};
F.onerror=D;F.readAsArrayBuffer(I)})};
dv8=function(I){return new Promise(function(y,D){var F=new Image;F.crossOrigin="anonymous";F.onload=function(){var R=document.createElement("canvas");R.width=F.naturalWidth;R.height=F.naturalHeight;var O=R.getContext("2d");if(!O)throw Error("am");O.drawImage(F,0,0);O=zpe(I);R.toBlob(function(w){w?y(w):D()},O)};
F.src=I})};
csG=function(I,y){var D;if(((D=_.u(I,_.WF))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F;_.lj((F=y.hostElement)!=null?F:y,"yt-shorts-reset");_.oWy(_.nR().resolve(_.WY),I).then(function(O){a3b(O,y,I)})}else{var R;
_.E$((R=y.hostElement)!=null?R:y,[I]).then(function(O){O&&a3b(O.data,y,I)})}};
a3b=function(I,y,D){if(I){var F=_.u(I.replacementEndpoint,_.WF);if(F){I.sequenceContinuation&&(F.sequenceParams=I.sequenceContinuation);var R;_.lj((R=y.hostElement)!=null?R:y,"yt-navigate",{endpoint:I.replacementEndpoint})}else if((I==null?void 0:I.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(I==null?0:I.watchStatus)&&_.u(I.watchStatus,_.fjW)){var O;_.lj((O=y.hostElement)!=null?O:y,"yt-navigate",{endpoint:D})}}};
WPT=function(I){var y=_.nR().resolve(_.LM),D=_.LV.currentPageTypeSelector(y.getState())||"";y=_.LV.currentPageSubTypeSelector(y.getState())||"";D=D==="ytd-browse"&&y==="home";return _.l("web_guide_entry_enable_cache_for_non_home_pages")?(I=(I==null?void 0:I.navigationEndpoint)&&_.zF(I.navigationEndpoint)==="home",{disableCache:D&&I}):{disableCache:D}};
ixG=function(I,y,D,F){if(I&&I.length){var R={};if(y){var O=void 0;D&&(O={commandContext:{onTap:{innertubeCommand:D||{}}}});R.header={panelHeaderViewModel:{title:_.Vd(y),rendererContext:O}}}y=[];I=_.J(I);for(D=I.next();!D.done;D=I.next()){O=D.value;D=_.u(O,C0R);O=_.u(O,BTa);var w=void 0,v=void 0;if((w=O)==null?0:(v=w.expandableItems)==null?0:v.length)for(O=_.J(O.expandableItems),w=O.next();!w.done;w=O.next()){w=w.value.guideEntryRenderer;var P=v=void 0;if(((v=w)==null?void 0:(P=v.icon)==null?void 0:
P.iconType)==="VIEW_LIST_CAIRO"){D=w;break}}v=w=void 0;O=((w=D)==null?0:w.formattedTitle)?_.Vd((v=D)==null?void 0:v.formattedTitle):void 0;w=void 0;v=(w=D)==null?void 0:w.isPrimary;if(D&&O&&!v){O={title:O};D.navigationEndpoint&&(O.rendererContext={commandContext:{onTap:{innertubeCommand:D.navigationEndpoint}}});w=[];P=v=void 0;if(((v=D)==null?0:(P=v.thumbnail)==null?0:P.thumbnails)&&D.thumbnail.thumbnails.length>0){v=_.J(D.thumbnail.thumbnails);for(P=v.next();!P.done;P=v.next())w.push({url:P.value.url});
O.leadingAccessory={avatarViewModel:{image:{sources:w},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(v=void 0,(v=D.icon)==null?0:v.iconType)w.push({clientResource:{imageName:D.icon.iconType||""}}),O.leadingImage={sources:w};v=w=void 0;((w=D)==null?0:(v=w.badges)==null?0:v.liveBroadcasting)?(O.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",O.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},O.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
D.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?O.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":D.count&&(O.trailingLabel={content:D.count.toString()});y.push({listItemViewModel:O})}}y.length!==0?(R.content={listViewModel:{listItems:y}},F===0&&(R.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):R=void 0;if(R)return y=void 0,F===0&&(y={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:R}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:y}}}}};
Asg=function(I,y,D,F){if(y!=null&&y.isPrimary){switch(F){case 1:if(y.serviceEndpoint)break;D=ixG(D,y.formattedTitle,y.navigationEndpoint,F);if(!D)break;y.serviceEndpoint=D;y.navigationEndpoint=void 0;break;case 0:!y.mouseEnterEndpoint&&(D=ixG(D,y.formattedTitle,void 0,F))&&(y.mouseEnterEndpoint=D,y.mouseLeaveEndpoint={hideSheetCommand:{}})}I.push({guideEntryRenderer:y})}};
$vQ=function(I){if(!I)return!1;try{if(I.host&&I.host.tagName==="YT-FORMATTED-STRING"&&I.host.id==="contenteditable-textarea"||I.nodeType===Node.ELEMENT_NODE&&I.tagName==="YTD-COMMENT-INPUT")return!0}catch(y){return!1}return $vQ(I.parentNode)};
Uj=function(I){return I?I.tagName==="A"&&I.href&&I.classList.contains("yt-simple-endpoint"):!1};
bx1=function(I){return I?I.tagName==="IMG"&&I.classList.contains("emoji"):!1};
HxG=function(I,y,D){if(!I)return null;var F=Uj(I);if(F&&D)return y=I.pathname.substring(I.pathname.indexOf("/channel/")+9),document.createTextNode("@"+y);if(F&&!D)return document.createTextNode("");if(bx1(I))return D=I.alt,I=I.dataset.emojiId,!I&&y&&(y=_.GE(y,D))&&y.isCustomEmoji&&(I=y.emojiId),I?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+I+">"):document.createTextNode(D);F=I.cloneNode(!1);for(var R=0;R<I.childNodes.length;++R){var O=HxG(I.childNodes[R],y,D);O&&F.appendChild(O)}return F};
epC=function(I){return I?Uj(I)?I:epC(I.lastChild):null};
TTG=function(I){return I?Uj(I)?I:TTG(I.firstChild):null};
sz1=function(I){if(!I)return null;for(var y=I.previousSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.previousSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.previousSibling;else break;(y=epC(y))?I=y:I=(I=I.parentNode)?epC(I.previousElementSibling):null;return I};
Vz1=function(I){if(!I)return null;for(var y=I.nextSibling;y;)if(y.nodeType===Node.ELEMENT_NODE&&y.nodeName==="BR")y=y.nextSibling;else if(y.nodeType===Node.TEXT_NODE&&/\s+/.test(y.textContent))y=y.nextSibling;else break;return(y=TTG(y))?y:Vz1(I.parentNode)};
Zxa=function(I){var y=_.Br(),D=y.JSC$11621_getStartNode();if(!$vQ(D.parentNode))return null;y=y.JSC$11621_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var F=_.gB(D,Uj);if(F){if(I&&y===0||!I&&y===D.length)return F}else{if(I&&y===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.Q0(D.nextElementSibling,"display")==="block"?null:TTG(D.nextElementSibling);if(!I&&y===0)return D?epC(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(I){if(0<=y&&y<D.childNodes.length)return TTG(D.childNodes[y])}else if(0<
y&&y<=D.childNodes.length)return epC(D.childNodes[y-1]);return null};
g1Q=function(I,y,D){if(!I)return null;if(I.nodeType===Node.TEXT_NODE)if(D){var F=sz1(I);if(F&&!/^\s+\S/.test(I.wholeText.substr(0,y)))return F}else if((F=Vz1(I))&&!/\S\s+/.test(I.wholeText.substr(y,I.wholeText.length)))return F;return I.nodeType===Node.ELEMENT_NODE?D?sz1(I.childNodes[y]):Vz1(I.childNodes[y]):g1Q(I.parentNode,y,D)};
I$b=function(I){if(I.hasChildNodes())switch(I.tagName){case "DIV":case "A":case "SPAN":var y="";for(I=I.firstChild;I;I=I.nextSibling)y+=I$b(I);return y;default:return""}else switch(I.nodeType){case 3:return I.textContent;default:return""}};
yTy=function(I){switch(I){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"}};
D0G=function(I){return I.map(function(y){return{settingsRadioOptionRenderer:{title:_.ql(y.name),asideText:_.ql(y.approximateSize),id:yTy(y.format)}}})};
RMo=function(I){if(I&&I.length!==0)return I.filter(FrZ()).map(function(y){return{settingsRadioOptionRenderer:{title:y.name,asideText:y.approximateSize,id:yTy(y.formatType)}}})};
Oze=function(I){if(I)return I.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
LrQ=function(I,y){I=new Set(I!=null?I:[]);if(I.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(I.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(I.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(I.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(I.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(y)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
JTR=function(I){var y=I.indexOf("(");return y!==-1?I.substring(y+1,I.length-1):I};
_.vme=function(I,y,D,F,R){D||(D=wny);var O;(O=_.u(D.commandMetadata,_.nE))!=null&&O.url||(D=Error("fm`"+JSON.stringify(D)),_.vu(D),D=wny);D=_.e$.unsafeClone(D);O=_.rI(_.u(D.commandMetadata,_.nE).url,"search_query",I);_.rR(location.href,"sv")==="1"&&(_.u(D,_.dY).params="EgOAAgE%3D",O=_.rI(O,"sv","1"));_.u(D,_.dY)&&(_.u(D,_.dY).query=I);O=O.replace(/%20/g,"+");_.u(D.commandMetadata,_.nE).url=O;R=_.l("desktop_enable_entity_suggest")?{entityMid:R}:{};_.nR().resolve(_.MC).resolveCommand(D,{form:{tempData:Object.assign({},
{gs_l:y,oq:F!=null?F:I},R),isFromShorts:_.KV()==="shorts"}})};
SIC=function(I){switch(I){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
PyT=function(I,y,D,F,R,O){var w=_.e$.clone(t01);w.locale=_.Pi("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;w.report={description:R||"<empty>"};R=_.Pi("SBOX_SETTINGS",{});y=y.join(",");var v=Date.now();I={choice_cc:F,choice_id_cc:D,choices_sc:y,gl:R.REQUEST_DOMAIN,hl:R.REQUEST_LANGUAGE,query:I,time:v};O&&(I.choice_additional_comment_cc=O);_.rrG(w,I)};
Kro=function(I){var y=new Map;y.set("authuser",_.Pi("SESSION_INDEX","0"));return _.G_(I,y)};
rTa=function(I){var y;return _.S(function(D){switch(D.nextAddress){case 1:if(!I||!U0C(I))return D.return(null);y=null;switch(_.Pi("INNERTUBE_CLIENT_NAME")){case "WEB":return D.jumpTo(2);case "WEB_REMIX":y=I.getPlayer()}D.jumpTo(3);break;case 2:return D.yield(I.getPlayerPromise(),4);case 4:y=D.yieldResult;D.jumpTo(3);break;case 3:return D.return(y)}})};
U0C=function(I){return["ytd-player","ytmusic-player"].includes(String(I.tagName||"").toLowerCase())};
jLa=function(I){I=Math.round(I);return I%2?I-1:I};
omZ=function(I){I=Math.round(I);return I%2===0?I-1:I};
NuT=function(I){var y=["h","m","s"],D=_.C5(y);D.reverse();var F={};I=(I.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(w){var v=(w.match(/[hms]/)||[""])[0];return v?(F[v]=parseInt(w.match(/\d+/)[0],10),!1):!0});
for(I.reverse();I.length&&D.length;){var R=D.shift();R in F||(F[R]=parseInt(I.shift(),10))}if(I.length||F.s>59||F.m>59||F.h>9)return null;var O="";y.forEach(function(w){F[w]&&(O+=""+F[w]+w)});
return O||null};
hM8=function(I){var y,D,F;if(I=(y=I.createPlaylistDialogFormSchema)==null?void 0:(D=y.fieldSchemas)==null?void 0:(F=D.title)==null?void 0:F.validationSchema)for(y=[I.syncStep,I.asyncStep].filter(function(R){return R!==void 0}),y=_.J(y),D=y.next();!D.done;D=y.next()){D=D.value.rules;
if(!D)break;D=_.J(D);for(D=D.next();!D.done;D=D.next())return _.u(D.value,wSg)}};
l$g=function(I){var y,D,F;if(I=(y=I.createPlaylistDialogFormSchema)==null?void 0:(D=y.fieldSchemas)==null?void 0:(F=D.visibility)==null?void 0:F.validationSchema)for(y=[I.syncStep,I.asyncStep].filter(function(R){return R!==void 0}),y=_.J(y),D=y.next();!D.done;D=y.next()){D=D.value.rules;
if(!D)break;D=_.J(D);for(F=D.next();!F.done;F=D.next())if(F=_.u(F.value,x0T))return y=void 0,(y=F.translations)==null?void 0:y.visibilityNotValidErrorMessage}};
uqa=function(){var I,y;return(y=(I=_.nR().resolve(_.fR(_.cS)))==null?void 0:I())!=null?y:!1};
qIb=function(I){var y=21;if(!I)return y;y+=I.headerTitle?27:0;y+=I.headerTitle&&I.hasHeaderActionHeader?4:0;return y+=I.headerTitle&&I.headerSubtitle?16:0};
EmR=function(I){var y=0;if(!I)return y;y+=I.hasFooterPrimaryButton||I.hasFooterSecondaryButton?48:0;y+=I.footerTrailingLabel||I.footerLeadingLabel?30:0;return y+=I.hasFooterPrimaryButton||I.hasFooterSecondaryButton||!I.footerTrailingLabel&&!I.footerLeadingLabel?0:12};
Gpo=function(I){var y=new _.bP,D=I;return{subscribe:function(F){y.subscribe("changed",F)},
dispatch:function(F,R){var O=D;if(F==="Touch Start")D=Object.assign({},O,{isAnimating:!1,initialY:R.event.touches[0].clientY});else if(F==="Touch Move"){F=R.contentScrollable?-1*(O.initialY-24):0;var w,v=(w=R.headerDivHeight)!=null?w:qIb(R.header),P;w=(P=R.footerDivHeight)!=null?P:EmR(R.footer);P=Math.min(R.fullContentWrapperHeight,R.heightMap[R.contentWrapperId]+v-w);D=Object.assign({},O,{currentY:Math.max(F,R.event.touches[0].clientY-O.initialY),maxHeightForContentWrapper:Math.min(P,Math.max(0,
(O.isFullScreen?P:R.contentWrapperHeight)-O.currentY))})}else D=F==="Snap To Full Screen"?Object.assign({},O,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:R.maxHeight}):F==="Snap To Neutral Position"?Object.assign({},O,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:R.maxHeight}):F==="Close Sheet"?Object.assign({},O,{isAnimating:!0,currentY:R.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:R.maxHeight}):O;y.publish("changed",D)}}};
XnT=function(){_.nR().resolve(_.DP).closeSheet()};
QLe=function(I){var y,D,F,R,O,w,v,P,K,r,N;return{headerTitle:(y=I.headerTitle)==null?void 0:y.call(I),headerSubtitle:(D=I.headerSubtitle)==null?void 0:D.call(I),headerActionHeader:I.headerActionHeader,footerPrimaryButton:I.footerPrimaryButton,footerSecondaryButton:I.footerSecondaryButton,footerButtonType:(F=I.footerButtonType)==null?void 0:F.call(I),footerLeadingLabel:(R=I.footerLeadingLabel)==null?void 0:R.call(I),footerTrailingLabel:(O=I.footerTrailingLabel)==null?void 0:O.call(I),shouldShowIcons:(w=
I.shouldShowIcons)==null?void 0:w.call(I),skipContentClick:(v=I.skipContentClick)==null?void 0:v.call(I),additionalClassName:(P=I.additionalClassName)==null?void 0:P.call(I),onClosedCallback:I.onClosedCallback,focusOnClose:(K=I.focusOnClose)==null?void 0:K.call(I),isDisabled:(r=I.isDisabled)==null?void 0:r.call(I),disabledCommand:(N=I.disabledCommand)==null?void 0:N.call(I),headerFn:I.headerFn,contentFn:I.contentFn,footerFn:I.footerFn,hasHeaderFn:I.hasHeaderFn(),hasContentFn:I.hasContentFn(),hasFooterFn:I.hasFooterFn(),
hasFooterPrimaryButton:I.hasFooterPrimaryButton(),hasFooterSecondaryButton:I.hasFooterSecondaryButton(),hasHeaderActionHeader:I.hasHeaderActionHeader()}};
YIQ=function(I){switch(I){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""}};
f$G=function(I){switch(I){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""}};
nmY=function(I){switch(I){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""}};
pnR=function(I,y,D){y.forEach(function(F){_.Cb(_.nR().resolve(_.gi),F)});
_.uj(I,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",D])};
kp8=function(I,y,D,F){var R=_.u(D,_.j1).commandLifeCycleConfig;R&&R.onStartCommand&&_.GC(I,[R.onStartCommand],y);_.Rz(y);var O=_.Lt.instance;O&&_.JZ(O,D)?_.wP(O,D,F).then(function(w){if(!w||(w==null?0:w.error))return w=_.u(D,_.j1).serializedTransactionFlowLoggingParams,_.OR(y),_.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",w));_.OR(y);return{data:w}}).then(function(w){_.OR(y);
m0Z(w.data);var v=w.data.command;v&&_.GC(I,[v],y);v=M0Q(D,w.data);if(!v){var P=w.data;w=!1;if(P&&P.command&&_.u(P.command,_.Q_)){var K;P=((K=_.u(P.command,_.Q_))==null?void 0:K.commands)||[];for(K=0;K<P.length;K++)if(_.u(P[K],_.OFe)){w=!0;break}}w||_.ZI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!v&&R&&R.onSuccessCommand?_.GC(I,[R.onSuccessCommand],y):v&&R&&R.onFailureCommand&&_.GC(I,[R.onFailureCommand],y)},function(){_.OR(y);
R&&R.onFailureCommand&&_.GC(I,[R.onFailureCommand],y);zMy(D)}):_.vu(Error("rm"),"ERROR")};
d0o=function(I,y,D){var F=[y];D&&F.push(D);return _.E$(I,F).then(function(R){var O=_.u(y,_.j1).serializedTransactionFlowLoggingParams,w=R.data,v=M0Q(y,w);v?R=_.eE(new rF(v,O)):m0Z(w);return R},function(){var R=_.u(y,_.j1).serializedTransactionFlowLoggingParams;
zMy(y);return _.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",R))})};
M0Q=function(I,y){I=_.u(I,_.j1).serializedTransactionFlowLoggingParams;var D=null;switch(y.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?_.Kg(D,I):vIo(I);return D};
zMy=function(I){_.Kg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.u(I,_.j1).serializedTransactionFlowLoggingParams)};
m0Z=function(I){if(I.trackingParams){var y=_.VO(),D=_.s_();y&&D&&_.Oc(y,D,_.AC(I.trackingParams))}};
a$8=function(I,y,D){var F=_.Lt.instance,R=_.r6q(_.Pi("YPC_MB_URL")),O=(new _.KRo).init(),w=_.UfH(),v=_.u(D,_.yhM).languageCode;v===void 0?_.vu(Error("Li"),"ERROR"):_.yL([O,R]).then(function(){var P={ctk:_.x1.payments.business.integration.ClientTokenFactory.createClientToken(v,w)};F&&_.JZ(F,D)?_.wP(F,D,P).then(function(K){return{data:K}}).then(function(K){_.lj(y,"yt-service-request-completed",K);
K.code!=="ERROR"&&(K=K.data.command)&&_.GC(I,[K],y)}):_.vu(Error("rm"),"ERROR")})};
CyC=function(I,y,D,F){var R=_.Lt.instance;R&&_.JZ(R,D)?_.wP(R,D,F).then(function(O){return{data:O}}).then(function(O){cTy(I,y,D,O)},function(){WrY(D)}):(R=_.nR().resolve(_.fR(_.BF)))&&R.requestDataForServiceEndpoint(D,F).then(function(O){cTy(I,y,D,O)},function(){WrY(D)})};
cTy=function(I,y,D,F){_.lj(y,"yt-service-request-completed",F);if(F.code&&F.code=="ERROR")WrY(D);else{(F=F.data.commands)&&_.GC(I,F,y);var R;(I=(R=_.u(D,_.Jhc))==null?void 0:R.serializedYpcPauseFlowLoggingParams)&&I&&LK("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",I)}};
WrY=function(I){var y;(I=(y=_.u(I,_.Jhc))==null?void 0:y.serializedYpcPauseFlowLoggingParams)&&I&&LK("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
ATC=function(I,y,D){var F=_.Lt.instance;F&&_.JZ(F,D)?_.wP(F,D).then(function(R){return{data:R}}).then(function(R){Bua(I,y,D,R)},function(){iz1(D)}):(F=_.nR().resolve(_.fR(_.BF)))&&F.requestDataForServiceEndpoint(D).then(function(R){Bua(I,y,D,R)},function(){iz1(D)})};
Bua=function(I,y,D,F){_.lj(y,"yt-service-request-completed",F);F.code&&F.code=="ERROR"?iz1(D):((F=F.data.commands)&&_.GC(I,F,y),(I=_.u(D,_.w7c).serializedYpcResumeFlowLoggingParams)&&I&&LK("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",I))};
iz1=function(I){(I=_.u(I,_.w7c).serializedYpcResumeFlowLoggingParams)&&I&&LK("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
$0o=function(I){I=I===void 0?{}:I;_.nR().resolve(_.eCg).showFeedbackDialog(I.customProductData,I.feedbackContent,I.onFeedbackSubmitted,I.bucket)};
bza=function(I){I=I===void 0?{}:I;_.nR().resolve(_.eCg).showHelpDialog(I.helpContext,I.articleId,I.productData)};
Hze=function(){bza()};
eMG=function(){$0o()};
sLo=function(I,y,D){var F,R,O,w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:F=_.u(I,TuQ);if((R=F)==null?0:R.productId){P={productId:F.productId,bucket:F.bucket,enableAnonymousFeedback:(v=F.enableAnonymousFeedback)!=null?v:!0,allowNonLoggedInFeedback:!0};K={feedbackChoice:D.feedbackChoice};if(!_.l("web_collect_offline_state")){r.jumpTo(8);break}_.nj(r,9);return r.yield(FdC(K),11)}w={bucket:(O=F)==null?void 0:O.bucket};if(!_.l("web_collect_offline_state")){r.jumpTo(4);break}w.customProductData=
{};_.nj(r,5);return r.yield(FdC(w.customProductData),7);case 7:_.lZ(r,4);break;case 5:_.dj(r);case 4:$0o(w);r.jumpTo(0);break;case 11:_.lZ(r,8);break;case 9:_.dj(r);case 8:_.yFH(K),_.Ize("GFEEDBACK",K),F.productId==="5295751"&&(K.client_attestation=Number(_.Pi("CATSTAT",0))),F.productId==="5295751"&&(K.client_time=Date.now()/1E3/3600),F.productId==="5295751"&&(K.original_playback_id=_.ZoW||""),_.rrG(P,K),_.Cj(r)}})};
V0g=function(I){if(I=_.u(I,_.RKq)){var y={bucket:I.bucketIdentifier};I.additionalDatas&&(y.customProductData={},I.additionalDatas.forEach(function(D){if(D=D.userFeedbackEndpointProductSpecificValueData)y.customProductData[D.key]=D.value}));
$0o(y)}};
Zz8=function(I){var y=_.uK.getInstance();var D=_.zC("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var F=_.zC("DELETE",void 0,"Delete"),R=_.zC("CANCEL",void 0,"Cancel");D=YNC(D,void 0,F,R,{signal:"DELETE_ALL_DOWNLOADS"});_.RZ(y,[{openPopupAction:D}],I)};
Ih1=function(){return _.S(function(I){return I.nextAddress==1?I.yield(_.nR().resolve(_.vL),2):I.yield(gmy(),0)})};
y4y=function(I){var y,D;return _.S(function(F){return F.nextAddress==1?(D=(y=_.u(I,_.hq))==null?void 0:y.targetId)?F.yield(_.nR().resolve(_.vL),3):F.jumpTo(0):F.yield(_.nR().resolve(_.wg).deleteVideo(D),0)})};
FVg=function(I){var y,D;return _.S(function(F){return F.nextAddress==1?(D=(y=_.u(I,_.hq))==null?void 0:y.targetId)?F.yield(_.nR().resolve(_.vL),3):F.jumpTo(0):F.yield(DV8(_.nR().resolve(_.wg),D),0)})};
O2a=function(I){var y,D;return _.S(function(F){return(D=(y=_.u(I,_.hq))==null?void 0:y.targetId)?F.yield(RvC(D),0):F.jumpTo(0)})};
J4G=function(){_.l("kevlar_woffle_refresh_dl_load_killswitch")||LVY()};
vXa=function(){_.l("kevlar_woffle")&&_.vp.instance&&wqR()};
tqa=function(I){var y;if((y=_.u(I,_.mC))==null||!y.videoId)return!1;SmZ(_.nR().resolve(_.wg),_.u(I,_.mC),I.clickTrackingParams);return!0};
KVa=function(I){var y;if((y=_.u(I,_.MY))==null||!y.playlistId)return!1;P7b(_.nR().resolve(_.wg),_.u(I,_.MY),I.clickTrackingParams);return!0};
r4y=function(I){var y=_.u(I,_.Am_);(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(y==null?void 0:y.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||UVT(_.nR().resolve(_.wg),_.u(I,_.Am_))};
oXY=function(I){I=_.u(I,_.NiM);var y;(I==null?0:(y=I.actions)==null?0:y.length)&&jhZ(I)};
xVe=function(I){var y,D;return _.S(function(F){y=_.u(I,NJe);return(D=y)!=null&&D.localWatchHistoryCommandType?F.yield(hvG(y),0):F.return()})};
udC=function(){return _.S(function(I){return _.l("kevlar_enable_download_to_mobile")?I.yield(lhG(),0):I.return()})};
qma=function(I){setTimeout(function(){requestAnimationFrame(I)},80)};
EXY=function(I){return Object.entries(I).map(function(y){return y.join(":")}).join(";")};
Xqy=function(I){var y,D,F;_.S(function(R){if(R.nextAddress==1)return R.yield(GQo(),2);y=R.yieldResult;D=_.M4.instance;switch(y){case "granted":F=I.getLocationCommand;break;case "denied":F=I.openDeniedDialogAction;break;case "prompt":F=I.openCollectionDialogAction;break;default:F=I.openCollectionDialogAction}F&&D.resolveCommand(F);_.Cj(R)})};
GQo=function(){var I,y;return _.S(function(D){if(D.nextAddress==1)return I="prompt",navigator.permissions?D.yield(navigator.permissions.query({name:"geolocation"}),3):D.jumpTo(2);D.nextAddress!=2&&(y=D.yieldResult,I=y.state);return D.return(I)})};
YmT=function(){_.S(function(I){return I.yield(_.Qhb(),0)})};
fhC=function(){var I,y,D;return _.S(function(F){if(F.nextAddress==1)return I=_.nR().resolve(_.iX),I?F.yield(_.wP(I,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.tq(Error("um")),F.return(void 0));if(y=F.yieldResult){if(y.errorMetadata)return _.tq(Error("vm`"+y.errorMetadata.status+"`"+y.error)),F.return(void 0);D=y.datasyncIds;_.JYo=D.length;return F.return(D)}_.tq(Error("wm"));return F.return(void 0)})};
nXT=function(){fhC().then(function(I){I&&(OZa(I),r91(I),nia(I),OCZ(I))})};
pqa=function(I){_.w2.addLowPriorityJob(function(){var y,D,F,R,O;return _.S(function(w){switch(w.nextAddress){case 1:if(_.l("ytidb_clear_optimizations_killswitch")){w.jumpTo(2);break}y=_.VV("clear");if(y.startsWith("V")&&y.endsWith("||")){var v=[y];OZa(v);r91(v);nia(v);OCZ(v);return w.return()}D=px8();F=LdR();return w.yield(j1e(),3);case 3:return R=w.yieldResult,w.yield(LDC(),4);case 4:if(O=w.yieldResult,!(D||F||R||O))return w.return();case 2:I.isNetworkAvailable()?nXT():I.listenOnce("publicytnetworkstatus-online",
nXT),_.Cj(w)}})})};
jL=function(I){I={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Ug(I)}}}};_.M4.instance&&_.M4.instance.resolveCommand(I)};
mV1=function(I){if(I){var y=_.W4();_.d7(y,3854,void 0,{layer:0,parentLayer:4});switch(I){case 1:var D=238708;break;case 2:D=238715;break;case 3:D=238710;break;case 6:D=238709}D&&(I=_.c4(y,{veType:D}))&&_.W0(y,I)}};
MqZ=function(I){if(I){var y=_.W4();_.d7(y,3854,void 0,{layer:0,parentLayer:4});switch(I){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&&(I=_.c4(y,{veType:D}))&&_.W0(y,I)}};
zvy=function(I){switch(I.latencyType){case 0:_.s$("consent_primitive_flow");_.V_("cpit",I.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.V_("cpist",I.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.V_("cprtif",I.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.V_("cprtli",I.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.V_("cprt",I.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.V_("cpdt",I.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.V_("cpjct",I.timestampEpochMillis,"consent_primitive_flow")}};
H2G=function(I,y){var D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H;return _.S(function(e){switch(e.nextAddress){case 1:_.nj(e,2);(F=(D=_.u(I,kQb))==null?void 0:D.serializedConsentRequest)||(F=(R=_.u(I,dV1))==null?void 0:R.serializedConsentRequest);F&&(O=ahy(_.ZC(F)));if(O===void 0)return e.return();w=c4g(O);w.latencyCallback=zvy;y&&WVG(w,function(){y.then(function(T){T.pauseVideo();(new C7Z).increment()})});
return((v=_.u(I,kQb))==null?void 0:v.consentAction)==="CONSENT_ACTION_PREWARM"||((P=_.u(I,dV1))==null?void 0:P.consentAction)==="CONSENT_ACTION_PREWARM"?e.yield(BJa(w),5):e.yield(i2Y(w),6);case 6:K=e.yieldResult;r=_.Bn(K,o9);if(r===1){if(((N=_.gu(K,A4R,1,o9))==null?void 0:_.sI(N,1))===1||((h=_.gu(K,A4R,1,o9))==null?void 0:_.sI(h,1))===2||((x=_.gu(K,A4R,1,o9))==null?void 0:_.sI(x,1))===3)_.u(I,dV1)?jL(_.zC("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
jL(_.zC("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));mV1((q=_.gu(K,A4R,1,o9))==null?void 0:_.sI(q,1),_.hv(K,$VZ,3,_.xW()))}else r===2?(((X=b2e(K))==null?void 0:_.sI(X,1))===5?_.u(I,dV1)?jL(_.zC("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):jL(_.zC("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((f=b2e(K))==null?void 0:_.sI(f,1))===1||((m=b2e(K))==null?void 0:_.sI(m,1))===4?
jL(_.zC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((z=b2e(K))==null?void 0:_.sI(z,1))===7&&((B=O)==null?void 0:(C=_.kk(B,NW,4))==null?void 0:_.sI(C,4))!==1&&jL(_.zC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),MqZ((H=b2e(K))==null?void 0:_.sI(H,1))):jL(_.zC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));e.jumpTo(5);break;case 5:_.lZ(e,0);break;case 2:_.dj(e),jL(_.zC("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Cj(e)}})};
TJo=function(){if(!eva.has("Worker")){eva.set("Worker",!0);var I={api:"BROWSER_API_WEB_WORKER"};I.available="Worker"in window?!0:!1;_.Jq("apiTest",I)}};
shC=function(I){return typeof I==="undefined"?"-1":String(Math.ceil(I/1048576))};
IwR=function(I,y){VqZ(new Z2b(_.u(y,gXg).addToken,_.u(y,gXg).commonToken)).then(function(){_.lj(I,"yt-invoke-instrument-manager-action-completed")},function(D){_.lj(I,"yt-invoke-instrument-manager-action-error",D)})};
hc=function(){return _.Pi("HTML_DIR")==="rtl"};
yPa=function(){var I,y;return(y=(I=window).matchMedia)==null?void 0:y.call(I,"(prefers-reduced-motion: reduce)").matches};
DO8=function(I){var y=_.nR().resolve(_.fR(_.et));if(y&&y.isAnyTransitionEnabled){var D={};y.viewTransitionCoordinator.registerElement(I,(D.slide="miniplayer-page-transition",D["lockup-to-watch"]="miniplayer-page-transition",D["learning-journey"]="miniplayer-page-transition",D))}};
FWC=function(I,y,D){return{horizontalAlignment:I.x+D.width/2<y.width/2?"west":"east",verticalAlignment:I.y+D.height/2<y.height/2?"north":"south"}};
OAa=function(I,y,D,F,R){R=R===void 0?new _.XO(0,0):R;I=Rre(I,y,D,F,!1);return new _.XO(I.x+R.x,I.y+R.y)};
Rre=function(I,y,D,F,R){R=(R===void 0?0:R)?400:0;return new _.XO(I==="west"?16+(hc()?R:0):D.width-F.width-16-(hc()?0:R),y==="north"?16:D.height-F.height-16)};
LWy=function(I,y){var D=0;I&&(D+=76);y&&(D+=285);return D};
JPZ=function(I){return _.Fd(I)};
w2y=function(I){var y=1;I=I.split(":");for(var D=[];y>0&&I.length;)D.push(I.shift()),y--;I.length&&D.push(I.join(":"));return D};
vRb=function(I){var y=new _.dC;return _.Ih(y,11,I)};
S5y=function(I){var y={};I=I.getAllResponseHeaders().split("\r\n");for(var D=0;D<I.length;D++)if(!_.wq(I[D])){var F=w2y(I[D]),R=F[0];F=F[1];if(typeof F==="string"){F=F.trim();var O=y[R]||[];y[R]=O;O.push(F)}}return _.e$.map(y,function(w){return w.join(", ")})};
NHT=function(I,y){return I.JSC$10072_xhr_?I.JSC$10072_xhr_.getResponseHeader(y):null};
teC=function(I,y){if(I.isDisposed())throw Error("Ea");I.dW.j0("n");var D=_.vv(I.dW,function(){return I.u2z([y.jH,y.klc,y.udY,y.bYs])},"n");
I.dW.xlf(D.length);I.dW.oB();return D};
Pbg=function(I,y,D){Array.isArray(D)||(D=[String(D)]);_.cOO(I.JSC$10308_queryData_,y,D);return I};
KWg=function(I){var y=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.zM(I);I.keyMap_.forEach(function(D,F){_.kA(y,F)||this.remove(F)},I)};
wqR=function(){var I=_.vp.instance;_.S(function(y){return I.deferredInstallPrompt?y.yield(I.deferredInstallPrompt.prompt(),0):y.jumpTo(0)})};
UOe=function(I,y,D){if(_.i_(I))_.hG(I,y,D);else for(I=_.c9n(I);;){var F=I.next();if(F.done)break;y.call(D,F.value,void 0,I)}};
rPY=function(I,y){var D=[];UOe(y,function(F){try{var R=_.Tt.prototype.getWrapper.call(this,F,!0)}catch(O){if(O=="Storage: Invalid value was encountered")return;throw O;}R===void 0?D.push(F):_.aLM(R)&&D.push(F)},I);
return D};
jVQ=function(I,y){rPY(I,y).forEach(function(D){_.Tt.prototype.remove.call(this,D)},I)};
jRC=function(I){var y=_.SJ;y._minimumZ=Math.max(y._minimumZ,I)};
oRa=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];NCa=function(I,y){_.rM(I.vm);I.vm=y};
hry=function(I,y,D,F){I.setState(5);var R=!!I.mKf&&oRa.includes(_.GP(I.mKf)||"");try{var O=new _.SU({program:y,globalName:D,rKt:{disable:!_.l("att_web_record_metrics")||!_.l("att_skip_metrics_for_cookieless_domains_ks")&&R,uR:"aGIf"}});O.oTt.then(function(){I.setState(6);F&&F(y)});
NCa(I,O)}catch(w){I.setState(7),w instanceof Error&&_.tq(w)}};
xOe=function(I,y,D,F,R,O){var w=w===void 0?"trayride":w;D?(I.setState(2),_.R1(_.Ve(D),function(){if(window[w])hry(I,F,w,R);else{I.setState(3);var v=_.bhC(D),P=document.getElementById(v);P&&(_.QuB(v),P.parentNode.removeChild(P));_.tq(new _.g6("BL:ULB",D))}},O)):y?(O=_.kW("SCRIPT"),y instanceof _.SY?_.Kj(O,y):O.textContent=y,O.nonce=_.vd(document),document.head.appendChild(O),document.head.removeChild(O),window[w]?hry(I,F,w,R):(I.setState(4),_.tq(new _.g6("BL:ULBJ")))):_.tq(new _.g6("BL:ULV"))};
lwC=function(){this.state=1;this.vm=null;this.mKf=void 0};
_.L=lwC.prototype;_.L.initialize=function(I,y,D,F){this.mKf=F;if(I.program){var R;F=(R=I.interpreterUrl)!=null?R:null;if(I.interpreterSafeScript)R=_.T4A(I.interpreterSafeScript);else{var O;R=(O=I.interpreterScript)!=null?O:null}I.interpreterSafeUrl&&(F=_.vP(I.interpreterSafeUrl).toString());xOe(this,R,F,I.program,y,D)}else _.tq(Error("tf"))};
_.L.isInitialized=function(){return!!this.vm};
_.L.getState=function(){return this.state};
_.L.isLoading=function(){return this.state===2};
_.L.invoke=function(I){I=I===void 0?{}:I;var y;this.vm?y=teC(this.vm,{jH:I}):y=null;return y};
_.L.dispose=function(){NCa(this,null);this.setState(8)};
_.L.setState=function(I){this.state=I};
var u61=function(I,y){return I.vm.snapshot(y)},q5Q=function(I,y){var D=_.kf("botguard_async_snapshot_timeout_ms",3E3);
y=y===void 0?{}:y;D=D===void 0?3E3:D;return I.vm?new Promise(function(F,R){var O=!1,w=_.w2.addJob(function(){O=!0;R(Error("uf"))},1,D);
I.vm?u61(I,{jH:y}).then(function(v){_.w2.cancelJob(w);O||F(v)}).catch(function(v){_.w2.cancelJob(w);
O||R(v)}):(_.w2.cancelJob(w),F(null))}):Promise.resolve(null)},ER1=["att/log"],wny;
wny={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var GIT={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},X2G=function(I,y){return _.dH(I,{mode:"readwrite",enableRetries:!0},function(D){return _.qYJ(D,y,"settingEntity")})},QRZ=function(I,y,D){return _.dH(I,{mode:"readonly",
enableRetries:!0},function(F){return _.pJa(F,y,D)})},Y5C=function(I){if(!I.storage)return!1;
a:{if(I.storage){try{var y=I.storage.get("TLPQtimestamp")}catch(D){}I=Number(y);if(!isNaN(I))break a}I=void 0}return I?Date.now()-I<864E5:!1},fwa=function(I){if(I.storage){try{var y=I.storage.get("TLPQindex")}catch(D){}I=Number(y);
if(!isNaN(I))return I}},xo=function(I){var y=_.oJ();
return _.pA_(y,I,1)},nRa=function(I,y){I.queueProxy&&y.forEach(function(D){if(D.videoId&&D.trackingParams&&I.queueProxy instanceof _.Pf){var F=_.VO();
I.queueProxy.attributionData.set(D.videoId,{enqueueingVe:_.AC(D.trackingParams).getAsJson(),enqueueingCsn:F?F:void 0,clientEnqueueingTimeMs:Math.floor((0,_.m_)()).toString()})}})},p2a=function(I){var y=_.jxM(I);
y!=I.currentSnapState_&&(I.currentSnapState_=y,I.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},lw=function(I){this.JSC$13499_networkManager_=I;
this.partCallbacks_=[]};
lw.prototype.getCacheKeyForEndpoint=function(I){return _.SKo(I,!1)};
lw.prototype.onPartsCallback_=function(I){this.partCallbacks_.forEach(function(y){I&&y(I)})};
var uw=function(I,y,D){lw.call(this,I);this.player_=y;this.autoplayData_=D};
_.E(uw,lw);uw.prototype.getCacheKeyForEndpoint=function(I){return _.SKo(I,!!this.autoplayData_)};
uw.prototype.getTempData=function(I,y){y=y.timeBeforeNextVideo;I={itct:I.clickTrackingParams,lact:_.m$(),pbis:y,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(I.autonav=1);return I};
uw.prototype.getXhrParams=function(I){return Object.assign({pbj:"prefetch"},I)};
uw.prototype.getParams=function(I){I={frags:I.fragmentsRequested.join(",")};_.l("kevlar_droppable_prefetchable_requests")&&(I.prefetch=1);return I};
var mOa=function(I){I.playerEvents_.forEach(function(y){I.player.removeEventListener(y.eventName,y.callback)});
I.playerEvents_.length=0},Meg=function(I,y,D){this.player=I;
this.JSC$13509_taskManager=y;this.prefetchDelay=D;this.completionResolver_=null;this.playerEvents_=[]};
Meg.prototype.start=function(){var I=this;this.completionResolver_=_.vS();_.D1(this.completionResolver_.promise,function(){mOa(I);I.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var zrY=function(I,y,D){I.player.addEventListener(y,D);I.playerEvents_.push({eventName:y,callback:D})},kIa={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},dOa={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},aw1=function(I,y,D){Meg.call(this,I,y,D);this.cueId_="playbackTrigger-"+Math.random()};
_.E(aw1,Meg);
aw1.prototype.prepareTrigger=function(I){var y=this,D=this.player.getDuration(),F=this.player.getVideoData(),R=F.isLive&&F.hasProgressBarBoundaries;if(R&&F.progressBarEndPositionUtcTimeMillis){var O=F.progressBarEndPositionUtcTimeMillis/1E3;isNaN(O)||(D=O)}var w=0;this.prefetchDelay>=0?R?F.progressBarStartPositionUtcTimeMillis&&(F=F.progressBarStartPositionUtcTimeMillis/1E3,isNaN(F)||(w=F+this.prefetchDelay)):w=this.prefetchDelay:w=D+this.prefetchDelay;R?this.player.addUtcCueRange(this.cueId_,w,D):
this.player.addCueRange(this.cueId_,w,D);_.D1(I.promise,function(){y.player.removeCueRange(y.cueId_)});
zrY(this,"onCueRangeEnter",function(v){v==y.cueId_&&I.resolve(D-w)})};
var cPo=function(I,y){I.fragmentConfiguration_[y].requiredKeys.every(function(D){return!!I.prefetchedData_[D]})&&(I.validatedFragments_.push(y),y=I.missingFragments_.indexOf(y),y!==-1&&I.missingFragments_.splice(y,1))},WWG=function(I){I.prefetchedFragments_.forEach(function(y){cPo(I,y)})},Cba=function(I,y,D){this.pageFragments_=I;
this.prefetchedFragments_=y;this.fragmentConfiguration_=dOa;this.prefetchedData_=D;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;WWG(this)},BCQ=function(){},iAb=function(I){this.JSC$13523_playlistManager_=I};
_.E(iAb,BCQ);iAb.prototype.getPrefetchEndpoint=function(){return this.JSC$13523_playlistManager_.getAutoplayEndpoint()};
var APy=function(I){this.autonavEndpoints_=I};
_.E(APy,BCQ);APy.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var $OC=function(I,y,D,F,R){this.autonavEndpoints=I;this.foregroundTrigger=y;this.backgroundTrigger=D;this.pageType=F;this.isInPlaylist=R},bAT=function(I,y){if(I.webPrefetchData&&I.webPrefetchData.navigationEndpoints&&I.webPrefetchData.navigationEndpoints.length){I=I.webPrefetchData.navigationEndpoints;
var D=_.u(I[0],_.t9);if(D.watchEndpointSupportedPrefetchConfig&&D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var F=D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;D=F.playbackRelativeSecondsPrefetchCondition;D=typeof D==="number"&&Math.abs(D)<y.videoDuration?D:void 0;F=F.countdownUiRelativeSecondsPrefetchCondition;F=typeof F!=="number"||_.l("prefetch_job_config_cleanup_ks")&&y.inPlaylist?void 0:F;if(typeof F==="number")return new $OC(I,y.makeUpNextTrigger(F),y.makePlaybackTrigger(F),
"watch",y.inPlaylist);if(typeof D==="number")return new $OC(I,y.makePlaybackTrigger(D),null,"watch",y.inPlaylist)}}},HAa=function(I){return I.prefetchJobConfig_.backgroundTrigger?_.r6(xMg)()==0?I.prefetchJobConfig_.backgroundTrigger:I.prefetchJobConfig_.foregroundTrigger:I.prefetchJobConfig_.foregroundTrigger},erQ=function(I){_.V1(document,"visibilitychange",I.onVisibilityChange_,!1,I)},qW=function(I){lw.call(this,I)};
_.E(qW,lw);qW.prototype.getCacheKeyForEndpoint=function(I){return lw.prototype.getCacheKeyForEndpoint.call(this,I)};
qW.prototype.getTempData=function(){return{}};
qW.prototype.getXhrParams=function(I){return I};
qW.prototype.getParams=function(){return{}};
var TCG=function(I,y,D){var F=I.prefetchDelay*1E3;if(Math.abs(F)>y)D.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var R=F,O=y-F;F<0&&(R=y+F,O=Math.abs(F));var w=I.JSC$13509_taskManager.addJob(function(){D.resolve(O/1E3)},10,R);
D.promise.thenCatch(function(){I.JSC$13509_taskManager.cancelJob(w)})}},sRg=function(I,y,D){Meg.call(this,I,y,D)};
_.E(sRg,Meg);sRg.prototype.prepareTrigger=function(I){var y=this;zrY(this,"onAutonavCoundownStarted",function(D){TCG(y,D,I)})};
var Veb=function(I){I.pendingPrefetchJob_&&(I.pendingPrefetchJob_.cancel(),I.pendingPrefetchJob_=null)},ZAY=function(I,y,D){if(!I.triggeredTargets.has(y)){var F=_.zhM(I,y);
F.action=D;_.Mce(I,y,F)}},gRo=function(I){_.XYW();
_.gjC("cpt")&&_.tq(Error("mh"));_.Ft.requestAnimationFrame(function(){_.Ft.setTimeout(function(){_.V_("cpt");var y=_.IQ("vpl"),D=_.IQ("cpt");y&&D&&_.V_("ol",Math.max(y,D))})});
try{_.V_("fr_s"),I()}catch(y){_.vu(y)}_.Ft.requestAnimationFrame(function(){_.V_("bcp")})},I1e={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},ydo=function(I,y){I.serviceEndpointHandlers.push(y)},D2C=function(I,y){y=I.pendingPages_.indexOf(y);
y>-1&&I.pendingPages_.splice(y,1)},FqZ=function(I,y){var D=_.gNc.indexOf(y);
D>-1&&_.gNc.splice(D,1);I.targetPage_==y?(I.abort(),_.ycP(I)):D2C(I,y)},Rdo=function(I,y){I.reloadContinuationItemsCommandMatcher=y},O9a=function(I,y,D){y&&D&&(I.videos.forEach(function(F){F.videoId===y&&(F.itemId=D)}),I.recommendedVideos.forEach(function(F){F.videoId===y&&(F.itemId=D)}))},LqT=function(I){this.onStepChangeCallback=function(){};
this.flowRenderer=I};
LqT.prototype.getCurrentStep=function(){var I=this,y;return((y=this.flowRenderer.steps)!=null?y:[]).map(function(D){return _.u(D,_.s2)}).find(function(D){return D&&D.stepId===I.currentStepId})};
var Jdo=function(I,y){var D=y.flowStateEntityKey,F=I.flowStates.get(D);if(F)return F;y=new LqT(y);I.flowStates.set(D,y);return y},wvY=function(I,y){for(var D=_.J(I.flowStates.entries()),F=D.next();!F.done;F=D.next()){var R=_.J(F.value);
F=R.next().value;R=R.next().value;if(R.flowRenderer.targetId===y){I.flowStates.delete(F);break}}},vr1=function(I,y){I.onStepChangeCallback=y;
I.onStepChangeCallback(I.getCurrentStep())},S7a=function(I,y){var D=I.getCurrentStep();
if(D&&D.stepId===y)return!0;var F;return((F=I.flowRenderer.steps)!=null?F:[]).map(function(R){return _.u(R,_.s2)}).find(function(R){return R&&R.stepId===y})?(I.currentStepId=y,I.onStepChangeCallback(I.getCurrentStep()),!0):!1},tUY=function(I,y,D,F){y={challenge:y};
D&&(y.webResponse=D);return _.U3(I.innertubeTransportService,y,_.NP(ER1),F)},PdC=function(I,y,D){if(!y.challenge)throw Error("ti");
if(y.botguardData&&y.botguardData.program){var F=new lwC;F.initialize(y.botguardData,function(){q5Q(F,{atr_challenge:y.challenge}).then(function(R){if(!R)throw Error("ui");return tUY(I,y.challenge,R,D)}).catch(function(R){_.tq(R);
return tUY(I,y.challenge,void 0,D)})},void 0)}else tUY(I,y.challenge,void 0,D)},KqG=function(I,y,D){var F={};
y.ids&&(F.ids=[].concat(_.Td(y.ids)));y.engagementType&&(F.engagementType=y.engagementType);return _.U3(I.innertubeTransportService,F,_.NP(_.Tmc),D).then(function(R){if(!R)throw new _.g6("GetAttestationChallenge returned falsy");PdC(I,R,D)}).thenCatch(function(R){_.vu(R)})},U28=function(I,y,D){return new _.AO(function(F,R){var O;
return _.S(function(w){if(w.nextAddress==1){var v=w.yield,P=y.engagementType,K=y.ids,r={};K=_.J(K!=null?K:[]);for(var N=K.next();!N.done;N=K.next())N=N.value,N.encryptedVideoId?r.encryptedVideoId=N.encryptedVideoId:N.externalChannelId?r.externalChannelId=N.externalChannelId:N.commentId?r.commentId=N.commentId:N.externalOwnerId?r.externalOwnerId=N.externalOwnerId:N.artistId?r.artistId=N.artistId:N.playlistId?r.playlistId=N.playlistId:N.externalPostId?r.externalPostId=N.externalPostId:N.shareId&&(r.shareId=
N.shareId);return v.call(w,QfQ(P,r),2)}O=w.yieldResult;if(!O.challenge)return _.tq(Error("vi")),KqG(I,y,D).then(F,R),w.return();v=O;P={challenge:v.challenge};P.webResponse=v.webResponse;P.engagementType=y.engagementType;P.ids=y.ids;_.U3(I.innertubeTransportService,P,_.NP(ER1),D).then(F,R);_.Cj(w)})})},v11=function(I,y){var D,F,R,O;
_.S(function(w){if(w.nextAddress==1){D=_.u(y,_.b3n);if(!(D&&D.listId&&I.response&&I.response.playingVideoId)||I.listId!==D.listId)return w.return();I.index===void 0&&(I.index=0);return w.yield(_.oa_(I.JSC$13362_playlistNetworkManager,D.listId,I.index,I.response.playingVideoId),2)}F=w.yieldResult;if(!F)return w.return();R=F.playlistId;O=F.playlistPanelRenderer;I.setPlaylistData(R,O,F.autoplayRenderer);_.Cj(w)})},rdG=function(I,y,D){var F=I.getParams(D),R=_.FKo(y,F),O=I.getTempData(y,D);
O.endpoint=JSON.stringify(y);_.l("enable_unknown_lact_fix_on_html5")&&(_.nR().resolve(_.cU),O.lact=_.m$());var w={headers:{"X-YouTube-STS":_.Pi("STS"),"x-youtube-csoc":1}};_.re(R,O);return new _.AO(function(v,P){var K=I.getXhrParams(F),r;_.l("kevlar_cache_on_ttl_player")&&(r=_.nR().resolve(_.b0));r&&_.UJ8(r,y)?_.xJo(r,y,O,window.location.href).then(function(N){N?v(N):P()},P):_.Twz(I.JSC$13499_networkManager_,y,K,I.onPartsCallback_.bind(I),w).then(function(N){N?v(N):P()},P)})},jaQ=function(I,y){I.triggerPromise_=
y.start();
I.triggerPromise_.then(function(D){var F=I.prefetchEndpointProvider_.getPrefetchEndpoint();if(F){var R=kIa[I.prefetchJobConfig_.pageType].prefetchedFragments;I.prefetchRequestPromise_=rdG(I.JSC$13535_networkPrefetchRequest_,F,{fragmentsRequested:R,timeBeforeNextVideo:D});I.prefetchResponseCacheKey_=I.JSC$13535_networkPrefetchRequest_.getCacheKeyForEndpoint(F);erQ(I);I.prefetchRequestPromise_.then(function(O){I.storePrefetchedDataCallback_(I.prefetchResponseCacheKey_,O);if(_.l("web_prefetch_preload_video")&&
R.length===1&&R[0]==="pl"&&O&&!O.playerAds&&!O.adPlacements){var w=_.u(F,_.WF),v=w!=null,P={raw_player_response:O,watch_endpoint:w};(O=_.nR().resolve(v?_.gue:_.qY))&&F&&O.then(function(K){v&&_.l("web_queue_preload_video")?(P.prefer_gapless=!0,K.queueNextVideo(P)):K.preloadVideoByPlayerVars(P)})}})}})},Ej=function(I,y,D,F){this.prefetchEndpointProvider_=I;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=y;this.prefetchJobConfig_=D;this.JSC$13535_networkPrefetchRequest_=F;this.prefetchResponseCacheKey_=null};
Ej.prototype.enqueue=function(){this.triggerPromise_||(jaQ(this,HAa(this)),_.bV(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Ej.prototype.resolve=function(){this.cancel()};
Ej.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.");erQ(this)};
Ej.prototype.onVisibilityChange_=function(){var I=this;_.r6(xMg)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){I.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||jaQ(this,HAa(this))};
var orG=function(I,y,D,F,R){y&&(y==null?0:y.videoId)&&D&&D.entries&&_.l("kevlar_enable_shorts_prefetch_in_sequence")&&(Veb(I),y=D.entries.map(function(O){var w;return(w=_.u(O.command,_.WF))==null?void 0:w.videoId}).indexOf(y.videoId),D=D.entries[y+1],D!=null&&D.command&&!_.u(D==null?void 0:D.command,_.Jz)&&(F=new $OC([D.command],new aw1(F,_.w2,1),null,"shorts",!1),I.pendingPrefetchJob_=new Ej(new APy(F.autonavEndpoints),function(){return!1},F,new qW(R)),I.pendingPrefetchJob_.enqueue()))},Nne=function(I,
y,D,F,R,O){var w=_.X4.getInstance();
if(!_.l("block_all_player_prefetch_requests")){Veb(I);var v=!!D.getPlaylistId(),P=D.getVideoData().isLive&&D.getVideoData().hasProgressBarBoundaries;if((w.getState()==2||v||P)&&(!D.getVideoData().isLive||P)){w={inPlaylist:v,videoDuration:D.getDuration(),makeUpNextTrigger:function(r){return new sRg(D,_.w2,r)},
makePlaybackTrigger:function(r){return new aw1(D,_.w2,r)}};
var K=bAT(y,w);K&&(I.pendingPrefetchJob_=new Ej(K.isInPlaylist?new iAb(R):new APy(K.autonavEndpoints),function(r,N){N=new Cba(kIa[K.pageType].pageFragments,kIa[K.pageType].prefetchedFragments,N);return _.EJn(N)?(I.prefetchCache_.set(r,N),!0):!1},K,new uw(F,D,O,R)),I.pendingPrefetchJob_.enqueue())}}},hdQ=function(){var I=_.xD();
I.signals.parkOrScheduleJob(function(){var y=I.storage;if(y.storage)if(Y5C(y)){var D=y.getPlaylistId();y=fwa(y);D=!!D&&y!==void 0}else y.clear(),D=!1;else D=!1;if(D){D=I.JSC$13362_pageManager.isOnWatch();a:{var F=I.storage;if(F.storage&&Y5C(F)&&(y=F.getPlaylistId(),F=fwa(F),y&&F!==void 0)){D={recoverPlaylistCommand:{listId:y,index:F,openMiniplayer:!D,openListPanel:D,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}D=void 0}D&&_.RZ(I.JSC$13362_actionRouter,[D],null)}},0,"ma")},x2b=function(I,y,D,
F,R,O){var w=_.QM(7111);
_.aj(I.JSC$18888_screenManager,w,O?_.AC(O):void 0);_.W0(I.JSC$18888_screenManager,w,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:F,offlineId:y,offlineabilityFormatType:D,isDefaultFormatType:R==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:R}})},l1y=function(I,y,D,F,R){var O,w,v,P,K;
return _.S(function(r){if(r.nextAddress==1)return r.yield(I.JSC$18888_playerApiPromise,2);O=r.yieldResult;x2b(I,y,D,"OFFLINE_OBJECT_TYPE_PLAYLIST",F,R);if(v=_.ckg[I.entityTypeMap.listEntityType])K={},w=(K[v]={maximumDownloadQuality:(P=D)!=null?P:void 0},K);return r.yield(O.queueOfflineAction(y,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",w),0)})},uIY=function(I,y){var D,F,R,O;
return _.S(function(w){if(w.nextAddress==1)return w.yield(I.JSC$18888_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){D=w.yieldResult;if(!D)return _.tq(new _.g6("PES is undefined")),w.return();F=_.fC(y,"downloadStatusEntity");return w.yield(QRZ(D,F,"downloadStatusEntity"),3)}R=w.yieldResult;return w.return((O=R)==null?void 0:O.downloadState)})},q7o=function(I,y,D,F,R){var O,w,v,P,K,r;
return _.S(function(N){switch(N.nextAddress){case 1:return N.yield(I.JSC$18888_playerApiPromise,2);case 2:O=N.yieldResult;x2b(I,y,D,"OFFLINE_OBJECT_TYPE_VIDEO",F,R);if(v=_.ckg[I.entityTypeMap.singleEntityType])K={},w=(K[v]={maximumDownloadQuality:(P=D)!=null?P:void 0},K);return N.yield(uIY(I,y),3);case 3:r=N.yieldResult;if(r!=="DOWNLOAD_STATE_USER_DELETED"){N.jumpTo(4);break}return N.yield(I.deleteVideo(y),4);case 4:return N.yield(O.queueOfflineAction(y,I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
w),0)}})},Ere=function(I,y,D,F,R){return _.S(function(O){return O.nextAddress==1?O.yield(I.deleteVideo(y,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):O.yield(q7o(I,y,D,F,R),0)})},GMa=function(I,y,D){var F,R;
return _.S(function(O){if(O.nextAddress==1)return O.yield(I.JSC$18888_playerApiPromise,2);F=O.yieldResult;R=_.fC(y,"mainVideoDownloadStateEntity");return O.yield(F.updateDownloadState(R,D),0)})},RvC=function(I){var y=_.nR().resolve(_.wg);
return _.S(function(D){if(D.nextAddress==1)return y.previousDownloadStateForVideo[I]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&y.previousDownloadStateForVideo[I]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?D.jumpTo(2):D.yield(y.resumeVideoDownload(I),2);if(D.nextAddress!=4)return D.yield(GMa(y,I,y.previousDownloadStateForVideo[I]),4);delete y.previousDownloadStateForVideo[I];_.Cj(D)})},DV8=function(I,y){var D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$18888_playerApiPromise,2);D=F.yieldResult;return F.yield(D.queueOfflineAction(y,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},gmy=function(){var I=_.nR().resolve(_.wg),y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$18888_playerApiPromise,2);if(F.nextAddress!=3)return y=F.yieldResult,D={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},F.yield(y.queueOfflineAction("!*$_ALL_ENTITIES_!*$",I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",D),3);var R=I.JSC$18888_commandHandler,O=R.resolveCommand,w=_.zC("DELETING_ALL",void 0,"Downloads are being deleted");O.call(R,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lo(w)}},
popupType:"TOAST"}});_.Cj(F)})},XvZ=function(I,y){var D,F,R,O,w,v;
return _.S(function(P){if(P.nextAddress==1)return P.yield(I.JSC$18888_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3)return D=P.yieldResult,D?P.yield(QRZ(D,_.eI,"downloadsPageViewConfigurationEntity"),3):(_.tq(new _.g6("PES is undefined")),P.return());R=(F=P.yieldResult)!=null?F:{};v=(w=(O=R)==null?void 0:O.downloadsUpsellBannerVisibility)!=null?w:{};return v.visibleWithConnection?P.yield(y.refreshAllStaleEntities(0),0):P.jumpTo(0)})},QaR=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$18888_prefStorage,2);y=F.yieldResult;return F.return((D=y)==null?void 0:D.get("sdois"))})},Y78=function(I){var y,D,F,R,O,w;
return _.S(function(v){if(v.nextAddress==1)return v.yield(I.JSC$18888_persistentStorePromiseAccessor(),2);if(v.nextAddress!=3){y=v.yieldResult;if(!y)return _.tq(new _.g6("PES is undefined")),v.return();D=_.fC("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return v.yield(QRZ(y,D,"settingEntity"),3)}F=v.yieldResult;return v.return((w=(R=F)==null?void 0:(O=R.settingOptionValue)==null?void 0:O.boolValue)!=null?w:!1)})},f11=function(I,y){var D,F,R,O;
return _.S(function(w){switch(w.nextAddress){case 1:return((D=y)==null?void 0:D.formatType)===void 0?w.return():w.yield(I.JSC$18888_prefStorage,2);case 2:F=w.yieldResult;if(F===void 0)return w.return();if(((R=y)==null?void 0:R.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return w.yield(F.set("lmqf",y.formatType),8);if(((O=y)==null?void 0:O.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){w.jumpTo(0);break}return w.yield(F.set("lmqf",y.formatType),6);case 6:return w.yield(F.set("lmqflst",
Math.floor((0,_.m_)())),0);case 8:return w.yield(F.remove("lmqflst"),0)}})},nrT=function(I){var y,D;
return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(I.JSC$18888_prefStorage,2);case 2:y=F.yieldResult;if(!y){F.jumpTo(3);break}return F.yield(y.get("lmqflst"),4);case 4:if(D=F.yieldResult,D!==void 0)return F.return(D);case 3:return F.return(0)}})},pv8=function(I){var y,D,F;
return _.S(function(R){return R.nextAddress==1?R.yield(I.JSC$18888_prefStorage,2):R.nextAddress!=3?(y=R.yieldResult,R.yield((D=y)==null?void 0:D.get("ldtmes"),3)):R.return((F=R.yieldResult)!=null?F:!1)})},lhG=function(){var I=_.nR().resolve(_.wg),y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$18888_prefStorage,2);y=D.yieldResult;return y===void 0?D.return():D.yield(y.set("ldtmes",!0),0)})},m28=function(I){var y,D;
return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(I.JSC$18888_prefStorage,2);case 2:y=F.yieldResult;if(y===void 0){F.jumpTo(3);break}return F.yield(y.get("lmqf"),4);case 4:if(D=F.yieldResult,D!==void 0)return F.return(D);case 3:return F.return("SD")}})},P7b=function(I,y,D){var F,R,O,w,v,P,K,r;
_.S(function(N){switch(N.nextAddress){case 1:return N.yield(f11(I,(F=y)==null?void 0:F.actionParams),2);case 2:R=y.playlistId;if(!R)return N.return();if(y.action==="ACTION_ADD")return((w=y.actionParams)==null?0:w.formatType)?N.yield(l1y(I,R,y.actionParams.formatType,(r=y.actionParams)==null?void 0:r.settingsAction,D),0):N.yield(I.offlineWebClientEligibility,14);if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var h=I.JSC$18888_commandHandler,x=h.resolveCommand,q=_.Pi("INNERTUBE_CLIENT_NAME");var X=q===
"WEB_REMIX"?_.zC("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zC("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var f=q==="WEB_REMIX"?[_.zC("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];q=q==="WEB_REMIX"?_.zC("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zC("DELETE",void 0,"Delete");var m=_.zC("CANCEL",void 0,"Cancel");X=YNC(X,f,q,m,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:R});x.call(h,{openPopupAction:X});return N.return()}if(y.action===
"ACTION_REMOVE")return N.yield(DV8(I,R),0);if(y.action!=="ACTION_SYNC"){N.jumpTo(0);break}return N.yield(I.JSC$18888_playerApiPromise,9);case 9:return O=N.yieldResult,N.yield(O.queueOfflineAction(R,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return v=N.yieldResult,N.yield(m28(I),15);case 15:return P=N.yieldResult,N.yield(nrT(I),16);case 16:K=N.yieldResult,y.onAddCommand&&I.JSC$18888_commandHandler.resolveCommand(y.onAddCommand,{form:{preferredFormatType:P,
offlineWebClientEligibility:v,lastOfflineQualitySettingsSavedMs:K.toString()}}),N.jumpTo(0)}})},SmZ=function(I,y,D){var F,R,O,w,v,P,K,r,N,h,x,q,X,f,m,z,B,C,H,e;
_.S(function(T){switch(T.nextAddress){case 1:return T.yield(f11(I,(F=y)==null?void 0:F.actionParams),2);case 2:R=y.videoId;if(!R)return T.return();if(y.action==="ACTION_REMOVE_WITH_PROMPT"){var L5=I.JSC$18888_commandHandler,vH=L5.resolveCommand,u_=_.Pi("INNERTUBE_CLIENT_NAME");var jW=u_==="WEB_REMIX"?_.zC("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zC("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var xA=u_==="WEB_REMIX"?[_.zC("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];u_=u_==="WEB_REMIX"?_.zC("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zC("DELETE",void 0,"Delete");var dq=_.zC("CANCEL",void 0,"Cancel");jW=YNC(jW,xA,u_,dq,{signal:"DELETE_DOWNLOAD",targetId:R});vH.call(L5,{openPopupAction:jW});return T.return()}if(y.action==="ACTION_ADD")return((z=y.actionParams)==null?0:z.formatType)?T.yield(q7o(I,R,y.actionParams.formatType,(e=y.actionParams)==null?void 0:e.settingsAction,D),0):T.yield(I.offlineWebClientEligibility,
28);if(y.action==="ACTION_RETRY")return T.yield(m28(I),24);if(y.action==="ACTION_PAUSE")return T.yield(I.pauseVideoDownload(R),0);if(y.action==="ACTION_RESUME")return T.yield(I.resumeVideoDownload(R),0);if(y.action==="ACTION_REMOVE")return T.yield(uIY(I,R),18);if(!_.l("kevlar_enable_download_to_mobile")){T.jumpTo(0);break}O=_.u(y.onAddCommand,_.Kt);v=(w=O)==null?void 0:w.isCrossDeviceDownload;if(!y.onAddCommand||!v){T.jumpTo(0);break}P="HD";return T.yield(nrT(I),16);case 16:return K=T.yieldResult,
T.yield(pv8(I),17);case 17:r=T.yieldResult;I.JSC$18888_commandHandler.resolveCommand(y.onAddCommand,{form:{preferredFormatType:P,lastOfflineQualitySettingsSavedMs:K.toString(),downloadToMobileEduShown:r}});T.jumpTo(0);break;case 18:return N=T.yieldResult,I.previousDownloadStateForVideo[R]=(h=N)!=null?h:"DOWNLOAD_STATE_UNKNOWN",T.yield(GMa(I,R,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(I.previousDownloadStateForVideo[R]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&I.previousDownloadStateForVideo[R]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){T.jumpTo(20);break}return T.yield(I.pauseVideoDownload(R),20);case 20:L5=_.zC("DELETED_VIDEO",void 0,"Video deleted from downloads.");vH=_.zC("UNDO_ACTION",void 0,"Undo");jW=_.zC("CLOSE",void 0,"Close");x={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lo(L5),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lo(vH),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:R}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:L5+" "+vH}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:R}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:jW}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};I.JSC$18888_commandHandler.resolveCommand(x);
T.jumpTo(0);break;case 24:q=T.yieldResult;q==="UNKNOWN_FORMAT_TYPE"&&(q="SD");X="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((f=y.actionParams)==null?0:f.formatType)q=y.actionParams.formatType,X=(m=y.actionParams)==null?void 0:m.settingsAction;return T.yield(Ere(I,R,q,X,D),25);case 25:return T.return();case 28:return B=T.yieldResult,T.yield(m28(I),29);case 29:return C=T.yieldResult,T.yield(nrT(I),30);case 30:H=T.yieldResult,y.onAddCommand&&I.JSC$18888_commandHandler.resolveCommand(y.onAddCommand,
{form:{preferredFormatType:C,offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:H.toString()}}),T.jumpTo(0)}})},MU8=function(I,y){var D,F,R,O,w,v,P;
return _.S(function(K){if(K.nextAddress==1)return K.yield(I.JSC$18888_persistentStorePromiseAccessor(),2);D=K.yieldResult;if(!D)return _.tq(new _.g6("PES is undefined")),K.return();if((F=y)==null||!F.settingItemId)return K.return();R=y;O=R.settingItemId;w=R.boolValue;v=_.fC(O,"settingEntity");P={key:v,settingOptionValue:{boolValue:w}};return K.yield(X2G(D,P),0)})},zdg=function(I,y){var D,F,R,O,w,v,P;
return _.S(function(K){switch(K.nextAddress){case 1:return K.yield(I.JSC$18888_prefStorage,2);case 2:return D=K.yieldResult,F=_.a1(),K.yield(I.JSC$18888_persistentStorePromiseAccessor(),3);case 3:return R=K.yieldResult,D?R?K.yield(D.get("sdois"),4):(_.tq(new _.g6("PES is undefined")),K.return()):(_.tq(new _.g6("prefStorage is undefined")),K.return());case 4:O=K.yieldResult;v=(w=y)==null?void 0:w.boolValue;v===void 0||_.l("kevlar_set_sd_enabled_flag_killswitch")||_.cg(0,197,!0);O===void 0&&v===void 0&&
(v=!1);if(v===void 0){K.jumpTo(0);break}return K.yield(D.set("sdois",v),6);case 6:return _.l("kevlar_set_sd_enabled_flag_killswitch")||(_.cg(0,196,v),F.save()),P={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:v},K.yield(MU8(I,P),0)}})},kMZ=function(I,y,D){var F,R,O,w,v;
return _.S(function(P){switch(P.nextAddress){case 1:return P.yield(QaR(I),2);case 2:return F=P.yieldResult,P.yield(zdg(I,D),3);case 3:return P.yield(QaR(I),4);case 4:return R=P.yieldResult,O=R!==F,P.yield(Y78(I),5);case 5:w=P.yieldResult&&!_.l("kevlar_modern_downloads_page");if((v=!R&&!w)||O)return P.yield(y.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);P.jumpTo(0)}})},LVY=function(){var I=_.nR().resolve(_.wg),
y;
_.S(function(D){switch(D.nextAddress){case 1:return D.yield(I.JSC$18888_playerApiPromise,2);case 2:y=D.yieldResult;if(!_.l("kevlar_force_refresh_smart_downloads")){D.jumpTo(3);break}return D.yield(y.refreshAllStaleEntities(0),4);case 4:return D.return();case 3:return D.yield(y.refreshAllStaleEntities(),5);case 5:return D.yield(kMZ(I,y),6);case 6:if(_.l("enable_download_pep_for_premium_countries_web"))return D.yield(XvZ(I,y),0);D.jumpTo(0)}})},UVT=function(I,y){var D,F;
_.S(function(R){switch(R.nextAddress){case 1:return R.yield(I.JSC$18888_playerApiPromise,2);case 2:D=R.yieldResult;switch((F=y)==null?void 0:F.settingItemId){case "SMART_DOWNLOADS_ENABLED":return R.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return R.jumpTo(4)}R.jumpTo(0);break;case 3:return R.yield(kMZ(I,D,y),6);case 6:R.jumpTo(0);break;case 4:return R.yield(MU8(I,y),7);case 7:R.jumpTo(0)}})},d2Y=function(I,y){var D,F,R;
return _.S(function(O){if(O.nextAddress==1)return O.yield(I.JSC$18888_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){D=O.yieldResult;if(!D)return _.tq(new _.g6("PES is undefined")),O.return(!1);if(!y)return O.return(!1);F=_.fC(y,"mainVideoEntity");return O.yield(QRZ(D,F,"mainVideoEntity"),3)}R=O.yieldResult;return O.return(R!==void 0)})},jhZ=function(I){var y=_.nR().resolve(_.wg),D,F,R,O,w,v,P,K,r,N,h;
_.S(function(x){switch(x.nextAddress){case 1:return x.yield(y.JSC$18888_playerApiPromise,2);case 2:D=x.yieldResult;R=(F=I)==null?void 0:F.actions;if(!R)return x.return();O=_.J(R);w=O.next();case 3:if(w.done){x.jumpTo(0);break}v=w.value;K=P=void 0;if(!(((P=v)==null?0:P.entityKey)&&((K=v)==null?0:K.actionType))){x.jumpTo(4);break}r=_.Xw(v.entityKey);N=r.entityId;h=r.entityType;return x.yield(D.queueOfflineAction(N,h,v.actionType),4);case 4:w=O.next(),x.jumpTo(3)}})},a1g=function(I,y){var D,F,R,O,w;
return _.S(function(v){if(v.nextAddress==1)return v.yield(I.JSC$18888_prefStorage,2);if(v.nextAddress!=3)return(D=v.yieldResult)?v.yield(D.get("psi"),3):v.return();F=v.yieldResult;w={isPaused:y,lastSyncTimestamp:(O=(R=F)==null?void 0:R.lastSyncTimestamp)!=null?O:"0"};return v.yield(D.set("psi",w),0)})},hvG=function(I){var y=_.nR().resolve(_.wg),D,F,R,O,w,v,P,K;
return _.S(function(r){switch(r.nextAddress){case 1:return r.yield(y.JSC$18888_playerApiPromise,2);case 2:D=r.yieldResult;R=((F=I)==null?void 0:F.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((v=I)==null?void 0:v.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":O="!*$_ALL_ENTITIES_!*$";w="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(a1g(y,R),6);case 6:r.jumpTo(5);break;case 4:return r.yield(d2Y(y,(P=I)==null?void 0:P.videoId),7);case 7:r.yieldResult&&(O=(K=I)==null?void 0:K.videoId,w="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");r.jumpTo(5);break;case 5:if(O&&w)return r.yield(D.queueOfflineAction(O,"videoPlaybackPositionEntity",w),0);r.jumpTo(0)}})},cdR=function(I,y){_.nR().resolve(_.R_).persistentPanelContainerMap.set(y,I)},
WqR=function(I,y,D){I.hasRegisteredHoverCallbacks=!0;
I.hoverEnterCallback=y!=null?y:void 0;I.hoverLeaveCallback=D!=null?D:void 0},Cda=function(){return _.nR().resolve(_.WY).dismissedIndices},Bny=function(I,y,D){var F,R=(F=_.u(y,_.WF))==null?void 0:F.videoId;
F=!(!R||!I.find(function(w){return w.videoId&&w.videoId===R}));
var O=!!I.find(function(w){var v;return((v=_.u(w.command,_.WF))==null?void 0:v.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
I=!!I.find(function(w){return!!_.u(w.command,_.Jz)&&!!_.u(y,_.Jz)&&w.command===y});
return D?F||I:F||O||I},i9R=function(I,y,D){var F=[].concat(_.Td(I)),R=0,O=D?qNC(D):[];
D=D?Eny(D):[];O.length&&!Bny(I,O[0].command,!0)&&F.push.apply(F,_.Td(O));y&&!Bny(F,y.command)&&F.unshift(y);y&&D.length&&!Bny(I,D[0].command)&&(_.l("web_enable_shorts_sequence_refactor_unify")?F.push.apply(F,_.Td(D.reverse())):F.unshift.apply(F,_.Td(D.reverse())),R=D.length);return{newContentList:F,indexChange:R}},Adg=function(){var I=_.nR().resolve(_.WY);
_.tpe(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(I.isFullscreenEnabled()?_.Nr(document.documentElement):_.L7L(document.documentElement))},$2e=function(I,y){var D;
y!==1||((D=I.currentPersistentToast)==null?0:D.isOpened())?_.tjg(I):I.currentPersistentToast=void 0},b9y=function(I,y){var D;
return(D=I.transitionTasksMap.get(y))!=null?D:[]},H9T=function(I,y){var D=[];
I.elementTasksMap.forEach(function(F){(F=F.get(y))&&D.push(F)});
return D},ed1=function(I,y,D,F,R){R=R===void 0?{}:R;
var O=y.defaultViewTransitionOptions;return Object.assign({},O,R,{beforeTransition:function(){F.forEach(function(K){K.beforeTransition()});
var w;(w=O.beforeTransition)==null||w.call(O);var v,P;(P=(v=R).beforeTransition)==null||P.call(v);D.forEach(function(K){K.beforeTransition()})},
afterTransition:function(){F.forEach(function(K){K.afterTransition()});
var w;(w=O.afterTransition)==null||w.call(O);var v,P;(P=(v=R).afterTransition)==null||P.call(v);D.forEach(function(K){K.afterTransition()})},
ignoredErrors:I.config.ignoredErrors})},Tn8=function(I,y,D){I.transitionTasksMap.has(y)?I.transitionTasksMap.get(y).push(D):(I=new _.g6("Transition task registered for unknown transition type",y),_.vu(I))},sae=function(I,y,D){if(I.transitionTasksMap.has(y)){var F=I.transitionTasksMap.get(y).filter(function(R){return R!==D});
I.transitionTasksMap.set(y,F)}},VU1=function(I,y){var D=b9y(I,y);
D=_.J(D);for(var F=D.next();!F.done;F=D.next())F=F.value,F.runOnce&&sae(I,y,F);I.elementTasksMap.forEach(function(R,O){R.forEach(function(w,v){w.runOnce&&y===v&&(R.delete(v),R.size===0&&I.elementTasksMap.delete(O))})})},Z91=function(I,y,D){var F,R,O,w,v,P,K,r,N;
_.S(function(h){if(h.nextAddress==1){if(I.config.disableAllTransitions)return h.return(y());if((F=D)==null||!F.transitionType)return h.return(nnQ(y,Object.assign({},(R=D)==null?void 0:R.viewTransitionOptions,{ignoredErrors:I.config.ignoredErrors})));O=D;w=O.transitionType;v=O.viewTransitionOptions;P=I.config.transitionConfigs.get(w);if(!P)return h.return(y());K=b9y(I,w);r=H9T(I,w);N=nnQ(y,ed1(I,P,K,r,v));return h.yield(N,2)}VU1(I,w);_.Cj(h)})},grT=function(I,y){var D,F,R,O,w;
_.S(function(v){if(!y.length)return v.return([]);D=[];F=_.J(y);for(R=F.next();!R.done;R=F.next())O=R.value,(w=I.resolveIcon(O))&&!I.iconCache[w.url]&&D.push(_.QUC(I,w).then(function(){}).catch(function(){}));
return v.return(Promise.all(D))})},Im8=function(I,y){var D=[];
y=(new Set(y)).values();y=_.J(y);for(var F=y.next();!F.done;F=y.next()){F=F.value;for(var R=_.J(Object.values(I1e)),O=R.next();!O.done;O=R.next())D.push({iconName:F,iconStyle:O.value})}grT(I.iconManager,D)},yrY=function(I,y,D){var F=D!=null?D:I.iconsToFetch;
F!=null&&F.length?y!==void 0&&y>=0?_.y9(_.w2,function(){Im8(I,F)},y):Im8(I,F):Promise.resolve()},Djy=function(){var I,y,D,F;
return _.S(function(R){if(R.nextAddress==1)return I=navigator,(y=I.storage)!=null&&y.persisted?R.yield((D=I.storage)==null?void 0:D.persisted(),2):R.return("PERSISTED_STATE_NOT_SUPPORTED");F=R.yieldResult;return R.return(F?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},FSy=function(){var I,y,D,F;
return _.S(function(R){if(R.nextAddress==1)return I=navigator,(y=I.storage)!=null&&y.persist?R.yield((D=I.storage)==null?void 0:D.persist(),2):R.return("PERSISTED_STATE_NOT_SUPPORTED");F=R.yieldResult;return R.return(F?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},RPe=function(){var I,y;
return _.S(function(D){switch(D.nextAddress){case 1:return I="PERSISTED_STATE_NOT_SUPPORTED",_.nj(D,2),D.yield(Djy(),4);case 4:I=D.yieldResult;if(I!=="PERSISTED_STATE_NOT_GRANTED"){D.jumpTo(5);break}return D.yield(FSy(),6);case 6:I=D.yieldResult;case 5:_.lZ(D,3);break;case 2:y=_.dj(D),y instanceof Error&&_.vu(y);case 3:return _.Jq("persistentStorageStateChecked",{persistedState:I}),D.return(I)}})},OHb=function(I,y,D){if(I.isAnyTransitionEnabled){var F={beforeTransition:function(){D(!0);
y.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){y.style.viewTransitionName&&(y.style.viewTransitionName="",D(!1))}};
Tn8(I.viewTransitionCoordinator,"slide",F);Tn8(I.viewTransitionCoordinator,"lockup-to-watch",F);Tn8(I.viewTransitionCoordinator,"watch-next-appears",F);Tn8(I.viewTransitionCoordinator,"learning-journey",F)}},LSQ=function(I,y,D,F){if(I.isLockupToWatchTransitionEnabled){if(y){var R={};
R=(R["watch-next-appears"]="player-watch-next-loaded",R);R["lockup-to-watch"]=I.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";I.viewTransitionCoordinator.registerElement(y,R)}D&&(y={},I.viewTransitionCoordinator.registerElement(D,(y["lockup-to-watch"]="below-lockup-to-watch",y["watch-next-appears"]="below-watch-next-loaded",y)));F&&(D={},I.viewTransitionCoordinator.registerElement(F,(D["watch-next-appears"]="secondary-watch-next-loaded",
D)))}},Jrb=function(I,y){I.isBrowseTransitionEnabled?Z91(I.viewTransitionCoordinator,y,{transitionType:"slide"}):(y(),Promise.resolve())},wRZ=function(I,y){I.isLockupToWatchTransitionEnabled?Z91(I.viewTransitionCoordinator,y,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){I.registeredLockupThumbnail=void 0;I.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(y(),Promise.resolve())},v_Q=function(I,y){I.isLockupToWatchTransitionEnabled?Z91(I.viewTransitionCoordinator,y,{transitionType:"watch-next-appears"}):(y(),Promise.resolve())},SsC=function(I,y){I.isLearningJourneyTransitionEnabled?Z91(I.viewTransitionCoordinator,y,{transitionType:"learning-journey"}):(y(),Promise.resolve())},tVZ=function(I,y,D){if(I.isInitialized()){var F=
$O(D),R=F==="watch";
F=F==="shorts";var O=$O(y)==="watch";if(R)O||(I.backgroundPageData=y),I.watchPipMode&&O||I.deactivate(D.endpoint);else if(F){if($O(y)!=="shorts"){var w;(w=I.getPlayerElement())==null||w.pause()}}else O&&!I.watchPipMode&&(pua(y,D,!0)?(I.watchWhileMode&&_.E7T(I,!1),_.N21(I,y)):I.isMiniplayerActive()&&I.watchWhileMode&&I.deactivate());O&&_.XPe(I);I.shortsPipMode&&!F&&(window.focus(),I.deactivate());if(I.pictureInPictureEnabled())if(F&&I.shortsPipEnabled||R&&I.JSC$19303_watchPipEnabled&&(!I.watchPipManualOnlyEnabled||
_.Iie()&&_.utA("Chromium")>=142))_.Dto(I.handleMediaSessionPipActivation);else if(!I.isMiniplayerActive()&&(I.shortsPipEnabled||I.JSC$19303_watchPipEnabled)&&_.Iie()){I=_.y$B().mediaSession;try{I.setActionHandler("enterpictureinpicture",null)}catch(v){}}}},PkT=function(I,y){var D,F;
_.S(function(R){if(R.nextAddress==1){if(!I||!I.navigationEndpoint)return R.return();_.bW().lockupActivation=!0;var O;y?O=_.Ug(_.zC("QUEUE",void 0,"Queue")):O=I.longBylineText;F=(D=O)&&I.title?{miniplayerTitle:I.title,miniplayerSubtitle:D,playlistData:null}:void 0;return R.yield(_.DBz(_.nR().resolve(_.OI),I.navigationEndpoint,!0,F),2)}_.bW().userActivation=!0;_.Cj(R)})},LPC=function(I,y){var D,F,R,O,w,v;
_.S(function(P){if(P.nextAddress==1){D=_.u(y,_.$na);if(!D||!D.listId)return P.return();I.index=D.index||I.index||0;F=I.response&&I.response.playingVideoId||void 0;return P.yield(_.oa_(I.JSC$13362_playlistNetworkManager,D.listId,I.index,F),2)}R=P.yieldResult;if(!R)return P.return();O=R.playlistId;w=R.playlistPanelRenderer;!I.queueProxy&&O&&w&&O.startsWith("TLPQ")&&(I.queueProxy=new _.Pf(I.JSC$13362_playlistNetworkManager,O,I.setPlaylistData.bind(I),I.clearQueue.bind(I),_.yhL(w),I.storage));if(D.openMiniplayer&&
(v=_.D15(w))&&!I.JSC$13362_pageManager.isOnWatch()){var K=v,r=D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";I.isMiniplayerActive()||PkT(K,r)}I.setPlaylistData(O,w,R.autoplayRenderer);_.Cj(P)})},FPC=function(I,y){var D=_.xD();
D.index===void 0&&(D.index=0);D.temporaryItems.push.apply(D.temporaryItems,_.Td(I));if((y.videoId||y.videoIds)&&D.index!==void 0&&y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!D.queueProxy){var F=[];if(D.response){var R=_.nR().resolve(_.OI).isMiniplayerActive();if(D.response.playlistPanelRenderer&&D.response.playlistId&&!D.response.playlistId.startsWith("TLPQ")){if(D.JSC$13362_pageManager.isOnWatch()||R)F=_.yhL(D.response.playlistPanelRenderer)}else D.response.playingVideoId&&!y.openMiniplayer?
F.push(D.response.playingVideoId):R&&D.response.playingVideoId&&y.openMiniplayer&&F.push(D.response.playingVideoId)}D.queueProxy=new _.Pf(D.JSC$13362_playlistNetworkManager,"",D.setPlaylistData.bind(D),D.clearQueue.bind(D),F,D.storage);D.queueProxy.JSC$13308_setCurrentIndex(D.index)}D.queueProxy.addVideos(y.videoIds||[y.videoId],y)}nRa(D,I);D.response&&_.l3(D,_.u3(D,D.response.autoplayRenderer));D.JSC$13362_pageManager.isOnWatch()||(I=I[0],y=y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",D.isMiniplayerActive()||
PkT(I,y))},KSQ=function(I,y){var D;
return _.S(function(F){return F.nextAddress==1?y&&I.lastWelcomeContinuationSent!==y?_.B2a(I)?F.yield(I.panelController.isVisible("PAai_companion"),3):F.jumpTo(2):F.return(!1):F.nextAddress==2||(D=F.yieldResult,D)?F.return(!0):F.return(!1)})},Ujb=function(I){var y,D,F,R,O;
return _.S(function(w){if(w.nextAddress==1){if(!I.welcomeOptions)return w.return();y=I.welcomeOptions;D=y.command;F=y.setPending;if(D){var v;var P=(v=_.u(D,_.IP))==null?void 0:v.token}else P=void 0;R=P;return w.yield(KSQ(I,R),2)}if(!w.yieldResult)return w.return();I.lastWelcomeContinuationSent=R;(O=F)==null||O(!0);P="youchat-"+Date.now();v=(v=_.ft())?String(Math.floor(v.getCurrentTime())*1E3):void 0;_.Do(D,{form:{formData:bY({clientMessageId:P,playerOffsetMs:v,pageContext:_.vBy(I,I.pageSubtype)})}});
_.Cj(w)})},rrC=function(I,y){_.S(function(D){I.welcomeOptions=y;
return D.yield(Ujb(I),0)})},jce=function(I){var y=_.RT(I);
if(y=="object"||y=="array"){if(typeof I.clone==="function")return I.clone();if(typeof Map!=="undefined"&&I instanceof Map)return new Map(I);if(typeof Set!=="undefined"&&I instanceof Set)return new Set(I);y=y=="array"?[]:{};for(var D in I)y[D]=jce(I[D]);return y}return I},prg=function(I,y){return Array.prototype.reduce.call(I,y,{duration:0})},Gg=function(I,y){return _.QeS(_.du(I,y,void 0,_.km))},Xa=function(I,y){return _.PC(_.du(I,y,void 0,_.km))},QN=function(I,y){return _.b_o(_.du(I,y,void 0,_.km))},
Yo=function(I,y){return _.du(I,y,void 0,_.km,_.FY)},o_Y=_.jZ(function(I,y,D,F){if(_.Xq)return _.D_q(I,y,D,F);
if(I.nextWireType_!==0)return!1;_.Ex(y,D,F,_.qg(I.decoder_,_.ef));return!0},_.la,_.vq),NXY=_.jZ(function(I,y,D){if(_.Xq)return _.OjL(I,y,D);
if(I.nextWireType_!==1)return!1;var F=I.decoder_;I=_.Rh(F);F=_.Rh(F);I=_.iu(I,F);_.on(y,D,I);return!0},_.HSo,_.m8_),hPa=_.jZ(function(I,y,D){if(I.nextWireType_!==5)return!1;
_.on(y,D,_.Rh(I.decoder_));return!0},function(I,y,D){y=_.nPW(y);
y!=null&&(_.Ng(I,D,5),_.hV(I.encoder_,y))},_.fQW),xja=_.jZ(function(I,y,D){if(I.nextWireType_!==2)return!1;
I=_.jTM(I);_.on(y,D,I===_.p_()?void 0:I);return!0},_.ZSe,_.koc),lmg=_.a0q(function(I,y,D){if(I.nextWireType_!==0&&I.nextWireType_!==2)return!1;
y=_.LS(y,y[_.L_]|0,D);I.nextWireType_==2?_.oyW(I,JPZ,y):y.push(_.Fd(I.decoder_));return!0},function(I,y,D){y=_.dgq(_.PC,y,!0);
if(y!=null&&y.length){D=_.qbe(I,D);for(var F=0;F<y.length;F++)_.AVe(I.encoder_,y[F]);_.EyP(I,D)}},_.d8M),uia=_.jZ(function(I,y,D,F){if(I.nextWireType_!==0)return!1;
_.Ex(y,D,F,_.Fd(I.decoder_));return!0},_.ItS,_.d8M),qsg=function(I,y,D){return Math.abs(I-y)<=(D||1E-6)},E_g=function(I,y){return I==y?!0:I&&y?I.width==y.width&&I.height==y.height:!1},fw=function(I,y){I.insertBefore(y,I.childNodes[0]||null)},G9b=function(I){return I.previousElementSibling!==void 0?I.previousElementSibling:_.HG_(I.previousSibling,!1)},XR1=function(I,y){var D=[];
for(y=y||0;y<I.length;y+=2)_.MTu(I[y],I[y+1],D);return D.join("&")},Qco=function(I,y){var D=arguments.length==2?XR1(arguments[1],0):XR1(arguments,1);
return _.mJa(I,D)},FXy=_.nS(_.Zy),YsZ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(YsZ,_.KS);YsZ.prototype.getTypeName=function(){return _.Tp(this,1).split("/").pop()};
YsZ.prototype.getValue=function(){var I=_.du(this,2);if(Array.isArray(I)||I instanceof _.KS)throw Error("W");return _.Cz(this,2)};
var fmR=[0,2,_.oh],Ogy=function(){var I=_.XM();this.JSC$10193_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.EW("channel_type"))};
Ogy.prototype.increment=function(I){this.JSC$10193_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",I)};
var Lha=function(){var I=_.XM();this.JSC$10196_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.EW("channel_type"))};
Lha.prototype.increment=function(I){this.JSC$10196_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",I)};
var wpQ=function(){var I=_.XM();this.JSC$10199_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.EW("channel_type"))};
wpQ.prototype.increment=function(I){this.JSC$10199_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",I)};
var Jta=function(){var I=_.XM();this.JSC$10202_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Jta.prototype.increment=function(){this.JSC$10202_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var ve8=function(){var I=_.XM();this.JSC$10205_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.EW("channel_type"),_.EW("error_type"))};
ve8.prototype.increment=function(I,y){this.JSC$10205_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",I,y)};
var SM1=function(){var I=_.XM();this.JSC$10208_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
SM1.prototype.increment=function(){this.JSC$10208_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var tve=function(){var I=_.XM();this.JSC$10211_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
tve.prototype.increment=function(){this.JSC$10211_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var C7Z=function(){var I=_.XM();this.JSC$10217_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
C7Z.prototype.increment=function(){this.JSC$10217_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
n_a=function(I){return I.getCount&&typeof I.getCount=="function"?I.getCount():_.i_(I)||typeof I==="string"?I.length:_.e$.getCount(I)};
pRa=function(I,y){if(typeof I.every=="function")return I.every(y,void 0);if(_.i_(I)||typeof I==="string")return Array.prototype.every.call(I,y,void 0);for(var D=_.fJf(I),F=_.q2(I),R=F.length,O=0;O<R;O++)if(!y.call(void 0,F[O],D&&D[O],I))return!1;return!0};
mja=function(I,y,D,F){var R=new _.Pg(null);I&&_.E7(R,I);y&&_.GM(R,y);D&&_.XI(R,D);F&&_.QL(R,F);return R};
MVY=function(I){if(I>=48&&I<=57||I>=96&&I<=106||I>=65&&I<=90||_.cr&&I==0)return!0;switch(I){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 _.Wr;default:return!1}};
zPg=function(I){if(I.altKey&&!I.ctrlKey||I.metaKey||I.keyCode>=112&&I.keyCode<=123)return!1;if(MVY(I.keyCode))return!0;switch(I.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!_.Wr;default:return I.keyCode<166||I.keyCode>183}};
_.Qj=function(I){this.__isSoyCss=!0;this.css=HTC.apply(null,[I.strings].concat(_.Td(I.args)))};
_.Qj.prototype.toString=function(){return this.css};
var eNa=function(){_.Qj.apply(this,arguments)};
_.E(eNa,_.Qj);var k9e=[0,_.t4,hPa,-1],RA1=0,vC1=!1,$5G=function(I,y,D,F,R,O,w){this.date=typeof I==="number"?new Date(I,y||0,D||1,F||0,R||0,O||0,w||0):new Date(I&&I.getTime?I.getTime():_.q0())};
_.EI($5G,_.T0);_.L=$5G.prototype;_.L.getHours=function(){return this.date.getHours()};
_.L.getMinutes=function(){return this.date.getMinutes()};
_.L.getSeconds=function(){return this.date.getSeconds()};
_.L.getMilliseconds=function(){return this.date.getMilliseconds()};
_.L.getUTCDay=function(){return this.date.getUTCDay()};
_.L.getUTCHours=function(){return this.date.getUTCHours()};
_.L.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.L.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.L.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.L.setHours=function(I){this.date.setHours(I)};
_.L.setMinutes=function(I){this.date.setMinutes(I)};
_.L.setSeconds=function(I){this.date.setSeconds(I)};
_.L.setMilliseconds=function(I){this.date.setMilliseconds(I)};
_.L.setUTCHours=function(I){this.date.setUTCHours(I)};
_.L.setUTCMinutes=function(I){this.date.setUTCMinutes(I)};
_.L.setUTCSeconds=function(I){this.date.setUTCSeconds(I)};
_.L.setUTCMilliseconds=function(I){this.date.setUTCMilliseconds(I)};
_.L.add=function(I){_.T0.prototype.add.call(this,I);I.hours&&this.setUTCHours(this.date.getUTCHours()+I.hours);I.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+I.minutes);I.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+I.seconds)};
_.L.JSC$11604_toIsoString=function(I){var y=_.T0.prototype.JSC$11604_toIsoString.call(this,I);return I?y+"T"+_.p2(this.getHours(),2)+":"+_.p2(this.getMinutes(),2)+":"+_.p2(this.getSeconds(),2):y+"T"+_.p2(this.getHours(),2)+_.p2(this.getMinutes(),2)+_.p2(this.getSeconds(),2)};
_.L.equals=function(I){return this.getTime()==I.getTime()};
_.L.toString=function(){return this.JSC$11604_toIsoString()};
_.L.clone=function(){var I=new $5G(this.date);I.firstDayOfWeek_=this.firstDayOfWeek_;I.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return I};
TY.prototype.set=function(I){this.relativeTimeStart_=I};
TY.prototype.reset=function(){this.set(_.q0())};
TY.prototype.get=function(){return this.relativeTimeStart_};
var djG=null,amG=function(){djG||(djG=new TY)},crY=function(){djG||(djG=new TY)};
_.EI(crY,amG);_.L=tuQ.prototype;_.L.JSC$11630_buffer_="";_.L.set=function(I){this.JSC$11630_buffer_=""+I};
_.L.append=function(I,y,D){this.JSC$11630_buffer_+=String(I);if(y!=null)for(var F=1;F<arguments.length;F++)this.JSC$11630_buffer_+=arguments[F];return this};
_.L.clear=function(){this.JSC$11630_buffer_=""};
_.L.getLength=function(){return this.JSC$11630_buffer_.length};
_.L.toString=function(){return this.JSC$11630_buffer_};
var hA8={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"},UQ8=function(I){this.xhr=I},V7=function(I,y,D){_.Io.call(this,I+", errorCode="+y);
this.errorCode=y;this.xhr=D;this.name="PromiseAjaxError"};
_.E(V7,_.Io);var WST=!1,ECR=function(I){_.Io.call(this,I.message||I.description||I.name);this.isMissing=I instanceof Z9;this.isTimeout=I instanceof V7&&I.errorCode=="net.timeout";this.isCanceled=I instanceof _.F9};
_.E(ECR,_.Io);ECR.prototype.name="BiscottiError";var Z9=function(){_.Io.call(this,"Biscotti ID is missing from server")};
_.E(Z9,_.Io);Z9.prototype.name="BiscottiMissingError";var KDQ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},gg=null,vYa=function(){try{var I=_.jF("yt.ads.biscotti.getId_");return I?I():VbY()}catch(y){return _.eE(y)}},zAy={'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"},CkR=function(I,y){return _.Ec({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:I,command:y}})},BXa=function(I){return _.Ec({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:I}})},iHe=function(I){return _.Ec({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:I}})},Aro=function(I){return _.Ec({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:I}})},$jC=function(){return _.Ec({type:"TALK_TO_RECS_RESET_STEP_STATES",
payload:null})},bHe=function(I){return _.Ec({type:"SET_GUIDE_IS_EXPANDED",
payload:I})},HHo=function(I){return _.Ec({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:I})},eP8=function(I){return _.Ec({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:I})},TXZ=function(I){return _.Ec({type:"SET_ONLINE_STATUS",
payload:I})},sca=function(I){return _.Ec({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:I}})},VVY=function(I){return _.Ec({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:I}})},ZHo=function(I){return _.Ec({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:I}})},g_Y=function(I,y){return _.Ec({type:"SET_TRANSCRIPTION_STATE",
payload:{high:I,low:y}})},IB8=function(I){return _.Ec({type:"SET_OVERLAY_STATE",
payload:I})},Vuo=[[["aXpqczNwcmltYXJ5I2NlbWtvdGY=",
null,null],[null,["by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjbWo3dXB2dnpyaWFheXRkLXR3","bGUtc2NvcGUjbXNod3M3d2twMjM1c3R5"],null],["dGhlYWQtYWQjYjB2MWVlbDgyNjJzbWFz",["Ynl3eHh3a244NHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjaHo="],null],[null,["MmZ4ZDk4MGs3Z3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjaTk=","bGUtc2NvcGUjY3p5M2lqYWF3cXA4c3R5"],null],[null,["eTNlZ2xlMXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjZG1seTg=","bGUtc2NvcGUjc29iMmh2YnNxcnkyc3R5"],null],[null,["anZ2bTRqcWtwdGVreXRkLWFkLXNsb3QtcmVuZGVyZXIj"],null]],[["bGF5ZXItYWRzI2VuOGM1cXExN2Qzb3A=",
null,null]],[[null,null,"OHhzM2JrcGV5dGxyLWJhbm5lci1jdGEtcmVuZGVyZXIjNXBkMA=="]]],$QR="#",ygb=0,DnZ=function(I,y,D){var F=this;this.priority=y;this.delay=D;this.jobId=0;this.completionCallback=_.Hq;this.wrappedJob=function(){I();F.completionCallback()};
this.id=++ygb};
DnZ.prototype.enqueue=function(I){this.completionCallback=I;this.jobId=_.w2.addJob(this.wrappedJob,this.priority,this.delay)};
var nw=function(){_.G9.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.E(nw,_.G9);nw.prototype.addJob=function(I,y,D){I=new DnZ(I,y,D);this.taskIdToTask.set(I.id,I);this.isActive?FzG(this,I):this.suspendedTasks.add(I);return I.id};
var FzG=function(I,y){I.scheduledTasks.add(y);y.enqueue(function(){I.scheduledTasks.delete(y)})};
nw.prototype.cancelJob=function(I){(I=this.taskIdToTask.get(I))&&(this.scheduledTasks.delete(I)?_.w2.cancelJob(I.jobId):this.suspendedTasks.delete(I))};
nw.prototype.pause=function(){var I=this;this.isActive=!1;this.scheduledTasks.forEach(function(y){_.w2.cancelJob(y.jobId);I.suspendedTasks.add(y)});
this.scheduledTasks.clear()};
nw.prototype.start=function(){var I=this;this.isActive=!0;this.suspendedTasks.forEach(function(y){FzG(I,y)});
this.suspendedTasks.clear()};
nw.prototype.reset=function(){this.scheduledTasks.forEach(function(I){_.w2.cancelJob(I.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var RtY=function(I,y){this.JSC$13488_networkService_=I;this.pageRequestPromise=y};
RtY.prototype.fetchData=function(I){O3Z(this,this.JSC$13488_networkService_.fetchData(I))};
RtY.prototype.postData=function(I,y){O3Z(this,this.JSC$13488_networkService_.postData(I,y))};
RtY.prototype.requestDataForServiceEndpoint=function(I,y){O3Z(this,this.JSC$13488_networkService_.requestDataForServiceEndpoint(I,y))};
var O3Z=function(I,y){y.then(I.pageRequestPromise.onSuccess,I.pageRequestPromise.onFailure,I.pageRequestPromise)};
RtY.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Lz8=function(I){this.buildNetworkRequest_=I;this.pendingRequests_=new Set};
Lz8.prototype.reset=function(){this.pendingRequests_.forEach(function(I){I.cancel()});
this.pendingRequests_.clear()};
Lz8.prototype.fetchData=function(I){var y=Jgb(this);y.fetchData(I);return y.pageRequestPromise};
Lz8.prototype.postData=function(I,y){var D=Jgb(this);D.postData(I,y);return D.pageRequestPromise};
Lz8.prototype.requestDataForServiceEndpoint=function(I,y){var D=Jgb(this);D.requestDataForServiceEndpoint(I,y);return D.pageRequestPromise};
var Jgb=function(I){var y=I.buildNetworkRequest_();I.pendingRequests_.add(y);var D=function(){I.pendingRequests_.delete(y)};
y.pageRequestPromise.then(D,D);return y},wto=function(I){var y=new nw;
this.JSC$13495_networkService_=I;this.JSC$13495_taskManager_=y;this.JSC$13495_networkManager_=new Lz8(this.networkRequestFactory_.bind(this))};
_.L=wto.prototype;_.L.networkRequestFactory_=function(){return new RtY(this.JSC$13495_networkService_,new _.aJ(this.JSC$13495_taskManager_))};
_.L.reset=function(){this.JSC$13495_taskManager_.reset();this.JSC$13495_networkManager_.reset()};
_.L.start=function(){this.JSC$13495_taskManager_.start()};
_.L.pause=function(){this.JSC$13495_taskManager_.pause()};
_.L.getTaskManager=function(){return this.JSC$13495_taskManager_};
_.L.getNetworkManager=function(){return this.JSC$13495_networkManager_};
var JRQ=null,S_C=[],DUe=0,LQy=0,FQo=null,KQy=null,OB=function(I){this.token=I};
OB.getInstance=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nv(),2);I=y.yieldResult;if(!I)return y.return();OB.instance||(OB.instance=new OB(I));return y.return(OB.instance)})};
var u1G=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(hLC(I.token),2);y=D.yieldResult;return D.return(y.clear("resource-manifest-assets"))})},RX=function(I){this.token=I};
RX.getInstance=function(){var I;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nv(),2);I=y.yieldResult;if(!I)return y.return();RX.instance||(RX.instance=new RX(I));return y.return(RX.instance)})};
var xUa=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(hLC(I.token),2);y=D.yieldResult;return D.yield(y.clear("auth"),0)})},v0Q=!1,C5G=null,BUG=void 0,VCy=!1,S4T=function(I){if(!_.xz(document,"gtm-noscript")){var y=document.createElement("noscript");
y.id="gtm-noscript";y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+I+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(y)}},tlQ=function(I){_.Io.call(this,I)};
_.E(tlQ,_.bUf);
var $rZ=!1,e3G=[],HEa=!1,wWa={},VaR=function(I,y){var D=PMa,F=this;this.renderFn=I;this.listeners=D;this.context=y;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var R;this.lastSeenPlayerApi=_.RL((R=this.playerControlsData)==null?void 0:R.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.SXq(),void 0);_.l("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){ZtC(F).setState({playerState:-1});F.resetRecentlyNavigatedJobId&&
_.w2.cancelJob(F.resetRecentlyNavigatedJobId);F.recentlyNavigated=!0;F.resetRecentlyNavigatedJobId=_.w2.addJob(function(){F.recentlyNavigated=!1},8,1E4)})};
VaR.prototype.setState=function(I){if(!_.l("mweb_player_skip_no_op_state_changes")||!vKo(I,this.state))if(this.state=Object.assign({},this.state,I),!_.l("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)I=-1,_.l("player_controls_log_creation_killswitch")||Sca()||(I=(0,_.m_)()),_.V_("pcu_s"),_.V_("pcu_se"),_.V_("pcu_rs"),this.renderFn(ZtC(this)),_.V_("pcu_re"),tIa(I),_.w2.addJob(function(){_.V_("pcu_ap")},8)};
var ZtC=function(I){if(I.getPlayerApi)var y=_.RL(I.getPlayerApi());else{var D;y=_.RL((D=I.playerControlsData)==null?void 0:D.playerApi)}return Object.assign({},I.state,{setState:I.boundSetState,domMeasurements:{progressBarLineRect:I.progressBarLineRect},playerApi:y,appApi:I.context.appApi,playerContainer:I.context.playerContainer,playerControlContainer:I.context.playerControlContainer,uxConfig:I.context.uxConfig})},gzZ=function(I){I.listeners.forEach(function(y){I.eventListenerCleanupFunctions.push(y.register(function(){return ZtC(I)},
function(){return I.getData()}))})},Iyb=function(I){I.eventListenerCleanupFunctions.forEach(function(y){y()});
I.eventListenerCleanupFunctions.length=0};
VaR.prototype.getData=function(){return this.playerControlsData};var yCY=function(){var I=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return I?parseInt(I[1],10):0},KzT=function(I){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+I)!=-1||document.currentScript.src.indexOf("&"+I)!=-1)},UnY=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},LZo=function(I){I.length?rgg(I.shift(),function(){LZo(I)}):FZQ()},w4G=function(I){return"chrome-extension://"+I+"/cast_sender.js"},rgg=function(I,
y,D){var F=document.createElement("script");
F.onerror=y;D&&(F.onload=D);_.Uk(F,_.Ve(I));(document.head||document.documentElement).appendChild(F)},jZa=function(){var I=yCY(),y=[];
if(I>1){var D=I-1;y.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js");y.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js")}return y},FZQ=function(){var I=UnY();
I&&I(!1,"No cast extension found")},OQT=function(){if(o0e){var I=2,y=UnY(),D=function(){I--;
I==0&&y&&y(!0)};
window.__onGCastApiAvailable=D;rgg("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",FZQ,D)}},D4e=function(){OQT();
var I=jZa();I.push("//www.gstatic.com/eureka/clank/cast_sender.js");LZo(I)},R08=function(){OQT();
var I=jZa();I.push.apply(I,_.Td(JCY.map(w4G)));I.push("//www.gstatic.com/eureka/clank/cast_sender.js");LZo(I)},o0e=KzT("loadCastFramework")||KzT("loadCastApplicationFramework"),JCY=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var NhQ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(NhQ,_.KS);var hte=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(hte,_.KS);var xna=function(){var I=new hte;return _.yH(I,1,3)};var pw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(pw,_.KS);var MIR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(MIR,_.KS);var lBG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(lBG,_.KS);lBG.prototype.getToken=function(){return _.Tp(this,1)};
lBG.prototype.setToken=function(I){return _.wT(this,1,I)};
var pWZ=function(I){return _.Va(I,3,_.fa,_.xW())},ml8=function(I){return _.Va(I,6,_.fa,_.xW())};var mx=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(mx,_.KS);mx.prototype.getToken=function(){return _.kk(this,lBG,2)};
mx.prototype.setToken=function(I){return _.mH(this,2,I)};
mx.prototype.getName=function(){return _.Tp(this,6)};
var uoC=_.nS(mx);var q4G=function(I,y,D){this.requestMessage=I;this.methodDescriptor=y;this.metadata=D};
q4G.prototype.getMetadata=function(){return this.metadata};var E0Y=function(I,y){y=y===void 0?{}:y;this.responseMessage=I;this.metadata=y;this.status=null};
E0Y.prototype.getMetadata=function(){return this.metadata};
E0Y.prototype.getStatus=function(){return this.status};var MW=function(I,y,D,F,R){this.name=I;this.methodType="unary";this.requestType=y;this.responseType=D;this.requestSerializeFn=F;this.responseDeserializeFn=R},G0a=function(I,y,D){D=D===void 0?{}:D;
return new q4G(y,I,D)};
MW.prototype.getName=function(){return this.name};var zg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(zg,_.KS);zg.prototype.getHeader=function(){return _.kk(this,pw,1)};
zg.prototype.setHeader=function(I){return _.mH(this,1,I)};
zg.prototype.hasHeader=function(){return _.aL(this,pw,1)};var Xtg=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Xtg,_.KS);var QZY=new MW("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",zg,Xtg,function(I){return I.serialize()},_.nS(Xtg));var ko=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ko,_.KS);ko.prototype.getHeader=function(){return _.kk(this,pw,1)};
ko.prototype.setHeader=function(I){return _.mH(this,1,I)};
ko.prototype.hasHeader=function(){return _.aL(this,pw,1)};var Y4T=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Y4T,_.KS);var fBg=new MW("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",ko,Y4T,function(I){return I.serialize()},_.nS(Y4T));var dF=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(dF,_.KS);dF.prototype.getHeader=function(){return _.kk(this,pw,1)};
dF.prototype.setHeader=function(I){return _.mH(this,1,I)};
dF.prototype.hasHeader=function(){return _.aL(this,pw,1)};var n0R=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(n0R,_.KS);n0R.prototype.getValues=function(I){return _.F1O(this,1,I)};var pty=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(pty,_.KS);pty.prototype.getLink=function(){return _.kk(this,mx,1)};var mnY=new MW("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",dF,pty,function(I){return I.serialize()},_.nS(pty));var a9=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(a9,_.KS);a9.prototype.getHeader=function(){return _.kk(this,pw,1)};
a9.prototype.setHeader=function(I){return _.mH(this,1,I)};
a9.prototype.hasHeader=function(){return _.aL(this,pw,1)};var MlY=new MW("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a9,mx,function(I){return I.serialize()},uoC);var ztR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(ztR,_.KS);var k0a=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(k0a,_.KS);k0a.prototype.getUrl=function(){return _.Tp(this,2)};
k0a.prototype.setUrl=function(I){return _.wT(this,2,I)};var dn1=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(dn1,_.KS);var aB1=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(aB1,_.KS);var cgY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(cgY,_.KS);var HCy=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(HCy,_.KS);var $la=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E($la,_.KS);var Wzo=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Wzo,_.KS);var DPQ=_.nS(Wzo);var CMR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(CMR,_.KS);var BhY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(BhY,_.KS);_.L=BhY.prototype;_.L.getHeader=function(){return _.kk(this,pw,1)};
_.L.setHeader=function(I){return _.mH(this,1,I)};
_.L.hasHeader=function(){return _.aL(this,pw,1)};
_.L.getCompletionUrl=function(){return _.Tp(this,6)};
_.L.getDeviceId=function(){return _.Tp(this,11)};var i3C=new MW("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",BhY,Wzo,function(I){return I.serialize()},DPQ);var AgT=new Set(["SAPISIDHASH","APISIDHASH"]);var $no=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E($no,_.KS);$no.prototype.getMessage=function(){return _.Tp(this,2)};
var b3Z=_.nS($no);var ety=function(I,y){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=I.nodeReadableStream;this.grpcResponseDeserializeFn=y;this.xhr=I.xhr;this.xhrNodeReadableStream&&H3T(this)},yKT=function(I,y){var D=new The;
_.bV(I.xhr,"complete",function(){if(I.xhr.isSuccess()){var F=I.xhr.getResponseText();var R;if(R=y)R=I.xhr,R.JSC$10072_xhr_&&R.isComplete()?(R=R.JSC$10072_xhr_.getResponseHeader("Content-Type"),R=R===null?void 0:R):R=void 0,R=R==="text/plain";if(R){if(!atob)throw Error("ck");F=atob(F)}try{var O=I.grpcResponseDeserializeFn(F)}catch(v){sZR(I,r_a(new _.Ra(13,"Error when deserializing response data; error: "+v+(", response: "+F)),D));return}F=_.XiL(I.xhr.getStatus());Vlg(I,Z3e(I));F===0?g0Y(I,O):sZR(I,
r_a(new _.Ra(F,"Xhr succeeded but the status code is not 200"),D))}else{F=I.xhr.getResponseText();O=Z3e(I);if(F){var w=IUb(I,F);F=w.code;R=w.details;w=w.metadata}else F=2,R="Rpc failed due to xhr error. uri: "+String(I.xhr.JSC$10072_lastUri_)+", error code: "+(I.xhr.JSC$10072_lastErrorCode_+", error: ")+I.xhr.getLastError(),w=O;Vlg(I,O);sZR(I,r_a(new _.Ra(F,R,w),D))}})},H3T=function(I){I.xhrNodeReadableStream.on("data",function(y){if("1"in y){var D=y["1"];
try{var F=I.grpcResponseDeserializeFn(D)}catch(R){sZR(I,new _.Ra(13,"Error when deserializing response data; error: "+R+(", response: "+D)))}F&&g0Y(I,F)}if("2"in y)for(y=IUb(I,y["2"]),D=0;D<I.onStatusCallbacks.length;D++)I.onStatusCallbacks[D](y)});
I.xhrNodeReadableStream.on("end",function(){Vlg(I,Z3e(I));for(var y=0;y<I.onEndCallbacks.length;y++)I.onEndCallbacks[y]()});
I.xhrNodeReadableStream.on("error",function(){if(I.onErrorCallbacks.length!==0){var y=I.xhr.JSC$10072_lastErrorCode_;y!==0||I.xhr.isSuccess()||(y=6);var D=-1;switch(y){case 0:var F=2;break;case 7:F=10;break;case 8:F=4;break;case 6:D=I.xhr.getStatus();F=_.XiL(D);break;default:F=14}Vlg(I,Z3e(I));y=_.SJG(y)+", error: "+I.xhr.getLastError();D!==-1&&(y+=", http status code: "+D);sZR(I,new _.Ra(F,y))}})},Z3e=function(I){var y={},D=S5y(I.xhr);
Object.keys(D).forEach(function(F){y[F]=D[F]});
return y},IUb=function(I,y){var D=2,F={};
try{var R=b3Z(y);D=_.lD(R,1);var O=R.getMessage();_.hv(R,YsZ,3,_.xW()).length&&(F["grpc-web-status-details-bin"]=y)}catch(w){I.xhr&&I.xhr.getStatus()===404?(D=5,O="Not Found: "+String(I.xhr.JSC$10072_lastUri_)):(D=14,O="Unable to parse RpcStatus: "+w)}return{code:D,details:O,metadata:F}};
ety.prototype.on=function(I,y){I==="data"?this.onDataCallbacks.push(y):I==="metadata"?this.onMetadataCallbacks.push(y):I==="status"?this.onStatusCallbacks.push(y):I==="end"?this.onEndCallbacks.push(y):I==="error"&&this.onErrorCallbacks.push(y);return this};
var DLo=function(I,y){y=I.indexOf(y);y>-1&&I.splice(y,1)};
ety.prototype.removeListener=function(I,y){I==="data"?DLo(this.onDataCallbacks,y):I==="metadata"?DLo(this.onMetadataCallbacks,y):I==="status"?DLo(this.onStatusCallbacks,y):I==="end"?DLo(this.onEndCallbacks,y):I==="error"&&DLo(this.onErrorCallbacks,y);return this};
ety.prototype.cancel=function(){this.xhr.abort()};
var g0Y=function(I,y){for(var D=0;D<I.onDataCallbacks.length;D++)I.onDataCallbacks[D](y)},Vlg=function(I,y){for(var D=0;D<I.onMetadataCallbacks.length;D++)I.onMetadataCallbacks[D](y)},sZR=function(I,y){for(var D=0;D<I.onErrorCallbacks.length;D++)I.onErrorCallbacks[D](y)},The=function(){var I=Error.call(this);
this.message=I.message;"stack"in I&&(this.stack=I.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(The,Error);var F6Y=function(I){this.JSC$19509_worker_=I.worker||null;this.JSC$19509_streamBinaryChunks_=I.streamBinaryChunks||!1;this.JSC$19509_credentialsMode_=void 0};
_.EI(F6Y,_.YJe);F6Y.prototype.createInstance=function(){var I=new cM(this.JSC$19509_worker_,this.JSC$19509_streamBinaryChunks_);this.JSC$19509_credentialsMode_&&I.setCredentialsMode(this.JSC$19509_credentialsMode_);return I};
F6Y.prototype.setCredentialsMode=function(I){this.JSC$19509_credentialsMode_=I};
var cM=function(I,y){_.Zw.call(this);this.JSC$19513_worker_=I;this.JSC$19513_streamBinaryChunks_=y;this.JSC$19513_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19513_responseHeaders_=null;this.JSC$19513_method_="GET";this.JSC$19513_url_="";this.inProgress_=!1;this.JSC$19513_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.EI(cM,_.Zw);cM.prototype.open=function(I,y){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19513_method_=I;this.JSC$19513_url_=y;this.readyState=1;Rle(this)};
cM.prototype.send=function(I){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var y={headers:this.requestHeaders_,method:this.JSC$19513_method_,credentials:this.JSC$19513_credentialsMode_,cache:void 0,signal:this.abortController_.signal};I&&(y.body=I);(this.JSC$19513_worker_||_.Ft).fetch(new Request(this.JSC$19513_url_,y)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
cM.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,OPy(this));this.readyState=0};
cM.prototype.handleResponse_=function(I){if(this.inProgress_&&(this.fetchResponse_=I,this.JSC$19513_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19513_responseHeaders_=I.headers,this.readyState=2,Rle(this)),this.inProgress_&&(this.readyState=3,Rle(this),this.inProgress_)))if(this.responseType==="arraybuffer")I.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Ft.ReadableStream!==
"undefined"&&"body"in I){this.currentReader_=I.body.getReader();if(this.JSC$19513_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19513_textDecoder_=new TextDecoder;L6Z(this)}else I.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var L6Z=function(I){I.currentReader_.read().then(I.handleDataFromStream_.bind(I)).catch(I.handleSendFailure_.bind(I))};
cM.prototype.handleDataFromStream_=function(I){if(this.inProgress_){if(this.JSC$19513_streamBinaryChunks_&&I.value)this.response.push(I.value);else if(!this.JSC$19513_streamBinaryChunks_){var y=I.value?I.value:new Uint8Array(0);if(y=this.JSC$19513_textDecoder_.decode(y,{stream:!I.done}))this.response=this.responseText+=y}I.done?OPy(this):Rle(this);this.readyState==3&&L6Z(this)}};
cM.prototype.handleResponseText_=function(I){this.inProgress_&&(this.response=this.responseText=I,OPy(this))};
cM.prototype.handleResponseArrayBuffer_=function(I){this.inProgress_&&(this.response=I,OPy(this))};
cM.prototype.handleSendFailure_=function(){this.inProgress_&&OPy(this)};
var OPy=function(I){I.readyState=4;I.fetchResponse_=null;I.currentReader_=null;I.JSC$19513_textDecoder_=null;Rle(I)};
cM.prototype.setRequestHeader=function(I,y){this.requestHeaders_.append(I,y)};
cM.prototype.getResponseHeader=function(I){return this.JSC$19513_responseHeaders_?this.JSC$19513_responseHeaders_.get(I.toLowerCase())||"":""};
cM.prototype.getAllResponseHeaders=function(){if(!this.JSC$19513_responseHeaders_)return"";for(var I=[],y=this.JSC$19513_responseHeaders_.entries(),D=y.next();!D.done;)D=D.value,I.push(D[0]+": "+D[1]),D=y.next();return I.join("\r\n")};
cM.prototype.setCredentialsMode=function(I){this.JSC$19513_credentialsMode_=I};
var Rle=function(I){I.onreadystatechange&&I.onreadystatechange.call(I)};
Object.defineProperty(cM.prototype,"withCredentials",{get:function(){return this.JSC$19513_credentialsMode_==="include"},
set:function(I){this.setCredentialsMode(I?"include":"same-origin")}});var JKa=function(I){var y="";_.e$.forEach(I,function(D,F){y+=F;y+=":";y+=D;y+="\r\n"});
return y},wZT=function(I,y,D){if(_.e$.isEmpty(D))return I;
D=JKa(D);if(typeof I==="string")return _.rC(I,_.NC(y),D);_.hu(I,y,D);return I};jQo.prototype.isInputValid=function(){return this.isInputValid_};
jQo.prototype.decode=function(I){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19519_streamPos_+"`stream already broken`"+I);this.leftoverInput_+=I;I=Math.floor(this.leftoverInput_.length/4);if(I==0)return null;try{var y=_.i5t(this.leftoverInput_.slice(0,I*4))}catch(D){throw y=this.leftoverInput_,I=D.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19519_streamPos_+"`"+I+"`"+y);}this.JSC$19519_streamPos_+=I*4;this.leftoverInput_=this.leftoverInput_.slice(I*4);return y};oK8.prototype.isInputValid=function(){return this.state_!=3};
var vFZ=function(I,y,D,F){I.state_=3;I.errorMessage_="The stream is broken @"+I.JSC$19522_streamPos_+"/"+D+". Error: "+F+". With input:\n"+y;throw Error(I.errorMessage_);};
oK8.prototype.acceptsBinaryInput=function(){return!0};
oK8.prototype.parse=function(I){function y(P){P&128&&vFZ(O,w,v,"invalid tag");(P&7)!=2&&vFZ(O,w,v,"invalid wire type");O.tag_=P>>>3;O.tag_!=1&&O.tag_!=2&&O.tag_!=15&&vFZ(O,w,v,"unexpected tag");O.state_=1;O.length_=0;O.countLengthBytes_=0}
function D(P){O.countLengthBytes_++;O.countLengthBytes_==5&&P&240&&vFZ(O,w,v,"message length too long");O.length_|=(P&127)<<(O.countLengthBytes_-1)*7;P&128||(O.state_=2,O.countMessageBytes_=0,typeof Uint8Array!=="undefined"?O.messageBuffer_=new Uint8Array(O.length_):O.messageBuffer_=Array(O.length_),O.length_==0&&R())}
function F(P){O.messageBuffer_[O.countMessageBytes_++]=P;O.countMessageBytes_==O.length_&&R()}
function R(){if(O.tag_<15){var P={};P[O.tag_]=O.messageBuffer_;O.result_.push(P)}O.state_=0}
for(var O=this,w=I instanceof Array?I:new Uint8Array(I),v=0;v<w.length;){switch(O.state_){case 3:vFZ(O,w,v,"stream already broken");break;case 0:y(w[v]);break;case 1:D(w[v]);break;case 2:F(w[v]);break;default:throw Error("ik`"+O.state_);}O.JSC$19522_streamPos_++;v++}I=O.result_;O.result_=[];return I.length>0?I:null};var xlZ=function(){this.errorMessage_=null;this.JSC$19525_streamPos_=0;this.base64Decoder_=new jQo;this.pbParser_=new oK8};
xlZ.prototype.isInputValid=function(){return this.errorMessage_===null};
var SD1=function(I,y,D){I.errorMessage_="The stream is broken @"+I.JSC$19525_streamPos_+". Error: "+D+". With input:\n"+y;throw Error(I.errorMessage_);};
xlZ.prototype.acceptsBinaryInput=function(){return!1};
xlZ.prototype.parse=function(I){this.errorMessage_!==null&&SD1(this,I,"stream already broken");var y=null;try{var D=this.base64Decoder_.decode(I);y=D===null?null:this.pbParser_.parse(D)}catch(F){SD1(this,I,F.message)}this.JSC$19525_streamPos_+=I.length;return y};var hVT=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19528_streamPos_=0;this.result_=[];this.statusParsed_=!1};
hVT.prototype.isInputValid=function(){return this.errorMessage_===null};
hVT.prototype.acceptsBinaryInput=function(){return!1};
hVT.prototype.parse=function(I){function y(P){O.state_=6;O.errorMessage_="The stream is broken @"+O.JSC$19528_streamPos_+"/"+w+". Error: "+P+". With input:\n";throw Error(O.errorMessage_);}
function D(){O.jsonStreamParser_=new _.eu({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function F(P){if(P)for(var K=0;K<P.length;K++){var r={};r[1]=P[K];O.result_.push(r)}}
function R(P){if(P){(O.statusParsed_||P.length>1)&&y("extra status: "+P);O.statusParsed_=!0;var K={};K[2]=P[0];O.result_.push(K)}}
for(var O=this,w=0;w<I.length;){var v;if(v=O.state_!==2){a:{for(;w<I.length;){if(!_.G5(I[w])){v=!0;break a}w++;O.JSC$19528_streamPos_++}v=!1}v=!v}if(v)return null;switch(O.state_){case 6:y("stream already broken");break;case 0:I[w]==="["?(O.state_=1,w++,O.JSC$19528_streamPos_++):y("unexpected input token");break;case 1:I[w]==="["?(O.state_=2,D()):I[w]===","||I.slice(w,w+5)=="null,"?O.state_=3:I[w]==="]"?(O.state_=5,w++,O.JSC$19528_streamPos_++):y("unexpected input token");break;case 2:v=O.jsonStreamParser_.parse(I.substring(w));
F(v);O.jsonStreamParser_.done()?(O.state_=3,v=O.jsonStreamParser_.JSC$11757_buffer_,O.JSC$19528_streamPos_+=I.length-w-v.length,I=v,w=0):(O.JSC$19528_streamPos_+=I.length-w,w=I.length);break;case 3:I[w]===","||I.slice(w,w+5)=="null,"?(O.state_=4,D(),O.jsonStreamParser_.parse("["),w+=I[w]===","?1:5,O.JSC$19528_streamPos_++):I[w]==="]"&&(O.state_=5,w++,O.JSC$19528_streamPos_++);break;case 4:v=O.jsonStreamParser_.parse(I.substring(w));R(v);O.jsonStreamParser_.done()?(O.state_=5,v=O.jsonStreamParser_.JSC$11757_buffer_,
O.JSC$19528_streamPos_+=I.length-w-v.length,I=v,w=0):(O.JSC$19528_streamPos_+=I.length-w,w=I.length);break;case 5:y("extra input after stream end")}}return O.result_.length>0?(I=O.result_,O.result_=[],I):null};var tQe=function(I){this.JSC$19531_xhr_=I;this.JSC$19531_parser_=null;this.status_=this.JSC$19531_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19531_textDecoder_=null;this.JSC$19531_eventHandler_=new _.H5(this);this.JSC$19531_eventHandler_.listen(this.JSC$19531_xhr_,"readystatechange",this.JSC$19533_readyStateChangeHandler_)},WM=function(I,y){I.status_!=y&&(I.status_=y,I.statusHandler_&&I.statusHandler_())},P8b=function(I){I.JSC$19531_eventHandler_.removeAll();
if(I.JSC$19531_xhr_){var y=I.JSC$19531_xhr_;I.JSC$19531_xhr_=null;y.abort();y.dispose()}};
tQe.prototype.getStatus=function(){return this.status_};
tQe.prototype.JSC$19533_readyStateChangeHandler_=function(I){I=I.target;try{if(I==this.JSC$19531_xhr_)a:{var y=_.Jd(this.JSC$19531_xhr_),D=this.JSC$19531_xhr_.JSC$10072_lastErrorCode_,F=this.JSC$19531_xhr_.getStatus(),R=this.JSC$19531_xhr_.getResponseText();I=[];if(this.JSC$19531_xhr_.getResponse()instanceof Array){var O=this.JSC$19531_xhr_.getResponse();O.length>0&&O[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,I=O)}if(!(y<3||y==3&&!R&&I.length==0))if(F=F==200||F==206,y==4&&(D==8?
WM(this,7):D==7?WM(this,8):F||WM(this,3)),this.JSC$19531_parser_||(this.JSC$19531_parser_=l5g(this.JSC$19531_xhr_),this.JSC$19531_parser_==null&&WM(this,5)),this.status_>2)P8b(this);else{if(I.length>this.JSC$19531_pos_){var w=I.length;D=[];try{if(this.JSC$19531_parser_.acceptsBinaryInput())for(var v=0;v<w;v++){var P=this.JSC$19531_parser_.parse(Array.from(I[v]));P&&(D=D.concat(P))}else{P="";if(!this.JSC$19531_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19531_textDecoder_=
new TextDecoder}for(v=0;v<w;v++)P+=this.JSC$19531_textDecoder_.decode(I[v],{stream:y==4&&v==w-1});D=this.JSC$19531_parser_.parse(P)}I.splice(0,w);D&&this.dataHandler_(D)}catch(r){WM(this,5);P8b(this);break a}}else if(R.length>this.JSC$19531_pos_){v=R.slice(this.JSC$19531_pos_);this.JSC$19531_pos_=R.length;try{var K=this.JSC$19531_parser_.parse(v);K!=null&&this.dataHandler_&&this.dataHandler_(K)}catch(r){WM(this,5);P8b(this);break a}}y==4?(R.length!=0||this.hasStreamingResponseData_?WM(this,2):WM(this,
4),P8b(this)):WM(this,1)}}}catch(r){WM(this,6),P8b(this)}};var K6Y=function(I){I=this.xhrReader_=I;var y=(0,_.iD)(this.onData_,this);I.dataHandler_=y;I=this.xhrReader_;y=(0,_.iD)(this.onStatusChange_,this);I.statusHandler_=y;this.JSC$19535_callbackMap_={};this.callbackOnceMap_={}};
_.L=K6Y.prototype;_.L.on=function(I,y){var D=this.JSC$19535_callbackMap_[I];D||(D=[],this.JSC$19535_callbackMap_[I]=D);D.push(y);return this};
_.L.addListener=function(I,y){this.on(I,y);return this};
_.L.removeListener=function(I,y){var D=this.JSC$19535_callbackMap_[I];D&&_.WH(D,y);(I=this.callbackOnceMap_[I])&&_.WH(I,y);return this};
_.L.once=function(I,y){var D=this.callbackOnceMap_[I];D||(D=[],this.callbackOnceMap_[I]=D);D.push(y);return this};
_.L.onData_=function(I){var y=this.JSC$19535_callbackMap_.data;y&&ULy(I,y);(y=this.callbackOnceMap_.data)&&ULy(I,y);this.callbackOnceMap_.data=[]};
var ULy=function(I,y){for(var D={},F=0;F<I.length;D={message$jscomp$1008:void 0},F++)D.message$jscomp$1008=I[F],y.forEach(function(R){return function(O){try{O(R.message$jscomp$1008)}catch(w){}}}(D))};
K6Y.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rKG(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rKG(this,"error");break;case 8:rKG(this,"close");break;case 2:rKG(this,"end")}};
var rKG=function(I,y){var D=I.JSC$19535_callbackMap_[y];D&&D.forEach(function(F){try{F()}catch(R){}});
(D=I.callbackOnceMap_[y])&&D.forEach(function(F){F()});
I.callbackOnceMap_[y]=[]};var jOe=function(){var I={format:"jspb"};I=I===void 0?{}:I;this.suppressCorsPreflight=I.suppressCorsPreflight||_.jF("suppressCorsPreflight",I)||!1;this.withCredentials=I.withCredentials||_.jF("withCredentials",I)||!1;this.streamInterceptors=I.streamInterceptors||[];this.unaryInterceptors=I.unaryInterceptors||[];this.workerScope=I.workerScope;this.chunkedServerStreaming=I.useFetchDownloadStreams||!1},hle=function(I,y,D,F,R,O){O=O===void 0?{}:O;
var w=y.substring(0,y.length-R.name.length),v,P=(v=O)==null?void 0:v.signal;return oFC(function(K){return new Promise(function(r,N){if(P==null?0:P.aborted){var h=new _.Ra(1,"Aborted");h.cause=P.reason;N(h)}else{var x={},q=NtZ(I,K,w);q.on("error",function(X){return void N(X)});
q.on("metadata",function(X){x=X});
q.on("data",function(X){var f=x;f=f===void 0?{}:f;r(new E0Y(X,f))});
P&&P.addEventListener("abort",function(){q.cancel();var X=new _.Ra(1,"Aborted");X.cause=P.reason;N(X)})}})},I.unaryInterceptors).call(I,G0a(R,D,F)).then(function(K){return K.responseMessage})},xLa=function(I,y,D,F,R,O){O=O===void 0?{}:O;
return hle(I,y,D,F,R,O)};
jOe.prototype.serverStreaming=function(I,y,D,F){var R=this,O=I.substring(0,I.length-F.name.length);return lUG(function(w){var v=w.methodDescriptor,P=w.getMetadata(),K=uEb(R,!1);P=qD1(R,P,K,O+v.getName());var r=EFo(K,v.responseDeserializeFn,!0);w=v.requestSerializeFn(w.requestMessage);K.send(P,"POST",w);return r},this.streamInterceptors).call(this,G0a(F,y,D))};
var NtZ=function(I,y,D){var F=y.methodDescriptor,R=y.getMetadata(),O=uEb(I,!0);I=qD1(I,R,O,D+F.getName());D=EFo(O,F.responseDeserializeFn,!1);yKT(D,R["X-Goog-Encode-Response-If-Executable"]==="base64");y=F.requestSerializeFn(y.requestMessage);O.send(I,"POST",y);return D},uEb=function(I,y){y=I.chunkedServerStreaming&&!y;
return I.workerScope||y?new _.L9(new F6Y({worker:I.workerScope,streamBinaryChunks:y})):new _.L9},qD1=function(I,y,D,F){y["Content-Type"]="application/json+protobuf";
y["X-User-Agent"]="grpc-web-javascript/0.1";var R=y.Authorization;if(R&&AgT.has(R.split(" ")[0])||I.withCredentials)D.JSC$10072_withCredentials_=!0;if(I.suppressCorsPreflight)F=wZT(F,"$httpHeaders",y);else for(I=_.J(Object.keys(y)),R=I.next();!R.done;R=I.next())R=R.value,D.headers.set(R,y[R]);return F},EFo=function(I,y,D){if(D){D=new tQe(I);
var F=new K6Y(D)}return new ety({xhr:I,nodeReadableStream:F},y)},lUG=function(I,y){return y.reduce(function(D,F){return function(R){return F.intercept(R,D)}},I)},oFC=function(I,y){return y.reduce(function(D,F){return function(R){return F.intercept(R,D)}},I)};var G5Y=function(I){this.client_=new jOe;this.hostname_=I==void 0?I:I.replace(/\/+$/,"")};
_.L=G5Y.prototype;_.L.JSC$19553_depositGoogleCredential=function(I,y,D){return xLa(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",I,y||{},fBg,D)};
_.L.deleteLink=function(I,y,D){return xLa(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",I,y||{},QZY,D)};
_.L.JSC$19553_finishOAuth=function(I,y,D){return xLa(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",I,y||{},mnY,D)};
_.L.getLink=function(I,y,D){return xLa(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",I,y||{},MlY,D)};
_.L.startLinkingSession=function(I,y,D){return xLa(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",I,y||{},i3C,D)};var XZR=[0,_.jq,1,lmg,[0,_.xX,[0,_.NV,-1]],[0,xja],[0,_.GQ,-1],[0,xja]];var QOR=function(){this.storage=new Map},fUo=function(I,y,D,F,R){if(!I.storage.has(y))return null;
I=_.J(I.storage.get(y));for(y=I.next();!y.done;y=I.next())if(y=y.value,!R||y.linkName===R)if(D&&y.scopes&&YDC(y.scopes,D)||F&&y.capabilities&&YDC(y.capabilities,F))return y;return null},nF1=function(I,y,D){if(!D)I.storage.delete(y);
else if(I.storage.has(y)){var F=I.storage.get(y).filter(function(R){return R.linkName!==D});
F.length>0?I.storage.set(y,F):I.storage.delete(y)}},YDC=function(I,y){y=_.J(y);
for(var D=y.next();!D.done;D=y.next())if(!I.has(D.value))return!1;return!0};var pZb=function(){var I=_.Pi("LINK_GAL_DOMAIN");this.alsDomain1p=_.Pi("LINK_GAL_DOMAIN");this.alsDomain3p=I;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},mLy=function(I,y){I.apiKey=y;
return I};
pZb.prototype.build=function(){var I={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");I.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");I.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(I.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)I.apiKey=
this.apiKey,I.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");I.oauthToken=this.oauthToken;I.alsDomain=this.alsDomain3p}I.clientXd3=this.clientXd3;I.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(I.authUser=this.authUser);this.bucket!==void 0&&(I.bucket=this.bucket);this.completionUrl!==void 0&&(I.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(I.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(I.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(I.locale=this.locale);this.localStorage!==void 0&&(I.localStorage=this.localStorage);I.loggerType=this.loggerType;I.clientEnvironment=this.clientEnvironment;I.colorScheme=this.colorScheme;I.showCloseOption=this.showCloseOption;return I};var Ps=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Ps,_.KS);var MQb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(MQb,_.KS);var zlG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(zlG,_.KS);var UB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(UB,_.KS);var k5C=function(I){return _.sI(I,1)};var dLe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(dLe,_.KS);var YcQ=_.nS(dLe),KK=[1,2,3,4,5];var EKT=function(I){try{return YcQ(I)}catch(y){return null}},aUZ=function(){},GzY=function(I,y){switch(_.Bn(y,KK)){case 4:return(y=_.gu(y,zlG,4,KK))&&I.logStateTransition(_.sI(y,1)),!0;
case 5:return(y=_.gu(y,MQb,5,KK))&&I.logInternalEvent(_.sI(y,1)),!0}return!1},f5R=function(I){switch(I){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.ya(I)}};var uwZ=function(I,y){var D=this;this.validator=I;this.messageListener=y;this.dismissCallback=function(){cKZ(D,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19582_receiveMessage=function(F){F.type==="message"&&(F=F.event_,F!==null&&(new URL(D.iframe.src)).origin===F.origin&&D.validator(F.data,F.origin)&&!D.messageListener(F.data)&&(D.JSC$19582_resolveCb!==void 0&&D.JSC$19582_resolveCb(F.data),W6a(D)))}},QQe=function(I,y,D){I.uiHandler!==void 0&&cKZ(I,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(F,R){I.JSC$19582_resolveCb=F;I.JSC$19582_rejectCb=R;I.iframe=document.createElement("iframe");_.Ok(I.iframe,y);I.uiHandler=D.displayContent(I.iframe,I.dismissCallback);_.bV(window,"message",I.JSC$19582_receiveMessage,!1,I)})},cKZ=function(I,y){I.JSC$19582_rejectCb!==void 0&&I.JSC$19582_rejectCb(y);
W6a(I)},W6a=function(I){I.uiHandler!==void 0&&I.uiHandler.hideContent();
_.V1(window,"message",I.JSC$19582_receiveMessage,!1,I);I.JSC$19582_resolveCb=void 0;I.JSC$19582_rejectCb=void 0;I.uiHandler=void 0;I.iframe=void 0};var C8o=function(I){if(I===2){var y;I=((y=window)==null?0:y.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return I},XWa=function(I){I=C8o(I);
switch(I){case 0:return"light";case 1:return"dark";default:_.ya(I)}};var qcg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Bt8=function(I,y){this.JSC$19594_linkingSession=I;this.noticeConfig=y;this.displayInfoMap=new Map;var D=new Map;if(_.aL(this.JSC$19594_linkingSession,dn1,7))for(I=_.kk(this.JSC$19594_linkingSession,dn1,7),I=_.hv(I,k0a,1,_.xW()),I=_.J(I),y=I.next();!y.done;y=I.next())y=y.value,D.set(_.sI(y,1),_.iRH(_.kk(y,_.xIH,3)));if(D.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){y=this.noticeConfig.enabledDataUsageNoticeUis;I=y.has(0)?D.get(1):void 0;y=y.has(1)?D.get(2):void 0;D=I!==void 0&&y!==void 0?D.get(3):void 0;var F=this.noticeConfig.nestedOrigins;var R=new dLe;var O=new Ps;R=_.Mg(R,2,KK,O);O=new dLe;var w=new Ps;O=_.Mg(O,3,KK,w);w=[];I!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:I,lastEvent:R,nestedOrigins:F}]),w.push({trustedUrl:I,lastEvent:R,nestedOrigins:F}));y!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:y,lastEvent:O,nestedOrigins:F}]),w.push({trustedUrl:y,lastEvent:O,nestedOrigins:F}));D!==void 0?this.displayInfoMap.set(3,[{trustedUrl:D,lastEvent:O,nestedOrigins:F}]):this.displayInfoMap.set(3,w)}};var iP1=function(I){var y=new QOR;this.galService=I;this.galCache=y};
iP1.prototype.getLink=function(I){var y=I.serviceId;var D=I.scopes;var F=I.capabilities;var R=I.linkName;var O=this,w;return _.S(function(v){if(F!==void 0&&D!==void 0)throw Error("ok");w=fUo(O.galCache,y,D,F,R);return w!==null?v.return(w):v.return(O.galService.getLink({serviceId:y,sessionId:Math.floor(Math.random()*2147483648),scopes:D,capabilities:F,linkName:R}).then(function(P){P=zV8(P);var K=O.galCache;K.storage.has(y)?K.storage.get(y).push(P):K.storage.set(y,[P]);return P}))})};
iP1.prototype.deleteLink=function(I,y,D){var F=this;return _.S(function(R){nF1(F.galCache,I,D);return R.return(F.galService.deleteLink({serviceId:I,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:y,linkName:D}).then(function(){return!0}))})};var $LT=function(I,y){var D=this;this.validator=I;this.msgHandler=y;this.closedPopupTimeout=this.JSC$19616_rejectCb=this.JSC$19616_resolveCb=this.popup=null;this.JSC$19616_receiveMessage=function(F){if(F!==null&&(F=F.event_,F.source===D.popup)){var R=F.data;if(D.validator(R,F.origin)){var O;(O=D.msgHandler)!=null&&O.call(D,R)||(D.JSC$19616_resolveCb!==null&&D.JSC$19616_resolveCb(R),AKG(D))}}}};
$LT.prototype.open=function(I,y){var D=this;this.popup!==null&&bP1(this);return new Promise(function(F,R){D.JSC$19616_resolveCb=F;D.JSC$19616_rejectCb=R;D.popup=_.wj(window,I,"",y);_.bV(window,"message",D.JSC$19616_receiveMessage,!1,D);HPo(D)})};
var bP1=function(I,y){I.JSC$19616_rejectCb!==null&&I.JSC$19616_rejectCb(y);AKG(I)},AKG=function(I){I.closedPopupTimeout&&(I.closedPopupTimeout.cancel(),I.closedPopupTimeout=null);
I.popup&&I.popup.close();_.V1(window,"message",I.JSC$19616_receiveMessage,!1,I);I.popup=null;I.JSC$19616_resolveCb=null;I.JSC$19616_rejectCb=null},HPo=function(I){I.closedPopupTimeout=_.ORf(100).then(function(){I.popup?I.popup.closed?ela(I):HPo(I):bP1(I,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},ela=function(I){I.closedPopupTimeout=_.ORf(100).then(function(){bP1(I,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Tte=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),sOZ=function(I,y,D,F,R,O,w,v,P,K){var r=this;this.serviceId=I;this.sessionId=y;this.galService=D;this.oauthDetails=F;this.galLogger=R;this.interactionMode=O;this.redirectServiceUrl=w;this.consentLanguageKeys=v;this.dynamicUrlParameters=P;this.partnerConfigMinReadTimestamp=K;this.started=!1;this.JSC$19622_dataValidator=function(N,
h){var x=Tte.has(h);x||r.redirectServiceUrl===void 0||(x=r.redirectServiceUrl===h);return x?N.sentinel==="gdi":!1}};
sOZ.prototype.complete=function(){var I=this,y;return _.S(function(D){if(I.interactionMode!==1)return D.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=bC8.getRedirectStateFromUri();return y===null?D.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):D.return(VQC(I,y))})};
sOZ.prototype.start=function(){var I=this,y;return _.S(function(D){if(I.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Tp(I.oauthDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(I.interactionMode===1)return bC8.setLocation(_.Tp(I.oauthDetails,1)),D.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));I.started=!0;I.galLogger.logStateTransition(5);
y=bC8.getPostMessagePopup(I.JSC$19622_dataValidator);return D.return(y.open(_.Tp(I.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(F){I.started=!1;var R=I.galLogger;if((F==null?void 0:F.error)!==void 0)throw R.logInternalEvent(59),Error("pk");if((F==null?void 0:F.redirect_state)===void 0)throw R.logInternalEvent(131),Error("qk");return VQC(I,F.redirect_state)}).catch(function(F){I.started=
!1;
return F.errorCode!==void 0?{statusCode:F.errorCode,statusMessage:F.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var VQC=function(I,y){return _.S(function(D){return D.return(ZPa(I.galService,{serviceId:I.serviceId,sessionId:I.sessionId,dynamicUrlParameters:I.dynamicUrlParameters,redirectState:y,consentLanguageKeys:I.consentLanguageKeys,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp}).then(function(F){var R={statusCode:1,link:zV8(F.getLink())};WAo(_.Cz(F,3))!==void 0&&(R.callerState=WAo(_.Cz(F,3)));_.Ae5(F,4,n0R,cqR).size>0&&(R.redirectUriParams=new Map(Array.from(_.Ae5(F,4,n0R,cqR).entries()).map(function(O){var w=
_.J(O);O=w.next().value;var v=w.next().value;w=[];var P=w.concat;v=_.Va(v,1,_.fa,_.xW());return[O,P.call(w,_.Td(v))]})));
I.galLogger.logInternalEvent(134);return R}))})},bC8={getPostMessagePopup:function(I){return new $LT(I)},
getRedirectStateFromUri:function(){var I=_.ob(bC8.getLocation()).fragment_;return(new _.p9(I)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(I){_.m_L(window.location,_.VA(I))},
createOAuthFlow:function(I,y){return new sOZ(I.serviceId,I.sessionId,I.galService,y,I.galLogger,I.interactionMode,I.redirectServiceUrl,I.consentLanguageKeys,I.dynamicUrlParameters,I.partnerConfigMinReadTimestamp)}};var gFQ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(gFQ,_.KS);var Ije=_.nS(gFQ);var yw1=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),DHa=function(I,y,D,F,R,O,w,v,P){var K=this;this.serviceId=I;this.sessionId=y;this.galService=D;this.gsiWebFlowDetails=F;this.colorScheme=R;this.showCloseOption=O;this.galLogger=w;this.interactionMode=v;this.redirectServiceUrl=P;this.started=!1;this.JSC$19635_dataValidator=function(r,N){var h=yw1.has(N);h||K.redirectServiceUrl===
void 0||(h=K.redirectServiceUrl===N);return h?r.sentinel==="gal":!1};
this.logEventProcessor=function(r){return r.result?(r=EKT(r.result))?GzY(K.galLogger,r):!1:!1}};
DHa.prototype.complete=function(){var I=this,y,D;return _.S(function(F){if(I.interactionMode!==1)return F.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));y=eVg.getRedirectStateFromUri();if(y===void 0)return I.galLogger.JSC$19574_logErrorEvent(131),F.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return D=Fgo(I,y),F.return(RRG(I,D))}catch(R){return F.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
DHa.prototype.start=function(){var I=this,y;return _.S(function(D){if(I.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Tp(I.gsiWebFlowDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(I.interactionMode===1)return eVg.setLocation(OhG(I,_.Tp(I.gsiWebFlowDetails,1))),D.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
I.started=!0;y=eVg.getPostMessagePopup(I.JSC$19635_dataValidator,I.logEventProcessor);return D.return(y.open(OhG(I,_.Tp(I.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(F){I.started=!1;if((F==null?void 0:F.result)===void 0)throw I.galLogger.JSC$19574_logErrorEvent(131),Error("qk");F=Fgo(I,F.result);return RRG(I,F)}).catch(function(F){I.started=!1;
return F.errorCode!==void 0?{statusCode:F.errorCode,statusMessage:F.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var OhG=function(I,y){I=["result_channel",I.interactionMode===1?"2":"1","color_scheme",XWa(I.colorScheme),"show_close_option",I.showCloseOption];return Qco(y,I)},RRG=function(I,y){if(y!==null&&_.aL(y,UB,2)){var D,F=y==null?void 0:(D=_.kk(y,UB,2))==null?void 0:_.sI(D,2);
F&&I.galLogger.JSC$19574_logErrorEvent(f5R(F));return k5C(_.kk(y,UB,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 I.galService.getLink({serviceId:I.serviceId,sessionId:I.sessionId,consistencyKey:_.Tp(y,1)}).then(function(R){R=zV8(R);I.galLogger.logInternalEvent(134);return{statusCode:1,link:R}})},Fgo=function(I,y){y=Ije(y);
if(!_.aL(y,UB,2)&&_.Tp(y,1)==="")throw I.galLogger.JSC$19574_logErrorEvent(5),Error("rk");return y},eVg={getPostMessagePopup:function(I,y){return new $LT(I,y)},
getRedirectStateFromUri:function(){return _.Na(_.ob(eVg.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(I){_.m_L(window.location,_.VA(I))},
createStreamlinedFlow:function(I,y){return new DHa(I.serviceId,I.sessionId,I.galService,y,I.colorScheme,I.showCloseOption,I.galLogger,I.interactionMode,I.redirectServiceUrl)}};var I7y=function(I){this.storage=(I=I?_.Ol("GAL"):_.HCA("GAL"))?new _.IC(I):null};
I7y.prototype.getSession=function(I){if(this.storage!==null)try{var y=this.storage.get("SAVED_SESSION");if(y===void 0)return null;if(y.serviceId===I)return y}catch(D){}return null};var Lgb=function(){};
_.E(Lgb,aUZ);Lgb.prototype.logStateTransition=function(){};
Lgb.prototype.logInternalEvent=function(){};
Lgb.prototype.JSC$19574_logErrorEvent=function(){};var Jw8=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Jw8,_.KS);Jw8.prototype.getCompletionUrl=function(){return _.Tp(this,15)};var Cw=function(I,y,D,F,R,O){this.serviceId=I;this.environment=y;this.sessionId=D;this.colorSchemeSelected=F;this.colorThemeDisplayed=R;this.JSC$19648_transport=O;this.currentState=1};
_.E(Cw,aUZ);Cw.prototype.logStateTransition=function(I){var y=wcT(this);y=_.d1(y,3,this.currentState);y=_.d1(y,1,I);this.currentState=I;I=vRb(1);this.dispatch(y,I)};
Cw.prototype.logInternalEvent=function(I){I=vRb(I);this.dispatch(wcT(this),I)};
Cw.prototype.JSC$19574_logErrorEvent=function(I){var y=wcT(this);y=_.d1(y,1,10);I=vRb(I);this.dispatch(y,I)};
var wcT=function(I){var y=new Jw8;y=_.d1(y,1,I.currentState);y=_.BB(y,7,I.serviceId);var D,F;var R=((D=window)==null?0:(F=D.location)==null?0:F.href)?_.ob(window.location.href).JSC$10308_domain_:"NO_PACKAGE_NAME";D=_.BB(y,8,R);D=_.d1(D,6,I.environment);D=_.BB(D,5,"100");D=_.d1(D,11,I.colorSchemeSelected);return _.d1(D,12,I.colorThemeDisplayed)};
Cw.prototype.dispatch=function(I,y){y===void 0&&(y=new _.dC);var D=y;I=I.serialize();D=_.BB(D,8,I);_.g2(D,12,this.sessionId);this.JSC$19648_transport.dispatch(y)};var v61=function(I,y){this.loggerType=I;this.sessionIndex=y!=null?y:0},S2o;
v61.prototype.create=function(I,y,D,F,R){switch(this.loggerType){case 0:return new Lgb;case 1:return S2o||(S2o=(new _.nW(555,this.sessionIndex.toString())).build()),new Cw(I,y,D,F,R,S2o);default:_.ya(this.loggerType,"unknown logger type")}};var THQ=[6,2,3,1],LXG=new Map([[4,1],[1,6],[2,2],[3,3]]),c_C={statusCode:7,statusMessage:"Failed to create flow object"},ZCb=function(I,y,D,F,R,O,w,v,P,K){this.serviceId=I;this.sessionId=y;this.config=D;this.galService=F;this.JSC$19655_linkingSession=R;this.googleScopes=O;this.callerState=w;this.consentLanguageKeys=v;this.dynamicUrlParameters=P;this.partnerConfigMinReadTimestamp=K;this.currentFlow=0;F=this.JSC$19655_linkingSession;R=new Set;_.aL(F,$la,1)&&R.add(1);_.aL(F,cgY,2)&&_.aL(F,HCy,6)&&R.add(2);
_.aL(F,aB1,3)&&_.aL(F,HCy,6)&&R.add(3);_.aL(F,ztR,4)&&R.add(6);this.supportedFlows=R;F=D.loggerType;R=D.clientEnvironment;a:{O=D.colorScheme;switch(O){case 0:O=1;break a;case 1:O=2;break a;case 2:O=3;break a;default:_.ya(O)}O=void 0}a:{w=D.colorScheme;w=C8o(w);switch(w){case 0:w=1;break a;case 1:w=2;break a;default:_.ya(w)}w=void 0}this.galLogger=(new v61(F,D.authUser)).create(I,R,y,O,w)},KgR=function(I){return new Promise(function(y){var D,F,R,O,w,v,P,K,r,N;
return _.S(function(h){switch(h.nextAddress){case 1:D=sQZ(I.currentFlow,I.supportedFlows),F=!1,R=new Bt8(I.JSC$19655_linkingSession,I.config.dataUsageNoticeConfig);case 2:if(D===void 0){h.jumpTo(4);break}_.nj(h,5);var x=R,q=D,X=void 0;F?q===1&&(X=x.displayInfoMap.get(2)):q===2||q===3?X=x.displayInfoMap.get(1):q===1&&(X=x.displayInfoMap.get(3));O=X?X:[];w=I.consentLanguageKeys;v=_.J(O);P=v.next();case 7:if(P.done)return I.currentFlow=D,h.yield(Coe(tJ1(I,w)),11);K=P.value;return h.yield(nK8(K,I.config.dataUsageNoticeConfig.uiAdapter,
I.config.colorScheme,I.galLogger),10);case 10:r=h.yieldResult;if(r.statusCode!==1)return PEa(I),y(BHY({statusCode:r.statusCode,statusMessage:r.statusMessage},I.callerState)),h.return();r.consentLanguageKeys!==void 0&&(w=r.consentLanguageKeys);P=v.next();h.jumpTo(7);break;case 11:N=h.yieldResult;if(N.statusCode!==10)return N.statusCode!==6&&PEa(I),N.statusCode!==1&&I.callerState!==void 0&&(N.callerState=I.callerState),y(N),h.return();_.lZ(h,6);break;case 5:_.dj(h);case 6:D=sQZ(I.currentFlow,I.supportedFlows);
F=!0;h.jumpTo(2);break;case 4:PEa(I),y(BHY({statusCode:12,statusMessage:"Linking failed"},I.callerState)),_.Cj(h)}})})},PEa=function(I){ySY(I.serviceId,I.config.localStorage);
I.currentFlow=0},Rjg=function(I,y,D){I.currentFlow=y;
return iCG(tJ1(I,D)).then(function(F){return F.statusCode===10&&I.config.interactionMode===1&&sQZ(I.currentFlow,I.supportedFlows)!==void 0?KgR(I):F})},tJ1=function(I,y){return{flowParams:{serviceId:I.serviceId,
sessionId:I.sessionId,galService:I.galService,galLogger:I.galLogger,interactionMode:I.config.interactionMode,redirectServiceUrl:I.config.redirectServiceUrl,colorScheme:I.config.colorScheme,consentLanguageKeys:y,dynamicUrlParameters:I.dynamicUrlParameters,showCloseOption:I.config.showCloseOption,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp},currentFlow:I.currentFlow,config:I.config,session:I.JSC$19655_linkingSession,googleScopes:I.googleScopes,callerState:I.callerState}};var wFC=function(I,y){this.config=I;this.galService=y.getService();this.JSC$19668_galRepository=y.JSC$19686_galRepository};
wFC.prototype.getLink=function(I,y){return UHZ(this,I,y)};
var UHZ=function(I,y,D){return I.JSC$19668_galRepository.getLink({serviceId:y,scopes:void 0,capabilities:void 0,linkName:D}).then(function(F){return{statusCode:1,link:F}}).catch(function(F){return{statusCode:JSG(F.code),
statusMessage:F.message}})};
wFC.prototype.deleteLink=function(I,y){return this.JSC$19668_galRepository.deleteLink(I,this.config.accountLinkingEntryPoint,y).then(function(){return{statusCode:1}}).catch(function(D){return{statusCode:JSG(D.code),
statusMessage:D.message}})};
wFC.prototype.startLinkingSession=function(I){var y=I.serviceId;var D=I.sessionId;return gKa({serviceId:y,sessionId:D!==void 0?D:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:I.loginHint,callerState:I.callerState,consentLanguageKeys:I.consentLanguageKeys,linkName:I.linkName,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp})};var BM=function(I,y,D,F,R,O,w){this.apiKey=y;this.authUser=D;this.oauthToken=F;this.bucket=R;this.locale=O;this.galSdkEventHandler=w;if(F===void 0){if(y===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new G5Y(I)};
BM.prototype.deleteLink=function(I){var y=I.serviceId;var D=I.sessionId;var F=I.accountLinkingEntryPoint;var R=I.linkName;var O=this,w;return _.S(function(v){var P=(new zg).setHeader(O.getHeader(D));var K=rwT({serviceId:y,linkName:R});P=_.mH(P,2,K);w=_.yH(P,3,F);return v.return(O.makeRequest(O.galServiceClient.deleteLink,w,[1,3],[2,4]))})};
var ZPa=function(I,y){var D=y.serviceId;var F=y.sessionId;var R=y.dynamicUrlParameters;var O=y.redirectState;var w=y.consentLanguageKeys;var v=y.partnerConfigMinReadTimestamp;var P;return _.S(function(K){var r=(new dF).setHeader(I.getHeader(F,R));r=_.wT(r,2,D);P=_.wT(r,4,O);w!==void 0&&_.wT(P,5,w);v!==void 0&&_.mH(P,6,v);return K.return(I.makeRequest(I.galServiceClient.JSC$19553_finishOAuth,P,[1,3],[2,4]))})};
BM.prototype.getLink=function(I){var y=I.serviceId;var D=I.sessionId;var F=I.scopes;var R=I.capabilities;var O=I.consistencyKey;var w=I.linkName;var v=this,P;return _.S(function(K){var r=(new a9).setHeader(v.getHeader(D)),N=rwT({serviceId:y,scopes:F,capabilities:R,linkName:w});P=_.mH(r,2,N);O!==void 0&&(r=xna(),r=_.wT(r,2,O),_.mH(P,3,r));return K.return(v.makeRequest(v.galServiceClient.getLink,P,[1,3],[2,4]))})};
var A_G=function(I,y){var D=y.serviceId;var F=y.sessionId;var R=y.googleScopes;var O=y.consistencyKey;var w;return _.S(function(v){var P=(new ko).setHeader(I.getHeader(F));P=_.wT(P,2,D);var K=Array.from(R.values());P=_.D0(P,3,K,_.Go);K=xna();K=_.wT(K,2,O);w=_.mH(P,4,K);return v.return(I.makeRequest(I.galServiceClient.JSC$19553_depositGoogleCredential,w,[1,3],[2,4]))})};
BM.prototype.startLinkingSession=function(I){var y=I.serviceId;var D=I.sessionId;var F=I.scopes;var R=I.capabilities;var O=I.loginHint;var w=I.supportedFlows;var v=I.completionUrl;var P=I.usePingPong;var K=I.twoWayLinking;var r=I.accountLinkingEntryPoint;var N=I.callerState;var h=I.consentLanguageKeys;var x=I.googleScopes;var q=I.dataUsageNoticeConfig;var X=I.linkName;var f=I.dynamicUrlParameters;var m=I.partnerConfigMinReadTimestamp;var z=this,B,C;return _.S(function(H){if(R!==void 0&&F!==void 0)throw Error("ok");
var e=(new BhY).setHeader(z.getHeader(D,f));B=_.wT(e,2,y);X!==void 0&&_.wT(B,14,X);if(R!==void 0){e=B;var T=Array.from(R.values());_.D0(e,5,T,_.Go)}else F!==void 0&&(e=B,T=Array.from(F.values()),_.D0(e,3,T,_.Go));v!==void 0&&_.wT(B,6,v);P!==void 0&&_.Hx(B,15,P);w!==void 0&&(e=B,T=Array.from(w.values()),_.D0(e,4,T,_.Je));if(K!==void 0){if(K&&(!x||x.size===0))throw Error("tk");_.Hx(B,8,K)}r!==void 0&&_.yH(B,9,r);O!==void 0&&_.wT(B,13,O);N!==void 0&&(e=B,T=(new TextEncoder).encode(N),_.Fj(e,12,_.Mz(T,
!1),_.p_()));h!==void 0&&_.wT(B,16,h);m!==void 0&&_.mH(B,18,m);if(q!==void 0&&q.size>0||x!==void 0&&x.size>0)C=new CMR,x!==void 0&&x.size>0&&(e=C,T=Array.from(x.values()),_.D0(e,1,T,_.Go)),q!==void 0&&(q.has(0)&&_.VgS(C,2,_.Je,1,_.Sg),q.has(1)&&_.VgS(C,2,_.Je,2,_.Sg)),_.mH(B,17,C);return H.return(z.makeRequest(z.galServiceClient.startLinkingSession,B,[1],[2]))})};
BM.prototype.getMetadata=function(){var I=this,y,D;return _.S(function(F){y={};I.useFpa?(y["X-Goog-Api-Key"]=I.apiKey,y["X-Goog-AuthUser"]=I.authUser!==void 0?I.authUser.toString():"0",(D=_.NyC([]))&&(y.Authorization=D)):y.Authorization="Bearer "+I.oauthToken;I.locale&&(y["accept-language"]=I.locale);return F.return(y)})};
BM.prototype.makeRequest=function(I,y,D,F){var R=this,O;return _.S(function(w){if(w.nextAddress==1)return w.yield(R.getMetadata(),2);O=w.yieldResult;j7a(R,D);return w.return(I.bind(R.galServiceClient)(y,O).finally(function(){j7a(R,F)}))})};
var j7a=function(I,y){I.galSdkEventHandler!==void 0&&y.forEach(function(D){I.galSdkEventHandler.onEvent(D)})};
BM.prototype.getHeader=function(I,y){var D=new pw;I=_.Fj(D,2,_.te(I),0);I=_.yH(I,5,3);y=_.D0(I,8,y,_.Go);this.bucket!==void 0&&_.wT(y,1,this.bucket);return y};
var rwT=function(I){var y=I.serviceId;var D=I.scopes;var F=I.capabilities;I=I.linkName;if(F!==void 0&&D!==void 0)throw Error("ok");var R=new NhQ;y=_.wT(R,1,y);F!==void 0?(D=Array.from(F.values()),_.D0(y,5,D,_.Go)):D!==void 0&&(D=Array.from(D.values()),_.D0(y,3,D,_.Go));I!==void 0&&_.wT(y,6,I);return y};var vc1=function(I){this.galService=new BM(I.alsDomain,I.apiKey,I.authUser,I.oauthToken,I.bucket,I.locale,I.galSdkEventHandler);this.JSC$19686_galRepository=new iP1(this.galService)};
vc1.prototype.getService=function(){return this.galService};var o6b=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(o6b,_.KS);var Nbo=function(I){var y=new o6b;return _.d1(y,1,I)};
o6b.prototype.setErrorMessage=function(I){return _.BB(this,2,I)};var hRa=[0,_.Em,_.oh,_.Em];var iw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(iw,_.KS);var xHZ=[0,[1,2,3],_.l7,[0,_.Ae_,hPa,-1],_.l7,[0,NXY,-1],_.h4];var ljY=[0,_.Um,1,_.Em,_.oh,-1,1,_.u7,_.t4,_.Em,-1,xHZ];var ulT=[0,_.Em,[0,_.u7,_.t4,[0,_.oh]],_.rJ,[0,_.Em,-1]];var NW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(NW,_.KS);var q2T=[0,_.oh,_.Em,-2,_.Um,_.Em,_.Um,_.Em,-2,1,_.rJ];var E6e=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(E6e,_.KS);var Gh8=[0,_.Um];var XcZ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(XcZ,_.KS);var Q7y=[0,_.Em,ulT,Gh8,q2T,ljY];var ahy=_.Xj(XcZ,Q7y);var Y21=[0,XZR];var $VZ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E($VZ,_.KS);var fjY=[0,[1,3],uia,_.Em,uia];var A4R=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(A4R,_.KS);var n6Y=[0,_.Em];var pcG=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(pcG,_.KS);var b2e=function(I){return _.gu(I,o6b,2,o9)},mHQ=function(I){var y=new pcG;
return _.Mg(y,2,o9,I)},o9=[1,
2];var MJ8=[0,o9,_.l7,n6Y,_.l7,hRa,_.xX,fjY,1,_.Em,Y21];var zRy=[0,1,[0,[1,2,3],_.l7,[0],_.l7,[0,fmR],_.l7,[0,XZR]]];var kh1=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(kh1,_.KS);var ajZ=function(I){var y=new kh1;return _.Mg(y,3,dHa,I)},dHa=[2,
3];var cwC=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(cwC,_.KS);var Wgy=function(I,y){return _.mH(I,2,y)},CEZ=function(I,y){return _.mH(I,8,y)},BbY=function(I,y){return _.mH(I,3,y)};var ihT=[0,_.Em,MJ8,Q7y,_.Q1,[0,[5,6,7],[0,_.Em,-2],[0,_.Um,_.Em,_.oh],[0,xHZ],[0,_.oh,_.Em,-1,_.X6,_.Em],_.l7,[0,[0,_.Um],_.Em,-1],_.l7,[0,[3,4],_.Em,-1,_.l7,[0,[0,_.Em,_.rJ]],_.l7,[0,[0,[0,[1,2,3],_.l7,[0],_.l7,[0],_.l7,[0]]]]],_.l7,[0,_.Em]],_.Q1,-1,[0,dHa,_.Em,_.l7,n6Y,_.l7,hRa,_.xX,fjY,[0,XZR],zRy]];var Awg=_.Xj(cwC,ihT),$Ha=_.Ys(ihT);var bhQ=function(){_.B5.call(this)};
_.E(bhQ,_.B5);bhQ.prototype.init=function(){};
new bhQ;_.q0();var Hhb=_.UI(["data-"]),eRC=_.UI(["aria-"]),Tb8=_.UI(["aria-"]),Ac=function(I,y){this.isLatencyMeasurementExperiment=I===void 0?!1:I;this.enableDialogA11yFix=y===void 0?!1:y;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.YWe(_.Ft.location.href)},WVG=function(I,y){I.onConsentPrimitiveShownCallback=y},s7G=function(I,y){return I.overriddenIframeLoadTimeout?I.overriddenIframeLoadTimeout:y!==void 0?y:5E3},BJa=function(I){if(I.prewarmPromise!==void 0)return I.prewarmPromise;
I.prewarmPromise=new Promise(function(y,D){$o(I,1);VJ8(I,Zha(I,!0),g6g(I));I.iframe?I.prewarmChannel||Ifg(I,I.iframe,y):D(Error("uk"))});
I.prewarmPromise.finally(function(){I.prewarmPromise=void 0});
return I.prewarmPromise};
Ac.prototype.showPrimitive=function(){var I=this;if(this.consentPromise!==void 0)return this.consentPromise;var y=Date.now();yzo(this,y);this.consentPromise=new Promise(function(D,F){$o(I,0,y);var R=I.isDarkTheme();I.isLatencyMeasurementExperiment||I.initialLoadingStrategy===1||I.initialLoadingStrategy===2||(I.loadingBar||(I.loadingBar=KXC(getComputedStyle(document.body).direction==="rtl",R),I.loadingBar.style.position="fixed",I.loadingBar.style.zIndex="15000"),document.body.appendChild(I.loadingBar));
VJ8(I,Zha(I),g6g(I));I.iframe?I.channel||DER(I,I.iframe,D,F):(F78(I),F(Error("uk")))});
this.consentPromise.finally(function(){I.consentPromise=void 0});
return this.consentPromise};
var DER=function(I,y,D,F){var R,O;_.S(function(w){switch(w.nextAddress){case 1:$o(I,3);R=!1;setTimeout(function(){if(!R){F78(I);ReY(I);ObQ(I);var v=Nbo(7).setErrorMessage("Timeout connecting to iframe");D(CEZ(Wgy(new cwC,mHQ(v)),ajZ(v)))}},s7G(I,L7e(I)));
if(!I.prewarmPromise){w.jumpTo(2);break}_.nj(w,3);return w.yield(I.prewarmPromise,5);case 5:_.lZ(w,2);break;case 3:_.dj(w),O=Nbo(4).setErrorMessage("Error while prewarming."),D(CEZ(Wgy(new cwC,mHQ(O)),ajZ(O)));case 2:I.prewarmChannel&&I.prewarmChannel.send($Ha(BbY(new cwC,I.consentPrimitiveRequest))),I.channel=_.YX({destination:I.win,iframe:y,origin:JzT(I),channelName:"cpw",onEstablished:function(){R=!0;F78(I);I.isLatencyMeasurementExperiment||(I.JSC$19715_previousBodyOverflow=document.body.style.overflow,
I.JSC$19715_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,I.JSC$19715_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",I.enableDialogA11yFix&&window.addEventListener("blur",I.focusChangeListener));var v=I.iframe;v.style.bottom="0";v.style.position="fixed";v.style.right="0";v.style.border="none";v.style.left="0";v.style.top=
"0";v.style.zIndex="5000";v.style.pointerEvents="";v.style.visibility="";I.initialLoadingStrategy===2||I.initialLoadingStrategy===3?$o(I,4):$o(I,6);var P;(P=I.onConsentPrimitiveShownCallback)==null||P.call(I)},
onMessage:function(v){v=Awg(v.data);switch(_.sI(v,1)){case 1:ReY(I);var P=UPC(_.kk(v,_.Zy,7));P&&(I.initialLoadingStrategy!==2&&I.initialLoadingStrategy!==3||$o(I,6,P),$o(I,5,P));if(P=UPC(_.kk(v,_.Zy,6)))$o(I,7,P),$o(I,8);var K,r;((K=_.kk(v,pcG,2))==null?void 0:_.Bn(K,o9))!==0&&((r=_.kk(v,kh1,8))==null?void 0:_.Bn(r,dHa))!==0||F(Error("vk"));D(v);break;case 2:ObQ(I)}}}),_.Cj(w)}})},Ifg=function(I,y,D){I.prewarmChannel=_.YX({destination:I.win,
iframe:y,origin:JzT(I),channelName:"pwcp",onEstablished:function(){$o(I,2);D()}})},JzT=function(I){var y=_.W$(I.src).toString();
return y&&y.indexOf("://")<0&&y.indexOf("//")!==0?I.origin:_.YWe(y)},Zha=function(I,y){y=y===void 0?!1:y;
var D,F=new Map([["origin",I.origin],["hl",(D=w0o(I))!=null?D:null]]);y&&F.set("pw","1");y=_.J([["cpr",I.consentPrimitiveRequest.serialize()]]);for(D=y.next();!D.done;D=y.next()){var R=_.J(D.value);D=R.next().value;R=R.next().value;F.set(D,R)}I.isDarkTheme()&&F.set("color_scheme","dark");return _.G_(I.src,F)},F78=function(I){I.isLatencyMeasurementExperiment||I.loadingBar&&document.body.removeChild(I.loadingBar)};
Ac.prototype.getSrc=function(){var I=_.GP(this.origin),y;var D=(y=_.kk(this.consentPrimitiveRequest,E6e,3))==null?void 0:_.lD(y,1);y="consent.google.com";D=D?"/u/"+encodeURIComponent(D.toString()):"";(I==null?0:I.endsWith("youtube.com"))?y="consent.youtube.com":(I=I==null?void 0:I.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(y="consent.google."+((I[1]?"co.":"")+encodeURIComponent(I[2])));return _.c$("https://"+y+"/signedin"+D+"/landing")};
var VJ8=function(I,y,D){I.iframe||(I.iframe=document.createElement("iframe"),I.iframe.style.width="100%",I.iframe.style.height="100%",D!==112496729&&(I.iframe.style.colorScheme="auto"),I.isLatencyMeasurementExperiment&&(I.iframe.style.display="none"),_.Ok(I.iframe,y),I.iframe.setAttribute("jsname","C5o1O"),vjb(I.iframe),document.body.appendChild(I.iframe))},vjb=function(I){I.style.bottom="-200vh";
I.style.position="fixed";I.style.right="-200vw";I.style.border="";I.style.left="";I.style.top="";I.style.zIndex="";I.style.pointerEvents="none";I.style.visibility="hidden"},ReY=function(I){I.iframe&&(I.isLatencyMeasurementExperiment||(I.JSC$19715_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=I.JSC$19715_previousHtmlOverscroll),I.JSC$19715_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=I.JSC$19715_previousBodyOverscroll),I.JSC$19715_previousBodyOverflow!==
void 0&&(document.body.style.overflow=I.JSC$19715_previousBodyOverflow),I.enableDialogA11yFix&&SZb(I,!1)),vjb(I.iframe))};
Ac.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(SZb(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var SZb=function(I,y){var D,F,R=(D=I.iframe)==null?void 0:(F=D.parentElement)==null?void 0:F.children;if(R)for(D=0;D<R.length;D++)F=R[D],F!==I.iframe&&(y?(F.hasAttribute("aria-hidden")&&_.jY([_.ll(Hhb)],F,"data-old-aria-hidden",F.getAttribute("aria-hidden")),_.jY([_.ll(eRC)],F,"aria-hidden","true")):(F.removeAttribute("aria-hidden"),F.hasAttribute("data-old-aria-hidden")&&(_.jY([_.ll(Tb8)],F,"aria-hidden",F.getAttribute("data-old-aria-hidden")),F.removeAttribute("data-old-aria-hidden"))))},$o=function(I,
y,D){var F;
(F=I.latencyCallback)==null||F.call(I,{latencyType:y,timestampEpochMillis:D!=null?D:Date.now()})};var t1g=function(I,y,D){Ac.call(this,y,D===void 0?!1:D);this.consentPrimitiveRequest=I;I=w0o(this);_.JMA(I);this.src=this.getSrc();var F;this.initialLoadingStrategy=(F=_.kk(this.consentPrimitiveRequest,NW,4))==null?void 0:_.sI(F,4)},PWQ;
_.E(t1g,Ac);var c4g=function(I){I={request:I,enableDialogA11yFix:!0};PWQ||(PWQ=new t1g(I.request,I.isLatencyMeasurementExperiment||_.sI(I.request,1)===2,I.enableDialogA11yFix));return PWQ},w0o=function(I){var y;
return(y=_.kk(I.consentPrimitiveRequest,NW,4))==null?void 0:_.Tp(y,1)},yzo=function(I,y){if(!_.aL(I.consentPrimitiveRequest,iw,5)){var D=I.consentPrimitiveRequest,F=new iw;
_.mH(D,5,F)}var R;if((R=_.kk(I.consentPrimitiveRequest,iw,5))==null||_.AM_(_.du(R,8))==null){var O;(O=_.kk(I.consentPrimitiveRequest,iw,5))!=null&&_.g2(O,8,y)}},g6g=function(I){var y;
return(y=_.kk(I.consentPrimitiveRequest,iw,5))==null?void 0:_.lD(y,1)};
t1g.prototype.isDarkTheme=function(){var I;return((I=_.kk(this.consentPrimitiveRequest,NW,4))==null?void 0:_.sI(I,2))===2};
var L7e=function(I){var y;return((y=_.kk(I.consentPrimitiveRequest,NW,4))==null?void 0:_.lD(y,5))||void 0},ObQ=function(I){I.channel=void 0;
I.prewarmChannel=void 0;I.iframe&&(document.body.contains(I.iframe)&&document.body.removeChild(I.iframe),I.iframe=void 0);PWQ=void 0},i2Y=function(I){return Ac.prototype.showPrimitive.call(I).then(function(y){return _.kk(y,pcG,2)})};for(var bw={},K78=(bw[64]="ma",bw[73]="ogb",bw[89]="cr",bw[21]="test",bw[0]="unkn",bw[137]="con",bw[155]="hl",bw[78]="yt",bw[171]="lp",bw[172]="ap",bw[177]="amo",bw[178]="pqe",bw[74]="gg",bw[1]="gm",bw[140]="am",bw[193]="sc",bw),UEb=_.J(Object.keys(K78)),rzb=UEb.next();!rzb.done;rzb=UEb.next());var jjR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(jjR,_.KS);var ojb=[0,[2,3,4],_.Em,o_Y,uia,_.h4];var N71=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(N71,_.KS);var heT=_.Xj(N71,[0,_.GQ,_.oh,_.Em,_.oh,_.Em,ojb]);var xEb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(xEb,_.KS);xEb.prototype.getCommand=function(){return _.sI(this,1)};
var lfy=function(){var I=new xEb;return _.yH(I,1,0)};var u4o=_.Ys([0,_.GQ,_.oh,[0,_.Em,_.oh,-1]]);var qZa=new _.H2("s"),EjC=new _.H2("t"),GV8=new _.H2("u"),X0a=new _.H2("v"),QjC=function(I,y,D){_.uS.call(this,qZa);this.mediaKey=I;this.photoUrl=y;this.photoSource=D};
_.E(QjC,_.uS);var YZQ=function(){_.uS.call(this,EjC)};
_.E(YZQ,_.uS);var ffg=function(I){I=I===void 0?!1:I;_.uS.call(this,GV8);this.isError=I};
_.E(ffg,_.uS);var njQ=function(){_.uS.call(this,X0a)};
_.E(njQ,_.uS);var p0o=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,kVY=function(I){if(typeof I=="string"){if(I.charAt(0)==".")return mEb(I.substr(1));if(I.charAt(0)=="["){var y=p0o.exec(I);I=I.indexOf("=")==-1?void 0:y[3];return M1o(y[1],I)}return zeR(I)}return I},mEb=function(I){return function(y){return y.getAttribute&&_.hd(y,I)}},M1o=function(I,y){return function(D){return y!==void 0?D.getAttribute&&D.getAttribute(I)==y:D.hasAttribute&&D.hasAttribute(I)}},zeR=function(I){I=I.toUpperCase();
return function(y){return(y=y.tagName)&&y.toUpperCase()==I}},dEy=function(){return!0};var HM=function(I,y){this.JSC$19743_key_=I;this.JSC$19743_value_=y},afa=function(I){throw Error("wk`"+I.JSC$19743_key_);
},czR=function(I,y){return new TypeError("xk`"+y+"`"+I.JSC$19743_key_+"`"+I.JSC$19743_value_+"`"+typeof I.JSC$19743_value_)};
HM.prototype.string=function(I){return arguments.length==0?W7g(this):CWe(this,I)};
var CWe=function(I,y){var D;return(D=B7o(I))!=null?D:y},W7g=function(I){var y=B7o(I);
y===null&&afa(I);return y},B7o=function(I){var y=I.JSC$19743_value_;
if(y==null)return null;if(typeof y==="string")return y;throw czR(I,"string");};
HM.prototype.bool=function(I){if(arguments.length==0){var y=this.optionalBool();y===null&&afa(this)}else{var D;y=(D=this.optionalBool())!=null?D:I}return y};
HM.prototype.optionalBool=function(){var I=this.JSC$19743_value_;if(I==null)return null;if(typeof I==="boolean")return I;if(typeof I==="string"){I=I.toLowerCase();if(I==="true"||I==="1")return!0;if(I==="false"||I==="0")return!1}throw czR(this,"boolean");};
HM.prototype.number=function(I){if(arguments.length==0){var y=ibg(this);y===null&&afa(this)}else y=Az1(this,I);return y};
var Az1=function(I,y){var D;return(D=ibg(I))!=null?D:y},ibg=function(I){var y=I.JSC$19743_value_;
if(y==null)return null;if(typeof y==="number")return y;if(typeof y==="string"){var D=Number(y);if(!isNaN(D)&&(D!==0||y.trim().length!==0))return D}throw czR(I,"number");};
HM.prototype.toString=function(){return W7g(this)};
HM.prototype.enum=function(I,y){var D=!0,F=void 0,R;for(R in I){var O=I[R];D&&(D=!1,F=typeof O==="number"?Az1(this,y):CWe(this,y));if(O==F)return F}JSON.stringify(I);return F};
HM.prototype.array=function(I){if(arguments.length==0){var y=$Ea(this);y===null&&afa(this);return y}y=$Ea(this);return y==null?I:y};
var $Ea=function(I){var y=I.JSC$19743_value_;if(y==null)return null;Array.isArray(y)||(typeof y!=="string"?y=[y]:(y=y.trim(),y=y==""?[]:y.split(",").map(function(D){return D.trim()})));
return bbC(I,y)},bbC=function(I,y){var D=I.JSC$19743_key_+"[";
return Array.from(y,function(F,R){return new HM(D+R+"]",F)})};
HM.prototype.object=function(I){var y=this.JSC$19743_value_;if(y==null)return I===void 0&&afa(this),I;if(typeof y==="object"&&y.constructor===Object){I={};var D=this.JSC$19743_key_+".",F;for(F in y)I[F]=new HM(D+F,y[F]);return I}throw czR(this,"object");};var eL=function(I){this.list_=Hb1(I)},Hb1=function(I){if(I instanceof eL)I=I.list_;
else if(I[0]instanceof eL){for(var y=new Set,D=0;D<I.length;D++)for(var F=_.J(I[D].list_),R=F.next();!R.done;R=F.next())y.add(R.value);I=y}return[].concat(_.Td(I))};
_.L=eL.prototype;_.L.each=function(I,y,D){((D===void 0?0:D)?Mbg:_.hG)(this.list_,I,y);return this};
_.L.size=function(){return this.list_.length};
_.L.isEmpty=function(){return this.list_.length===0};
_.L.get=function(I){return this.list_[I]||null};
_.L.el=function(){return this.list_[0]||null};
_.L.map=function(I,y){return _.T_(this.list_,I,y)};
_.L.equals=function(I){return this===I||_.sq(this.list_,I.list_)};
_.L.first=function(){return this.list_.length==0?null:new Tg(this.list_[0])};
_.L.last=function(){return this.list_.length==0?null:new Tg(this.list_[this.list_.length-1])};
_.L.find=function(I){var y=[];this.each(function(D){D=D.querySelectorAll(String(I));for(var F=0;F<D.length;F++)y.push(D[F])});
return new eL(y)};
_.L.parent=function(){var I=[];this.each(function(y){(y=y.parentElement||null)&&!_.kA(I,y)&&I.push(y)});
return new eL(I)};
_.L.children=function(){var I=[];this.each(function(y){y=_.JP(y);for(var D=0;D<y.length;D++)I.push(y[D])});
return new eL(I)};
_.L.filter=function(I){I=_.Qt(this.list_,kVY(I));return new eL(I)};
_.L.closest=function(I){var y=[],D=kVY(I),F=function(R){return _.Q2(R)&&D(R)};
this.each(function(R){(R=_.gB(R,F,!0))&&!_.kA(y,R)&&y.push(R)});
return new eL(y)};
_.L.next=function(I){return eeT(this,_.eqR,I)};
_.L.prev=function(I){return eeT(this,G9b,I)};
var eeT=function(I,y,D){var F=[];var R=D?kVY(D):dEy;I.each(function(O){(O=y(O))&&R(O)&&F.push(O)});
return new eL(F)};
eL.prototype.setClass=function(I){return this.each(function(y){_.N2(y,I)})};
var T7o=function(I,y){return I.each(function(D){_.PU(D,y)})},sj1=function(I,y){return I.each(function(D){_.tf(D,y)})};
eL.prototype.toggleClass=function(I,y){return y===!0?T7o(this,I):y===!1?sj1(this,I):this.each(function(D){_.hd(D,I)?_.tf(D,I):_.PU(D,I)})};
eL.prototype.setText=function(I){return this.each(function(y){_.wC(y,I)})};
var V1g=function(I){I.each(function(y){y.removeAttribute("aria-hidden")})};
eL.prototype.getStyle=function(I){if(this.list_.length>0){var y=this.list_[0],D=y.style[_.zG(I)];return typeof D!=="undefined"?D:y.style[_.L5M(y,I)]||""}};
eL.prototype.getData=function(I){if(this.list_.length===0)return new HM(I,null);var y=BIa(this.list_[0],I);return new HM(I,y)};
eL.prototype.focus=function(I){try{I?this.el().focus(I):this.el().focus()}catch(y){}return this};
eL.prototype.click=function(){var I=_.VE(this.el());if(I.createEvent){var y=I.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,I.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(y)}else I=I.createEventObject(),I.clientX=0,I.clientY=0,I.screenX=0,I.screenY=0,I.altKey=!1,I.ctrlKey=!1,I.shiftKey=!1,I.button=0,this.el().fireEvent("onclick",I)};
var sj=function(I,y,D,F){function R(v,P,K){var r=P;P&&P.parentNode&&(r=P.cloneNode(!0));v(r,K)}
F=F===void 0?!1:F;if(I.list_.length==1){var O=I.list_[0],w=function(v){return y(v,O)};
D instanceof eL?D.each(w,void 0,F):Array.isArray(D)?(F?Mbg:_.hG)(D,w):w(D);return I}return I.each(function(v){D instanceof eL?D.each(function(P){R(y,P,v)}):Array.isArray(D)?_.hG(D,function(P){R(y,P,v)}):R(y,D,v)})};
_.L=eL.prototype;_.L.append=function(I){return sj(this,function(y,D){y&&D.appendChild(y)},I)};
_.L.appendTo=function(I){(new eL([I])).append(this);return this};
_.L.remove=function(){return sj(this,function(I,y){_.dM(y)},null)};
_.L.empty=function(){return sj(this,function(I,y){_.RR(y)},null)};
_.L.after=function(I,y){return sj(this,function(D,F){D&&_.LA(D,F)},I,!(y===void 0||y))};
_.L.before=function(I){return sj(this,function(y,D){y&&_.O5(y,D)},I)};
_.L.replaceWith=function(I){return sj(this,function(y,D){y&&_.$RM(y,D)},I)};
_.L.toggle=function(I){return this.each(function(y){_.xM(y,I)})};
_.L.show=function(){return this.toggle(!0)};
_.L.hide=function(){return this.toggle(!1)};
_.L.trigger=function(I,y,D,F){return ZbY(this,I,y,D,F)};
var ZbY=function(I,y,D,F,R){return I.each(function(O){_.yOH(_.VE(O)).triggerWizEventInternal(O,y,D,F,R)})},Tg=function(I,y){I instanceof eL&&(y=I.list_,I=null);
this.list_=Hb1(I!=null?[I]:y)};
_.EI(Tg,eL);_.L=Tg.prototype;_.L.children=function(){return new eL(Array.prototype.slice.call(_.JP(this.list_[0])))};
_.L.each=function(I,y){I.call(y,this.list_[0],0);return this};
_.L.size=function(){return 1};
_.L.el=function(){return this.list_[0]};
_.L.first=function(){return this};var VN=function(I,y){y=y===void 0?window:y;this.hostId=I;this.win=y;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$19754_previousHtmlOverscroll=this.JSC$19754_previousBodyOverscroll=this.JSC$19754_previousBodyOverflow="";this.eventTarget=new _.Zw;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},yxY=function(I){var y=
gjQ(gjQ(gjQ(new IIo(78),"po"),"hppp"),"hhc");
y.authUser=Number(_.Pi("SESSION_INDEX","0"));y.colorScheme=I;return y};
VN.prototype.getOrigin=function(){return this.origin?this.origin:_.XI(_.GM(_.E7(new _.Pg,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
VN.prototype.getTargetOrigin=function(){return _.XI(_.GM(_.E7(new _.Pg,this.scheme),this.domain),this.port)};
VN.prototype.preloadIframe=function(I){var y=this;if(this.iframeLoadPromise===void 0){var D=document.createElement("iframe");this.iframe=D;l7G(D,I);this.iframeLoadPromise=new Promise(function(F,R){var O=!1,w=function(v){v.stopPropagation();D.removeEventListener("error",w);D.removeEventListener("securitypolicyviolation",w);R(Error("yk",{cause:v}))};
D.addEventListener("error",w);D.addEventListener("securitypolicyviolation",w);setTimeout(function(){O||R(Error("zk"))},3E4);
DFR(y,D,function(){O=!0;D.removeEventListener("error",w);D.removeEventListener("securitypolicyviolation",w);F()})});
FNR(this);I=this.getTargetOrigin().toString();D.setAttribute("allow","camera "+I+"; display-capture "+I);this.parentElement.appendChild(D)}return this.iframeLoadPromise};
var LNT=function(I,y){var D,F;return _.S(function(R){if(R.nextAddress==1)return D=KXC(getComputedStyle(I.parentElement).direction==="rtl"),I.parentElement.appendChild(D),document.activeElement instanceof HTMLElement&&(I.elementToFocusAfterClose=document.activeElement),_.nj(R,2),R.yield(I.preloadIframe(y),4);if(R.nextAddress!=2){I.parentElement.removeChild(D);I.JSC$19754_previousBodyOverflow=I.parentElement.style.overflow;I.JSC$19754_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
I.JSC$19754_previousBodyOverscroll=I.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";I.parentElement.style.overscrollBehavior="contain";I.parentElement.style.overflow="hidden";var O=I.iframe;O.style.bottom="0";O.style.border="none";O.style.height="100%";O.style.left="0";O.style.position=I.iframePosition;O.style.right="0";O.style.top="0";O.style.width="100%";O.style.zIndex="2202";O.setAttribute("aria-hidden","false");O.setAttribute("aria-modal","true");
I.opened=!0;RST(I);return _.lZ(R,0)}F=_.dj(R);I.parentElement.removeChild(D);NYy(I.isDarkTheme());OJy(I,!1);throw Error("Ak",{cause:F});})},OJy=function(I,y){y=y===void 0?!0:y;
I.iframe!==void 0&&(Jxo(I),document.documentElement.style.overscrollBehavior=I.JSC$19754_previousHtmlOverscroll,I.parentElement.style.overscrollBehavior=I.JSC$19754_previousBodyOverscroll,I.parentElement.style.overflow=I.JSC$19754_previousBodyOverflow,I.elementToFocusAfterClose!==void 0&&(I.elementToFocusAfterClose.focus(),I.elementToFocusAfterClose=void 0),y?FNR(I):(I.parentElement.removeChild(I.iframe),I.iframe=void 0,I.iframeLoadPromise=void 0,I.mainChannel=void 0),I.opened=!1)},Jxo=function(I){I.backgroundElementsAriaHiddenIsNull&&
(V1g(I.backgroundElementsAriaHiddenIsNull),I.backgroundElementsAriaHiddenIsNull=void 0);
I.backgroundElementsAriaHiddenIsFalse&&(I.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","false")}),I.backgroundElementsAriaHiddenIsFalse=void 0);
I.backgroundElementsWithoutInert&&(I.backgroundElementsWithoutInert.each(function(y){y.removeAttribute("inert")}),I.backgroundElementsWithoutInert=void 0)},RST=function(I){I.backgroundElementsAriaHiddenIsNull=(new Tg(I.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")===null&&y!==I.iframe});
I.backgroundElementsAriaHiddenIsNull.each(function(y){y.setAttribute("aria-hidden","true")});
I.backgroundElementsAriaHiddenIsFalse=(new Tg(I.iframe.parentElement)).children().filter(function(y){return y.getAttribute("aria-hidden")==="false"&&y!==I.iframe});
I.backgroundElementsAriaHiddenIsFalse.each(function(y){y.setAttribute("aria-hidden","true")});
I.backgroundElementsWithoutInert=(new Tg(I.iframe.parentElement)).children().filter(function(y){return!y.hasAttribute("inert")&&y!==I.iframe});
I.backgroundElementsWithoutInert.each(function(y){y.setAttribute("inert","true")})},FNR=function(I){I=I.iframe;
I.style.bottom="-1000px";I.style.position="fixed";I.style.right="-1000px";I.style.border="";I.style.height="";I.style.left="";I.style.top="";I.style.width="";I.style.zIndex="";I.setAttribute("aria-hidden","true");I.setAttribute("aria-modal","false")};
VN.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var IIo=function(I,y){VN.call(this,K78[I],y);this.options=[];this.style=""};
_.E(IIo,VN);var wfy=function(I){I.style="youtube";return I},vDQ=function(I,y){I.eventTarget.listen(GV8,y);
return I},S3Q=function(I,y){I.eventTarget.listen(qZa,y);
return I},gjQ=function(I,y){I.options.push(y);
return I},tMY=function(I){var y=[I.getOrigin()];
I.ancestorOrigins&&y.push.apply(y,_.Td(I.ancestorOrigins));var D=new _.Pg(I.win.location.href),F=I.startUrl?I.startUrl:I.options.includes("po")?"profile-picture/art":"profile-picture";y=Pbg(_.QL(I.getTargetOrigin(),F),"origin",y);I.startUrl&&_.hu(y,"startPath",I.startUrl);I.authUser>0&&_.hu(y,"authuser",I.authUser);I.pageId!==void 0&&_.hu(y,"pageId",I.pageId);_.hu(y,"hostId",I.hostId);I.jsMode!==void 0&&_.hu(y,"jsmode",I.jsMode);I.rectangleRatio!==void 0&&_.hu(y,"rectangleRatio",I.rectangleRatio);
I.options.length>0&&_.hu(y,"opts",I.options.join(","));try{for(var R=_.J(["utm_source","utm_medium","utm_campaign","utm_content"]),O=R.next();!O.done;O=R.next()){var w=O.value;_.Na(D,w)&&_.hu(y,w,_.Na(D,w))}var v,P=(v=I.hl)!=null?v:_.Na(D,"hl");P!==void 0&&_.hu(y,"hl",P)}catch(K){if(!(K instanceof URIError))throw K;}I.colorScheme&&_.hu(y,"theme",I.colorScheme);I.style&&_.hu(y,"style",I.style);return y},P3Q=function(I,y){I.mainChannel=_.YX({destination:I.win,
iframe:y,origin:I.getTargetOrigin().toString(),channelName:"ow",onMessage:function(D){D=heT(D.data);if(y===I.iframe)switch(_.sI(D,1)){case 1:I.eventTarget.dispatchEvent(new ffg);OJy(I);break;case 2:I.eventTarget.dispatchEvent(new QjC(_.Tp(D,4),_.Tp(D,2),_.sI(D,5),_.kk(D,jjR,6)));break;case 0:var F;I.eventTarget.dispatchEvent(new YZQ(_.Tp(D,2),(F=_.sI(D,3))!=null?F:0));break;case 3:I.eventTarget.dispatchEvent(new ffg(!0));OJy(I,!1);break;case 4:I.eventTarget.dispatchEvent(new njQ)}}})},DFR=function(I,
y,D){_.YX({destination:I.win,
iframe:y,origin:_.XI(_.GM(_.E7(new _.Pg,I.scheme),I.domain),I.port).toString(),channelName:"owi",onMessage:function(F){y===I.iframe&&(D!==void 0&&D(),P3Q(I,y),I.opened&&I.mainChannel.send(u4o(lfy())),F.reply(),DFR(I,y))}})};
IIo.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?VN.prototype.preloadIframe.call(this,tMY(this).toString()):this.iframeLoadPromise};
IIo.prototype.openPicker=function(I){var y=this;return _.S(function(D){if(D.nextAddress==1)return y.startUrl=I?I:y.options.includes("po")?"profile-picture/art":"profile-picture",D.yield(LNT(y,tMY(y).toString()),2);if(y.mainChannel){var F=y.mainChannel,R=F.send;var O=lfy();O=_.BB(O,2,y.startUrl);R.call(F,u4o(O))}_.Cj(D)})};var KNa=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(KNa,_.KS);_.L=KNa.prototype;_.L.getSize=function(){return Xa(this,1)};
_.L.setSize=function(I){return _.Ih(this,1,I)};
_.L.getWidth=function(){return Xa(this,12)};
_.L.getHeight=function(){return Xa(this,13)};
_.L.setCenterCrop=function(I){return _.Xm(this,20,I)};
_.L.getHtml=function(){return _.by(this,4)};
_.L.getToken=function(){return _.z6(this,24)};
_.L.setToken=function(I){return _.BB(this,24,I)};
_.L.getBackgroundColor=function(){return Xa(this,87)};
_.L.hasBackgroundColor=function(){return _.PC(_.du(this,87))!=null};
_.L.getStoryboardLevel=function(){return Xa(this,109)};r9.prototype.set=function(I,y){UFY(this,I,y,!1)};
r9.prototype.add=function(I,y){UFY(this,I,y,!0)};
var UFY=function(I,y,D,F){for(var R=0;R<y.length;R++){var O=y.charAt(R);I.childNodes_[O]||(I.childNodes_[O]=new r9);I=I.childNodes_[O]}if(F&&I.JSC$19762_value_!==void 0)throw Error("Bk`"+y);I.JSC$19762_value_=D},rxy=function(I,y){for(var D=0;D<y.length;D++)if(I=I.childNodes_[y.charAt(D)],!I)return;
return I};
r9.prototype.get=function(I){return(I=rxy(this,I))?I.JSC$19762_value_:void 0};
r9.prototype.getValues=function(){var I=[];jJC(this,I);return I};
var jJC=function(I,y){I.JSC$19762_value_!==void 0&&y.push(I.JSC$19762_value_);for(var D in I.childNodes_)jJC(I.childNodes_[D],y)};
r9.prototype.getKeys=function(I){var y=[];if(I){for(var D=this,F=0;F<I.length;F++){var R=I.charAt(F);if(!D.childNodes_[R])return[];D=D.childNodes_[R]}oDo(D,I,y)}else oDo(this,"",y);return y};
var oDo=function(I,y,D){I.JSC$19762_value_!==void 0&&D.push(y);for(var F in I.childNodes_)oDo(I.childNodes_[F],y+F,D)};
_.L=r9.prototype;_.L.containsKey=function(I){return this.get(I)!==void 0};
_.L.containsValue=function(I){if(this.JSC$19762_value_===I)return!0;for(var y in this.childNodes_)if(this.childNodes_[y].containsValue(I))return!0;return!1};
_.L.clear=function(){this.childNodes_={};this.JSC$19762_value_=void 0};
_.L.remove=function(I){for(var y=this,D=[],F=0;F<I.length;F++){var R=I.charAt(F);if(!y.childNodes_[R])throw Error("Ck`"+I);D.push([y,R]);y=y.childNodes_[R]}I=y.JSC$19762_value_;for(delete y.JSC$19762_value_;D.length>0;)if(F=D.pop(),y=F[0],F=F[1],y.childNodes_[F].isEmpty())delete y.childNodes_[F];else break;return I};
_.L.clone=function(){return new r9(this)};
_.L.getCount=function(){return n_a(this.getValues())};
_.L.isEmpty=function(){return this.JSC$19762_value_===void 0&&_.e$.isEmpty(this.childNodes_)};var XFa=function(){if(!NEG){var I=NEG=new r9,y;for(y in hSQ)I.add(y,hSQ[y])}},NEG,Zu=function(I,y){this.types=I;
this.setters=y},hSQ={a:new Zu([3,
0],[function(I,y){_.Xm(I,21,y)},
function(I,y){_.Ih(I,56,y)}]),
al:new Zu([3],[function(I,y){_.Xm(I,74,y)}]),
b:new Zu([3,0],[function(I,y){_.Xm(I,23,y)},
function(I,y){_.Ih(I,38,y)}]),
ba:new Zu([0],[function(I,y){_.Ih(I,85,y)}]),
bc:new Zu([0],[function(I,y){_.Ih(I,87,y)}]),
br:new Zu([0],[function(I,y){_.Ih(I,86,y)}]),
c:new Zu([3,0],[function(I,y){_.Xm(I,2,y)},
function(I,y){_.Ih(I,39,y)}]),
cc:new Zu([3],[function(I,y){_.Xm(I,51,y)}]),
ci:new Zu([3],[function(I,y){_.Xm(I,32,y)}]),
ckm:new Zu([3],[function(I,y){_.Xm(I,104,y)}]),
cp:new Zu([0],[function(I,y){_.Ih(I,92,y)}]),
cr:new Zu([3],[function(I,y){_.Xm(I,108,y)}]),
cv:new Zu([0],[function(I,y){_.Ih(I,94,y)}]),
d:new Zu([3],[function(I,y){_.Xm(I,3,y)}]),
dc:new Zu([5],[function(I,y){_.BB(I,99,y)}]),
df:new Zu([3],[function(I,y){_.Xm(I,80,y)}]),
dv:new Zu([3],[function(I,y){_.Xm(I,90,y)}]),
e:new Zu([0],[function(I,y){_.Ih(I,15,y)}]),
em:new Zu([0],[function(I,y){_.Ih(I,107,y)}]),
f:new Zu([4],[function(I,y){_.BB(I,16,y)}]),
fg:new Zu([3],[function(I,y){_.Xm(I,34,y)}]),
fh:new Zu([3],[function(I,y){_.Xm(I,30,y)}]),
fm:new Zu([3],[function(I,y){_.Xm(I,84,y)}]),
fo:new Zu([2],[function(I,y){_.aC(I,79,_.DQ(y))}]),
ft:new Zu([3],[function(I,y){_.Xm(I,50,y)}]),
fv:new Zu([3],[function(I,y){_.Xm(I,31,y)}]),
g:new Zu([3],[function(I,y){_.Xm(I,14,y)}]),
gce:new Zu([4],[function(I,y){_.BB(I,112,y)}]),
gd:new Zu([3],[function(I,y){_.Xm(I,83,y)}]),
gm:new Zu([3],[function(I,y){_.Xm(I,105,y)}]),
h:new Zu([3,0],[function(I,y){_.Xm(I,4,y)},
function(I,y){_.Ih(I,13,y)}]),
i:new Zu([3],[function(I,y){_.Xm(I,22,y)}]),
ic:new Zu([0],[function(I,y){_.Ih(I,71,y)}]),
id:new Zu([3],[function(I,y){_.Xm(I,70,y)}]),
il:new Zu([3],[function(I,y){_.Xm(I,96,y)}]),
ip:new Zu([3],[function(I,y){_.Xm(I,54,y)}]),
iv:new Zu([0],[function(I,y){_.g2(I,75,y)}]),
j:new Zu([1],[function(I,y){y=y==null?y:aMg(y);_.aC(I,29,y)}]),
k:new Zu([3,0],[function(I,y){_.Xm(I,17,y)},
function(I,y){_.Ih(I,42,y)}]),
l:new Zu([0],[function(I,y){_.Ih(I,44,y)}]),
lf:new Zu([3],[function(I,y){_.Xm(I,65,y)}]),
lo:new Zu([3],[function(I,y){_.Xm(I,97,y)}]),
m:new Zu([0],[function(I,y){_.Ih(I,63,y)}]),
md:new Zu([3],[function(I,y){_.Xm(I,91,y)}]),
mm:new Zu([4],[function(I,y){_.BB(I,81,y)}]),
mo:new Zu([3],[function(I,y){_.Xm(I,73,y)}]),
mp:new Zu([0],[function(I,y){_.Ih(I,115,y)}]),
mv:new Zu([3],[function(I,y){_.Xm(I,66,y)}]),
n:new Zu([3],[function(I,y){I.setCenterCrop(y)}]),
nc:new Zu([3],[function(I,y){_.Xm(I,55,y)}]),
nd:new Zu([3],[function(I,y){_.Xm(I,53,y)}]),
ng:new Zu([3],[function(I,y){_.Xm(I,95,y)}]),
ngm:new Zu([3],[function(I,y){_.Xm(I,106,y)}]),
no:new Zu([3],[function(I,y){_.Xm(I,37,y)}]),
ns:new Zu([3],[function(I,y){_.Xm(I,40,y)}]),
nt0:new Zu([4],[function(I,y){_.BB(I,36,y)}]),
ntm:new Zu([3],[function(I,y){_.Xm(I,114,y)}]),
nu:new Zu([3],[function(I,y){_.Xm(I,46,y)}]),
nw:new Zu([3],[function(I,y){_.Xm(I,48,y)}]),
o:new Zu([1,3],[function(I,y){y=y==null?y:aMg(y);_.aC(I,7,y)},
function(I,y){_.Xm(I,27,y)}]),
p:new Zu([3,0],[function(I,y){_.Xm(I,19,y)},
function(I,y){_.Ih(I,43,y)}]),
pa:new Zu([3],[function(I,y){_.Xm(I,61,y)}]),
pc:new Zu([0],[function(I,y){_.Ih(I,88,y)}]),
pd:new Zu([3],[function(I,y){_.Xm(I,60,y)}]),
pf:new Zu([3],[function(I,y){_.Xm(I,67,y)}]),
pg:new Zu([3],[function(I,y){_.Xm(I,72,y)}]),
pi:new Zu([2],[function(I,y){_.aC(I,76,_.DQ(y))}]),
pp:new Zu([3],[function(I,y){_.Xm(I,52,y)}]),
pt:new Zu([4],[function(I,y){_.BB(I,111,y)}]),
q:new Zu([4],[function(I,y){_.BB(I,28,y)}]),
r:new Zu([3,0],[function(I,y){_.Xm(I,6,y)},
function(I,y){_.Ih(I,26,y)}]),
ra:new Zu([3],[function(I,y){_.Xm(I,103,y)}]),
rf:new Zu([3],[function(I,y){_.Xm(I,100,y)}]),
rg:new Zu([3],[function(I,y){_.Xm(I,59,y)}]),
rh:new Zu([3],[function(I,y){_.Xm(I,49,y)}]),
rj:new Zu([3],[function(I,y){_.Xm(I,57,y)}]),
ro:new Zu([2],[function(I,y){_.aC(I,78,_.DQ(y))}]),
rp:new Zu([3],[function(I,y){_.Xm(I,58,y)}]),
rw:new Zu([3],[function(I,y){_.Xm(I,35,y)}]),
rwa:new Zu([3],[function(I,y){_.Xm(I,64,y)}]),
rwu:new Zu([3],[function(I,y){_.Xm(I,41,y)}]),
s:new Zu([3,0],[function(I,y){_.Xm(I,33,y)},
function(I,y){I.setSize(y)}]),
sb:new Zu([0],[function(I,y){_.Ih(I,110,y)}]),
sc:new Zu([0],[function(I,y){_.Ih(I,89,y)}]),
sg:new Zu([3],[function(I,y){_.Xm(I,82,y)}]),
sl:new Zu([0],[function(I,y){_.Ih(I,109,y)}]),
sm:new Zu([3],[function(I,y){_.Xm(I,93,y)}]),
t:new Zu([4],[function(I,y){I.setToken(y)}]),
tm:new Zu([3],[function(I,y){_.Xm(I,113,y)}]),
u:new Zu([3],[function(I,y){_.Xm(I,18,y)}]),
ut:new Zu([3],[function(I,y){_.Xm(I,45,y)}]),
v:new Zu([0],[function(I,y){_.Ih(I,62,y)}]),
vb:new Zu([0],[function(I,y){_.g2(I,68,y)}]),
vf:new Zu([4],[function(I,y){_.BB(I,102,y)}]),
vl:new Zu([0],[function(I,y){_.g2(I,69,y)}]),
vm:new Zu([3],[function(I,y){_.Xm(I,98,y)}]),
w:new Zu([0],[function(I,y){_.Ih(I,12,y)}]),
x:new Zu([0],[function(I,y){_.Ih(I,9,y)}]),
y:new Zu([0],[function(I,y){_.Ih(I,10,y)}]),
ya:new Zu([2],[function(I,y){_.aC(I,77,_.DQ(y))}]),
z:new Zu([0],[function(I,y){_.Ih(I,11,y)}])};
XFa.prototype.parse=function(I){var y=new KNa,D=new KNa;if(I=="")I=!0;else{I=I.split("-");for(var F=!0,R=0;R<I.length;R++){var O=I[R];if(O.length==0)F=!1;else{var w=O,v=!1;var P=w;var K=w.charAt(0);K!=K.toLowerCase()&&(v=!0,P=w.charAt(0).toLowerCase()+w.substring(1));var r=NEG;for(K=1;K<=P.length;++K){var N=r,h=P.substring(0,K);if(h.length==0?N.isEmpty():!rxy(N,h))break}P=K==1?null:(P=r.get(P.substring(0,K-1)))?{option:w.substring(0,K-1),value:w.substring(K-1),signed:v,attributes:P}:null;if(P){w=
[];v=[];K=!1;for(r=0;r<P.attributes.types.length;r++){N=P.attributes.types[r];var x=P.value;h=R;if(P.signed&&N==1)for(var q=x.length;q<12&&h<I.length-1;)x+="-"+I[h+1],q=x.length,++h;else if(N==2)for(;h<I.length-1&&I[h+1].match(/^[\d\.]/);)x+="-"+I[h+1],++h;q=P.attributes.setters[r];x=xFR(this,N)(P.option,x,y,D,q);if(x===null){K=!0;R=h;break}else w.push(N),v.push(x)}if(!K)for(P=0;P<v.length;P++)r=w[P],x=v[P],lIo(this,r)(O,x);F=F&&K}else F=!1}}I=F}return new uDR(y,D,I)};
var q3C=function(I,y,D,F,R,O){R(D,y);I=I.charAt(0);O=O(I==I.toUpperCase());R(F,O)};
_.L=XFa.prototype;_.L.parseAndSetIntOption_=function(I,y,D,F,R){if(y=="")return 0;isFinite(y)&&(y=String(y));y=typeof y==="string"?/^\s*-?0x/i.test(y)?parseInt(y,16):parseInt(y,10):NaN;if(isNaN(y))return 1;q3C(I,y,D,F,R,Number);return null};
_.L.logIntParseError_=function(){};
_.L.parseAndSetFloatOption_=function(I,y,D,F,R){if(y=="")return 0;var O=Number(y);y=O==0&&_.wq(y)?NaN:O;if(isNaN(y))return 1;q3C(I,y,D,F,R,Number);return null};
_.L.logFloatParseError_=function(){};
_.L.parseAndSetBoolOption_=function(I,y,D,F,R){if(y!="")return 2;q3C(I,!0,D,F,R,Boolean);return null};
_.L.logBoolParseError_=function(){};
_.L.parseAndSetStringOption_=function(I,y,D,F,R){if(y=="")return 0;q3C(I,y,D,F,R,function(O){return O?"1":""});
return null};
_.L.logStringParseError_=function(){};
_.L.parseAndSetUint64Base64Option_=function(I,y,D,F,R){if(y=="")return 0;q3C(I,y,D,F,R,function(O){return O?1:0});
return null};
var xFR=function(I,y){switch(y){case 0:return(0,_.iD)(I.parseAndSetIntOption_,I);case 2:return(0,_.iD)(I.parseAndSetFloatOption_,I);case 3:return(0,_.iD)(I.parseAndSetBoolOption_,I);case 4:return(0,_.iD)(I.parseAndSetStringOption_,I);case 1:return(0,_.iD)(I.parseAndSetUint64Base64Option_,I);default:return function(){}}},lIo=function(I,y){switch(y){case 0:return(0,_.iD)(I.logIntParseError_,I);
case 2:return(0,_.iD)(I.logFloatParseError_,I);case 3:return(0,_.iD)(I.logBoolParseError_,I);case 4:case 1:return(0,_.iD)(I.logStringParseError_,I);default:return function(){}}},uDR=function(I,y,D){this.valueProto_=I;
this.signatureFlagProto_=y;this.JSC$19774_valid_=D};
uDR.prototype.isValid=function(){return this.JSC$19774_valid_};var uMC=function(I){this.JSC$19775_parser_=null;this.JSC$19775_components_=[];this.JSC$19775_parsedOptions_=null;EDa(this,I)},GLa=function(I){I.JSC$19775_parser_==null&&(I.JSC$19775_parser_=new XFa);
return I.JSC$19775_parser_},EDa=function(I,y){I.JSC$19775_parsedOptions_=y?typeof y==="string"?GLa(I).parse(y):y:GLa(I).parse("")},gF=function(I,y){return I==y?!1:!0};
_.L=uMC.prototype;_.L.JSC$19777_setCrop=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,_.by(D,2),_.by(y.signatureFlagProto_,2))&&_.Xm(D,2,I);return this};
_.L.JSC$19777_setCircleCrop=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,Gg(D,51),Gg(y.signatureFlagProto_,51))&&_.Xm(D,51,I);return this};
_.L.JSC$19777_setImageCrop=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,Gg(D,32),Gg(y.signatureFlagProto_,32))&&_.Xm(D,32,I);return this};
_.L.JSC$19777_setHeight=function(I){var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,D.getHeight(),y.signatureFlagProto_.getHeight())&&_.Ih(D,13,I);return this};
_.L.setCenterCrop=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,_.by(D,20),_.by(y.signatureFlagProto_,20))&&D.setCenterCrop(I);return this};
_.L.JSC$19777_setSmartCrop=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,_.by(D,19),_.by(y.signatureFlagProto_,19))&&_.Xm(D,19,I);return this};
_.L.JSC$19777_setPad=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,Gg(D,60),Gg(y.signatureFlagProto_,60))&&_.Xm(D,60,I);return this};
_.L.JSC$19777_setSmartCropUseFace=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,_.by(D,67),_.by(y.signatureFlagProto_,67))&&_.Xm(D,67,I);return this};
_.L.JSC$19777_setSmartCropNoClip=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,_.by(D,52),_.by(y.signatureFlagProto_,52))&&_.Xm(D,52,I);return this};
_.L.setSize=function(I){var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,D.getSize(),y.signatureFlagProto_.getSize())&&D.setSize(I);return this};
_.L.setToken=function(I){I=I||void 0;var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,D.getToken(),y.signatureFlagProto_.getToken())&&D.setToken(I);return this};
_.L.JSC$19777_setWidth=function(I){var y=this.JSC$19775_parsedOptions_,D=y.valueProto_;gF(I,D.getWidth(),y.signatureFlagProto_.getWidth())&&_.Ih(D,12,I);return this};
_.L.clearOptions=function(){EDa(this,"");return this};
_.L.build=function(){this.JSC$19775_components_.length=0;var I=this.JSC$19775_parsedOptions_,y=I.valueProto_;I=I.signatureFlagProto_;I3(this,"s",y.getSize(),I.getSize());I3(this,"w",y.getWidth(),I.getWidth());yn(this,"c",_.by(y,2),_.by(I,2));yn(this,"d",_.by(y,3),_.by(I,3));I3(this,"h",y.getHeight(),I.getHeight());yn(this,"s",Gg(y,33),Gg(I,33));yn(this,"h",y.getHtml(),I.getHtml());yn(this,"p",_.by(y,19),_.by(I,19));yn(this,"pp",_.by(y,52),_.by(I,52));yn(this,"pf",_.by(y,67),_.by(I,67));yn(this,"n",
_.by(y,20),_.by(I,20));I3(this,"r",Xa(y,26),Xa(I,26));yn(this,"r",_.by(y,6),_.by(I,6));yn(this,"o",Gg(y,27),Gg(I,27));var D=_.$m(y,7,_.km);De(this,"o",D,_.$m(I,7,_.km));D=_.$m(y,29,_.km);De(this,"j",D,_.$m(I,29,_.km));I3(this,"x",Xa(y,9),Xa(I,9));I3(this,"y",Xa(y,10),Xa(I,10));I3(this,"z",Xa(y,11),Xa(I,11));yn(this,"g",_.by(y,14),_.by(I,14));I3(this,"e",Xa(y,15),Xa(I,15));De(this,"f",_.z6(y,16),_.z6(I,16));yn(this,"k",Gg(y,17),Gg(I,17));yn(this,"u",Gg(y,18),!0);yn(this,"ut",Gg(y,45),!0);yn(this,"i",
Gg(y,22),!0);yn(this,"a",Gg(y,21),Gg(I,21));yn(this,"b",_.by(y,23),_.by(I,23));I3(this,"b",Xa(y,38),Xa(I,38));I3(this,"c",Xa(y,39),Xa(I,39),16,8);De(this,"q",_.z6(y,28),_.z6(I,28));yn(this,"fh",Gg(y,30),Gg(I,30));yn(this,"fv",Gg(y,31),Gg(I,31));yn(this,"fg",_.by(y,34),_.by(I,34));yn(this,"ci",Gg(y,32),Gg(I,32));De(this,"t",y.getToken(),I.getToken());De(this,"nt0",_.z6(y,36),_.z6(I,36));yn(this,"rw",_.by(y,35),_.by(I,35));yn(this,"rwu",_.by(y,41),_.by(I,41));yn(this,"rwa",_.by(y,64),_.by(I,64));yn(this,
"nw",_.by(y,48),_.by(I,48));yn(this,"rh",_.by(y,49),_.by(I,49));yn(this,"no",_.by(y,37),_.by(I,37));yn(this,"ns",Gg(y,40),Gg(I,40));I3(this,"k",Xa(y,42),Xa(I,42));I3(this,"p",Xa(y,43),Xa(I,43));I3(this,"l",Xa(y,44),Xa(I,44));I3(this,"v",Xa(y,62),Xa(I,62));yn(this,"nu",Gg(y,46),Gg(I,46));yn(this,"ft",Gg(y,50),Gg(I,50));yn(this,"cc",Gg(y,51),Gg(I,51));yn(this,"nd",Gg(y,53),Gg(I,53));yn(this,"ip",Gg(y,54),Gg(I,54));yn(this,"nc",Gg(y,55),Gg(I,55));I3(this,"a",Xa(y,56),Xa(I,56));yn(this,"rj",Gg(y,57),
Gg(I,57));yn(this,"rp",Gg(y,58),Gg(I,58));yn(this,"rg",Gg(y,59),Gg(I,59));yn(this,"pd",Gg(y,60),Gg(I,60));yn(this,"pa",Gg(y,61),Gg(I,61));I3(this,"m",Xa(y,63),Xa(I,63));I3(this,"vb",QN(y,68),QN(I,68));I3(this,"vl",QN(y,69),QN(I,69));yn(this,"lf",Gg(y,65),Gg(I,65));yn(this,"mv",Gg(y,66),Gg(I,66));yn(this,"id",Gg(y,70),Gg(I,70));I3(this,"ic",Xa(y,71),!0);yn(this,"pg",_.by(y,72),_.by(I,72));yn(this,"mo",Gg(y,73),Gg(I,73));yn(this,"al",Gg(y,74),Gg(I,74));I3(this,"iv",QN(y,75),QN(I,75));I3(this,"pi",Yo(y,
76),Yo(I,76));I3(this,"ya",Yo(y,77),Yo(I,77));I3(this,"ro",Yo(y,78),Yo(I,78));I3(this,"fo",Yo(y,79),Yo(I,79));yn(this,"df",Gg(y,80),Gg(I,80));De(this,"mm",_.z6(y,81),_.z6(I,81));yn(this,"sg",Gg(y,82),Gg(I,82));yn(this,"gd",Gg(y,83),Gg(I,83));yn(this,"fm",Gg(y,84),Gg(I,84));I3(this,"ba",Xa(y,85),Xa(I,85));I3(this,"br",Xa(y,86),Xa(I,86));I3(this,"bc",y.getBackgroundColor(),I.getBackgroundColor(),16,8);I3(this,"pc",Xa(y,88),Xa(I,88),16,8);I3(this,"sc",Xa(y,89),Xa(I,89),16,8);yn(this,"dv",Gg(y,90),Gg(I,
90));yn(this,"md",Gg(y,91),Gg(I,91));I3(this,"cp",Xa(y,92),Xa(I,92));yn(this,"sm",Gg(y,93),Gg(I,93));I3(this,"cv",Xa(y,94),Xa(I,94));yn(this,"ng",Gg(y,95),Gg(I,95));yn(this,"il",Gg(y,96),Gg(I,96));yn(this,"lo",Gg(y,97),Gg(I,97));yn(this,"vm",Gg(y,98),Gg(I,98));De(this,"dc",_.z6(y,99),_.z6(I,99));yn(this,"rf",Gg(y,100),Gg(I,100));De(this,"vf",_.z6(y,102),_.z6(I,102));yn(this,"ra",_.by(y,103),_.by(I,103));yn(this,"ckm",Gg(y,104),Gg(I,104));yn(this,"gm",Gg(y,105),Gg(I,105));yn(this,"ngm",Gg(y,106),Gg(I,
106));I3(this,"em",Xa(y,107),Xa(I,107));yn(this,"cr",Gg(y,108),Gg(I,108));I3(this,"sl",y.getStoryboardLevel(),I.getStoryboardLevel());I3(this,"sb",Xa(y,110),Xa(I,110));De(this,"pt",_.z6(y,111),_.z6(I,111));De(this,"gce",_.z6(y,112),_.z6(I,112));yn(this,"tm",Gg(y,113),Gg(I,113));yn(this,"ntm",Gg(y,114),Gg(I,114));I3(this,"mp",Xa(y,115),Xa(I,115));return this.JSC$19775_components_.join("-")};
var I3=function(I,y,D,F,R,O){if(D!=null){var w=R==void 0||R!=10&&R!=16?10:R;D=Number(D).toString(w);R=new tuQ;R.append(w==16?"0x":"");w=R.append;O==void 0?O="":(O-=D.length,O=O<=0?"":(0,_.zDG)("0",O));w.call(R,O);R.append(D);Xf1(I,y,R.toString(),!!Number(F))}},yn=function(I,y,D,F){D&&Xf1(I,y,"",!!F)},De=function(I,y,D,F){D&&Xf1(I,y,String(D),!!Number(F))},Xf1=function(I,y,D,F){F&&(y=y.charAt(0).toUpperCase()+y.substring(1));
I.JSC$19775_components_.push(y+D)};_.EI(jd,uMC);_.L=jd.prototype;_.L.JSC$19777_setCrop=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setCrop.call(this,I)};
_.L.JSC$19777_setHeight=function(I){I=I==null||I<0?void 0:I;I!=null&&this.setSize();return jd.superClass_.JSC$19777_setHeight.call(this,I)};
_.L.JSC$19777_setImageCrop=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setImageCrop.call(this,I)};
_.L.JSC$19777_setCircleCrop=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setCircleCrop.call(this,I)};
_.L.setSize=function(I){_.b_(I)&&(I=Math.max(I.width,I.height));I=I==null||I<0?void 0:I;I!=null&&(this.JSC$19777_setWidth(),this.JSC$19777_setHeight());return jd.superClass_.setSize.call(this,I)};
_.L.JSC$19777_setSmartCrop=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setSmartCrop.call(this,I)};
_.L.JSC$19777_setSmartCropNoClip=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setSmartCropNoClip.call(this,I)};
_.L.JSC$19777_setSmartCropUseFace=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setSmartCropUseFace.call(this,I)};
_.L.setCenterCrop=function(I){I&&Fe(this);return jd.superClass_.setCenterCrop.call(this,I)};
_.L.JSC$19777_setPad=function(I){I&&Fe(this);return jd.superClass_.JSC$19777_setPad.call(this,I)};
_.L.JSC$19777_setWidth=function(I){I=I==null||I<0?void 0:I;I!=null&&this.setSize();return jd.superClass_.JSC$19777_setWidth.call(this,I)};
var QJb=function(I){I.clearOptions();var y=I.JSC$19775_parsedOptions_,D=y.valueProto_;gF(!0,_.by(D,3),_.by(y.signatureFlagProto_,3))&&_.Xm(D,3,!0);return I},Fe=function(I){I.setCenterCrop();
I.JSC$19777_setCircleCrop();I.JSC$19777_setCrop();I.JSC$19777_setImageCrop();I.JSC$19777_setPad();I.JSC$19777_setSmartCrop();I.JSC$19777_setSmartCropNoClip();I.JSC$19777_setSmartCropUseFace()};
jd.prototype.build=function(){var I=this.JSC$19775_parsedOptions_.valueProto_;Gg(I,18)||Gg(I,45)?I.getSize()||this.setSize(0):(I=this.JSC$19775_parsedOptions_.valueProto_,I.getSize()||I.getWidth()||I.getHeight()||(this.setSize(),this.JSC$19777_setHeight(),this.JSC$19777_setWidth(),Fe(this)));return jd.superClass_.build.call(this)};var Y3T=/^[^\/]*\/\//,fIa=function(I,y){y=y===void 0?!1:y;this.original_=I;this.originalPrefix_="";(I=this.original_.match(Y3T))&&I[0]?(this.originalPrefix_=I[0],I=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):I="http://"+this.original_;this.uri_=_.ob(I,!0);this.isFreeformUrl_=y;this.JSC$19781_valid_=!0;this.obfuscated_=!1},nDa=function(I,y){I.JSC$19783_pathPrefix_=I.JSC$19783_pathPrefix_?I.JSC$19783_pathPrefix_+("/"+y):y},R3=function(I){if(I.JSC$19783_components_==
void 0){var y=I.uri_.getPath().substring(1);
I.JSC$19783_pathPrefix_=null;if(I.isFreeformUrl_){I.JSC$19783_components_=[];if((y.match(/=/g)||[]).length>1)return I.JSC$19781_valid_=!1,I.JSC$19783_components_;var D=y.indexOf("=");D!=-1?(I.JSC$19783_components_.push(y.substr(0,D)),I.JSC$19783_components_.push(y.substr(D+1))):I.JSC$19783_components_.push(y);return I.JSC$19783_components_}I.JSC$19783_components_=y.split("/");y=I.JSC$19783_components_.length;y>2&&I.JSC$19783_components_[0]=="u"&&(nDa(I,I.JSC$19783_components_[0]+"/"+I.JSC$19783_components_[1]),
I.JSC$19783_components_.shift(),I.JSC$19783_components_.shift(),y-=2);if(y==0||y==4||y>7)return I.JSC$19781_valid_=!1,I.JSC$19783_components_;if(y==2)nDa(I,I.JSC$19783_components_[0]);else if(I.JSC$19783_components_[0]=="image")nDa(I,I.JSC$19783_components_[0]);else if(y==7||y==3)return I.JSC$19781_valid_=!1,I.JSC$19783_components_;if(y<=3){I.obfuscated_=!0;y==3&&(nDa(I,I.JSC$19783_components_[1]),I.JSC$19783_components_.shift(),--y);--y;D=I.JSC$19783_components_[y];var F=D.indexOf("=");F!=-1&&(I.JSC$19783_components_[y]=
D.substr(0,F),I.JSC$19783_components_.push(D.substr(F+1)))}}return I.JSC$19783_components_};
fIa.prototype.isValid=function(){R3(this);return this.JSC$19781_valid_};
fIa.prototype.isObfuscated=function(){R3(this);return this.obfuscated_};
var pfT=function(I){R3(I);return I.isFreeformUrl_},O9=function(I){R3(I);
I.JSC$19783_pathPrefix_==void 0&&(I.JSC$19783_pathPrefix_=null);return I.JSC$19783_pathPrefix_},mFG=function(I){switch(R3(I).length){case 7:return!0;
case 6:return O9(I)==null;case 5:return!1;case 3:return!0;case 2:return O9(I)==null;case 1:return!1;default:return!1}},Ld=function(I,y){if(pfT(I))a:{switch(y){case 7:y=0;
break;case 4:if(!mFG(I)){I=null;break a}y=1;break;default:I=null;break a}I=R3(I)[y]}else if(I.isObfuscated())a:{var D=O9(I)!=null?1:0;switch(y){case 6:y=D;break;case 4:if(!mFG(I)){I=null;break a}y=1+D;break;default:I=null;break a}I=R3(I)[y]}else a:{D=O9(I)!=null?1:0;switch(y){case 0:y=D;break;case 1:y=1+D;break;case 2:y=2+D;break;case 3:y=3+D;break;case 4:if(!mFG(I)){I=null;break a}y=4+D;break;case 5:y=mFG(I)?1:0;y=4+D+y;break;default:I=null;break a}I=R3(I)[y]}return I};
fIa.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Ld(this,4));return this.options_};var GFT=function(){};
GFT.prototype.parse=function(I,y){return new qgb(I,y===void 0?!1:y)};
var qgb=function(I,y){fIa.call(this,I,y===void 0?!1:y)};
_.E(qgb,fIa);_.EI(QqZ,jd);var EcZ;QqZ.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
QqZ.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var I=QqZ.superClass_.build.call(this),y=[];O9(this.parsedImageUrl_)!=null&&y.push(O9(this.parsedImageUrl_));var D=pfT(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var F=this.parsedImageUrl_;F.obfuscatedData_==void 0&&(F.obfuscatedData_=Ld(F,6));y.push(F.obfuscatedData_+(I?"="+I:""))}else if(D){F=y.push;var R=this.parsedImageUrl_;R.freeformUrlPath_===void 0&&(R.freeformUrlPath_=
Ld(R,7));F.call(y,R.freeformUrlPath_);I&&y.push(I)}else F=y.push,R=this.parsedImageUrl_,R.obfuscatedGaiaId_==void 0&&(R.obfuscatedGaiaId_=Ld(R,0)),F.call(y,R.obfuscatedGaiaId_),F=y.push,R=this.parsedImageUrl_,R.photoId_==void 0&&(R.photoId_=Ld(R,1)),F.call(y,R.photoId_),F=y.push,R=this.parsedImageUrl_,R.imageVersion_==void 0&&(R.imageVersion_=Ld(R,2)),F.call(y,R.imageVersion_),F=y.push,R=this.parsedImageUrl_,R.signature_==void 0&&(R.signature_=Ld(R,3)),F.call(y,R.signature_),I&&y.push(I),I=y.push,
F=this.parsedImageUrl_,F.filename_==void 0&&(F.filename_=Ld(F,5)),I.call(y,F.filename_);y=D?y.join("="):y.join("/");y=_.ob(this.protocolPrefix_+this.JSC$19789_domain_+"/"+y+(this.JSC$19789_query_?"?"+this.JSC$19789_query_:"")).toString();y.startsWith("%3a//")&&(y=y.replace("%3a//","://"));return y};_.EI(oX,_.Hv);oX.prototype.JSC$10350_setLabel=function(I){oX.superClass_.JSC$10350_setLabel.call(this,I);return this};
oX.prototype.addUploadMetadata=function(I,y){oX.superClass_.addUploadMetadata.call(this,I,y);return this};var MMG=function(I){if(I!=="youtubebanner"&&I!=="youtube-channel-banner")throw Error("Dk");oX.call(this,I)};
_.E(MMG,oX);MMG.prototype.JSC$10350_setLabel=function(I){oX.prototype.JSC$10350_setLabel.call(this,I);return this};
MMG.prototype.addUploadMetadata=function(I,y){oX.prototype.addUploadMetadata.call(this,I,y);return this};var f7R=_.UI(["",""]);var zSy=[0,_.Em,_.Um,_.Em,-1,_.Um,[0,_.rJ,_.oh,-1],_.Em,-1];var kLT=[0,[1,2,3],_.h4,-2];var dFa=[0,_.Em];var aIC=_.UI(["viewBox"]),cxZ=_.UI(["width"]),WNg=_.UI(["height"]),C3G=_.UI(["fill"]),BEo=_.UI(["id"]),iJT=_.UI(["x"]),Axg=_.UI(["y"]);pFe.prototype.getLength=function(){return this.parsedData.length};
pFe.prototype.write=function(I){for(var y=0,D=this.parsedData.length;y<D;y++)I.put(this.parsedData[y],8)};
var cSy=function(I,y){var D=new pFe(y);I.dataList.push(D);D=I.errorCorrectLevel;var F=1,R=encodeURI(y).toString().replace(/%[0-9a-fA-F]{2}/g,"a");y=R.length+(R.length!=y?3:0);R=0;for(var O=JA.length;R<=O;R++){var w=0;switch(D){case 1:w=JA[R][0];break;case 0:w=JA[R][1];break;case 3:w=JA[R][2];break;case 2:w=JA[R][3]}if(y<=w)break;else F++}if(F>JA.length)throw Error("Mk");I.typeNumber=F;I.dataCache=null};
mPy.prototype.isDark=function(I,y){if(I<0||this.moduleCount<=I||y<0||this.moduleCount<=y)throw Error("Ek`"+I+"`"+y);return this.modules[I][y]};
for(var WXY=function(I,y,D){I.moduleCount=I.typeNumber*4+17;I.modules=Array(I.moduleCount);for(var F=0;F<I.moduleCount;F++){I.modules[F]=Array(I.moduleCount);for(var R=0;R<I.moduleCount;R++)I.modules[F][R]=null}$Fy(I,0,0);$Fy(I,I.moduleCount-7,0);$Fy(I,0,I.moduleCount-7);F=bJa[I.typeNumber-1];for(R=0;R<F.length;R++)for(var O=0;O<F.length;O++){var w=F[R],v=F[O];if(I.modules[w][v]==null)for(var P=-2;P<=2;P++)for(var K=-2;K<=2;K++)I.modules[w+P][v+K]=P==-2||P==2||K==-2||K==2||P==0&&K==0?!0:!1}for(F=
8;F<I.moduleCount-8;F++)I.modules[F][6]==null&&(I.modules[F][6]=F%2==0);for(F=8;F<I.moduleCount-8;F++)I.modules[6][F]==null&&(I.modules[6][F]=F%2==0);F=I.errorCorrectLevel<<3|D;for(R=F<<10;wk(R)-wk(1335)>=0;)R^=1335<<wk(R)-wk(1335);F=(F<<10|R)^21522;for(R=0;R<15;R++)O=!y&&(F>>R&1)==1,R<6?I.modules[R][8]=O:R<8?I.modules[R+1][8]=O:I.modules[I.moduleCount-15+R][8]=O;for(R=0;R<15;R++)O=!y&&(F>>R&1)==1,R<8?I.modules[8][I.moduleCount-R-1]=O:R<9?I.modules[8][15-R-1+1]=O:I.modules[8][15-R-1]=O;I.modules[I.moduleCount-
8][8]=!y;if(I.typeNumber>=7){F=I.typeNumber;for(R=F<<12;wk(R)-wk(7973)>=0;)R^=7973<<wk(R)-wk(7973);F=F<<12|R;for(R=0;R<18;R++)O=!y&&(F>>R&1)==1,I.modules[Math.floor(R/3)][R%3+I.moduleCount-8-3]=O;for(R=0;R<18;R++)O=!y&&(F>>R&1)==1,I.modules[R%3+I.moduleCount-8-3][Math.floor(R/3)]=O}if(I.dataCache==null){R=I.typeNumber;O=I.dataList;y=I.errorCorrectLevel;F=HJC(R,y);if(F==void 0)throw Error("Lk`"+R+"`"+y);w=F.length/3;y=[];for(v=0;v<w;v++){P=F[v*3];K=F[v*3+1];for(var r=F[v*3+2],N=0;N<P;N++)y.push(new M7a(K,
r))}F=new zjQ;for(w=0;w<O.length;w++)v=O[w],F.put(v.mode,4),F.put(v.getLength(),eSa(v.mode,R)),v.write(F);for(w=R=0;w<y.length;w++)R+=y[w].dataCount;if(F.length>R*8)throw Error("Fk`"+F.length+"`"+R*8);for(F.length+4<=R*8&&F.put(0,4);F.length%8!=0;)TEy(F,!1);for(;!(F.length>=R*8);){F.put(236,8);if(F.length>=R*8)break;F.put(17,8)}O=R=K=0;w=Array(y.length);v=Array(y.length);for(P=0;P<y.length;P++){N=y[P].dataCount;var h=y[P].totalCount-N;R=Math.max(R,N);O=Math.max(O,h);w[P]=Array(N);for(r=0;r<w[P].length;r++)w[P][r]=
255&F.buffer[r+K];K+=N;r=h;N=new N9([1],0);for(h=0;h<r;h++)N=N.multiply(new N9([1,sJY(h)],0));r=N;N=(new N9(w[P],r.getLength()-1)).mod(r);v[P]=Array(r.getLength()-1);for(r=0;r<v[P].length;r++)h=r+N.getLength()-v[P].length,v[P][r]=h>=0?N.get(h):0}for(r=F=0;r<y.length;r++)F+=y[r].totalCount;F=Array(F);for(r=K=0;r<R;r++)for(P=0;P<y.length;P++)r<w[P].length&&(F[K++]=w[P][r]);for(r=0;r<O;r++)for(P=0;P<y.length;P++)r<v[P].length&&(F[K++]=v[P][r]);I.dataCache=F}y=I.dataCache;F=-1;R=I.moduleCount-1;O=7;w=
0;for(v=I.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(P=0;P<2;P++)I.modules[R][v-P]==null&&(K=!1,w<y.length&&(K=(y[w]>>>O&1)==1),VMR(D,R,v-P)&&(K=!K),I.modules[R][v-P]=K,O--,O==-1&&(w++,O=7));R+=F;if(R<0||I.moduleCount<=R){R-=F;F=-F;break}}},$Fy=function(I,y,D){for(var F=-1;F<=7;F++)if(!(y+F<=-1||I.moduleCount<=y+F))for(var R=-1;R<=7;R++)D+R<=-1||I.moduleCount<=D+R||(I.modules[y+F][D+R]=0<=F&&F<=6&&(R==0||R==6)||0<=R&&R<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=R&&R<=4?!0:!1)},CXY=function(I){for(var y=0,
D=0,F=0;F<8;F++){WXY(I,!0,F);
var R=I;for(var O=R.moduleCount,w=0,v=0;v<O;v++)for(var P=0;P<O;P++){for(var K=0,r=R.isDark(v,P),N=-1;N<=1;N++)if(!(v+N<0||O<=v+N))for(var h=-1;h<=1;h++)P+h<0||O<=P+h||(N!=0||h!=0)&&r==R.isDark(v+N,P+h)&&K++;K>5&&(w+=3+K-5)}for(v=0;v<O-1;v++)for(P=0;P<O-1;P++)if(K=0,R.isDark(v,P)&&K++,R.isDark(v+1,P)&&K++,R.isDark(v,P+1)&&K++,R.isDark(v+1,P+1)&&K++,K==0||K==4)w+=3;for(v=0;v<O;v++)for(P=0;P<O-6;P++)R.isDark(v,P)&&!R.isDark(v,P+1)&&R.isDark(v,P+2)&&R.isDark(v,P+3)&&R.isDark(v,P+4)&&!R.isDark(v,P+5)&&
R.isDark(v,P+6)&&(w+=40);for(P=0;P<O;P++)for(v=0;v<O-6;v++)R.isDark(v,P)&&!R.isDark(v+1,P)&&R.isDark(v+2,P)&&R.isDark(v+3,P)&&R.isDark(v+4,P)&&!R.isDark(v+5,P)&&R.isDark(v+6,P)&&(w+=40);for(P=K=0;P<O;P++)for(v=0;v<O;v++)R.isDark(v,P)&&K++;R=w+=Math.abs(100*K/O/O-50)/5*10;if(F==0||y>R)y=R,D=F}return D},bJa=[[],
[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]],wk=function(I){for(var y=0;I!=0;)y++,I>>>=1;return y},VMR=function(I,y,D){switch(I){case 0:return(y+D)%2==0;
case 1:return y%2==0;case 2:return D%3==0;case 3:return(y+D)%3==0;case 4:return(Math.floor(y/2)+Math.floor(D/3))%2==0;case 5:return y*D%2+y*D%3==0;case 6:return(y*D%2+y*D%3)%2==0;case 7:return(y*D%3+(y+D)%2)%2==0;default:throw Error("Gk`"+I);}},eSa=function(I,y){if(1<=y&&y<10)switch(I){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Hk`"+I);}else if(y<27)switch(I){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Hk`"+I);}else if(y<41)switch(I){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Hk`"+I);}else throw Error("Ik`"+y);},gDR=function(I){if(I<1)throw Error("Jk`"+I);
return ZJ8[I]},sJY=function(I){for(;I<0;)I+=255;
for(;I>=256;)I-=255;return vz[I]},vz=Array(256),ZJ8=Array(256),I8a=0;I8a<8;I8a++)vz[I8a]=1<<I8a;
for(var SK=8;SK<256;SK++)vz[SK]=vz[SK-4]^vz[SK-5]^vz[SK-6]^vz[SK-8];for(var y2o=0;y2o<255;y2o++)ZJ8[vz[y2o]]=y2o;N9.prototype.get=function(I){return this.num[I]};
N9.prototype.getLength=function(){return this.num.length};
N9.prototype.multiply=function(I){for(var y=Array(this.getLength()+I.getLength()-1),D=0;D<this.getLength();D++)for(var F=0;F<I.getLength();F++)y[D+F]^=sJY(gDR(this.get(D))+gDR(I.get(F)));return new N9(y,0)};
N9.prototype.mod=function(I){if(this.getLength()-I.getLength()<0)return this;for(var y=gDR(this.get(0))-gDR(I.get(0)),D=Array(this.getLength()),F=0;F<this.getLength();F++)D[F]=this.get(F);for(F=0;F<I.getLength();F++)D[F]^=sJY(gDR(I.get(F))+y);return(new N9(D,0)).mod(I)};
var Dye=[[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]],HJC=function(I,y){switch(y){case 1:return Dye[(I-1)*4];case 0:return Dye[(I-1)*4+1];case 3:return Dye[(I-1)*4+2];case 2:return Dye[(I-1)*4+3]}};
zjQ.prototype.get=function(I){return(this.buffer[Math.floor(I/8)]>>>7-I%8&1)==1};
zjQ.prototype.put=function(I,y){for(var D=0;D<y;D++)TEy(this,(I>>>y-D-1&1)==1)};
var TEy=function(I,y){var D=Math.floor(I.length/8);I.buffer.length<=D&&I.buffer.push(0);y&&(I.buffer[D]|=128>>>I.length%8);I.length++},JA=[[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]],a7a=function(){var I=function(y,D){this.JSC$19815__el=y;this.JSC$19815__htOption=D};
I.prototype.draw=function(y){function D(r,N){r=document.createElementNS("http://www.w3.org/2000/svg",r);for(var h in N)N.hasOwnProperty(h)&&(h==="href"?CKg(r,N[h]):_.jY([_.ll(aIC),_.ll(cxZ),_.ll(WNg),_.ll(C3G),_.ll(BEo),_.ll(iJT),_.ll(Axg)],r,h,N[h]));return r}
var F=this.JSC$19815__htOption,R=this.JSC$19815__el,O=y.moduleCount;this.clear();var w=D("svg",{viewBox:"0 0 "+String(O)+" "+String(O),width:"100%",height:"100%",fill:F.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});R.appendChild(w);w.appendChild(D("rect",{fill:F.colorLight,width:"100%",height:"100%"}));w.appendChild(D("rect",{fill:F.colorDark,width:"1",height:"1",id:"template"}));for(var v=0;v<O;v++)for(var P=0;P<O;P++)if(y.isDark(v,P)){var K=D("use",{x:String(v),y:String(P),href:"#template"});
w.appendChild(K)}};
I.prototype.clear=function(){for(;this.JSC$19815__el.hasChildNodes();)this.JSC$19815__el.removeChild(this.JSC$19815__el.lastChild)};
return I}(),dPR=document.documentElement.tagName.toLowerCase()==="svg"?a7a:typeof CanvasRenderingContext2D!="undefined"?function(){var I=function(y,D){this._bIsPainted=!1;
kFb();this.JSC$19815__htOption=D;this._elCanvas=document.createElement("canvas");this._elCanvas.width=D.width;this._elCanvas.height=D.height;y.appendChild(this._elCanvas);this.JSC$19815__el=y;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$19815__el.appendChild(this._elImage);this._bSupportDataURI=null};
I.prototype._onMakeImage=function(){var y=this._elCanvas.toDataURL("image/png");this._elImage.src=y;this._elImage.style.display="block";this._elCanvas.style.display="none"};
I.prototype._safeSetDataURI=function(y,D){var F=this;F._fFail=D;F._fSuccess=y;F._bSupportDataURI===null?(y=_.kW("IMG"),D=function(){F._bSupportDataURI=!1;F._fFail&&F._fFail.call(F)},y.onabort=D,y.onerror=D,y.onload=function(){F._bSupportDataURI=!0;
F._fSuccess&&F._fSuccess.call(F)},y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):F._bSupportDataURI===!0&&F._fSuccess?F._fSuccess.call(F):F._bSupportDataURI===!1&&F._fFail&&F._fFail.call(F)};
I.prototype.draw=function(y){var D=this._oContext,F=this.JSC$19815__htOption,R=y.moduleCount,O=F.width/R,w=F.height/R,v=Math.round(O),P=Math.round(w);this._elImage.style.display="none";this.clear();for(var K=0;K<R;K++)for(var r=0;r<R;r++){var N=y.isDark(K,r),h=r*O,x=K*w;D.strokeStyle=N?F.colorDark:F.colorLight;D.lineWidth=1;D.fillStyle=N?F.colorDark:F.colorLight;D.fillRect(h,x,O,w);D.strokeRect(Math.floor(h)+.5,Math.floor(x)+.5,v,P);D.strokeRect(Math.ceil(h)-.5,Math.ceil(x)-.5,v,P)}this._bIsPainted=
!0};
I.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
I.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
I.prototype.round=function(y){return y?Math.floor(y*1E3)/1E3:y};
return I}():function(){var I=function(y,D){this.JSC$19815__el=y;
this.JSC$19815__htOption=D};
I.prototype.draw=function(y){for(var D=this.JSC$19815__htOption,F=this.JSC$19815__el,R=y.moduleCount,O=Math.floor(D.width/R),w=Math.floor(D.height/R),v=['<table style="border:0;border-collapse:collapse;">'],P=0;P<R;P++){v.push("<tr>");for(var K=0;K<R;K++)v.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+O+"px;height:"+w+"px;background-color:"+(y.isDark(P,K)?D.colorDark:D.colorLight)+';"></td>');v.push("</tr>")}v.push("</table>");y=v.join("");y=_.uOP(_.EBe,y);_.rj(F,y);
y=F.childNodes[0];R=(D.width-y.offsetWidth)/2;O=(D.height-y.offsetHeight)/2;R>0&&O>0&&(y.style.margin=O+"px "+R+"px")};
I.prototype.clear=function(){this.JSC$19815__el.textContent=""};
return I}();
BY8.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19818__android||this.JSC$19818__android>=3)&&this._oDrawing.makeImage()};
BY8.prototype.clear=function(){this._oDrawing.clear()};
_.Ft.QRCode=BY8;var FeR={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var H0e=function(){};
H0e.prototype.stringify=function(I){return _.Ft.JSON.stringify(I,void 0)};
H0e.prototype.parse=function(I){return _.Ft.JSON.parse(I,void 0)};var RQg=function(){_.uS.call(this,"z")};
_.EI(RQg,_.uS);var OMa=function(){_.uS.call(this,"y")};
_.EI(OMa,_.uS);var Leg=null,J2b=function(){return Leg=Leg||new _.Zw},wb1=function(I){_.uS.call(this,"serverreachability",I)};
_.EI(wb1,_.uS);var vpa=function(I){var y=J2b();y.dispatchEvent(new wb1(y,I))},SYb=function(I,y){_.uS.call(this,"statevent",I);
this.stat=y};
_.EI(SYb,_.uS);var tA=function(I){var y=J2b();y.dispatchEvent(new SYb(y,I))},trT=function(I,y,D,F){_.uS.call(this,"timingevent",I);
this.size=y;this.rtt=D;this.retries=F};
_.EI(trT,_.uS);var PCy=function(I,y,D){var F=J2b();F.dispatchEvent(new trT(F,I,y,D))},KeT=function(I,y){if(typeof I!=="function")throw Error("Nk");
return _.Ft.setTimeout(function(){I()},y)};hE.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Uyo=function(I,y,D,F,R,O){I.info(function(){if(I.redactEnabled_)if(O){var w="";for(var v=O.split("&"),P=0;P<v.length;P++){var K=v[P].split("=");if(K.length>1){var r=K[0];K=K[1];var N=r.split("_");w=N.length>=2&&N[1]=="type"?w+(r+"="+K+"&"):w+(r+"=redacted&")}}}else w=null;else w=O;return"XMLHTTP REQ ("+F+") [attempt "+R+"]: "+y+"\n"+D+"\n"+w})},r2R=function(I,y,D,F,R,O,w){I.info(function(){return"XMLHTTP RESP ("+F+") [ attempt "+R+"]: "+y+"\n"+D+"\n"+O+" "+w})},Pz=function(I,y,D,F){I.info(function(){return"XMLHTTP TEXT ("+
y+"): "+jmY(I,D)+(F?" "+F:"")})},opg=function(I,y){I.info(function(){return"TIMEOUT: "+y})};
hE.prototype.debug=function(){};
hE.prototype.info=function(){};
hE.prototype.warning=function(){};
var jmY=function(I,y){if(!I.redactEnabled_)return y;if(!y)return null;try{var D=JSON.parse(y);if(D)for(var F=0;F<D.length;F++)if(Array.isArray(D[F])){var R=D[F];if(!(R.length<2)){var O=R[1];if(Array.isArray(O)&&!(O.length<1)){var w=O[0];if(w!="noop"&&w!="stop"&&w!="close")for(var v=1;v<O.length;v++)O[v]=""}}}return(0,_.O7)(D)}catch(P){return I.debug("Exception parsing expected JS array - probably was not JS"),y}};var ASR=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},Ni1=function(I,y){switch(I){case 0:return"Non-200 return code ("+y+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},hQR={},xyT={};
xN.prototype.setTimeout=function(I){this.timeout_=I};
var uNo=function(I,y,D){I.JSC$19840_type_=1;I.JSC$19840_baseUri_=_.M2(y.clone());I.JSC$19840_postData_=D;I.decodeChunks_=!0;l8a(I,null)},l8a=function(I,y){I.JSC$19840_requestStartTime_=Date.now();
qY1(I);I.JSC$19840_requestUri_=I.JSC$19840_baseUri_.clone();Pbg(I.JSC$19840_requestUri_,"t",I.JSC$19840_retryId_);I.JSC$19840_xmlHttpChunkStart_=0;var D=I.JSC$19840_channel_.JSC$19859_supportsCrossDomainXhrs_;I.fetchResponseState_=new ASR;I.JSC$19840_xmlHttp_=EpZ(I.JSC$19840_channel_,D?y:null,!I.JSC$19840_postData_);I.JSC$19840_readyStateChangeThrottleMs_>0&&(I.JSC$19840_readyStateChangeThrottle_=new _.n4((0,_.iD)(I.JSC$19844_xmlHttpHandler_,I,I.JSC$19840_xmlHttp_),I.JSC$19840_readyStateChangeThrottleMs_));
I.JSC$19840_eventHandler_.listen(I.JSC$19840_xmlHttp_,"readystatechange",I.JSC$19844_readyStateChangeHandler_);y=I.JSC$19840_extraHeaders_?_.e$.clone(I.JSC$19840_extraHeaders_):{};I.JSC$19840_postData_?(I.JSC$19840_verb_||(I.JSC$19840_verb_="POST"),y["Content-Type"]="application/x-www-form-urlencoded",I.JSC$19840_xmlHttp_.send(I.JSC$19840_requestUri_,I.JSC$19840_verb_,I.JSC$19840_postData_,y)):(I.JSC$19840_verb_="GET",I.JSC$19840_xmlHttp_.send(I.JSC$19840_requestUri_,I.JSC$19840_verb_,null,y));vpa(1);
Uyo(I.JSC$19840_channelDebug_,I.JSC$19840_verb_,I.JSC$19840_requestUri_,I.JSC$19840_rid_,I.JSC$19840_retryId_,I.JSC$19840_postData_)};
xN.prototype.JSC$19844_readyStateChangeHandler_=function(I){I=I.target;var y=this.JSC$19840_readyStateChangeThrottle_;y&&_.Jd(I)==3?(this.JSC$19840_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19844_xmlHttpHandler_(I)};
xN.prototype.JSC$19844_xmlHttpHandler_=function(I){try{I==this.JSC$19840_xmlHttp_?G11(this):this.JSC$19840_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19840_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),XbY(this)}finally{}};
var G11=function(I){var y=_.Jd(I.JSC$19840_xmlHttp_),D=I.JSC$19840_xmlHttp_.JSC$10072_lastErrorCode_,F=I.JSC$19840_xmlHttp_.getStatus();if(!(y<3||y==3&&!XbY(I))){I.JSC$19840_cancelled_||y!=4||D==7||(D==8||F<=0?vpa(3):vpa(2));QmZ(I);var R=I.JSC$19840_xmlHttp_.getStatus();I.JSC$19840_lastStatusCode_=R;D=YYG(I);XbY(I)||I.JSC$19840_channelDebug_.debug(function(){return"No response text for uri "+I.JSC$19840_requestUri_+" status "+R});
I.JSC$19840_successful_=R==200;r2R(I.JSC$19840_channelDebug_,I.JSC$19840_verb_,I.JSC$19840_requestUri_,I.JSC$19840_rid_,I.JSC$19840_retryId_,y,R);if(I.JSC$19840_successful_){if(I.decodeInitialResponse_&&!I.initialResponseDecoded_)if(F=f8T(I))Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,F,"Initial handshake response via X-HTTP-Initial-Response"),I.initialResponseDecoded_=!0,npy(I,F);else{I.JSC$19840_successful_=!1;I.JSC$19840_lastError_=3;tA(12);I.JSC$19840_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
I.JSC$19840_rid_+")");Kd(I);pbZ(I);return}I.decodeChunks_?myZ(I,y,D):(Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,D,null),npy(I,D));y==4&&Kd(I);I.JSC$19840_successful_&&!I.JSC$19840_cancelled_&&(y==4?Mr8(I.JSC$19840_channel_,I):(I.JSC$19840_successful_=!1,qY1(I)))}else S5y(I.JSC$19840_xmlHttp_),R==400&&D.indexOf("Unknown SID")>0?(I.JSC$19840_lastError_=3,tA(12),I.JSC$19840_channelDebug_.warning("XMLHTTP Unknown SID ("+I.JSC$19840_rid_+")")):(I.JSC$19840_lastError_=0,tA(13),I.JSC$19840_channelDebug_.warning("XMLHTTP Bad status "+
R+" ("+I.JSC$19840_rid_+")")),Kd(I),pbZ(I)}},f8T=function(I){return I.JSC$19840_xmlHttp_&&(I=NHT(I.JSC$19840_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.wq(I)?I:null},YYG=function(I){if(!zQ1(I))return I.JSC$19840_xmlHttp_.getResponseText();
var y=I.JSC$19840_xmlHttp_.getResponse();if(y==="")return"";var D="",F=y.length,R=_.Jd(I.JSC$19840_xmlHttp_)==4;if(!I.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Kd(I),pbZ(I),"";I.fetchResponseState_.textDecoder=new _.Ft.TextDecoder}for(var O=0;O<F;O++)I.fetchResponseState_.responseArrivedForFetch=!0,D+=I.fetchResponseState_.textDecoder.decode(y[O],{stream:!(R&&O==F-1)});y.length=0;I.fetchResponseState_.responseBuffer+=D;I.JSC$19840_xmlHttpChunkStart_=0;return I.fetchResponseState_.responseBuffer},
XbY=function(I){return I.JSC$19840_xmlHttp_?I.fetchResponseState_.responseArrivedForFetch?!0:!(!I.JSC$19840_xmlHttp_.getResponseText()&&!I.JSC$19840_xmlHttp_.getResponse()):!1},zQ1=function(I){return I.JSC$19840_xmlHttp_?I.JSC$19840_verb_=="GET"&&I.JSC$19840_type_!=2&&I.JSC$19840_channel_.usesFetchStreams_:!1},myZ=function(I,y,D){for(var F=!0,R;!I.JSC$19840_cancelled_&&I.JSC$19840_xmlHttpChunkStart_<D.length;)if(R=k1e(I,D),R==xyT){y==4&&(I.JSC$19840_lastError_=4,tA(14),F=!1);
Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,null,"[Incomplete Response]");break}else if(R==hQR){I.JSC$19840_lastError_=4;tA(15);Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,D,"[Invalid Chunk]");F=!1;break}else Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,R,null),npy(I,R);zQ1(I)&&I.JSC$19840_xmlHttpChunkStart_!=0&&(I.fetchResponseState_.responseBuffer=I.fetchResponseState_.responseBuffer.slice(I.JSC$19840_xmlHttpChunkStart_),I.JSC$19840_xmlHttpChunkStart_=0);y!=4||D.length!=0||I.fetchResponseState_.responseArrivedForFetch||
(I.JSC$19840_lastError_=1,tA(16),F=!1);I.JSC$19840_successful_=I.JSC$19840_successful_&&F;F?D.length>0&&!I.firstByteReceived_&&(I.firstByteReceived_=!0,y=I.JSC$19840_channel_,y.JSC$19859_backChannelRequest_==I&&y.detectBufferingProxy_&&!y.bpDetectionDone_&&(y.JSC$19859_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+D.length),dy8(y),y.bpDetectionDone_=!0,tA(11))):(Pz(I.JSC$19840_channelDebug_,I.JSC$19840_rid_,D,"[Invalid Chunked Response]"),Kd(I),pbZ(I))},k1e=function(I,
y){var D=I.JSC$19840_xmlHttpChunkStart_,F=y.indexOf("\n",D);
if(F==-1)return xyT;D=Number(y.substring(D,F));if(isNaN(D))return hQR;F+=1;if(F+D>y.length)return xyT;y=y.slice(F,F+D);I.JSC$19840_xmlHttpChunkStart_=F+D;return y};
xN.prototype.cancel=function(){this.JSC$19840_cancelled_=!0;Kd(this)};
var qY1=function(I){I.JSC$19840_watchDogTimeoutTime_=Date.now()+I.timeout_;a8y(I,I.timeout_)},a8y=function(I,y){if(I.JSC$19840_watchDogTimerId_!=null)throw Error("Ok");
I.JSC$19840_watchDogTimerId_=KeT((0,_.iD)(I.JSC$19844_onWatchDogTimeout_,I),y)},QmZ=function(I){I.JSC$19840_watchDogTimerId_&&(_.Ft.clearTimeout(I.JSC$19840_watchDogTimerId_),I.JSC$19840_watchDogTimerId_=null)};
xN.prototype.JSC$19844_onWatchDogTimeout_=function(){this.JSC$19840_watchDogTimerId_=null;var I=Date.now();I-this.JSC$19840_watchDogTimeoutTime_>=0?(opg(this.JSC$19840_channelDebug_,this.JSC$19840_requestUri_),this.JSC$19840_type_!=2&&(vpa(3),tA(17)),Kd(this),this.JSC$19840_lastError_=2,pbZ(this)):(this.JSC$19840_channelDebug_.warning("WatchDog timer called too early"),a8y(this,this.JSC$19840_watchDogTimeoutTime_-I))};
var pbZ=function(I){I.JSC$19840_channel_.state_==0||I.JSC$19840_cancelled_||Mr8(I.JSC$19840_channel_,I)},Kd=function(I){QmZ(I);
_.rM(I.JSC$19840_readyStateChangeThrottle_);I.JSC$19840_readyStateChangeThrottle_=null;I.JSC$19840_eventHandler_.removeAll();if(I.JSC$19840_xmlHttp_){var y=I.JSC$19840_xmlHttp_;I.JSC$19840_xmlHttp_=null;y.abort();y.dispose()}};
xN.prototype.getLastError=function(){return this.JSC$19840_lastError_};
var npy=function(I,y){try{var D=I.JSC$19840_channel_;if(D.state_!=0&&(D.JSC$19859_backChannelRequest_==I||c2g(D.forwardChannelRequestPool_,I)))if(!I.initialResponseDecoded_&&c2g(D.forwardChannelRequestPool_,I)&&D.state_==3){try{var F=D.wireCodec_.JSC$19854_parser_.parse(y)}catch(v){F=null}if(Array.isArray(F)&&F.length==3){y=F;if(y[0]==0)a:if(D.JSC$19859_channelDebug_.debug("Server claims our backchannel is missing."),D.JSC$19859_backChannelTimerId_)D.JSC$19859_channelDebug_.debug("But we are currently starting the request.");
else{if(D.JSC$19859_backChannelRequest_)if(D.JSC$19859_backChannelRequest_.JSC$19840_requestStartTime_+3E3<I.JSC$19840_requestStartTime_)WeQ(D),CCZ(D);else break a;else D.JSC$19859_channelDebug_.warning("We do not have a BackChannel established");BiG(D);tA(18)}else{D.JSC$19859_lastPostResponseArrayId_=y[1];var R=D.JSC$19859_lastPostResponseArrayId_-D.JSC$19859_lastArrayId_;if(0<R){var O=y[2];D.JSC$19859_channelDebug_.debug(O+" bytes (in "+R+" arrays) are outstanding on the BackChannel");O<37500&&
D.enableStreaming_&&D.JSC$19859_backChannelRetryCount_==0&&!D.JSC$19859_deadBackChannelTimerId_&&(D.JSC$19859_deadBackChannelTimerId_=KeT((0,_.iD)(D.JSC$19861_onBackChannelDead_,D),6E3))}}if(iMR(D.forwardChannelRequestPool_)<=1&&D.forwardChannelFlushedCallback_){try{D.forwardChannelFlushedCallback_()}catch(v){}D.forwardChannelFlushedCallback_=void 0}}else D.JSC$19859_channelDebug_.debug("Bad POST response data returned"),U9(D,11)}else if((I.initialResponseDecoded_||D.JSC$19859_backChannelRequest_==
I)&&WeQ(D),!_.wq(y)){var w=D.wireCodec_.JSC$19854_parser_.parse(y);D.onInput_(w,I)}vpa(4)}catch(v){}};var A2G=function(I,y){this.JSC$19847_mapId=I;this.map=y;this.context=null};var sqg=function(I){this.maxPoolSizeConfigured_=I||10;_.Ft.PerformanceNavigationTiming?(I=_.Ft.performance.getEntriesByType("navigation"),I=I.length>0&&(I[0].nextHopProtocol=="hq"||I[0].nextHopProtocol=="h2")):I=!!(_.Ft.chrome&&_.Ft.chrome.loadTimes&&_.Ft.chrome.loadTimes()&&_.Ft.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19850_maxSize_=I?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19850_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19850_request_=null;this.JSC$19850_pendingMessages_=
[]},$y1=function(I){return I.JSC$19850_request_?!0:I.requestPool_?I.requestPool_.size>=I.JSC$19850_maxSize_:!1},iMR=function(I){return I.JSC$19850_request_?1:I.requestPool_?I.requestPool_.size:0},c2g=function(I,y){return I.JSC$19850_request_?I.JSC$19850_request_==y:I.requestPool_?I.requestPool_.has(y):!1},bMG=function(I,y){I.requestPool_?I.requestPool_.add(y):I.JSC$19850_request_=y},HMa=function(I,y){I.JSC$19850_request_&&I.JSC$19850_request_==y?I.JSC$19850_request_=null:I.requestPool_&&I.requestPool_.has(y)&&
I.requestPool_.delete(y)};
sqg.prototype.cancel=function(){this.JSC$19850_pendingMessages_=eQa(this);if(this.JSC$19850_request_)this.JSC$19850_request_.cancel(),this.JSC$19850_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var I=_.J(this.requestPool_.values()),y=I.next();!y.done;y=I.next())y.value.cancel();this.requestPool_.clear()}};
var eQa=function(I){if(I.JSC$19850_request_!=null)return I.JSC$19850_pendingMessages_.concat(I.JSC$19850_request_.JSC$19840_pendingMessages_);if(I.requestPool_!=null&&I.requestPool_.size!==0){var y=I.JSC$19850_pendingMessages_;I=_.J(I.requestPool_.values());for(var D=I.next();!D.done;D=I.next())y=y.concat(D.value.JSC$19840_pendingMessages_);return y}return _.C5(I.JSC$19850_pendingMessages_)},Tiy=function(I,y){I.JSC$19850_pendingMessages_=I.JSC$19850_pendingMessages_.concat(y)};us.prototype.JSC$19861_channelVersion_=8;us.prototype.state_=1;
us.prototype.connect=function(I,y,D,F){this.JSC$19859_channelDebug_.debug("connect()");tA(0);this.JSC$19859_path_=I;this.JSC$19859_extraParams_=y||{};D&&F!==void 0&&(this.JSC$19859_extraParams_.OSID=D,this.JSC$19859_extraParams_.OAID=F);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19859_channelDebug_.debug("connectChannel_()");I=smR(this,null,this.JSC$19859_path_);this.JSC$19859_channelDebug_.debug("GetForwardChannelUri: "+I);this.JSC$19859_forwardChannelUri_=I;Vr1(this)};
us.prototype.disconnect=function(){this.JSC$19859_channelDebug_.debug("disconnect()");ZMa(this);if(this.state_==3){var I=this.JSC$19859_nextRid_++,y=this.JSC$19859_forwardChannelUri_.clone();_.hu(y,"SID",this.sid_);_.hu(y,"RID",I);_.hu(y,"TYPE","terminate");gpb(this,y);I=new xN(this,this.JSC$19859_channelDebug_,this.sid_,I);I.JSC$19840_type_=2;I.JSC$19840_baseUri_=_.M2(y.clone());y=!1;if(_.Ft.navigator&&_.Ft.navigator.sendBeacon)try{y=_.Ft.navigator.sendBeacon(I.JSC$19840_baseUri_.toString(),"")}catch(D){}!y&&
_.Ft.Image&&((new Image).src=I.JSC$19840_baseUri_,y=!0);y||(I.JSC$19840_xmlHttp_=EpZ(I.JSC$19840_channel_,null),I.JSC$19840_xmlHttp_.send(I.JSC$19840_baseUri_));I.JSC$19840_requestStartTime_=Date.now();qY1(I)}IgQ(this)};
var CCZ=function(I){I.JSC$19859_backChannelRequest_&&(dy8(I),I.JSC$19859_backChannelRequest_.cancel(),I.JSC$19859_backChannelRequest_=null)},ZMa=function(I){CCZ(I);
I.JSC$19859_backChannelTimerId_&&(_.Ft.clearTimeout(I.JSC$19859_backChannelTimerId_),I.JSC$19859_backChannelTimerId_=null);WeQ(I);I.forwardChannelRequestPool_.cancel();I.JSC$19859_forwardChannelTimerId_&&(typeof I.JSC$19859_forwardChannelTimerId_==="number"&&_.Ft.clearTimeout(I.JSC$19859_forwardChannelTimerId_),I.JSC$19859_forwardChannelTimerId_=null)};
us.prototype.getState=function(){return this.state_};
var Vr1=function(I){$y1(I.forwardChannelRequestPool_)||I.JSC$19859_forwardChannelTimerId_||(I.JSC$19859_forwardChannelTimerId_=!0,_.Ia(I.JSC$19861_onStartForwardChannelTimer_,I),I.JSC$19859_forwardChannelRetryCount_=0)},DTy=function(I,y){if(iMR(I.forwardChannelRequestPool_)>=I.forwardChannelRequestPool_.JSC$19850_maxSize_-(I.JSC$19859_forwardChannelTimerId_?1:0))return!1;
if(I.JSC$19859_forwardChannelTimerId_)return I.JSC$19859_channelDebug_.debug("Use the retry request that is already scheduled."),I.JSC$19859_outgoingMaps_=y.JSC$19840_pendingMessages_.concat(I.JSC$19859_outgoingMaps_),!0;if(I.state_==1||I.state_==2||I.JSC$19859_forwardChannelRetryCount_>=(I.JSC$19859_failFast_?0:I.JSC$19859_forwardChannelMaxRetries_))return!1;I.JSC$19859_channelDebug_.debug("Going to retry POST");I.JSC$19859_forwardChannelTimerId_=KeT((0,_.iD)(I.JSC$19861_onStartForwardChannelTimer_,
I,y),ym8(I,I.JSC$19859_forwardChannelRetryCount_));I.JSC$19859_forwardChannelRetryCount_++;return!0};
us.prototype.JSC$19861_onStartForwardChannelTimer_=function(I){if(this.JSC$19859_forwardChannelTimerId_)if(this.JSC$19859_forwardChannelTimerId_=null,this.JSC$19859_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!I){this.JSC$19859_channelDebug_.debug("open_()");this.JSC$19859_nextRid_=Math.floor(Math.random()*1E5);I=this.JSC$19859_nextRid_++;var y=new xN(this,this.JSC$19859_channelDebug_,"",I),D=this.JSC$19859_extraHeaders_;this.initHeaders_&&(D?(D=_.e$.clone(D),_.e$.extend(D,this.initHeaders_)):
D=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(y.JSC$19840_extraHeaders_=D,D=null);var F;if(this.fastHandshake_)a:{for(var R=F=0;R<this.JSC$19859_outgoingMaps_.length;R++){b:{var O=this.JSC$19859_outgoingMaps_[R];if("__data__"in O.map&&(O=O.map.__data__,typeof O==="string")){O=O.length;break b}O=void 0}if(O===void 0)break;F+=O;if(F>4096){F=R;break a}if(F===4096||R===this.JSC$19859_outgoingMaps_.length-1){F=R+1;break a}}F=1E3}else F=1E3;F=Fka(this,y,F);
R=this.JSC$19859_forwardChannelUri_.clone();_.hu(R,"RID",I);_.hu(R,"CVER",22);this.httpSessionIdParam_&&_.hu(R,"X-HTTP-Session-Id",this.httpSessionIdParam_);gpb(this,R);D&&(this.encodeInitMessageHeaders_?F="headers="+_.NC(JKa(D))+"&"+F:this.httpHeadersOverwriteParam_&&wZT(R,this.httpHeadersOverwriteParam_,D));bMG(this.forwardChannelRequestPool_,y);this.blockingHandshake_&&_.hu(R,"TYPE","init");this.fastHandshake_?(_.hu(R,"$req",F),_.hu(R,"SID","null"),y.decodeInitialResponse_=!0,uNo(y,R,null)):uNo(y,
R,F);this.state_=2}}else this.state_==3&&(I?RJT(this,I):this.JSC$19859_outgoingMaps_.length==0?this.JSC$19859_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):$y1(this.forwardChannelRequestPool_)||(RJT(this),this.JSC$19859_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var RJT=function(I,y){var D;y?D=y.JSC$19840_rid_:D=I.JSC$19859_nextRid_++;var F=I.JSC$19859_forwardChannelUri_.clone();_.hu(F,"SID",I.sid_);_.hu(F,"RID",D);_.hu(F,"AID",I.JSC$19859_lastArrayId_);gpb(I,F);I.httpHeadersOverwriteParam_&&I.JSC$19859_extraHeaders_&&wZT(F,I.httpHeadersOverwriteParam_,I.JSC$19859_extraHeaders_);D=new xN(I,I.JSC$19859_channelDebug_,I.sid_,D,I.JSC$19859_forwardChannelRetryCount_+1);I.httpHeadersOverwriteParam_===null&&(D.JSC$19840_extraHeaders_=I.JSC$19859_extraHeaders_);
y&&(I.JSC$19859_outgoingMaps_=y.JSC$19840_pendingMessages_.concat(I.JSC$19859_outgoingMaps_));y=Fka(I,D,1E3);D.setTimeout(Math.round(I.JSC$19859_forwardChannelRequestTimeoutMs_*.5)+Math.round(I.JSC$19859_forwardChannelRequestTimeoutMs_*.5*Math.random()));bMG(I.forwardChannelRequestPool_,D);uNo(D,F,y)},gpb=function(I,y){I.JSC$19859_extraParams_&&_.e$.forEach(I.JSC$19859_extraParams_,function(D,F){_.hu(y,F,D)});
I.handler_&&_.e$.forEach({},function(D,F){_.hu(y,F,D)})},Fka=function(I,y,D){D=Math.min(I.JSC$19859_outgoingMaps_.length,D);
var F=I.handler_?(0,_.iD)(I.handler_.JSC$19865_badMapError,I.handler_,I):null;a:{for(var R=I.JSC$19859_outgoingMaps_,O=-1;;){var w=["count="+D];O==-1?D>0?(O=R[0].JSC$19847_mapId,w.push("ofs="+O)):O=0:w.push("ofs="+O);for(var v=!0,P=0;P<D;P++){var K=R[P].JSC$19847_mapId,r=R[P].map;K-=O;if(K<0)O=Math.max(0,R[P].JSC$19847_mapId-100),v=!1;else try{K="req"+K+"_"||"";try{var N=r instanceof Map?r:Object.entries(r);for(var h=_.J(N),x=h.next();!x.done;x=h.next()){var q=_.J(x.value),X=q.next().value,f=q.next().value,
m=f;_.b_(f)&&(m=(0,_.O7)(f));w.push(K+X+"="+encodeURIComponent(m))}}catch(z){throw w.push(K+"type="+encodeURIComponent("_badmap")),z;}}catch(z){F&&F(r)}}if(v){N=w.join("&");break a}}N=void 0}I=I.JSC$19859_outgoingMaps_.splice(0,D);y.JSC$19840_pendingMessages_=I;return N},OYa=function(I){I.JSC$19859_backChannelRequest_||I.JSC$19859_backChannelTimerId_||(I.JSC$19859_backChannelAttemptId_=1,_.Ia(I.JSC$19861_onStartBackChannelTimer_,I),I.JSC$19859_backChannelRetryCount_=0)},BiG=function(I){if(I.JSC$19859_backChannelRequest_||
I.JSC$19859_backChannelTimerId_||I.JSC$19859_backChannelRetryCount_>=3)return!1;
I.JSC$19859_channelDebug_.debug("Going to retry GET");I.JSC$19859_backChannelAttemptId_++;I.JSC$19859_backChannelTimerId_=KeT((0,_.iD)(I.JSC$19861_onStartBackChannelTimer_,I),ym8(I,I.JSC$19859_backChannelRetryCount_));I.JSC$19859_backChannelRetryCount_++;return!0};
us.prototype.JSC$19861_onStartBackChannelTimer_=function(){this.JSC$19859_backChannelTimerId_=null;LkT(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19859_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19859_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19859_backChannelRequest_+" "+this.handshakeRttMs_);else{var I=4*this.handshakeRttMs_;this.JSC$19859_channelDebug_.info("BP detection timer enabled: "+I);this.bpDetectionTimerId_=KeT((0,_.iD)(this.onBpDetectionTimer_,
this),I)}};
us.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19859_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19859_backChannelRequest_.JSC$19840_xmlHttp_!=null){var I=this.JSC$19859_backChannelRequest_.JSC$19840_xmlHttp_.getResponseText();I&&this.JSC$19859_channelDebug_.warning("Timer should have been cancelled : "+I)}this.JSC$19859_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;tA(10);CCZ(this);LkT(this)}else this.JSC$19859_channelDebug_.warning("Invalid operation.")};
var dy8=function(I){I.bpDetectionTimerId_!=null&&(I.JSC$19859_channelDebug_.debug("Cancel the BP detection timer."),_.Ft.clearTimeout(I.bpDetectionTimerId_),I.bpDetectionTimerId_=null)},LkT=function(I){I.JSC$19859_channelDebug_.debug("Creating new HttpRequest");
I.JSC$19859_backChannelRequest_=new xN(I,I.JSC$19859_channelDebug_,I.sid_,"rpc",I.JSC$19859_backChannelAttemptId_);I.httpHeadersOverwriteParam_===null&&(I.JSC$19859_backChannelRequest_.JSC$19840_extraHeaders_=I.JSC$19859_extraHeaders_);I.JSC$19859_backChannelRequest_.JSC$19840_readyStateChangeThrottleMs_=0;var y=I.JSC$19859_backChannelUri_.clone();_.hu(y,"RID","rpc");_.hu(y,"SID",I.sid_);_.hu(y,"AID",I.JSC$19859_lastArrayId_);_.hu(y,"CI",I.enableStreaming_?"0":"1");!I.enableStreaming_&&I.longPollingTimeout_&&
_.hu(y,"TO",I.longPollingTimeout_);_.hu(y,"TYPE","xmlhttp");gpb(I,y);I.httpHeadersOverwriteParam_&&I.JSC$19859_extraHeaders_&&wZT(y,I.httpHeadersOverwriteParam_,I.JSC$19859_extraHeaders_);I.backChannelRequestTimeoutMs_&&I.JSC$19859_backChannelRequest_.setTimeout(I.backChannelRequestTimeoutMs_);var D=I.JSC$19859_backChannelRequest_,F=I.JSC$19859_hostPrefix_;D.JSC$19840_type_=1;D.JSC$19840_baseUri_=_.M2(y.clone());D.JSC$19840_postData_=null;D.decodeChunks_=!0;l8a(D,F);I.JSC$19859_channelDebug_.debug("New Request created")};
us.prototype.JSC$19861_onBackChannelDead_=function(){this.JSC$19859_deadBackChannelTimerId_!=null&&(this.JSC$19859_deadBackChannelTimerId_=null,CCZ(this),BiG(this),tA(19))};
var WeQ=function(I){I.JSC$19859_deadBackChannelTimerId_!=null&&(_.Ft.clearTimeout(I.JSC$19859_deadBackChannelTimerId_),I.JSC$19859_deadBackChannelTimerId_=null)},Mr8=function(I,y){I.JSC$19859_channelDebug_.debug("Request complete");
var D=null;if(I.JSC$19859_backChannelRequest_==y){WeQ(I);dy8(I);I.JSC$19859_backChannelRequest_=null;var F=2}else if(c2g(I.forwardChannelRequestPool_,y))D=y.JSC$19840_pendingMessages_,HMa(I.forwardChannelRequestPool_,y),F=1;else return;if(I.state_!=0)if(y.JSC$19840_successful_)F==1?(PCy(y.JSC$19840_postData_?y.JSC$19840_postData_.length:0,Date.now()-y.JSC$19840_requestStartTime_,I.JSC$19859_forwardChannelRetryCount_),Vr1(I)):OYa(I);else{var R=y.JSC$19840_lastStatusCode_,O=y.getLastError();if(O==3||
O==0&&R>0)I.JSC$19859_channelDebug_.debug("Not retrying due to error type"),R>200&&(I.errorResponseStatusCode_=y.JSC$19840_lastStatusCode_);else{I.JSC$19859_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Ni1(O,I.errorResponseStatusCode_)});
if(F==1&&DTy(I,y)||F==2&&BiG(I))return;I.JSC$19859_channelDebug_.debug("Exceeded max number of retries")}D&&D.length>0&&Tiy(I.forwardChannelRequestPool_,D);I.JSC$19859_channelDebug_.debug("Error: HTTP request failed");switch(O){case 1:U9(I,5);break;case 4:U9(I,10);break;case 3:U9(I,6);break;default:U9(I,2)}}},ym8=function(I,y){var D=I.JSC$19859_baseRetryDelayMs_+Math.floor(Math.random()*I.JSC$19859_retryDelaySeedMs_);
I.isActive()||(I.JSC$19859_channelDebug_.debug("Inactive channel"),D*=2);return D*y};
us.prototype.onInput_=function(I,y){for(var D=0;D<I.length;D++){var F=I[D],R=F[0];if(R<=this.JSC$19859_lastArrayId_)this.JSC$19859_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+R+", lastArrayId: "+this.JSC$19859_lastArrayId_);else if(R>this.JSC$19859_lastArrayId_+1&&this.JSC$19859_lastArrayId_>-1&&this.JSC$19859_channelDebug_.warning("Received non-consecutive message with arrayId: "+R+", lastArrayId: "+this.JSC$19859_lastArrayId_),this.JSC$19859_lastArrayId_=R,
F=F[1],this.state_==2)if(F[0]=="c"){this.sid_=F[1];this.JSC$19859_hostPrefix_=F[2];R=F[3];R!=null&&(this.JSC$19861_channelVersion_=R,this.JSC$19859_channelDebug_.info("VER="+this.JSC$19861_channelVersion_));R=F[4];R!=null&&(this.serverVersion_=R,this.JSC$19859_channelDebug_.info("SVER="+this.serverVersion_));F=F[5];F!=null&&typeof F==="number"&&F>0&&(this.backChannelRequestTimeoutMs_=F*=1.5,this.JSC$19859_channelDebug_.info("backChannelRequestTimeoutMs_="+F));if(F=y.JSC$19840_xmlHttp_){var O=NHT(F,
"X-Client-Wire-Protocol");O&&(R=this.forwardChannelRequestPool_,!R.requestPool_&&(_.SW(O,"spdy")||_.SW(O,"quic")||_.SW(O,"h2"))&&(R.JSC$19850_maxSize_=R.maxPoolSizeConfigured_,R.requestPool_=new Set,R.JSC$19850_request_&&(bMG(R,R.JSC$19850_request_),R.JSC$19850_request_=null)));this.httpSessionIdParam_&&((F=NHT(F,"X-HTTP-Session-Id"))?(this.httpSessionId_=F,_.hu(this.JSC$19859_forwardChannelUri_,this.httpSessionIdParam_,F)):this.JSC$19859_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19865_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-y.JSC$19840_requestStartTime_,this.JSC$19859_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));F=y;R=smR(this,this.JSC$19859_supportsCrossDomainXhrs_?this.JSC$19859_hostPrefix_:null,this.JSC$19859_path_);this.JSC$19859_channelDebug_.debug("GetBackChannelUri: "+R);this.JSC$19859_backChannelUri_=R;F.initialResponseDecoded_?(this.JSC$19859_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
HMa(this.forwardChannelRequestPool_,F),R=F,(O=this.backChannelRequestTimeoutMs_)&&R.setTimeout(O),R.JSC$19840_watchDogTimerId_&&(QmZ(R),qY1(R)),this.JSC$19859_backChannelRequest_=F):OYa(this);this.JSC$19859_outgoingMaps_.length>0&&Vr1(this)}else F[0]!="stop"&&F[0]!="close"||U9(this,7);else this.state_==3&&(F[0]=="stop"||F[0]=="close"?F[0]=="stop"?U9(this,7):this.disconnect():F[0]!="noop"&&this.handler_&&this.handler_.JSC$19865_channelHandleArray(F),this.JSC$19859_backChannelRetryCount_=0)}};
var U9=function(I,y){I.JSC$19859_channelDebug_.info("Error code "+y);if(y==2){var D=(0,_.iD)(I.testNetworkCallback_,I),F=I.networkTestUrl_,R=!F;F=new _.Pg(F||"//www.google.com/images/cleardot.gif");_.Ft.location&&_.Ft.location.protocol=="http"||_.E7(F,"https");_.M2(F);R?$PG(F.toString(),D):b0R(F.toString(),D)}else tA(2);I.onError_(y)};
us.prototype.testNetworkCallback_=function(I){I?(this.JSC$19859_channelDebug_.info("Successfully pinged google.com"),tA(2)):(this.JSC$19859_channelDebug_.info("Failed to ping google.com"),tA(1))};
us.prototype.onError_=function(I){this.JSC$19859_channelDebug_.debug("HttpChannel: error - "+I);this.state_=0;this.handler_&&this.handler_.JSC$19865_channelError(I);IgQ(this);ZMa(this)};
var IgQ=function(I){I.state_=0;I.nonAckedMapsAtChannelClose_=[];if(I.handler_){var y=eQa(I.forwardChannelRequestPool_);if(y.length!=0||I.JSC$19859_outgoingMaps_.length!=0)I.JSC$19859_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+y.length+", outgoing: "+I.JSC$19859_outgoingMaps_.length}),_.AL(I.nonAckedMapsAtChannelClose_,y),_.AL(I.nonAckedMapsAtChannelClose_,I.JSC$19859_outgoingMaps_),I.forwardChannelRequestPool_.JSC$19850_pendingMessages_.length=0,_.C5(I.JSC$19859_outgoingMaps_),
I.JSC$19859_outgoingMaps_.length=0;
I.handler_.JSC$19865_channelClosed()}},JmR=function(I){if(I.state_==0)return I.nonAckedMapsAtChannelClose_;
var y=[];_.AL(y,eQa(I.forwardChannelRequestPool_));_.AL(y,I.JSC$19859_outgoingMaps_);return y},smR=function(I,y,D){var F=_.ob(D);
F.JSC$10308_domain_!=""?(y&&_.GM(F,y+"."+F.JSC$10308_domain_),_.XI(F,F.JSC$10308_port_)):(F=_.Ft.location,F=mja(F.protocol,y?y+"."+F.hostname:F.hostname,+F.port,D));y=I.httpSessionIdParam_;D=I.httpSessionId_;y&&D&&_.hu(F,y,D);_.hu(F,"VER",I.JSC$19861_channelVersion_);gpb(I,F);return F},EpZ=function(I,y,D){if(y&&!I.JSC$19859_supportsCrossDomainXhrs_)throw Error("Pk");
y=I.usesFetchStreams_&&!I.JSC$19859_xmlHttpFactory_?new _.L9(new F6Y({streamBinaryChunks:D})):new _.L9(I.JSC$19859_xmlHttpFactory_);y.JSC$10072_withCredentials_=I.JSC$19859_supportsCrossDomainXhrs_;return y};
us.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var w9a=function(){};
_.L=w9a.prototype;_.L.JSC$19865_channelOpened=function(){};
_.L.JSC$19865_channelHandleArray=function(){};
_.L.JSC$19865_channelError=function(){};
_.L.JSC$19865_channelClosed=function(){};
_.L.isActive=function(){return!0};
_.L.JSC$19865_badMapError=function(){};var jK=function(I,y){_.Zw.call(this);this.JSC$19868_channel_=new us(y);this.JSC$19868_url_=I;this.messageUrlParams_=y&&y.messageUrlParams||null;I=y&&y.messageHeaders||null;y&&y.clientProtocolHeaderRequired&&(I?_.e$.set(I,"X-Client-Protocol","webchannel"):I=_.e$.create("X-Client-Protocol","webchannel"));this.JSC$19868_channel_.JSC$19859_extraHeaders_=I;I=y&&y.initMessageHeaders||null;y&&y.messageContentType&&(I?_.e$.set(I,"X-WebChannel-Content-Type",y.messageContentType):I=_.e$.create("X-WebChannel-Content-Type",
y.messageContentType));y&&y.clientProfile&&(I?_.e$.set(I,"X-WebChannel-Client-Profile",y.clientProfile):I=_.e$.create("X-WebChannel-Client-Profile",y.clientProfile));this.JSC$19868_channel_.initHeaders_=I;(I=y&&y.httpHeadersOverwriteParam)&&!_.wq(I)&&(this.JSC$19868_channel_.httpHeadersOverwriteParam_=I);this.supportsCrossDomainXhr_=y&&y.supportsCrossDomainXhr||!1;this.sendRawJson_=y&&y.sendRawJson||!1;(y=y&&y.httpSessionIdParam)&&!_.wq(y)&&(this.JSC$19868_channel_.httpSessionIdParam_=y,_.e$.containsKey(this.messageUrlParams_,
y)&&_.e$.remove(this.messageUrlParams_,y));this.channelHandler_=new rk(this)};
_.EI(jK,_.Zw);jK.prototype.open=function(){this.JSC$19868_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19868_channel_.JSC$19859_supportsCrossDomainXhrs_=!0);this.JSC$19868_channel_.connect(this.JSC$19868_url_,this.messageUrlParams_||void 0)};
jK.prototype.close=function(){this.JSC$19868_channel_.disconnect()};
jK.prototype.send=function(I){var y=this.JSC$19868_channel_;if(typeof I==="string"){var D={};D.__data__=I;I=D}else this.sendRawJson_&&(D={},D.__data__=(0,_.O7)(I),I=D);y.JSC$19859_outgoingMaps_.push(new A2G(y.JSC$19859_nextMapId_++,I));y.state_==3&&Vr1(y)};
jK.prototype.disposeInternal=function(){this.JSC$19868_channel_.handler_=null;delete this.channelHandler_;this.JSC$19868_channel_.disconnect();delete this.JSC$19868_channel_;jK.superClass_.disposeInternal.call(this)};
var v3e=function(I){RQg.call(this);I.__headers__&&(this.headers=I.__headers__,this.statusCode=I.__status__,delete I.__headers__,delete I.__status__);var y=I.__sm__;y?this.data=(this.metadataKey=_.e$.getAnyKey(y))?_.e$.get(y,this.metadataKey):y:this.data=I};
_.EI(v3e,RQg);var SyG=function(I){OMa.call(this);this.status=1;this.errorCode=I};
_.EI(SyG,OMa);var rk=function(I){this.JSC$19875_channel_=I};
_.EI(rk,w9a);rk.prototype.JSC$19865_channelOpened=function(){this.JSC$19875_channel_.dispatchEvent("w")};
rk.prototype.JSC$19865_channelHandleArray=function(I){this.JSC$19875_channel_.dispatchEvent(new v3e(I))};
rk.prototype.JSC$19865_channelError=function(I){this.JSC$19875_channel_.dispatchEvent(new SyG(I))};
rk.prototype.JSC$19865_channelClosed=function(){this.JSC$19875_channel_.dispatchEvent("x")};
var txa=function(I,y){this.transportChannel_=I;this.JSC$19878_channel_=y},PqY=function(I){return JmR(I.JSC$19878_channel_).map(function(y){var D=I.transportChannel_;
y=y.map;"__data__"in y?(y=y.__data__,D=D.sendRawJson_?(0,_.vf_)(y):y):D=y;return D})};
txa.prototype.commit=function(I){this.JSC$19878_channel_.forwardChannelFlushedCallback_=I};var Kke=function(I,y,D){for(var F=0;F<I.getSize().height;F++)for(var R=0;R<I.getSize().width;R++)y.call(D,I.array_[F][R],F,R,I)},UTb=function(I,y){var D=new q9(I.getSize());
Kke(I,function(F,R,O){D.array_[R][O]=y.call(void 0,F,R,O,I)});
return D},Z0b=function(I,y){for(var D=[],F=0;F<I;F++){D[F]=[];
for(var R=0;R<y;R++)D[F][R]=0}return D};
q9.prototype.add=function(I){if(!E_g(this.size_,I.getSize()))throw Error("Sk");return UTb(this,function(y,D,F){return y+I.array_[D][F]})};
q9.prototype.equals=function(I,y){if(this.size_.width!=I.size_.width||this.size_.height!=I.size_.height)return!1;y=y||0;for(var D=0;D<this.size_.height;D++)for(var F=0;F<this.size_.width;F++)if(!qsg(this.array_[D][F],I.array_[D][F],y))return!1;return!0};
q9.prototype.getSize=function(){return this.size_};
var o3=function(I,y,D){return y>=0&&y<I.size_.height&&D>=0&&D<I.size_.width?I.array_[y][D]:null};
q9.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var rmZ=function(I,y,D,F){if(!(y>=0&&y<I.size_.height&&D>=0&&D<I.size_.width))throw Error("Tk`"+y+"`"+D+"`"+I.size_.height+"`"+I.size_.width);I.array_[y][D]=F};
q9.prototype.multiply=function(I){if(I instanceof q9){if(this.size_.width!=I.getSize().height)throw Error("Uk");return jt8(this,I)}if(typeof I==="number")return o3o(this,I);throw Error("Vk");};
var jt8=function(I,y){var D=new q9(I.size_.height,y.getSize().width);Kke(D,function(F,R,O){for(var w=F=0;w<this.size_.width;w++)F+=o3(this,R,w)*o3(y,w,O);rmZ(D,R,O,F)},I);
return D},o3o=function(I,y){return UTb(I,function(D){return D*y})};var Ns=function(I){NQe.dispatchEvent(new hJa(NQe,I))},NQe=new _.Zw,hJa=function(I,y){_.uS.call(this,"statevent",I);
this.stat=y};
_.E(hJa,_.uS);var hA=function(I,y,D,F,R){this.JSC$19886_channel_=I;this.JSC$19886_channelDebug_=y;this.sid_=D;this.JSC$19886_rid_=F;this.JSC$19886_retryId_=R||1;this.timeout_=45E3;this.JSC$19886_eventHandler_=new _.H5(this);this.pollingTimer_=new _.eT;this.pollingTimer_.setInterval(250)};
_.L=hA.prototype;_.L.JSC$19888_extraHeaders_=null;_.L.JSC$19888_successful_=!1;_.L.JSC$19888_watchDogTimerId_=null;_.L.JSC$19888_watchDogTimeoutTime_=null;_.L.JSC$19888_requestStartTime_=null;_.L.JSC$19888_type_=null;_.L.JSC$19888_baseUri_=null;_.L.JSC$19888_requestUri_=null;_.L.JSC$19888_postData_=null;_.L.JSC$19888_xmlHttp_=null;_.L.JSC$19888_xmlHttpChunkStart_=0;_.L.trident_=null;_.L.JSC$19888_verb_=null;_.L.JSC$19888_lastError_=null;_.L.JSC$19888_lastStatusCode_=-1;_.L.sendClose_=!0;
_.L.JSC$19888_cancelled_=!1;_.L.JSC$19888_readyStateChangeThrottleMs_=0;_.L.JSC$19888_readyStateChangeThrottle_=null;var xTG=function(I,y){switch(I){case 0:return"Non-200 return code ("+y+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},lgo={},uXo={};
hA.prototype.setTimeout=function(I){this.timeout_=I};
var E3a=function(I,y,D){I.JSC$19888_type_=1;I.JSC$19888_baseUri_=_.M2(y.clone());I.JSC$19888_postData_=D;I.decodeChunks_=!0;qya(I,null)},G2Q=function(I,y,D,F,R){I.JSC$19888_type_=1;
I.JSC$19888_baseUri_=_.M2(y.clone());I.JSC$19888_postData_=null;I.decodeChunks_=D;R&&(I.sendClose_=!1);qya(I,F)},qya=function(I,y){I.JSC$19888_requestStartTime_=Date.now();
X9g(I);I.JSC$19888_requestUri_=I.JSC$19888_baseUri_.clone();Pbg(I.JSC$19888_requestUri_,"t",I.JSC$19886_retryId_);I.JSC$19888_xmlHttpChunkStart_=0;I.JSC$19888_xmlHttp_=I.JSC$19886_channel_.JSC$19895_createXhrIo(I.JSC$19886_channel_.JSC$19895_shouldUseSecondaryDomains()?y:null);I.JSC$19888_readyStateChangeThrottleMs_>0&&(I.JSC$19888_readyStateChangeThrottle_=new _.n4((0,_.iD)(I.JSC$19888_xmlHttpHandler_,I,I.JSC$19888_xmlHttp_),I.JSC$19888_readyStateChangeThrottleMs_));I.JSC$19886_eventHandler_.listen(I.JSC$19888_xmlHttp_,
"readystatechange",I.JSC$19888_readyStateChangeHandler_);y=I.JSC$19888_extraHeaders_?_.e$.clone(I.JSC$19888_extraHeaders_):{};I.JSC$19888_postData_?(I.JSC$19888_verb_="POST",y["Content-Type"]="application/x-www-form-urlencoded",I.JSC$19888_xmlHttp_.send(I.JSC$19888_requestUri_,I.JSC$19888_verb_,I.JSC$19888_postData_,y)):(I.JSC$19888_verb_="GET",I.sendClose_&&!_.cr&&(y.Connection="close"),I.JSC$19888_xmlHttp_.send(I.JSC$19888_requestUri_,I.JSC$19888_verb_,null,y));I.JSC$19886_channel_.notifyServerReachabilityEvent(1);
y=I.JSC$19886_channelDebug_;var D=I.JSC$19888_postData_;if(D){var F="";D=D.split("&");for(var R=0;R<D.length;R++){var O=D[R].split("=");if(O.length>1){var w=O[0];O=O[1];var v=w.split("_");F=v.length>=2&&v[1]=="type"?F+(w+"="+O+"&"):F+(w+"=redacted&")}}}else F=null;y.info("XMLHTTP REQ ("+I.JSC$19886_rid_+") [attempt "+I.JSC$19886_retryId_+"]: "+I.JSC$19888_verb_+"\n"+I.JSC$19888_requestUri_+"\n"+F)};
hA.prototype.JSC$19888_readyStateChangeHandler_=function(I){I=I.target;var y=this.JSC$19888_readyStateChangeThrottle_;y&&_.Jd(I)==3?(this.JSC$19886_channelDebug_.debug("Throttling readystatechange."),y.fire()):this.JSC$19888_xmlHttpHandler_(I)};
hA.prototype.JSC$19888_xmlHttpHandler_=function(I){try{if(I==this.JSC$19888_xmlHttp_)a:{var y=_.Jd(this.JSC$19888_xmlHttp_),D=this.JSC$19888_xmlHttp_.JSC$10072_lastErrorCode_,F=this.JSC$19888_xmlHttp_.getStatus();if(_.cr&&!_.nz("420+")){if(y<4)break a}else if(y<3||y==3&&!this.JSC$19888_xmlHttp_.getResponseText())break a;this.JSC$19888_cancelled_||y!=4||D==7||(D==8||F<=0?this.JSC$19886_channel_.notifyServerReachabilityEvent(3):this.JSC$19886_channel_.notifyServerReachabilityEvent(2));Qto(this);var R=
this.JSC$19888_xmlHttp_.getStatus();this.JSC$19888_lastStatusCode_=R;var O=this.JSC$19888_xmlHttp_.getResponseText();O||this.JSC$19886_channelDebug_.debug("No response text for uri "+this.JSC$19888_requestUri_+" status "+R);this.JSC$19888_successful_=R==200;this.JSC$19886_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19886_rid_+") [ attempt "+this.JSC$19886_retryId_+"]: "+this.JSC$19888_verb_+"\n"+this.JSC$19888_requestUri_+"\n"+y+" "+R);if(this.JSC$19888_successful_){y==4&&Yy8(this);if(this.decodeChunks_){for(I=
!0;!this.JSC$19888_cancelled_&&this.JSC$19888_xmlHttpChunkStart_<O.length;){var w=fgC(this,O);if(w==uXo){y==4&&(this.JSC$19888_lastError_=4,Ns(15),I=!1);n3y(this.JSC$19886_channelDebug_,this.JSC$19886_rid_,null,"[Incomplete Response]");break}else if(w==lgo){this.JSC$19888_lastError_=4;Ns(16);n3y(this.JSC$19886_channelDebug_,this.JSC$19886_rid_,O,"[Invalid Chunk]");I=!1;break}else n3y(this.JSC$19886_channelDebug_,this.JSC$19886_rid_,w,null),p9R(this,w)}y==4&&O.length==0&&(this.JSC$19888_lastError_=
1,Ns(17),I=!1);this.JSC$19888_successful_=this.JSC$19888_successful_&&I;I||(n3y(this.JSC$19886_channelDebug_,this.JSC$19886_rid_,O,"[Invalid Chunked Response]"),Yy8(this),mTT(this))}else n3y(this.JSC$19886_channelDebug_,this.JSC$19886_rid_,O,null),p9R(this,O);this.JSC$19888_successful_&&!this.JSC$19888_cancelled_&&(y==4?this.JSC$19886_channel_.JSC$19895_onRequestComplete(this):(this.JSC$19888_successful_=!1,X9g(this)))}else R==400&&O.indexOf("Unknown SID")>0?(this.JSC$19888_lastError_=3,Ns(13),this.JSC$19886_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19886_rid_+")")):(this.JSC$19888_lastError_=0,Ns(14),this.JSC$19886_channelDebug_.warning("XMLHTTP Bad status "+R+" ("+this.JSC$19886_rid_+")")),Yy8(this),mTT(this)}else this.JSC$19886_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(v){this.JSC$19886_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var fgC=function(I,y){var D=I.JSC$19888_xmlHttpChunkStart_,F=y.indexOf("\n",D);if(F==-1)return uXo;D=Number(y.substring(D,F));if(isNaN(D))return lgo;F+=1;if(F+D>y.length)return uXo;y=y.slice(F,F+D);I.JSC$19888_xmlHttpChunkStart_=F+D;return y};
hA.prototype.cancel=function(){this.JSC$19888_cancelled_=!0;Yy8(this)};
var X9g=function(I){I.JSC$19888_watchDogTimeoutTime_=Date.now()+I.timeout_;Mx1(I,I.timeout_)},Mx1=function(I,y){if(I.JSC$19888_watchDogTimerId_!=null)throw Error("Ok");
I.JSC$19888_watchDogTimerId_=EB((0,_.iD)(I.JSC$19888_onWatchDogTimeout_,I),y)},Qto=function(I){I.JSC$19888_watchDogTimerId_&&(_.Ft.clearTimeout(I.JSC$19888_watchDogTimerId_),I.JSC$19888_watchDogTimerId_=null)};
hA.prototype.JSC$19888_onWatchDogTimeout_=function(){this.JSC$19888_watchDogTimerId_=null;var I=Date.now();I-this.JSC$19888_watchDogTimeoutTime_>=0?(this.JSC$19886_channelDebug_.info("TIMEOUT: "+this.JSC$19888_requestUri_),this.JSC$19888_type_!=2&&this.JSC$19886_channel_.notifyServerReachabilityEvent(3),Yy8(this),this.JSC$19888_lastError_=2,Ns(18),mTT(this)):(this.JSC$19886_channelDebug_.warning("WatchDog timer called too early"),Mx1(this,this.JSC$19888_watchDogTimeoutTime_-I))};
var mTT=function(I){I.JSC$19886_channel_.JSC$19895_isClosed()||I.JSC$19888_cancelled_||I.JSC$19886_channel_.JSC$19895_onRequestComplete(I)},Yy8=function(I){Qto(I);
_.rM(I.JSC$19888_readyStateChangeThrottle_);I.JSC$19888_readyStateChangeThrottle_=null;I.pollingTimer_.stop();I.JSC$19886_eventHandler_.removeAll();if(I.JSC$19888_xmlHttp_){var y=I.JSC$19888_xmlHttp_;I.JSC$19888_xmlHttp_=null;y.abort();y.dispose()}I.trident_&&(I.trident_=null)};
hA.prototype.getLastError=function(){return this.JSC$19888_lastError_};
var p9R=function(I,y){try{I.JSC$19886_channel_.JSC$19895_onRequestData(I,y),I.JSC$19886_channel_.notifyServerReachabilityEvent(4)}catch(D){}};var n3y=function(I,y,D,F){var R=I.info;a:if(D&&D!="y2f%"){try{var O=JSON.parse(D);if(O)for(var w=0;w<O.length;w++)if(Array.isArray(O[w])){var v=O[w];if(!(v.length<2)){var P=v[1];if(Array.isArray(P)&&!(P.length<1)){var K=P[0];if(K!="noop"&&K!="stop")for(var r=1;r<P.length;r++)P[r]=""}}}var N=(0,_.O7)(O);break a}catch(h){I.debug("Exception parsing expected JS array - probably was not JS");N=D;break a}N=void 0}else N=D;R.call(I,"XMLHTTP TEXT ("+y+"): "+N+(F?" "+F:""))};
Gb.prototype.debug=function(I){this.info(I)};
Gb.prototype.info=function(){};
Gb.prototype.warning=function(){};var zJo=function(I,y){this.JSC$19893_channel_=I;this.JSC$19893_channelDebug_=y;this.JSC$19893_parser_=new H0e};
_.L=zJo.prototype;_.L.JSC$19895_extraHeaders_=null;_.L.JSC$19895_request_=null;_.L.receivedIntermediateResult_=!1;_.L.JSC$19895_path_=null;_.L.state_=null;_.L.JSC$19895_lastStatusCode_=-1;_.L.JSC$19895_hostPrefix_=null;_.L.blockedPrefix_=null;
_.L.connect=function(I){this.JSC$19895_path_=I;I=k2b(this.JSC$19893_channel_,this.JSC$19895_path_);Ns(3);Date.now();var y=this.JSC$19893_channel_.firstTestResults_;y!=null?(this.JSC$19895_hostPrefix_=y[0],(this.blockedPrefix_=y[1])?(this.state_=1,dTR(this)):(this.state_=2,agy(this))):(Pbg(I,"MODE","init"),this.JSC$19895_request_=new hA(this,this.JSC$19893_channelDebug_),this.JSC$19895_request_.JSC$19888_extraHeaders_=this.JSC$19895_extraHeaders_,G2Q(this.JSC$19895_request_,I,!1,null,!0),this.state_=
0)};
var dTR=function(I){var y=cmo(I.JSC$19893_channel_,I.blockedPrefix_,"/mail/images/cleardot.gif");_.M2(y);IN1(y.toString(),5E3,(0,_.iD)(I.checkBlockedCallback_,I),3,2E3);I.notifyServerReachabilityEvent(1)};
zJo.prototype.checkBlockedCallback_=function(I){if(I)this.state_=2,agy(this);else{Ns(4);var y=this.JSC$19893_channel_;y.JSC$19896_channelDebug_.debug("Test Connection Blocked");y.JSC$19900_lastStatusCode_=y.connectionTest_.JSC$19895_lastStatusCode_;xV(y,9)}I&&this.notifyServerReachabilityEvent(2)};
var agy=function(I){I.JSC$19893_channelDebug_.debug("TestConnection: starting stage 2");var y=I.JSC$19893_channel_.secondTestResults_;y!=null?(I.JSC$19893_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+y?"Buffered":"Unbuffered"),Ns(5),y?(Ns(11),Wka(I.JSC$19893_channel_,I,!1)):(Ns(12),Wka(I.JSC$19893_channel_,I,!0))):(I.JSC$19895_request_=new hA(I,I.JSC$19893_channelDebug_),I.JSC$19895_request_.JSC$19888_extraHeaders_=I.JSC$19895_extraHeaders_,y=CqY(I.JSC$19893_channel_,
I.JSC$19895_hostPrefix_,I.JSC$19895_path_),Ns(5),Pbg(y,"TYPE","xmlhttp"),G2Q(I.JSC$19895_request_,y,!1,I.JSC$19895_hostPrefix_,!1))};
_.L=zJo.prototype;_.L.JSC$19895_createXhrIo=function(I){return this.JSC$19893_channel_.JSC$19895_createXhrIo(I)};
_.L.abort=function(){this.JSC$19895_request_&&(this.JSC$19895_request_.cancel(),this.JSC$19895_request_=null);this.JSC$19895_lastStatusCode_=-1};
_.L.JSC$19895_isClosed=function(){return!1};
_.L.JSC$19895_onRequestData=function(I,y){this.JSC$19895_lastStatusCode_=I.JSC$19888_lastStatusCode_;if(this.state_==0)if(this.JSC$19893_channelDebug_.debug("TestConnection: Got data for stage 1"),y){try{var D=this.JSC$19893_parser_.parse(y)}catch(F){BQb(this.JSC$19893_channel_,this);return}this.JSC$19895_hostPrefix_=D[0];this.blockedPrefix_=D[1]}else this.JSC$19893_channelDebug_.debug("TestConnection: Null responseText"),BQb(this.JSC$19893_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Ns(7),Date.now()):y=="11111"?(Ns(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19895_lastStatusCode_=200,this.JSC$19895_request_.cancel(),this.JSC$19893_channelDebug_.debug("Test connection succeeded; using streaming connection"),Ns(12),Wka(this.JSC$19893_channel_,this,!0)):(Ns(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.L.JSC$19895_onRequestComplete=function(){this.JSC$19895_lastStatusCode_=this.JSC$19895_request_.JSC$19888_lastStatusCode_;this.JSC$19895_request_.JSC$19888_successful_?this.state_==0?(this.JSC$19893_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,dTR(this)):(this.state_=2,agy(this))):this.state_==2&&(this.JSC$19893_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19893_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Ns(12),Wka(this.JSC$19893_channel_,this,!0)):(this.JSC$19893_channelDebug_.debug("Test connection failed; not using streaming"),Ns(11),Wka(this.JSC$19893_channel_,this,!1))):(this.JSC$19893_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Ns(9):this.state_==2&&Ns(10),BQb(this.JSC$19893_channel_,this,this.JSC$19895_request_.getLastError()))};
_.L.JSC$19895_shouldUseSecondaryDomains=function(){return this.JSC$19893_channel_.JSC$19895_shouldUseSecondaryDomains()};
_.L.isActive=function(){return this.JSC$19893_channel_.isActive()};
_.L.notifyServerReachabilityEvent=function(I){this.JSC$19893_channel_.notifyServerReachabilityEvent(I)};var l2=function(I,y,D){this.state_=1;this.JSC$19896_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19896_channelDebug_=new Gb;this.JSC$19896_parser_=new H0e;this.firstTestResults_=I||null;this.secondTestResults_=y!=null?y:null;this.asyncTest_=D||!1},iYC=function(I,y){this.JSC$19898_mapId=I;
this.map=y;this.context=null};
_.L=l2.prototype;_.L.JSC$19900_extraHeaders_=null;_.L.JSC$19900_extraParams_=null;_.L.forwardChannelRequest_=null;_.L.JSC$19900_backChannelRequest_=null;_.L.JSC$19900_path_=null;_.L.JSC$19900_forwardChannelUri_=null;_.L.JSC$19900_backChannelUri_=null;_.L.JSC$19900_hostPrefix_=null;_.L.JSC$19900_nextRid_=0;_.L.JSC$19900_nextMapId_=0;_.L.handler_=null;_.L.JSC$19900_forwardChannelTimerId_=null;_.L.JSC$19900_backChannelTimerId_=null;_.L.JSC$19900_deadBackChannelTimerId_=null;_.L.connectionTest_=null;
_.L.useChunked_=null;_.L.JSC$19900_lastArrayId_=-1;_.L.JSC$19900_lastPostResponseArrayId_=-1;_.L.JSC$19900_lastStatusCode_=-1;_.L.JSC$19900_forwardChannelRetryCount_=0;_.L.JSC$19900_backChannelRetryCount_=0;_.L.JSC$19900_channelVersion_=8;var Ama={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},$To=function(I,y,D,F){_.uS.call(this,"timingevent",I);this.size=y;this.rtt=D;this.retries=F};
_.EI($To,_.uS);var bYG=function(I){_.uS.call(this,"serverreachability",I)};
_.EI(bYG,_.uS);l2.prototype.connect=function(I,y,D,F,R){this.JSC$19896_channelDebug_.debug("connect()");Ns(0);this.JSC$19900_path_=y;this.JSC$19900_extraParams_=D||{};F&&R!==void 0&&(this.JSC$19900_extraParams_.OSID=F,this.JSC$19900_extraParams_.OAID=R);this.asyncTest_?(EB((0,_.iD)(this.connectTest_,this,I),100),HYR(this)):this.connectTest_(I)};
l2.prototype.disconnect=function(){this.JSC$19896_channelDebug_.debug("disconnect()");eJY(this);if(this.state_==3){var I=this.JSC$19900_nextRid_++,y=this.JSC$19900_forwardChannelUri_.clone();_.hu(y,"SID",this.sid_);_.hu(y,"RID",I);_.hu(y,"TYPE","terminate");TQZ(this,y);I=new hA(this,this.JSC$19896_channelDebug_,this.sid_,I);I.JSC$19888_type_=2;I.JSC$19888_baseUri_=_.M2(y.clone());(new Image).src=I.JSC$19888_baseUri_.toString();I.JSC$19888_requestStartTime_=Date.now();X9g(I)}stR(this)};
l2.prototype.connectTest_=function(I){this.JSC$19896_channelDebug_.debug("connectTest_()");this.connectionTest_=new zJo(this,this.JSC$19896_channelDebug_);this.connectionTest_.JSC$19895_extraHeaders_=this.JSC$19900_extraHeaders_;this.connectionTest_.JSC$19893_parser_=this.JSC$19896_parser_;this.connectionTest_.connect(I)};
var HYR=function(I){I.JSC$19896_channelDebug_.debug("connectChannel_()");I.JSC$19900_ensureInState_(1,0);I.JSC$19900_forwardChannelUri_=k2b(I,I.JSC$19900_path_);Vxo(I)},eJY=function(I){I.connectionTest_&&(I.connectionTest_.abort(),I.connectionTest_=null);
I.JSC$19900_backChannelRequest_&&(I.JSC$19900_backChannelRequest_.cancel(),I.JSC$19900_backChannelRequest_=null);I.JSC$19900_backChannelTimerId_&&(_.Ft.clearTimeout(I.JSC$19900_backChannelTimerId_),I.JSC$19900_backChannelTimerId_=null);ZYT(I);I.forwardChannelRequest_&&(I.forwardChannelRequest_.cancel(),I.forwardChannelRequest_=null);I.JSC$19900_forwardChannelTimerId_&&(_.Ft.clearTimeout(I.JSC$19900_forwardChannelTimerId_),I.JSC$19900_forwardChannelTimerId_=null)},g3g=function(I,y){if(I.state_==0)throw Error("Wk");
I.JSC$19896_outgoingMaps_.length==1E3&&I.JSC$19896_parser_.stringify(y);I.JSC$19896_outgoingMaps_.push(new iYC(I.JSC$19900_nextMapId_++,y));I.state_!=2&&I.state_!=3||Vxo(I)};
l2.prototype.JSC$19895_isClosed=function(){return this.state_==0};
l2.prototype.getState=function(){return this.state_};
var Vxo=function(I){I.forwardChannelRequest_||I.JSC$19900_forwardChannelTimerId_||(I.JSC$19900_forwardChannelTimerId_=EB((0,_.iD)(I.JSC$19900_onStartForwardChannelTimer_,I),0),I.JSC$19900_forwardChannelRetryCount_=0)};
l2.prototype.JSC$19900_onStartForwardChannelTimer_=function(I){this.JSC$19900_forwardChannelTimerId_=null;IWQ(this,I)};
var IWQ=function(I,y){I.JSC$19896_channelDebug_.debug("startForwardChannel_");if(I.state_==1){if(!y){I.JSC$19896_channelDebug_.debug("open_()");I.JSC$19900_nextRid_=Math.floor(Math.random()*1E5);y=I.JSC$19900_nextRid_++;var D=new hA(I,I.JSC$19896_channelDebug_,"",y);D.JSC$19888_extraHeaders_=I.JSC$19900_extraHeaders_;var F=yle(I),R=I.JSC$19900_forwardChannelUri_.clone();_.hu(R,"RID",y);_.hu(R,"CVER","1");TQZ(I,R);E3a(D,R,F);I.forwardChannelRequest_=D;I.state_=2}}else I.state_==3&&(y?DG1(I,y):I.JSC$19896_outgoingMaps_.length==
0?I.JSC$19896_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):I.forwardChannelRequest_||(DG1(I),I.JSC$19896_channelDebug_.debug("startForwardChannel_ finished, sent request")))},DG1=function(I,y){if(y)if(I.JSC$19900_channelVersion_>6){I.JSC$19896_outgoingMaps_=I.pendingMaps_.concat(I.JSC$19896_outgoingMaps_);
I.pendingMaps_.length=0;var D=I.JSC$19900_nextRid_-1;y=yle(I)}else D=y.JSC$19886_rid_,y=y.JSC$19888_postData_;else D=I.JSC$19900_nextRid_++,y=yle(I);var F=I.JSC$19900_forwardChannelUri_.clone();_.hu(F,"SID",I.sid_);_.hu(F,"RID",D);_.hu(F,"AID",I.JSC$19900_lastArrayId_);TQZ(I,F);D=new hA(I,I.JSC$19896_channelDebug_,I.sid_,D,I.JSC$19900_forwardChannelRetryCount_+1);D.JSC$19888_extraHeaders_=I.JSC$19900_extraHeaders_;D.setTimeout(1E4+Math.round(1E4*Math.random()));I.forwardChannelRequest_=D;E3a(D,F,
y)},TQZ=function(I,y){I.handler_&&(I=I.handler_.JSC$19907_getAdditionalParams())&&_.e$.forEach(I,function(D,F){_.hu(y,F,D)})},yle=function(I){var y=Math.min(I.JSC$19896_outgoingMaps_.length,1E3),D=["count="+y];
if(I.JSC$19900_channelVersion_>6&&y>0){var F=I.JSC$19896_outgoingMaps_[0].JSC$19898_mapId;D.push("ofs="+F)}else F=0;for(var R={},O=0;O<y;R={mapId$jscomp$3:void 0},O++){R.mapId$jscomp$3=I.JSC$19896_outgoingMaps_[O].JSC$19898_mapId;var w=I.JSC$19896_outgoingMaps_[O].map;R.mapId$jscomp$3=I.JSC$19900_channelVersion_<=6?O:R.mapId$jscomp$3-F;try{_.e$.forEach(w,function(v){return function(P,K){D.push("req"+v.mapId$jscomp$3+"_"+K+"="+encodeURIComponent(P))}}(R))}catch(v){D.push("req"+R.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}I.pendingMaps_=I.pendingMaps_.concat(I.JSC$19896_outgoingMaps_.splice(0,y));
return D.join("&")},FfT=function(I){I.JSC$19900_backChannelRequest_||I.JSC$19900_backChannelTimerId_||(I.JSC$19900_backChannelAttemptId_=1,I.JSC$19900_backChannelTimerId_=EB((0,_.iD)(I.JSC$19900_onStartBackChannelTimer_,I),0),I.JSC$19900_backChannelRetryCount_=0)},ONg=function(I){if(I.JSC$19900_backChannelRequest_||I.JSC$19900_backChannelTimerId_||I.JSC$19900_backChannelRetryCount_>=3)return!1;
I.JSC$19896_channelDebug_.debug("Going to retry GET");I.JSC$19900_backChannelAttemptId_++;I.JSC$19900_backChannelTimerId_=EB((0,_.iD)(I.JSC$19900_onStartBackChannelTimer_,I),R9a(I,I.JSC$19900_backChannelRetryCount_));I.JSC$19900_backChannelRetryCount_++;return!0};
l2.prototype.JSC$19900_onStartBackChannelTimer_=function(){this.JSC$19900_backChannelTimerId_=null;this.JSC$19896_channelDebug_.debug("Creating new HttpRequest");this.JSC$19900_backChannelRequest_=new hA(this,this.JSC$19896_channelDebug_,this.sid_,"rpc",this.JSC$19900_backChannelAttemptId_);this.JSC$19900_backChannelRequest_.JSC$19888_extraHeaders_=this.JSC$19900_extraHeaders_;this.JSC$19900_backChannelRequest_.JSC$19888_readyStateChangeThrottleMs_=0;var I=this.JSC$19900_backChannelUri_.clone();_.hu(I,
"RID","rpc");_.hu(I,"SID",this.sid_);_.hu(I,"CI",this.useChunked_?"0":"1");_.hu(I,"AID",this.JSC$19900_lastArrayId_);TQZ(this,I);_.hu(I,"TYPE","xmlhttp");G2Q(this.JSC$19900_backChannelRequest_,I,!0,this.JSC$19900_hostPrefix_,!1);this.JSC$19896_channelDebug_.debug("New Request created")};
var Wka=function(I,y,D){I.JSC$19896_channelDebug_.debug("Test Connection Finished");I.useChunked_=I.secondTestResults_==null?D:!I.secondTestResults_;I.JSC$19900_lastStatusCode_=y.JSC$19895_lastStatusCode_;I.asyncTest_||HYR(I)},BQb=function(I,y){I.JSC$19896_channelDebug_.debug("Test Connection Failed");
I.JSC$19900_lastStatusCode_=y.JSC$19895_lastStatusCode_;xV(I,2)};
l2.prototype.JSC$19895_onRequestData=function(I,y){if(this.state_!=0&&(this.JSC$19900_backChannelRequest_==I||this.forwardChannelRequest_==I))if(this.JSC$19900_lastStatusCode_=I.JSC$19888_lastStatusCode_,this.forwardChannelRequest_==I&&this.state_==3)if(this.JSC$19900_channelVersion_>7){try{var D=this.JSC$19896_parser_.parse(y)}catch(F){D=null}if(Array.isArray(D)&&D.length==3)if(y=D,y[0]==0)a:if(this.JSC$19896_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19900_backChannelTimerId_)this.JSC$19896_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19900_backChannelRequest_)if(this.JSC$19900_backChannelRequest_.JSC$19888_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19888_requestStartTime_)ZYT(this),this.JSC$19900_backChannelRequest_.cancel(),this.JSC$19900_backChannelRequest_=null;else break a;else this.JSC$19896_channelDebug_.warning("We do not have a BackChannel established");ONg(this);Ns(19)}else this.JSC$19900_lastPostResponseArrayId_=y[1],I=this.JSC$19900_lastPostResponseArrayId_-this.JSC$19900_lastArrayId_,0<
I&&(y=y[2],this.JSC$19896_channelDebug_.debug(y+" bytes (in "+I+" arrays) are outstanding on the BackChannel"),y<37500&&this.useChunked_&&this.JSC$19900_backChannelRetryCount_==0&&!this.JSC$19900_deadBackChannelTimerId_&&(this.JSC$19900_deadBackChannelTimerId_=EB((0,_.iD)(this.JSC$19900_onBackChannelDead_,this),6E3)));else this.JSC$19896_channelDebug_.debug("Bad POST response data returned"),xV(this,11)}else y!="y2f%"&&(this.JSC$19896_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
xV(this,11));else this.JSC$19900_backChannelRequest_==I&&ZYT(this),_.wq(y)||(I=this.JSC$19896_parser_.parse(y),this.onInput_(I))};
l2.prototype.JSC$19900_onBackChannelDead_=function(){this.JSC$19900_deadBackChannelTimerId_!=null&&(this.JSC$19900_deadBackChannelTimerId_=null,this.JSC$19900_backChannelRequest_.cancel(),this.JSC$19900_backChannelRequest_=null,ONg(this),Ns(20))};
var ZYT=function(I){I.JSC$19900_deadBackChannelTimerId_!=null&&(_.Ft.clearTimeout(I.JSC$19900_deadBackChannelTimerId_),I.JSC$19900_deadBackChannelTimerId_=null)};
l2.prototype.JSC$19895_onRequestComplete=function(I){this.JSC$19896_channelDebug_.debug("Request complete");if(this.JSC$19900_backChannelRequest_==I){ZYT(this);this.JSC$19900_backChannelRequest_=null;var y=2}else if(this.forwardChannelRequest_==I)this.forwardChannelRequest_=null,y=1;else return;this.JSC$19900_lastStatusCode_=I.JSC$19888_lastStatusCode_;if(this.state_!=0)if(I.JSC$19888_successful_)if(y==1){y=I.JSC$19888_postData_?I.JSC$19888_postData_.length:0;I=Date.now()-I.JSC$19888_requestStartTime_;
var D=NQe;D.dispatchEvent(new $To(D,y,I,this.JSC$19900_forwardChannelRetryCount_));Vxo(this);this.handler_&&this.handler_.JSC$19907_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else FfT(this);else{D=I.getLastError();if(D==3||D==7||D==0&&this.JSC$19900_lastStatusCode_>0)this.JSC$19896_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19896_channelDebug_.debug("Maybe retrying, last error: "+xTG(D,this.JSC$19900_lastStatusCode_));var F;if(F=y==1)this.forwardChannelRequest_||
this.JSC$19900_forwardChannelTimerId_||this.state_==1||this.JSC$19900_forwardChannelRetryCount_>=2?F=!1:(this.JSC$19896_channelDebug_.debug("Going to retry POST"),this.JSC$19900_forwardChannelTimerId_=EB((0,_.iD)(this.JSC$19900_onStartForwardChannelTimer_,this,I),R9a(this,this.JSC$19900_forwardChannelRetryCount_)),this.JSC$19900_forwardChannelRetryCount_++,F=!0);if(F||y==2&&ONg(this))return;this.JSC$19896_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19896_channelDebug_.debug("Error: HTTP request failed");
switch(D){case 1:xV(this,5);break;case 4:xV(this,10);break;case 3:xV(this,6);break;case 7:xV(this,12);break;default:xV(this,2)}}};
var R9a=function(I,y){var D=5E3+Math.floor(Math.random()*1E4);I.isActive()||(I.JSC$19896_channelDebug_.debug("Inactive channel"),D*=2);return D*y};
l2.prototype.onInput_=function(I){for(var y=0;y<I.length;y++){var D=I[y];this.JSC$19900_lastArrayId_=D[0];D=D[1];this.state_==2?D[0]=="c"?(this.sid_=D[1],this.JSC$19900_hostPrefix_=D[2],D=D[3],D!=null?this.JSC$19900_channelVersion_=D:this.JSC$19900_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19907_channelOpened(),this.JSC$19900_backChannelUri_=CqY(this,this.JSC$19900_hostPrefix_,this.JSC$19900_path_),FfT(this)):D[0]=="stop"&&xV(this,7):this.state_==3&&(D[0]=="stop"?xV(this,7):
D[0]!="noop"&&this.handler_&&this.handler_.JSC$19907_channelHandleArray(D),this.JSC$19900_backChannelRetryCount_=0)}};
l2.prototype.JSC$19900_ensureInState_=function(I){if(!_.kA(arguments,this.state_))throw Error("Xk`"+this.state_);};
var xV=function(I,y){I.JSC$19896_channelDebug_.info("Error code "+y);if(y==2||y==9){var D=null;I.handler_&&(D=null);var F=(0,_.iD)(I.testGoogleComCallback_,I);D||(D=new _.Pg("//www.google.com/images/cleardot.gif"),_.M2(D));gca(D.toString(),1E4,F)}else Ns(2);I.onError_(y)};
l2.prototype.testGoogleComCallback_=function(I){I?(this.JSC$19896_channelDebug_.info("Successfully pinged google.com"),Ns(2)):(this.JSC$19896_channelDebug_.info("Failed to ping google.com"),Ns(1),this.onError_(8))};
l2.prototype.onError_=function(I){this.JSC$19896_channelDebug_.debug("HttpChannel: error - "+I);this.state_=0;this.handler_&&this.handler_.JSC$19907_channelError(I);stR(this);eJY(this)};
var stR=function(I){I.state_=0;I.JSC$19900_lastStatusCode_=-1;if(I.handler_)if(I.pendingMaps_.length==0&&I.JSC$19896_outgoingMaps_.length==0)I.handler_.JSC$19907_channelClosed();else{I.JSC$19896_channelDebug_.debug("Number of undelivered maps, pending: "+I.pendingMaps_.length+", outgoing: "+I.JSC$19896_outgoingMaps_.length);var y=_.C5(I.pendingMaps_),D=_.C5(I.JSC$19896_outgoingMaps_);I.pendingMaps_.length=0;I.JSC$19896_outgoingMaps_.length=0;I.handler_.JSC$19907_channelClosed(y,D)}},k2b=function(I,
y){y=cmo(I,null,y);
I.JSC$19896_channelDebug_.debug("GetForwardChannelUri: "+y);return y},CqY=function(I,y,D){y=cmo(I,I.JSC$19895_shouldUseSecondaryDomains()?y:null,D);
I.JSC$19896_channelDebug_.debug("GetBackChannelUri: "+y);return y},cmo=function(I,y,D){var F=_.ob(D);
if(F.JSC$10308_domain_!="")y&&_.GM(F,y+"."+F.JSC$10308_domain_),_.XI(F,F.JSC$10308_port_);else{var R=window.location;F=mja(R.protocol,y?y+"."+R.hostname:R.hostname,+R.port,D)}I.JSC$19900_extraParams_&&_.e$.forEach(I.JSC$19900_extraParams_,function(O,w){_.hu(F,w,O)});
_.hu(F,"VER",I.JSC$19900_channelVersion_);TQZ(I,F);return F};
l2.prototype.JSC$19895_createXhrIo=function(I){if(I)throw Error("Pk");I=new _.L9;I.JSC$10072_withCredentials_=!1;return I};
l2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
l2.prototype.notifyServerReachabilityEvent=function(I){var y=NQe;y.dispatchEvent(new bYG(y,I))};
l2.prototype.JSC$19895_shouldUseSecondaryDomains=function(){return!1};
new crY;var LfR=function(){};
_.L=LfR.prototype;_.L.JSC$19907_channelOpened=function(){};
_.L.JSC$19907_channelHandleArray=function(){};
_.L.JSC$19907_channelSuccess=function(){};
_.L.JSC$19907_channelError=function(){};
_.L.JSC$19907_channelClosed=function(){};
_.L.JSC$19907_getAdditionalParams=function(){return{}};
_.L.isActive=function(){return!0};var JlT=function(I){I.front_.length===0&&(I.front_=I.back_,I.front_.reverse(),I.back_=[])};
_.L=DXy.prototype;_.L.enqueue=function(I){this.back_.push(I)};
_.L.peek=function(){JlT(this);return _.p5(this.front_)};
_.L.getCount=function(){return this.front_.length+this.back_.length};
_.L.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.L.clear=function(){this.front_=[];this.back_=[]};
_.L.contains=function(I){return _.kA(this.front_,I)||_.kA(this.back_,I)};
_.L.remove=function(I){var y=this.front_;var D=Array.prototype.lastIndexOf.call(y,I,y.length-1);D>=0?(_.nA_(y,D),y=!0):y=!1;return y||_.WH(this.back_,I)};
_.L.getValues=function(){for(var I=[],y=this.front_.length-1;y>=0;--y)I.push(this.front_[y]);y=this.back_.length;for(var D=0;D<y;++D)I.push(this.back_[D]);return I};var wyY=function(I){var y=typeof I;return y=="object"&&I||y=="function"?"o"+_.HH(I):y.charAt(0)+I};
_.L=XQ.prototype;_.L.getCount=function(){return this.JSC$19911_map_.size};
_.L.add=function(I){this.JSC$19911_map_.set(wyY(I),I);this.size=this.JSC$19911_map_.size};
_.L.addAll=function(I){I=_.q2(I);for(var y=I.length,D=0;D<y;D++)this.add(I[D]);this.size=this.JSC$19911_map_.size};
_.L.removeAll=function(I){I=_.q2(I);for(var y=I.length,D=0;D<y;D++)this.remove(I[D]);this.size=this.JSC$19911_map_.size};
_.L.delete=function(I){I=this.JSC$19911_map_.remove(wyY(I));this.size=this.JSC$19911_map_.size;return I};
_.L.remove=function(I){return this.delete(I)};
_.L.clear=function(){this.JSC$19911_map_.clear();this.size=0};
_.L.isEmpty=function(){return this.JSC$19911_map_.size===0};
_.L.has=function(I){return this.JSC$19911_map_.containsKey(wyY(I))};
_.L.contains=function(I){return this.JSC$19911_map_.containsKey(wyY(I))};
_.L.getValues=function(){return this.JSC$19911_map_.getValues()};
_.L.values=function(){return this.JSC$19911_map_.values()};
_.L.clone=function(){return new XQ(this)};
_.L.equals=function(I){return this.getCount()==n_a(I)&&vgb(this,I)};
var vgb=function(I,y){var D=n_a(y);if(I.getCount()>D)return!1;!(y instanceof XQ)&&D>5&&(y=new XQ(y));return pRa(I,function(F){var R=y;return R.contains&&typeof R.contains=="function"?R.contains(F):R.containsValue&&typeof R.containsValue=="function"?R.containsValue(F):_.i_(R)||typeof R==="string"?_.kA(R,F):_.e$.containsValue(R,F)})};
XQ.prototype.__iterator__=function(){return this.JSC$19911_map_.__iterator__(!1)};
XQ.prototype[Symbol.iterator]=function(){return this.values()};_.T4({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 I=this.query;I&&(this.full||I[0]==="("||(I="("+I+")"),this._mq=window.matchMedia(I),this._add(),this.queryHandler(this._mq))},
queryHandler:function(I){this._setQueryMatches(I.matches)}});var SCg={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(I){return(this._clampValue(I)-this.min)/(this.max-this.min)},
_clampValue:function(I){return Math.min(this.max,Math.max(this.min,this._calcStep(I)))},
_calcStep:function(I){I=parseFloat(I);if(!this.step)return I;I=Math.round((I-this.min)/this.step);return this.step<1?I/(1/this.step)+this.min:I*this.step+this.min},
_validateValue:function(){var I=this._clampValue(this.value);this.value=this.oldValue=isNaN(I)?this.oldValue:I;return this.value!==I},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var toC=[_.sD,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(I){_.Bx(I).path[0]!==this&&(this.resetLayout(),I.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var I=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.mz(this._layoutDebouncer,_.H4,I);_.Mn(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var I=this;requestAnimationFrame(function(){I.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(I){this.resizerShouldNotify(I)&&this._notifyDescendant(I)},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 PLG=[_.Zxg,{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(I,y){var D=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[I];if(!D)throw new ReferenceError(this._getUndefinedMsg(I));I=this._boundEffect(D,y||{});I.setUp();return I},
_effectsChanged:function(I,y,D){this._tearDownEffects();I&&D&&(I.split(" ").forEach(function(F){var R;F!==""&&((R=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[F])?this._effects.push(this._boundEffect(R,y[F])):console.warn(this._getUndefinedMsg(F)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(I,y){y=y||{};var D=parseFloat(y.startsAt||0),F=parseFloat(y.endsAt||1),R=F-D,O=function(){};
F=D===0&&F===1?I.run:function(w,v){I.run.call(this,Math.max(0,(w-D)/R),v)};
return{setUp:I.setUp?I.setUp.bind(this,y):O,run:I.run?F.bind(this):O,tearDown:I.tearDown?I.tearDown.bind(this):O}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(I){I.setUp()!==!1&&this._effectsRunFn.push(I.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(I){I.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(I,y){this._effectsRunFn&&this._effectsRunFn.forEach(function(D){D(I,y)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var I=this._clampedScrollTop;this._updateScrollState(I);this.threshold>0&&this._setThresholdTriggered(I>=this.threshold)}},
_getDOMRef:function(I){console.warn("_getDOMRef","`"+I+"` is undefined")},
_getUndefinedMsg:function(I){return"Scroll effect `"+I+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+I+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Yk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(I){var y={};I=parseFloat(I.scalar);y.background=this._getDOMRef("background");y.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");y.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");y.deltaBg=y.backgroundFrontLayer.offsetHeight-y.background.offsetHeight;y.deltaBg===0?(isNaN(I)&&(I=.8),y.deltaBg=(this._dHeight||0)*I):(isNaN(I)&&(I=
1),y.deltaBg*=I);this._fxParallaxBackground=y},
run:function(I){var y=this._fxParallaxBackground;this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,I)+"px, 0px)",y.backgroundFrontLayer);y.backgroundRearLayer&&this.transform("translate3d(0px, "+y.deltaBg*Math.min(1,I)+"px, 0px)",y.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var KfZ;var UGT;_.T4({_template:function(){if(UGT!==void 0)return UGT;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;KfZ===void 0&&(KfZ=document.createElement("template"));var F=KfZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return UGT=I},
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(){_.YC(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(I){I.keyCode===27&&(I.preventDefault(),this.close())},
_track:function(I){if(!this.persistent&&!this.disableSwipe)switch(I.preventDefault(),I.detail.state){case "start":this._trackStart(I);break;case "track":this._trackMove(I);break;case "end":this._trackEnd(I)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var I=this.$.contentContainer.getBoundingClientRect();this._savedWidth=I.width;this._translateOffset=this.position==="left"?I.left:I.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(I){this._trackDetails&&(this._translateDrawer(I.detail.dx+this._translateOffset),this._trackDetails.push({dx:I.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(I){if(this._trackDetails){var y=I.detail.dx+this._translateOffset,D=this.getWidth();y=this.position==="left"?y>=0||y<=-D:y<=0||y>=D;if(!y){var F=this._trackDetails;this._trackDetails=null;this._flingDrawer(I,F);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}D/=2;I.detail.dx<-D?this.opened=this.position==="right":I.detail.dx>D&&(this.opened=this.position==="left");y?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(I,y){for(var D=Date.now(),F=D-100,R,O=0,w=y.length-1;O<=w;){var v=O+w>>1,P=y[v];P.timeStamp>=F?(R=P,w=v-1):O=v+1}return R?(I.detail.dx-R.dx)/(D-R.timeStamp||1):0},
_flingDrawer:function(I,y){y=this._calculateVelocity(I,y);if(!(Math.abs(y)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;I=I.detail.dx+this._translateOffset;var D=this.getWidth(),F=this.position==="left",R=y>0;R?(y=Math.max(y,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(y=Math.min(y,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");y=this._FLING_INITIAL_SLOPE*(!R&&F?-(I+D):R&&!F?D-I:-I)/y;this._styleTransitionDuration(y);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,y)}},
_styleTransitionDuration:function(I){this.style.transitionDuration=I+"ms";this.$.contentContainer.style.transitionDuration=I+"ms";this.$.scrim.style.transitionDuration=I+"ms"},
_styleTransitionTimingFunction:function(I){this.$.contentContainer.style.transitionTimingFunction=I;this.$.scrim.style.transitionTimingFunction=I},
_translateDrawer:function(I){var y=this.getWidth();this.position==="left"?(I=Math.max(-y,Math.min(I,0)),this.$.scrim.style.opacity=1+I/y):(I=Math.max(0,Math.min(I,y)),this.$.scrim.style.opacity=1-I/y);this.translate3d(I+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var I=this._drawerState;I===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;I!==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=""),I!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var I=_.Bx(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"])');I.length>0?(this._firstTabStop=I[0],this._lastTabStop=I[I.length-1]):
this._lastTabStop=this._firstTabStop=null;(I=this.getAttribute("tabindex"))&&parseInt(I,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(I){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||I.keyCode!==9||(I.shiftKey?this._firstTabStop&&_.Bx(I).localTarget===this._firstTabStop&&(I.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Bx(I).localTarget===this._lastTabStop&&(I.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(I,y){this.toggleClass("visible",I&&!y,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 rly;var jKQ;var ogy=function(){};
_.L=ogy.prototype;_.L._scrollTargetChanged=function(){};
_.L.scroll=function(){};
_.L._isValidScrollTarget=function(){};
_.L._toggleScrollListener=function(){};
_.L.toggleScrollListener=function(){};
_.L.createEffect=function(){};
_.L._effectsChanged=function(){};
_.L._layoutIfDirty=function(){};
_.L._boundEffect=function(){};
_.L._setUpEffect=function(){};
_.L._tearDownEffects=function(){};
_.L._runEffects=function(){};
_.L._scrollHandler=function(){};
_.L._scrollStateChanged=function(){};
_.L._getUndefinedMsg=function(){};
_.L.notifyResize=function(){};
_.L.assignParentResizable=function(){};
_.L.stopResizeNotificationsFor=function(){};
_.L._subscribeIronResize=function(){};
_.L._unsubscribeIronResize=function(){};
_.L.resizerShouldNotify=function(){};
_.L._onDescendantIronResize=function(){};
_.L._fireResize=function(){};
_.L._onIronRequestResizeNotifications=function(){};
_.L._parentResizableChanged=function(){};
_.L._notifyDescendant=function(){};
_.L._requestResizeNotifications=function(){};
_.L._findParent=function(){};
_.L._appResetLayoutHandler=function(){};
_.L.resetLayout=function(){};
_.L._notifyLayoutChanged=function(){};
_.L._notifyDescendantResize=function(){};
_.L._setThresholdTriggered=function(){};
ogy=_.T4({_template:function(){if(jKQ!==void 0)return jKQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;rly===void 0&&(rly=document.createElement("template"));var F=rly;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return jKQ=I},
is:"tp-yt-app-header",behaviors:[PLG,toC],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 I=_.Bx(this.$.slot).getDistributedNodes(),y=0,D;D=I[y];y++)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 I=this._clampedScrollTop,y=this._height===0||I===0,D=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;y||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();y?this._updateScrollState(I,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=D}},
_updateScrollState:function(I,y){if(this._height!==0){var D=0,F=this._top;var R=this._maxHeaderTop;var O=I-this._lastScrollTop,w=Math.abs(O),v=I>this._lastScrollTop,P=performance.now();this._mayMove()&&(D=this._clamp(this.reveals?F+O:I,0,R));I>=this._dHeight&&(D=this.condenses&&!this.fixed?Math.max(this._dHeight,D):D,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&w<100){if(P-this._initTimestamp>300||this._wasScrollingDown!==v)this._initScrollTop=I,this._initTimestamp=P;I>=R&&
(Math.abs(this._initScrollTop-I)>30||w>10?(v&&I>=R?D=R:!v&&I>=this._dHeight&&(D=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((D-F)/(O/(P-this._lastTimestamp)),0,300)+"ms"):D=this._top)}R=this._dHeight===0?I>0?1:0:D/this._dHeight;y||(this._lastScrollTop=I,this._top=D,this._wasScrollingDown=v,this._lastTimestamp=P);if(y||R!==this._progress||F!==D||I===0)this._progress=R,this._runEffects(R,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(I){this.translate3d(0,-I+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&I>=this._stickyElTop?Math.min(I,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(I,y,D){return Math.min(D,Math.max(y,I))},
_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),_.Bx(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(I){switch(I){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Bx(this).querySelector("[main-title]");case "condensedTitle":return _.Bx(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Npa;var h9y;_.T4({_template:function(){if(h9y!==void 0)return h9y;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Npa===void 0&&(Npa=document.createElement("template"));var F=Npa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return h9y=I},
is:"tp-yt-app-header-layout",behaviors:[toC],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Bx(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var I=this.header;if(this.isAttached&&I){this.$.wrapper.classList.remove("initializing");I.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)I.style.left="",I.style.right="";else{var y=this.getBoundingClientRect(),D=document.documentElement.clientWidth-y.right;I.style.left=y.left+"px";I.style.right=D+"px"}y=this.$.contentContainer.style;D=I.offsetHeight;I.fixed&&!I.condenses&&this.hasScrollingRegion?
(y.marginTop=D+"px",y.paddingTop=""):(y.paddingTop=D+"px",y.marginTop="")}}});/*

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 xGa=_.UI(['<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>']),
lWa=_.T4P(xGa);lWa.setAttribute("style","display: none;");document.head.appendChild(lWa.content);var ube;var qCG;/*

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
*/
_.T4({_template:function(){if(qCG!==void 0)return qCG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;ube===void 0&&(ube=document.createElement("template"));var F=ube;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return qCG=I},
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(I,y){var D=this._resolveSrc(I);D!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",I===""||y?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 I=this.$.sizedImgDiv.style,y=this.$.placeholder.style;I.backgroundSize=y.backgroundSize=this.sizing;I.backgroundPosition=y.backgroundPosition=this.sizing?this.position:"";I.backgroundRepeat=y.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(I){I=_.af(I,this.$.baseURIAnchor.href);I.length>=2&&I[0]==="/"&&I[1]!=="/"&&(I=(location.origin||location.protocol+"//"+location.host)+I);return I}});var Ego;var G$a;_.T4({_template:function(){if(G$a!==void 0)return G$a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=
I.content,D=y.insertBefore;Ego===void 0&&(Ego=document.createElement("template"));var F=Ego;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return G$a=I},
is:"tp-yt-iron-pages",behaviors:[_.sD,_.tC],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var Xyg;var QKR;_.T4({_template:function(){if(QKR!==void 0)return QKR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Xyg===void 0&&(Xyg=document.createElement("template"));var F=Xyg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return QKR=I},
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(I){return I?"false":"true"},
_headingChanged:function(I){var y=this.getAttribute("heading"),D=this.getAttribute("aria-label");typeof D==="string"&&D!==y||this.setAttribute("aria-label",I)},
_computeHeadingClass:function(I){return I?" over-image":""},
_computeAnimated:function(I){return I}});var YCb;var fWZ;_.T4({_template:function(){if(fWZ!==void 0)return fWZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;YCb===void 0&&(YCb=document.createElement("template"));var F=YCb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return fWZ=I},
is:"tp-yt-paper-checkbox",behaviors:[_.FWG],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.YC(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var I=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),y="px",D=I.match(/[A-Za-z]+$/);D!==null&&(y=D[0]);I=parseFloat(I);D=8/3*I;y==="px"&&(D=Math.floor(D),D%2!==I%2&&D++);this.updateStyles({"--paper-checkbox-ink-size":D+
y})}})},
_computeCheckboxClass:function(I,y){var D="";I&&(D+="checked ");y&&(D+="invalid");return D},
_computeCheckmarkClass:function(I){return I?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.yPg._createRipple.call(this)}});var ngY;var pya;var mGC=_.AK.IronButtonState,MoZ=(0,_.Ht)(HTMLElement);
_.T4({_template:function(){if(pya!==void 0)return pya;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ngY===void 0&&(ngY=document.createElement("template"));var F=ngY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return pya=I},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[mGC,_.BZ,_.$F,_.eQ],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(I){var y=(0,_.sN)(this);y.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:I});y.shadowRoot.appendChild(I);return MoZ.prototype._attachDom.call(this,I)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var I=this.contentElement;I&&I.selectedItem&&this._setSelectedItem(I.selectedItem)},
get contentElement(){for(var I=_.Bx(this.$.content).getDistributedNodes(),y=0,D=I.length;y<D;y++)if(I[y].nodeType===Node.ELEMENT_NODE)return I[y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(I){this._setSelectedItem(I.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(I){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)===this&&this.open()},
_selectedItemChanged:function(I){var y="";I?y=I.label||I.getAttribute("label")||I.textContent.trim():y="";this.value=y;this._setSelectedItemLabel(y)},
_computeMenuVerticalOffset:function(I,y){return y?y:I?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var I=this.opened?"true":"false",y=this.contentElement;y&&y.setAttribute("aria-expanded",I)}});var z9Y;var k$o;_.T4({_template:function(){if(k$o!==void 0)return k$o;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
var y=I.content,D=y.insertBefore;z9Y===void 0&&(z9Y=document.createElement("template"));var F=z9Y;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return k$o=I},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var dGa;var aWG;_.T4({_template:function(){if(aWG!==void 0)return aWG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;dGa===void 0&&(dGa=document.createElement("template"));var F=dGa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return aWG=I},
is:"tp-yt-paper-progress",behaviors:[SCg],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(I){this.toggleClass("indeterminate",I,this.$.primaryProgress)},
_transformProgress:function(I,y){I.style.transform=I.style.webkitTransform="scaleX("+y/100+")"},
_mainRatioChanged:function(I){this._transformProgress(this.$.primaryProgress,I)},
_progressChanged:function(I,y,D,F,R){I=this._clampValue(I);y=this._clampValue(y);var O=this._calcRatio(I)*100,w=this._calcRatio(y)*100;this._setSecondaryRatio(O);this._transformProgress(this.$.secondaryProgress,O);this._transformProgress(this.$.primaryProgress,w);this.secondaryProgress=I;R?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",y);this.setAttribute("aria-valuemin",D);this.setAttribute("aria-valuemax",F)},
_disabledChanged:function(I){this.setAttribute("aria-disabled",I?"true":"false")},
_hideSecondaryProgress:function(I){return I===0}});var cla;var Wf1;var CL8=function(){};
_.L=CL8.prototype;_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L._tapHandler=function(){};
_.L._focusChanged=function(){};
_.L._detectKeyboardFocus=function(){};
_.L._userActivate=function(){};
_.L._upHandler=function(){};
_.L._spaceKeyDownHandler=function(){};
_.L._spaceKeyUpHandler=function(){};
_.L._asyncClick=function(){};
_.L._pressedChanged=function(){};
_.L._ariaActiveAttributeChanged=function(){};
_.L._activeChanged=function(){};
_.L._controlStateChanged=function(){};
_.L._changedButtonState=function(){};
_.L._focusBlurHandler=function(){};
_.L._disabledChanged=function(){};
_.L._changedControlState=function(){};
_.L._downHandler=function(){};
_.L.ensureRipple=function(){};
_.L.getRipple=function(){};
_.L.hasRipple=function(){};
_.L._noinkChanged=function(){};
_.L._focusedChanged=function(){};
_.L._createRipple=function(){};
_.L.registered=function(){};
_.L._invalidChanged=function(){};
_.L.hasValidator=function(){};
_.L.validate=function(){};
_.L._getValidity=function(){};
_.L._requiredChanged=function(){};
_.L._valueChanged=function(){};
_.L._checkedChanged=function(){};
_.L._buttonStateChanged=function(){};
_.L._setPressed=function(){};
_.L._setPointerDown=function(){};
_.L._setReceivedFocusFromKeyboard=function(){};
_.L._setFocused=function(){};
CL8=_.T4({is:"tp-yt-paper-radio-button",_template:function(){if(Wf1!==void 0)return Wf1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;cla===void 0&&(cla=document.createElement("template"));var F=cla;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return Wf1=I},
behaviors:[_.FWG],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(){_.YC(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var I=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),y=Math.floor(3*I);y%2!==I%2&&y++;this.updateStyles({"--paper-radio-button-ink-size":y+"px"})}})}});var Bpa;var iNR;_.T4({_template:function(){if(iNR!==void 0)return iNR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Bpa===void 0&&(Bpa=document.createElement("template"));var F=Bpa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return iNR=I},
is:"tp-yt-paper-radio-group",behaviors:[_.szM],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(I){var y=this._valueToItem(I);if(!y||!y.hasAttribute("disabled")){if(this.selected){y=this._valueToItem(this.selected);if(this.selected==I)if(this.allowEmptySelection)I="";else{y&&(y.checked=!0);return}y&&
(y.checked=!1)}_.tC.select.apply(this,[I]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(I){this._focusPrevious();I.preventDefault();this._activateFocusedItem()},
_onDownKey:function(I){this._focusNext();I.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(I){_.TTc._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(I){_.TTc._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.tC._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.T5._resetTabindices.apply(this,arguments);this.items.forEach(function(I){I.removeAttribute("aria-selected")},this)}});var AlC;var $GQ;var bNg=function(){};
_.L=bNg.prototype;_.L.registered=function(){};
_.L.addOwnKeyBinding=function(){};
_.L.removeOwnKeyBindings=function(){};
_.L.keyboardEventMatchesKeys=function(){};
_.L._collectKeyBindings=function(){};
_.L._prepKeyBindings=function(){};
_.L._addKeyBinding=function(){};
_.L._resetKeyEventListeners=function(){};
_.L._listenKeyEventListeners=function(){};
_.L._unlistenKeyEventListeners=function(){};
_.L._onKeyBindingEvent=function(){};
_.L._triggerKeyHandler=function(){};
_.L._tapHandler=function(){};
_.L._focusChanged=function(){};
_.L._detectKeyboardFocus=function(){};
_.L._userActivate=function(){};
_.L._upHandler=function(){};
_.L._spaceKeyDownHandler=function(){};
_.L._spaceKeyUpHandler=function(){};
_.L._asyncClick=function(){};
_.L._pressedChanged=function(){};
_.L._ariaActiveAttributeChanged=function(){};
_.L._activeChanged=function(){};
_.L._controlStateChanged=function(){};
_.L._changedButtonState=function(){};
_.L._focusBlurHandler=function(){};
_.L._disabledChanged=function(){};
_.L._changedControlState=function(){};
_.L._buttonStateChanged=function(){};
_.L._downHandler=function(){};
_.L.ensureRipple=function(){};
_.L.getRipple=function(){};
_.L.hasRipple=function(){};
_.L._noinkChanged=function(){};
_.L._calcRatio=function(){};
_.L._clampValue=function(){};
_.L._calcStep=function(){};
_.L._validateValue=function(){};
_.L._update=function(){};
_.L._setImmediateValue=function(){};
_.L._setExpand=function(){};
_.L._setDragging=function(){};
_.L._setTransiting=function(){};
_.L._setMarkers=function(){};
_.L._setPressed=function(){};
_.L._setPointerDown=function(){};
_.L._setReceivedFocusFromKeyboard=function(){};
_.L._setFocused=function(){};
_.L._setRatio=function(){};
bNg=_.T4({_template:function(){if($GQ!==void 0)return $GQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;AlC===void 0&&(AlC=document.createElement("template"));var F=AlC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return $GQ=I},
is:"tp-yt-paper-slider",behaviors:[_.CP,_.$F,_.DOz,SCg],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&&_.KZ(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(I,y,D){this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",D);this.setAttribute("aria-valuenow",I);this._positionKnob(this._calcRatio(I)*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(I){this._setImmediateValue(this._calcStep(this._calcKnobPosition(I)));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(I){return(this.max-this.min)*I/100+this.min},
_onTrack:function(I){I.stopPropagation();switch(I.detail.state){case "start":this._trackStart(I);break;case "track":this._trackX(I);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(I){this.dragging||this._trackStart(I);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,I.detail.dx*(this._isRTL?-1:1)));I=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(I);I=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(I+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var I=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;I.transform=I.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(I){this._expandKnob();I.preventDefault();this.focus()},
_bartrack:function(I){this._allowBarEvent(I)&&this._onTrack(I)},
_barclick:function(I){this._w=this.$.sliderBar.offsetWidth;var y=this.$.sliderBar.getBoundingClientRect();y=(I.detail.x-y.left)/this._w*100;this._isRTL&&(y=100-y);var D=this.ratio;this._setTransiting(!0);this._positionKnob(y);D===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
I.preventDefault();this.focus()},
_bardown:function(I){this._allowBarEvent(I)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(I))},
_knobTransitionEnd:function(I){I.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(I,y,D,F){F||this._setMarkers([]);y=Math.round((D-y)/this.step);y>I&&(y=I);if(y<0||!isFinite(y))y=0;this._setMarkers(Array(y))},
_mergeClasses:function(I){return Object.keys(I).filter(function(y){return I[y]}).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(I){return!this.ignoreBarTouch||I.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(I){this._isRTL?this._incrementKey(I):this._decrementKey(I)},
_rightKey:function(I){this._isRTL?this._decrementKey(I):this._incrementKey(I)},
_incrementKey:function(I){this.disabled||(I.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),I.preventDefault())},
_decrementKey:function(I){this.disabled||(I.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),I.preventDefault())},
_changeValue:function(I){this.value=I.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(I){I.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.yPg._createRipple.call(this)},
_focusedChanged:function(I){I&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=I?"":"none",this._ripple.holdDown=I)}});var HNC;var e9a;var u2=null,Tpo=function(){};
_.L=Tpo.prototype;_.L.fit=function(){};
_.L._discoverInfo=function(){};
_.L.resetFit=function(){};
_.L.refit=function(){};
_.L.position=function(){};
_.L.constrain=function(){};
_.L._sizeDimension=function(){};
_.L.__sizeDimension=function(){};
_.L.center=function(){};
_.L.__getNormalizedRect=function(){};
_.L.__getOffscreenArea=function(){};
_.L.__getPosition=function(){};
_.L.notifyResize=function(){};
_.L.assignParentResizable=function(){};
_.L.stopResizeNotificationsFor=function(){};
_.L._subscribeIronResize=function(){};
_.L._unsubscribeIronResize=function(){};
_.L.resizerShouldNotify=function(){};
_.L._onDescendantIronResize=function(){};
_.L._fireResize=function(){};
_.L._onIronRequestResizeNotifications=function(){};
_.L._parentResizableChanged=function(){};
_.L._notifyDescendant=function(){};
_.L._requestResizeNotifications=function(){};
_.L._findParent=function(){};
_.L.toggle=function(){};
_.L.open=function(){};
_.L.close=function(){};
_.L.cancel=function(){};
_.L.invalidateTabbables=function(){};
_.L._ensureSetup=function(){};
_.L._canceledChanged=function(){};
_.L._withBackdropChanged=function(){};
_.L._prepareRenderOpened=function(){};
_.L._finishRenderOpened=function(){};
_.L._finishRenderClosed=function(){};
_.L._preparePositioning=function(){};
_.L._finishPositioning=function(){};
_.L._applyFocus=function(){};
_.L._onCaptureClick=function(){};
_.L._onCaptureFocus=function(){};
_.L._onCaptureEsc=function(){};
_.L._onCaptureTab=function(){};
_.L._onIronResize=function(){};
_.L._onNodesChange=function(){};
_.L.__ensureFirstLastFocusables=function(){};
_.L.__openedChanged=function(){};
_.L.__deraf=function(){};
_.L.__updateScrollObservers=function(){};
_.L.__addScrollListeners=function(){};
_.L.__removeScrollListeners=function(){};
_.L.__isValidScrollAction=function(){};
_.L.__onCaptureScroll=function(){};
_.L.__saveScrollPosition=function(){};
_.L.__restoreScrollPosition=function(){};
_.L._setCanceled=function(){};
Tpo=_.T4({_template:function(){if(e9a!==void 0)return e9a;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;HNC===void 0&&(HNC=document.createElement("template"));var F=HNC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return e9a=I},
is:"tp-yt-paper-toast",behaviors:[_.Pc],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(){_.el._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Jw.requestAvailability()},
show:function(I){typeof I=="string"&&(I={text:I});for(var y in I)y.indexOf("_")===0?_.el._warn('The property "'+y+'" is private and was not set.'):y in this?this[y]=I[y]:_.el._warn('The property "'+y+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(I){I&&I.target===this&&I.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(u2&&u2!==this&&u2.close(),u2=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):u2===this&&(u2=null);_.tw._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(I){this.positionTarget=I},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var sKe=new _.lk("disablePersonalizationAction");var kQb=new _.lk("showDmaConsentFlowCommand");var dV1=new _.lk("showMmgNoticeCommand");var Vo1=new _.lk("saveConsentAction");var ZNg=new _.lk("navigateAction");var ggQ=new _.lk("replaceFeedContentAction");var IPy=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(IPy,_.KS);var y5a=_.wdC(IPy);var DiR=new _.lk("imageTileRenderer");var FnC=new _.lk("promotedSparklesWebRenderer");var RHe=new _.lk("adGridCardCollectionViewModel");var Oco=new _.lk("addRendererToItemSectionAction");var Ln8=new _.lk("updateTopbarAvatarAction");var J5o=new _.lk("channelHandleValidationResultRenderer");var wQG=new _.lk("generateHandleFromNameResultRenderer");var vSa=new _.lk("channelHandleInputRenderer");var SGQ=new _.lk("copyLinkRenderer");var tDZ=new _.lk("carouselTitleViewModel");var Pz1=new _.lk("ctaCarouselItemViewModel");var Kna=new _.lk("timedCommand");var Uib=new _.lk("textFieldViewModel");var r5R=new _.lk("crowdsourcedContextUserRatingFormFlowState");var j_g=new _.lk("noteViewModel");var oSY=new _.lk("alertCommand");var NKR=new _.lk("clearCookieAction");var hH1=new _.lk("engagementPanelHeaderShowNavigationButtonCommand");var xiZ=new _.lk("getMultiPageMenuAction");var lPT=new _.lk("addToGuideSectionAction"),uuo=new _.lk("removeFromGuideSectionAction");var qGg=new _.lk("hideEngagementPanelScrimAction");var ESa=new _.lk("updateNotificationsUnseenCountAction");var GiZ=new _.lk("resetChannelUnreadCountCommand");var XQR=new _.lk("resetSubscriptionsUnreadDotCommand");var Q_Q=new _.lk("selectLanguageCommand");var TuQ=new _.lk("sendFeedbackAction");var YGy=new _.lk("setActivePanelItemAction");var fPZ=new _.lk("showEngagementPanelScrimAction");var nSG=new _.lk("updateEngagementPanelAction");var pQa=new _.lk("updateSearchInVideoResultsAction");var miQ=new _.lk("uploadImageToScottyCommand");var MDa=new _.lk("webWatchNextResponseExtensionData");var zHe=new _.lk("manageLabsStateCommand");var kib=new _.lk("registerPromoCommand");var dig=new _.lk("setPushNotificationsEnabledCommand");var aPe=new _.lk("updateSentimentBarStateCommand");var c5C=new _.lk("desktopTopbarRenderer");var Wnb=new _.lk("surveyFollowUpRenderer");var CzC=new _.lk("formRenderer");var BKT=new _.lk("inlineFormRenderer");var icG=new _.lk("handlesClaimingRadioOptionRenderer");var A5R=new _.lk("hotkeyDialogRenderer");var $iR=new _.lk("playlistSidebarPrimaryInfoRenderer");var bc1=new _.lk("transcriptCueGroupRenderer");var Hca=new _.lk("transcriptCueRenderer");var eHY=new _.lk("transcriptFooterRenderer");var TKb=new _.lk("engagementPanelAdSubtitleRenderer");var s_y=new _.lk("videoDescriptionFantasySectionViewModel");var VDZ=new _.lk("inlineSurveyRenderer");var ZcG=new _.lk("radioButtonSurveyOptionRenderer"),gSb=new _.lk("checkboxSurveyOptionRenderer");var Iky=new _.lk("showSurveyCommand");var qs=new _.lk("abuseReportFlowState");var yhe=new _.lk("modifyReportFormCommand");var D1a=new _.lk("feedbackFormFlowState");var cig=new _.lk("inputBoxViewModel");var Ws1=new _.lk("flowRootRenderer");var wSg=new _.lk("lengthValidationRule");var SPZ=new _.lk("regexValidationRule");var PpQ=new _.lk("selectedValidationRule");var C$b=new _.lk("accountLinkCommand");var BlQ=new _.lk("accountUnlinkCommand");var i1e=new _.lk("deleteClipEngagementPanelCommand");var AiG=new _.lk("logAccountLinkingEventCommand");var $cR=new _.lk("loopCommand");var BTa=new _.lk("guideCollapsibleEntryRenderer");var b1o=new _.lk("guideDownloadsEntryRenderer");var C0R=new _.lk("guideEntryRenderer");var H1T=[0,_.oh,_.Em,_.Q1];var eya=[0,_.Um,-2,k9e];var Tle=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ca(I)};
_.E(Tle,_.KS);Tle.prototype.getFeature=function(){return _.Tp(this,6)};
Tle.prototype.hasFeature=function(){return _.fa(_.du(this,6))!=null};var sly=[0,_.oh];var V48=_.Xj(Tle,[0,_.Um,-2,k9e,_.Um,_.oh,-1,_.K2,-1,_.oh,-3,_.sTa,_.rJ,eya,_.oh,-1,zSy,_.K2,_.oh,H1T,[0,[0,_.oh,-2,2,_.oh,-1,[0,_.oh],[0,_.Em,_.oh],[0,_.Em],[0,_.oh],2,[0,_.Em,2,[0,_.Em,-1],[0,_.xX,kLT],1,[0,dFa],1,[0,_.oh],1,[0,[2],_.oh,_.l7,[0,_.Um]]],[0,_.rJ],[0,[1,2],_.l7,[0,_.oh],_.l7,[0,_.oh,_.qV,-1]],[0,_.Em],[0,_.oh,[0,[1,2,3,4],_.l7,[0,[0,_.oh],sly],_.l7,[0,[0,_.oh],sly],_.l7,[0,sly],_.l7,[0,[0,_.oh],sly]]],[0,_.oh],1,[0,_.oh,_.Em],1,[0,_.oh],[0,_.rJ],[0,_.oh,_.Em,-1,[0,_.oh,-4]],[0,_.oh],
[0,_.oh,-2],1,[0,_.oh],[0,_.rJ],[0,_.rJ,_.oh],1,[0,_.rJ],[0],[0]],_.oh,_.Em,_.t4,1,_.u7,_.oh,_.Em],_.Um,_.u7,_.Em,-1,_.Um]);var Z1a=new _.lk("interstitialViewModel");var gbg=new _.lk("changeCreatorEndscreenVisibilityCommand");var IpT=new _.lk("liveChatCallForQuestionsRenderer");var ykG=new _.lk("getLocationCommand");var DkC=new _.lk("locationCollectionCommand");var FBg=new _.lk("chipsShelfViewModel");var E9=new _.lk("cinematicContainerRenderer");var GX=new _.lk("changeMarkersVisibilityCommand");var RsR=new _.lk("updateTimedMarkersSyncObserverCommand");var Ofa=new _.lk("storiesItemViewModel");var LBg=new _.lk("talkToRecsViewModel");var bV8=new _.lk("timelyActionViewModel");var JkT=new _.lk("timelyActionsOverlayViewModel");var wJR=new _.lk("addToRemoteQueueAction");var vuZ=new _.lk("insertInRemoteQueueAction");var S0b=new _.lk("removeFromRemoteQueueAction");var ttb=new _.lk("productDetailsThumbnailRenderer"),PGR=new _.lk("productDetailsVariantRenderer"),KBZ=new _.lk("productDetailsVariantOptionRenderer"),UkG=new _.lk("productDetailsOffersContainerRenderer"),rka=new _.lk("productDetailsOfferRenderer");var jYQ=new _.lk("shoppingFlaggingRenderer");var ouy=new _.lk("notificationActionRenderer");var N5T=new _.lk("notificationRenderer");var NJe=new _.lk("localWatchHistoryCommand");var hsb=new _.lk("pdgBuyFlowHeaderRenderer");var xka=new _.lk("pdgColorSliderRenderer");var lpy=new _.lk("pdgCommentOptionRenderer");var uKe=new _.lk("pdgCommentPreviewRenderer");var q0o=new _.lk("superVodSelectableItemButtonRenderer");var Eua=new _.lk("creatorGoalSetUpFlowDropdownItemViewModel");var Gnb=new _.lk("creatorGoalSetUpFlowDropdownViewModel");var XJe=new _.lk("repeatChapterCommand");var QYZ=new _.lk("watchPlayerOverflowMenuCommand");var Y0g=new _.lk("compositeVideoOverlayRenderer");var fpe=new _.lk("playlistBylineRenderer");var nuQ=new _.lk("reelNavigateCommand");var pJo=new _.lk("reelNonVideoContentDismissalCommand");var mkY=new _.lk("showReelsCommentsOverlayCommand");var MtQ=new _.lk("switchButtonRenderer");var zsQ=new _.lk("responsiveContainerConfiguration");var knG=new _.lk("sortFilterSubMenuRenderer");var dka=new _.lk("upsellDialogRenderer");var apR=new _.lk("insertChannelTabCommand");var cka=new _.lk("feedbackQuestionRenderer"),WBa=new _.lk("feedbackOptionRenderer");var CGo=new _.lk("sponsorshipsTierRenderer"),B51=new _.lk("sponsorshipsPromotionChannelRenderer");var ifT=new _.lk("simpleSurveyMessageRenderer");var Htg=new _.lk("thumbnailBadgeViewModel");var AkZ=new _.lk("checkboxGroupViewModel");var R2b=new _.lk("checkboxItemViewModel");var $ko=new _.lk("radioButtonGroupViewModel");var bfR=new _.lk("radioButtonItemViewModel");var HfR=new _.lk("switchListItemViewModel");var qAa=new _.lk("inputComposerViewModel");var GjQ=new _.lk("panelFooterViewModel");var esa=new _.lk("transcriptEditSegmentCommand");var T5a=new _.lk("transcriptUpdateSegmentTextCommand");var sYg=new _.lk("transcriptSearchBoxRenderer");var Vt8=new _.lk("transcriptSegmentListRenderer");var Zfb=new _.lk("transcriptSegmentRenderer");var guT=new _.lk("videoInteractionPopUpRenderer");var Ixy=new _.lk("updateDateTextAction");var ybb=new _.lk("updateTitleAction");var DZT=new _.lk("updateViewershipAction");var Fbo=new _.lk("relatedChipCommand");var Rxa=new _.lk("carouselLockupRenderer");var OoT=new _.lk("engagementPanelSectionListRenderer");var Xe=new _.lk("expandableVideoDescriptionBodyRenderer");var Lbb=new _.lk("videoDescriptionHeaderRenderer");var JbR=new _.lk("videoDescriptionYouchatSectionViewModel");var gXg=new _.lk("invokeInstrumentManagerAction");var wA8=new _.lk("logYpcFlowDismissCommand");var vay=new _.lk("logYpcFlowStartCommand");var SVQ=new _.lk("ypcCancelRecurrenceCommand");var tHY=new _.lk("cancellationFlowState");var egQ=new _.lk("premiumPurchaseFlowState");var PAZ=new _.lk("unlimitedCreateFamilyEndpoint");var Kbb=new _.lk("surveyAnswerCardRenderer");var UZT=new _.lk("iconBadgeRenderer");var rb8=new _.lk("showMoreButtonRenderer");var jpe=new _.lk("pollChoiceData");var x0T=new _.lk("collaborativePlaylistVisibilityValidationRule");var oaa=function(I){_.uS.call(this,"channelMessage");this.message=I};
_.E(oaa,_.uS);var NxR=function(I){_.uS.call(this,"channelError");this.error=I};
_.E(NxR,_.uS);var hxb={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},xZa={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},lxa={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},uZo={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},qVC={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Qn=function(I){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 _.VG;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;I&&(this.id=I.id||I.name,this.name=I.name,this.clientName=I.clientName?I.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=I.app,this.type=I.type||"REMOTE_CONTROL",this.username=I.user||"",this.avatar=I.userAvatarUri||"",this.obfuscatedGaiaId=I.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=I.ownerObfuscatedGaiaId||"",this.castUserId=I.castUserId||"",this.theme=I.theme||"u",Eaa(this,I.capabilities||""),GSb(this,
I.compatibleSenderThemes||""),XAZ(this,I.experiments||""),this.remoteControllerUrl=I.remoteControllerUrl||"",this.localChannelEncryptionKey=I.localChannelEncryptionKey||"",this.deviceContext=I.deviceContext,this.brand=I.brand||"",this.model=I.model||"",this.year=I.year||0,this.os=I.os||"",this.osVersion=I.osVersion||"",this.chipset=I.chipset||"",this.mdxDialServerType=I.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=I.pairingType||"unknown",I=I.deviceInfo)&&(I=JSON.parse(I),this.brand=
I.brand||"",this.model=I.model||"",this.year=I.year||0,this.os=I.os||"",this.osVersion=I.osVersion||"",this.chipset=I.chipset||"",this.clientName=I.clientName?I.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=I.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Qn.prototype.copy=function(){var I={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&&(I.brand=this.brand);
this.model&&(I.model=this.model);this.year&&(I.year=this.year);this.os&&(I.os=this.os);this.osVersion&&(I.osVersion=this.osVersion);this.chipset&&(I.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(I.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(I.mdxDialServerType=this.mdxDialServerType);I=new Qn(I);I.connected=this.connected;I.remoteControllerUrl=this.remoteControllerUrl;I.localChannelEncryptionKey=this.localChannelEncryptionKey;I.deviceContext=
this.deviceContext;I.castUserId=this.castUserId;return I};
Qn.prototype.equals=function(I){return I?this.id==I.id:!1};
var Eaa=function(I,y){I.capabilities.clear();_.Qt(y.split(","),_.de(_.e$.contains,hxb)).forEach(function(D){I.capabilities.add(D)})},GSb=function(I,y){I.compatibleSenderThemes.clear();
_.Qt(y.split(","),_.de(_.e$.contains,xZa)).forEach(function(D){I.compatibleSenderThemes.add(D)})},XAZ=function(I,y){I.experiments.clear();
y.split(",").forEach(function(D){I.experiments.add(D)})};_.EI(R6R,_.B5);_.L=R6R.prototype;_.L.JSC$19985_onTick_=function(){this.retryCount++;this.JSC$19983_interval_=Math.min(3E5,this.JSC$19983_interval_*2);this.JSC$19985_listener_();this.nextTickTime_&&this.start()};
_.L.getRetryCount=function(){return this.retryCount};
_.L.start=function(){var I=this.JSC$19983_interval_+15E3*Math.random(),y=this.delay_;y.isActive()||y.start(I);this.nextTickTime_=Date.now()+I};
_.L.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.L.isActive=function(){return this.delay_.isActive()};
_.L.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$19983_interval_=5E3};_.EI(Qu,LfR);_.L=Qu.prototype;_.L.subscribe=function(I,y,D){return this.pubsub_.subscribe(I,y,D)};
_.L.unsubscribe=function(I,y,D){return this.pubsub_.unsubscribe(I,y,D)};
_.L.unsubscribeByKey=function(I){return this.pubsub_.unsubscribeByKey(I)};
_.L.publish=function(I,y){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.L.dispose=function(){this.JSC$19986_disposed_||(this.JSC$19986_disposed_=!0,_.rM(this.pubsub_),this.disconnect(),_.rM(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19986_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Xs({})})};
_.L.isDisposed=function(){return this.JSC$19986_disposed_};
_.L.connect=function(I,y,D){var F=this,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return _.zd(P,2),F.useAsyncBrowserChannelHandler_?P.yield(F.connectPromise_,2):P.jumpTo(2);_.m4(P);if(F.JSC$19986_disposed_||F.JSC$19986_channel_&&F.JSC$19986_channel_.getState()==2&&!F.isInitialReconnectTimer_)return P.return();F.sCookie_="";F.isInitialReconnectTimer_||F.reconnectTimer_.stop();F.connectionParams_=I||null;F.connectUi_=y||0;R=F.JSC$19986_pathPrefix_+"/test";O=F.JSC$19986_pathPrefix_+"/bind";w=
new l2(D?D.firstTestResults:null,D?D.secondTestResults:null,F.enableAsyncTest_);if(v=F.JSC$19986_channel_)v.handler_=null;w.handler_=F;F.JSC$19986_channel_=w;if(F.useAsyncBrowserChannelHandler_)return F.connectPromise_=Qpg(F).then(function(){return YV1(F,R,O,v,D)}),P.return(F.connectPromise_.then(function(){F.connectPromise_=_.Xs()}));
YV1(F,R,O,v,D);return _.kQ(P,0)})};
var YV1=function(I,y,D,F,R){fxY(I);if(I.JSC$19986_channel_){var O=_.Pi("ID_TOKEN"),w=I.JSC$19986_channel_.JSC$19900_extraHeaders_||{};O?w["x-youtube-identity-token"]=O:delete w["x-youtube-identity-token"];I.JSC$19986_channel_.JSC$19900_extraHeaders_=w}naa(I);F?(F.getState(),I.JSC$19986_channel_.connect(y,D,I.defaultQueryParams_,F.sid_,F.JSC$19900_lastArrayId_)):R?I.JSC$19986_channel_.connect(y,D,I.defaultQueryParams_,R.sessionId,R.arrayId):I.JSC$19986_channel_.connect(y,D,I.defaultQueryParams_);I.isInitialReconnectTimer_&&
!I.reconnectTimer_.isActive()&&I.reconnectTimer_.start()};
Qu.prototype.disconnect=function(I){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Xs())}finally{this.disconnectUi_=I||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),fxY(this),this.JSC$19986_channel_&&(this.JSC$19986_channel_.getState()==3&&IWQ(this.JSC$19986_channel_),this.JSC$19986_channel_.disconnect()),this.disconnectUi_=0}};
Qu.prototype.sendMessage=function(I,y){var D=this,F;return _.S(function(R){switch(R.nextAddress){case 1:_.zd(R,2);if(!D.useAsyncBrowserChannelHandler_){R.jumpTo(2);break}return R.yield(D.connectPromise_,2);case 2:_.m4(R);if(D.JSC$19986_disposed_)return R.return();F={_sc:I};y&&_.e$.extend(F,y);if(D.reconnectTimer_.isActive()||(D.JSC$19986_channel_?D.JSC$19986_channel_.getState():0)==2){D.JSC$19986_pendingMessages_.push(F);R.jumpTo(6);break}if(!D.isChannelOpened()){R.jumpTo(6);break}_.zd(R,8);if(!D.useAsyncBrowserChannelHandler_||
pAa(D,I)){R.jumpTo(8);break}return R.yield(Qpg(D),8);case 8:_.m4(R,0,0,1);D.isChannelOpened()&&(pAa(D,I)||naa(D),fxY(D),g3g(D.JSC$19986_channel_,F));_.kQ(R,6,1);break;case 6:_.kQ(R,0)}})};
var pAa=function(I,y){return I.enableMdxAuthForConnectionOnly_?!0:I.disableMdxAuthForAdMessages_?Object.values(lxa).includes(y):I.disableMdxAuthForNonPlaybackMessages_?!Object.values(uZo).includes(y):I.disableMdxAuthForShortsMessages_?Object.values(qVC).includes(y):!1};
Qu.prototype.JSC$19907_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&this.retryLogger_.logSuccess();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.rM(this.reconnectTimer_),this.reconnectTimer_=new R6R(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19986_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)mZo(this);
else{var I=this.JSC$19986_pendingMessages_;this.JSC$19986_pendingMessages_=[];var y=I.length;naa(this);MHC(this,I,y);zx1(this)}else zx1(this)};
var mZo=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return _.zd(F,2),F.yield(Qpg(I),2);_.m4(F);y=I.JSC$19986_pendingMessages_;I.JSC$19986_pendingMessages_=[];D=y.length;MHC(I,y,D);zx1(I);return _.kQ(F,0)})},MHC=function(I,y,D){for(var F=0;F<D;++F)g3g(I.JSC$19986_channel_,y[F]);
zx1(I)},zx1=function(I){I.publish("handlerOpened");
I.JSC$19986_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.L=Qu.prototype;_.L.JSC$19907_channelError=function(I){var y=I==2&&this.JSC$19986_channel_.JSC$19900_lastStatusCode_==401;I==4||y||this.reconnectTimer_.start();this.publish("handlerError",I,y);y=Object.keys(Ama).find(function(D){return Ama[D]===I});
this.JSC$19986_channelErrorCounter.increment("BROWSER_CHANNEL",y!=null?y:"UNKNOWN")};
_.L.JSC$19907_channelClosed=function(I,y){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(y)for(var D=y.length,F=0;F<D;++F){var R=y[F].map;R&&this.JSC$19986_pendingMessages_.push(R)}this.JSC$19986_channelClosedCounter.increment("BROWSER_CHANNEL");I&&this.pendingMapsOnClosedCounter.JSC$10208_streamzService.JSC$10063_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",I.length);y&&this.undeliveredMapsOnClosedCounter.JSC$10211_streamzService.JSC$10063_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
y.length)};
_.L.JSC$19907_channelSuccess=function(I,y){y!=null&&I!=null&&this.channelMessageSentCounter.increment()};
_.L.JSC$19907_getAdditionalParams=function(){var I={v:2};this.sCookie_&&(I.gsessionid=this.sCookie_);this.connectUi_!=0&&(I.ui=""+this.connectUi_);this.disconnectUi_!=0&&(I.ui=""+this.disconnectUi_);this.connectionParams_&&_.e$.extend(I,this.connectionParams_);return I};
_.L.JSC$19907_channelHandleArray=function(I){I[0]=="S"?this.sCookie_=I[1]:I[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19986_channel_.disconnect()):this.publish("handlerMessage",new Fh8(I[0],I[1]));this.JSC$19986_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.L.isChannelOpened=function(){return!!this.JSC$19986_channel_&&this.JSC$19986_channel_.getState()==3};
var fxY=function(I){if(I.JSC$19986_channel_){var y=I.JSC$19986_getXsrfToken_(),D=I.JSC$19986_channel_.JSC$19900_extraHeaders_||{};y?D["x-youtube-lounge-xsrf-token"]=y:delete D["x-youtube-lounge-xsrf-token"];I.JSC$19986_channel_.JSC$19900_extraHeaders_=D}},Qpg=function(I){if(I.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Xs();
if(!I.enableCachedUpdateAuthorizationHeader_)return kSa(I);I.updateAuthorizationHeaderPromise_===null&&(I.updateAuthorizationHeaderPromise_=kSa(I));return I.updateAuthorizationHeaderPromise_},kSa=function(I){return _.D1(I.getAuthorizationHeader_().then(function(y){dZQ(I,y)}).thenCatch(function(){}),function(){I.updateAuthorizationHeaderPromise_=null})},dZQ=function(I,y){if(I.JSC$19986_channel_){var D=I.JSC$19986_channel_.JSC$19900_extraHeaders_||{};
y&&Object.keys(y).length>0?D=Object.assign({},D,y):delete D.Authorization;I.JSC$19986_channel_.JSC$19900_extraHeaders_=D}},naa=function(I){I.getAuthorizationHeaderSync_&&!I.useAsyncBrowserChannelHandler_&&dZQ(I,I.getAuthorizationHeaderSync_())};
_.L=Qu.prototype;_.L.setLoungeToken=function(I){(this.defaultQueryParams_.loungeIdToken=I)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19986_channel_){var y=this.JSC$19986_channel_.JSC$19900_extraHeaders_||{};I?y["X-YouTube-LoungeId-Token"]=I:delete y["X-YouTube-LoungeId-Token"];this.JSC$19986_channel_.JSC$19900_extraHeaders_=y}};
_.L.getDeviceId=function(){return this.defaultQueryParams_.id};
_.L.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.L.reconnect=function(){var I=this.reconnectTimer_;I.delay_.fire();I.start()};
_.L.safeReconnect_=function(){var I=this.JSC$19986_channel_,y=0;I.JSC$19900_backChannelRequest_&&y++;I.forwardChannelRequest_&&y++;y==0&&this.connect(this.connectionParams_,this.connectUi_)};var pK=function(I,y){var D=I.basePath;I.supportCors&&(D=I.scheme+"://"+I.domain+I.port+I.basePath);return _.qC(D+y,{})};
PIT.prototype.sendRequest=function(I,y,D,F,R,O,w){I={format:O?"RAW":"JSON",method:I,context:this,timeout:5E3,withCredentials:!!w,onSuccess:_.de(this.JSC$19993_onSuccess_,F,!O),onError:_.de(this.onError_,R),onTimeout:_.de(this.JSC$19993_onTimeout_,R)};D&&(I.postParams=D,I.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.AG(y,I)};
PIT.prototype.JSC$19993_onSuccess_=function(I,y,D,F){y?I(F):I({text:D.responseText})};
PIT.prototype.onError_=function(I,y){I(Error("Zk`"+y.status))};
PIT.prototype.JSC$19993_onTimeout_=function(I){I(Error("$k"))};var j0R=function(I,y){return!!y&&(I.id==y||I.uuid==y)},axa=function(I){return{name:I.name,
screenId:I.id,loungeToken:I.token,dialId:I.uuid,screenIdType:I.idType,screenIdSecret:I.secret}},cbC=function(I){return new YN(I)},WbZ=function(I){return Array.isArray(I)?_.T_(I,cbC):[]},NyQ=function(I){if(!I)return"null";
var y=I.token?".."+I.token.slice(-6):"-",D=I.uuid?".."+I.uuid.slice(-6):"-",F=I.secret?".."+I.secret.slice(-6):"-";return'{name:"'+I.name+'",id:'+I.id.substr(0,6)+"..,token:"+(y+",uuid:"+D+",idType:"+I.idType+",secret:")+(F+"}")},bg8=function(I){return Array.isArray(I)?"["+_.T_(I,NyQ).join(",")+"]":"null"};var qMZ="",nK=null;var Mv1=function(I,y){_.Zw.call(this);var D=this;this.handler=I();this.handler.subscribe("handlerOpened",this.JSC$20000_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(F,R){D.onError(R)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=y};
_.E(Mv1,_.Zw);_.L=Mv1.prototype;_.L.connect=function(I,y,D){this.handler.connect(I,y,D)};
_.L.disconnect=function(I){this.handler.disconnect(I)};
_.L.reconnect=function(){this.handler.reconnect()};
_.L.getDeviceId=function(){return this.handler.getDeviceId()};
_.L.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.L.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.L.JSC$20000_onOpened=function(){this.dispatchEvent("channelOpened");var I=this.handler,y=this.currentScreenId;_.$c("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!I.JSC$19986_channel_.useChunked_,sessionId:I.JSC$19986_channel_.sid_,arrayId:I.JSC$19986_channel_.JSC$19900_lastArrayId_});_.$c("yt-remote-session-screen-id",y);I=oea();y=N4Y();_.kA(I,y)||I.push(y);uBe(I);lNR()};
_.L.onClosed=function(){this.dispatchEvent("channelClosed")};
_.L.onMessage=function(I){this.dispatchEvent(new oaa(I))};
_.L.onError=function(I){this.dispatchEvent(new NxR(I?1:0))};
_.L.sendMessage=function(I,y){this.handler.sendMessage(I,y)};
_.L.setLoungeToken=function(I){this.handler.setLoungeToken(I)};
_.L.dispose=function(){this.handler.dispose()};var mXo=function(I,y,D){var F=this;D=D===void 0?function(){return""}:D;
var R=R===void 0?new V71:R;var O=O===void 0?new _.bP:O;this.pathPrefix=I;this.defaultQueryParams=y;this.getXsrfToken=D;this.JSC$20003_pubsub=O;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new R6R(function(){var w;((w=F.channel)==null?void 0:iMR((new txa(w,w.JSC$19868_channel_)).JSC$19878_channel_.forwardChannelRequestPool_))===0&&F.connect(F.connectionParams,F.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20003_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20003_channelOpenedCounter=new Ogy;this.JSC$20003_channelClosedCounter=new Lha;this.JSC$20003_channelMessageReceivedCounter=new wpQ;this.JSC$20003_channelErrorCounter=new ve8};
mXo.prototype.connect=function(I,y){I=I===void 0?{}:I;y=y===void 0?0:y;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=I,this.connectUi=y,CAo(this),(I=_.Pi("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=I: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 jK(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Bxg(this))};
var Bxg=function(I){_.bV(I.channel,"w",function(){I.channelState=3;I.reconnectTimer.reset();I.connectionParams=null;I.connectUi=0;for(var y=_.J(I.nonAckedMessagesOnChannelClosed),D=y.next();!D.done;D=y.next())D=D.value,I.channel&&I.channel.send(D);I.nonAckedMessagesOnChannelClosed=[];I.publish("webChannelOpened");I.JSC$20003_channelOpenedCounter.increment("WEB_CHANNEL")});
_.bV(I.channel,"x",function(){I.channelState=0;I.reconnectTimer.isActive()||I.publish("webChannelClosed");var y,D=(y=I.channel)==null?void 0:PqY(new txa(y,y.JSC$19868_channel_));D&&(I.nonAckedMessagesOnChannelClosed=[].concat(_.Td(D)));I.JSC$20003_channelClosedCounter.increment("WEB_CHANNEL")});
_.bV(I.channel,"z",function(y){var D=y.data;D[0]==="gracefulReconnect"?(I.reconnectTimer.start(),I.channel&&I.channel.close()):I.publish("webChannelMessage",new Fh8(D[0],D[1]));I.lastStatusCode=y.statusCode;I.JSC$20003_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.bV(I.channel,"y",function(){I.lastStatusCode===401||I.reconnectTimer.start();I.publish("webChannelError");I.JSC$20003_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.L=mXo.prototype;_.L.disconnect=function(I){this.disconnectUi=I===void 0?0:I;this.reconnectTimer.stop();CAo(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.L.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.L.reconnect=function(){var I=this.reconnectTimer;I.delay_.fire();I.start()};
_.L.sendMessage=function(I,y){this.channel&&(CAo(this),I=Object.assign({},{_sc:I},y),this.channel.send(I))};
_.L.setLoungeToken=function(I){I||this.reconnectTimer.stop();I?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=I:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var CAo=function(I){var y=I.getXsrfToken();y?I.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=y:delete I.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.L=mXo.prototype;_.L.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.L.publish=function(I){return this.JSC$20003_pubsub.publish.apply(this.JSC$20003_pubsub,[I].concat(_.Td(_.go.apply(1,arguments))))};
_.L.subscribe=function(I,y,D){return this.JSC$20003_pubsub.subscribe(I,y,D)};
_.L.unsubscribe=function(I,y,D){return this.JSC$20003_pubsub.unsubscribe(I,y,D)};
_.L.unsubscribeByKey=function(I){return this.JSC$20003_pubsub.unsubscribeByKey(I)};
_.L.dispose=function(){this.JSC$20003_disposed||(this.JSC$20003_disposed=!0,_.rM(this.JSC$20003_pubsub),this.disconnect(),_.rM(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.L.isDisposed=function(){return this.JSC$20003_disposed};var pp1=function(I){_.Zw.call(this);this.webChannelService=I();this.webChannelService.subscribe("webChannelOpened",this.JSC$20011_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.E(pp1,_.Zw);_.L=pp1.prototype;_.L.connect=function(I,y){this.webChannelService.connect(I,y)};
_.L.disconnect=function(I){this.webChannelService.disconnect(I)};
_.L.reconnect=function(){this.webChannelService.reconnect()};
_.L.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.L.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.L.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.L.JSC$20011_onOpened=function(){this.dispatchEvent("channelOpened")};
_.L.onClosed=function(){this.dispatchEvent("channelClosed")};
_.L.onMessage=function(I){this.dispatchEvent(new oaa(I))};
_.L.onError=function(){this.dispatchEvent(new NxR(this.webChannelService.lastStatusCode===401?1:0))};
_.L.sendMessage=function(I,y){this.webChannelService.sendMessage(I,y)};
_.L.setLoungeToken=function(I){this.webChannelService.setLoungeToken(I)};
_.L.dispose=function(){this.webChannelService.dispose()};var $XQ=Date.now(),mv=null,iga=Array(50),B4g=-1,AtZ=!1;var kN=function(I){I=I===void 0?!1:I;_.B5.call(this);this.pubSub_=new _.bP(I);_.pW(this,this.pubSub_)};
_.EI(kN,_.B5);kN.prototype.subscribe=function(I,y,D){return this.isDisposed()?0:this.pubSub_.subscribe(I,y,D)};
kN.prototype.unsubscribe=function(I,y,D){return this.isDisposed()?!1:this.pubSub_.unsubscribe(I,y,D)};
kN.prototype.unsubscribeByKey=function(I){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(I)};
kN.prototype.publish=function(I,y){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.EI(d9,kN);d9.prototype.getScreens=function(){return this.screens};
d9.prototype.contains=function(I){return!!rtg(this.screens,I)};
d9.prototype.get=function(I){return I?fK(this.screens,I):null};
var ioZ=function(I,y){var D=I.get(y.uuid)||I.get(y.id);if(D)return I=D.name,D.id=y.id||D.id,D.name=y.name,D.token=y.token,D.uuid=y.uuid||D.uuid,D.name!=I;I.screens.push(y);return!0},Ab1=function(I,y){var D=I.screens.length!=y.length;
I.screens=_.Qt(I.screens,function(O){return!!rtg(y,O)});
for(var F=y.length,R=0;R<F;R++)D=ioZ(I,y[R])||D;return D},$ZZ=function(I,y){var D=I.screens.length;
I.screens=_.Qt(I.screens,function(F){return!(F||y?!F!=!y?0:F.id==y.id:1)});
return I.screens.length<D};
d9.prototype.info=function(I){M9(this.JSC$20015_logName_,I)};var boY=function(I,y,D,F,R){kN.call(this);this.JSC$20018_http_=I;this.pairingCode_=y;this.deviceId_=D;this.friendlyName_=F;this.enableShortLivedLoungeToken_=R;this.pollIndex_=0;this.JSC$20018_xhr_=null;this.JSC$20018_timer_=NaN};
_.E(boY,kN);_.L=boY.prototype;_.L.start=function(){!this.JSC$20018_xhr_&&isNaN(this.JSC$20018_timer_)&&this.poll_()};
_.L.stop=function(){this.JSC$20018_xhr_&&(this.JSC$20018_xhr_.abort(),this.JSC$20018_xhr_=null);isNaN(this.JSC$20018_timer_)||(_.Bi(this.JSC$20018_timer_),this.JSC$20018_timer_=NaN)};
_.L.disposeInternal=function(){this.stop();kN.prototype.disposeInternal.call(this)};
_.L.poll_=function(){this.JSC$20018_timer_=NaN;this.JSC$20018_xhr_=_.AG(pK(this.JSC$20018_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.iD)(this.JSC$20020_onSuccess_,this),onError:(0,_.iD)(this.onError_,this),onTimeout:(0,_.iD)(this.JSC$20020_onTimeout_,this)})};
_.L.JSC$20020_onSuccess_=function(I,y){this.JSC$20018_xhr_=null;I=y.screen||{};I.dialId=this.deviceId_;I.name=this.friendlyName_;y=-1;this.enableShortLivedLoungeToken_&&I.shortLivedLoungeToken&&I.shortLivedLoungeToken.value&&I.shortLivedLoungeToken.refreshIntervalMs&&(I.screenIdType="shortLived",I.loungeToken=I.shortLivedLoungeToken.value,y=I.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new YN(I),y)};
_.L.onError_=function(I){this.JSC$20018_xhr_=null;I.status&&I.status==404?this.pollIndex_>=Ho1.length?this.publish("pairingFailed",Error("al")):(I=Ho1[this.pollIndex_],this.JSC$20018_timer_=_.Wi((0,_.iD)(this.poll_,this),I),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+I.status))};
_.L.JSC$20020_onTimeout_=function(){this.JSC$20018_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var Ho1=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.EI(cs,d9);_.L=cs.prototype;_.L.start=function(){aX(this)&&this.publish("screenChange");!_.bX("yt-remote-lounge-token-expiration")&&exR(this);_.Bi(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Wi((0,_.iD)(this.start,this),1E4)};
_.L.add=function(I,y){aX(this);ioZ(this,I);Txa(this,!1);this.publish("screenChange");y(I);I.token||exR(this)};
_.L.remove=function(I,y){var D=aX(this);$ZZ(this,I)&&(Txa(this,!1),D=!0);y(I);D&&this.publish("screenChange")};
_.L.updateName=function(I,y,D,F){var R=aX(this),O=this.get(I.id);O?(O.name!=y&&(O.name=y,Txa(this,!1),R=!0),D(I)):F(Error("dl"));R&&this.publish("screenChange")};
_.L.disposeInternal=function(){_.Bi(this.loungeTokenRefreshTimer_);cs.superClass_.disposeInternal.call(this)};
var exR=function(I){if(I.screens.length){var y=_.T_(I.screens,function(F){return F.id}),D=pK(I.JSC$20022_http_,"/pairing/get_lounge_token_batch");
I.JSC$20022_http_.sendRequest("POST",D,{screen_ids:y.join(",")},(0,_.iD)(I.handleLoungeTokens_,I),(0,_.iD)(I.handleLoungeTokenError_,I))}};
cs.prototype.handleLoungeTokens_=function(I){aX(this);var y=this.screens.length;I=I&&I.screens||[];for(var D=I.length,F=0;F<D;++F){var R=I[F],O=this.get(R.screenId);O&&(O.token=R.loungeToken,--y)}Txa(this,!y);y&&M9(this.JSC$20015_logName_,"Missed "+y+" lounge tokens.")};
cs.prototype.handleLoungeTokenError_=function(I){M9(this.JSC$20015_logName_,"Requesting lounge tokens failed: "+I)};
var aX=function(I){if(_.l("deprecate_pair_servlet_enabled"))return Ab1(I,[]);var y=WbZ(G41());y=_.Qt(y,function(D){return!D.uuid});
return Ab1(I,y)},Txa=function(I,y){Q01(_.T_(I.screens,axa));
y&&XpY()};var YV=function(I,y){kN.call(this);this.getScreensToCheck_=y;y=(y=_.bX("yt-remote-online-screen-ids")||"")?y.split(","):[];for(var D={},F=this.getScreensToCheck_(),R=F.length,O=0;O<R;++O){var w=F[O].id;D[w]=_.kA(y,w)}this.screenIdSet_=D;this.JSC$20025_http_=I;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;spg("Initialized with "+(0,_.O7)(this.screenIdSet_))};
_.E(YV,kN);YV.prototype.isOnline=function(I){return!!this.screenIdSet_[I]};
YV.prototype.start=function(){var I=parseInt(_.bX("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.q0()-144E5<I?0:I)?VHR(this):(this.fastCheckEndTime_=_.q0()+3E5,_.$c("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
YV.prototype.isEmpty=function(){return _.e$.isEmpty(this.screenIdSet_)};
YV.prototype.update=function(){spg("Updating availability on schedule.");var I=this.getScreensToCheck_(),y=_.e$.filter(this.screenIdSet_,function(D,F){return D&&!!fK(I,F)},this);
ZoY(this,y)};
var gay=function(I,y,D){var F=pK(I.JSC$20025_http_,"/pairing/get_screen_availability");I.JSC$20025_http_.sendRequest("POST",F,{lounge_token:y.token},(0,_.iD)(function(R){R=R.screens||[];for(var O=R.length,w=0;w<O;++w)if(R[w].loungeToken==y.token){D(R[w].status=="online");return}D(!1)},I),(0,_.iD)(function(){D(!1)},I))};
YV.prototype.disposeInternal=function(){_.Bi(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);kN.prototype.disposeInternal.call(this)};
var ZoY=function(I,y){a:if(_.e$.getCount(y)!=_.e$.getCount(I.screenIdSet_))var D=!1;else{D=_.e$.getKeys(y);for(var F=D.length,R=0;R<F;++R)if(!I.screenIdSet_[D[R]]){D=!1;break a}D=!0}D||(spg("Updated online screens: "+(0,_.O7)(I.screenIdSet_)),I.screenIdSet_=y,I.publish("screenChange"));IHe(I)},VHR=function(I){isNaN(I.refreshTimer_)||_.Bi(I.refreshTimer_);
I.refreshTimer_=_.Wi((0,_.iD)(I.requestScreenAvailability_,I),I.fastCheckEndTime_>0&&I.fastCheckEndTime_<_.q0()?2E4:1E4)};
YV.prototype.requestScreenAvailability_=function(){_.Bi(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var I=yHG(this);if(_.e$.getCount(I)){var y=pK(this.JSC$20025_http_,"/pairing/get_screen_availability"),D={lounge_token:_.e$.getKeys(I).join(",")};this.currentRequest_=this.JSC$20025_http_.sendRequest("POST",y,D,(0,_.iD)(this.onScreenAvailability_,this,I),(0,_.iD)(this.onScreenAvailabilityError_,this))}else ZoY(this,{}),VHR(this)};
YV.prototype.onScreenAvailability_=function(I,y){this.currentRequest_=null;var D=_.e$.getKeys(yHG(this));if(_.sq(D,_.e$.getKeys(I))){y=y.screens||[];D={};for(var F=y.length,R=0;R<F;++R)D[I[y[R].loungeToken]]=y[R].status=="online";ZoY(this,D);VHR(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
YV.prototype.onScreenAvailabilityError_=function(I){this.warn_("Screen availability failed: "+I);this.currentRequest_=null;VHR(this)};
var spg=function(I){M9("OnlineScreenService",I)};
YV.prototype.warn_=function(I){M9("OnlineScreenService",I)};
var yHG=function(I){var y={};_.hG(I.getScreensToCheck_(),function(D){D.token?y[D.token]=D.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return y},IHe=function(I){I=_.e$.getKeys(_.e$.filter(I.screenIdSet_,function(y){return y}));
I.sort(_.z4q);I.length?_.$c("yt-remote-online-screen-ids",I.join(","),60):_.HF("yt-remote-online-screen-ids")};_.EI(Ws,d9);_.L=Ws.prototype;_.L.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.L.add=function(I,y,D){this.localScreenService_.add(I,y,D)};
_.L.remove=function(I,y,D){this.localScreenService_.remove(I,y,D);this.onlineScreenService_.update()};
_.L.updateName=function(I,y,D,F){this.localScreenService_.contains(I)?this.localScreenService_.updateName(I,y,D,F):(I="Updating name of unknown screen: "+I.name,M9(this.JSC$20015_logName_,I),F(Error(I)))};
_.L.getScreens=function(I){return I?this.screens:dMa(this.screens,_.Qt(this.automaticScreens_,function(y){return!this.contains(y)},this))};
_.L.JSC$20030_getOnlineScreens=function(){return _.Qt(this.getScreens(!0),function(I){return this.onlineScreenService_.isOnline(I.id)},this)};
var Fia=function(I,y,D,F,R,O){I.info("getAutomaticScreenByIds "+D+" / "+y);D||(D=I.deviceToScreenId_[y]);var w=I.getScreens(),v=D?fK(w,D):null;D&&(I.disableAutomaticScreenCache_||v)||(v=fK(w,y));if(v){v.uuid=y;var P=fd(I,v);gay(I.onlineScreenService_,P,function(K){R(K?P:null)})}else D?D78(I,D,(0,_.iD)(function(K){var r=fd(this,new YN({name:F,
screenId:D,loungeToken:K,dialId:y||""}));gay(this.onlineScreenService_,r,function(N){R(N?r:null)})},I),O):R(null)};
Ws.prototype.JSC$20030_getScreenByPollingPairingCode=function(I,y,D,F,R,O){var w=this;this.info("getDialScreenByPairingCode "+I+" / "+y);var v=new boY(this.JSC$20028_http_,I,y,D,F);v.subscribe("pairingComplete",function(P,K){_.rM(v);R(fd(w,P),K)});
v.subscribe("pairingFailed",function(P){_.rM(v);O(P)});
v.start();return(0,_.iD)(v.stop,v)};
var RhZ=function(I,y){for(var D=I.screens.length,F=0;F<D;++F)if(I.screens[F].name==y)return I.screens[F];return null};
Ws.prototype.JSC$20030_getScreenByPairingCode=function(I,y,D,F){_.AG(pK(this.JSC$20028_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:I},timeout:5E3,onSuccess:(0,_.iD)(function(R,O){R=new YN(O.screen||{});if(!R.name||RhZ(this,R.name)){a:{O=R.name;for(var w=2,v=y(O,w);RhZ(this,v);){w++;if(w>20)break a;v=y(O,w)}O=v}R.name=O}D(fd(this,R))},this),
onError:(0,_.iD)(function(R){F(Error("el`"+R.status))},this),
onTimeout:(0,_.iD)(function(){F(Error("fl"))},this)})};
var OqR=function(I,y,D){gay(I.onlineScreenService_,y,D)};
Ws.prototype.disposeInternal=function(){_.rM(this.localScreenService_);_.rM(this.onlineScreenService_);Ws.superClass_.disposeInternal.call(this)};
var D78=function(I,y,D,F){I.info("requestLoungeToken_ for "+y);var R={postParams:{screen_ids:y},method:"POST",context:I,onSuccess:function(O,w){O=w&&w.screens||[];O[0]&&O[0].screenId==y?D(O[0].loungeToken):F(Error("gl"))},
onError:function(){F(Error("hl"))}};
_.AG(pK(I.JSC$20028_http_,"/pairing/get_lounge_token_batch"),R)},Lig=function(I){I.screens=I.localScreenService_.getScreens();
for(var y=_.e$.transpose(I.deviceToScreenId_),D=I.screens.length,F=0;F<D;++F){var R=I.screens[F];R.uuid=y[R.id]||""}I.info("Updated manual screens: "+bg8(I.screens))};
Ws.prototype.handleScreenChange_=function(){Lig(this);this.publish("screenChange");this.onlineScreenService_.update()};
var HgC=function(I){JHG(I);I.localScreenService_=new cs(I.JSC$20028_http_);I.localScreenService_.subscribe("screenChange",(0,_.iD)(I.handleScreenChange_,I));Lig(I);I.disableAutomaticScreenCache_||(I.automaticScreens_=WbZ(_.bX("yt-remote-automatic-screen-cache")||[]));JHG(I);I.info("Initializing automatic screens: "+bg8(I.automaticScreens_));I.onlineScreenService_=new YV(I.JSC$20028_http_,(0,_.iD)(I.getScreens,I,!0));I.onlineScreenService_.subscribe("screenChange",(0,_.iD)(function(){this.publish("onlineScreenChange")},
I))},fd=function(I,y){var D=I.get(y.id);
D?(D.uuid=y.uuid,y=D):((D=fK(I.automaticScreens_,y.uuid))?(D.id=y.id,D.token=y.token,y=D):I.automaticScreens_.push(y),I.disableAutomaticScreenCache_||w38(I));JHG(I);I.deviceToScreenId_[y.uuid]=y.id;_.$c("yt-remote-device-id-map",I.deviceToScreenId_,31536E3);return y},w38=function(I){I=_.Qt(I.automaticScreens_,function(y){return y.idType!="shortLived"});
_.$c("yt-remote-automatic-screen-cache",_.T_(I,axa))},JHG=function(I){I.deviceToScreenId_=_.bX("yt-remote-device-id-map")||{}};
Ws.prototype.dispose=Ws.prototype.dispose;_.EI(CK,kN);var nd=function(I,y){I.screen_=y;I.publish("sessionScreen",I.screen_)},vJT=function(I,y){I.screen_&&(I.screen_.token=y,fd(I.JSC$20032_screenService_,I.screen_));
I.publish("sessionScreen",I.screen_)};
CK.prototype.onSessionStopped=function(I){this.isDisposed()||(I&&(pd(this,""+I),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
CK.prototype.info=function(I){M9(this.JSC$20032_logName_,I)};
var pd=function(I,y){M9(I.JSC$20032_logName_,y)};
CK.prototype.JSC$20034_getCastSession=function(){return null};
CK.prototype.setDisplayStatus=function(I){var y=this.receiver_;I?(y.displayStatus=new chrome.cast.ReceiverDisplayStatus(I,[]),y.displayStatus.showStop=!0):y.displayStatus=null;chrome.cast.setReceiverDisplayStatus(y,(0,_.iD)(function(){this.info("Updated receiver status for "+y.friendlyName+": "+I)},this),(0,_.iD)(function(){pd(this,"Failed to update receiver status for: "+y.friendlyName)},this))};
CK.prototype.disposeInternal=function(){this.setDisplayStatus("");CK.superClass_.disposeInternal.call(this)};var m0=function(I,y,D){CK.call(this,I,y,"CastSession");var F=this;this.config_=D;this.JSC$20037_session_=null;this.JSC$20037_boundSessionUpdate_=(0,_.iD)(this.JSC$20039_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.iD)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Wi(function(){Shg(F,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20037_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20037_isInitLoungeToken_=!1;this.JSC$20037_lastLoungeTokenRefreshError_="unknown"};
_.E(m0,CK);_.L=m0.prototype;
_.L.setCastSession=function(I){if(this.JSC$20037_session_){if(this.JSC$20037_session_==I)return;pd(this,"Overriding cast session with new session object");tce(this);this.JSC$20037_isInitLoungeToken_=!1;this.JSC$20037_lastLoungeTokenRefreshError_="unknown";this.JSC$20037_session_.removeUpdateListener(this.JSC$20037_boundSessionUpdate_);this.JSC$20037_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20037_session_=I;this.JSC$20037_session_.addUpdateListener(this.JSC$20037_boundSessionUpdate_);this.JSC$20037_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);PNg(this,"getMdxSessionStatus")};
_.L.launchWithParams=function(I){this.info("launchWithParams no-op for Cast: "+(0,_.O7)(I))};
_.L.stop=function(){if(this.JSC$20037_session_)this.JSC$20037_session_.stop((0,_.iD)(function(){this.onSessionStopped()},this),(0,_.iD)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.L.setDisplayStatus=function(){};
_.L.disposeInternal=function(){this.info("disposeInternal");tce(this);this.JSC$20037_session_&&(this.JSC$20037_session_.removeUpdateListener(this.JSC$20037_boundSessionUpdate_),this.JSC$20037_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20037_session_=null;CK.prototype.disposeInternal.call(this)};
var U71=function(I,y){_.Bi(I.getLoungeTokenTimeoutKey_);I.getLoungeTokenTimeoutKey_=0;y==0?Kia(I):I.getLoungeTokenTimeoutKey_=_.Wi(function(){Kia(I)},y)},Kia=function(I){PNg(I,"getLoungeToken");
_.Bi(I.onLoungeTokenTimeoutKey_);I.onLoungeTokenTimeoutKey_=_.Wi(function(){rHe(I,null)},3E4)},PNg=function(I,y){I.info("sendYoutubeMessage_: "+y+" "+(0,_.O7)(void 0));
var D={};D.type=y;I.JSC$20037_session_?I.JSC$20037_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",D,function(){},(0,_.iD)(function(){pd(this,"Failed to send message: "+y+".")},I)):pd(I,"Sending yt message without session: "+(0,_.O7)(D))};
m0.prototype.onYoutubeMessage_=function(I,y){if(!this.isDisposed())if(y)if(y=_.b5(y),_.b_(y))switch(I=""+y.type,y=y.data||{},this.info("onYoutubeMessage_: "+I+" "+(0,_.O7)(y)),I){case "mdxSessionStatus":Shg(this,y);break;case "loungeToken":rHe(this,y);break;default:pd(this,"Unknown youtube message: "+I)}else pd(this,"Unable to parse message.");else pd(this,"No data in message.")};
var jx1=function(I,y){if(y)I.info("onConnectedScreenId_: Received screenId: "+y),I.screen_&&I.screen_.id==y||I.getScreen_(y,function(D){nd(I,D)},function(){return I.onSessionStopped()},5);
else I.onSessionStopped(Error("kl"))},N_Y=function(I,y,D){I.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(y));
var F=new YN(y);oJg(I,F,function(R){R?(I.JSC$20037_isInitLoungeToken_=!0,fd(I.JSC$20032_screenService_,F),nd(I,F),I.JSC$20037_lastLoungeTokenRefreshError_="unknown",U71(I,D)):(_.UJ(Error("ll`"+JSON.stringify(y))),I.onSessionStopped())},5)},Shg=function(I,y){_.Bi(I.sessionStatusTimeoutKey_);
I.sessionStatusTimeoutKey_=0;if(y)I.config_.enableCastLoungeToken&&y.loungeToken?y.deviceId?I.screen_&&I.screen_.uuid==y.deviceId||(y.loungeTokenRefreshIntervalMs?N_Y(I,{name:I.receiver_.friendlyName,screenId:y.screenId,loungeToken:y.loungeToken,dialId:y.deviceId,screenIdType:"shortLived"},y.loungeTokenRefreshIntervalMs):(_.UJ(Error("nl`"+JSON.stringify(y))),jx1(I,y.screenId))):(_.UJ(Error("ml`"+JSON.stringify(y))),jx1(I,y.screenId)):jx1(I,y.screenId);else I.onSessionStopped(Error("kl"))},rHe=function(I,
y){_.Bi(I.onLoungeTokenTimeoutKey_);
I.onLoungeTokenTimeoutKey_=0;var D=null;if(y)if(y.loungeToken){var F;((F=I.screen_)==null?void 0:F.token)==y.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";else D="noLoungeTokenResponse";D?(I.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(y)+", error: "+D)),I.JSC$20037_lastLoungeTokenRefreshError_=D,U71(I,3E4)):(vJT(I,y.loungeToken),I.JSC$20037_isInitLoungeToken_=!1,I.JSC$20037_lastLoungeTokenRefreshError_="unknown",U71(I,y.loungeTokenRefreshIntervalMs))};
m0.prototype.getScreen_=function(I,y,D,F){_.Bi(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Fia(this.JSC$20032_screenService_,this.receiver_.label,I,this.receiver_.friendlyName,(0,_.iD)(function(R){R?y(R):F>=0?(pd(this,"Screen "+I+" appears to be offline. "+F+" retries left."),this.getScreenTimeoutKey_=_.Wi((0,_.iD)(this.getScreen_,this,I,y,D,F-1),300)):D(Error("ol"))},this),D)};
var oJg=function(I,y,D,F){_.Bi(I.JSC$20037_checkScreenAvailabilityTimeoutKey_);I.JSC$20037_checkScreenAvailabilityTimeoutKey_=0;OqR(I.JSC$20032_screenService_,y,function(R){R||F<0?D(R):I.JSC$20037_checkScreenAvailabilityTimeoutKey_=_.Wi(function(){oJg(I,y,D,F-1)},300)})};
m0.prototype.JSC$20034_getCastSession=function(){return this.JSC$20037_session_};
m0.prototype.JSC$20039_onSessionUpdate_=function(I){this.isDisposed()||I||(pd(this,"Cast session died."),this.onSessionStopped())};
var tce=function(I){_.Bi(I.getScreenTimeoutKey_);I.getScreenTimeoutKey_=0;_.Bi(I.JSC$20037_checkScreenAvailabilityTimeoutKey_);I.JSC$20037_checkScreenAvailabilityTimeoutKey_=0;_.Bi(I.sessionStatusTimeoutKey_);I.sessionStatusTimeoutKey_=0;_.Bi(I.onLoungeTokenTimeoutKey_);I.onLoungeTokenTimeoutKey_=0;_.Bi(I.getLoungeTokenTimeoutKey_);I.getLoungeTokenTimeoutKey_=0};var Ms=function(I,y,D,F){CK.call(this,I,y,"DialSession");this.config_=F;this.JSC$20041_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20041_theme_=D;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20041_deferredLaunchDeadlineTimer_=NaN;this.JSC$20041_boundSessionUpdate_=(0,_.iD)(this.JSC$20043_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20041_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20041_isInitLoungeToken_=!1;this.JSC$20041_lastLoungeTokenRefreshError_="unknown"};
_.E(Ms,CK);Ms.prototype.setCastSession=function(I){this.JSC$20041_session_=I;this.JSC$20041_session_.addUpdateListener(this.JSC$20041_boundSessionUpdate_)};
Ms.prototype.launchWithParams=function(I){this.connectData_=I;this.deferredLaunch_()};
Ms.prototype.stop=function(){hho(this);if(this.JSC$20041_session_)this.JSC$20041_session_.stop((0,_.iD)(this.onSessionStopped,this,null),(0,_.iD)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Ms.prototype.disposeInternal=function(){hho(this);this.JSC$20041_session_&&this.JSC$20041_session_.removeUpdateListener(this.JSC$20041_boundSessionUpdate_);this.JSC$20041_session_=null;CK.prototype.disposeInternal.call(this)};
var x7a=function(I){var y;return!!(I.config_.enableDialLoungeToken&&((y=I.JSC$20041_session_)==null?0:y.getDialAppInfo))},uFy=function(I){I.cancelPolling_=I.JSC$20032_screenService_.JSC$20030_getScreenByPollingPairingCode(I.reversePairingCode_,I.receiver_.label,I.receiver_.friendlyName,x7a(I),function(y,D){I.cancelPolling_=function(){};
I.JSC$20041_isInitLoungeToken_=!0;nd(I,y);y.idType=="shortLived"&&D>0&&lHY(I,D)},function(y){I.cancelPolling_=function(){};
I.onSessionStopped(y)})};
Ms.prototype.JSC$20043_onSessionUpdate_=function(I){this.isDisposed()||I||(pd(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var qh1=function(I){var y={};y.pairingCode=I.reversePairingCode_;y.theme=I.JSC$20041_theme_;ne1()&&(y.env_useStageMdx=1);return _.$f(y)},EJZ=function(I){return new Promise(function(y){I.reversePairingCode_=Khy();
if(I.connectData_){var D=new chrome.cast.DialLaunchResponse(!0,qh1(I));y(D);uFy(I)}else I.deferredLaunch_=function(){_.Bi(I.JSC$20041_deferredLaunchDeadlineTimer_);I.deferredLaunch_=function(){};
I.JSC$20041_deferredLaunchDeadlineTimer_=NaN;var F=new chrome.cast.DialLaunchResponse(!0,qh1(I));y(F);uFy(I)},I.JSC$20041_deferredLaunchDeadlineTimer_=_.Wi(function(){I.deferredLaunch_()},100)})},X31=function(I,y,D){I.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(y));
var F=new YN(y);return(new Promise(function(R){Gla(I,F,function(O){O?(I.JSC$20041_isInitLoungeToken_=!0,fd(I.JSC$20032_screenService_,F),nd(I,F),lHY(I,D)):_.UJ(Error("ql`"+JSON.stringify(y)));R(O)},5)})).then(function(R){return R?new chrome.cast.DialLaunchResponse(!1):EJZ(I)})},QxZ=function(I,y){var D=I.launchData_.receiver.label,F=I.receiver_.friendlyName;
return(new Promise(function(R){Fia(I.JSC$20032_screenService_,D,y,F,function(O){O&&O.token&&nd(I,O);R(O)},function(O){pd(I,"Failed to get DIAL screen: "+O);
R(null)})})).then(function(R){return R&&R.token?new chrome.cast.DialLaunchResponse(!1):EJZ(I)})},Gla=function(I,y,D,F){_.Bi(I.JSC$20041_checkScreenAvailabilityTimeoutKey_);
I.JSC$20041_checkScreenAvailabilityTimeoutKey_=0;OqR(I.JSC$20032_screenService_,y,function(R){R||F<0?D(R):I.JSC$20041_checkScreenAvailabilityTimeoutKey_=_.Wi(function(){Gla(I,y,D,F-1)},300)})},lHY=function(I,y){I.info("getDialAppInfoWithTimeout_ "+y);
x7a(I)&&(_.Bi(I.getDialAppInfoTimeoutKey_),I.getDialAppInfoTimeoutKey_=0,y==0?Yh8(I):I.getDialAppInfoTimeoutKey_=_.Wi(function(){Yh8(I)},y))},Yh8=function(I){x7a(I)&&I.JSC$20041_session_.getDialAppInfo(function(y){I.info("getDialAppInfo dialLaunchData: "+JSON.stringify(y));
y=y.extraData||{};var D=null;if(y.loungeToken){var F;((F=I.screen_)==null?void 0:F.token)==y.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";D?(I.JSC$20041_lastLoungeTokenRefreshError_=D,lHY(I,3E4)):(I.JSC$20041_isInitLoungeToken_=!1,I.JSC$20041_lastLoungeTokenRefreshError_="unknown",vJT(I,y.loungeToken),lHY(I,y.loungeTokenRefreshIntervalMs))},function(y){I.info("getDialAppInfo error: "+y);
I.JSC$20041_lastLoungeTokenRefreshError_="noLoungeTokenResponse";lHY(I,3E4)})},hho=function(I){_.Bi(I.JSC$20041_checkScreenAvailabilityTimeoutKey_);
I.JSC$20041_checkScreenAvailabilityTimeoutKey_=0;_.Bi(I.getDialAppInfoTimeoutKey_);I.getDialAppInfoTimeoutKey_=0;I.cancelPolling_();I.cancelPolling_=function(){};
_.Bi(I.JSC$20041_deferredLaunchDeadlineTimer_)};var zX=function(I,y){CK.call(this,I,y,"ManualSession");this.JSC$20045_deferredLaunchDeadlineTimer_=_.Wi((0,_.iD)(this.launchWithParams,this,null),150)};
_.E(zX,CK);zX.prototype.stop=function(){this.onSessionStopped()};
zX.prototype.setCastSession=function(){};
zX.prototype.launchWithParams=function(){_.Bi(this.JSC$20045_deferredLaunchDeadlineTimer_);this.JSC$20045_deferredLaunchDeadlineTimer_=NaN;var I=fK(this.JSC$20032_screenService_.getScreens(),this.receiver_.label);if(I)nd(this,I);else this.onSessionStopped(Error("rl"))};
zX.prototype.disposeInternal=function(){_.Bi(this.JSC$20045_deferredLaunchDeadlineTimer_);this.JSC$20045_deferredLaunchDeadlineTimer_=NaN;CK.prototype.disposeInternal.call(this)};var $N=function(I,y){kN.call(this);this.config_=y;this.JSC$20048_screenService_=I;this.JSC$20048_appId_=y.appId||"233637DE";this.JSC$20048_theme_=y.theme||"cl";this.disableDial_=y.disableCastApi||!1;this.forceMirroring_=y.forceMirroring||!1;this.JSC$20048_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.iD)(this.onReceiverAction_,this)};
_.E($N,kN);
$N.prototype.init=function(I,y){chrome.cast.timeout.requestSession=3E4;var D=new chrome.cast.SessionRequest(this.JSC$20048_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.l("desktop_enable_cast_connect")&&(D.androidReceiverCompatible=!0);this.disableDial_||(D.dialRequest=new chrome.cast.DialRequest("YouTube"));var F=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;I=I||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var R=(0,_.iD)(this.onReceiverUpdated_,this);
D=new chrome.cast.ApiConfig(D,(0,_.iD)(this.onSessionEstablished_,this),R,F,I);D.customDialLaunchCallback=(0,_.iD)(this.onDialLaunchRequested_,this);chrome.cast.initialize(D,(0,_.iD)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),ctC(),this.JSC$20048_screenService_.subscribe("onlineScreenChange",(0,_.iD)(this.JSC$20050_onScreenChange_,this)),this.customReceivers_=fHo(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.iD)(function(O){this.warn_("Failed to set initial custom receivers: "+
(0,_.O7)(O))},this)),this.publish("yt-remote-cast2-availability-change",nJe(this)),y(!0))},this),(0,_.iD)(function(O){this.warn_("Failed to initialize API: "+(0,_.O7)(O));
y(!1)},this))};
$N.prototype.setConnectedScreenStatus=function(I,y){kV("Setting connected screen ID: "+I+" -> "+y);if(this.JSC$20048_session_){var D=this.JSC$20048_session_.screen_;if(!I||D&&D.id!=I)kV("Unsetting old screen status: "+this.JSC$20048_session_.receiver_.friendlyName),dk(this,null)}if(I&&y){if(!this.JSC$20048_session_){I=fK(this.JSC$20048_screenService_.getScreens(),I);if(!I){kV("setConnectedScreenStatus: Unknown screen.");return}if(I.idType=="shortLived"){kV("setConnectedScreenStatus: Screen with id type to be short lived.");
return}D=p3Z(this,I);D||(kV("setConnectedScreenStatus: Connected receiver not custom..."),D=new chrome.cast.Receiver(I.uuid?I.uuid:I.id,I.name),D.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(D),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.iD)(function(F){this.warn_("Failed to set initial custom receivers: "+(0,_.O7)(F))},this)));
kV("setConnectedScreenStatus: new active receiver: "+D.friendlyName);dk(this,new zX(this.JSC$20048_screenService_,D),!0)}this.JSC$20048_session_.setDisplayStatus(y)}else kV("setConnectedScreenStatus: no screen.")};
var p3Z=function(I,y){return y?HL(I.customReceivers_,function(D){return j0R(y,D.label)},I):null};
$N.prototype.setLaunchParams=function(I){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20048_session_?this.JSC$20048_session_.launchWithParams(I):this.warn_("Setting connection data without a session")};
$N.prototype.JSC$20050_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20048_session_?(this.JSC$20048_session_.stop(),dk(this,null)):kV("Stopping non-existing session")};
$N.prototype.requestSession=function(){chrome.cast.requestSession((0,_.iD)(this.onSessionEstablished_,this),(0,_.iD)(this.onSessionRequestFailed_,this))};
$N.prototype.disposeInternal=function(){this.JSC$20048_screenService_.unsubscribe("onlineScreenChange",(0,_.iD)(this.JSC$20050_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.WH(_.jF("yt.mdx.remote.debug.handlers_")||[],k4y);_.rM(this.JSC$20048_session_);kN.prototype.disposeInternal.call(this)};
var kV=function(I){M9("Controller",I)};
$N.prototype.warn_=function(I){M9("Controller",I)};
var k4y=function(I){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(I)},nJe=function(I){return I.hasCastReceiver_||!!I.customReceivers_.length||!!I.JSC$20048_session_},dk=function(I,y,D){y!=I.JSC$20048_session_&&(_.rM(I.JSC$20048_session_),(I.JSC$20048_session_=y)?(D?I.publish("yt-remote-cast2-receiver-resumed",y.receiver_):I.publish("yt-remote-cast2-receiver-selected",y.receiver_),y.subscribe("sessionScreen",(0,_.iD)(I.onSessionScreen_,I,y)),y.subscribe("sessionFailed",
function(){return m7T(I,y)}),y.screen_?I.publish("yt-remote-cast2-session-change",y.screen_):D&&I.JSC$20048_session_.launchWithParams(null)):I.publish("yt-remote-cast2-session-change",null))},m7T=function(I,y){I.JSC$20048_session_==y&&I.publish("yt-remote-cast2-session-failed")};
_.L=$N.prototype;_.L.onSessionScreen_=function(I,y){this.JSC$20048_session_==I&&(y||dk(this,null),this.publish("yt-remote-cast2-session-change",y))};
_.L.onReceiverAction_=function(I,y){if(!this.isDisposed())if(I)switch(I.friendlyName=chrome.cast.unescape(I.friendlyName),kV("onReceiverAction_ "+I.label+" / "+I.friendlyName+"-- "+y),y){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20048_session_)if(this.JSC$20048_session_.receiver_.label!=I.label)kV("onReceiverAction_: Stopping active receiver: "+this.JSC$20048_session_.receiver_.friendlyName),this.JSC$20048_session_.stop();else{kV("onReceiverAction_: Casting to active receiver.");this.JSC$20048_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20048_session_.screen_);break}switch(I.receiverType){case chrome.cast.ReceiverType.CUSTOM:dk(this,new zX(this.JSC$20048_screenService_,I));break;case chrome.cast.ReceiverType.DIAL:dk(this,new Ms(this.JSC$20048_screenService_,I,this.JSC$20048_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:dk(this,new m0(this.JSC$20048_screenService_,I,this.config_));break;default:this.warn_("Unknown receiver type: "+I.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20048_session_&&
this.JSC$20048_session_.receiver_.label==I.label?this.JSC$20048_session_.stop():this.warn_("Stopping receiver w/o session: "+I.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.L.onDialLaunchRequested_=function(I){if(this.isDisposed())return Promise.reject(Error("sl"));var y=I.receiver;y.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+y.friendlyName),y.receiverType=chrome.cast.ReceiverType.DIAL);var D=this.JSC$20048_session_?this.JSC$20048_session_.receiver_:null;if(!D||D.label!=y.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+y.friendlyName),Promise.reject(Error("tl"));if(D&&D.label==y.label&&D.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20048_session_.screen_)return kV("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20048_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+D.receiverType+'" to "dial" for '+y.friendlyName);dk(this,new Ms(this.JSC$20048_screenService_,y,this.JSC$20048_theme_,this.config_))}y=this.JSC$20048_session_;y.launchData_=I;y.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(I=y.launchData_.extraData||{},D=I.screenId||null,x7a(y)&&I.loungeToken?I.loungeTokenRefreshIntervalMs?I=X31(y,{name:y.receiver_.friendlyName,screenId:I.screenId,loungeToken:I.loungeToken,dialId:y.launchData_.receiver.label,screenIdType:"shortLived"},I.loungeTokenRefreshIntervalMs):(_.UJ(Error("pl`"+JSON.stringify(I))),I=QxZ(y,D)):I=QxZ(y,D)):I=EJZ(y);return I};
_.L.onSessionEstablished_=function(I){var y=this;if(!this.isDisposed()&&!this.forceMirroring_){kV("New cast session ID: "+I.sessionId);var D=I.receiver;if(D.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20048_session_)if(D.receiverType==chrome.cast.ReceiverType.CAST)kV("Got resumed cast session before resumed mdx connection."),D.friendlyName=chrome.cast.unescape(D.friendlyName),dk(this,new m0(this.JSC$20048_screenService_,D,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var F=this.JSC$20048_session_.receiver_,R=fK(this.JSC$20048_screenService_.getScreens(),F.label);R&&j0R(R,D.label)&&F.receiverType!=chrome.cast.ReceiverType.CAST&&D.receiverType==chrome.cast.ReceiverType.CAST&&(kV("onSessionEstablished_: manual to cast session change "+D.friendlyName),_.rM(this.JSC$20048_session_),this.JSC$20048_session_=new m0(this.JSC$20048_screenService_,D,this.config_),this.JSC$20048_session_.subscribe("sessionScreen",(0,_.iD)(this.onSessionScreen_,this,this.JSC$20048_session_)),
this.JSC$20048_session_.subscribe("sessionFailed",function(){return m7T(y,y.JSC$20048_session_)}),this.JSC$20048_session_.launchWithParams(null));
this.JSC$20048_session_.setCastSession(I)}}};
_.L.JSC$20050_getCastSession=function(){return this.JSC$20048_session_?this.JSC$20048_session_.JSC$20034_getCastSession():null};
_.L.onSessionRequestFailed_=function(I){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.O7)(I)),I.code!=chrome.cast.ErrorCode.CANCEL&&dk(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.L.onReceiverUpdated_=function(I){kV("Receiver availability updated: "+I);if(!this.isDisposed()){var y=nJe(this);this.hasCastReceiver_=I==chrome.cast.ReceiverAvailability.AVAILABLE;nJe(this)!=y&&this.publish("yt-remote-cast2-availability-change",nJe(this))}};
var fHo=function(I){var y=I.JSC$20048_screenService_.JSC$20030_getOnlineScreens(),D=I.JSC$20048_session_&&I.JSC$20048_session_.receiver_;I=_.T_(y,function(F){D&&j0R(F,D.label)&&(D=null);var R=F.uuid?F.uuid:F.id,O=p3Z(this,F);O?(O.label=R,O.friendlyName=F.name):(O=new chrome.cast.Receiver(R,F.name),O.receiverType=chrome.cast.ReceiverType.CUSTOM);return O},I);
D&&(D.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(D=new chrome.cast.Receiver(D.label,D.friendlyName),D.receiverType=chrome.cast.ReceiverType.CUSTOM),I.push(D));return I};
$N.prototype.JSC$20050_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=fHo(this),kV("Updating custom receivers: "+(0,_.O7)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.iD)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",nJe(this)))};
$N.prototype.setLaunchParams=$N.prototype.setLaunchParams;$N.prototype.setConnectedScreenStatus=$N.prototype.setConnectedScreenStatus;$N.prototype.stopSession=$N.prototype.JSC$20050_stopSession;$N.prototype.getCastSession=$N.prototype.JSC$20050_getCastSession;$N.prototype.requestSession=$N.prototype.requestSession;$N.prototype.init=$N.prototype.init;$N.prototype.dispose=$N.prototype.dispose;var McT=_.UI(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),tER=[],Idy=_.Et(McT);var zhe=function(I){I.audioTrackId=null;I.trackData=null;I.playerState=-1;I.hasPrevious=!1;I.hasNext=!1;I.playerTime_=0;I.playerTimeAt_=_.q0();I.seekableStart_=0;I.seekableEnd_=0;I.duration_=0;I.loadedTime=0;I.liveIngestionTime_=NaN;I.isLive_=!1};
_.L=bs.prototype;
_.L.reset=function(I){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;I&&(this.index=I.index,this.listId=I.listId,this.videoId=I.videoId,this.playerState=I.playerState,this.volume=I.volume,this.muted=I.muted,this.audioTrackId=I.audioTrackId,this.trackData=I.trackData,this.hasPrevious=I.hasPrevious,this.hasNext=I.hasNext,this.playerTime_=I.playerTime,this.playerTimeAt_=I.playerTimeAt,this.seekableStart_=I.seekableStart,this.seekableEnd_=I.seekableEnd,this.duration_=I.duration,this.loadedTime=
I.loadedTime,this.liveIngestionTime_=I.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.L.stopPlayer=function(){this.index=-1;this.videoId="";zhe(this)};
_.L.isPlaying=function(){return this.playerState==1};
_.L.isBuffering=function(){return this.playerState==3};
_.L.isAdPlaying=function(){return this.playerState==1081};
var a3=function(I,y){I.playerTime_=y;I.playerTimeAt_=_.q0()},klo=function(I){switch(I.playerState){case 1:case 1081:return(_.q0()-I.playerTimeAt_)/1E3+I.playerTime_;
case -1E3:return 0}return I.playerTime_};
bs.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.q0()-this.playerTimeAt_)/1E3:0):this.duration_};
var d7R=function(I,y,D){var F=I.videoId;I.videoId=y;I.index=D;y!=F&&zhe(I)},aHg=function(I){var y={};
y.index=I.index;y.listId=I.listId;y.videoId=I.videoId;y.playerState=I.playerState;y.volume=I.volume;y.muted=I.muted;y.audioTrackId=I.audioTrackId;y.trackData=_.e$.unsafeClone(I.trackData);y.hasPrevious=I.hasPrevious;y.hasNext=I.hasNext;y.playerTime=I.playerTime_;y.playerTimeAt=I.playerTimeAt_;y.seekableStart=I.seekableStart_;y.seekableEnd=I.seekableEnd_;y.duration=I.duration_;y.loadedTime=I.loadedTime;y.liveIngestionTime=I.liveIngestionTime_;return y};
bs.prototype.clone=function(){return new bs(aHg(this))};var sB=function(I,y){kN.call(this);var D=this;this.state_=0;this.connection_=I;this.contextSubscriptions_=[];this.actionQueue_=new DXy;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.iD)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.iD)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.iD)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.iD)(this.onCloudviewAvailabilityChange_,this);var F=0;I?(F=I.getProxyState(),
F!=3&&(I.subscribe("proxyStateChange",this.setState_,this),cHa(this))):F=3;F!=0&&(y?this.setState_(F):_.Wi(function(){D.setState_(F)},0));
(I=rC1())&&WiC(this,I);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.E(sB,kN);sB.prototype.getState=function(){return this.state_};
sB.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
sB.prototype.reconnect=function(){this.connection_.reconnect()};
var cz=function(I){return new bs(I.connection_.getPlayerContextData())};
_.L=sB.prototype;_.L.play=function(){Wz(this)?(this.castMedia_?this.castMedia_.play(null,_.Hq,CNR(this,"play")):Cd(this,"play"),B_T(this,1,klo(cz(this))),this.publish("remotePlayerChange")):Bz(this,this.play)};
_.L.pause=function(){Wz(this)?(this.castMedia_?this.castMedia_.pause(null,_.Hq,CNR(this,"pause")):Cd(this,"pause"),B_T(this,2,klo(cz(this))),this.publish("remotePlayerChange")):Bz(this,this.pause)};
_.L.seekTo=function(I){if(Wz(this)){if(this.castMedia_){var y=cz(this),D=new chrome.cast.media.SeekRequest;D.currentTime=I;y.isPlaying()||y.isBuffering()?D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(D,_.Hq,CNR(this,"seekTo",{newTime:I}))}else Cd(this,"seekTo",{newTime:I});B_T(this,3,I);this.publish("remotePlayerChange")}else Bz(this,_.de(this.seekTo,I))};
_.L.stop=function(){if(Wz(this)){this.castMedia_?this.castMedia_.stop(null,_.Hq,CNR(this,"stopVideo")):Cd(this,"stopVideo");var I=cz(this);I.stopPlayer();i2(this,I);this.publish("remotePlayerChange")}else Bz(this,this.stop)};
_.L.setVolume=function(I,y){if(Wz(this)){var D=cz(this);if(this.castSession_){if(D.volume!=I){var F=Math.round(I)/100;this.castSession_.setReceiverVolumeLevel(F,(0,_.iD)(function(){zb("set receiver volume: "+F)},this),(0,_.iD)(function(){this.warn_("failed to set receiver volume.")},this))}D.muted!=y&&this.castSession_.setReceiverMuted(y,(0,_.iD)(function(){zb("set receiver muted: "+y)},this),(0,_.iD)(function(){this.warn_("failed to set receiver muted.")},this))}else{var R={volume:I,
muted:y};D.volume!=-1&&(R.delta=I-D.volume);Cd(this,"setVolume",R)}D.muted=y;D.volume=I;i2(this,D)}else Bz(this,_.de(this.setVolume,I,y))};
_.L.setAudioTrack=function(I,y){Wz(this)?(y=y.getLanguageInfo().getId(),Cd(this,"setAudioTrack",{videoId:I,audioTrackId:y}),I=cz(this),I.audioTrackId=y,i2(this,I)):Bz(this,_.de(this.setAudioTrack,I,y))};
_.L.addVideo=function(I){Wz(this)?Cd(this,"addVideo",{videoId:I}):Bz(this,_.de(this.addVideo,I))};
_.L.addPlaylist=function(I){Wz(this)?Cd(this,"addVideos",{listId:I}):Bz(this,_.de(this.addPlaylist,I))};
_.L.addVideos=function(I){I.length==0?this.warn_("Ignore add videos request due to empty list"):Wz(this)?Cd(this,"addVideos",{videoIds:I.join(",")}):Bz(this,_.de(this.addVideos,I))};
_.L.JSC$20060_removeVideo=function(I){Wz(this)?Cd(this,"removeVideo",{videoId:I}):Bz(this,_.de(this.JSC$20060_removeVideo,I))};
_.L.JSC$20060_insertVideo=function(I){Wz(this)?Cd(this,"insertVideo",{videoId:I}):Bz(this,_.de(this.JSC$20060_insertVideo,I))};
_.L.playVideo=function(I,y,D,F,R,O,w){F=F===void 0?null:F;R=R===void 0?null:R;O=O===void 0?null:O;w=w===void 0?null:w;var v=cz(this),P={videoId:I};D!==void 0&&(P.currentIndex=D);d7R(v,I,D||0);y!==void 0&&(a3(v,y),P.currentTime=y);F&&(P.listId=F);R&&(P.playerParams=R);O&&(P.clickTrackingParams=O);w&&(P.locationInfo=(0,_.O7)(w));Cd(this,"setPlaylist",P);F||i2(this,v)};
_.L.nextVideo=function(I,y){if(Wz(this)){if(I&&y){var D=cz(this);d7R(D,I,y);i2(this,D)}Cd(this,"next")}else Bz(this,_.de(this.nextVideo,I,y))};
_.L.clearPlaylist=function(){if(Wz(this)){Cd(this,"clearPlaylist");var I=cz(this);I.reset();i2(this,I);this.publish("remotePlayerChange")}else Bz(this,this.clearPlaylist)};
_.L.dispose=function(){if(this.state_!=3){var I=this.state_;this.state_=3;this.publish("proxyStateChange",I,this.state_)}kN.prototype.dispose.call(this)};
_.L.disposeInternal=function(){iqa(this);this.connection_=null;this.actionQueue_.clear();WiC(this,null);kN.prototype.disposeInternal.call(this)};
var cHa=function(I){_.hG("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(y){this.contextSubscriptions_.push(this.connection_.subscribe(y,_.de(this.onProxyEvent_,y),this))},I)},iqa=function(I){_.hG(I.contextSubscriptions_,function(y){this.connection_.unsubscribeByKey(y)},I);
I.contextSubscriptions_.length=0},Wz=function(I){return I.getState()==1},Bz=function(I,y){I.actionQueue_.getCount()<50&&I.actionQueue_.enqueue(y)},B_T=function(I,y,D){var F=cz(I);
a3(F,D);F.playerState!=-1E3&&(F.playerState=y);i2(I,F)},Cd=function(I,y,D){I.connection_.sendMessage(y,D)},i2=function(I,y){iqa(I);
I.connection_.setPlayerContextData(aHg(y));cHa(I)};
sB.prototype.setState_=function(I){if((I!=this.state_||I==2)&&this.state_!=3&&I!=0){var y=this.state_;this.state_=I;this.publish("proxyStateChange",y,I);if(I==1)for(;!this.actionQueue_.isEmpty();)I=this.actionQueue_,JlT(I),I.front_.pop().apply(this);else I==3&&this.dispose()}};
sB.prototype.onProxyEvent_=function(I,y){this.publish(I,y)};
var WiC=function(I,y){I.castSession_&&(I.castSession_.removeUpdateListener(I.boundCastStatusListener_),I.castSession_.removeMediaListener(I.boundCastMediaListener_),I.onCastMediaChange_(null));I.castSession_=y;if(I.castSession_&&(zb("Setting cast session: "+I.castSession_.sessionId),I.castSession_.addUpdateListener(I.boundCastStatusListener_),I.castSession_.addMediaListener(I.boundCastMediaListener_),I.castSession_.media.length))I.onCastMediaChange_(I.castSession_.media[0])};
sB.prototype.onCastStatusUpdate_=function(I){if(!I)this.onCastMediaChange_(null),WiC(this,null);else if(this.castSession_.receiver.volume){I=this.castSession_.receiver.volume;var y=cz(this),D=Math.round(100*I.level||0);if(y.volume!=D||y.muted!=I.muted)zb("Cast volume update: "+I.level+(I.muted?" muted":"")),y.volume=D,y.muted=!!I.muted,i2(this,y)}};
sB.prototype.onCastMediaChange_=function(I){zb("Cast media: "+!!I);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=I)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),AH1(this),this.publish("remotePlayerChange")};
var AH1=function(I){var y=I.castMedia_.media,D=I.castMedia_.customData;if(y&&D){var F=cz(I);y.contentId!=F.videoId&&zb("Cast changing video to: "+y.contentId);F.videoId=y.contentId;F.playerState=D.playerState;a3(F,I.castMedia_.getEstimatedTime());i2(I,F)}else zb("No cast media video. Ignoring state update.")};
sB.prototype.onCastMediaUpdate_=function(I){if(I)AH1(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
sB.prototype.onCloudviewAvailabilityChange_=function(){var I=rC1();I&&WiC(this,I)};
sB.prototype.warn_=function(I){M9("CP",I)};
var CNR=function(I,y,D){return(0,_.iD)(function(F){this.warn_("Failed to "+y+" with cast v2 channel. Error code: "+F.code);F.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+y+" using MDx browser channel."),Cd(this,y,D))},I)};var Vu=function(I,y,D,F){F=F===void 0?!1:F;kN.call(this);var R=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$20065_http_=I;this.enableConnectWithInitialState_=F;this.listeners_.push(_.fu(window,"beforeunload",function(){R.JSC$20068_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new bs;this.currentScreenId_=y.id;this.currentScreenIdType_=y.idType;this.channelService=z6b(this.JSC$20065_http_,D,this.JSC$20068_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){$78(R)});
this.channelService.listen("channelClosed",function(){AA("Channel closed");isNaN(R.connectTimerId_)?YMR(!0):YMR();R.dispose()});
this.channelService.listen("channelError",function(O){YMR();isNaN(R.getReconnectTimeout_())?(O==1&&R.currentScreenIdType_=="shortLived"&&R.publish("browserChannelAuthError",O),AA("Channel error: "+O+" without reconnection"),R.dispose()):(R.reconnecting_=!0,AA("Channel error: "+O+" with reconnection in "+R.getReconnectTimeout_()+" ms"),bqg(R,2))});
this.channelService.listen("channelMessage",function(O){HqY(R,O)});
this.channelService.setLoungeToken(y.token);this.subscribe("remoteQueueChange",function(){var O=R.playerContext_.videoId;h6R()&&_.$c("yt-remote-session-video-id",O)})};
_.E(Vu,kN);
Vu.prototype.connect=function(I,y){if(y){var D=y.listId,F=y.videoId,R=y.videoIds,O=y.playerParams,w=y.clickTrackingParams,v=y.index,P={videoId:F},K=y.currentTime,r=y.locationInfo;y=y.loopMode;K!==void 0&&(P.currentTime=K<=5?0:K);O&&(P.playerParams=O);r&&(P.locationInfo=r);w&&(P.clickTrackingParams=w);D&&(P.listId=D);R&&R.length>0&&(P.videoIds=R.join(","));v!==void 0&&(P.currentIndex=v);this.enableConnectWithInitialState_&&(P.loopMode=y||"LOOP_MODE_OFF");D&&(this.playerContext_.listId=D);this.playerContext_.videoId=
F;this.playerContext_.index=v||0;this.playerContext_.state=3;a3(this.playerContext_,K);this.autoplayMode_="UNSUPPORTED";D=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";AA("Connecting with "+D+" and params: "+(0,_.O7)(P));this.channelService.connect({method:D,params:(0,_.O7)(P)},I,Eee())}else AA("Connecting without params"),this.channelService.connect({},I,Eee());eh8(this)};
Vu.prototype.setLoungeToken=function(I){this.channelService.setLoungeToken(I)};
Vu.prototype.dispose=function(){this.isDisposed()||(_.fv("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bqg(this,3));kN.prototype.dispose.call(this)};
Vu.prototype.disposeInternal=function(){T_T(this);sxG(this);VcQ(this);_.Bi(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Bi(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.oY4(this.listeners_);this.listeners_.length=0;this.channelService.dispose();kN.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Zq1=function(I){return HL(I.connectedDevices_,function(y){return y.type=="LOUNGE_SCREEN"})},AA=function(I){M9("conn",I)},bqg=function(I,y){I.publish("proxyStateChange",y)},eh8=function(I){I.connectTimerId_=_.Wi(function(){AA("Connecting timeout");
I.JSC$20068_disconnect_(1)},2E4)},T_T=function(I){_.Bi(I.connectTimerId_);
I.connectTimerId_=NaN},VcQ=function(I){_.Bi(I.reconnectedCheckScreenTimeout_);
I.reconnectedCheckScreenTimeout_=NaN},Ice=function(I){sxG(I);
I.playingSyncTimerId_=_.Wi(function(){gJQ(I,"getNowPlaying")},2E4)},sxG=function(I){_.Bi(I.playingSyncTimerId_);
I.playingSyncTimerId_=NaN},$78=function(I){AA("Channel opened");
I.reconnecting_&&(I.reconnecting_=!1,VcQ(I),I.reconnectedCheckScreenTimeout_=_.Wi(function(){AA("Timing out waiting for a screen.");I.JSC$20068_disconnect_(1)},15E3))},Dd1=function(I,y){var D=null;
if(y){var F=Zq1(I);F&&(D={clientName:F.clientName,deviceMake:F.brand,deviceModel:F.model,osVersion:F.osVersion})}_.fv("yt.mdx.remote.remoteClient_",D);y&&(T_T(I),VcQ(I));D=I.channelService.isChannelOpened()&&isNaN(I.connectTimerId_);y==D?y&&(bqg(I,1),gJQ(I,"getSubtitlesTrack")):y?(I.getOtherConnectedRemoteId_()&&I.playerContext_.reset(),bqg(I,1),gJQ(I,"getNowPlaying"),yoa(I)):I.JSC$20068_disconnect_(1)},FoR=function(I,y){var D=y.params.videoId;
delete y.params.videoId;D==I.playerContext_.videoId&&(_.e$.isEmpty(y.params)?I.playerContext_.trackData=null:I.playerContext_.trackData=y.params,I.publish("remotePlayerChange"))},RIZ=function(I,y,D){var F=y.params.videoId||y.params.video_id,R=parseInt(y.params.currentIndex,10);
I.playerContext_.listId=y.params.listId||I.playerContext_.listId;d7R(I.playerContext_,F,R);I.publish("remoteQueueChange",D)},OXy=function(I,y){y.params=y.params||{};
RIZ(I,y,"NOW_PLAYING_MAY_CHANGE");I.onStateChange_(y);I.publish("autoplayDismissed")};
Vu.prototype.onStateChange_=function(I){var y=parseInt(I.params.currentTime||I.params.current_time,10);a3(this.playerContext_,isNaN(y)?0:y);y=parseInt(I.params.state,10);y=isNaN(y)?-1:y;y==-1&&this.playerContext_.playerState==-1E3&&(y=-1E3);this.playerContext_.playerState=y;y=Number(I.params.loadedTime);this.playerContext_.loadedTime=isNaN(y)?0:y;y=Number(I.params.duration);this.playerContext_.duration_=isNaN(y)?0:y;y=this.playerContext_;var D=Number(I.params.liveIngestionTime);y.liveIngestionTime_=
D;y.isLive_=isNaN(D)?!1:!0;y=this.playerContext_;D=Number(I.params.seekableStartTime);I=Number(I.params.seekableEndTime);y.seekableStart_=isNaN(D)?0:D;y.seekableEnd_=isNaN(I)?0:I;this.playerContext_.playerState==1?Ice(this):sxG(this);this.publish("remotePlayerChange")};
Vu.prototype.onAdStateChange_=function(I){if(this.playerContext_.playerState!=-1E3){var y=1085;switch(parseInt(I.params.adState,10)){case 1:y=1081;break;case 2:y=1084;break;case 0:y=1083}this.playerContext_.playerState=y;I=parseInt(I.params.currentTime,10);a3(this.playerContext_,isNaN(I)?0:I);this.publish("remotePlayerChange")}};
var Lo1=function(I,y){var D=y.params.muted=="true";I.playerContext_.volume=parseInt(y.params.volume,10);I.playerContext_.muted=D;I.publish("remotePlayerChange")},JoQ=function(I,y){I.autoplayVideoId_=y.params.videoId;
I.publish("nowAutoplaying",parseInt(y.params.timeout,10))},wNy=function(I,y){I.autoplayVideoId_=y.params.videoId||null;
I.publish("autoplayUpNext",I.autoplayVideoId_)},vHo=function(I,y){I.autoplayMode_=y.params.autoplayMode;
I.publish("autoplayModeChange",I.autoplayMode_);I.autoplayMode_=="DISABLED"&&I.publish("autoplayDismissed")},SFQ=function(I,y){var D=y.params.hasNext=="true";
I.playerContext_.hasPrevious=y.params.hasPrevious=="true";I.playerContext_.hasNext=D;I.publish("previousNextChange")};
Vu.prototype.isCapabilitySupportedOnConnectedDevices_=function(I){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var y=_.J(this.connectedDevices_),D=y.next();!D.done;D=y.next())if(!D.value.capabilities.has(I))return!1;return!0};
var HqY=function(I,y){y=y.message;y.params?AA("Received: action="+y.action+", params="+(0,_.O7)(y.params)):AA("Received: action="+y.action+" {}");switch(y.action){case "loungeStatus":y=_.b5(y.params.devices);I.connectedDevices_=_.T_(y,function(F){return new Qn(F)});
y=!!HL(I.connectedDevices_,function(F){return F.type=="LOUNGE_SCREEN"});
Dd1(I,y);y=I.isCapabilitySupportedOnConnectedDevices_("mlm");I.publish("multiStateLoopEnabled",y);break;case "loungeScreenDisconnected":kUe(I.connectedDevices_,function(F){return F.type=="LOUNGE_SCREEN"});
Dd1(I,!1);break;case "remoteConnected":var D=new Qn(_.b5(y.params.device));HL(I.connectedDevices_,function(F){return F.equals(D)})||_.fCq(I.connectedDevices_,D);
break;case "remoteDisconnected":D=new Qn(_.b5(y.params.device));kUe(I.connectedDevices_,function(F){return F.equals(D)});
break;case "gracefulDisconnect":break;case "playlistModified":RIZ(I,y,"QUEUE_MODIFIED");break;case "nowPlaying":OXy(I,y);break;case "onStateChange":I.onStateChange_(y);break;case "onAdStateChange":I.onAdStateChange_(y);break;case "onVolumeChanged":Lo1(I,y);break;case "onSubtitlesTrackChanged":FoR(I,y);break;case "nowAutoplaying":JoQ(I,y);break;case "autoplayDismissed":I.publish("autoplayDismissed");break;case "autoplayUpNext":wNy(I,y);break;case "onAutoplayModeChanged":vHo(I,y);break;case "onHasPreviousNextChanged":SFQ(I,
y);break;case "requestAssistedSignIn":I.publish("assistedSignInRequested",y.params.authCode);break;case "onLoopModeChanged":I.publish("loopModeChange",y.params.loopMode);break;default:AA("Unrecognized action: "+y.action)}};
_.L=Vu.prototype;_.L.getProxyState_=function(){var I=3;this.isDisposed()||(I=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(I=1):I=2);return I};
_.L.JSC$20068_disconnect_=function(I){AA("Disconnecting with "+I);_.fv("yt.mdx.remote.remoteClient_",null);T_T(this);this.publish("beforeDisconnect",I);I==1&&YMR();this.channelService.disconnect(I);this.dispose()};
_.L.getPlayerContextData_=function(){var I=this.playerContext_;this.clientVideoId_&&(I=this.playerContext_.clone(),d7R(I,this.clientVideoId_,I.index));return aHg(I)};
_.L.setPlayerContextData_=function(I){var y=this,D=new bs(I);D.videoId&&D.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=D.videoId,_.Bi(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Wi(function(){if(y.clientVideoId_){var R=y.clientVideoId_;y.clientVideoId_=null;y.playerContext_.videoId!=R&&gJQ(y,"getNowPlaying")}},5E3));
var F=[];this.playerContext_.listId==D.listId&&this.playerContext_.videoId==D.videoId&&this.playerContext_.index==D.index||F.push("remoteQueueChange");this.playerContext_.playerState==D.playerState&&this.playerContext_.volume==D.volume&&this.playerContext_.muted==D.muted&&klo(this.playerContext_)==klo(D)&&(0,_.O7)(this.playerContext_.trackData)==(0,_.O7)(D.trackData)||F.push("remotePlayerChange");this.playerContext_.reset(I);_.hG(F,function(R){this.publish(R)},this)};
_.L.getOtherConnectedRemoteId_=function(){var I=this.channelService.getDeviceId(),y=HL(this.connectedDevices_,function(D){return D.type=="REMOTE_CONTROL"&&D.id!=I});
return y?y.id:""};
_.L.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.L.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.L.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.L.JSC$20068_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var yoa=function(I){_.Bi(I.idleDisconnectTimerId_);I.idleDisconnectTimerId_=_.Wi(function(){I.JSC$20068_disconnect_(1)},864E5)},gJQ=function(I,y,D){D?AA("Sending: action="+y+", params="+(0,_.O7)(D)):AA("Sending: action="+y);
I.channelService.sendMessage(y,D)};
Vu.prototype.sendMessageWithUserAction_=function(I,y){gJQ(this,I,y);yoa(this)};
Vu.prototype.JSC$20068_getXsrfToken_=function(){var I=_.eF.get("SAPISID","")||_.eF.get("__Secure-1PAPISID",void 0)||"",y=_.eF.get("__Secure-3PAPISID","")||"";if(!I&&!y)return"";I=_.VB(_.CW(I),2);y=_.VB(_.CW(y),2);return _.VB(_.CW(","+I+","+y),2)};
Vu.prototype.subscribe=Vu.prototype.subscribe;Vu.prototype.unsubscribeByKey=Vu.prototype.unsubscribeByKey;Vu.prototype.getProxyState=Vu.prototype.getProxyState_;Vu.prototype.disconnect=Vu.prototype.JSC$20068_disconnect_;Vu.prototype.getPlayerContextData=Vu.prototype.getPlayerContextData_;Vu.prototype.setPlayerContextData=Vu.prototype.setPlayerContextData_;Vu.prototype.getOtherConnectedRemoteId=Vu.prototype.getOtherConnectedRemoteId_;Vu.prototype.getReconnectTimeout=Vu.prototype.getReconnectTimeout_;
Vu.prototype.getAutoplayMode=Vu.prototype.getAutoplayMode_;Vu.prototype.getAutoplayVideoId=Vu.prototype.getAutoplayVideoId_;Vu.prototype.reconnect=Vu.prototype.JSC$20068_reconnect_;Vu.prototype.sendMessage=Vu.prototype.sendMessageWithUserAction_;Vu.prototype.getXsrfToken=Vu.prototype.JSC$20068_getXsrfToken_;Vu.prototype.isCapabilitySupportedOnConnectedDevices=Vu.prototype.isCapabilitySupportedOnConnectedDevices_;var WZZ=function(I){d9.call(this,"ScreenServiceProxy");this.instance_=I;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.iD)(this.JSC$20071_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.iD)(this.onOnlineScreenChange_,this)))};
_.E(WZZ,d9);_.L=WZZ.prototype;_.L.getScreens=function(I){return this.instance_.$_gs(I)};
_.L.contains=function(I){return!!this.instance_.$_c(I)};
_.L.get=function(I){return this.instance_.$_g(I)};
_.L.start=function(){this.instance_.$_st()};
_.L.add=function(I,y,D){this.instance_.$_a(I,y,D)};
_.L.remove=function(I,y,D){this.instance_.$_r(I,y,D)};
_.L.updateName=function(I,y,D,F){this.instance_.$_un(I,y,D,F)};
_.L.disposeInternal=function(){for(var I=this.subscriptionKeys_.length,y=0;y<I;++y)this.instance_.$_ubk(this.subscriptionKeys_[y]);this.subscriptionKeys_.length=0;this.instance_=null;d9.prototype.disposeInternal.call(this)};
_.L.JSC$20071_onScreenChange_=function(){this.publish("screenChange")};
_.L.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Ws.prototype.$_st=Ws.prototype.start;Ws.prototype.$_gspc=Ws.prototype.JSC$20030_getScreenByPairingCode;Ws.prototype.$_gsppc=Ws.prototype.JSC$20030_getScreenByPollingPairingCode;Ws.prototype.$_c=Ws.prototype.contains;Ws.prototype.$_g=Ws.prototype.get;Ws.prototype.$_a=Ws.prototype.add;Ws.prototype.$_un=Ws.prototype.updateName;Ws.prototype.$_r=Ws.prototype.remove;Ws.prototype.$_gs=Ws.prototype.getScreens;Ws.prototype.$_gos=Ws.prototype.JSC$20030_getOnlineScreens;Ws.prototype.$_s=Ws.prototype.subscribe;
Ws.prototype.$_ubk=Ws.prototype.unsubscribeByKey;var MEb=null,Bye=!1,h0C=null,Hs=null,cC1=null,ed=[];var t8Y=new _.Ku("yt-menu"),PB1=function(){},UdT=function(I,y,D){I=y=="right-click"?D.rightClickMenuPopupHint:D.menuPopupHint;
if(!(Kog(y)>10))return y=y||"default",t8Y.set(y+"-impression",Kog(y)+1),I},Kog=function(I){return parseInt(t8Y.get((I||"default")+"-impression")||0,10)};
_.uy(PB1);var roG=function(){this.contexts_=new WeakMap;this.JSC$20077_networkService_=this.activeContext_=null},jW1=function(I,y,D){var F=I.contexts_.get(y);
F||(F=new wto(I.JSC$20077_networkService_),I.contexts_.set(y,F));I.activeContext_=F;D&&I.activeContext_.reset();I.activeContext_.start();return I.activeContext_};var ZA=_.e5o(function(I){var y=_.kW("DIV");I&&(y.className=I);y.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";I=_.kW("DIV");_.vWR(I,"200px","200px");y.appendChild(I);document.body.appendChild(y);I=y.offsetWidth-y.clientWidth;_.dM(y);return I});var I9=_.kf("kevlar_watch_page_horizontal_margin",24),s6y=_.kf("kevlar_watch_page_columns_top_padding",24),ACg=426+I9*2,g9=_.kf("kevlar_watch_two_column_width_threshold",1E3),bQ8=I9*2,HQb=_.kf("kevlar_watch_secondary_width",402),Tyb=_.kf("kevlar_watch_max_player_width",1280),VEy=_.kf("kevlar_watch_flexy_metadata_height",136),e0T=bQ8+310+I9,$48=bQ8+360+I9;var $V=function(){};
$V.prototype.enqueue=function(){var I=this,y;return _.S(function(D){if(I.isCounterfactual())return(y=I.getCounterfactualData())&&I.shouldLogCounterfactualImpression()&&I.sendImpressionEndpoints(y),D.return();I.doEnqueue();_.Cj(D)})};
$V.prototype.sendImpressionEndpoints=function(I){_.uK.getInstance().triggerOptionalAction("yt-service-request",{},I[0])};var b2=function(I,y){this.renderer=I;this.page=y};
_.E(b2,$V);b2.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
b2.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
b2.prototype.shouldLogCounterfactualImpression=function(){return!0};
b2.prototype.doEnqueue=function(){var I=_.oP(this.page);I&&I.pause();this.renderer.impressionCommand&&_.uK.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.RZ(_.uK.getInstance(),[this.renderer.promoCommand],this.page)};var oHC=function(I,y){this.renderer=I;this.resolver=_.vS();this.JSC$20089_enforcementCounter=new _.moe;y?this.JSC$20089_playerManager=_.oP(y):this.JSC$20089_playerManager=null;_.MP(1,!0)};
_.E(oHC,$V);_.L=oHC.prototype;_.L.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var I=[];this.renderer.impressionEndpoints.forEach(function(y){(y=_.yz(y))&&I.push(y)});
return I}};
_.L.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.L.shouldLogCounterfactualImpression=function(){var I=_.SeC();I?(this.JSC$20089_enforcementCounter.increment("POPUP"),_.MP(3)):_.MP(2);return I};
_.L.cancel=function(){this.resolver.promise.cancel()};
_.L.doEnqueue=function(){var I=this;_.SeC()?(this.JSC$20089_enforcementCounter.increment("POPUP"),_.MP(3),Nfe(this)):this.JSC$20089_playerManager?(this.resolver.promise.then(function(){Nfe(I)}),hIR(this.resolver,this.JSC$20089_playerManager)):_.MP(2)};
var hIR=function(I,y){var D=_.vS();y.getPlayerPromise().then(function(F){D.resolve(F)});
D.promise.then(function(F){F.addEventListener("onAbnormalityDetected",I.resolve);_.D1(I.promise,function(){F.removeEventListener("onAbnormalityDetected",I.resolve)})});
I.promise.thenCatch(function(){D.promise.cancel()})},Nfe=function(I){_.MP(3);
var y={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:I.renderer}};y=_.uK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});Promise.all(y).then(function(){xdY();I.JSC$20089_playerManager&&I.JSC$20089_playerManager.pause()})},xdY=function(){HZY(function(I,y){yRQ(I,y);
I===0?_.MP(7):_.MP(4)})};var lcG=function(I,y){this.renderer=I;this.page=y;this.resolver=_.vS()};
_.E(lcG,$V);_.L=lcG.prototype;_.L.cancel=function(){this.resolver.promise.cancel()};
_.L.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.L.isCounterfactual=function(){return!this.renderer.isVisible};
_.L.shouldLogCounterfactualImpression=function(){return!0};
_.L.doEnqueue=function(){var I=this;this.resolver.promise.then(function(){var D={popup:{mealbarPromoRenderer:I.renderer},popupType:"MEALBAR"};_.uK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var y=_.oP(this.page);y&&uxT(this.resolver,y)}break;default:this.resolver.resolve()}};
var uxT=function(I,y){var D=_.vS();y.getPlayerPromise().then(function(F){D.resolve(F)});
D.promise.then(function(F){F.addEventListener("onAdEnd",I.resolve);_.D1(I.promise,function(){F.removeEventListener("onAdEnd",I.resolve)})});
I.promise.thenCatch(function(){D.promise.cancel()})};var qF8=function(I,y){this.renderer=I;this.page=y};
_.E(qF8,$V);_.L=qF8.prototype;_.L.cancel=function(){this.JSC$20097_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20097_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20097_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.L.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.L.isCounterfactual=function(){return!this.renderer.isVisible};
_.L.shouldLogCounterfactualImpression=function(){return!0};
_.L.doEnqueue=function(){var I=this,y,D;((y=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(D=y.playbackUpsellDialogTriggerConditionData)==null?void 0:D.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20097_downloadedVideosCountSelectorUnsubscriber=_.TV(_.oq(),BNo,function(F,R){F>R&&(EHY(I),I.cancel())}):EHY(this)};
var EHY=function(I){var y={popup:{upsellDialogRenderer:I.renderer},popupType:"MODAL"};_.uK.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{});(I=_.oP(I.page))&&I.pause()};var Hz={},Gxa=(Hz.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Hz.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Hz.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Hz.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Hz.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Hz.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Hz.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Hz),XNe=function(I,y){this.renderer=I;this.targetManager=
y};
_.E(XNe,$V);_.L=XNe.prototype;_.L.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20104_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20104_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20104_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.L.getCounterfactualData=function(){if(this.isCounterfactual()){var I;return(I=this.renderer.promoConfig)==null?void 0:I.impressionEndpoints}};
_.L.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.L.shouldLogCounterfactualImpression=function(){return!0};
_.L.doEnqueue=function(){var I=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20104_downloadedVideosCountSelectorUnsubscriber=_.TV(_.oq(),BNo,function(y,D){I.renderer.targetId&&y>D&&(ZAY(I.targetManager,I.renderer.targetId,QWZ(I)),I.cancel())});
break;default:ZAY(this.targetManager,this.renderer.targetId,QWZ(this))}};
var QWZ=function(I){var y;if((y=I.renderer.suggestedPosition)==null?0:y.type)var D=Gxa[I.renderer.suggestedPosition.type];D||(D="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:I.renderer},popupType:"HINT",position:D}}};var YFg=function(){this.previousPage=null},fca;
YFg.prototype.registerPromoCommand=function(I,y){nHR(this,void 0,void 0,_.u(I.roadblock,dka),void 0,void 0,y)};
var nHR=function(I,y,D,F,R,O,w){I.previousPage!==w&&I.pendingTooltipPromo&&I.pendingTooltipPromo.cancel();I.previousPage=w;R?(I.pendingEnforcementPromo&&I.pendingEnforcementPromo.cancel(),I.pendingEnforcementPromo=new oHC(R,w),I.pendingEnforcementPromo.enqueue()):O?(I.pendingCommandWrapperPromo=new b2(O,w),I.pendingCommandWrapperPromo.enqueue()):F?(I.pendingRoadblockPromo&&I.pendingRoadblockPromo.cancel(),I.pendingRoadblockPromo=new qF8(F,w),I.pendingRoadblockPromo.enqueue()):y?(I.pendingMealbarPromo&&
I.pendingMealbarPromo.cancel(),I.pendingMealbarPromo=new lcG(y,w),I.pendingMealbarPromo.enqueue()):D&&(I.pendingTooltipPromo&&I.pendingTooltipPromo.cancel(),I.pendingTooltipPromo=new XNe(D,_.$D()),I.pendingTooltipPromo.enqueue())},pNa=function(){fca||(fca=new YFg);
return fca};var mdb=function(){this.horizontal=!1},M8b=function(I,y){I.horizontal=y};
mdb.prototype.position=function(I,y,D,F){F=F===void 0?1:F;I=this.delta(I)*F+y;F=Math.max(y,D);return I>=Math.min(y,D)&&I<=F?I:D};
mdb.prototype.axis=function(I){I=this.direction(I);return I==="up"||I==="down"?"Y":"X"};var eK=function(I,y,D){y=y===void 0?_.b3():y;this.target=I;this.manager=y;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(){}};
eK.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(_.Td(this.events)));for(var I=_.J(this.events),y=I.next();!y.done;y=I.next())this.listen(y.value)}};
eK.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Td(this.events)));for(var I=_.J(this.events),y=I.next();!y.done;y=I.next())this.unlisten(y.value)}};
eK.prototype.listen=function(I){this.eventMap[I]&&this.target.addEventListener(I,this.eventMap[I])};
eK.prototype.unlisten=function(I){this.eventMap[I]&&this.target.removeEventListener(I,this.eventMap[I])};var TX=function(){mdb.apply(this,arguments)};
_.E(TX,mdb);TX.prototype.direction=function(I){var y=I.detail;I=y.deltaY;y=y.deltaX;return I&&!this.horizontal?I>0?"down":"up":y&&this.horizontal?y>0?"right":"left":"none"};
TX.prototype.distance=function(I){return Math.abs(this.delta(I))};
TX.prototype.delta=function(I){var y=this.direction(I),D=I.detail;I=D.deltaX;D=D.deltaY;return y==="up"||y==="down"?D||0:I||0};
TX.prototype.velocity=function(I){var y=this.direction(I),D=I.detail;I=D.velocityX;D=D.velocityY;return Math.abs(y==="up"||y==="down"?D||0:I||0)};var s9=function(I,y,D,F,R,O){R=R===void 0?new TX:R;O=O===void 0?_.b3():O;eK.call(this,y,O,F);var w=this;this.element=I;this.target=y;this.config=D;this.input=R;this.manager=O;this.events=["panstart","panmove","panend"];this.onPanStart=function(){w.config.draggingClass&&w.element.classList.add(w.config.draggingClass);w.config.startAction&&w.config.startAction()};
this.onPanMove=function(v){var P=zI8(w,v);if(P){w.move(v,P);P.fade&&w.fade(v,P);var K=w.input.direction(v);P.moveAction&&P.moveAction(kxY(w,v,P),K)}};
this.onPanEnd=function(v){var P,K,r,N,h,x;return _.S(function(q){if(q.nextAddress==1){w.animationRequestId&&cancelAnimationFrame(w.animationRequestId);w.animationRequestId=void 0;P=zI8(w,v);if(!P)return q.return();K=P;r=K.triggerAction;N=K.fade;h=K.disableFinish;x=K.translateBack;var X=w.input.velocity(v),f=w.input.distance(v),m=w.threshold(P);return X>.3&&f>10||f>m?h?q.jumpTo(6):N?q.yield(dd1(w,v),6):q.yield(acT(w,v,P),6):x?q.yield(w.translateBack(v),3):q.jumpTo(3)}q.nextAddress!=3&&r&&r();w.config.draggingClass&&
w.element.classList.remove(w.config.draggingClass);w.reset();_.Cj(q)})};
I=Object.keys(D.triggers);this.directions=new Set(I);M8b(this.input,this.directions.has("right")||this.directions.has("left"))};
_.E(s9,eK);s9.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var zI8=function(I,y){y=I.input.direction(y);return I.config.triggers[y]};
s9.prototype.move=function(I,y){var D=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var F=D.input.axis(I),R=D.input.position(I,D.config.startPosition,y.endPosition,y.moveRatio||1);D.element.style.transform="translate"+F+"("+R+"px)";D.animationRequestId=void 0}))};
var kxY=function(I,y,D){var F=D.moveRatio||1;D=Math.abs(I.config.startPosition-D.endPosition);return Math.min(I.input.distance(y)*F,D)/D};
s9.prototype.fade=function(I,y){var D=y.endOpacity;I=kxY(this,I,y);I>0&&(this.element.style.opacity=""+(((D||0)-1)*I+1))};
s9.prototype.threshold=function(I){return I.threshold?I.threshold:Math.abs(I.endPosition-this.config.startPosition)/3};
var acT=function(I,y,D){var F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1)return F=I.input.delta(y)+I.config.startPosition,R=I.input.axis(y),O=D,w=O.endPosition,v=O.transitionEndPosition,K=(P=v)!=null?P:w,r.yield(I.element.animate([{transform:"translate"+R+"("+F+"px)"},{transform:"translate"+R+"("+K+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.element.style.transform="translate"+R+"("+K+"px)";_.Cj(r)})};
s9.prototype.translateBack=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1){if(!y.element.style.transform)return R.return();D=y.input.axis(I);F=y.config.startPosition;return R.yield(y.element.animate([{transform:y.element.style.transform},{transform:"translate"+D+"("+F+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}y.element.style.transform="translate"+D+"("+F+"px)";_.Cj(R)})};
var dd1=function(I,y){var D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D=I.input.delta(y)+I.config.startPosition,F=I.input.axis(y),R=D+70,O=I.element.style.opacity===""?1:I.element.style.opacity,w.yield(I.element.animate([{transform:"translate"+F+"("+D+"px)",opacity:O},{transform:"translate"+F+"("+R+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.element.style.transform="translate"+F+"("+R+"px)";I.element.style.opacity="0";_.Cj(w)})};var Rgg=new _.Ku("ratelimit");var coC=function(I,y){this.playerProvider_=I;this.actionSenderElement_=y;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
coC.prototype.reset=function(){WoY(this);this.isUserPredictedAbsent_=!1};
var WoY=function(I,y){!I.youThereData_||I.showWarningJob_||y!==void 0&&y||(yN("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.VO(),I.youThereData_,I.clientPlaybackNonce_),_.wI());_.w2.cancelJob(I.showWarningJob_);I.showWarningJob_=0;_.w2.cancelJob(I.showBlockingWarningJob_);I.showBlockingWarningJob_=0;_.w2.cancelJob(I.pausePlaybackJob_);I.pausePlaybackJob_=0;I.youThereData_=null;I.clientPlaybackNonce_=void 0;I.inYouThereFlow_=!1},Bfy=function(I,y){var D,F,R;
_.S(function(O){if(O.nextAddress==1)return I.reset(),O.yield(I.playerProvider_().getPlayerPromise(),2);D=O.yieldResult;I.clientPlaybackNonce_=D.getVideoData().cpn;I.youThereData_=y.configData.youThereData;if(!I.youThereData_)return O.return();if(I.youThereData_.triggerReason&&I.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!O4T())return yN("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.VO(),I.youThereData_,I.clientPlaybackNonce_),O.return();F=I.youThereData_.promptDelaySec;R=D.getCurrentTime();
I.showWarningJob_=_.w2.addLowPriorityJob(function(){return _.S(function(w){I.showWarningJob_=0;return w.yield(CB1(I),0)})},Math.max(F-R,0)*1E3);
_.Cj(O)})},CB1=function(I){var y,D,F,R,O,w;
return _.S(function(v){if(v.nextAddress==1)return v.yield(I.playerProvider_().getPlayerPromise(),2);if(v.nextAddress!=3)return y=v.yieldResult,D=y.getCurrentTime(),v.yield(iX1(I),3);F=v.yieldResult;if(!F||!I.youThereData_)return v.return();if(_.l("check_user_lact_at_prompt_shown_time_on_web")&&(R=parseInt(I.youThereData_.lactThresholdMs,10),_.m$()<R))return yN("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.VO(),I.youThereData_,I.clientPlaybackNonce_),v.return();if(I.youThereData_.playbackPauseDelayMs<=
0)return Aoa(I),v.return();!_.l("external_fullscreen")&&(O=_.o1())&&(I.ignoreFullscreenExitUserActivity_=!0,_.w2.addLowPriorityJob(function(){I.ignoreFullscreenExitUserActivity_=!1},2E3),_.Nr(O));
I.youThereData_.showToastWarningPrompt&&(Vn(I,I.youThereData_.showWarningActions),I.inYouThereFlow_=!0,yN("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.VO(),I.youThereData_,I.clientPlaybackNonce_,D),yN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.VO(),I.youThereData_,I.clientPlaybackNonce_,D));w=0;I.youThereData_.blockingPromptDelayMs&&(w=I.youThereData_.blockingPromptDelayMs);I.showBlockingWarningJob_=_.w2.addLowPriorityJob(function(){return _.S(function(P){I.showBlockingWarningJob_=0;return P.yield($dy(I),
0)})},w);
_.Cj(v)})},$dy=function(I){var y,D,F;
return _.S(function(R){if(R.nextAddress==1)return R.yield(iX1(I),2);y=R.yieldResult;if(!I.youThereData_)return R.return();y&&(I.youThereData_.showBlockingWarningAction&&(yN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.VO(),I.youThereData_,I.clientPlaybackNonce_),(D=_.u(I.youThereData_.showBlockingWarningAction,_.Q_))?Vn(I,D.commands):Vn(I,[I.youThereData_.showBlockingWarningAction]),I.inYouThereFlow_=!0),F=I.youThereData_.playbackPauseDelayMs,I.pausePlaybackJob_=_.w2.addLowPriorityJob(function(){return _.S(function(O){I.pausePlaybackJob_=
0;return O.yield(Aoa(I),0)})},F));
_.Cj(R)})},Aoa=function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(iX1(I),2);y=D.yieldResult;if(!I.youThereData_)return D.return();y&&(yN("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.VO(),I.youThereData_,I.clientPlaybackNonce_),Vn(I,I.youThereData_.showPausedActions),I.inYouThereFlow_=!0);_.Cj(D)})};
coC.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var I=_.u(this.youThereData_.userActiveDuringFlowAction,_.Q_);I?Vn(this,I.commands):Vn(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(yN("YOU_THERE_EVENT_TYPE_LACT_RESET",_.VO(),this.youThereData_,this.clientPlaybackNonce_),_.wI());WoY(this,!0)}bXa(this,!1)};
var HXy=function(I){yN("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.VO(),I.youThereData_,I.clientPlaybackNonce_)},iX1=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.playerProvider_().getPlayerPromise(),2);y=F.yieldResult;D=y.getPlayerState();return F.return(D==-1||D==1||D==3)})},bXa=function(I,y){var D;
_.S(function(F){if(F.nextAddress==1){if(I.isUserPredictedAbsent_==y)return F.jumpTo(0);I.isUserPredictedAbsent_=y;return F.yield(I.playerProvider_().getPlayerPromise(),3)}D=F.yieldResult;D.setUserEngagement(y);y&&yN("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.VO(),I.youThereData_,I.clientPlaybackNonce_);_.Cj(F)})},Vn=function(I,y){if(_.l("handle_service_request_actions")||_.l("kevlar_youthere_service_endpoint_actions_killswitch"))_.GC(I.actionSenderElement_,y,I.actionSenderElement_);
else{y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.sendPost?_.E$(I.actionSenderElement_,[D]):_.GC(I.actionSenderElement_,[D],I.actionSenderElement_)}};var Ljg=!1;var eIa={PAUSE_CHAT:18};var Z2b=function(I,y){var D=_.Pi("SESSION_INDEX");this.actionToken_=I;this.commonToken_=y;this.sessionIndex_=D},VqZ=function(I){var y=_.vS(),D=_.jF("payments.business.integration.bootstrap"),F=_.jF("payments.business.integration"),R=F.Style.create().withMaterialDesignStyle(),O=F.mashupMode.popup("instrument-manager");
D.asMashupMode(O).usingUserIndex(I.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(R).inStandaloneContext(F.standaloneContextAuthId.forUserId()).instrumentManager(I.actionToken_,I.commonToken_.length>0?I.commonToken_:void 0,function(w){var v=w.instrumentId;v?y.resolve(v):(v=_.jF("payments.business.integration.scenario.InstrumentManager"),y.reject(w.errorCode&&w.errorCode===v.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(w){_.UJ(w);
y.reject("instrumentManagerLoadError")});
return y.promise};var rF=function(I,y,D){this.payloadName="transactionFlowFailed";this.payload={errorType:I,serializedTransactionFlowLoggingParams:y,isUserDismiss:D===void 0?!1:D}};
_.fv("yt.ypc.shared.YpcTransactionFlowError",rF);var Ze=function(){return _.Wp.apply(this,arguments)||this};
_.E(Ze,_.Wp);Ze.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Ze.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Ze.prototype.onErrorMessageDismiss=Ze.prototype.onErrorMessageDismiss;_.W([_.M({readOnly:!0,observer:"errorRendererChanged"}),_.A("design:type",Object)],Ze.prototype,"errorRenderer",void 0);_.W([_.z4("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ze.prototype,"onErrorMessageDismiss",null);_.W([_.Cg()],Ze);var TfT=[Ze.prototype];var sWo;var V81,ZXY=function(){if(V81!==void 0)return V81;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;sWo===void 0&&(sWo=document.createElement("template"));var F=sWo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return V81=I};var gk=function(){var I=_.k.apply(this,arguments)||this;I.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";I.goalDescription="";I.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";I.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";I.startButtonId="start-button";I.exampleButtonId="example-button";return I};
_.E(gk,_.k);_.L=gk.prototype;_.L.getGoalDropdownItems=function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.purchaseTargetDropdown,Gnb))==null?void 0:y.dropdownItems};
_.L.getTimerDropdownItems=function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.timerDropdown,Gnb))==null?void 0:y.dropdownItems};
_.L.getColorDropdownItems=function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.colorDropdown,Gnb))==null?void 0:y.dropdownItems};
_.L.getDropdownItemText=function(I){var y;return(y=_.u(I,Eua))==null?void 0:y.itemLabel};
_.L.getDropdownItemValue=function(I){I=_.u(I,Eua);return(I==null?void 0:I.timeLimit)||(I==null?void 0:I.purchaseTarget)||(I==null?void 0:I.eligiblePurchaseType)};
_.L.updateFlowState=function(I){_.uj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:I}])};
_.L.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.L.updateGoalValue=function(I){this.goal=I.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.L.onTextValueChanged=function(I){this.goalDescription=I.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.L.updateTimerValue=function(I){this.timer=I.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.L.updateTierValue=function(I){this.tier=I.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.L.getButtonViewModel=function(I){I=(I==null?void 0:I.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var y,D=_.u((y=this.data)==null?void 0:y.startGoalButton,_.Kb);return Object.assign({},D,{state:I})};
_.mD.Object.defineProperties(gk,{template:{configurable:!0,enumerable:!0,get:function(){return ZXY()}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"goal",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"goalDescription",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"timer",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"tier",void 0);
_.W([_.M(),_.A("design:type",Object)],gk.prototype,"startButtonId",void 0);_.W([_.M(),_.A("design:type",Object)],gk.prototype,"exampleButtonId",void 0);_.W([_.I6({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],gk);_.a(gk,"yt-creator-goal-set-up-flow-view-model",function(){return ZXY()},{mode:0});var gHa;var Iba;var Ii=function(){return _.k.apply(this,arguments)||this};
_.E(Ii,_.k);Ii.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ii.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var I=_.u(this.data.button,_.Kb);I&&(I.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.mD.Object.defineProperties(Ii,{template:{configurable:!0,enumerable:!0,get:function(){if(Iba===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;gHa===void 0&&(gHa=document.createElement("template"));var F=gHa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Iba=I}I=Iba;return I}}});
_.W([_.Q(_.J2),_.A("design:type",Object)],Ii.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({selectorArgs:["data.enabledEntityKey"],selector:xra,observer:"onEnabledChange"}),_.A("design:type",Boolean)],Ii.prototype,"enabled",void 0);_.W([_.M(),_.A("design:type",Object)],Ii.prototype,"data",void 0);_.W([_.I6({is:"yt-disableable-button-view-model",noInjection:!0})],Ii);var yDa;var DNQ;var FuZ=["transVert01","transVert02","transVert03"],R7g="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),ys=function(){var I=_.k.apply(this,arguments)||this;I.emojiManager=_.rQ;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};I.reactionBuckets=[];I.noEmojiIdentifier="NO_EMOJI";return I};
_.E(ys,_.k);_.L=ys.prototype;_.L.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.L.desktopFountainEmojiSizePxChanged=function(){_.pg(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.L.createUserReactionAnimation=function(I){this.createEmojiAnimation(I,!0)};
_.L.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var I;((I=this.data)==null?0:I.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.WS("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Td(this.emojiContainer.children)).forEach(function(y){y.remove()})};
_.L.detached=function(){this.cleanupFountain()};
_.L.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var I;this.reactionBuckets=_.e$.unsafeClone((I=this.emojiFountainData)==null?void 0:I.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.L.processEmojiBucket=function(I){var y=this;if(this.reactionBuckets&&!(I>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var D=this.reactionBuckets[I];this.generateEmojiAnimations(D);if(I<this.reactionBuckets.length-1){var F;if(D==null?0:(F=D.duration)==null?0:F.seconds)this.emojiBucketTimerId=setTimeout(function(){y.processEmojiBucket(I+1)},Number(D.duration.seconds)*1E3)}}};
_.L.generateEmojiAnimations=function(I){var y=this,D=this.getRandomEmojiIdFromBucketWithOverride(I);if(D&&D!==this.noEmojiIdentifier){var F=0;I.targetEps?(F=this.linearInterpolateBounded(1,20,100,12,I.emojiSizeIndex||0),this.createEmojiAnimation(D,!1,I.emojiAnimationMs,F),F=this.getEmojiDelayMsFromTargetEps(I.targetEps)):(this.createEmojiAnimation(D),F=this.getEmojiDelayMsFromDistribution(I.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){y.generateEmojiAnimations(I)},F)}};
_.L.getRandomEmojiIdFromBucketWithOverride=function(I){if(!(I&&I.reactionsData&&I.reactionsData.length&&I.totalReactions))return this.noEmojiIdentifier;for(var y=I.totalReactions,D=1,F=_.J(I.reactionsData),R=F.next();!R.done;R=F.next())R=R.value,(R.reactionWeightOverride||R.reactionWeightOverride===0)&&R.reactionCount&&(y-=R.reactionCount,D-=R.reactionWeightOverride);F=!0;D<0&&(F=!1,y=I.totalReactions,D=1);if(F&&D>0&&y===0)if(D===1){R=0;for(var O=_.J(I.reactionsData),w=O.next();!w.done;w=O.next())w=
w.value,w.reactionCount&&w.reactionCount>0&&R++;R=1/R;O=_.J(I.reactionsData);for(w=O.next();!w.done;w=O.next())w.value.reactionWeightOverride=R}else for(R=1/(1-D),O=_.J(I.reactionsData),w=O.next();!w.done;w=O.next())w=w.value,w.reactionWeightOverride&&(w.reactionWeightOverride*=R);R=Math.random();O=0;w=_.J(I.reactionsData);for(var v=w.next();!v.done;v=w.next())if(v=v.value,v.reactionCount&&(O=(v.reactionWeightOverride||v.reactionWeightOverride===0)&&F?O+v.reactionWeightOverride:O+D*v.reactionCount/
y,O>R&&(v.reactionCount--,I.totalReactions--,v=this.reactionItemToEmojiString(v),v!==this.noEmojiIdentifier)))return v;return this.noEmojiIdentifier};
_.L.reactionItemToEmojiString=function(I){if(I.unicodeEmojiId)return I.unicodeEmojiId;if(I.emoteId)return I.emoteId;if(I.videoReactionType)switch(I.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.L.createEmojiAnimation=function(I,y,D,F){y=y===void 0?!1:y;this.lastEmojiRequestedForTesting=I;var R=I.startsWith("yt-icons:"),O=_.KY(this.emojiManager,I);if(O||R){var w=document.createElement("emoji");w.classList.add("yt-emoji-fountain-view-model");w.classList.add(FuZ[Math.floor(Math.random()*FuZ.length)]);var v=document.createElement("div");v.classList.add("yt-emoji-fountain-view-model");v.classList.add("horizontal-container");v.classList.add(R7g[Math.floor(Math.random()*R7g.length)]);y?(D=document.createElement("div"),
D.classList.add("user-reaction-bubble"),D.classList.add("yt-emoji-fountain-view-model"),v.appendChild(D)):(D&&(w.style.animationDuration=D+"ms",v.style.animationDuration=D+"ms"),F&&(w.style.width=F+"px",w.style.height=F+"px"));R?(R=document.createElement("yt-icon"),R.polymerController.icon=I,F&&(R.style.width=F+"px",R.style.height=F+"px"),I=R):I=this.emojiManager.createEmoji(O,!1);I.classList.add("yt-emoji-fountain-view-model");v.appendChild(I);w.appendChild(v);this.emojiContainer.appendChild(w);
w.addEventListener("animationend",function(){w.remove()});
var P,K;if((P=this.data)==null?0:(K=P.loggingDirectives)==null?0:K.trackingParams)y=y?_.QM(183501):_.QM(183500),lLY(this.data.loggingDirectives.trackingParams,y),_.eES(y);setTimeout(function(){w&&w.remove()},2E3)}};
_.L.getEmojiDelayMsFromDistribution=function(I){return Math.random()*(I||1)*1E3};
_.L.getEmojiDelayMsFromTargetEps=function(I){return Math.random()*2*(1/I)*1E3};
_.L.linearInterpolateBounded=function(I,y,D,F,R){R=Math.min(Math.max(R,I),D);return(y*(D-R)+F*(R-I))/(D-I)};
ys.prototype.onEmojiFountainDataEntityUpdate=ys.prototype.onEmojiFountainDataEntityUpdate;ys.prototype.desktopFountainEmojiSizePxChanged=ys.prototype.desktopFountainEmojiSizePxChanged;ys.prototype.isActiveChanged=ys.prototype.isActiveChanged;_.W([_.M(),_.A("design:type",_.P9)],ys.prototype,"emojiManager",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],ys.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ys.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ys.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(I,y){return _.nC(I.entities,"emojiFountainDataEntity",y)}}),
_.A("design:type",Object)],ys.prototype,"emojiFountainData",void 0);_.W([_.M(),_.A("design:type",Boolean)],ys.prototype,"isActive",void 0);_.W([_.ke("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ys.prototype,"isActiveChanged",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ys.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",String)],ys.prototype,"lastEmojiRequestedForTesting",void 0);
_.W([_.M({value:function(){return _.kf("desktop_fountain_emoji_size_px",20)}}),
_.A("design:type",Number)],ys.prototype,"desktopFountainEmojiSizePx",void 0);_.W([_.ke("desktopFountainEmojiSizePx"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ys.prototype,"desktopFountainEmojiSizePxChanged",null);_.W([_.a0("#emoji-container"),_.A("design:type",HTMLElement)],ys.prototype,"emojiContainer",void 0);
_.W([_.ke("emojiFountainData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ys.prototype,"onEmojiFountainDataEntityUpdate",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],ys);
_.a(ys,"yt-emoji-fountain-view-model",function(){if(DNQ===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;yDa===void 0&&(yDa=document.createElement("template"));var F=yDa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);DNQ=I}I=DNQ;return I},{mode:0});var OLa;var LuQ;var Dq=function(){return _.k.apply(this,arguments)||this};
_.E(Dq,_.k);Dq.prototype.onChoiceChanged=function(){this.data&&_.pg(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Dq.prototype.onChoiceChanged=Dq.prototype.onChoiceChanged;_.W([_.M(),_.A("design:type",Object)],Dq.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dq.prototype,"onChoiceChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Dq);
_.a(Dq,"yt-live-chat-banner-poll-choice",function(){if(LuQ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;OLa===void 0&&(OLa=document.createElement("template"));var F=OLa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);LuQ=I}I=LuQ;return I},{mode:0});var JDg;var wTR;var Fr=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_button_rework_with_live");I.small=!1;return I};
_.E(Fr,_.k);Fr.prototype.computeIsSmall=function(){var I;return((I=this.buttonOverrides)==null?void 0:I.size)==="S"};
Fr.prototype.computeId=function(){return this.data&&this.data.targetId};
_.W([_.Q(_.wi.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],Fr.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],Fr.prototype,"id",void 0);_.W([_.M(),_.A("design:type",Object)],Fr.prototype,"buttonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],Fr.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Fr.prototype,"modern",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.A("design:type",Object)],Fr.prototype,"small",void 0);_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-button"})],Fr);
_.a(Fr,"yt-live-chat-button",function(){if(wTR===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;JDg===void 0&&(JDg=document.createElement("template"));var F=JDg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);wTR=I}I=wTR;return I},{mode:0});var vho;var Sr1;var Ri=function(){var I=_.k.apply(this,arguments)||this;I.inCollapsedBanner=!1;I.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};I.questionButtonOverrides={style:"mono",type:"filled"};return I};
_.E(Ri,_.k);_.L=Ri.prototype;_.L.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]]"}}}}}};
_.L.onContextMenuButtonClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
_.L.onYtRendererstamperFinished=function(){this.menuButton=_.XB(this.hostElement).querySelector("#menu-button")};
_.L.dataChanged=function(){var I,y;if((y=_.u((I=this.data)==null?void 0:I.overflowMenuButton,_.S1))==null?0:y.command)this.data.contextMenuEndpoint=_.u(this.data.overflowMenuButton,_.S1).command};
_.L.onButtonClick=function(){var I,y=_.u((I=this.data)==null?void 0:I.askQuestionButton,_.S1);if(y){if(y.trackingParams&&(I=_.AC(y.trackingParams))){var D=_.VO();D&&_.SI(D,I)}_.lj(this.hostElement,"innertube-command",y.command)}};
Ri.prototype.onYtRendererstamperFinished=Ri.prototype.onYtRendererstamperFinished;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],Ri.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],Ri.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.M({observer:"dataChanged"}),_.A("design:type",Object)],Ri.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ri.prototype,"inCollapsedBanner",void 0);_.W([_.M(),_.A("design:type",Object)],Ri.prototype,"buttonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],Ri.prototype,"questionButtonOverrides",void 0);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ri.prototype,"onYtRendererstamperFinished",null);
_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Ri);
_.a(Ri,"yt-live-chat-call-for-questions-renderer",function(){if(Sr1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;vho===void 0&&(vho=document.createElement("template"));var F=vho;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Sr1=I}I=Sr1;return I},{mode:0});var tSy={};tSy.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 I=this;window.requestAnimationFrame(function(){I.restoreFocusNode_||(I.restoreFocusNode_=document.activeElement);var y=_.kQO(I.hostElement);y.length&&y[y.length-1].focus()})},
isAttachedChanged_:function(I,y){I?this.focusChild_():y&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(I){this.hidden||_.r4(I).indexOf(this.hostElement)!==-1||(I.stopPropagation(),this.focusChild_())}};var Pha;var Kua;var On=function(){return _.k.apply(this,arguments)||this};
_.E(On,_.k);On.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
On.prototype.onClick=function(I){I.target!==this.confirmButton&&I.target!==this.cancelButton&&(this.hidden=!0)};
_.W([_.a0("#confirm_button"),_.A("design:type",Object)],On.prototype,"confirmButton",void 0);_.W([_.a0("#cancel_button"),_.A("design:type",Object)],On.prototype,"cancelButton",void 0);_.W([_.M(),_.A("design:type",UNY)],On.prototype,"data",void 0);_.W([_.M({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],On.prototype,"hidden",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(tSy.YtLiveChatDialogBehavior),_.A("design:type",Object)],On.prototype,"ytLiveChatDialogBehavior",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],On);
var UNY=_.a(On,"yt-live-chat-dialog-renderer",function(){if(Kua===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Pha===void 0&&(Pha=document.createElement("template"));var F=Pha;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Kua=I}I=Kua;return I},{mode:0});var rDC;var jyo,oho=function(){if(jyo!==void 0)return jyo;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;rDC===void 0&&(rDC=document.createElement("template"));var F=rDC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);return jyo=I};var NSZ;var h7y;var Lk=function(){var I=_.k.apply(this,arguments)||this;I.icon=null;return I};
_.E(Lk,_.k);Lk.prototype.dismiss=function(){_.lj(this.hostElement,"yt-live-chat-error-message-dismiss")};
Lk.prototype.computeIcon=function(I){return I&&I.iconType?"yt-icons:"+I.iconType.toLowerCase():"yt-icons:close"};
_.W([_.M(),_.A("design:type",Object)],Lk.prototype,"data",void 0);_.W([_.M({computed:"computeIcon(data.icon)"}),_.A("design:type",Object)],Lk.prototype,"icon",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Lk);
_.a(Lk,"yt-live-chat-error-message-renderer",function(){if(h7y===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;NSZ===void 0&&(NSZ=document.createElement("template"));var F=NSZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);h7y=I}I=h7y;return I},{mode:0});var xNa;var lb1;var Jj=function(){var I=_.k.apply(this,arguments)||this;I.tooltip=null;I.data=null;I.id="";I.active=!1;I.icon="";I.disabled=!1;I.showTooltip=!1;I.useToggledActiveState=!0;I.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return I};
_.E(Jj,_.k);_.L=Jj.prototype;
_.L.dataChanged=function(){var I;((I=this.data)==null?0:I.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,_.ng)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var y;if((y=this.data)==null?0:y.disabled)this.disabled=!0};
_.L.computeId=function(I){return I};
_.L.computeIcon=function(I,y){if(!I)return"";if(this.useToggledActiveState)return"yt-icons:"+I.toLowerCase();var D,F;return y&&((D=this.data)==null?0:(F=D.toggledIcon)==null?0:F.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+I.toLowerCase()};
_.L.logPDGEntryPoint=function(){_.yaB(_.p0("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")};
_.L.immediatelyShowTooltip=function(){var I=_.XB(this.hostElement).querySelector("#tooltip");I.animationDelay=0;I.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};I.show()};
_.L.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.L.onClick=function(I){var y;((y=this.data)==null?0:y.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(),I.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.lj(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.L.computeShowTooltip=function(I,y){return!!(I&&I.tooltip&&y)};
_.L.maybeUpdateTooltipText=function(){var I=this,y;if((y=this.data)==null?0:y.tooltip){var D=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.ng)(I.tooltip).textContent=D},250)}};
_.L.handleLiveChatActions=function(I){var y=this;I.length&&(this.id!=="creator"&&this.id!=="product-picker"||I.forEach(function(D){(D=y.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",D))&&D.durationSec===D.fullDurationSec&&y.startBubble(y.colorFromDecimal(D.startBackgroundColor))}))};
_.L.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.L.startBubble=function(I){_.pg(this.hostElement,{"--yt-live-chat-monetization-button-glow":I});this.hostElement.setAttribute("bubble","")};
_.L.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.L.colorFromDecimal=function(I){typeof I==="string"&&(I=Number(I));return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
Jj.prototype.onAnimationEnd=Jj.prototype.onAnimationEnd;Jj.prototype.disabledChanged=Jj.prototype.disabledChanged;Jj.prototype.dataChanged=Jj.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Jj.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.wi.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],Jj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Jj.prototype,"data",void 0);_.W([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],Jj.prototype,"id",void 0);_.W([_.M({notify:!0,reflectToAttribute:!0}),_.A("design:type",Object)],Jj.prototype,"active",void 0);
_.W([_.M({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.A("design:type",Object)],Jj.prototype,"icon",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jj.prototype,"disabled",void 0);_.W([_.M({computed:"computeShowTooltip(data, disabled)"}),_.A("design:type",Object)],Jj.prototype,"showTooltip",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Jj.prototype,"useToggledActiveState",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jj.prototype,"dataChanged",null);_.W([_.ke("disabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jj.prototype,"disabledChanged",null);_.W([_.z4("animationend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Jj.prototype,"onAnimationEnd",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Jj);
_.a(Jj,"yt-live-chat-icon-toggle-button-renderer",function(){if(lb1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;xNa===void 0&&(xNa=document.createElement("template"));var F=xNa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);lb1=I}I=lb1;return I},{mode:0});var u2C;var qrb;var wA=function(){return _.k.apply(this,arguments)||this};
_.E(wA,_.k);wA.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.M(),_.A("design:type",Object)],wA.prototype,"data",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],wA);
_.a(wA,"yt-live-chat-message-input-prompt-header-renderer",function(){if(qrb===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;u2C===void 0&&(u2C=document.createElement("template"));var F=u2C;D.call(y,F.content.cloneNode(!0),I.content.firstChild);qrb=I}I=qrb;return I},{mode:0});var EhZ;var GcT;var XTy;var Qyg;var YrG;var fbb;var nhg=function(){return _.k.apply(this,arguments)||this};
_.E(nhg,_.k);_.W([_.M(),_.A("design:type",Object)],nhg.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],nhg);
_.a(nhg,"yt-live-chat-message-subtext-renderer",function(){if(fbb===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;YrG===void 0&&(YrG=document.createElement("template"));var F=YrG;D.call(y,F.content.cloneNode(!0),I.content.firstChild);fbb=I}I=fbb;return I},{mode:0});var vk=function(){var I=_.k.apply(this,arguments)||this;I.subtextOnBottom=!1;I.buttonOverrides={style:"mono",type:"tonal"};return I};
_.E(vk,_.k);vk.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vk.prototype,"subtextOnBottom",void 0);_.W([_.M(),_.A("design:type",Object)],vk.prototype,"buttonOverrides",void 0);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],vk);
_.a(vk,"yt-live-chat-message-renderer",function(){if(Qyg===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;XTy===void 0&&(XTy=document.createElement("template"));var F=XTy;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Qyg=I}I=Qyg;return I},{mode:0});var pTY;var mNG;var SP=function(){var I=_.k.apply(this,arguments)||this;I.isRemovable=!1;I.hasPrefilledText=!1;I.isInputDirty=!1;I.overCharacterLimit=!1;I.underCharacterLimit=!1;I.showErrorMessage=!1;return I};
_.E(SP,_.k);_.L=SP.prototype;_.L.computeId=function(){return this.data.id};
_.L.computeInputData=function(){return this.data.inputData};
_.L.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.L.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.L.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.L.getLiveChatRichMessageInput=function(){return _.XB(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.L.clearInput=function(){_.XB(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.L.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.L.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.L.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.L.handleTextInputCharCountChanged=function(I){I=I.detail&&I.detail.characterCount;I!==void 0&&(this.characterCount=I,I!==0&&(this.isInputDirty=!0))};
_.L.onInputFocusOut=function(){this.isInputDirty=!0};
_.L.onClickCloseButton=function(){_.lj(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
SP.prototype.handleTextInputCharCountChanged=SP.prototype.handleTextInputCharCountChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],SP.prototype,"data",void 0);_.W([_.M({computed:"computeId(data.id)"}),_.A("design:type",String)],SP.prototype,"id",void 0);_.W([_.M({computed:"computeInputData(data.inputData)"}),_.A("design:type",Object)],SP.prototype,"inputData",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.A("design:type",Object)],SP.prototype,"isRemovable",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.A("design:type",Object)],SP.prototype,"hasPrefilledText",void 0);_.W([_.M({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.A("design:type",Number)],SP.prototype,"charactersRemaining",void 0);
_.W([_.M(),_.A("design:type",Number)],SP.prototype,"characterCount",void 0);_.W([_.M(),_.A("design:type",Object)],SP.prototype,"isInputDirty",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.A("design:type",Object)],SP.prototype,"overCharacterLimit",void 0);_.W([_.M({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.A("design:type",Object)],SP.prototype,"underCharacterLimit",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.A("design:type",Object)],SP.prototype,"showErrorMessage",void 0);_.W([_.z4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],SP.prototype,"handleTextInputCharCountChanged",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],SP);
_.a(SP,"yt-live-chat-poll-editor-input",function(){if(mNG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;pTY===void 0&&(pTY=document.createElement("template"));var F=pTY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);mNG=I}I=mNG;return I},{mode:0});var MSZ;var z7g;var kcY={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},tj=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_button_rework_with_live");I.closeButtonOverrides={iconPosition:"icon-only"};I.startButtonOverrides={style:"mono",type:"filled"};I.addOptionButtonOverrides={style:"mono",type:"text"};return I};
_.E(tj,_.k);_.L=tj.prototype;
_.L.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"}}}}};
_.L.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var I;_.u((I=this.data)==null?void 0:I.startButton,_.S1)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.L.computeId=function(){return this.data&&this.data.id||""};
_.L.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.L.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.L.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.L.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.L.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var I=0;I<this.pollEditorInfoWithDefaults.minPollOptions;I++)this.addPollOptionData()};
_.L.getIsValidPoll=function(){var I=this;if(!this.pollEditorInfoWithDefaults)return!1;var y=this.pollEditorInfoWithDefaults,D=y.minPollOptionChars,F=y.maxPollOptionChars,R=y.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>y.maxPollQuestionChars)return!1;y=_.XB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(y).every(function(O,w){O=O.characterCount;!O&&R[w]&&(O=I.ytRendererBehavior.getSimpleString(R[w]).length);return O!==void 0&&O>=D&&O<=F})};
_.L.isValidPollChanged=function(){var I;_.u((I=this.data)==null?void 0:I.startButton,_.S1)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.L.addPollOptionData=function(){var I=this.pollEditorInfoWithDefaults,y=I.maxPollOptionChars,D=I.optionPlaceholderText,F=I.customOptionPlaceholderText,R=I.pollOptionData;this.currentNumPollOptions>=I.maxPollOptions||(I={liveChatPollOptionInput:{inputData:{placeholder:F[this.currentNumPollOptions]||D,maxCharacterLimit:y},maxCharacterLimit:y,minCharacterLimit:I.minPollOptionChars,hasPrefilledText:!!F[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=I.minPollOptions}},R.charCountErrorText&&
(I.liveChatPollOptionInput.charCountErrorText=R.charCountErrorText),R.charsRemainingAltLabel&&(I.liveChatPollOptionInput.charsRemainingAltLabel=R.charsRemainingAltLabel),R.removeOptionAltText&&(I.liveChatPollOptionInput.removeOptionAltText=R.removeOptionAltText),this.push("pollOptionsData",I),R=Array.from(_.XB(_.XB(this.hostElement).querySelector("#poll-options")).children),R.forEach(function(O,w){O.polymerController.set("data.id",w)}),_.XB(R[R.length-1]).querySelector("#input").focus())};
_.L.getPollOptionInputValues=function(){var I=this,y=[],D=_.XB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),F=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(D).forEach(function(R,O){var w=null;R=R.getLiveChatRichMessageInput();var v;(R==null?0:(v=R.textSegments)==null?0:v.length)?w=_.Fp(R):F[O]&&(w=I.formattedStringToLiveChatRichMessageInput(F[O]));y.push(w)});
return y};
_.L.requestCreateAndStartPoll=function(I){var y=this.getPollOptionInputValues();if(!y.some(function(F){return!F})){y={optionText:y};
var D=_.XB(_.XB(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.liveChatRichMessageInput&&(y.questionText=_.Fp(D.liveChatRichMessageInput));_.E$(this.hostElement,[I,y])}};
_.L.selectedChanged=function(){if(this.selected){var I=_.XB(_.XB(this.hostElement).querySelector("#start-button")).firstElementChild;if(I){var y;(y=_.XB(I).querySelector("#button")||_.QU(I).querySelector("button"))==null||y.focus()}}};
_.L.handleTextInputChanged=function(I){var y;((y=I.target)==null?void 0:y.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=I.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.L.handleStartButtonAction=function(I){I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),(I=I.detail.args[1])&&this.requestCreateAndStartPoll(I))};
_.L.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.L.handleServiceRequestCompleted=function(I){this.createPollRequestInFlight=!1;(I=I.detail&&I.detail.data)&&I.success&&(_.lj(this.hostElement,"picker-cancelled"),_.uj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.L.onCloseClick=function(){_.lj(this.hostElement,"picker-cancelled");_.uj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.L.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.L.handlePollEditorInputClosed=function(I){var y=this.pollOptionsData.findIndex(function(D){return D.liveChatPollOptionInput.id===I.detail.id});
this.splice("pollOptionsData",y,1);this.isValidPoll=this.getIsValidPoll()};
_.L.onPickerCancelled=function(){this.reset()};
_.L.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var I=_.XB(_.XB(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.setLiveChatRichMessageInput(null);if(I=_.XB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){I=_.J(Array.from(I));for(var y=I.next();!y.done;y=I.next())y.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.L.formattedStringToLiveChatRichMessageInput=function(I){return I.simpleText?{text_segments:[I.simpleText]}:{text_segments:I.runs}};
_.mD.Object.defineProperties(tj.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(kcY,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
tj.prototype.onPickerCancelled=tj.prototype.onPickerCancelled;tj.prototype.handlePollEditorInputClosed=tj.prototype.handlePollEditorInputClosed;tj.prototype.handleServiceRequestCompleted=tj.prototype.handleServiceRequestCompleted;tj.prototype.handleServiceRequestSent=tj.prototype.handleServiceRequestSent;tj.prototype.handleTextInputChanged=tj.prototype.handleTextInputChanged;tj.prototype.selectedChanged=tj.prototype.selectedChanged;tj.prototype.isValidPollChanged=tj.prototype.isValidPollChanged;
tj.prototype.shouldInitializePollChanged=tj.prototype.shouldInitializePollChanged;tj.prototype.dataChanged=tj.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tj.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tj.prototype,"modern",void 0);
_.W([_.M(),_.A("design:type",Object)],tj.prototype,"closeButtonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],tj.prototype,"startButtonOverrides",void 0);_.W([_.M(),_.A("design:type",Object)],tj.prototype,"addOptionButtonOverrides",void 0);_.W([_.M({computed:"computeId(data.id)",reflectToAttribute:!0}),_.A("design:type",String)],tj.prototype,"id",void 0);_.W([_.M({value:function(){return[]}}),
_.A("design:type",Array)],tj.prototype,"pollOptionsData",void 0);_.W([_.Y("pollEditorInfoWithDefaults"),_.A("design:type",Object),_.A("design:paramtypes",[])],tj.prototype,"pollQuestionData",null);_.W([_.M({value:0}),_.A("design:type",Number)],tj.prototype,"pollQuestionCharacterCount",void 0);_.W([_.Y("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],tj.prototype,"pollQuestionCharactersRemaining",null);
_.W([_.M({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.A("design:type",Boolean)],tj.prototype,"overQuestionCharacterLimit",void 0);_.W([_.Y("data.pollEditorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],tj.prototype,"pollEditorInfoWithDefaults",null);_.W([_.M({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.A("design:type",Number)],tj.prototype,"currentNumPollOptions",void 0);
_.W([_.M({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.A("design:type",Boolean)],tj.prototype,"hasMaxNumPollOptions",void 0);_.W([_.Y("pollEditorInfoWithDefaults","pollOptionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tj.prototype,"shouldInitializePoll",null);_.W([_.M(),_.A("design:type",Object)],tj.prototype,"isValidPoll",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],tj.prototype,"createPollRequestInFlight",void 0);_.W([_.M(),_.A("design:type",Object)],tj.prototype,"selected",void 0);_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.A("design:type",Boolean)],tj.prototype,"showQuestionErrorMessage",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"dataChanged",null);_.W([_.ke("shouldInitializePoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"shouldInitializePollChanged",null);_.W([_.ke("isValidPoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"isValidPollChanged",null);
_.W([_.ke("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"selectedChanged",null);_.W([_.z4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tj.prototype,"handleTextInputChanged",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"handleServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tj.prototype,"handleServiceRequestCompleted",null);
_.W([_.z4("yt-live-chat-poll-editor-input-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tj.prototype,"handlePollEditorInputClosed",null);_.W([_.z4("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"onPickerCancelled",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],tj);
_.a(tj,"yt-live-chat-poll-editor-panel-renderer",function(){if(z7g===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;MSZ===void 0&&(MSZ=document.createElement("template"));var F=MSZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);z7g=I}I=z7g;return I},{mode:0});var dNY;var ab1;var Pk=function(){return _.k.apply(this,arguments)||this};
_.E(Pk,_.k);Pk.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Pk.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.mD.Object.defineProperties(Pk.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var I,y;return(I=this.data)==null?void 0:(y=I.title)==null?void 0:y.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var I;return _.yz((I=this.data)==null?void 0:I.onTapCommand)}}});
_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],Pk.prototype,"ytEndpointBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Pk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pk.prototype,"itemId",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Pk.prototype,"hasPromotion",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pk.prototype,"innertubeCommand",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Pk);
_.a(Pk,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ab1===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;dNY===void 0&&(dNY=document.createElement("template"));var F=dNY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ab1=I}I=ab1;return I},{mode:0});var cDb;var WuC;var Kk=function(){var I=_.k.apply(this,arguments)||this;I.id="product-picker";I.selected=!1;I.closeButtonId="close-button";I.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return I};
_.E(Kk,_.k);_.L=Kk.prototype;_.L.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.L.observeSelected=function(){this.selected&&this.hostElement.focus();var I=_.XB(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");I.length&&I[0].focus()};
_.L.onCloseBuyFlow=function(){_.lj(this.hostElement,"picker-cancelled")};
_.L.onCloseClick=function(){_.lj(this.hostElement,"picker-cancelled");var I;((I=this.data)==null?0:I.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.u(this.data.closeButton,_.Kb))};
_.L.onCloseEngageWithAudienceEditorPanels=function(){_.lj(this.hostElement,"picker-cancelled")};
Kk.prototype.observeSelected=Kk.prototype.observeSelected;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Kk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Kk.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kk.prototype,"id",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Kk.prototype,"selected",void 0);_.W([_.M(),_.A("design:type",Object)],Kk.prototype,"closeButtonId",void 0);_.W([_.ke("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kk.prototype,"observeSelected",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Kk);
_.a(Kk,"yt-live-chat-product-picker-panel-view-model",function(){if(WuC===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;cDb===void 0&&(cDb=document.createElement("template"));var F=cDb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);WuC=I}I=WuC;return I},{mode:0});var ChQ;var BSQ;var Un=function(){var I=_.k.apply(this,arguments)||this;I.iconId="";I.icon="";I.disabled=!1;I.systemIcons=_.l("kevlar_system_icons");return I};
_.E(Un,_.k);_.L=Un.prototype;_.L.computeIconId=function(I){return I&&I.icon&&I.icon.iconType?I.icon.iconType.toLowerCase():""};
_.L.computeIcon=function(I){return I&&I.icon&&I.icon.iconType?(I=I.icon.iconType.toLowerCase(),(I.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+I):""};
_.L.computeDisabled=function(I){return!!I};
_.L.computeCommand=function(I,y){return y?void 0:I};
_.L.computeTooltip=function(I,y){return y&&I?I:""};
_.L.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.mD.Object.defineProperties(Un.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var I="",y,D,F;if((y=this.data)==null?0:(D=y.text)==null?0:(F=D.runs)==null?0:F.length)I=this.data.text.runs[0].text||"";else{var R,O;if((R=this.data)==null?0:(O=R.text)==null?0:O.simpleText)I=this.data.text.simpleText}var w,v,P;if((w=this.data)==null?0:(v=w.subtext)==null?0:(P=v.runs)==null?0:P.length)I&&(I+=". "),I+=this.data.subtext.runs[0].text||"";else{var K,r;if((K=this.data)==null?0:(r=K.subtext)==
null?0:r.simpleText)I&&(I+=". "),I+=this.data.subtext.simpleText}return I}}});
_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],Un.prototype,"ytEndpointBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Un.prototype,"data",void 0);_.W([_.M({computed:"computeIconId(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Un.prototype,"iconId",void 0);
_.W([_.M({computed:"computeIcon(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Un.prototype,"icon",void 0);_.W([_.M({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.A("design:type",Object)],Un.prototype,"disabled",void 0);_.W([_.M({computed:"computeCommand(data.command, disabled)"}),_.A("design:type",Object)],Un.prototype,"command",void 0);_.W([_.M({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.A("design:type",String)],Un.prototype,"tooltip",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Un.prototype,"systemIcons",void 0);_.W([_.Y("data.text","data.subtext"),_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],Un.prototype,"ariaLabel",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Un);
_.a(Un,"yt-live-chat-product-button-renderer",function(){if(BSQ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ChQ===void 0&&(ChQ=document.createElement("template"));var F=ChQ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);BSQ=I}I=BSQ;return I},{mode:0});var iLR;var ADT;var rA=function(){var I=_.k.apply(this,arguments)||this;I.selected=!1;I.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 I};
_.E(rA,_.k);_.L=rA.prototype;_.L.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"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.L.computeId=function(I){return I.id||""};
_.L.onCloseClick=function(){_.lj(this.hostElement,"picker-cancelled")};
_.L.observeSelected=function(){this.selected&&this.hostElement.focus();var I=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");I.length&&I[0].focus()};
_.L.onCloseBuyFlow=function(){_.lj(this.hostElement,"picker-cancelled")};
_.L.onCloseEngageWithAudienceEditorPanels=function(){_.lj(this.hostElement,"picker-cancelled")};
rA.prototype.observeSelected=rA.prototype.observeSelected;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],rA.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rA.prototype,"data",void 0);
_.W([_.M({computed:"computeId(data)",reflectToAttribute:!0}),_.A("design:type",String)],rA.prototype,"id",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],rA.prototype,"selected",void 0);_.W([_.ke("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rA.prototype,"observeSelected",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],rA);
_.a(rA,"yt-live-chat-product-picker-renderer",function(){if(ADT===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;iLR===void 0&&(iLR=document.createElement("template"));var F=iLR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ADT=I}I=ADT;return I},{mode:0});var $Na;var bL1;var HLb;var e7o;var jP=function(){return _.k.apply(this,arguments)||this};
_.E(jP,_.k);jP.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()};
jP.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
jP.prototype.created=function(){this.ids={background:so(),maskOne:so(),maskTwo:so(),gradient:so(),largeBackground:so(),largeGradientOne:so(),largeGradientTwo:so(),largeGradientPath:so()}};
jP.prototype.maybeLoadAnimationBackground=jP.prototype.maybeLoadAnimationBackground;_.W([_.M({value:!1}),_.A("design:type",Boolean)],jP.prototype,"useLargeBackground",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],jP.prototype,"useAnimationBackground",void 0);_.W([_.M({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.A("design:type",Boolean)],jP.prototype,"useRegularBackground",void 0);
_.W([_.M(),_.A("design:type",Object)],jP.prototype,"ids",void 0);_.W([_.M(),_.A("design:type",Object)],jP.prototype,"lottieAnimation",void 0);_.W([_.a0("#animation-background"),_.A("design:type",HTMLDivElement)],jP.prototype,"animationBackground",void 0);_.W([_.ke("useAnimationBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jP.prototype,"maybeLoadAnimationBackground",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],jP);
_.a(jP,"yt-live-interactivity-component-background",function(){if(e7o===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;HLb===void 0&&(HLb=document.createElement("template"));var F=HLb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);e7o=I}I=e7o;return I},{mode:0});var oi=function(){var I=_.k.apply(this,arguments)||this;I.characterCount=0;I.showInputErrorMessage=!1;I.startQnaRequestInFlight=!1;I.modern=_.l("web_button_rework_with_live");I.buttonOverrides={style:"mono",type:"filled"};I.closeButtonOverrides={iconPosition:"icon-only"};I.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return I};
_.E(oi,_.k);_.L=oi.prototype;
_.L.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]]"}}}}}};
_.L.onCharacterCountChanged=function(I){var y,D,F,R,O=(D=_.u(this==null?void 0:(y=this.data)==null?void 0:y.creatorCallForQuestions,IpT))==null?void 0:(F=D.inputField)==null?void 0:(R=F.liveChatTextInputFieldRenderer)==null?void 0:R.maxCharacterLimit,w,v;O!=null&&(I==null?void 0:(w=I.detail)==null?void 0:w.characterCount)!=null&&_.u(this==null?void 0:(v=this.data)==null?void 0:v.startButton,_.S1)&&(y=I.detail.characterCount>O,this.set("data.startButton.buttonRenderer.isDisabled",I.detail.characterCount===
0||y),this.showInputErrorMessage=y)};
_.L.onCloseClick=function(){_.lj(this.hostElement,"picker-cancelled");_.uj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.L.onPickerCancelled=function(){var I=_.XB(this.hostElement).querySelector("#qna-creator-text-input-field");I&&I.setLiveChatRichMessageInput(null)};
_.L.handleOpenQnaStartPanel=function(){var I=_.XB(this.hostElement).querySelector("#qna-creator-text-input-field");I&&I.focus()};
_.L.handleStartButtonAction=function(I){var y=this;if(I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),I=I.detail.args[1])){var D=_.XB(this.hostElement).querySelector("#qna-creator-text-input-field"),F;(D==null?0:(F=D.liveChatRichMessageInput)==null?0:F.textSegments)&&D.liveChatRichMessageInput.textSegments.length!==0&&(F={rich_message:_.Fp(D.liveChatRichMessageInput)},_.E$(this.hostElement,[I,F]).then(function(){_.lj(y.hostElement,"picker-cancelled")}))}};
_.L.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.L.handleServiceRequestCompleted=function(I){var y;I=I==null?void 0:(y=I.detail)==null?void 0:y.data;(I==null?0:I.actions)&&I.actions.length>0?this.startQnaRequestInFlight=!1:_.uj(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.L.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
oi.prototype.handleServiceRequestError=oi.prototype.handleServiceRequestError;oi.prototype.handleServiceRequestCompleted=oi.prototype.handleServiceRequestCompleted;oi.prototype.handleServiceRequestSent=oi.prototype.handleServiceRequestSent;oi.prototype.onPickerCancelled=oi.prototype.onPickerCancelled;oi.prototype.onCharacterCountChanged=oi.prototype.onCharacterCountChanged;_.W([_.M(),_.A("design:type",Object)],oi.prototype,"characterCount",void 0);
_.W([_.M(),_.A("design:type",Object)],oi.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],oi.prototype,"showInputErrorMessage",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],oi.prototype,"startQnaRequestInFlight",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],oi.prototype,"modern",void 0);_.W([_.M(),_.A("design:type",Object)],oi.prototype,"buttonOverrides",void 0);
_.W([_.M(),_.A("design:type",Object)],oi.prototype,"closeButtonOverrides",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],oi.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Q(_.jx.YtLiveChatItemBehavior),_.A("design:type",_.ot)],oi.prototype,"ytLiveChatItemBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],oi.prototype,"ytActionHandlerBehavior",void 0);_.W([_.z4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oi.prototype,"onCharacterCountChanged",null);_.W([_.z4("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oi.prototype,"onPickerCancelled",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oi.prototype,"handleServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oi.prototype,"handleServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oi.prototype,"handleServiceRequestError",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],oi);
_.a(oi,"yt-live-chat-qna-start-panel-renderer",function(){if(bL1===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;$Na===void 0&&($Na=document.createElement("template"));var F=$Na;D.call(y,F.content.cloneNode(!0),I.content.firstChild);bL1=I}I=bL1;return I},{mode:0});var TSb;var syG;var Nq=function(){return _.k.apply(this,arguments)||this};
_.E(Nq,_.k);Nq.prototype.dismiss=function(){_.lj(this.hostElement,"yt-live-chat-error-message-dismiss")};
Nq.prototype.edit=function(){_.lj(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.W([_.M(),_.A("design:type",Object)],Nq.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Nq);
_.a(Nq,"yt-live-chat-text-actions-error-message-renderer",function(){if(syG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;TSb===void 0&&(TSb=document.createElement("template"));var F=TSb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);syG=I}I=syG;return I},{mode:0});var VSY;var ZLG;var ghC;var ISy;var hj=function(){var I=_.k.apply(this,arguments)||this;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.newnessDotEligible=!1;return I};
_.E(hj,_.k);hj.prototype.sendReaction=function(){var I,y,D=((I=this.data)==null?void 0:I.emojiId)||((y=this.data)==null?void 0:y.emoteId),F;D&&((F=this.data)==null?0:F.shouldTriggerAnimation)&&_.uj(this.hostElement,"yt-create-user-reaction-animation",[D]);var R;(I=_.yz((R=this.data)==null?void 0:R.onTap))&&_.zv(I,this.hostElement);this.showNewnessDot&&_.uj(this.hostElement,"yt-hide-newness-dot")};
hj.prototype.onClick=function(I){(!I||I.clientX||I.clientY)&&this.sendReaction()};
hj.prototype.onKeyDown=function(I){I.key!=="Enter"&&I.key!==" "||I.repeat||this.sendReaction()};
_.mD.Object.defineProperties(hj.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!(((I=this.data)==null?0:I.emojiId)||((y=this.data)==null?0:y.emoteId))}}});
_.W([_.M(),_.A("design:type",Object)],hj.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],hj.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],hj.prototype,"newnessDotEligible",void 0);_.W([_.Y("data.maybeShowNewnessDot"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hj.prototype,"showNewnessDot",null);_.W([_.Y("data.emojiId","data.emoteId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hj.prototype,"useYtImage",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],hj);
_.a(hj,"yt-reaction-control-panel-button-view-model",function(){if(ISy===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;ghC===void 0&&(ghC=document.createElement("template"));var F=ghC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ISy=I}I=ISy;return I},{mode:0});var yXZ;var DmT;var x9=function(){var I=_.k.apply(this,arguments)||this;I.reactionControlPanelExpanded=!1;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.newnessDotEligible=!1;return I};
_.E(x9,_.k);_.L=x9.prototype;_.L.expandedButtonsChanged=function(){var I,y;_.pg(this.hostElement,{"--expanded-buttons-height":((y=(I=this.expandedButtonsData)==null?void 0:I.length)!=null?y:0)*36+"px"})};
_.L.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}}};
_.L.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.L.onMouseLeave=function(){var I=this;this.collapseTimer=setTimeout(function(){I.reactionControlPanelExpanded=!1},500)};
_.L.onFocusIn=function(){this.onMouseEnter()};
_.L.onFocusOut=function(){this.onMouseLeave()};
_.L.onCollapsedButtonFocusIn=function(){var I=this;setTimeout(function(){var y;(y=I.expandedButtons.querySelector("button"))==null||y.focus()},100)};
_.L.onCollapsedButtonFocusOut=function(I){I.stopPropagation()};
_.mD.Object.defineProperties(x9.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var I,y;return _.e$.unsafeClone((I=this.liveReactionsData)==null?void 0:I.emojiButtonData)||((y=this.data)==null?void 0:y.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var I;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((I=this.data)==null||!I.maybeShowNewnessDot)}}});
x9.prototype.expandedButtonsChanged=x9.prototype.expandedButtonsChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],x9.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],x9.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],x9.prototype,"reactionControlPanelExpanded",void 0);_.W([_.M({selectorArgs:["data.liveReactionsDataEntityKey"],selector:h3a}),_.A("design:type",Object)],x9.prototype,"liveReactionsData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],x9.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],x9.prototype,"newnessDotEligible",void 0);
_.W([_.Y("liveReactionsData","data.expandedButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],x9.prototype,"expandedButtonsData",null);_.W([_.Y("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.M({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],x9.prototype,"showNewnessDot",null);_.W([_.a0("#expanded-buttons"),_.A("design:type",HTMLElement)],x9.prototype,"expandedButtons",void 0);
_.W([_.ke("expandedButtonsData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x9.prototype,"expandedButtonsChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],x9);
_.a(x9,"yt-reaction-control-panel-view-model",function(){if(DmT===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;yXZ===void 0&&(yXZ=document.createElement("template"));var F=yXZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);DmT=I}I=DmT;return I},{mode:0});var lt=new _.Ku("yt-live-chat"),FTa=Date.parse("2024-7-24"),ut=function(){var I=_.k.apply(this,arguments)||this;I.emojiManager=_.rQ;I.newnessDotEligible=!1;I.newnessDotImpressionCounted=!1;I.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return I};
_.E(ut,_.k);_.L=ut.prototype;_.L.emojiCustomizationEnabledChanged=function(){var I;((I=this.data)==null?0:I.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((I=lt.getCreationTime("emoji-customization-count"))&&I<FTa&&lt.set("emoji-customization-count","0"),I=Number(lt.get("emoji-customization-count"))||0,I<3&&(this.newnessDotEligible=!0,lt.set("emoji-customization-count",(I+1).toString())),this.newnessDotImpressionCounted=!0)};
_.L.hideNewnessDot=function(){this.newnessDotEligible=!1;lt.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.L.handleReactionsMute=function(I){var y=_.VO(),D=_.QM(206221),F={checkboxData:{state:I?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};y&&_.SI(y,D,F);this.reactionsMuted=I};
_.L.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.L.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}}};
_.mD.Object.defineProperties(ut.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var I;return(!((I=this.liveReactionsData)==null||!I.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
ut.prototype.liveReactionsSettingChanged=ut.prototype.liveReactionsSettingChanged;ut.prototype.emojiCustomizationEnabledChanged=ut.prototype.emojiCustomizationEnabledChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.J2),_.A("design:type",Object)],ut.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ut.prototype,"data",void 0);_.W([_.M(),_.A("design:type",_.P9)],ut.prototype,"emojiManager",void 0);_.W([_.M(),_.A("design:type",Object)],ut.prototype,"newnessDotEligible",void 0);_.W([_.M(),_.A("design:type",Object)],ut.prototype,"newnessDotImpressionCounted",void 0);
_.W([_.M({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:xra}),_.A("design:type",Boolean)],ut.prototype,"liveReactionsSetting",void 0);_.W([_.M({selectorArgs:["data.liveReactionsDataEntityKey"],selector:h3a}),_.A("design:type",Object)],ut.prototype,"liveReactionsData",void 0);_.W([_.M({value:function(){var I=_.l("enable_lwe_web_mute"),y=lt.get("allow-reactions");return y===void 0?!1:!y&&I}}),
_.A("design:type",Boolean)],ut.prototype,"reactionsMuted",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ut.prototype,"liveReactionsEnabled",null);_.W([_.ke("data.emojiCustomizationEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ut.prototype,"emojiCustomizationEnabledChanged",null);
_.W([_.ke("liveReactionsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ut.prototype,"liveReactionsSettingChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],ut);
_.a(ut,"yt-reaction-control-panel-overlay-view-model",function(){if(ZLG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;VSY===void 0&&(VSY=document.createElement("template"));var F=VSY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ZLG=I}I=ZLG;return I},{mode:0});var RTY={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(I){var y=this.$.pickers.selected;if(y){_.XB(this.hostElement).removeAttribute(y+"-open");var D="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(D="#picker-buttons",y==="emoji"&&_.XB(this.hostElement).querySelector("#emoji-picker-button")&&(D="#emoji-picker-button"));if(D=_.XB(this.hostElement).querySelector(D).querySelector("#"+y))D.active=!1}D=I;y==I&&(D=null);y!=
I&&_.XB(this.hostElement).setAttribute(I+"-open","");this.$.pickers.selected=D;_.uj(this.hostElement,"yt-live-chat-picker-changed",[D])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var qq=function(){var I=_.k.apply(this,arguments)||this;I.numSentMessages=0;I.timeoutDurationMs=0;I.timeoutMs=0;I.lastTimeoutTimeMs=0;I.pendingMessageId="";I.hasFiredInitialFocusActions=!1;I.isBeforeFocusEnabled=!0;I.id="";I.characterCount=0;I.maxCharacterLimit=0;I.remainingCharacterCount=0;I.inputExpanded=!1;I.buttonOverrides={iconPosition:"icon-only"};I.inReplyPanel=!1;I.countdownRatio=0;I.isTooltipVisible=!1;I.tooltipTimeout=1E4;I.systemIcons=_.l("kevlar_system_icons");I.tallerEmojiPicker=_.l("live_chat_taller_emoji_picker");
I.sendReplyMessageInFlight=!1;I.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"};I.onResize=function(){I.maybeToggleCharacterCount()};
return I};
_.E(qq,_.k);_.L=qq.prototype;
_.L.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"}}}};
_.L.attached=function(){window.addEventListener("resize",this.onResize)};
_.L.detached=function(){window.removeEventListener("resize",this.onResize)};
_.L.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.L.sendMessage=function(){var I=this,y,D,F,R;return _.S(function(O){if(I.sendDisabled)return O.return();I.isTooltipVisible&&_.uj(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(I.data.sendButton&&I.data.sendButton.buttonRenderer){I.input.completeEmojis();y=I.data.sendButton.buttonRenderer.serviceEndpoint;if(!y)return O.return();F=((D=_.u(y,_.hee))==null?void 0:D.clientIdPrefix)||"";R={client_message_id:F+String(I.numSentMessages++),rich_message:_.Fp(I.input.liveChatRichMessageInput)};
I.pendingMessageId=R.client_message_id;I.inReplyPanel&&(I.sendReplyMessageInFlight=!0);_.E$(I.hostElement,[y,R]);I.input.setLiveChatRichMessageInput(null)}_.Cj(O)})};
_.L.handleSendButtonAction=function(I){I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),this.sendMessage())};
_.L.onSendCompleted=function(I,y){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(I=this.get("timeoutDurationUsec",y.data))&&this.handleTimeout(Number(I)/1E3);this.errorMessage=this.get("errorMessage",y.data);this.pendingMessageId=""};
_.L.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.uj(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.L.handlePickerButtonToggle=function(I){I=I.detail.targetId;this.ytPickerBehavior.togglePicker_(I);if(I==="emoji")this.input.focus();else if(I==="qna-start-panel"){var y,D;(y=_.XB(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(D=y.querySelector("#qna-creator-text-input-field"))==null||D.focus()}};
_.L.onComponentReplaced=function(I){var y,D;I.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((y=I.replacement.liveChatMessageInputRenderer)==null?0:(D=y.headerRenderer)==null?0:D.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.L.onEmojiSelect=function(I){this.input.focus();this.input.insertEmoji(I.detail)};
_.L.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.L.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.uj(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.uj(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.L.onOpenPopupAction=function(I,y){var D=this;y===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.uj(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.L.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.L.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.L.focusChanged=function(){this.maybeToggleCharacterCount()};
_.L.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var I=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",I>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.L.computeId=function(){return this.data&&this.data.targetId||""};
_.L.computeSendDisabled=function(I,y,D,F){I=!!(!I||y&&I>y||F);(y=_.XB(this.hostElement).querySelector("#send-button"))&&y.children.length&&(y.children[0].disabled=I);return I};
_.L.handleTimeout=function(I){this.timeoutDurationMs=this.timeoutMs=I;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.L.updateTimeout=function(I){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(I-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=I,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.L.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.L.onErrorMessageEdit=function(I){this.input.setLiveChatRichMessageInput(I.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.L.errorMessageChanged=function(){var I=this;_.wy(function(){_.uj(I.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.L.computeAuthorNameColor=function(I){var y;if(_.l("live_chat_author_name_color_usernames")&&(I==null?0:(y=I.authorName)==null?0:y.simpleText))return _.UNt(_.rDH(I.authorName.simpleText));if(_.l("live_chat_seed_color_usernames")&&(I==null?0:I.authorSeedColorArgb))return _.UNt(_.fQ(I.authorSeedColorArgb));if(_.l("live_chat_colored_usernames"))return"#cc0000";var D;return _.l("live_chat_simple_color_usernames")&&(I==null?0:(D=I.authorName)==null?0:D.simpleText)&&(I==null?0:I.authorUsernameColorLight)&&
(I==null?0:I.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.fQ(I.authorUsernameColorDark):_.fQ(I.authorUsernameColorLight):""};
_.L.onIsTooltipVisibleChanged=function(){var I=_.XB(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){I.hidden=!1;I.setAttribute("role","alert")},0):(I.hidden=!0,I.removeAttribute("role"))};
_.L.onFocusedChanged=function(I){this.inputFocused=I.detail.value};
_.mD.Object.defineProperties(qq.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 I;return!((I=this.data)==null||!I.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.pickers)==null?void 0:y.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return I?this.ytRendererBehavior.getSimpleString(I):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
qq.prototype.onIsTooltipVisibleChanged=qq.prototype.onIsTooltipVisibleChanged;qq.prototype.errorMessageChanged=qq.prototype.errorMessageChanged;qq.prototype.onErrorMessageEdit=qq.prototype.onErrorMessageEdit;qq.prototype.onErrorMessageDismiss=qq.prototype.onErrorMessageDismiss;qq.prototype.focusChanged=qq.prototype.focusChanged;qq.prototype.characterCountChanged=qq.prototype.characterCountChanged;qq.prototype.onEmojiSelect=qq.prototype.onEmojiSelect;qq.prototype.handlePickerButtonToggle=qq.prototype.handlePickerButtonToggle;
qq.prototype.onSendError=qq.prototype.onSendError;qq.prototype.onSendCompleted=qq.prototype.onSendCompleted;qq.prototype.sendMessage=qq.prototype.sendMessage;qq.prototype.dataChanged=qq.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(RTY.YtPickerBehavior),_.A("design:type",Object)],qq.prototype,"ytPickerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.wi.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],qq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"hasFiredInitialFocusActions",void 0);
_.W([_.M(),_.A("design:type",Object)],qq.prototype,"isBeforeFocusEnabled",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"data",void 0);_.W([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],qq.prototype,"id",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"characterCount",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"maxCharacterLimit",void 0);
_.W([_.M(),_.A("design:type",Object)],qq.prototype,"remainingCharacterCount",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qq.prototype,"inputExpanded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],qq.prototype,"inputFocused",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],qq.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.W([_.M(),_.A("design:type",_.x3)],qq.prototype,"participantsManager",void 0);
_.W([_.M(),_.A("design:type",Object)],qq.prototype,"buttonOverrides",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qq.prototype,"inReplyPanel",void 0);_.W([_.Y("characterCount, maxCharacterLimit, countdownActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"sendDisabled",null);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"countdownRatio",void 0);
_.W([_.Y("countdownRatio"),_.A("design:type",Number),_.A("design:paramtypes",[])],qq.prototype,"countdownStrokeDashOffset",null);_.W([_.Y("countdownRatio"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"countdownActive",null);_.W([_.Y("data.interactionMessage"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"hasInteractionMessage",null);
_.W([_.Y("data.emojiPickerButton"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"hasEmojiPickerButton",null);_.W([_.Y("data, characterCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"showAvatar",null);_.W([_.Y("data.pickers"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qq.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.M(),_.A("design:type",Object)],qq.prototype,"errorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"genericErrorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"isTooltipVisible",void 0);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"tooltipTimeout",void 0);_.W([_.Y("data.onInitialFocusCommand"),_.A("design:type",String),_.A("design:paramtypes",[])],qq.prototype,"tooltipMessage",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qq.prototype,"systemIcons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qq.prototype,"tallerEmojiPicker",void 0);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],qq.prototype,"authorNameColor",null);_.W([_.M(),_.A("design:type",Object)],qq.prototype,"sendReplyMessageInFlight",void 0);_.W([_.a0("#input"),_.A("design:type",_.RKO)],qq.prototype,"input",void 0);
_.W([_.a0("#count"),_.A("design:type",HTMLElement)],qq.prototype,"count",void 0);_.W([_.a0("#input-container"),_.A("design:type",HTMLElement)],qq.prototype,"inputContainer",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"dataChanged",null);_.W([_.z4("yt-live-chat-send-message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],qq.prototype,"sendMessage",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.tZ]),_.A("design:returntype")],qq.prototype,"onSendCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"onSendError",null);
_.W([_.z4("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qq.prototype,"handlePickerButtonToggle",null);_.W([_.z4("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qq.prototype,"onEmojiSelect",null);
_.W([_.ke("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"characterCountChanged",null);_.W([_.ke("inputFocused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"focusChanged",null);_.W([_.z4("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"onErrorMessageDismiss",null);
_.W([_.z4("yt-live-chat-error-message-edit"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qq.prototype,"onErrorMessageEdit",null);_.W([_.ke("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"errorMessageChanged",null);_.W([_.ke("isTooltipVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"onIsTooltipVisibleChanged",null);
_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],qq);
_.a(qq,"yt-live-chat-message-input-renderer",function(){if(GcT===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;EhZ===void 0&&(EhZ=document.createElement("template"));var F=EhZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GcT=I}I=GcT;return I},{mode:0});var OOa;var LTo;var En=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.firedOnClickCommand=!1;I.inReplyPanel=!1;return I};
_.E(En,_.k);
En.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"}}}};
En.prototype.onButtonToggle=function(I){I.target.disabled||this.ytPickerBehavior.togglePicker_(I.detail.targetId)};
En.prototype.onClick=function(){var I=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.uj(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return I.firedOnClickCommand=!1},5E3))};
_.mD.Object.defineProperties(En.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.panels)==null?void 0:y.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}}});
En.prototype.onButtonToggle=En.prototype.onButtonToggle;_.W([_.Q(RTY.YtPickerBehavior),_.A("design:type",Object)],En.prototype,"ytPickerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],En.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],En.prototype,"systemIcons",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Object)],En.prototype,"firedOnClickCommand",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],En.prototype,"inReplyPanel",void 0);_.W([_.Y("data.pickers"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],En.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.z4("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],En.prototype,"onButtonToggle",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],En);
_.a(En,"yt-live-chat-restricted-participation-renderer",function(){if(LTo===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;OOa===void 0&&(OOa=document.createElement("template"));var F=OOa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);LTo=I}I=LTo;return I},{mode:0});var GW=function(){var I=_.k.apply(this,arguments)||this;I.genericErrorMessage=_.Ug("Error, try again.");I.inReplyPanel=!1;I.hideBorder=!1;return I};
_.E(GW,_.k);GW.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}}}}}};
_.mD.Object.defineProperties(GW,{template:{configurable:!0,enumerable:!0,get:function(){return oho()}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GW.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],GW.prototype,"genericErrorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],GW.prototype,"inReplyPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],GW.prototype,"hideBorder",void 0);
_.W([_.I6({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],GW);_.a(GW,"yt-live-chat-engagement-panel-input-renderer",function(){return oho()},{mode:0});var JX1;var wYC;var v58=new _.Ku("yt-live-chat"),Spa=new Map;Spa.set("timestamp_toggle","show-timestamps");Spa.set("reactions_toggle","allow-reactions");var Xr=function(){return _.k.apply(this,arguments)||this};
_.E(Xr,_.k);_.L=Xr.prototype;_.L.menuItemIdentifierChanged=function(){var I;(I=this.data)!=null&&I.menuItemIdentifier&&(I=Spa.get(this.data.menuItemIdentifier))&&(_.l("enable_lwe_web_mute")?(I=v58.get(I),this.isToggled=!(I===void 0?!this.data.isToggled:!I)):this.isToggled=v58.get(I))};
_.L.onFocus=function(){this.toggleButton.focus()};
_.L.onTap=function(){var I=this.data.command;I&&this.componentBehavior.resolveCommand(I)};
_.L.computeText=function(I,y,D){return this.componentBehavior.getSimpleString(I?D:y)};
_.L.computeIcon=function(I,y,D){return(I=I?D:y)&&I.iconType?_.pQ(I.iconType):""};
Xr.prototype.onTap=Xr.prototype.onTap;Xr.prototype.onFocus=Xr.prototype.onFocus;Xr.prototype.menuItemIdentifierChanged=Xr.prototype.menuItemIdentifierChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Xr.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Xr.prototype,"data",void 0);
_.W([_.M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],Xr.prototype,"icon",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Xr.prototype,"isToggled",void 0);_.W([_.a0("tp-yt-paper-toggle-button"),_.A("design:type",Object)],Xr.prototype,"toggleButton",void 0);_.W([_.ke("data.menuItemIdentifier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xr.prototype,"menuItemIdentifierChanged",null);
_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xr.prototype,"onFocus",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xr.prototype,"onTap",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Xr);
_.a(Xr,"yt-live-chat-toggle-renderer",function(){if(wYC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;JX1===void 0&&(JX1=document.createElement("template"));var F=JX1;D.call(y,F.content.cloneNode(!0),I.content.firstChild);wYC=I}I=wYC;return I},{mode:0});var tBG=new _.uk("NAVIGATION_PROGRESS_TOKEN");var PeZ={},KT8={},UmR=(KT8[DkC.name]=!0,KT8),Qs=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;I.tabGesturesIsActive=!1;I.actionRouterIsRoot=!0;I.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"};I.pageTitle="";I.titleSuffix="YouTube";I.unseenNotificationCount=
0;I.hasNavigated=!1;I.hasSetScrollTopForNavigation=!1;I.pagePreparer=null;I.zwiebackInitJobId=0;I.dataUpdatePromise=null;I.loadDepsPromise=_.Xs();I.hasPendingNavigation=!1;I.pendingPlayerOnResponseReceivedActions=[];return I};
_.E(Qs,_.Wp);Qs.prototype.attached=function(){rXT(this);document.addEventListener("yt-navigate-cache",_.MX(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var I=Y9();I.init();I.dispatchElement=this.hostElement};
var rXT=function(I,y){y=y===void 0?0:y;var D=_.nR().resolve(_.fR(_.Wf));if(D)j$R(I,D);else{if(y>=5)throw Error("ul");setTimeout(function(){rXT(I,y+1)},0)}},j$R=function(I,y){y.addEventListener("yt-navigate-start",_.MX(I,I.onYtNavigateStart));
y.addEventListener("yt-navigate-finish",_.MX(I,I.onYtNavigateFinish));y.addEventListener("yt-navigate-error",_.MX(I,I.onYtNavigateError));y.addEventListener("yt-page-data-fetched",_.MX(I,I.onYtPageDataFetched))};
_.L=Qs.prototype;_.L.detached=function(){var I=_.nR().resolve(_.Wf);I.removeEventListener("yt-navigate-start",_.MX(this,this.onYtNavigateStart));I.removeEventListener("yt-navigate-finish",_.MX(this,this.onYtNavigateFinish));I.removeEventListener("yt-navigate-error",_.MX(this,this.onYtNavigateError));I.removeEventListener("yt-page-data-fetched",_.MX(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.MX(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.L.setPageOffset=function(I,y){I?_.uj(this.hostElement,"yt-set-page-offset",[I,y]):_.vu(Error("vl"))};
_.L.setPageOffsetForNavigation=function(I,y){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(I,y))};
_.L.onYtNavigateSetPageOffset=function(I,y){this.setPageOffsetForNavigation(y.page,y.offset)};
_.L.getPageOffset=function(){var I=_.XB(this.hostElement).querySelector("#page-manager").getCurrentPage(),y=0;I&&(y=_.uj(this.hostElement,"yt-get-page-offset",[I])[0]);return y};
_.L.onYtHistoryPop=function(I,y){if(_.KR("DISABLE_WARM_LOADS"))I.preventDefault(),window.location.reload();else{var D=_.nR().resolve(_.Wf);D.hasPendingNavigation()&&I.preventDefault();D.cancelPendingNavigation();_.qr(this.hostElement,"yt-pending-navigation-cancelled");y.errorMsg&&(I=y.errorMsg.split(" - "),y=Error(I[0]),I.length==2&&I[1]&&(_.Pu(y,I[1]),_.tq(y)),window.location.reload())}};
_.L.onYtHistoryLoad=function(I,y){var D=this;if(_.KR("DISABLE_WARM_LOADS"))window.location.reload();else{(I=y.endpoint)&&Object.keys(I).length||(I=null);var F=y.historyEntry,R=_.nR().resolve(_.Wf),O=_.nR().resolve(_.ja),w=null;F&&F.rootData&&(w=F.rootData);var v=w&&o5b(w);!w||v||w.filler?I?(R.navigate(I,!0),Nd1(this,I)):(y.legacyBorder||v||(y.JSC$31091_savedComponentState==null&&w==null?_.tq(new _.g6("Incomplete history entry",y.forward)):_.Sb(new _.g6("Malformed history entry",y.JSC$31091_savedComponentState,
y.forward,w))),window.location.reload()):(_.V1W({isHot:!0}),_.ek({webInfo:{navigationReason:"h"}}),_.Iuo(),_.V_("srt"),_.V_("pdc"),this.cancelPendingTasks(),hT1(this,y.forward,w),w.player&&(w.player.loaded=!1),Nd1(this,I),_.dsg(R,I||{},w,2,{},!1,y).then(function(){D.setPageOffset(O.getCurrentPage(),F.scrollTop||0)}))}};
_.L.initHistoryManager=function(I){if(!this.hasNavigated){this.hasNavigated=!0;var y=_.XB(this.hostElement).querySelector("#page-manager").getCurrentData();I=isNaN(I)?this.getPageOffset():I;var D=_.nR().resolve(_.Wf).currentEndpoint;this.replaceState(D,y,I)}};
_.L.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.L.onYtNavigateStart=function(I,y){this.cancelPendingTasks();y.noProgressBar||(I=_.nR().resolve(_.fR(tBG)))&&I.start();I=this.hasPendingNavigation?null:this.data;var D=_.nR().resolve(_.ja),F,R,O;_.l("kevlar_use_vimio_behavior")&&!((F=y.endpoint)==null?0:(R=F.commandMetadata)==null?0:(O=R.webCommandMetadata)==null?0:O.ignoreNavigation)&&(F=D.getCurrentPage())&&F.disconnectVisibilityRoot();D.prepareForNavigation(y.pageType,y.endpoint);_.l("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.EY(1,
"pcl"),_.G1(this.pagePreparer,D.preparePage.bind(D,y.pageType,y.endpoint)));F=this.getPageOffset();this.initHistoryManager(F);y.reload||this.hasPendingNavigation?(y.pageType==="shorts"&&y.reload&&_.lj(this.hostElement,"yt-shorts-reset"),this.replaceState(y.endpoint,I,F)):(I==null?void 0:I.page)==="watch"&&y.pageType==="watch"&&_.l("kevlar_replace_watch_to_watch_history_state")?this.replaceState(y.endpoint,I,F):(I==null?void 0:I.page)!=="shorts"||y.pageType!=="shorts"||y.endpoint.reelWatchEndpoint.sequenceParams||
_.l("short_to_short_back_nav_killswitch")?y.type!="navigate-back"&&y.type!="navigate-forward"&&(y.pageType==="shorts"&&_.lj(this.hostElement,"yt-shorts-reset"),this.saveAndPush(y.url,y.endpoint,I,F)):this.replaceState(y.endpoint,I,0);this.hasPendingNavigation=!0};
var xmy=function(I){I.hasPendingNavigation=!1;(I=_.nR().resolve(_.fR(tBG)))&&I.finish()};
Qs.prototype.onYtNavigateError=function(I,y){xmy(this);I=this.get("endpoint.commandMetadata.webCommandMetadata.url",y);var D=_.lP(window.location.href);I&&!D.pbjreload&&(y=y.navigationErrorReason||"10",_.l("kevlar_parent_on_pbjreload")&&(D={csn:_.VO()},this.get("data.endpoint.clickTrackingParams")&&(D.itct=this.data.endpoint.clickTrackingParams),_.re(I,D)),_.FB(_.uP(I,{pbjreload:y})))};
Qs.prototype.onYtNavigateCache=function(I,y){var D=this,F=y.url,R=y.endpoint,O=y.data;I=!!y.miniplayer;y=!!y.skipHistory;if(F&&R&&O){var w=this.getPageOffset(),v=this.data||null;y||this.saveAndPush(F,R,v,w);F=_.dsg(_.nR().resolve(_.Wf),R,O,I?4:3,{},I);I&&F.then(function(){D.dataUpdatePromise&&D.dataUpdatePromise.then(function(){var P=_.nR().resolve(_.ja);D.setPageOffset(P.getCurrentPage(),0)})})}};
Qs.prototype.onYtNavigateFinish=function(I,y){var D=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){lSe(D,y.fromHistory)})};
var lSe=function(I,y){xmy(I);if(I.pendingPlayerOnResponseReceivedActions){for(var D=_.J(I.pendingPlayerOnResponseReceivedActions),F=D.next();!F.done;F=D.next())_.zv(F.value,I.hostElement);I.pendingPlayerOnResponseReceivedActions=[]}D=_.nR().resolve(_.ja);y||!I.hasNavigated||_.l("web_disable_scroll_on_navigate_finish")||((y=D.getCurrentPage())?y.is==="ytd-shorts"||I.tabGesturesIsActive||I.setPageOffsetForNavigation(y,0):_.tq(Error("wl")));_.wy(function(){_.wy(function(){_.V_("pda")})})};
Qs.prototype.onYtNavigate=function(I){if(!I.detail.endpoint){var y=new _.g6("Error: Missing yt-navigate endpoint from target:",I.target,I.target.nodeName);_.vu(y)}if(y=_.l("cold_missing_history"))y=Y9(),y.init(!1),y=!(y.browserHistory.boundHistoryReplaceState&&y.browserHistory.boundHistoryPushState);if(y){_.tG("DISABLE_WARM_LOADS",!0);y=new _.g6("Failed to initialize history manager",this.getDebugString());var D=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
D?_.tq(y):_.vu(y)}y=I.detail.endpoint;var F,R;_.l("debug_forward_web_query_parameters")&&((F=y.commandMetadata)==null?0:(R=F.webCommandMetadata)==null?0:R.url)&&(y=JSON.parse(JSON.stringify(y)),y.commandMetadata.webCommandMetadata.url=_.NHo(y.commandMetadata.webCommandMetadata.url,window.location.search));I={type:0,command:y,form:{params:I.detail.params,tempData:I.detail.tempData||{},requestType:I.detail.type,createScreenConfig:I.detail.createScreenConfig,reload:I.detail.reload?I.detail.reload:!1,
requestForm:I.detail}};_.l("kevlar_yt_navigate_command_handler")?(F=_.nR().resolve(_.MC),I.form.skipDefaultElement=!0,F.resolveCommand(y,{form:I.form})):this.handleNavigate(I)};
Qs.prototype.handleNavigate=function(I){this.hasSetScrollTopForNavigation=!1;var y=_.nR().resolve(_.Wf),D=I.form||{};y.navigate(I.command,D.reload,D.params,D.tempData,D.requestType,D.createScreenConfig,D.ignoreConfirmation,D.requestForm)&&Nd1(this,I.command,D.tempData)};
Qs.prototype.onYtPageDataFetched=function(I,y){try{_.XYW().reset();this.data=y.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.nR().resolve(_.ja).updatePageData(this.data);var D=this.get("playerResponse.onResponseReceivedActions",this.data);D&&(D=uC1(this,D));D&&_.GC(this.hostElement,D,this.hostElement);var F=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),R=this.get("response.responseContext.consistencyTokenJar",this.data);if(F||R){var O=_.t44(),w=(0,_.e$.getValues)(O.tokenJars);F&&O.replace(w,F);R&&O.replace(w,R)}}catch(v){_.vu(v)}};
var Nd1=function(I,y,D){try{I.onYtEndpointChangeHandler(y,D)}catch(F){_.vu(F)}};
_.L=Qs.prototype;_.L.onYtEndpointChangeHandler=function(){};
_.L.setPageTitle=function(I){I=(this.pageTitle=I)?I+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+I};
_.L.onYtUpdateTitle=function(I,y){this.setPageTitle(y)};
_.L.setUnseenNotificationCount=function(I){this.unseenNotificationCount=I;this.setPageTitle(this.pageTitle)};
_.L.handleUpdateNotificationsUnseenCountAction=function(I){_.u(I,ESa)&&((I=_.u(I,ESa).unseenCount)?this.setUnseenNotificationCount(I):this.setUnseenNotificationCount(0))};
_.L.handleClearCookieAction=function(I){var y;(I=(y=_.u(I,NKR))==null?void 0:y.cookieName)&&_.a5q(I)};
_.L.onYtUpdateUnseenNotificationCount=function(I,y){this.setUnseenNotificationCount(y)};
_.L.loadData=function(I){var y=this;this.loadDepsPromise.then(function(){var D=_.nR().resolve(_.fR(_.Wf));D||_.vu(Error("xl"));if(I&&I.response){if(!I.endpoint){var F=_.LE(window.document.location.href)||"/",R="";if(F==="/"||F.startsWith("/?"))R="WEB_PAGE_TYPE_BROWSE";I.endpoint={commandMetadata:{webCommandMetadata:{url:F,webPageType:R,rootVe:3854}}}}_.dsg(D,I.endpoint,I,5,{})}else I.endpoint?D.navigate(I.endpoint):D.navigate(_.e1);_.w2.cancelJob(y.zwiebackInitJobId);y.zwiebackInitJobId=_.w2.addLowPriorityJob(Jfo)})};
var Y9=function(){return _.nR().resolve(_.iL)};
Qs.prototype.getDebugString=function(){return Y9().getDebugString()};
Qs.prototype.getThirdPartyManipulationSuspected=function(){return Y9().getThirdPartyManipulationSuspected()};
Qs.prototype.replaceState=function(I,y,D){Y9().saveAndReplace(I,y,D)};
Qs.prototype.saveAndPush=function(I,y,D,F){Y9().saveAndPush(I,y,D,F)};
var o5b=function(I){return _.u(I.endpoint,_.t9)||_.u(I.endpoint,_.WF)?!0:!I||isNaN(I.expirationTime)?!1:(0,_.m_)()>I.expirationTime},hT1=function(I,y,D){var F=I.get("response.trackingParams",D),R=_.s_(),O=_.VO();
if(F&&R&&O&&(F=I.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",D),!F&&D.rootVe&&(F=D.rootVe),R=y?"forwardButton":"backButton",y=I.get("playerResponse.topbar.desktopTopbarRenderer."+R+".buttonRenderer.command.clickTrackingParams",I.data),I=I.get("response.topbar.desktopTopbarRenderer."+R+".buttonRenderer.command.clickTrackingParams",I.data),y=(I=y||I)?_.AC(I):void 0,I=_.W4(),R=[_.Xs(D)],_.d7(I,F,y,{dataPromises:R,csnToClone:D.csn}),D.graftedVes))for(D=
_.J(D.graftedVes),F=D.next();!F.done;F=D.next())_.aj(I,F.value)};
Qs.prototype.onStoreGraftedVeAction=function(I){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(I)):_.tq(Error("yl"))};
var uC1=function(I,y){return y.filter(function(D){for(var F in D)if(UmR[F])return I.pendingPlayerOnResponseReceivedActions.push(D),!0;return!1})};
_.mD.Object.defineProperties(Qs.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Qs.prototype.onStoreGraftedVeAction=Qs.prototype.onStoreGraftedVeAction;Qs.prototype.loadData=Qs.prototype.loadData;Qs.prototype.onYtUpdateUnseenNotificationCount=Qs.prototype.onYtUpdateUnseenNotificationCount;Qs.prototype.handleClearCookieAction=Qs.prototype.handleClearCookieAction;Qs.prototype.handleUpdateNotificationsUnseenCountAction=Qs.prototype.handleUpdateNotificationsUnseenCountAction;Qs.prototype.setUnseenNotificationCount=Qs.prototype.setUnseenNotificationCount;
Qs.prototype.onYtUpdateTitle=Qs.prototype.onYtUpdateTitle;Qs.prototype.setPageTitle=Qs.prototype.setPageTitle;Qs.prototype.onYtEndpointChangeHandler=Qs.prototype.onYtEndpointChangeHandler;Qs.prototype.onYtPageDataFetched=Qs.prototype.onYtPageDataFetched;Qs.prototype.handleNavigate=Qs.prototype.handleNavigate;Qs.prototype.onYtNavigate=Qs.prototype.onYtNavigate;Qs.prototype.onYtNavigateFinish=Qs.prototype.onYtNavigateFinish;Qs.prototype.onYtNavigateCache=Qs.prototype.onYtNavigateCache;
Qs.prototype.onYtNavigateError=Qs.prototype.onYtNavigateError;Qs.prototype.onYtNavigateStart=Qs.prototype.onYtNavigateStart;Qs.prototype.cancelPendingTasks=Qs.prototype.cancelPendingTasks;Qs.prototype.initHistoryManager=Qs.prototype.initHistoryManager;Qs.prototype.onYtHistoryLoad=Qs.prototype.onYtHistoryLoad;Qs.prototype.onYtHistoryPop=Qs.prototype.onYtHistoryPop;Qs.prototype.onYtNavigateSetPageOffset=Qs.prototype.onYtNavigateSetPageOffset;Qs.prototype.setPageOffset=Qs.prototype.setPageOffset;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Qs.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Qs.prototype,"data",void 0);_.W([_.z4("yt-navigate-set-page-offset"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Qs.prototype,"onYtNavigateSetPageOffset",null);
_.W([_.z4("yt-history-pop"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Qs.prototype,"onYtHistoryPop",null);_.W([_.z4("yt-history-load"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.goW]),_.A("design:returntype")],Qs.prototype,"onYtHistoryLoad",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Qs.prototype,"onYtNavigate",null);
_.W([_.z4("yt-update-title"),_.A("design:type",Function),_.A("design:paramtypes",[Event,String]),_.A("design:returntype")],Qs.prototype,"onYtUpdateTitle",null);_.W([_.z4("yt-update-unseen-notification-count"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Number]),_.A("design:returntype")],Qs.prototype,"onYtUpdateUnseenNotificationCount",null);_.W([_.Cg()],Qs);PeZ.YtdAppBehavior=[_.cb.YtActionHandlerBehavior,Qs.prototype];var fk=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;I.scrollRate=3;I.autoScrollAnimationStart=0;I.autoScrollPaused=!1;I.autoScrollRafId=0;return I};
_.E(fk,_.Wp);_.L=fk.prototype;_.L.created=function(){var I=this;this.boundAutoScrollHandler=function(y){I.autoScroll(y)}};
_.L.detached=function(){this.hostElement.removeEventListener("mouseout",_.MX(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.MX(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.MX(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.L.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.MX(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.MX(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.MX(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.MX(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.MX(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.MX(this,this.endAutoScroll)),this.endAutoScroll())};
_.L.autoScroll=function(I){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=I);var y;if(y=!this.autoScrollPaused&&this.scrollTarget)y=this.scrollTarget,y=y.scrollHeight-y.scrollTop!==y.clientHeight;y&&(y=1E3/this.scrollRate,I-=this.autoScrollAnimationStart,I>y&&(this.scrollTarget.scrollTop+=Math.ceil(I/y),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.L.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.L.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
fk.prototype.autoScrollEnabledChanged=fk.prototype.autoScrollEnabledChanged;_.W([_.M(),_.A("design:type",Object)],fk.prototype,"scrollRate",void 0);_.W([_.M(),_.A("design:type",Object)],fk.prototype,"scrollTarget",void 0);_.W([_.M(),_.A("design:type",Boolean)],fk.prototype,"autoScrollEnabled",void 0);_.W([_.ke("autoScrollEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fk.prototype,"autoScrollEnabledChanged",null);_.W([_.Cg()],fk);var qpT=[fk.prototype];var nk=function(){var I=_.Wp.apply(this,arguments)||this;I._noAccessors=!0;return I};
_.E(nk,_.Wp);nk.prototype.ready=function(){var I=this;_.XB(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){I.onChange_()})};
nk.prototype.dataChanged_=function(){_.XB(this.hostElement).querySelector("#checkbox").checked=!1};
nk.prototype.onChange_=function(){var I=_.XB(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.lj(this.hostElement,"yt-dismissal-reason-"+I,this.data.feedbackToken)};
nk.prototype.dataChanged_=nk.prototype.dataChanged_;_.W([_.M(),_.A("design:type",Object)],nk.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nk.prototype,"dataChanged_",null);_.W([_.Cg()],nk);var E5g=[nk.prototype];var pk=function(){var I=_.Wp.apply(this,arguments)||this;I.showInput=!1;return I};
_.E(pk,_.Wp);_.L=pk.prototype;_.L.detached=function(){this.showInput&&window.removeEventListener("click",_.MX(this,this.closeOnOutsideClick_))};
_.L.stopPropagation_=function(I){this.showInput&&I.stopPropagation()};
_.L.closeOnOutsideClick_=function(I){this.closeOnOutsideClickCondition(I)&&(this.showInput=!1,window.removeEventListener("click",_.MX(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.L.closeOnOutsideClickCondition=function(){return!0};
_.L.closeOnOutsideClickHandler=function(){};
_.L.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.MX(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.L.openOnClickHandler=function(){};
_.L.showInputChanged=function(){};
_.L.setShowInput=function(I){this.showInput=I};
pk.prototype.setShowInput=pk.prototype.setShowInput;pk.prototype.showInputChanged=pk.prototype.showInputChanged;pk.prototype.openOnClickHandler=pk.prototype.openOnClickHandler;pk.prototype.openOnClick_=pk.prototype.openOnClick_;pk.prototype.closeOnOutsideClickHandler=pk.prototype.closeOnOutsideClickHandler;pk.prototype.closeOnOutsideClickCondition=pk.prototype.closeOnOutsideClickCondition;pk.prototype.closeOnOutsideClick_=pk.prototype.closeOnOutsideClick_;pk.prototype.stopPropagation_=pk.prototype.stopPropagation_;
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],pk.prototype,"showInput",void 0);_.W([_.z4("click"),_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],pk.prototype,"stopPropagation_",null);_.W([_.ke("showInput"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],pk.prototype,"showInputChanged",null);_.W([_.Cg()],pk);var Gsg=[pk.prototype];var mL=function(){var I=_.Wp.apply(this,arguments)||this;I.timeoutJobId=0;I.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return I};
_.E(mL,_.Wp);mL.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
mL.prototype.startTimeout=function(){var I=this,y=this.data&&this.data.displayDurationSeconds;y&&!this.timeoutJobId&&(this.timeoutJobId=_.y9(_.w2,function(){_.uj(I.hostElement,"yt-close-popup-action",[I.is]);I.timeoutJobId=0},y*1E3))};
mL.prototype.cancelTimeout=function(){_.w2.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
mL.prototype.ytdHatsSurveyBehaviorDataChanged=mL.prototype.ytdHatsSurveyBehaviorDataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mL.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.W([_.Cg()],mL);var XYY=[_.cb.YtActionHandlerBehavior,mL.prototype];var Q$y=_.QM(115994),Ypb=_.QM(115993),fSQ=function(I,y,D){var F=this;var R=D.dragDownAction;this.layer=0;this.JSC$20334_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.JSC$20334_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.fullscreen=!1;var O=_.W4();_.c0(O,Q$y,this.layer);_.c0(O,Ypb,this.layer);this.dragDownAction=function(){R();_.OP(O,{visualElement:F.fullscreen?Q$y:Ypb})};
this.gesture=new s9(I,y,this.getConfig(!1),"pandown");this.attach()};
fSQ.prototype.attach=function(){this.gesture.attach()};
fSQ.prototype.detach=function(){this.gesture.detach()};
fSQ.prototype.update=function(I){this.fullscreen=I;var y=this.gesture;I=this.getConfig(I);y.config=I};
fSQ.prototype.getConfig=function(I){return I?this.JSC$20334_watchFullScreenConfig:this.JSC$20334_watchConfig};var n5a;var pYC;var Mq=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return I};
_.E(Mq,_.k);Mq.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var I=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(I=this.data.percentIfLiked||0,this.activated=!0):(I=this.data.percentIfIndifferent||0,this.activated=!1);_.XB(this.hostElement).querySelector("#like-bar").style.width=I+"%"}};
Mq.prototype.handleUpdateSentimentBarStateCommand=function(I){this.data&&this.set("data.likeStatus",_.u(I,aPe).likeStatus)};
Mq.prototype.observeLikeStatus=Mq.prototype.observeLikeStatus;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Mq.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Mq.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Mq.prototype,"activated",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Mq.prototype,"systemIcons",void 0);_.W([_.ke("data.likeStatus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mq.prototype,"observeLikeStatus",null);_.W([_.yd({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Mq);
_.a(Mq,"ytd-sentiment-bar-renderer",function(){if(pYC!==void 0)return pYC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return pYC=I},{mode:1});var mmg;var zW=function(){var I=_.k.apply(this,arguments)||this;I.small=!0;return I};
_.E(zW,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zW.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zW.prototype,"small",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],zW);
_.a(zW,"ytd-video-view-count-renderer",function(){if(mmg!==void 0)return mmg;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mmg=I},{mode:_.Qd("kevlar_poly_si_batch_j080")?1:2});var k9=function(){var I=_.k.apply(this,arguments)||this;I.infoFormattedStrings=[];I.wrapVideoActions=_.l("kevar_watch_wrap_video_actions");I.hideSentimentBar=_.l("kevlar_watch_hide_sentiment_bar");I.actionMap={};return I};
_.E(k9,_.k);_.L=k9.prototype;_.L.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.l("web_modern_buttons"),forceIconButton:!_.l("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.L.dataChanged=function(){_.l("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.L.computeInfoFormattedStrings=function(I){if(!I)return[];var y=[];I.dateText&&y.push(I.dateText);I.stationName&&y.push(I.stationName);I.rating&&y.push(I.rating);I.startEndTimeTemplate&&I.startTimeUtcMillis&&I.endTimeUtcMillis&&y.push(_.Ug(aL1(_.rY(I.startEndTimeTemplate),Number(I.startTimeUtcMillis),Number(I.endTimeUtcMillis))));I.upNextProgramText&&y.push(I.upNextProgramText);return y};
_.L.scheduleInitialUpdatedMetadataRequest=function(){var I,y=(I=this.data)==null?void 0:I.updatedMetadataEndpoint;if(y){var D;I=Number((D=_.u(y,_.BQO))==null?void 0:D.initialDelayMs);D=isNaN(I)?250:I;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),D)}};
_.L.setSentimentBarWidth=function(){var I=this;_.YC(this,function(){var y=_.XB(I.hostElement).querySelector("ytd-menu-renderer");if(y){y=y.topLevelButtons;for(var D=0,F=0;F<y.length;F++){var R=y[F],O=I.get("toggleButtonSupportedData.toggleButtonIdData.id",R.data);if(O==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||O==="TOGGLE_BUTTON_ID_TYPE_LIKE")D+=R.clientWidth+8;else break}D&&(I.sentiment.style.width=D-8+" px")}})};
_.L.fetchUpdatedMetadata=function(I){var y;I&&(y={continuation:I});var D;(I=(D=this.data)==null?void 0:D.updatedMetadataEndpoint)&&_.nR().resolve(_.MC).resolveCommand(I,{form:Object.assign({},y,{element:this.hostElement})})};
_.L.onYtServiceRequestSent=function(I,y){y.endpoint&&_.u(y.endpoint,_.gb)&&(this.hasUpdateSentimentBarStateCommands()&&!_.l("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.u(y.endpoint,_.gb).status),this.setSentimentBarWidth())};
_.L.hasUpdateSentimentBarStateCommands=function(){var I,y,D,F,R=(F=(I=this.data)==null?void 0:(y=I.videoActions)==null?void 0:(D=y.menuRenderer)==null?void 0:D.topLevelButtons)!=null?F:[];I=_.J(R);for(y=I.next();!y.done;y=I.next()){y=y.value;R=F=D=void 0;var O=(D=y.toggleButtonRenderer)==null?void 0:(F=D.toggleButtonSupportedData)==null?void 0:(R=F.toggleButtonIdData)==null?void 0:R.id;if(O==="TOGGLE_BUTTON_ID_TYPE_LIKE"||O==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){F=D=void 0;y=(F=_.u((D=y.toggleButtonRenderer)==
null?void 0:D.defaultServiceEndpoint,_.Q_))==null?void 0:F.commands;if(!y)break;y=_.J(y);for(D=y.next();!D.done;D=y.next())if(_.u(D.value,aPe))return!0}}return!1};
_.L.onYtServiceRequestCompleted=function(I,y){var D;(I=(D=y.data)==null?void 0:D.loggingDirectives)&&_.QNo(_.W4(),I);this.get("continuation.timedContinuationData",y.data)&&this.data&&this.data.updatedMetadataEndpoint&&(y=y.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,y.continuation),y.timeoutMs))};
_.L.computeHasDateText=function(I){return!!I&&!!I.dateText};
_.mD.Object.defineProperties(k9.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return!((F=(I=this.data)==null?void 0:(y=I.videoActions)==null?void 0:(D=y.menuRenderer)==null?void 0:D.flexibleItems)==null||!F.length)}}});
k9.prototype.onYtServiceRequestCompleted=k9.prototype.onYtServiceRequestCompleted;k9.prototype.onYtServiceRequestSent=k9.prototype.onYtServiceRequestSent;k9.prototype.dataChanged=k9.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],k9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.uC.YtTaskEmitterBehavior),_.A("design:type",Object)],k9.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],k9.prototype,"data",void 0);_.W([_.M({computed:"computeInfoFormattedStrings(data)"}),_.A("design:type",Array)],k9.prototype,"infoFormattedStrings",void 0);
_.W([_.M({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],k9.prototype,"hasDateText",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k9.prototype,"wrapVideoActions",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k9.prototype,"hideSentimentBar",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],k9.prototype,"flexMenuEnabled",null);
_.W([_.a0("#sentiment"),_.A("design:type",Object)],k9.prototype,"sentiment",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k9.prototype,"dataChanged",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],k9.prototype,"onYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],k9.prototype,"onYtServiceRequestCompleted",null);
_.a(k9,"ytd-video-primary-info-renderer",function(){if(n5a===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);n5a=I}I=n5a;return I},{mode:1});var MBb;var zTa;var dA=function(){return _.k.apply(this,arguments)||this};
_.E(dA,_.k);dA.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
dA.prototype.onTap=function(I){var y=this.data&&this.data.endpoint;y&&!_.UP(_.r4(I),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.lj(this.hostElement,"yt-navigate",{endpoint:y})};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],dA.prototype,"data",void 0);_.W([_.yd({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],dA);
_.a(dA,"ytd-autotagging-metadata-renderer",function(){if(zTa!==void 0)return zTa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return zTa=I},{mode:1});var ks8;var ai=function(){return _.k.apply(this,arguments)||this};
_.E(ai,_.k);ai.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ai.prototype,"data",void 0);_.W([_.yd({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ai);
_.a(ai,"ytd-autotagging-metadata-row-renderer",function(){if(ks8!==void 0)return ks8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ks8=I},{mode:1});var dmY;var aSZ;var ck=function(){var I=_.k.apply(this,arguments)||this;I.engagementPanelContent=!1;return I};
_.E(ck,_.k);ck.prototype.computeHasDividerLine=function(I,y){return I&&!y};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ck.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.A("design:type",Boolean)],ck.prototype,"hasDividerLine",void 0);_.W([_.M(),_.A("design:type",Object)],ck.prototype,"engagementPanelContent",void 0);
_.W([_.yd({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ck);
_.a(ck,"ytd-metadata-row-header-renderer",function(){if(aSZ!==void 0)return aSZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return aSZ=I},{mode:1});var cXT;var Wk=function(){return _.k.apply(this,arguments)||this};
_.E(Wk,_.k);Wk.prototype.computeHasDividerLine=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Wk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],Wk.prototype,"hasDividerLine",void 0);_.W([_.yd({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Wk);
_.a(Wk,"ytd-metadata-row-renderer",function(){if(cXT!==void 0)return cXT;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return cXT=I},{mode:1});var WTY;var Ceg=function(){return _.k.apply(this,arguments)||this};
_.E(Ceg,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ceg.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ceg.prototype,"data",void 0);_.W([_.yd({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ceg);
_.a(Ceg,"ytd-metadata-with-image-row-renderer",function(){if(WTY!==void 0)return WTY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return WTY=I},{mode:1});var Bda;var Ck=function(){var I=_.k.apply(this,arguments)||this;I.rounded=!0;I.fixie=!1;I.fullWidth=!1;return I};
_.E(Ck,_.k);_.L=Ck.prototype;_.L.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.onDataChanged=function(){var I=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(y){I.onEndpointLinkKeyPress(y)}))};
_.L.onEndpointLinkKeyPress=function(I){I.target===this.endpointLink&&I.keyCode===13&&_.lj(this.hostElement,"click")};
_.L.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var I;if((I=this.data)==null?0:I.endpoint)_.GC(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.L.onYtNavigate=function(I){this.endpointHref||(I.stopPropagation(),I.preventDefault())};
_.L.onInformationButtonContainerClick=function(I){I.target.id!=="information-button-container"&&(I.stopPropagation(),I.preventDefault())};
_.L.computeStyle=function(I){return I};
_.L.computeIsThumbnailStyle=function(I){return I==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.L.computeThumbnailWidth=function(I){switch(I){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}};
_.L.computeThumbnailObjectFit=function(I){switch(I){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.mD.Object.defineProperties(Ck.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Ck.prototype.onYtNavigate=Ck.prototype.onYtNavigate;Ck.prototype.onClick=Ck.prototype.onClick;Ck.prototype.onDataChanged=Ck.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ck.prototype,"componentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Ck.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],Ck.prototype,"componentStyle",void 0);_.W([_.M({computed:"computeIsThumbnailStyle(data.style)"}),_.A("design:type",Boolean)],Ck.prototype,"isThumbnailStyle",void 0);_.W([_.M({computed:"computeThumbnailObjectFit(data.style)"}),_.A("design:type",String)],Ck.prototype,"thumbnailObjectFit",void 0);
_.W([_.M({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],Ck.prototype,"thumbnailWidth",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ck.prototype,"rounded",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ck.prototype,"fixie",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ck.prototype,"fullWidth",void 0);_.W([_.a0("#endpoint-link"),_.A("design:type",HTMLAnchorElement)],Ck.prototype,"endpointLink",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ck.prototype,"onDataChanged",null);_.W([_.Y("data.endpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ck.prototype,"endpointHref",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Ck.prototype,"onClick",null);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ck.prototype,"onYtNavigate",null);_.W([_.yd({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Ck);
_.a(Ck,"ytd-rich-metadata-renderer",function(){if(Bda!==void 0)return Bda;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Bda=I},{mode:_.Qd("kevlar_poly_si_batch_j075")?1:2});var iOQ;var Bk=function(){var I=_.k.apply(this,arguments)||this;I.fixie=!1;I.fullWidth=!1;return I};
_.E(Bk,_.k);Bk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Bk.prototype.computeHasDividerLine=function(I){return I};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Bk.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],Bk.prototype,"hasDividerLine",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Bk.prototype,"fixie",void 0);_.W([_.M(),_.A("design:type",Object)],Bk.prototype,"fullWidth",void 0);
_.W([_.yd({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Bk);
_.a(Bk,"ytd-rich-metadata-row-renderer",function(){if(iOQ!==void 0)return iOQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return iOQ=I},{mode:1});var Aj=function(){var I=_.k.apply(this,arguments)||this;I.engagementPanelContent=!1;I.fixie=!1;I.fullWidth=!1;return I};
_.E(Aj,_.k);
Aj.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"}}}};
Aj.prototype.computeCollapsibleItems=function(I,y,D){return I===void 0||y===void 0||D===void 0||D?[]:I.slice(y)};
Aj.prototype.computeAlwaysShownItems=function(I,y){return I&&I.length?I.slice(0,y):[]};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Aj.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Aj.prototype,"collapsed",void 0);
_.W([_.M({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.A("design:type",Array)],Aj.prototype,"alwaysShownItems",void 0);_.W([_.M({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.A("design:type",Array)],Aj.prototype,"collapsibleItems",void 0);_.W([_.M(),_.A("design:type",Object)],Aj.prototype,"engagementPanelContent",void 0);_.W([_.M(),_.A("design:type",Object)],Aj.prototype,"fixie",void 0);
_.W([_.M(),_.A("design:type",Object)],Aj.prototype,"fullWidth",void 0);_.W([_.yd({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Aj);
_.a(Aj,"ytd-metadata-row-container-renderer",function(){if(dmY!==void 0)return dmY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return dmY=I},{mode:1});var AXR;var $9=function(){return _.k.apply(this,arguments)||this};
_.E($9,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],$9.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$9.prototype,"data",void 0);_.W([_.yd({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],$9);
_.a($9,"ytd-error-corrections-section-item-renderer",function(){if(AXR!==void 0)return AXR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return AXR=I},{mode:1});var $mQ;var bt=function(){return _.k.apply(this,arguments)||this};
_.E(bt,_.k);bt.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bt.prototype,"data",void 0);_.W([_.yd({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],bt);
_.a(bt,"ytd-error-corrections-section-renderer",function(){if($mQ!==void 0)return $mQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return $mQ=I},{mode:1});var bOT;var Hk=function(){return _.k.apply(this,arguments)||this};
_.E(Hk,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Hk.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Hk.prototype,"data",void 0);_.W([_.yd({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Hk);
_.a(Hk,"ytd-topic-link-renderer",function(){if(bOT!==void 0)return bOT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return bOT=I},{mode:1});var HOG;var eP=function(){var I=_.k.apply(this,arguments)||this;I.modernLockupV2=_.l("modernize_structured_description_playlist_lockups_v2");return I};
_.E(eP,_.k);eP.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],eP.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],eP.prototype,"modernLockupV2",void 0);_.W([_.yd({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],eP);
_.a(eP,"ytd-video-description-course-section-renderer",function(){if(HOG!==void 0)return HOG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return HOG=I},{mode:1});var eTY;var TW=function(){return _.k.apply(this,arguments)||this};
_.E(TW,_.k);TW.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TW.prototype,"data",void 0);_.W([_.yd({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],TW);
_.a(TW,"ytd-video-description-files-section-renderer",function(){if(eTY!==void 0)return eTY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return eTY=I},{mode:1});var Tda;var sn=function(){return _.k.apply(this,arguments)||this};
_.E(sn,_.k);sn.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sn.prototype,"data",void 0);_.W([_.yd({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],sn);
_.a(sn,"ytd-video-description-gaming-section-renderer",function(){if(Tda!==void 0)return Tda;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Tda=I},{mode:1});var s$y;var Vs=function(){var I=_.k.apply(this,arguments)||this;I.isExpanded=!1;return I};
_.E(Vs,_.k);Vs.prototype.computeHasDefaultMetadataEndpoint=function(I){var y;I=I==null?void 0:(y=I.defaultMetadata)==null?void 0:y.runs;return!(!I||I.length!==1||!I[0].navigationEndpoint)};
Vs.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.mD.Object.defineProperties(Vs.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Vs.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vs.prototype,"isExpanded",void 0);_.W([_.M({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Vs.prototype,"hasDefaultMetadataEndpoint",void 0);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vs.prototype,"isExpandable",null);_.W([_.Y("data","isExpandable","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vs.prototype,"showExpandedMetadata",null);_.W([_.yd({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Vs);
_.a(Vs,"ytd-info-row-renderer",function(){if(s$y!==void 0)return s$y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return s$y=I},{mode:1});var VBa;var Zq=function(){var I=_.k.apply(this,arguments)||this;I.currentIndex=0;I.supportComponentResize=!0;I.JSC$20391_lastScrollContainerWidth=NaN;return I};
_.E(Zq,_.k);_.L=Zq.prototype;
_.L.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"}}}};
_.L.getItemsPath=function(){return"videoLockups"};
_.L.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.L.onIronResize=function(){this.updateVideoLockupStyles()};
_.L.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.L.updateVideoLockupStyles=function(){var I;this.JSC$20391_scrollContainer!==void 0&&(I=this.videoLockups)!=null&&I.length&&(I=this.JSC$20391_scrollContainer.clientWidth,I!==this.JSC$20391_lastScrollContainerWidth&&(this.JSC$20391_lastScrollContainerWidth=I,_.pg(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(I*.8,415)+"px"}),_.lj(this.hostElement,"iron-resize")))};
_.mD.Object.defineProperties(Zq.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var I=[],y;if((y=this.data)==null||!y.carouselLockups)return I;y=_.J(this.data.carouselLockups);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;((F=_.u(D,Rxa))==null?0:F.videoLockup)&&I.push(_.u(D,Rxa).videoLockup)}return I}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoLockups)==null||!I.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var I=[],y;if((y=this.data)==null||!y.carouselLockups)return I;var D;return(D=_.u(this.data.carouselLockups[this.scrollCount],Rxa))==null?void 0:D.infoRows}}});
Zq.prototype.dataChanged=Zq.prototype.dataChanged;Zq.prototype.onIronResize=Zq.prototype.onIronResize;Zq.prototype.hiddenChanged=Zq.prototype.hiddenChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zq.prototype,"componentBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],Zq.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zq.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zq.prototype,"inlineStructuredDescription",void 0);_.W([_.M({value:2}),_.A("design:type",Number)],Zq.prototype,"initialCount",void 0);_.W([_.M(),_.A("design:type",Object)],Zq.prototype,"currentIndex",void 0);
_.W([_.M(),_.A("design:type",Number)],Zq.prototype,"scrollCount",void 0);_.W([_.M(),_.A("design:type",Object)],Zq.prototype,"supportComponentResize",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zq.prototype,"contentHidden",void 0);_.W([_.a0("#scroll-container"),_.A("design:type",HTMLDivElement)],Zq.prototype,"JSC$20391_scrollContainer",void 0);
_.W([_.ke("contentHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zq.prototype,"hiddenChanged",null);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Zq.prototype,"videoLockups",null);_.W([_.Y("videoLockups"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zq.prototype,"hasVideoLockups",null);
_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zq.prototype,"onIronResize",null);_.W([_.Y("data","scrollCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zq.prototype,"infoRows",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zq.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Zq);
_.a(Zq,"ytd-video-description-music-section-renderer",function(){if(VBa!==void 0)return VBa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return VBa=I},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var ZOQ;var gA=function(){return _.k.apply(this,arguments)||this};
_.E(gA,_.k);gA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.W([_.M({}),_.A("design:type",Object)],gA.prototype,"data",void 0);_.W([_.yd({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],gA);
_.a(gA,"ytd-video-description-transcript-section-renderer",function(){if(ZOQ!==void 0)return ZOQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ZOQ=I},{mode:1});var g5Y;_.NK(_.d(function(I){var y=_.zj(_.gVt,function(){return I.data().firstProviderLinkStatusEntityKey}),D=_.zj(_.gVt,function(){return I.data().secondProviderLinkStatusEntityKey}),F=function(){var R,O;
return((R=y())==null?void 0:R.linked)||((O=D())==null?void 0:O.linked)};
return _.t("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.t(_.jr,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return I.data().sectionTitle}}),_.t(_.jr,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return F()?I.data().connectedMessage:I.data().notConnectedMessage}}),_.t(_.U,{cond:F,
then:function(){return _.t(_.aP,{data:function(){return I.data().connectedButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.t(_.U,{cond:function(){return!F()},
then:function(){return _.t(_.aP,{data:function(){return I.data().notConnectedButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"vh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;return _.t("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.t("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.t(_.jr,{text:function(){return y().sectionTitle}})),_.t("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.t(_.jr,{text:function(){return y().bodyHeader}})),_.t("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.t(_.jr,{text:function(){return y().bodyText}})),_.t(_.U,{cond:function(){return y().attributionText},
then:function(){return _.t("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.t(_.jr,{text:function(){return y().attributionText}}))}}))},"wh"),"how-this-was-made-section-view-model",{props:{data:_.om}});_.NK(_.d(function(I){return _.t("yt-video-description-youchat-section-view-model",{class:_.XH("ytVideoDescriptionYouchatSectionViewModelHost")},_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.t(_.jr,{text:function(){return I.data().sectionTitle}})),_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.t(_.jr,{text:function(){return I.data().subHeaderText}})),_.t("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.t(_.My,{data:function(){return _.u(I.data().primaryButton,
_.Kb)}})))},"xh"),"yt-video-description-youchat-section-view-model",{props:{data:_.om}});var IE=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return I};
_.E(IE,_.k);_.L=IE.prototype;
_.L.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}}}}}};
_.L.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.L.dataChanged=function(){var I,y;this.hasDescriptionOnly=!(((I=this.data)==null?void 0:(y=I.items)==null?void 0:y.length)!==1||!_.u(this.data.items[0],Xe))};
_.L.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.L.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.L.autoFocusDescription=function(){var I;((I=_.nR().resolve(_.fR(_.Q3)))==null?0:I.isKeyBoardInUse())&&this.description&&_.E6(this.description)};
_.L.resize=function(){if(_.l("kevlar_disable_sd_resize"))this.JSC$20399_cardList&&_.lj(this.JSC$20399_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.lj(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.lj(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.L.scrollToSection=function(I){if(I=this.getSectionElement(I))_.uj(this.hostElement,"yt-scroll-to-watch-element",[I]),I.focus()};
_.L.getSectionElement=function(I){switch(I){case "infocards-item-section":var y;return(y=this.infocardsSection)!=null?y:null;case "transcript-item-section":var D;return(D=this.transcriptSection)!=null?D:null;case "how-this-was-made-section-item-section":var F;return(F=this.howThisWasMadeSection)!=null?F:null;case "files-item-section":var R;return(R=this.filesSection)!=null?R:null;default:return null}};
_.L.handleSetActiveItemAction=function(I){var y=_.u(I,YGy),D=y&&(y==null?void 0:y.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20399_cardList;if(y&&D){I=this.currentActiveChapter;var F=this.currentActiveProblem;y=D==null?void 0:D.getItemByIndex(y.itemIndex);var R=D=!0;y&&(y.active=!0,y.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(D=I!==y,R=!1,this.currentActiveChapter=y):(y==null?void 0:y.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(D=!1,R=F!==y,this.currentActiveProblem=y));I&&D&&(I.active=!1);F&&R&&(F.active=!1)}};
_.mD.Object.defineProperties(IE.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.uI("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
IE.prototype.onYtExpanderMoreTapped=IE.prototype.onYtExpanderMoreTapped;IE.prototype.onHiddenChanged=IE.prototype.onHiddenChanged;IE.prototype.dataChanged=IE.prototype.dataChanged;IE.prototype.panelContentVisibleChanged=IE.prototype.panelContentVisibleChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],IE.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],IE.prototype,"ironResizableBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IE.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],IE.prototype,"panelContentVisible",void 0);_.W([_.M(),_.A("design:type",Boolean)],IE.prototype,"hasDescriptionOnly",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],IE.prototype,"inlineStructuredDescription",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],IE.prototype,"hidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],IE.prototype,"shortsPanel",void 0);_.W([_.M(),_.A("design:type",Object)],IE.prototype,"videoSummary",void 0);_.W([_.M(),_.A("design:type",Object)],IE.prototype,"merchShelf",void 0);
_.W([_.Y("videoSummary"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],IE.prototype,"showVideoSummary",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],IE.prototype,"engagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],IE.prototype,"watchWhileSdp",void 0);_.W([_.a0("ytd-expandable-video-description-body-renderer"),_.A("design:type",Object)],IE.prototype,"description",void 0);
_.W([_.a0("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],IE.prototype,"JSC$20399_cardList",void 0);_.W([_.a0("ytd-horizontal-card-list-renderer[center-items]"),_.A("design:type",Object)],IE.prototype,"problemWalkthroughCardList",void 0);_.W([_.a0("ytd-shelf-renderer"),_.A("design:type",Object)],IE.prototype,"shelfSection",void 0);_.W([_.a0("ytd-video-description-music-section-renderer"),_.A("design:type",Object)],IE.prototype,"musicMetadataSection",void 0);
_.W([_.a0("ytd-video-description-infocards-section-renderer"),_.A("design:type",Object)],IE.prototype,"infocardsSection",void 0);_.W([_.a0("ytd-video-description-transcript-section-renderer"),_.A("design:type",Object)],IE.prototype,"transcriptSection",void 0);_.W([_.a0("how-this-was-made-section-view-model"),_.A("design:type",Object)],IE.prototype,"howThisWasMadeSection",void 0);_.W([_.a0("ytd-video-description-files-section-renderer"),_.A("design:type",Object)],IE.prototype,"filesSection",void 0);
_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IE.prototype,"panelContentVisibleChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IE.prototype,"dataChanged",null);_.W([_.ke("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IE.prototype,"onHiddenChanged",null);
_.W([_.z4("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IE.prototype,"onYtExpanderMoreTapped",null);_.W([_.yd({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],IE);
_.a(IE,"ytd-structured-description-content-renderer",function(){if(g5Y!==void 0)return g5Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return g5Y=I},{mode:2});var yv=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return I};
_.E(yv,_.k);_.L=yv.prototype;_.L.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"}}}};
_.L.dataChanged=function(){var I;this.descriptionToggled=!((I=this.data)==null||!I.defaultExpanded);var y;this.collapsed=this.descriptionAlwaysCollapsed||!((y=this.data)==null?0:y.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.QM(110509);this.showLessClientVe=_.QM(110510);I=_.VO();y=_.s_();I&&y&&_.LC(I,y,[this.showMoreClientVe,this.showLessClientVe])};
_.L.onYtExpanderMoreTapped=function(){var I,y=(I=this.data)==null?void 0:I.showMoreCommand;y&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(y);(I=_.VO())&&this.showMoreClientVe&&_.SI(I,this.showMoreClientVe)};
_.L.onYtExpanderLessTapped=function(){var I=_.VO();I&&this.showLessClientVe&&_.SI(I,this.showLessClientVe);var y;(I=(y=this.data)==null?void 0:y.showLessCommand)&&this.componentBehavior.resolveCommand(I)};
_.L.handleUpdateDateTextAction=function(I){this.data&&this.data.dateText&&this.set("data.dateText",_.u(I,Ixy).dateText)};
_.L.handleUpdateDescriptionAction=function(I){if(I=_.u(I,_.clg))I.isEmpty||!I.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Vd(I.description)):this.set("data.description",I.description)};
_.L.onYtChangeEngagementPanelVisibilityAction=function(I){if(_.l("web_structured_description_show_more")||_.l("web_engagement_panel_open_description")){var y,D=(y=_.u(I,_.dnM))==null?void 0:y.targetId,F;I=((F=_.u(I,_.dnM))==null?void 0:F.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";D==="engagement-panel-structured-description"&&I&&(this.descriptionToggled=!0)}};
_.L.updateCollapsedFromBinding=function(I){this.collapsed=I.detail.value};
_.L.updateDescriptionToggledFromBinding=function(I){this.descriptionToggled=I.detail.value};
_.L.updateCanCollapseFromBinding=function(I){this.canCollapse=I.detail.value};
_.mD.Object.defineProperties(yv.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.metadataRowContainer)==null?void 0:y.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 I;return!((I=this.data)==null||!I.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}}});
yv.prototype.onYtExpanderLessTapped=yv.prototype.onYtExpanderLessTapped;yv.prototype.onYtExpanderMoreTapped=yv.prototype.onYtExpanderMoreTapped;yv.prototype.dataChanged=yv.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],yv.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yv.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],yv.prototype,"collapsed",void 0);_.W([_.M(),_.A("design:type",Boolean)],yv.prototype,"descriptionToggled",void 0);
_.W([_.M(),_.A("design:type",Boolean)],yv.prototype,"canCollapse",void 0);_.W([_.M(),_.A("design:type",Object)],yv.prototype,"subscribeButtonData",void 0);_.W([_.M(),_.A("design:type",Number)],yv.prototype,"descriptionCollapsedHeight",void 0);_.W([_.M(),_.A("design:type",Object)],yv.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.M({value:function(){return _.l("web_watch_description_always_collapsed")}}),
_.A("design:type",Boolean)],yv.prototype,"descriptionAlwaysCollapsed",void 0);_.W([_.a0("#description"),_.A("design:type",HTMLDivElement)],yv.prototype,"description",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"dataChanged",null);_.W([_.z4("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"onYtExpanderMoreTapped",null);
_.W([_.z4("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yv.prototype,"onYtExpanderLessTapped",null);_.W([_.Y("data.metadataRowContainer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"metadataCollapsible",null);_.W([_.Y("data","structuredDescriptionContentRenderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"hasInlineStructuredDescription",null);
_.W([_.Y("data.attributedDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"hasAttributedDescription",null);_.W([_.Y("hasInlineStructuredDescription","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"loadStructuredDescription",null);_.W([_.Y("data","structuredDescriptionContentRenderer","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"showInlineStructuredDescription",null);
_.W([_.Y("data","hasInlineStructuredDescription","metadataCollapsible"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yv.prototype,"descriptionAlwaysCollapsible",null);
_.a(yv,"ytd-video-secondary-info-renderer",function(){if(MBb===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);MBb=I}I=MBb;return I},{mode:2});var IEZ;var DK=function(){return _.k.apply(this,arguments)||this};
_.E(DK,_.k);DK.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],DK.prototype,"rendererBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],DK.prototype,"dismissibleItemBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],DK.prototype,"rendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],DK.prototype,"data",void 0);_.W([_.yd({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],DK);
_.a(DK,"ytd-comment-history-entry-renderer",function(){if(IEZ!==void 0)return IEZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return IEZ=I},{mode:1});var y7e;var Fk=function(){var I=_.k.apply(this,arguments)||this;I.isCollapsed=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return I};
_.E(Fk,_.k);_.L=Fk.prototype;_.L.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.L.onDonateTap=function(){var I=this.get("data.donateButton.buttonRenderer.command");if(I){var y=_.VO(),D=this.get("data.donateButton.buttonRenderer.trackingParams");y&&D&&_.SI(y,_.AC(D));this.ytOpenPopupBehavior.openPopup(I)}};
_.L.onShowMore=function(){this.isCollapsed=!1;var I=_.VO(),y=this.get("data.expandButton.buttonRenderer.trackingParams");I&&y&&_.SI(I,_.AC(y))};
_.L.onShowLess=function(){this.isCollapsed=!0};
_.L.dataChanged=function(){_.pg(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.handleUpdate=function(I){if(I=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",I))this.set("data.startLabel",I.startLabel),this.set("data.endLabel",I.endLabel),this.set("data.progress",I.progress),this.set("data.amountRaisedLabel",I.amountRaisedLabel),this.dataChanged()};
_.L.handleOpenPopupAction=function(I){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",I)&&_.uj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.L.computeHeaderBackgroundUrl=function(I,y){if(I)return y?I.headerBackgroundDarkUrl:I.headerBackgroundUrl};
_.L.isProgressBarVisible=function(I){return!(!I||I.progress===void 0)};
_.L.headerBackgroundClass=function(){return _.Pi("HTML_DIR")==="rtl"?"flip":""};
Fk.prototype.dataChanged=Fk.prototype.dataChanged;_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],Fk.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Fk.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Fk.prototype,"isCollapsed",void 0);_.W([_.M({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.A("design:type",String)],Fk.prototype,"headerBackgroundUrl",void 0);_.W([_.M(),_.A("design:type",Boolean)],Fk.prototype,"isDarkTheme",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fk.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Fk);
_.a(Fk,"ytd-donation-shelf-renderer",function(){if(y7e!==void 0)return y7e;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return y7e=I},{mode:1});var DuY;var Fm1=function(){return _.k.apply(this,arguments)||this};
_.E(Fm1,_.k);_.W([_.M(),_.A("design:type",Object)],Fm1.prototype,"data",void 0);_.W([_.yd({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Fm1);
_.a(Fm1,"ytd-donation-unavailable-renderer",function(){if(DuY!==void 0)return DuY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return DuY=I},{mode:1});var RFZ;var RE=function(){var I=_.k.apply(this,arguments)||this;I.playerListenerConfig=null;I.actionMap={"yt-show-watch-page-survey":"openSurvey"};return I};
_.E(RE,_.k);_.L=RE.prototype;_.L.dataChanged=function(){var I=this,y=_.NY();y&&y.getPlayerPromise().then(function(F){I.maybeRemovePlayerListeners(F)});
var D=this.data&&this.data.survey;D&&((D=(D=D.singleOptionSurveyRenderer||D.checkboxSurveyRenderer||D.multiStageSurveyRenderer)&&D.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(y,D):this.openSurvey())};
_.L.triggerWatchPageSurvey=function(I,y){var D=this,F,R,O,w,v,P,K,r,N;return _.S(function(h){if(h.nextAddress==1)return I?h.yield(I.getPlayerPromise(),2):h.return();D.player=h.yieldResult;if(!D.player)return h.return();F={};R=_.J(y);for(O=R.next();!O.done;O=R.next())w=O.value,v=_.J(D.createEventListenerPair(w)),P=v.next().value,K=v.next().value,r=P,N=K,r&&N&&(F[r]=N,D.ytPlayerListenerBehavior.listenToPlayerEvent(D.player,r,N));D.playerListenerConfig=F;_.Cj(h)})};
_.L.createEventListenerPair=function(I){var y=I.playbackEventTrigger;return y?this.handlePlaybackTrigger(y):(I=I.watchTimeTrigger)?this.handleWatchTimeTrigger(I):[void 0,void 0]};
_.L.handleWatchTimeTrigger=function(I){var y=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var D=I.videoWatchFraction,F=I.watchTimeSec;return F&&D?["onVideoProgress",function(){y.player&&y.isWatchTimeConditionMet(y.player,D,F)&&y.showSurvey()}]:[void 0,
void 0]};
_.L.isWatchTimeConditionMet=function(I,y,D){var F=I.getProgressState(),R=F.current-this.lastKnownPlaybackPosition;R<5&&(this.accumulatedMediaTime+=R);this.lastKnownPlaybackPosition=F.current;F=Math.round(this.accumulatedMediaTime/F.duration*1E3)/1E3;return I.getPresentingPlayerType&&I.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>D||F>y)};
_.L.handlePlaybackTrigger=function(I){var y=this;I=I.playbackEvent;if(I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var D="onStateChange";var F=function(R){R===0&&y.showSurvey()}}else I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(D="onVideoProgress",F=function(R){y.player&&y.player.getPresentingPlayerType&&y.player.getPresentingPlayerType()===1&&R&&y.showSurvey()}):I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(D="onAdEnd",F=this.showSurvey);
return[D,F]};
_.L.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.L.openSurvey=function(){var I=this,y=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(HHo(!!y));_.w2.addJob(function(){I.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:y}})},0,0)};
_.L.maybeRemovePlayerListeners=function(I){if(this.playerListenerConfig){for(var y=_.J(Object.keys(this.playerListenerConfig)),D=y.next();!D.done;D=y.next())D=D.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(I,D,this.playerListenerConfig[D]);this.playerListenerConfig=null}};
RE.prototype.dataChanged=RE.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],RE.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],RE.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],RE.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],RE.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RE.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],RE.prototype,"playerListenerConfig",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],RE.prototype,"lastKnownPlaybackPosition",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],RE.prototype,"accumulatedMediaTime",void 0);_.W([_.M(),_.A("design:type",Object)],RE.prototype,"player",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RE.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],RE);
_.a(RE,"ytd-survey-trigger-renderer",function(){if(RFZ!==void 0)return RFZ;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return RFZ=I},{mode:1});var O8Z;_.bO("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var OS=function(){var I=_.k.apply(this,arguments)||this;I.role="link";I.tabindex="0";I.actionMap=_.l("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 I};
_.E(OS,_.k);_.L=OS.prototype;_.L.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Jt()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.L.getCurrentTheme=function(){return _.w4()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Jt()};
_.L.onThemeSelected=function(I,y){var D=I||y?I:_.Lg(),F=(D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.woq(_.iP(window.location.href));_.cg(0,165,I);_.cg(0,174,y);this.prefs.save();F&&_.uj(this.hostElement,"yt-dark-mode-toggled-action",[D]);_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.L.onTap=function(){this.data.serviceEndpoint&&_.E$(this.hostElement,[this.data.serviceEndpoint])};
_.L.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.L.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.L.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
OS.prototype.onTap=OS.prototype.onTap;OS.prototype.dataChanged=OS.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],OS.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.rb),_.A("design:type",Object)],OS.prototype,"paperItemBehaviors",void 0);_.W([_.M(),_.A("design:type",Object)],OS.prototype,"data",void 0);_.W([_.M({value:function(){return _.a1()}}),
_.A("design:type",_.Es)],OS.prototype,"prefs",void 0);_.W([_.M(),_.A("design:type",Object)],OS.prototype,"label",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],OS.prototype,"role",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],OS.prototype,"tabindex",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OS.prototype,"dataChanged",null);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OS.prototype,"onTap",null);_.W([_.yd({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],OS);
_.Xf()(OS,"ytd-toggle-theme-compact-link-renderer",function(){if(O8Z===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);O8Z=I}I=O8Z;return I},{allowedProps:["data"],
mode:1});var LmZ;_.bO("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.bO("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var L7=function(){return _.k.apply(this,arguments)||this};
_.E(L7,_.k);_.L=L7.prototype;_.L.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.onKeyUp=function(I){if(I.keyCode===13)this.onTap()};
_.L.onTap=function(){this.data.recordClickEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var I=this.data.navigationEndpoint;I&&_.u(I,_.OZ)&&_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})};
_.L.readChanged=function(){var I;_.Ye(this.hostElement,"unread",!((I=this.data)==null?0:I.read))};
_.L.dataChanged=function(){this.data&&_.Ye(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.L.computeThumbnailSize=function(){var I;return((I=this.data)==null?0:I.highPriorityNotification)?32:48};
_.L.getEndpointURL=function(I){return I&&!_.u(I,_.OZ)?this.componentBehavior.computeHref_(I):null};
_.L.getEndpointData=function(I){return I&&!_.u(I,_.OZ)?I:null};
L7.prototype.computeThumbnailSize=L7.prototype.computeThumbnailSize;L7.prototype.dataChanged=L7.prototype.dataChanged;L7.prototype.readChanged=L7.prototype.readChanged;L7.prototype.onKeyUp=L7.prototype.onKeyUp;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],L7.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],L7.prototype,"data",void 0);_.W([_.M({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.A("design:type",Number)],L7.prototype,"thumbnailSize",void 0);_.W([_.z4("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],L7.prototype,"onKeyUp",null);
_.W([_.ke("data.read"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L7.prototype,"readChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L7.prototype,"dataChanged",null);_.W([_.ke("data.highPriorityNotification"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L7.prototype,"computeThumbnailSize",null);
_.W([_.yd({is:"ytd-notification-renderer",disableElementRegistration:!0})],L7);
_.a(L7,"ytd-notification-renderer",function(){if(LmZ!==void 0)return LmZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return LmZ=I},{mode:1});var J78;var JJ=function(){return _.k.apply(this,arguments)||this};
_.E(JJ,_.k);JJ.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"}}}};
JJ.prototype.computeActionButtonClass=function(I){return!I.actionButtons||I.actionButtons.length<=1?"single-button":I.description?"vertical-buttons":"horizontal-buttons"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],JJ.prototype,"data",void 0);_.W([_.yd({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],JJ);
_.a(JJ,"ytd-playlist-show-metadata-renderer",function(){if(J78!==void 0)return J78;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return J78=I},{mode:1});var wlZ;_.bO("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var wa=function(){return _.k.apply(this,arguments)||this};
_.E(wa,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],wa.prototype,"data",void 0);_.W([_.yd({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],wa);
_.a(wa,"ytd-purchase-item-renderer",function(){if(wlZ!==void 0)return wlZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wlZ=I},{mode:1});var vve;var S88={};S88.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(I){if(I)return I.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(I){if(I==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.bO("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var vI=function(){return _.k.apply(this,arguments)||this};
_.E(vI,_.k);vI.prototype.onYtNavigate=function(I){var y=this.openPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);y&&(I.stopPropagation(),this.openPopupBehavior.openPopup(y))};
vI.prototype.onYtNavigate=vI.prototype.onYtNavigate;_.W([_.Q(S88.YtSimpleTextSectionBehavior),_.A("design:type",Object)],vI.prototype,"ytSimpleTextSectionBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],vI.prototype,"openPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vI.prototype,"data",void 0);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],vI.prototype,"onYtNavigate",null);_.W([_.yd({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],vI);
_.a(vI,"ytd-simple-text-section-renderer",function(){if(vve!==void 0)return vve;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vve=I},{mode:1});var t6T;_.bO("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var P4Z=function(){return _.k.apply(this,arguments)||this};
_.E(P4Z,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],P4Z.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],P4Z.prototype,"data",void 0);_.W([_.yd({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],P4Z);
_.a(P4Z,"ytd-unlimited-page-feature-info-renderer",function(){if(t6T!==void 0)return t6T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return t6T=I},{mode:1});var KmQ;var UuY;var SN=function(){return _.k.apply(this,arguments)||this};
_.E(SN,_.k);SN.prototype.dataChanged=function(){if(this.data){var I=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);I&&(I=_.hf(I,screen.width),this.hostElement.style.backgroundImage="url("+I+")")}};
SN.prototype.dataChanged=SN.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],SN.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SN.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],SN);
_.a(SN,"ytd-post-redemption-section-renderer",function(){if(UuY!==void 0)return UuY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return UuY=I},{mode:1});var r7Y;var tJ=function(){return _.k.apply(this,arguments)||this};
_.E(tJ,_.k);tJ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tJ.prototype,"data",void 0);_.W([_.yd({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],tJ);
_.a(tJ,"ytd-ypc-post-redemption-renderer",function(){if(r7Y!==void 0)return r7Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return r7Y=I},{mode:1});_.bO("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var PI=function(){var I=_.k.apply(this,arguments)||this;I.MIN_CODE_LENGTH=12;I.MAX_CODE_LENGTH=24;return I};
_.E(PI,_.k);_.L=PI.prototype;_.L.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.L.created=function(){this.riskService=new _.KRo;this.loadPaymentThenable=_.r6q(_.Pi("YPC_MB_URL"))};
_.L.ready=function(){var I=this;this.code.addEventListener("keypress",function(y){I.onCodeInputKeypress(y)})};
_.L.dataChanged=function(){var I=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(y){y=_.J(y);for(var D=y.next();!D.done;D=y.next())D=D.value,D.type==="attributes"&&D.attributeName==="dark"&&I.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.L.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var I=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+I+")")}};
_.L.computeRedeemButton=function(I){(I=this.get("redeemButton.buttonRenderer",I))&&(I=Object.assign({},I,{serviceEndpoint:void 0}));return I};
_.L.onRedeemButtonTap=function(I){I.stopPropagation();S$Y();this.redeemCode()};
_.L.redeemCode=function(){var I=this;this.isLoading=!0;var y=this.riskService.init();_.yL([y,this.loadPaymentThenable]).then(function(){var D=I.data.redeemButton.buttonRenderer.serviceEndpoint,F=_.UfH(),R=_.x1.payments.business.integration.ClientTokenFactory.createClientToken(_.u(D,_.EZg).countryCode,F);F={c:I.code.value.trim(),rd:window.btoa(F),ctk:R};D&&_.nR().resolve(_.MC).resolveCommand(D,{form:Object.assign({},F,{element:I.hostElement})})},function(){I.showGenericError();
tkQ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.UJ(Error("zl"))})};
_.L.onYtServiceRequestCompleted=function(I){I.stopPropagation();this.isLoading=!1;var y,D;this.errorMessage=(y=I.detail)==null?void 0:(D=y.data)==null?void 0:D.errorMessage;var F,R;this.postRedemptionRenderer=(F=I.detail)==null?void 0:(R=F.data)==null?void 0:R.renderer;var O,w;if(I=(O=I.detail)==null?void 0:(w=O.data)==null?void 0:w.redirectEndpoint)this.isLoading=!0,_.lj(this.hostElement,"yt-navigate",{endpoint:I});this.errorMessage?tkQ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
I)&&LK("ypcRedeemFlowSucceeded")};
_.L.onYtServiceRequestError=function(I){I.stopPropagation();this.isLoading=!1;if(I=this.get("detail.error.message",I))this.errorMessage=_.Ug(I);tkQ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.L.onInvokeInstrumentManagerActionCompleted=function(I){I.stopPropagation();this.redeemCode()};
_.L.onInvokeInstrumentManagerActionError=function(I){I.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",I)){case "instrumentManagerLoadError":this.showGenericError();tkQ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();tkQ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":LK("ypcRedeemFlowCancelled")}};
_.L.onInput=function(){var I=this;_.v4(this,"onInput",function(){var y=I.code.value.trim();I.redeemButtonDisabled=y.length<I.MIN_CODE_LENGTH||y.length>I.MAX_CODE_LENGTH},200)};
_.L.onCodeInputKeypress=function(I){I.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(S$Y(),this.redeemCode())};
_.L.computeImageUrl=function(I){return I?_.hf(I.thumbnails,600):null};
_.L.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
PI.prototype.onInvokeInstrumentManagerActionError=PI.prototype.onInvokeInstrumentManagerActionError;PI.prototype.onInvokeInstrumentManagerActionCompleted=PI.prototype.onInvokeInstrumentManagerActionCompleted;PI.prototype.onYtServiceRequestError=PI.prototype.onYtServiceRequestError;PI.prototype.onYtServiceRequestCompleted=PI.prototype.onYtServiceRequestCompleted;PI.prototype.dataChanged=PI.prototype.dataChanged;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PI.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],PI.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Boolean)],PI.prototype,"redeemButtonDisabled",void 0);
_.W([_.M(),_.A("design:type",Object)],PI.prototype,"errorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],PI.prototype,"postRedemptionRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],PI.prototype,"observer",void 0);_.W([_.a0("#code"),_.A("design:type",HTMLInputElement)],PI.prototype,"code",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PI.prototype,"dataChanged",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PI.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PI.prototype,"onYtServiceRequestError",null);
_.W([_.z4("yt-invoke-instrument-manager-action-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PI.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.W([_.z4("yt-invoke-instrument-manager-action-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],PI.prototype,"onInvokeInstrumentManagerActionError",null);_.W([_.yd({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],PI);
_.a(PI,"ytd-redeem-code-renderer",function(){if(KmQ!==void 0)return KmQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return KmQ=I},{mode:1});var jGC;_.bO("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var K7=function(){var I=_.k.apply(this,arguments)||this;I.businessEmailDisplayState="HIDE_SECTION";return I};
_.E(K7,_.k);_.L=K7.prototype;_.L.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}}}}}};
_.L.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"};
_.L.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.L.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.R1(_.qUu),this.businessEmailDisplayState="CAPTCHA"))};
_.L.onYtServiceRequestCompleted=function(I){var y;if((y=I.detail.data)==null?0:y.businessEmail)this.businessEmail=I.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=I.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=I.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.L.computeEmailHref=function(I){return"mailto:"+I};
_.L.computeSafeUrl=function(I){if(I)return _.VA(I)};
_.L.onBusinessEmailCaptchaSubmit=function(){var I;(I=this.data)!=null&&I.onBusinessEmailRevealClickCommand&&(I=this.JSC$20459_captchaTextarea.value)&&(I={recaptcha_response_token:I,channel_id:this.data.channelId},_.nR().resolve(_.MC).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},I,{element:this.hostElement})}))};
_.L.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mD.Object.defineProperties(K7.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 I,y;return!((I=this.data)==null||!I.primaryLinks)&&!((y=this.data)==null?0:y.links)&&this.data.primaryLinks.every(function(D){return D.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.primaryLinks)&&!((y=this.data)==null?0:y.links)&&!this.shouldShowNewLinks}}});
K7.prototype.onYtServiceRequestCompleted=K7.prototype.onYtServiceRequestCompleted;K7.prototype.dataChanged=K7.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],K7.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.a0("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],K7.prototype,"JSC$20459_captchaTextarea",void 0);_.W([_.M(),_.A("design:type",Object)],K7.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],K7.prototype,"businessEmailDisplayState",void 0);_.W([_.M(),_.A("design:type",String)],K7.prototype,"businessEmail",void 0);_.W([_.M(),_.A("design:type",String)],K7.prototype,"businessEmailErrorMessage",void 0);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],K7.prototype,"hideDetailsSection",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],K7.prototype,"dataChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],K7.prototype,"shouldShowNewLinks",null);_.W([_.Y("data","shouldShowLinks"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],K7.prototype,"shouldShowLegacyLinks",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],K7.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],K7);
_.a(K7,"ytd-channel-about-metadata-renderer",function(){if(jGC!==void 0)return jGC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return jGC=I},{mode:1});var ova;_.bO("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var US=function(){return _.k.apply(this,arguments)||this};
_.E(US,_.k);US.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]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],US.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],US.prototype,"lockupContainerType",void 0);_.W([_.M(),_.A("design:type",String)],US.prototype,"thumbnailFixedWidth",void 0);
_.W([_.yd({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],US);
_.a(US,"ytd-channel-featured-content-renderer",function(){if(ova!==void 0)return ova;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ova=I},{mode:1});var NrY;_.bO("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ra=function(){var I=_.k.apply(this,arguments)||this;I.roundContainer=!0;I.amsterdamEnabled=_.l("enable_desktop_amsterdam_info_panels");return I};
_.E(ra,_.k);_.L=ra.prototype;_.L.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L.dataChanged=function(){this.imageWidth=this.imageHeight=24;var I=this.data;I.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!I.style&&I.image&&I.image.thumbnails.length&&(I=I.image.thumbnails[0],this.imageWidth=I.width||0,this.imageHeight=I.height||0)};
_.L.computeSource=function(I){return I.secondarySource?_.rY(I.secondarySource):_.rY(I.source)};
_.L.computeClarifyStyle=function(I){return I?I.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.L.isLargeStyle=function(I){return I==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.L.computeBackgroundStyle=function(I){return I?I.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.L.computeHasActionButton=function(I){return!!I.actionButton};
_.L.computeHasBottomSection=function(I){return!!I.ctaHasBottomSection};
_.L.computeIsSourceMissing=function(I){return I.ctaHasBottomSection===!1?!0:I&&this.computeSource(I)?!1:!0};
_.L.computeSecondaryEndpoint=function(I){return I.secondaryEndpoint||I.endpoint};
ra.prototype.dataChanged=ra.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ra.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],ra.prototype,"imageWidth",void 0);_.W([_.M(),_.A("design:type",Number)],ra.prototype,"imageHeight",void 0);
_.W([_.M({computed:"computeSecondaryEndpoint(data)"}),_.A("design:type",Object)],ra.prototype,"secondaryEndpoint",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.A("design:type",Boolean)],ra.prototype,"hasActionButton",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.A("design:type",Boolean)],ra.prototype,"hasBottomSection",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.A("design:type",Boolean)],ra.prototype,"missingSource",void 0);_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],ra.prototype,"icon",void 0);_.W([_.M({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",String)],ra.prototype,"secondaryIcon",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.A("design:type",String)],ra.prototype,"clarifyStyle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.A("design:type",String)],ra.prototype,"backgroundStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ra.prototype,"roundContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ra.prototype,"amsterdamEnabled",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ra.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ra);
_.a(ra,"ytd-clarification-renderer",function(){if(NrY!==void 0)return NrY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return NrY=I},{mode:1});var hFa;_.bO("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var jN=function(){return _.k.apply(this,arguments)||this};
_.E(jN,_.k);_.L=jN.prototype;_.L.computeHasPrimaryIcon=function(I){return!(!I.icon&&!I.thumbnail)};
_.L.computeHasSecondary=function(I){return!(!I.secondaryIcon&&!I.secondaryNotificationText)};
_.L.computeHideSecondaryString=function(I){return!_.l("disable_hide_empty_secondary_string")&&!I.secondaryNotificationText};
_.L.computeCompactLinkStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeHasFitHeight=function(I){return I==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.L.isActiveEndpoint=function(I){return(I=this.get("commandMetadata.webCommandMetadata.url",I))?_.iP(window.location.href)!=="/account_transfer_channel"&&_.iP(window.location.href)!=="/gaia_link"&&_.iP(window.location.href)!=="/channel_switcher"||I!=="/account"?_.iP(window.location.href)===I:!0:!1};
_.L.onTap=function(){var I;((I=this.data)==null?0:I.serviceEndpoint)&&_.E$(this.hostElement,[this.data.serviceEndpoint])};
jN.prototype.onTap=jN.prototype.onTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jN.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.A("design:type",Boolean)],jN.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.A("design:type",String)],jN.prototype,"compactLinkStyle",void 0);
_.W([_.M({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],jN.prototype,"icon",void 0);_.W([_.M({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",Object)],jN.prototype,"secondaryIcon",void 0);_.W([_.M({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jN.prototype,"hasSecondary",void 0);_.W([_.M({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jN.prototype,"hideSecondaryString",void 0);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jN.prototype,"onTap",null);_.W([_.yd({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],jN);
_.a(jN,"ytd-compact-link-renderer",function(){if(hFa!==void 0)return hFa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hFa=I},{mode:1});var xu8;var lEo;var oE=function(){var I=_.k.apply(this,arguments)||this;I.amsterdamEnabled=_.l("enable_desktop_amsterdam_info_panels");return I};
_.E(oE,_.k);_.L=oE.prototype;_.L.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.L.computeIcon=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.L.computeUseContacts=function(I){return!!I.contacts&&I.contacts.length>0};
_.L.computePhoneContact=function(I){var y,D;return(y=I.contacts)==null?void 0:(D=y.find(function(F){var R;return(F==null?void 0:(R=F.icon)==null?void 0:R.iconType)==="PHONE"}))==null?void 0:D.actionText};
_.L.computeSmsContact=function(I){var y,D;return(y=I.contacts)==null?void 0:(D=y.find(function(F){var R;return(F==null?void 0:(R=F.icon)==null?void 0:R.iconType)==="SMS"}))==null?void 0:D.actionText};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oE.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],oE.prototype,"amsterdamEnabled",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.A("design:type",Boolean)],oE.prototype,"useContacts",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.A("design:type",String)],oE.prototype,"phoneContact",void 0);_.W([_.yd({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],oE);
_.a(oE,"ytd-single-action-emergency-support-renderer",function(){if(lEo!==void 0)return lEo;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return lEo=I},{mode:1});_.bO("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var N$=function(){var I=_.k.apply(this,arguments)||this;I.roundedContainer=!0;I.amsterdamEnabled=_.l("enable_desktop_amsterdam_info_panels");return I};
_.E(N$,_.k);N$.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],N$.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],N$.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],N$.prototype,"amsterdamEnabled",void 0);
_.W([_.yd({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],N$);
_.a(N$,"ytd-emergency-onebox-renderer",function(){if(xu8!==void 0)return xu8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xu8=I},{mode:1});var u$G;_.bO("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var hJ=function(){return _.k.apply(this,arguments)||this};
_.E(hJ,_.k);hJ.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hJ.prototype,"data",void 0);_.W([_.yd({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],hJ);
_.a(hJ,"ytd-exploratory-results-renderer",function(){if(u$G!==void 0)return u$G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return u$G=I},{mode:1});var q8T;_.bO("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var x2=function(){var I=_.k.apply(this,arguments)||this;I.messageData=null;return I};
_.E(x2,_.k);_.L=x2.prototype;_.L.onServiceRequestCompleted=function(I,y){I=y.actions||[];y=0;for(var D=I.length;y<D;y++){var F=I[y],R=void 0,O=void 0;if((R=_.u(F,_.iE))==null?0:(O=R.item)==null?0:O.messageRenderer)this.messageData=_.u(F,_.iE).item.messageRenderer}};
_.L.dataChanged=function(){var I=this.data;this.hostElement.hidden=!1;_.Ye(this.hostElement,"is-channel",I&&!I.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.L.computeThumbnailWidth=function(I){return I?126:56};
_.L.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.L.onSubmitTap=function(){var I=this.data,y=this.selectedResponseIndex;I!==void 0&&y!==void 0&&(I=I.responses[y],I.responseData&&_.nR().resolve(_.MC).resolveCommand(I.responseData,{form:{element:this.hostElement}}))};
_.L.onDismissTap=function(){this.hostElement.hidden=!0;var I=this.data;I!==void 0&&I.dismissalEndpoint&&_.nR().resolve(_.MC).resolveCommand(I.dismissalEndpoint,{form:{element:this.hostElement}})};
_.L.updateSelectedResponseIndexFromBinding=function(I){this.selectedResponseIndex=I.detail.value};
x2.prototype.onSelectedResponseIndexChange=x2.prototype.onSelectedResponseIndexChange;x2.prototype.dataChanged=x2.prototype.dataChanged;x2.prototype.onServiceRequestCompleted=x2.prototype.onServiceRequestCompleted;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],x2.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],x2.prototype,"messageData",void 0);
_.W([_.M(),_.A("design:type",Number)],x2.prototype,"selectedResponseIndex",void 0);_.W([_.a0("#submit-button"),_.A("design:type",HTMLButtonElement)],x2.prototype,"submitButton",void 0);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],x2.prototype,"onServiceRequestCompleted",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x2.prototype,"dataChanged",null);
_.W([_.ke("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x2.prototype,"onSelectedResponseIndexChange",null);_.W([_.yd({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],x2);
_.a(x2,"ytd-feedback-elicitation-single-question-renderer",function(){if(q8T!==void 0)return q8T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return q8T=I},{mode:1});var EvT;var lv=function(){return _.k.apply(this,arguments)||this};
_.E(lv,_.k);lv.prototype.computeIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lv.prototype,"data",void 0);_.W([_.yd({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],lv);
_.a(lv,"ytd-limited-state-message-renderer",function(){if(EvT!==void 0)return EvT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return EvT=I},{mode:1});var Gfg;var uv=function(){return _.k.apply(this,arguments)||this};
_.E(uv,_.k);uv.prototype.computeThumbnailWidth=function(I){return I?602:428};
uv.prototype.updateWideFromBinding=function(I){this.wide=I.detail.value};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],uv.prototype,"wide",void 0);_.W([_.yd({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],uv);
_.a(uv,"ytd-newspaper-hero-video-renderer",function(){if(Gfg!==void 0)return Gfg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Gfg=I},{mode:1});var Xlb;var QGC=function(){return _.k.apply(this,arguments)||this};
_.E(QGC,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QGC.prototype,"rendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QGC.prototype,"data",void 0);_.W([_.yd({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],QGC);
_.a(QGC,"ytd-newspaper-mini-video-renderer",function(){if(Xlb!==void 0)return Xlb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Xlb=I},{mode:1});var Y8y;_.bO("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var q$=function(){return _.k.apply(this,arguments)||this};
_.E(q$,_.k);q$.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"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],q$.prototype,"data",void 0);_.W([_.yd({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],q$);
_.a(q$,"ytd-newspaper-renderer",function(){if(Y8y!==void 0)return Y8y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Y8y=I},{mode:1});var fE1;_.bO("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var ES=function(){var I=_.k.apply(this,arguments)||this;I.isSegment=!1;I.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};I.nextContinuation={continuationType:"playlistVideoListContinuation"};return I};
_.E(ES,_.k);_.L=ES.prototype;_.L.created=function(){var I=this;this.JSC$20498_ytReorderableController=new _.K0c(101,function(y){I.handleDrop(y)})};
_.L.attached=function(){_.nR();var I;(I=_.nR().resolve(_.fR(_.sr)))!=null&&(I.playlistVideoListElement=this.hostElement)};
_.L.detached=function(){var I;(I=_.nR().resolve(_.fR(_.sr)))!=null&&(I.playlistVideoListElement=void 0);I=_.nR().resolve(_.fR(_.dx));_.l("web_enable_voting_animation")&&I&&(I.parentElem=void 0,I.videos=[],I.continuationsPresent=!1,I.showRefreshPill=!1);_.$g(this.JSC$20498_ytReorderableController)};
_.L.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"}}}}}};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.L.dataChanged=function(){var I=_.nR().resolve(_.fR(_.dx));if(_.l("web_enable_voting_animation")&&this.data&&I){var y=_.XB(this.hostElement).querySelector("#contents");y&&(I.parentElem=y);I.addVideos(this.data.contents)}_.$g(this.JSC$20498_ytReorderableController)};
_.L.onRendererstamperFinished=function(){this.canReorder&&_.UsM(this.JSC$20498_ytReorderableController,_.XB(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.L.onPlaylistReloading=function(){this.isReloading=!0};
_.L.onUpdateSetVideoId=function(I){if(I.detail&&this.data&&this.data.contents){var y=I.detail;I=this.data.contents.findIndex(function(R){var O;return((O=R.playlistVideoRenderer)==null?void 0:O.videoId)===y.videoId});
if(!(I<0)&&y.setVideoId&&(this.set("data.contents."+I+".playlistVideoRenderer.setVideoId",y.setVideoId),_.l("web_enable_voting_animation"))){var D;if(I=_.u((D=this.data.contents[I].playlistVideoRenderer)==null?void 0:D.engagementBar,_.MiS)){var F;(F=I.actions)==null||F.forEach(function(R){if(R=_.u(R,_.z_5))R.itemId=y.setVideoId})}(D=_.nR().resolve(_.fR(_.dx)))&&O9a(D,y.videoId,y.setVideoId)}}};
_.L.computeContentsClass=function(I){return I?"reloading":""};
_.L.computeIsSortable=function(I,y){return I&&y>0&&!this.isSegment&&!_.l("shorts_in_playlists_web")};
_.L.computeIsEditable=function(I){return I};
_.L.computeCanReorder=function(I){return I};
_.L.handlePlaylistRemoveVideosAction=function(I){if(this.get("playlistRemoveVideosAction.setVideoIds",I)&&this.data&&this.data.contents){I=_.u(I,_.CMu).setVideoIds;for(var y=this.data.contents.length-1;y>=0;){var D=this.data.contents[y].playlistVideoRenderer;D&&D.setVideoId&&I.includes(D.setVideoId)&&this.splice("data.contents",y,1);y--}_.uj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.L.updateIndices=function(){if(this.data&&this.data.contents)for(var I=0;I<this.data.contents.length;I++)this.set("data.contents."+I+".playlistVideoRenderer.index",_.Ug(String(I+1)))};
_.L.handleDrop=function(I){I=I.currDragItem;var y=_.ze(I.parentNode.childNodes,I),D=this.data.contents.splice(Number(_.rY(I.data.index))-1,1)[0];this.data.contents.splice(y,0,D);y=y?this.get("contents."+(y-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();I=this.buildReorderServiceEndpoint(I.data.setVideoId,y);this.ytComponentBehavior.resolveCommand(I)};
_.L.buildReorderServiceEndpoint=function(I,y){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",I),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",y),this.data.onReorderEndpoint):null};
_.L.handleUpdatePlaylistAction=function(I){var y;(I=_.u((y=_.u(I,_.BhW))==null?void 0:y.updatedRenderer,_.$yM))&&this.canReorder!==I.canReorder&&this.set("data.canReorder",I.canReorder);I&&I.contents&&(this.set("data.contents",I.contents),this.isReloading=!1);I&&I.continuations&&this.set("data.continuations",I.continuations)};
_.L.handleAddRendererToItemSectionAction=function(I){var y,D=(y=_.u(I,Oco))==null?void 0:y.renderer,F;D&&((F=_.u(I,Oco))==null?void 0:F.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,D),I=_.nR().resolve(_.fR(_.dx)),_.l("web_enable_voting_animation")&&I&&(D&&(y=_.mIe(D))&&I.recommendedVideos.push({itemId:y,videoId:_.kAq(D),voteCount:_.dI_(D),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.L.isVotingEnabledOnPlaylist=function(I){if(!I)return!1;I=_.J(I);for(I=I.next();!I.done;I=I.next()){var y=void 0;return!!_.u((y=I.value.playlistVideoRenderer)==null?void 0:y.engagementBar,_.MiS)}return!1};
_.L.onAppendContinuationItemsActionFinished=function(){var I;this.isVotingEnabledOnPlaylist((I=this.data)==null?void 0:I.contents)&&(this.updateIndices(),I=_.nR().resolve(_.fR(_.dx)),_.l("web_enable_voting_animation")&&I&&this.data&&I.addVideos(this.data.contents))};
_.L.updateVideoData=function(I){if(I.detail&&this.data&&this.data.contents){var y=I.detail;I=y.toIdx;var D=y.itemId,F=y.newVoteCount,R=y.voteStatus;y=y.hideItem;var O,w,v=(O=this.data)==null?void 0:(w=O.contents)==null?void 0:w.findIndex(function(N){return _.mIe(N)===D});
if(!(v<0)){O=this.data.contents[v];var P;if((P=O.playlistVideoRenderer)==null?0:P.voteCount)O.playlistVideoRenderer.voteCount=F;var K;if(P=_.u((K=O.playlistVideoRenderer)==null?void 0:K.engagementBar,_.MiS)){var r;(r=P.actions)==null||r.forEach(function(N){(N=_.u(N,_.z_5))&&N.initialState&&(N.initialState.votes=F,N.initialState.status=R)})}this.data.contents.splice(v,1);
y||this.data.contents.splice(I,0,O);this.updateIndices()}}};
ES.prototype.updateVideoData=ES.prototype.updateVideoData;ES.prototype.onAppendContinuationItemsActionFinished=ES.prototype.onAppendContinuationItemsActionFinished;ES.prototype.onUpdateSetVideoId=ES.prototype.onUpdateSetVideoId;ES.prototype.onPlaylistReloading=ES.prototype.onPlaylistReloading;ES.prototype.onRendererstamperFinished=ES.prototype.onRendererstamperFinished;ES.prototype.dataChanged=ES.prototype.dataChanged;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],ES.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Q(_.ha),_.A("design:type",Object)],ES.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ES.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],ES.prototype,"isReloading",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ES.prototype,"isSegment",void 0);
_.W([_.M({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.A("design:type",Boolean)],ES.prototype,"isSortable",void 0);_.W([_.M({computed:"computeIsEditable(data.isEditable)"}),_.A("design:type",Boolean)],ES.prototype,"isEditable",void 0);_.W([_.M({computed:"computeCanReorder(data.canReorder)"}),_.A("design:type",Boolean)],ES.prototype,"canReorder",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"dataChanged",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onRendererstamperFinished",null);_.W([_.z4("yt-playlist-reloading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onPlaylistReloading",null);
_.W([_.z4("yt-update-set-video-id"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ES.prototype,"onUpdateSetVideoId",null);_.W([_.z4("yt-append-continuation-items-action-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ES.prototype,"onAppendContinuationItemsActionFinished",null);
_.W([_.z4("yt-update-video-data-voting-animation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ES.prototype,"updateVideoData",null);_.W([_.yd({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ES);
_.a(ES,"ytd-playlist-video-list-renderer",function(){if(fE1!==void 0)return fE1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return fE1=I},{mode:_.Qd("kevlar_poly_si_batch_j047")?1:2});var nvy;var Gu=function(){return _.k.apply(this,arguments)||this};
_.E(Gu,_.k);Gu.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"}}}}};
Gu.prototype.onTextWrapperTap=function(I){var y=this.data&&this.data.navigationEndpoint;y&&!_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.lj(this.hostElement,"yt-navigate",{endpoint:y})};
Gu.prototype.dataChanged=function(){var I=this.get("data.offerButton.buttonRenderer.serviceEndpoint");I&&I.commandMetadata&&_.u(I.commandMetadata,_.eJ)&&_.u(I.commandMetadata,_.eJ).fireAutomatically&&_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})};
Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.jo),_.A("design:type",Object)],Gu.prototype,"ytdLockupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gu.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],Gu.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Gu.prototype,"biggerThumbsStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Gu.prototype,"leftAligned",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gu.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Gu);
_.a(Gu,"ytd-movie-renderer",function(){if(nvy!==void 0)return nvy;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return nvy=I},{mode:1});var pl8={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(I){if(I&&I.length==1&&Array.isArray(I[0].loggingUrls)){I=_.e$.unsafeClone(I[0]);var y=this.macros||{},D=this.getAdModuleClient_();if(!D)return _.Xs();I.loggingUrls.forEach(function(F){if(F.baseUrl){var R=F.baseUrl;var O=y;O=O===void 0?{}:O;R=D.getOptions().includes("replaceUrlMacros")?_.qzW(D,"replaceUrlMacros",{url:R,additionalMapping:O}):R;F.baseUrl=R}},this);
I=[I]}return _.E$(this.hostElement,I)},
getAdModuleClient_:function(){var I=_.NY(this);return I?(I=I.getPlayer())?new _.DV(I):null:null}}]};var muT;var Xk=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_modern_buttons");I.buttonOverrides={style:"call-to-action",type:"filled"};return I};
_.E(Xk,_.k);Xk.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=_.Vp(this.data.backgroundColor)))};
Xk.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var I=this.getFormattedStringLoggingDirectives(this.data.headline);I&&this.rendererBehavior.logExplicitClick(I)}};
Xk.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var I=this.getFormattedStringLoggingDirectives(this.data.description);I&&this.rendererBehavior.logExplicitClick(I)}};
Xk.prototype.getFormattedStringLoggingDirectives=function(I){return I&&I.runs&&I.runs.length>0&&I.runs[0]&&I.runs[0].loggingDirectives?I.runs[0].loggingDirectives:null};
Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xk.prototype,"rendererBehavior",void 0);_.W([_.Q(pl8.YtMacroReplacementBehavior),_.A("design:type",Object)],Xk.prototype,"macroReplacementBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Xk.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Xk.prototype,"navigationEndpoint",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Xk.prototype,"enableColors",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Xk.prototype,"modern",void 0);_.W([_.M(),_.A("design:type",Object)],Xk.prototype,"buttonOverrides",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Xk.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Xk);
_.a(Xk,"ytd-action-basic-immersive-content-renderer",function(){if(muT!==void 0)return muT;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return muT=I},{mode:1});var M6g;var zFe;var Qv=function(){return _.k.apply(this,arguments)||this};
_.E(Qv,_.k);Qv.prototype.dataChanged=function(){var I;((I=this.data)==null?void 0:I.backgroundColor)!==void 0&&_.pg(this.hostElement,{"--bgu-color":_.Vp(this.data.backgroundColor)})};
Qv.prototype.onImageTileClick=function(){var I;((I=this.data)==null?0:I.navigationEndpoint)&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var y;((y=this.data)==null?0:y.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.mD.Object.defineProperties(Qv.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.data)==null?void 0:I.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 I;return((I=this.data)==null?void 0:I.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var I,y,D;if(((I=this.data)==null?void 0:(y=I.detailsLine)==null?void 0:y.texts)!=null&&((D=this.data)==null?void 0:D.detailsLine.texts.length)>0){var F;return(F=this.data)==null?void 0:F.detailsLine.texts.map(function(R){return R.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var I,y,D;if(((I=this.data)==null?void 0:(y=I.optionalDetailsLine)==null?void 0:y.texts)!=null&&((D=this.data)==null?void 0:D.optionalDetailsLine.texts.length)>0){var F;return(F=this.data)==null?void 0:F.optionalDetailsLine.texts.map(function(R){return R.text}).join("")}return null}}});
Qv.prototype.dataChanged=Qv.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Qv.prototype,"rendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Qv.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Qv.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.backgroundColor"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qv.prototype,"hasBackgroundColor",null);
_.W([_.Y("data.objectFit"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qv.prototype,"getObjectFit",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.tileRenderingStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Qv.prototype,"hasTileMetadata",null);_.W([_.Y("data.detailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qv.prototype,"getSecondaryDetails",null);
_.W([_.Y("data.optionalDetailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qv.prototype,"getOptionalDetails",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qv.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Qv);
_.a(Qv,"ytd-image-tile-renderer",function(){if(zFe!==void 0)return zFe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return zFe=I},{mode:1});var kfb;var Y2=function(){return _.k.apply(this,arguments)||this};
_.E(Y2,_.k);Y2.prototype.getOpenLinkIcon=function(){return _.l("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Y2.prototype.onSitelinkTap=function(){_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.l("kevlar_command_handler_migration_killswitch"))_.GC(this.hostElement,this.data.clickCommands,this.hostElement);else for(var I=_.J(this.data.clickCommands),y=I.next();!y.done;y=I.next())this.ytComponentBehavior.resolveCommand(y.value)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Y2.prototype,"rendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Y2.prototype,"data",void 0);_.W([_.yd({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Y2);
_.a(Y2,"ytd-sitelink-renderer",function(){if(kfb!==void 0)return kfb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kfb=I},{mode:1});var f7=function(){var I=_.k.apply(this,arguments)||this;I.paddingFix=_.l("enable_ads_web_ep_buenos_aires_and_padding_fix");return I};
_.E(f7,_.k);f7.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"}}}};
f7.prototype.dataChanged=function(){var I=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;I.ytMacroReplacementBehavior.sendServiceRequestAction([y])})};
f7.prototype.shouldHideFooter=function(I){return!(I&&_.l("use_ads_engagement_panel_desktop_footer_cta"))};
_.mD.Object.defineProperties(f7.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var F;return(F=_.u(D,DiR))==null?void 0:F.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.imageTileRenderers)===void 0||((y=this.data)==null?void 0:y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var F;return((F=_.u(D,DiR))==null?void 0:F.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
f7.prototype.dataChanged=f7.prototype.dataChanged;_.W([_.Q(pl8.YtMacroReplacementBehavior),_.A("design:type",Object)],f7.prototype,"ytMacroReplacementBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],f7.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],f7.prototype,"paddingFix",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f7.prototype,"removeBorderFromImageTiles",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],f7.prototype,"useFooteredMetadataRenderingStyle",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],f7.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],f7);
_.a(f7,"ytd-action-engagement-panel-content-renderer",function(){if(M6g!==void 0)return M6g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return M6g=I},{mode:1});var duR;var aEb=_.d(function(I){var y=I.data;var D=I.customCommandResolver;return _.t("ad-grid-card-image-full-metadata-view-model",{class:function(){var F;return((F=y().interaction)==null?0:F.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D)),
"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(F){return _.t(_.$x,{data:F.data,
customCommandResolver:D})}})),_.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.t(_.U,{cond:function(){return y().headline},
then:function(F){return _.t(_.jr,{text:F,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.t(_.U,{cond:function(){return y().detailsLine},
then:function(F){return _.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.t(_.aP,{data:F},{adDetailsLineViewModel:function(R){return _.t(_.a2,{data:R.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.t(_.U,{cond:function(){return y().secondaryDetailsLine},
then:function(F){return _.t("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.t(_.aP,{data:F},{adDetailsLineViewModel:function(R){return _.t(_.a2,{data:R.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"yh");var c7G=_.d(function(I){var y=I.data;var D=I.customCommandResolver;return _.t("ad-grid-card-image-view-model",{class:function(){var F;return((F=y().interaction)==null?0:F.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D)),
"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(F){return _.t(_.$x,{data:F.data,
customCommandResolver:D})}}),_.t("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.t(_.aP,{data:function(){return y().adCardBadge}},{adCardBadgeViewModel:_.VGW})))},"zh");var Wm1=_.d(function(I){var y=I.data;var D=I.customCommandResolver;return _.t("ad-grid-card-text-view-model",{class:function(){var F;return((F=y().interaction)==null?0:F.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D)),
"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.t(_.U,{cond:function(){return y().title},
then:function(F){return _.t(_.jr,{text:F,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.t("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.t(_.gZ,{each:function(){var F;
return((F=y())==null?void 0:F.descriptions)||[]},
keyBy:"INDEX"},function(F){return _.t(_.jr,{text:F,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.t("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.t(_.aP,{data:function(){return y().moreInfoButton}},{adButtonViewModel:function(F){return _.t(_.pF,{data:F.data,
customCommandResolver:D})}})))},"Ah");var C4b=_.d(function(I){var y=I.data;var D=I.customCommandResolver;var F=I.adGridCardCollectionStyle;return _.t("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(R){var O,w=(O=y().interaction)==null?void 0:O.onFirstVisible;R&&w&&_.OE(w)},
showOption:_.fF})),style:function(){return"grid-template-columns: repeat("+rfR(F?F():y().style)+", minmax(0, 1fr));"}},_.t(_.aP,{data:function(){var R;
return(R=y())==null?void 0:R.gridCards}},{adGridCardImageViewModel:function(R){return _.t(c7G,{data:R.data,
customCommandResolver:D})},
adGridCardImageFullMetadataViewModel:function(R){return _.t(aEb,{data:R.data,customCommandResolver:D})},
adGridCardTextViewModel:function(R){return _.t(Wm1,{data:R.data,customCommandResolver:D})}}))},"Bh");_.NK(_.d(function(I){var y=I.data;return _.t("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.K4(_.pT({visibilityCallback:function(D){var F,R=(F=y().interaction)==null?void 0:F.onFirstVisible;D&&R&&_.OE(R)},
showOption:_.fF}),_.Dy(function(){return y().interaction},oYZ))},_.t("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.t(_.U,{cond:_.ZyJ("(min-width: "+(ZA()+g9)+"px)"),
then:function(){return _.t(_.aP,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.t(C4b,{data:D.data,
customCommandResolver:oYZ})}})},
else:function(){return _.t(_.aP,{data:function(){return y().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.t(C4b,{data:D.data,
customCommandResolver:oYZ,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.t("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.t(_.aP,{data:function(){return y().adButton}},{adButtonViewModel:function(D){return _.t(_.pF,{data:D.data,
customCommandResolver:oYZ})}})))},"Ch"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;return _.t("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.K4(_.pT({visibilityCallback:function(D){var F,R=(F=y().interaction)==null?void 0:F.onFirstVisible;D&&R&&_.OE(R)},
showOption:_.fF}),_.Dy(function(){return y().interaction},NVQ))},_.t("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.t(_.aP,{data:function(){if(_.ZyJ("(min-width: "+(ZA()+g9)+"px)")())var D=y().adGridCardCollection;
else{D=Object.assign({},_.u(y().adGridCardCollection,RHe));var F;D.gridCards!==void 0&&((F=D.gridCards)==null?void 0:F.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 _.t(C4b,{data:D.data,
customCommandResolver:NVQ})}})),_.t("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.t(_.aP,{data:function(){return y().adButton}},{adButtonViewModel:function(D){return _.t(_.pF,{data:D.data,
customCommandResolver:NVQ})}})))},"Dh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.om}});var n7=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return I};
_.E(n7,_.k);_.L=n7.prototype;_.L.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"}}}};
_.L.attached=function(){this.getDataFromPlayerAndRender()};
_.L.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.L.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.L.getDataFromPlayerAndRender=function(){var I=this,y=_.NY(this.hostElement);y&&y.getPlayerPromise().then(function(D){I.getCachedDataAndListen(D)})};
_.L.getCachedDataAndListen=function(I){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=I)};
_.L.resolveCachedActions=function(){var I=_.jF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(I=I&&I())&&!_.e$.isEmpty(I)&&this.sendUpdateEngagementPanelAction(I);(I=(I=_.jF("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&I())&&!_.e$.isEmpty(I)&&this.sendChangeEngagementPanelVisibilityAction(I);(I=(I=_.jF("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&I())&&!_.e$.isEmpty(I)&&this.sendScrollToEngagementPanelCommand(I)};
_.L.sendUpdateEngagementPanelAction=function(I){var y;_.uj(this.hostElement,"yt-update-engagement-panel-action",[(y=_.e$.get(I,"action"))!=null?y:I])};
_.L.sendChangeEngagementPanelVisibilityAction=function(I){_.uj(this.hostElement,"yt-change-engagement-panel-visibility-action",[I])};
_.L.sendScrollToEngagementPanelCommand=function(I){_.uj(this.hostElement,"yt-scroll-to-engagement-panel-command",[I])};
_.L.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.l("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.tq(Error("Al"))};
n7.prototype.dataChanged=n7.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],n7.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],n7.prototype,"componentBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],n7.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],n7.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],n7.prototype,"player",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n7.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],n7);
_.a(n7,"ytd-ads-engagement-panel-content-renderer",function(){if(duR!==void 0)return duR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return duR=I},{mode:1});var BrY;var p7=function(){var I=_.k.apply(this,arguments)||this;I.player=null;I.JSC$20536_playerEvents=new Map;I.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return I};
_.E(p7,_.k);_.L=p7.prototype;_.L.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]]"}}}}}};
_.L.created=function(){this.player=null;this.JSC$20536_playerEvents=new Map;this.JSC$20536_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20536_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20536_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20536_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.L.attached=function(){var I=this,y=_.NY();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));y&&y.getPlayerPromise().then(function(D){I.setPlayer(D);I.set("isPageLoad",!1)})};
_.L.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20536_playerEvents);this.set("player",I);I&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$20536_playerEvents),I.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.L.onLoopRangeChange=function(I){var y=_.nR().resolve(_.fR(_.ja));if((!y||y.isOnWatch())&&this.hostElement.clientHeight){var D;!I&&((D=this.data)==null?0:D.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.L.onVideoProgress=function(I){var y,D,F=((y=this.player)==null?void 0:(D=y.getPresentingPlayerType)==null?void 0:D.call(y))===2;this.isAdPlaying!==F&&this.set("isAdPlaying",F);var R;if(!F&&(R=this.player)!=null&&R.getLoopRange()){D=this.player.getLoopRange();y=D.startTimeMs;D=D.endTimeMs;F=this.player.getProgressState(1).seekableStart;var O;y<F*1E3&&((O=this.data)==null?0:O.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
I=D<I*1E3;var w;((w=this.player)==null?0:w.getLoopRange())&&I&&this.player.seekTo(y/1E3)}};
_.L.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.L.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.L.onYtDeleteClipEngagementPanelCommand=function(I){_.u(I,i1e).command&&this.ytComponentBehavior.resolveCommand(_.u(I,i1e).command)};
_.mD.Object.defineProperties(p7.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ug("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],p7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],p7.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],p7.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],p7.prototype,"isAdPlaying",void 0);_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],p7.prototype,"isPageLoad",void 0);_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],p7.prototype,"isDarkTheme",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],p7.prototype,"voteCount",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],p7.prototype,"channelEndpoint",null);_.W([_.Y("channelEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],p7.prototype,"channelHref",null);_.W([_.yd({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],p7);
_.a(p7,"ytd-clip-attribution-renderer",function(){if(BrY!==void 0)return BrY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return BrY=I},{mode:1});var i8g;var mG=function(){var I=_.k.apply(this,arguments)||this;I.player=null;I.JSC$20541_playerEvents=new Map;return I};
_.E(mG,_.k);_.L=mG.prototype;_.L.created=function(){this.player=null;this.JSC$20541_playerEvents=new Map;this.JSC$20541_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20541_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20541_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.L.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.L.attached=function(){var I=this,y=_.NY();y&&y.getPlayerPromise().then(function(D){I.setPlayer(D);I.set("isPageLoad",!1)})};
_.L.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20541_playerEvents);this.set("player",I);if(I){this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$20541_playerEvents);var y;(I==null?void 0:(y=I.getPresentingPlayerType)==null?void 0:y.call(I))===2&&this.playerAdStartHandler()}};
_.L.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.L.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.L.onVideoProgress=function(){var I,y,D=((I=this.player)==null?void 0:(y=I.getPresentingPlayerType)==null?void 0:y.call(I))===2;this.isAdPlaying!==D&&this.set("isAdPlaying",D)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],mG.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mG.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],mG.prototype,"isAdPlaying",void 0);
_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],mG.prototype,"isPageLoad",void 0);_.W([_.yd({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],mG);
_.a(mG,"ytd-clip-section-footer-renderer",function(){if(i8g!==void 0)return i8g;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return i8g=I},{mode:1});var A7R;var $uY;var b8o=function(){return _.k.apply(this,arguments)||this};
_.E(b8o,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],b8o.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],b8o.prototype,"data",void 0);_.W([_.yd({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],b8o);
_.a(b8o,"ytd-clip-ad-state-renderer",function(){if($uY!==void 0)return $uY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $uY=I},{mode:1});var H8G;var M$=function(){var I=_.k.apply(this,arguments)||this;I.value="";I.valid=!1;I.userChangedValue=!1;I.disabled=!1;I.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return I};
_.E(M$,_.k);_.L=M$.prototype;_.L.detached=function(){this.userChangedValue=!1};
_.L.handleKeyDown=function(I){if(_.Wr)var y=13;else _.hnf&&_.cr?y=13:y=13;I.keyCode===y&&I.preventDefault()};
_.L.handleInput=function(){var I=_.XB(this.hostElement).querySelector("#title");if(I){var y=(I.value||"").replace(/\r|\n/g," ");this.set("value",y);I.value=y;this.valid=I.validate();this.userChangedValue=!0}};
_.L.handleBlur=function(){this.valid=_.XB(this.hostElement).querySelector("#title").validate()};
_.L.onValueChanged=function(){_.lj(this.hostElement,"title-changed",{title:this.value})};
_.L.onValidChanged=function(){_.lj(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.L.setInput=function(I,y){var D=_.XB(this.hostElement).querySelector("#title");D&&(D.value=I,this.handleInput(),y&&(D.invalid=!1,this.valid=!0))};
_.L.onClipCreationDisable=function(){this.set("disabled",!0)};
_.L.onClipCreationEnable=function(){this.set("disabled",!1)};
_.L.onClipCreationVisibilityChange=function(I){var y=this;I.visible?requestAnimationFrame(function(){var D;((D=_.XB(y.hostElement).querySelector("#title"))==null?void 0:D.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
M$.prototype.onValidChanged=M$.prototype.onValidChanged;M$.prototype.onValueChanged=M$.prototype.onValueChanged;M$.prototype.handleBlur=M$.prototype.handleBlur;M$.prototype.handleInput=M$.prototype.handleInput;M$.prototype.handleKeyDown=M$.prototype.handleKeyDown;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],M$.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],M$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],M$.prototype,"value",void 0);_.W([_.M(),_.A("design:type",Object)],M$.prototype,"valid",void 0);_.W([_.M(),_.A("design:type",Object)],M$.prototype,"userChangedValue",void 0);_.W([_.M(),_.A("design:type",Object)],M$.prototype,"disabled",void 0);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],M$.prototype,"handleKeyDown",null);
_.W([_.z4("input"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M$.prototype,"handleInput",null);_.W([_.z4("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M$.prototype,"handleBlur",null);_.W([_.ke("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M$.prototype,"onValueChanged",null);
_.W([_.ke("valid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M$.prototype,"onValidChanged",null);_.W([_.yd({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],M$);
_.a(M$,"ytd-clip-creation-text-input-renderer",function(){if(H8G!==void 0)return H8G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H8G=I},{mode:1});var eFg;var Trb;var sGe;var V6G;var Z8Q;var zu=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};I.pendingStoryboardImages_={};I.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];I.tickLabelInterval=30;I.mediumTickInterval=5;I.largeTickInterval=15;I.aboveRulerHeight=32;I.rulerHeight=50;I.smallTickHeight=4;I.mediumTickHeight=8;I.largeTickHeight=16;I.mediaListeners_=
{};return I};
_.E(zu,_.k);_.L=zu.prototype;_.L.attached=function(){var I=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(y){y=_.J(["screen and (min-resolution: "+y+")","screen and (max-resolution: "+y+")"]);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=window.matchMedia(D);F&&(I.mediaListeners_[D]=I.updatePixelRatio_.bind(I),F.addEventListener?F.addEventListener("change",I.mediaListeners_[D]):F.addListener?F.addListener(I.mediaListeners_[D]):delete I.mediaListeners_[D])}})};
_.L.detached=function(){this.setPlayer(null);for(var I=_.J(Object.keys(this.mediaListeners_)),y=I.next();!y.done;y=I.next()){var D=y.value;y=this.mediaListeners_[D];(D=window.matchMedia(D))&&(D.removeEventListener?D.removeEventListener("change",y):D.removeListener&&D.removeListener(y))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.L.onVisibilityChangedAction_=function(I){var y=this;I.visible&&!this.player_&&(I=_.NY())&&I.getPlayerPromise().then(function(D){y.setPlayer(D)})};
_.L.setPlayer=function(I){I&&this.set("player_",I)};
_.L.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.L.setUpCanvas_=function(){var I=this.rulerWidth,y=this.devicePixelRatio_,D=this.visible;this.set("canvasReady_",!1);if(D&&y!==0){D=this.aboveRulerHeight+this.rulerHeight;var F=_.XB(this.hostElement).querySelector("#ticks");F.width=I*y;F.height=D*y;F.style.width=I+"px";F.style.height=D+"px";F.getContext("2d").scale(y,y);this.set("canvasReady_",!0)}};
_.L.drawRuler_=function(I,y,D,F,R,O,w,v,P,K,r,N){I&&D&&y&&(I=_.XB(this.hostElement).querySelector("#ticks"),y=I.getContext("2d"),y.clearRect(0,0,I.width,I.height),y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),y.lineWidth=2,y.beginPath(),y.moveTo(0,this.aboveRulerHeight),y.lineTo(I.width,this.aboveRulerHeight),y.moveTo(0,I.height),y.lineTo(I.width,I.height),y.stroke(),this.drawRulerTicks_(I,O,R,F),this.drawStoryboardImages_(I,D,O,R,F),y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
y.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(w-O,F,!1),this.rulerHeight),D=this.timeToPixels_(v-O,F,!1),y.fillRect(D,this.aboveRulerHeight,I.width-D,this.rulerHeight),this.drawSpeedLines_(I,O,N))};
_.L.drawRulerTicks_=function(I,y,D,F){var R=I.getContext("2d");R.save();R.lineWidth=1;for(var O=Math.floor(Math.max(0,y-this.tickLabelInterval));O<y+D;O++){R.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var w=(O-y)*F;R.beginPath();R.moveTo(w,I.height);var v=this.smallTickHeight;O%this.largeTickInterval===0?v=this.largeTickHeight:O%this.mediumTickInterval===0&&(v=this.mediumTickHeight);R.lineTo(w,I.height-v);R.stroke();O%this.tickLabelInterval===0&&(R.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),R.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),R.fillText(Du(O),w+4,12),R.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),R.moveTo(w,0),R.lineTo(w,this.aboveRulerHeight),R.stroke())}R.restore()};
_.L.percentToHex_=function(I){I=Math.round(I*255).toString(16);I.length<2&&(I="0"+I);return I};
_.L.drawSpeedLines_=function(I,y,D){var F=I.getContext("2d");F.save();var R=Math.min(25,Math.abs(D)-15)/25,O=I.width*.3*R,w=I.width*-.3,v=I.width*1.3,P=this.aboveRulerHeight;I=I.height;var K=Math.round(4*R),r=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");r.length<7&&(r="#"+r.substring(1,4).repeat(2));var N=this.percentToHex_(.5+R/2);N=r+N;r+="00";if(R>0)for(R=0;R<K;R++){var h=w+Math.random()*(v-w),x=P+Math.random()*(I-P),q=O+y%O,X=F.createLinearGradient(h,x,h+q,x);
D<0?(X.addColorStop(0,N),X.addColorStop(.4,N),X.addColorStop(.9,r)):(X.addColorStop(.1,r),X.addColorStop(.6,N),X.addColorStop(1,N));F.strokeStyle=X;F.lineWidth=1;F.beginPath();F.moveTo(h,x);F.lineTo(h+q,x);F.stroke()}F.restore()};
_.L.getStoryboardForTime_=function(I,y,D){D===void 0&&(D=y.getNumberOfStoryboardLevels()-1);I=y.getStoryboardFrameIndex(I,D);return y.getStoryboardFrame(I,D)};
_.L.drawStoryboardImages_=function(I,y,D,F,R){if(!this.disabled){I=I.getContext("2d");var O=this.getStoryboardForTime_(0,y);if(O){var w=O.width/O.columns;O=O.height/O.rows;var v=w/O,P=this.rulerHeight*v;P=this.tickLabelInterval*(v<this.tickLabelInterval*R/this.rulerHeight?1/Math.floor(this.tickLabelInterval*R/P):Math.round(P/(this.tickLabelInterval*R)));var K=P*R,r=this.rulerHeight,N=K/this.rulerHeight,h=Math.floor(Math.max(0,D-P));for(h-=h%P;h<D+F;h+=P){var x=this.getStoryboardForTime_(h,y),q=this.getPreloadedStoryboard_(x.url);
if(q){var X=(h-D)*R,f=this.aboveRulerHeight,m=x.column*w,z=x.row*O;if(v<N){var B=r/(K/v);x=w;B*=O;z+=(O-B)/2}else x=K/(r*v)*w,B=O,m+=(w-x)/2;I.drawImage(q,m,z,x,B,X,f,K,r)}else this.fetchStoryboardImage_(x)}}}};
_.L.getPreloadedStoryboard_=function(I){return this.storyboardImages_.find(function(y){if(y.src==I)return!0;var D=y.src.indexOf(I);return D!=-1&&D==y.src.length-I.length})};
_.L.fetchStoryboardImage_=function(I){var y=this,D=this.getPreloadedStoryboard_(I.url),F=this.pendingStoryboardImages_[I.url];D||F!==void 0||(D=new Promise(function(R){var O=new Image(I.width,I.height);O.src=I.url;O.onload=function(){R(O)};
O.onerror=function(){R(null)}}),this.pendingStoryboardImages_[I.url]=D,D.then(function(R){R&&y.push("storyboardImages_",R);
return R}).finally(function(){delete y.pendingStoryboardImages_[I.url]}))};
_.L.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.L.timeToPixels_=function(I,y,D){I*=y;return D===void 0||D?I+"px":I};
_.L.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
zu.prototype.drawRuler_=zu.prototype.drawRuler_;zu.prototype.setUpCanvas_=zu.prototype.setUpCanvas_;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],zu.prototype,"start",void 0);_.W([_.M({value:30}),_.A("design:type",Number)],zu.prototype,"end",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],zu.prototype,"visible",void 0);_.W([_.M(),_.A("design:type",Object)],zu.prototype,"player_",void 0);_.W([_.M(),_.A("design:type",Number)],zu.prototype,"tickSpacing",void 0);_.W([_.M(),_.A("design:type",Number)],zu.prototype,"windowSizeSec",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],zu.prototype,"rulerWidth",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],zu.prototype,"rulerShift",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],zu.prototype,"canvasReady_",void 0);_.W([_.M({value:function(){return[]}}),
_.A("design:type",Array)],zu.prototype,"storyboardImages_",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],zu.prototype,"disabled",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],zu.prototype,"forceRender_",void 0);_.W([_.M({value:1}),_.A("design:type",Number)],zu.prototype,"devicePixelRatio_",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],zu.prototype,"windowSpeed",void 0);
_.W([_.ke("visible","devicePixelRatio_","rulerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zu.prototype,"setUpCanvas_",null);
_.W([_.ke("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.A("design:returntype")],zu.prototype,"drawRuler_",null);_.W([_.I6({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],zu);
_.a(zu,"yt-clip-creation-scrubber-canvas",function(){if(Z8Q===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);Z8Q=I}I=Z8Q;return I},
{mode:2});var gvb;var IDY;var k2=function(){var I=_.k.apply(this,arguments)||this;I.start=0;I.end=30;I.visible=!1;I.draggingLeft_=!1;I.draggingRight_=!1;I.draggingRuler_=!1;I.draggingWindow_=!1;I.seekableStart=0;I.seekableEnd=0;I.rulerWidth_=0;I.rulerShift_=0;I.windowSlideSpeed=0;I.disabled=!1;I.initialized=!1;I.durationAccessibilityLabel="";I.activeLoopRange_=!1;I.rulerDragMouseStart_=0;I.rulerDragRulerStart_=0;I.rulerDragStartTime_=0;I.rulerDragEndTime_=0;I.dragMouseLastX_=0;I.scrollInterval_=null;I.scrubberVe_=null;I.boundHandlers_=
{};I.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return I};
_.E(k2,_.k);_.L=k2.prototype;
_.L.created=function(){var I=this;this.JSC$20555_playerEvents=new Map;this.JSC$20555_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20555_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20555_playerEvents.set("onStateChange",this.onStateChange_);var y={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(y).forEach(function(D){I.boundHandlers_[D]=y[D].bind(I)})};
_.L.attached=function(){this.activeLoopRange_=!1;_.XB(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.XB(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.QM(156731)};
_.L.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.XB(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.XB(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.L.onVisibilityChangedAction_=function(I){var y=this;I.visible&&!this.player_&&(I=_.NY())&&I.getPlayerPromise().then(function(D){y.setPlayer(D)})};
_.L.setPlayer=function(I){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20555_playerEvents);I&&(this.set("player_",I),this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$20555_playerEvents))};
_.L.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.L.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.L.beginHandleDrag_=function(I){this.disabled||(I.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=I.clientX,I.target===_.XB(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():I.target===_.XB(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.L.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.L.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.L.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.L.beginRulerDrag_=function(I){this.disabled||(I.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=I.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.L.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.L.beginWindowScroll_=function(){var I=this;this.scrollInterval_=setInterval(function(){var y=I.windowSlideSpeed;if(y=qsg(I.start,I.boundedRulerStartLimit_())?y-.1:qsg(I.end,I.boundedRulerEndLimit_())?y+.1:0){var D=I.capRulerOffset_(I.rulerShift_+y);D==I.rulerShift_?y=0:(I.set("rulerShift_",D),_.lj(I.hostElement,"set-fixed-length-range",{start:I.start+y,duration:I.end-I.start}))}I.set("windowSlideSpeed",y)},33)};
_.L.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.L.endDrag_=function(){this.logClick();var I=void 0;this.draggingRight_?I=this.end-1:this.draggingLeft_&&(I=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,I);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))};
_.L.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.L.updateRulerSize_=function(){this.set("rulerWidth_",_.XB(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.L.handleMouseDrag_=function(I){I.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(I):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(I):this.draggingWindow_&&this.handleWindowDrag_(I))};
_.L.handleRulerDrag_=function(I){I=this.pixelsToTime_(I.clientX-this.rulerDragMouseStart_);I=this.capRulerOffset_(this.rulerDragRulerStart_-I);this.set("rulerShift_",I);var y=this.rulerDragStartTime_-(this.rulerDragRulerStart_-I);_.lj(this.hostElement,"set-fixed-length-range",{start:y,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-I)-y})};
_.L.handleWindowDrag_=function(I){var y=I.clientX-this.dragMouseLastX_;this.dragMouseLastX_=I.clientX;I=this.pixelsToTime_(y);_.lj(this.hostElement,"set-fixed-length-range",{start:this.start+I,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.L.capRulerOffset_=function(I){var y=this.seekableStart-this.pixelsToTime_(16),D=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(y,I),D)};
_.L.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.L.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.L.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.L.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.L.handleWindowHandleDrag_=function(I){var y=I.clientX-this.dragMouseLastX_;this.dragMouseLastX_=I.clientX;I=this.pixelsToTime_(y);if(this.draggingLeft_){var D=this.start+I;var F=this.end}else this.draggingRight_&&(D=this.start,F=this.end+I);_.lj(this.hostElement,"set-range",{start:D,end:F,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.L.onVideoProgress_=function(I){this.disabled||(I=this.timeToPixels_(I-this.rulerShift_,this.tickSpacing_),_.XB(this.hostElement).querySelector("#playhead").style.transform="translateX("+I+")")};
_.L.onClipCreationDisable_=function(){this.endDrag_()};
_.L.timeToPixels_=function(I,y,D){I*=y;return D===void 0||D?I+"px":I};
_.L.pixelsToTime_=function(I){return I/this.tickSpacing_};
_.L.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.L.centerRuler_=function(I,y,D){this.set("rulerShift_",this.capRulerOffset_(I+(y-I)/2-D/2))};
_.L.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.L.updateLoopRange_=function(I,y,D,F,R,O,w){I&&(y&&F&&!D?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(I.pauseVideo(),I.seekTo(R,!1,void 0,void 0,50)):this.draggingRight_?(I.pauseVideo(),I.seekTo(O-.1,!1,void 0,void 0,50)):(w!==void 0?I.seekTo(w,!0,void 0,void 0,50):(y=I.getCurrentTime(),y<R||y>O?I.seekTo(R,!0,void 0,void 0,50):I.seekTo(y,!0,void 0,void 0,50)),I.playVideo()),I.setLoopRange({startTimeMs:R*1E3,endTimeMs:O*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(I.getCurrentTime())):
this.activeLoopRange_&&(I.setLoopRange(null),this.activeLoopRange_=!1))};
_.L.updateHandles_=function(){_.XB(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.XB(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.L.updateRuler_=function(){var I=this.end,y=this.start,D=this.draggableStartLimit_(),F=this.draggableEndLimit_();(y<D-.001||I>F+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.L.computeDurationLabel_=function(I,y){return I?I.replace("$clip_length",parseFloat(y).toFixed(1)):""};
_.L.computeDuration_=function(I,y){return this.isValidTime_(I)&&this.isValidTime_(y)&&I<y?y-I:0};
_.L.isValidTime_=function(I){return isNaN(parseFloat(I))||I<0?!1:this.player_?I>=this.seekableStart&&I<=this.seekableEnd:!0};
_.L.computeWindowSizeSec_=function(I,y,D){return Math.min((I||12E4)/1E3,D-y)};
_.L.computeTickSpacing_=function(I,y){return y?y/I:1};
_.L.onDragStateChanged_=function(){_.lj(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.L.centerRangeOnTime_=function(I){var y=this.duration;I=xKQ(I-y/2,y,this.seekableStart,this.seekableEnd);_.lj(this.hostElement,"set-fixed-length-range",{start:I.start,duration:I.end-I.start})};
_.L.nearlyLessThan_=function(I,y,D){return I+(D===void 0?1E-6:D)<y};
_.L.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var I=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(I,this.start)||this.nearlyLessThan_(this.end,I))&&this.centerRangeOnTime_(I)}};
_.L.onStateChange_=function(I){this.visible&&!this.disabled&&I==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.L.computeDragState_=function(I,y,D,F){return I?"left":y?"right":D?"ruler":F?"window":"none"};
_.L.logClick=function(){var I=_.VO(),y=_.s_();I&&y&&this.scrubberVe_&&(_.l("combine_ve_grafts")?_.aj(_.W4(),this.scrubberVe_,y):_.Oc(I,y,this.scrubberVe_),_.SI(I,this.scrubberVe_))};
k2.prototype.onDragStateChanged_=k2.prototype.onDragStateChanged_;k2.prototype.updateRuler_=k2.prototype.updateRuler_;k2.prototype.updateHandles_=k2.prototype.updateHandles_;k2.prototype.onUpdateLoopRange=k2.prototype.onUpdateLoopRange;k2.prototype.onInitializedChanged_=k2.prototype.onInitializedChanged_;k2.prototype.onVisibleChanged_=k2.prototype.onVisibleChanged_;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],k2.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",Object)],k2.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"start",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"end",void 0);_.W([_.M({computed:"computeDuration_(start, end)"}),_.A("design:type",Number)],k2.prototype,"duration",void 0);
_.W([_.M(),_.A("design:type",String)],k2.prototype,"lengthTemplate",void 0);_.W([_.M({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.A("design:type",String)],k2.prototype,"durationLabel",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"visible",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"player_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"draggingLeft_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"draggingRight_",void 0);
_.W([_.M(),_.A("design:type",Object)],k2.prototype,"draggingRuler_",void 0);_.W([_.M({value:!1}),_.A("design:type",Object)],k2.prototype,"draggingWindow_",void 0);_.W([_.M({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.A("design:type",Number)],k2.prototype,"tickSpacing_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"seekableStart",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"seekableEnd",void 0);
_.W([_.M(),_.A("design:type",Number)],k2.prototype,"windowSizeMs",void 0);_.W([_.M({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.A("design:type",Number)],k2.prototype,"windowSizeSec_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"rulerWidth_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"rulerShift_",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"windowSlideSpeed",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k2.prototype,"disabled",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"initialized",void 0);_.W([_.M(),_.A("design:type",Object)],k2.prototype,"durationAccessibilityLabel",void 0);_.W([_.M({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.A("design:type",String)],k2.prototype,"dragState",void 0);
_.W([_.ke("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"onVisibleChanged_",null);_.W([_.ke("initialized"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"onInitializedChanged_",null);_.W([_.ke("player_","visible","disabled","initialized","start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"onUpdateLoopRange",null);
_.W([_.ke("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"updateHandles_",null);_.W([_.ke("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"updateRuler_",null);
_.W([_.ke("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k2.prototype,"onDragStateChanged_",null);_.W([_.I6({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],k2);
_.a(k2,"yt-clip-creation-scrubber-view",function(){if(IDY===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;gvb===void 0&&(gvb=document.createElement("template"));var F=gvb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);IDY=I}I=IDY;return I},{mode:2});var da=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};I.startHighlightTimeout=0;I.endHighlightTimeout=0;return I};
_.E(da,_.k);_.L=da.prototype;_.L.attached=function(){var I=this;this.startInput.addEventListener("input",function(y){return I.handleStartInput_(y)});
this.endInput.addEventListener("input",function(y){return I.handleEndInput_(y)});
this.startInput.addEventListener("focusout",function(y){return I.handleStartBlur_(y)});
this.endInput.addEventListener("focusout",function(y){return I.handleEndBlur_(y)})};
_.L.setPlayer=function(I){this.set("player_",I)};
_.L.onSetFixedLengthRange_=function(I){var y=I.detail;I=y.start;var D=y.duration,F=y.startLimit;y=y.endLimit;F||(F=this.seekableStart_);y||(y=this.seekableEnd_);I=xKQ(I,D,F,y);this.start=I.start;this.end=I.end};
_.L.onSetRange_=function(I){var y=I.detail;I=y.start;var D=y.end,F=y.startLimit;y=y.endLimit;F||(F=this.seekableStart_);y||(y=this.seekableEnd_);if(I=loa(I,D,F,y,this.minLengthSec,this.maxLengthSec))this.start=I.start,this.end=I.end};
_.L.updateInputs_=function(){var I=this.end,y=this.start;this.startInput.focused||(this.startInput.value=Du(y,!0));this.endInput.focused||(this.endInput.value=Du(I,!0))};
_.L.handleStartInput_=function(I){I=hg1(I.target.value);if(I===null)this.set("startValid",!1);else{var y=this.end,D=loa(I,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("endWillUpdate",D.end!==y),this.set("startValid",D.start===I)):this.set("startValid",!1)}};
_.L.handleEndInput_=function(I){I=hg1(I.target.value);if(I===null)this.set("endValid",!1);else{var y=this.start,D=uHZ(this.start,I,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("startWillUpdate",D.start!==y),this.set("endValid",D.end===I)):this.set("endValid",!1)}};
_.L.handleStartBlur_=function(I){I=hg1(I.target.value);I===null?this.startInput.value=Du(this.start,!0):this.forceUpdateInputs_(loa(I,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.L.handleEndBlur_=function(I){I=hg1(I.target.value);I===null?this.endInput.value=Du(this.end,!0):this.forceUpdateInputs_(uHZ(this.start,I,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.L.forceUpdateInputs_=function(I){I&&(this.start=I.start,this.end=I.end);this.startInput.value=Du(this.start,!0);this.endInput.value=Du(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.L.initializeClipRange_=function(){var I=this.seekableEnd_,y=this.seekableStart_,D=this.visible_,F=this.player_;if(!F||!D||y===null||!I)this.set("initialized",!1);else if(!this.initialized){var R=F.getCurrentTime(),O=this.getDefaultLengthSec_();D=F.getVideoData();var w=F.getPlayerState()==1,v=D.isLive;O=Math.min(O,I-y);R=Math.max(0,R);I=v?uHZ(R-O,R,y,I,this.minLengthSec,this.maxLengthSec):w?xKQ(R-O/2,O,y,I):xKQ(R,O,y,I);this.start=I.start;this.end=I.end;this.set("initialized",!0);D.isLive&&F.seekTo(I.start);
this.startInput.value=Du(this.start,!0);this.endInput.value=Du(this.end,!0)}};
_.L.onStartChanged_=function(){var I=this;_.lj(this.hostElement,"start-changed",{start:this.start});var y;isNaN((y=this.oldStart)!=null?y:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){I.set("highlightStart",!1);I.startHighlightTimeout=0;I.oldStart=I.start},3E3))};
_.L.onEndChanged_=function(){var I=this;_.lj(this.hostElement,"end-changed",{end:this.end});var y;isNaN((y=this.oldEnd)!=null?y:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){I.set("highlightEnd",!1);I.endHighlightTimeout=0;I.oldEnd=I.end},3E3))};
_.L.onVisibilityChangedAction_=function(I){var y=this;this.set("visible_",I.visible);this.visible_&&!this.player_&&(I=_.NY())&&I.getPlayerPromise().then(function(D){y.setPlayer(D)})};
_.L.computeMinLengthSec_=function(I){return I/1E3||5};
_.L.computeMaxLengthSec_=function(I){return I/1E3||60};
_.L.computeDefaultLengthSec_=function(I){return I/1E3};
_.L.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.L.computeSeekableStart_=function(I,y){return I&&y?I.getProgressState(1).seekableStart:0};
_.L.computeSeekableEnd_=function(I,y){return I&&y?I.getProgressState(1).seekableEnd:0};
_.L.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.L.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.L.onDragState_=function(I){this.set("highlightStart",I.detail.startChanging);this.set("highlightEnd",I.detail.endChanging)};
da.prototype.onDragState_=da.prototype.onDragState_;da.prototype.onEndChanged_=da.prototype.onEndChanged_;da.prototype.onStartChanged_=da.prototype.onStartChanged_;da.prototype.initializeClipRange_=da.prototype.initializeClipRange_;da.prototype.updateInputs_=da.prototype.updateInputs_;da.prototype.onSetRange_=da.prototype.onSetRange_;da.prototype.onSetFixedLengthRange_=da.prototype.onSetFixedLengthRange_;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],da.prototype,"data",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],da.prototype,"start",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],da.prototype,"startValid",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],da.prototype,"startWillUpdate",void 0);_.W([_.M({value:30}),_.A("design:type",Number)],da.prototype,"end",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],da.prototype,"endValid",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],da.prototype,"endWillUpdate",void 0);_.W([_.M({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.A("design:type",Number)],da.prototype,"minLengthSec",void 0);
_.W([_.M({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.A("design:type",Number)],da.prototype,"maxLengthSec",void 0);_.W([_.M({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.A("design:type",Number)],da.prototype,"defaultLengthSec",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],da.prototype,"visible_",void 0);_.W([_.M(),_.A("design:type",Object)],da.prototype,"player_",void 0);
_.W([_.M({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.A("design:type",Number)],da.prototype,"seekableStart_",void 0);_.W([_.M({computed:"computeSeekableEnd_(player_, visible_)"}),_.A("design:type",Number)],da.prototype,"seekableEnd_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],da.prototype,"initialized",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],da.prototype,"disabled",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],da.prototype,"highlightStart",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],da.prototype,"highlightEnd",void 0);_.W([_.a0("#start"),_.A("design:type",HTMLInputElement)],da.prototype,"startInput",void 0);_.W([_.a0("#end"),_.A("design:type",HTMLInputElement)],da.prototype,"endInput",void 0);
_.W([_.z4("set-fixed-length-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],da.prototype,"onSetFixedLengthRange_",null);_.W([_.z4("set-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],da.prototype,"onSetRange_",null);_.W([_.ke("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],da.prototype,"updateInputs_",null);
_.W([_.ke("player_","visible_","seekableStart_","seekableEnd_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],da.prototype,"initializeClipRange_",null);_.W([_.ke("start"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],da.prototype,"onStartChanged_",null);_.W([_.ke("end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],da.prototype,"onEndChanged_",null);
_.W([_.z4("clips-drag-state"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],da.prototype,"onDragState_",null);_.W([_.I6({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],da);
_.a(da,"yt-clip-creation-scrubber-renderer",function(){if(V6G===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;sGe===void 0&&(sGe=document.createElement("template"));var F=sGe;D.call(y,F.content.cloneNode(!0),I.content.firstChild);V6G=I}I=V6G;return I},{mode:2});var aE=function(){var I=_.k.apply(this,arguments)||this;I.player_=null;I.JSC$20569_playerEvents=new Map;I.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return I};
_.E(aE,_.k);_.L=aE.prototype;_.L.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"}}}};
_.L.created=function(){this.JSC$20569_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20569_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20569_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20569_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.L.detached=function(){this.setPlayer(null)};
_.L.onVisibilityChangedAction_=function(I){var y=this,D;if((D=this.data)==null?0:D.externalVideoId){var F;this.videoId=(F=this.data)==null?void 0:F.externalVideoId}this.getPlayer().then(function(R){if(I.visible)y.returnTime=R.getCurrentTime(),y.isAtLiveHead=R.getProgressState().isAtLiveHead;else{var O=y.returnTime;y.isAtLiveHead&&(O=Number.POSITIVE_INFINITY);R.seekTo(O,void 0,void 0,void 0,51)}})};
_.L.getPlayer=function(){var I=this;if(!this.player_){var y=_.NY();if(y)return y.getPlayerPromise().then(function(D){I.setPlayer(D);return D})}return Promise.resolve(this.player_)};
_.L.setPlayer=function(I){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20569_playerEvents);if(I){this.player_=I;var y;((y=this.data)==null?0:y.externalVideoId)||this.set("videoId",I.getVideoData().video_id||"");var D;(I==null?void 0:(D=I.getPresentingPlayerType)==null?void 0:D.call(I))===2&&(this.set("isAdPlaying",!0),_.uj(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$20569_playerEvents)}};
_.L.ready=function(){_.XB(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.L.onTitleChanged_=function(I){this.set("titleValue",I.detail.title)};
_.L.onStartChanged_=function(I){this.set("start",I.detail.start)};
_.L.onEndChanged_=function(I){this.set("end",I.detail.end)};
_.L.onTitleValidChanged_=function(I){this.set("titleValid",I.detail.valid)};
_.L.onStartValidChanged_=function(I){this.set("startValid",I.detail.valid)};
_.L.onEndValidChanged_=function(I){this.set("endValid",I.detail.valid)};
_.L.onVideoDataChange_=function(){var I;if((I=this.data)==null||!I.externalVideoId){var y;this.set("videoId",((y=this.player_)==null?void 0:y.getVideoData().video_id)||"")}};
_.L.computeFormValid_=function(I,y,D,F){return!!(I&&y&&D&&F)};
_.L.computeCancelButton_=function(I,y,D){return I&&_.u(I,_.S1)?{buttonRenderer:Object.assign({},_.u(I,_.S1),{isDisabled:y||D})}:null};
_.L.computeSubmitButton_=function(I,y,D){return I&&_.u(I,_.S1)?{buttonRenderer:Object.assign({},_.u(I,_.S1),{command:void 0,isDisabled:!this.formValid||y||D})}:null};
_.L.computeSubmitCommand_=function(I){return I||null};
_.L.onSubmit_=function(I){var y=this;I.stopPropagation();I.preventDefault();this.submitCommand_&&(I={},I.comment_text=this.titleValue,I.clip_external_video_id=this.videoId,I.clip_offset_ms=parseInt(this.start*1E3,10),I.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.E$(this.hostElement,[this.submitCommand_,I]).then(function(){y.set("isLoading_",!1)},function(){y.set("isLoading_",!1)}))};
_.L.playerAdStartHandler_=function(){_.uj(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.L.playerAdEndHandler_=function(){_.uj(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.L.onVideoProgress_=function(){var I=this;this.getPlayer().then(function(y){var D,F=(y==null?void 0:(D=y.getPresentingPlayerType)==null?void 0:D.call(y))===2;I.isAdPlaying!==F&&(F?I.playerAdStartHandler_():I.playerAdEndHandler_())})};
aE.prototype.onEndValidChanged_=aE.prototype.onEndValidChanged_;aE.prototype.onStartValidChanged_=aE.prototype.onStartValidChanged_;aE.prototype.onTitleValidChanged_=aE.prototype.onTitleValidChanged_;aE.prototype.onEndChanged_=aE.prototype.onEndChanged_;aE.prototype.onStartChanged_=aE.prototype.onStartChanged_;aE.prototype.onTitleChanged_=aE.prototype.onTitleChanged_;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],aE.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",Object)],aE.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aE.prototype,"data",void 0);_.W([_.M({value:""}),_.A("design:type",String)],aE.prototype,"titleValue",void 0);
_.W([_.M({value:!1}),_.A("design:type",Boolean)],aE.prototype,"titleValid",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],aE.prototype,"start",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],aE.prototype,"startValid",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],aE.prototype,"end",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],aE.prototype,"endValid",void 0);_.W([_.M({value:""}),_.A("design:type",String)],aE.prototype,"videoId",void 0);
_.W([_.M({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.A("design:type",Boolean)],aE.prototype,"formValid",void 0);_.W([_.M({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.A("design:type",Object)],aE.prototype,"submitButton_",void 0);_.W([_.M({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.A("design:type",Object)],aE.prototype,"submitCommand_",void 0);
_.W([_.M({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.A("design:type",Object)],aE.prototype,"cancelButton_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],aE.prototype,"isLoading_",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],aE.prototype,"isAdPlaying",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],aE.prototype,"returnTime",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],aE.prototype,"isAtLiveHead",void 0);
_.W([_.z4("title-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onTitleChanged_",null);_.W([_.z4("start-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onStartChanged_",null);_.W([_.z4("end-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onEndChanged_",null);
_.W([_.z4("title-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onTitleValidChanged_",null);_.W([_.z4("start-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onStartValidChanged_",null);_.W([_.z4("end-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aE.prototype,"onEndValidChanged_",null);
_.W([_.I6({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],aE);
_.a(aE,"yt-clip-creation-renderer",function(){if(Trb===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;eFg===void 0&&(eFg=document.createElement("template"));var F=eFg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Trb=I}I=Trb;return I},{mode:2});var cI=function(){return _.k.apply(this,arguments)||this};
_.E(cI,_.k);cI.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"}}}};
cI.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(I){return I.hasOwnProperty("clipCreationRenderer")})&&_.uj(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
cI.prototype.onPanelContentVisibleChanged=cI.prototype.onPanelContentVisibleChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],cI.prototype,"ytVisibilityBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],cI.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],cI.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],cI.prototype,"panelContentVisible",void 0);_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cI.prototype,"onPanelContentVisibleChanged",null);_.W([_.yd({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],cI);
_.a(cI,"ytd-clip-section-renderer",function(){if(A7R!==void 0)return A7R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return A7R=I},{mode:1});var yNg;var DhR;var FYT;var REe=function(){return _.k.apply(this,arguments)||this};
_.E(REe,_.k);_.W([_.M(),_.A("design:type",Object)],REe.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],REe.prototype,"ytRendererBehavior",void 0);_.W([_.yd({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],REe);
_.a(REe,"ytd-hashtag-grid-tile-renderer",function(){if(FYT!==void 0)return FYT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FYT=I},{mode:1});var WI=function(){return _.k.apply(this,arguments)||this};
_.E(WI,_.k);WI.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
WI.prototype.updateRichGridTrendingHashtagsVisibility=function(){var I,y;if(((I=this.data)==null||!I.isExpanded)&&(y=this.data)!=null&&y.tiles){I=this.data.tiles.length;y=I>this.richGridItemsPerRow?this.richGridItemsPerRow+1:I;var D=Math.ceil(I/y);this.fullyVisibleRows=I%y===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
WI.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
WI.prototype.updateRichGridTrendingHashtagsVisibility=WI.prototype.updateRichGridTrendingHashtagsVisibility;_.W([_.M(),_.A("design:type",Object)],WI.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],WI.prototype,"fullyVisibleRows",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],WI.prototype,"isShowMoreVisible",void 0);_.W([_.M({selector:_.gH,value:0}),_.A("design:type",Number)],WI.prototype,"richGridItemsPerRow",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],WI.prototype,"ytdReduxBehavior",void 0);_.W([_.ke("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WI.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.W([_.yd({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],WI);
_.a(WI,"ytd-hashtag-grid-shelf-renderer",function(){if(DhR!==void 0)return DhR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return DhR=I},{mode:1});var OrR;var LYy;var JNR=0,C7=function(){var I=_.k.call(this)||this;I.selected=!1;I.isOverlay=!1;I.inputId="toggle-option-"+JNR;JNR++;return I};
_.E(C7,_.k);C7.prototype.onTap=function(){_.lj(this.hostElement,"ytd-toggle-option-clicked")};
_.W([_.M(),_.A("design:type",String)],C7.prototype,"label",void 0);_.W([_.M(),_.A("design:type",String)],C7.prototype,"inputId",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],C7.prototype,"selected",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],C7.prototype,"isOverlay",void 0);_.W([_.yd({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.A("design:paramtypes",[])],C7);
_.a(C7,"ytd-toggle-option-renderer",function(){if(LYy!==void 0)return LYy;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return LYy=I},{mode:1});var BI=function(){var I=_.k.apply(this,arguments)||this;I.isToggleOption=!1;I.isOverlay=!1;return I};
_.E(BI,_.k);BI.prototype.onTap=function(I){I.preventDefault();this.data&&(I=!this.data.checked,this.set("data.checked",I),_.lj(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:I,value:this.data.value}))};
_.mD.Object.defineProperties(BI.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
BI.prototype.onTap=BI.prototype.onTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BI.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],BI.prototype,"isToggleOption",void 0);_.W([_.M(),_.A("design:type",Object)],BI.prototype,"isOverlay",void 0);_.W([_.Y("data.responseText"),_.A("design:type",String),_.A("design:paramtypes",[])],BI.prototype,"label",null);
_.W([_.z4("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],BI.prototype,"onTap",null);_.W([_.yd({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],BI);
_.a(BI,"ytd-checkbox-survey-option-renderer",function(){if(OrR!==void 0)return OrR;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return OrR=I},{mode:1});var wD8;var vqa;var iv=function(){var I=_.k.apply(this,arguments)||this;I.checked=!1;I.isToggleOption=!1;return I};
_.E(iv,_.k);iv.prototype.onTap=function(){this.data&&(this.checked?_.uj(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.uj(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
iv.prototype.onTap=iv.prototype.onTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],iv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],iv.prototype,"checked",void 0);_.W([_.M(),_.A("design:type",Object)],iv.prototype,"isToggleOption",void 0);_.W([_.z4("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],iv.prototype,"onTap",null);
_.W([_.yd({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],iv);
_.a(iv,"ytd-radio-button-survey-option-renderer",function(){if(vqa!==void 0)return vqa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vqa=I},{mode:1});var AJ=function(){var I=_.k.apply(this,arguments)||this;I.disableAnimation=!1;I.isToggleOption=!0;I.followUpSurveyCommand=null;I.selectedRatingEndpoint=null;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;I.styleOverrideAttribute=!0;I.isDarkMode=!1;I.isSubmitted=!1;I.roundedContainer=!0;I.improveShortsResponseRate=_.l("web_improve_shorts_response_rate");I.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 I};
_.E(AJ,_.k);_.L=AJ.prototype;
_.L.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"}}}}};
_.L.attached=function(){var I=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(D){var F;if((F=D[0])!=null&&F.isIntersecting){_.a6().reportShown(I.hostElement);var R;(R=I.intersectionObserver)==null||R.unobserve(I.hostElement)}},{rootMargin:"0px",
threshold:.6});var y;(y=this.intersectionObserver)==null||y.observe(this.hostElement)};
_.L.onDarkModeToggledAction=function(I){this.isDarkMode=I};
_.L.dataChanged=function(){var I;if(((I=this.data)==null?void 0:I.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var y;((y=this.data)==null?void 0:y.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var D,F,R,O;this.darkColorPalette=(D=this.data)==null?void 0:(F=D.inlineContent)==null?void 0:(R=F.compactVideoRenderer)==null?void 0:(O=R.thumbnail)==null?
void 0:O.darkColorPalette;var w,v,P,K;this.lightColorPalette=(w=this.data)==null?void 0:(v=w.inlineContent)==null?void 0:(P=v.compactVideoRenderer)==null?void 0:(K=P.thumbnail)==null?void 0:K.lightColorPalette;var r,N;if(((r=this.data)==null?0:(N=r.inlineContent)==null?0:N.compactVideoRenderer)&&this.isShortsStyle){var h,x,q,X;I=_.xY((h=this.data)==null?void 0:(x=h.inlineContent)==null?void 0:(q=x.compactVideoRenderer)==null?void 0:(X=q.thumbnail)==null?void 0:X.thumbnails);_.pg(this.hostElement,
{"--yt-background-url":"url("+I+")"})}};
_.L.handleRequestCompletion=function(){this.hostElement.hidden&&_.lj(this.hostElement,"yt-dismissible-item-dismissed")};
_.L.onPopupClosed=function(I){var y;((y=I.detail)==null?void 0:y.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.uj(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.L.handleInlineSurveyRatingSelect=function(I,y){var D=this;this.selectedRatingEndpoint=I;this.followUpSurveyCommand=y;this.expanded=!!I;this.getOptionRenderers().forEach(function(F,R){D.notifyPath("followUpSurveyCommand.followUpOptions."+R+".checkboxSurveyOptionRenderer.checked");D.set("followUpSurveyCommand.followUpOptions."+R+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),I=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.uj(this.hostElement,"yt-reel-non-video-content-dismissal-command",[I]))};
_.L.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.uj(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var I,y=(I=this.data)==null?void 0:I.dismissalEndpoint;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.L.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.uj(this.hostElement,"yt-close-popup-action"))};
_.L.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var I=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{I=this.getOptionRenderers().filter(function(F){return F.checked});
if(I.length===0)return;I=I.map(function(F){return F.responseEndpoint})}var y=[];
I.forEach(function(F,R){R!==0&&(F=_.u(F,_.gT))&&F.feedbackToken&&y.push(F.feedbackToken)});
if(I=I[0]){var D={};y.length>0&&(D.extra_feedback_tokens=y);this.ytComponentBehavior.resolveCommand(I,{form:D})}}};
_.L.getOptionRenderers=function(){var I=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(y){I.isSingleSelect=!!_.u(y,ZcG);return I.isSingleSelect?_.u(y,ZcG):_.u(y,gSb)}):[]};
_.L.handleInlineSurveyOptionSelect=function(I){I=this.optionSelector.indexOf(I);I!==-1&&this.optionSelector.selectIndex(I)};
_.L.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.L.maybeGetBackgroundColor=function(I){return this.isDarkMode?I.section2Color:I.section3Color};
_.L.colorPaletteChanged=function(){var I=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;I=I&&this.maybeGetBackgroundColor(I);this.dismissibleEl.style.backgroundColor=!I||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Vp(I)};
_.mD.Object.defineProperties(AJ.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
AJ.prototype.colorPaletteChanged=AJ.prototype.colorPaletteChanged;AJ.prototype.onPopupClosed=AJ.prototype.onPopupClosed;AJ.prototype.handleRequestCompletion=AJ.prototype.handleRequestCompletion;AJ.prototype.dataChanged=AJ.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],AJ.prototype,"actionHandlerBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],AJ.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.a0("#follow-up-survey-options"),_.A("design:type",Object)],AJ.prototype,"optionSelector",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"disableAnimation",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"isToggleOption",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"followUpSurveyCommand",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"selectedRatingEndpoint",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],AJ.prototype,"expanded",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"isShortsStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"styleOverrideAttribute",void 0);_.W([_.M(),_.A("design:type",Boolean)],AJ.prototype,"isSingleSelect",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"isDarkMode",void 0);
_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"lightColorPalette",void 0);_.W([_.M(),_.A("design:type",Object)],AJ.prototype,"darkColorPalette",void 0);_.W([_.Y("selectedRatingEndpoint","isShortsStyle"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"isOptionSelected",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"roundedContainer",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"improveShortsResponseRate",void 0);_.W([_.a0("#dismissible"),_.A("design:type",HTMLElement)],AJ.prototype,"dismissibleEl",void 0);_.W([_.a0("#dismiss-button yt-icon-button"),_.A("design:type",HTMLElement)],AJ.prototype,"dismissButtonEl",void 0);_.W([_.a0("#inline-survey-header yt-icon-button"),_.A("design:type",HTMLElement)],AJ.prototype,"inlineHeaderDismissButtonEl",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"dataChanged",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"handleRequestCompletion",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],AJ.prototype,"onPopupClosed",null);
_.W([_.ke("darkColorPalette","lightColorPalette","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"colorPaletteChanged",null);_.W([_.yd({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],AJ);
_.a(AJ,"ytd-inline-survey-renderer",function(){if(wD8!==void 0)return wD8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wD8=I},{mode:1});var STG;var t3T;var $2=function(){var I=_.k.apply(this,arguments)||this;I.visibleVideos=[];I.hiddenVideos=[];I.modern=_.l("web_modern_buttons");I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E($2,_.k);_.L=$2.prototype;_.L.attached=function(){var I=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.onDarkModeToggledAction(I)};
_.L.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"}}}};
_.L.dataChanged=function(){var I=this;this.requestElementsPerRow();var y,D;this.currentColorPalette=this.isDarkTheme?(y=this.data)==null?void 0:y.darkColorData:(D=this.data)==null?void 0:D.lightColorData;var F;if((F=this.currentColorPalette)==null?0:F.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.YC(this,function(){I.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.L.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.L.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.L.computeIsFirstFeedItem=function(I){return I};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I);this.data&&(this.currentColorPalette=I?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.L.getCurrentLogo=function(I,y){if(I)return y?I.darkLogoImage:I.lightLogoImage};
_.L.computeTitleStyle=function(I){var y;if((y=this.data)!=null&&y.title&&I&&I.textPrimary!==void 0)return"color:"+_.Vp(I.textPrimary)+";"};
_.L.computeSubtitleStyle=function(I){var y;if((y=this.data)!=null&&y.subtitle&&I&&I.textSecondary!==void 0)return"color:"+_.Vp(I.textSecondary)+";"};
_.L.computeDismissIconStyle=function(I){if(this.data&&this.data.dismissButton&&I&&I.textPrimary!==void 0)return"--yt-button-color:"+_.Vp(I.textPrimary)+";"};
_.L.computeOverflowButtonStyle=function(I){if(this.data&&this.data.overflowButton&&I&&I.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Vp(I.textPrimary)+";--yt-spec-icon-active-other:"+_.Vp(I.textPrimary)+";"};
_.L.computeBackgroundStyle=function(I){if(I&&this.data){var y="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.xY((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&(y+='background-image:url("'+D+'");')}I.backgroundColor!==void 0&&(y+="background-color:"+_.Z7(I.backgroundColor)+";");return y}};
_.L.computeButton=function(){var I,y=Object.assign({},_.u((I=this.data)==null?void 0:I.showMoreButton,_.S1));if(this.modern&&y){y.style="STYLE_MONO_OUTLINE";var D;if(I=(D=this.currentColorPalette)==null?void 0:D.textPrimary)y.colorData={basicColorPaletteData:{foregroundTitleColor:I,borderColor:I}}}return y};
_.L.shouldShowBottomButton=function(I,y){return!(I==null?0:I.header)&&!(I==null||!I.primaryButton)&&y<3};
_.L.checkExpanded=function(I){this.isExpanded=I&&I.content?this.hiddenVideos.length===0:!0};
_.L.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.L.getLogoHeight=function(I){return this.logoWithPadding(I)?"26":"20"};
_.L.getLogoImageId=function(I){return this.logoWithPadding(I)?"logo-image-with-padding":"logo-image"};
_.L.computeHasSectionHeader=function(I){return!!I.header};
_.L.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var I;if((I=this.data.primaryButton)==null?0:I.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 y;((y=this.data.dismissButton)==null?0:y.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var D,F;((D=this.data)==null?0:(F=D.primaryButton)==null?0:F.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.L.setVisibleVideos=function(I){if(this.data&&this.data.content)if(this.data.content.length){var y=this.data.content.length;this.data.header?I?(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.slimItemsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow),y)):(this.visibleVideos=this.data.content.slice(0,Math.min(y,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(y,this.elementsPerRow-1),y))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.L.setHasMovieRenderer=function(){var I;if((I=this.data)!=null&&I.content){var y;this.hasMovieRenderer=!!_.u((y=this.data)==null?void 0:y.content[0],_.MMc)}else this.hasMovieRenderer=!1};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
_.L.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var I=_.J(this.hiddenMediaRenderers),y=I.next();!y.done;y=I.next())y.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(I=_.XB(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&I.focus()}};
_.L.updateTitleSpec=function(){var I;(I=this.data)!=null&&I.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.L.logoWithPadding=function(I){var y,D,F;return(I=(y=this.getCurrentLogo(I,this.isDarkTheme))==null?void 0:(D=y.thumbnails)==null?void 0:(F=D[0])==null?void 0:F.height)&&I%31===0?!0:!1};
_.L.onUpdateElementsPerRowAction=function(I,y,D){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I);D&&this.slimItemsPerRow!==D&&(this.slimItemsPerRow=D)};
$2.prototype.slimItemsPerRowChanged=$2.prototype.slimItemsPerRowChanged;$2.prototype.elementsPerRowChanged=$2.prototype.elementsPerRowChanged;$2.prototype.dataChanged=$2.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],$2.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],$2.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],$2.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$2.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],$2.prototype,"currentColorPalette",void 0);_.W([_.M(),_.A("design:type",Array)],$2.prototype,"visibleVideos",void 0);_.W([_.M(),_.A("design:type",Array)],$2.prototype,"hiddenVideos",void 0);
_.W([_.M(),_.A("design:type",Object)],$2.prototype,"primaryButton",void 0);_.W([_.M({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],$2.prototype,"elementsPerRow",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],$2.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],$2.prototype,"isExpanded",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],$2.prototype,"largeTitle",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],$2.prototype,"hasMovieRenderer",void 0);_.W([_.M(),_.A("design:type",Number)],$2.prototype,"slimItemsPerRow",void 0);_.W([_.M(),_.A("design:type",Boolean)],$2.prototype,"showLightVideoMetadata",void 0);_.W([_.M(),_.A("design:type",Boolean)],$2.prototype,"showDarkVideoMetadata",void 0);_.W([_.M(),_.A("design:type",Number)],$2.prototype,"videoMetadataColor",void 0);
_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],$2.prototype,"miniMode",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],$2.prototype,"isFirstFeedItem",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.A("design:type",Boolean)],$2.prototype,"hasSectionHeader",void 0);
_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],$2.prototype,"roundedContainer",void 0);_.W([_.cp("#visible-video-container ytd-rich-grid-media"),_.A("design:type",Array)],$2.prototype,"visibleMediaRenderers",void 0);_.W([_.cp("#hidden-video-container ytd-rich-grid-media"),_.A("design:type",Array)],$2.prototype,"hiddenMediaRenderers",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],$2.prototype,"modern",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$2.prototype,"dataChanged",null);_.W([_.ke("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$2.prototype,"elementsPerRowChanged",null);_.W([_.ke("slimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$2.prototype,"slimItemsPerRowChanged",null);
_.W([_.yd({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],$2);
_.a($2,"ytd-brand-video-shelf-renderer",function(){if(t3T!==void 0)return t3T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return t3T=I},{mode:1});var PTR;var bv=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(bv,_.k);_.L=bv.prototype;_.L.attached=function(){var I=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.onDarkModeToggledAction(I)};
_.L.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"}}}};
_.L.dataChanged=function(){this.requestElementsPerRow();var I,y;this.currentColorPalette=this.isDarkTheme?(I=this.data)==null?void 0:I.darkColorData:(y=this.data)==null?void 0:y.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.L.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.L.computeIsFirstFeedItem=function(I){return I};
_.L.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I);this.data&&(this.currentColorPalette=I?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(I),this.updateButtonPalette())};
_.L.shouldShowThumbnailInMetadata=function(I){return I<=1};
_.L.computeVideoMetadataColor=function(){if(this.data){var I;if((I=this.currentColorPalette)==null?0:I.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.L.computeTitleStyle=function(I){var y;if((y=this.data)!=null&&y.title&&I&&I.textPrimary!==void 0)return"color:"+_.Vp(I.textPrimary)+";"};
_.L.computeSubtitleStyle=function(I){var y;if((y=this.data)!=null&&y.subtitle&&I&&I.textSecondary!==void 0)return"color:"+_.Vp(I.textSecondary)+";"};
_.L.computeOverflowButtonStyle=function(I){if(this.data&&this.data.overflowButton&&I.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Vp(I.textPrimary)+";--yt-spec-icon-active-other:"+_.Vp(I.textPrimary)+";"};
_.L.computeBackgroundStyle=function(I){if(I&&this.data){var y="";I.backgroundColor!==void 0&&(y+="background-color:"+_.Z7(I.backgroundColor)+";");return y}};
_.L.computeHasOverflowButton=function(I){return!!I.overflowButton};
_.L.updateButtonPalette=function(){if(this.data){var I;if((I=this.data.primaryButton)==null?0:I.buttonRenderer){var y;if((y=this.currentColorPalette)==null?0:y.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)})}}};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
_.L.updateTitleSpec=function(){var I;(I=this.data)!=null&&I.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")};
_.L.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
bv.prototype.elementsPerRowChanged=bv.prototype.elementsPerRowChanged;bv.prototype.dataChanged=bv.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],bv.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],bv.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],bv.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],bv.prototype,"currentColorPalette",void 0);_.W([_.M(),_.A("design:type",Object)],bv.prototype,"primaryButton",void 0);
_.W([_.M({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],bv.prototype,"elementsPerRow",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],bv.prototype,"isDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],bv.prototype,"titleSize",void 0);_.W([_.M(),_.A("design:type",Number)],bv.prototype,"videoMetadataColor",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],bv.prototype,"miniMode",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],bv.prototype,"isFirstFeedItem",void 0);_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],bv.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Boolean)],bv.prototype,"hasOverflowButton",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"dataChanged",null);_.W([_.ke("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"elementsPerRowChanged",null);_.W([_.yd({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],bv);
_.a(bv,"ytd-brand-video-singleton-renderer",function(){if(PTR!==void 0)return PTR;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PTR=I},{mode:_.Qd("kevlar_poly_si_batch_j070")?1:2});var KYR;var Uha=_.d(function(I){var y=I.data;return _.t(_.UE,{data:function(){return y().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(y().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 y().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Eh"),jwa=_.d(function(I){var y=I.metadataRow;
var D=I.delimiter;return _.t(_.gZ,{each:function(){return y().textParts||[]},
keyBy:"INDEX"},function(F,R){return _.t(_.ni,null,_.t(_.jr,{text:F,noWrap:!0,userInput:!0}),_.t(rNR,{delimiter:D,max:function(){return y().textParts.length},
index:R}))})},"Fh"),rNR=_.d(function(I){var y=I.delimiter;
var D=I.max;var F=I.index;return _.t(_.U,{cond:function(){return(y==null?void 0:y())&&D()-1>F()},
then:function(){return _.t("span",null,y)}})},"Gh"),oqQ=_.d(function(I){var y=I.data;
I={};return _.t("yt-profile-page-header-information-view-model",{class:_.XH("profilePageHeaderInformationViewModelHost",(I.profilePageHeaderInformationViewModelMobile=!1,I))},_.t(_.U,{cond:function(){return y().onTap},
then:function(){return _.t(_.Yp,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.yz(y().onTap)}},_.t(_.aP,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:Uha}))},
else:function(){return _.t("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.t(_.aP,{data:function(){return y().thumbnail}},{profilePageHeaderThumbnailViewModel:Uha}))}}),_.t("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.t(_.U,{cond:function(){return y().onTap},
then:function(){return _.t(_.aP,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(D){var F=D.data;
return _.t(_.Yp,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.yz(F().onTap)}},_.t(_.jr,{text:function(){return F().title}}))}})},
else:function(){return _.t(_.aP,{data:function(){return y().title}},{profilePageHeaderTitleViewModel:function(D){var F=D.data;
return _.t(_.jr,{text:function(){return F().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.t(_.aP,{data:function(){return y().metadata}},{profilePageHeaderMetadataViewModel:function(D){var F=D.data;
return _.t(_.U,{cond:function(){return F().metadataRows},
then:function(R){return _.t("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.t(_.gZ,{each:R,keyBy:"INDEX"},function(O,w){return _.t(_.ni,null,_.t(jwa,{metadataRow:O,delimiter:" \u2022 "}),_.t(rNR,{delimiter:" \u2022 ",max:function(){return R().length},
index:w}))}))}})}})))},"Hh");
oqQ.idomCompat=!0;_.NK(oqQ,"yt-profile-page-header-information-view-model",{props:{data:_.om}});var HI=function(){return _.k.apply(this,arguments)||this};
_.E(HI,_.k);HI.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HI.prototype,"data",void 0);_.W([_.yd({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],HI);
_.a(HI,"ytd-effect-pivot-header-view-model",function(){if(KYR!==void 0)return KYR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return KYR=
I},{mode:1});var Nwa;var eN=function(){return _.k.apply(this,arguments)||this};
_.E(eN,_.k);eN.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],eN.prototype,"data",void 0);_.W([_.yd({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],eN);
_.a(eN,"ytd-source-pivot-header-renderer",function(){if(Nwa!==void 0)return Nwa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Nwa=I},{mode:1});var hE1;var xho;var lDR;var Tu=function(){var I=_.k.apply(this,arguments)||this;I.playing=!1;I.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.HH(I);I.active=!1;return I};
_.E(Tu,_.k);_.L=Tu.prototype;_.L.detached=function(){this.stop()};
_.L.play=function(){var I=this,y,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return I.active=!0,y=I.get("data.inlinePlaybackEndpoint.watchEndpoint"),D=y.videoId||I.data.videoId,F=y.startTimeSeconds||0,R=y.playerParams||null,_.l("kevlar_player_update_killswitch")?w.yield(I.playerEl.update({args:{video_id:D,startSeconds:F,player_params:R}}),2):(I.playerEl.loadVideoWithPlayerVars({video_id:D,startSeconds:F,player_params:R,autoplay:!0}),w.jumpTo(2));if(w.nextAddress!=4)return w.yield(I.playerEl.getPlayerPromise(),
4);O=w.yieldResult;O.unloadModule("annotations_module");O.addEventListener("onStateChange",function(v){I.onPlayerStateChange(v)});
_.Cj(w)})};
_.L.onPlayerStateChange=function(I){if(this.active)switch(this.playing=I===1,I){case 1:_.lj(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.lj(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.L.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.L.resize=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.playerEl.getPlayerPromise(),2);y=D.yieldResult;y.setSize(NaN,NaN);_.Cj(D)})};
_.W([_.M(),_.A("design:type",Object)],Tu.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Tu.prototype,"playing",void 0);_.W([_.M(),_.A("design:type",Object)],Tu.prototype,"playerId",void 0);_.W([_.a0("#player"),_.A("design:type",Object)],Tu.prototype,"playerEl",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Tu);
_.a(Tu,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(lDR!==void 0)return lDR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return lDR=I},{mode:1});var uzR;var qT1;var sS=function(){var I=_.k.apply(this,arguments)||this;I.width=0;return I};
_.E(sS,_.k);_.L=sS.prototype;_.L.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.MX(this,this.onEnded));this.mp4El.addEventListener("error",_.MX(this,this.onError))};
_.L.detached=function(){this.videoEl.removeEventListener("ended",_.MX(this,this.onEnded));this.mp4El.removeEventListener("error",_.MX(this,this.onError))};
_.L.play=function(){var I=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var y=this.videoEl.play();y?y.then(function(){I.handleVideoStartPlaying()}).catch(function(){_.lj(I.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.lj(this.hostElement,"yt-video-thumbnail-not-playing")};
_.L.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.L.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.L.dataChanged=function(){var I;if((I=this.data)==null?0:I.thumbnailPlaceholder)I=_.hf(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+I+")";this.stop();this.autoplay&&this.play()};
_.L.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.L.onEnded=function(){this.stop();_.lj(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.L.onError=function(){_.lj(this.hostElement,"yt-video-thumbnail-error")};
_.L.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.L.getVideoThumbnail=function(I){if(I&&I.length)return I[0]};
sS.prototype.dataChanged=sS.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],sS.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sS.prototype,"animatePlaceholderOnEntrance",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sS.prototype,"autoplay",void 0);_.W([_.M({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.A("design:type",Object)],sS.prototype,"videoThumbnail",void 0);
_.W([_.M(),_.A("design:type",Boolean)],sS.prototype,"loop",void 0);_.W([_.M(),_.A("design:type",Boolean)],sS.prototype,"isVideoPlaying",void 0);_.W([_.M(),_.A("design:type",Object)],sS.prototype,"width",void 0);_.W([_.a0("#mp4"),_.A("design:type",HTMLElement)],sS.prototype,"mp4El",void 0);_.W([_.a0("#placeholder"),_.A("design:type",HTMLElement)],sS.prototype,"placeholderEl",void 0);_.W([_.a0("#video"),_.A("design:type",HTMLVideoElement)],sS.prototype,"videoEl",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sS.prototype,"dataChanged",null);_.W([_.I6({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],sS);
_.a(sS,"yt-video-as-thumbnail-details",function(){if(qT1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;uzR===void 0&&(uzR=document.createElement("template"));var F=uzR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);qT1=I}I=qT1;return I},{mode:2});var Vv=function(){var I=_.k.apply(this,arguments)||this;I.disableGridStateAware=!1;I.animationEnabled=_.l("enable_web_ketchup_hero_animation");I.transitioningOut=!1;I.narrow=!1;I.narrower=!1;I.isCarouselInFeed=!1;I.videoTimeoutJobId=0;I.panelTimeoutJobId=0;I.panelTimeoutJobStartMs=0;I.actionMap={"yt-window-resized":"onWindowResized"};return I};
_.E(Vv,_.k);_.L=Vv.prototype;_.L.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.L.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var I;this.player&&((I=this.data)==null?0:I.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.L.attached=function(){this.onWindowResized()};
_.L.detached=function(){this.clearTimeouts()};
_.L.onWindowResized=function(){this.updateSize()};
_.L.computePanelLayout=function(I){return I&&I.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.L.playVideo=function(){var I;this.video&&((I=this.data)==null?0:I.videoThumbnail)&&this.video.play();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.play()};
_.L.stopVideo=function(){var I;this.video&&((I=this.data)==null?0:I.videoThumbnail)&&this.video.stop();var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.stop()};
_.L.transitionOut=function(){var I=this;this.transitioningOut=!0;return new Promise(function(y){I.player&&(I.player.playing=!1);var D=_.XB(I.hostElement).querySelector("#action-button");if(D){var F=function(){D.removeEventListener("animationend",F);_.w2.cancelJob(R);y();I.transitioningOut=!1};
var R=_.y9(_.w2,F,1E3);D.addEventListener("animationend",F)}else y(),I.transitioningOut=!1})};
_.L.computeMetadataOrder=function(I){return I&&I.metadataOrder&&I.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?I.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.L.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.L.computeAvatarSize=function(I){return I&&I.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.L.onContentClick=function(I){if(!_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString()])){var y;if((y=this.data)==null?0:y.navigationEndpoint){var D;this.componentBehavior.resolveCommand((D=this.data)==null?void 0:D.navigationEndpoint)}}};
_.L.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.L.setBackgroundImage=function(I){if(I=this.getBackgroundImageUrl(I))_.XB(this.hostElement).querySelector("#hero").style.backgroundImage="url("+I+")"};
_.L.setScrimLayer=function(I){var y=this.getScrimLayerColorStops(I);I=((I==null?void 0:I.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(I=180);_.Pi("HTML_DIR")==="rtl"&&(I=-I);y&&(_.XB(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+I+"deg, "+y+")")};
_.L.isNarrower=function(){return this.hostElement.clientWidth<Vv.NARROW_VERSION_SIZE};
_.L.getScrimLayerColorStops=function(){var I,y=(I=this.data)==null?void 0:I.scrimColorValues;if(!y)return null;if(y.length===1)return I=_.Z7(y[0]),I+" 0%, "+I+" 100%";if(y.length===3){var D=[0,72,98];return y.map(function(F,R){return _.Z7(F)+" "+D[R]+"%"}).join(",")}return null};
_.L.getBackgroundImageUrl=function(I){return I&&I.largeFormFactorBackgroundThumbnail?_.hf((I.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||I.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.L.onPlaying=function(){this.startVideoTimeout()};
_.L.onEnded=function(){this.rotate()};
_.L.startPanelTimeout=function(){var I=this;if(!this.panelTimeoutJobId){var y=this.get("data.minPanelDisplayDurationMs");y&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.y9(_.w2,function(){I.rotate()},y))}};
_.L.startVideoTimeout=function(){var I=this;if(!this.videoTimeoutJobId){_.w2.cancelJob(this.panelTimeoutJobId);var y=Date.now()-this.panelTimeoutJobStartMs;y=Math.max(0,this.get("data.minPanelDisplayDurationMs")-y);y=Math.max(this.get("data.minVideoPlayDurationMs")||0,y);this.videoTimeoutJobId=_.y9(_.w2,function(){I.rotate()},y)}};
_.L.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.w2.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.w2.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.L.rotate=function(){this.clearTimeouts();_.lj(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.mD.Object.defineProperties(Vv.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.XB(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.XB(this.hostElement).querySelector("#video")}}});
_.mD.Object.defineProperties(Vv,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Vv.prototype.onEnded=Vv.prototype.onEnded;Vv.prototype.onPlaying=Vv.prototype.onPlaying;Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.W([_.Q(_.tl),_.A("design:type",Object)],Vv.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Vv.prototype,"componentBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Vv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Q(_.PRo),_.A("design:type",Object)],Vv.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"disableGridStateAware",void 0);_.W([_.M(),_.A("design:type",Object)],Vv.prototype,"data",void 0);_.W([_.M({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.A("design:type",String)],Vv.prototype,"panelLayout",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"animationEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"transitioningOut",void 0);
_.W([_.M({computed:"computeMetadataOrder(data)"}),_.A("design:type",Boolean)],Vv.prototype,"metadataOrder",void 0);_.W([_.M({computed:"computeByline(data)"}),_.A("design:type",Object)],Vv.prototype,"byline",void 0);_.W([_.M({computed:"computeAvatarSize(data)"}),_.A("design:type",Number)],Vv.prototype,"avatarSize",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"narrow",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"narrower",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"layoutStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vv.prototype,"isCarouselInFeed",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vv.prototype,"dataChanged",null);_.W([_.z4("yt-default-promo-panel-renderer-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vv.prototype,"onPlaying",null);
_.W([_.z4("yt-default-promo-panel-renderer-ended"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vv.prototype,"onEnded",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Vv);
_.a(Vv,"ytd-default-promo-panel-renderer",function(){if(xho!==void 0)return xho;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xho=I},{mode:1});_.bO("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var ZK=function(){var I=_.k.apply(this,arguments)||this;I.narrower=!1;I.dotMenuVisible=!1;I.paginationThumbnailsVisible=!1;I.active=!0;I.disableGridStateAware=!1;I.actionMap={"yt-window-resized":"onWindowResized"};return I};
_.E(ZK,_.k);_.L=ZK.prototype;_.L.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]]"}}}}}};
_.L.attached=function(){document.addEventListener("yt-page-type-changed",_.MX(this,this.onPageTypeChange));this.currentPageSubtype=_.OpS(location.pathname);this.onWindowResized()};
_.L.detached=function(){this.jobId&&_.w2.cancelJob(this.jobId);this.updateSizeJobId&&_.w2.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.MX(this,this.onPageTypeChange))};
_.L.onPageTypeChange=function(I){this.active=I.detail.newPageSubtype===this.currentPageSubtype};
_.L.onWindowResized=function(){this.updateSize()};
_.L.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.L.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.L.setCarouselItem=function(I){I>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.w2.cancelJob(this.jobId);var y=this.getCurrentPanelElement();y&&y.stopVideo();this.currentItemIndex=I%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(y||(y=this.getCurrentPanelElement()),y.playVideo()):this.startRotationJob()};
_.L.scrollThumbnails=function(I){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var y=this.getCurrentPaginationElement();if(y){var D=_.XB(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?D.style.transform="translateX(0)":(y=y.offsetWidth+8,D.style.transform="translateX(-"+y*(I-Math.ceil(Math.floor(this.overlay.offsetWidth/y)/2)+1)+"px)")}}};
_.L.onDataChanged=function(){var I=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.k1(_.w2,function(){var y;(y=I.getCurrentPanelElement())==null||y.updateSize();I.updateSize()}))};
_.L.getCurrentPanelElement=function(){return _.XB(_.XB(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.L.getCurrentPaginationElement=function(){return _.XB(_.XB(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.L.getNavigationClass=function(I,y){return I===y?"selected":""};
_.L.getNavigationDurationStyle=function(I){return"animation-duration:"+(this.get("data.carouselItems."+I+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.L.onNavigationTap=function(I){var y=this,D=I.model.index;D!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){y.setCarouselItem(D)}),this.autorotateActive=!1)};
_.L.onVideoThumbnailEnded=function(){var I=this;if(this.shouldRotate()){var y=this.getCurrentPaginationElement();y&&(y.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){y.classList.remove("finished");I.setNextCarouselItem()}))}};
_.L.onVideoThumbnailError=function(){this.startRotationJob()};
_.L.onVideoNotPlaying=function(){this.startRotationJob()};
_.L.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.L.startRotationJob=function(){var I=this;_.w2.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.w2.addLowPriorityJob(function(){I.getCurrentPanelElement().transitionOut().then(function(){I.setNextCarouselItem()})},this.rotationTimeout))};
_.L.computeDotMenuVisible=function(I,y){return!!I&&!!I.carouselItems&&I.carouselItems.length>1&&!I.paginationThumbnails||!!y};
_.L.computePaginationThumbnailsVisible=function(I,y){var D,F;return((F=I==null?void 0:(D=I.paginationThumbnails)==null?void 0:D.length)!=null?F:0)>1&&!y};
_.L.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.L.computePaginatorAlignment=function(I){return(I==null?void 0:I.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.L.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.L.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.L.isNarrower=function(I){return(I!=null?I:0)<Vv.NARROW_VERSION_SIZE};
ZK.prototype.activeChanged=ZK.prototype.activeChanged;ZK.prototype.onVideoNotPlaying=ZK.prototype.onVideoNotPlaying;ZK.prototype.onVideoThumbnailError=ZK.prototype.onVideoThumbnailError;ZK.prototype.onVideoThumbnailEnded=ZK.prototype.onVideoThumbnailEnded;ZK.prototype.onDataChanged=ZK.prototype.onDataChanged;_.W([_.Q(_.tl),_.A("design:type",Object)],ZK.prototype,"ytdGridStateAwareBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],ZK.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ZK.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],ZK.prototype,"currentItem",void 0);
_.W([_.M(),_.A("design:type",Number)],ZK.prototype,"currentItemIndex",void 0);_.W([_.M(),_.A("design:type",Number)],ZK.prototype,"rotationTimeout",void 0);_.W([_.M(),_.A("design:type",Number)],ZK.prototype,"loopCount",void 0);_.W([_.M({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.A("design:type",String)],ZK.prototype,"paginatorAlignment",void 0);_.W([_.M(),_.A("design:type",Number)],ZK.prototype,"jobId",void 0);
_.W([_.M(),_.A("design:type",Number)],ZK.prototype,"updateSizeJobId",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],ZK.prototype,"isCarouselInFeed",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ZK.prototype,"narrower",void 0);_.W([_.M({computed:"computeDotMenuVisible(data, narrower)"}),_.A("design:type",Object)],ZK.prototype,"dotMenuVisible",void 0);
_.W([_.M({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.A("design:type",Object)],ZK.prototype,"paginationThumbnailsVisible",void 0);_.W([_.M({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.A("design:type",String)],ZK.prototype,"layoutType",void 0);_.W([_.M({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],ZK.prototype,"autorotateActive",void 0);_.W([_.M(),_.A("design:type",Object)],ZK.prototype,"active",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ZK.prototype,"disableGridStateAware",void 0);_.W([_.a0("#overlay"),_.A("design:type",HTMLElement)],ZK.prototype,"overlay",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZK.prototype,"onDataChanged",null);
_.W([_.z4("yt-video-thumbnail-ended"),_.z4("yt-default-promo-panel-renderer-rotate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZK.prototype,"onVideoThumbnailEnded",null);_.W([_.z4("yt-video-thumbnail-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZK.prototype,"onVideoThumbnailError",null);
_.W([_.z4("yt-video-thumbnail-not-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZK.prototype,"onVideoNotPlaying",null);_.W([_.Bp("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZK.prototype,"activeChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],ZK);
_.a(ZK,"ytd-carousel-item-renderer",function(){if(hE1!==void 0)return hE1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return hE1=I},{mode:2});var EqY;var GZR;var XD8;var Qw8;var IH=function(){var I=_.k.apply(this,arguments)||this;I.answerExpanded=!1;return I};
_.E(IH,_.k);IH.prototype.toggleAnswer_=function(I){var y=_.jv(I);y&&y.classList.contains("yt-simple-endpoint")||(I.preventDefault(),I.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
IH.prototype.toggleAnswer_=IH.prototype.toggleAnswer_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],IH.prototype,"answerExpanded",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],IH.prototype,"toggleAnswer_",null);
_.W([_.I6({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],IH);
_.a(IH,"yt-generic-faq-question-renderer",function(){if(Qw8===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;XD8===void 0&&(XD8=document.createElement("template"));var F=XD8;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Qw8=I}I=Qw8;return I},{mode:2});_.bO("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var y4=function(){return _.k.apply(this,arguments)||this};
_.E(y4,_.k);y4.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],y4.prototype,"data",void 0);_.W([_.I6({is:"yt-faq-section-renderer",disableElementRegistration:!0})],y4);
_.a(y4,"yt-faq-section-renderer",function(){if(GZR===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;EqY===void 0&&(EqY=document.createElement("template"));var F=EqY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GZR=I}I=GZR;return I},{mode:2});var YTg=_.d(function(I){var y=I.data;var D=function(){var F;return _.sP((F=y())==null?void 0:F.rendererContext)};
I={};return _.t("content-list-item-view-model",{el:_.K4(_.VM(function(){return y().rendererContext})),
class:_.XH("ytContentListItemViewModelHost",(I.ytContentListItemViewModelTappable=D,I)),role:function(){return D()?"listitem":void 0},
tabindex:function(){return D()?0:void 0}},_.t("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.t("div",{class:"ytContentListItemViewModelImageContainer"},_.t(_.U,{cond:function(){return y().image},
then:function(F){return _.t(_.UE,{data:F,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.t(_.aP,{data:function(){var F;
return(F=y())==null?void 0:F.avatar}},{avatarViewModel:_.LF})),_.t("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.t("div",{class:_.XH("ytContentListItemViewModelTitle",function(){a:{switch(y().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var F="ytContentListItemViewModelProminentTitle";
break a}F=void 0}return F})},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytContentListItemViewModelMetadata"},_.t(_.aP,{data:function(){return y().metadata}},{contentMetadataViewModel:function(F){return _.t(_.zR,{data:F.data,
layout:1})}})))),_.t("div",{class:"ytContentListItemViewModelActionButton"},_.t(_.aP,{data:function(){var F;
return(F=y())==null?void 0:F.actionButton}},{buttonViewModel:_.My,
toggleButtonViewModel:_.yJ})))},"Ih");var fDb=_.d(function(I){var y=I.data,D=function(){var R;return(R=y())==null?void 0:R.description},F=function(){var R;
return(R=y())==null?void 0:R.title};
return _.t("ytfc-youth-basic-section-header-view-model",{class:_.XH("ytfcYouthBasicSectionHeaderViewModelHost",I.className)},_.t("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.t(_.aP,{data:function(){var R;return(R=y())==null?void 0:R.avatar}},{avatarViewModel:_.LF}),_.t(_.U,{cond:function(){var R;
return _.OA((R=y())==null?void 0:R.themedImage)},
then:function(R){return _.t(_.UE,{data:R,alt:function(){var O,w;return(w=(O=F())==null?void 0:O.content)!=null?w:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.t("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.t(_.U,{cond:F,
then:function(){return _.t(_.jr,{text:F,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.t("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.t(_.aP,{data:function(){var R;
return(R=y())==null?void 0:R.bottomBadge}},{badgeViewModel:function(R){return _.t("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.t(_.q1,{data:R.data}))}}),_.t(_.U,{cond:D,
then:function(){return _.t(_.jr,{text:D,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Jh");var nqZ=_.d(function(I){var y=I.data;return _.t("ytfc-youth-section-body-view-model",{class:_.XH("ytfcYouthSectionBodyViewModelHost",I.className)},_.t(_.aP,{data:function(){var D;return(D=y())==null?void 0:D.topContent}},{avatarStackViewModel:function(D){return _.t(_.wm,{data:D.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.t(_.jr,{text:function(){var D;
return(D=y())==null?void 0:D.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Kh");var pDa=_.d(function(I){var y=_.J(_.$M(!1,void 0,"SrK51e")),D=y.next().value,F=y.next().value,R=function(){return I.data().inlineExpansionEntityKey},O=_.zj(oIR,R),w=function(){if(I.isSelected!==void 0)return I.isSelected();
if(R()){var P;return(P=O())==null?void 0:P.expanded}return D()};
y={};var v={};return _.t("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.YY(function(){I.isSelected!==void 0||R()||F(!D())})},_.t("div",{class:"ytInlineExpanderViewModelHeader"},_.t(_.aP,{data:function(){return I.data().headerContent}},{youthBasicSectionHeaderViewModel:fDb}),_.t("div",{class:_.XH("ytInlineExpanderViewModelButton",(y.ytInlineExpanderViewModelButtonExpanded=w,y))},_.t(_.me,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:w(),accessibilityLabel:w()?_.zC("SHOW_LESS",void 0,"Show Less"):_.zC("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.t("div",{class:_.XH("ytInlineExpanderViewModelBody",(v.ytInlineExpanderViewModelBodyExpanded=w,v)),"aria-hidden":function(){return!w()}},_.t("div",{class:"ytInlineExpanderViewModelBodyContent"},_.t(_.aP,{data:function(){return I.data().bodyContent}},{youthSectionBodyViewModel:nqZ}))))},"Lh");var mhb=new _.uk("CONTENT_SECTION_VIEW_MODEL_TOKEN");var M3R=_.d(function(I){var y=function(){return I.data().background},D=function(){return I.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},F=function(){return I.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},R=_.nR().resolve(_.fR(mhb)),O={};
return _.t("yt-card-view-model",{el:_.K4(_.VM(function(){return I.data().rendererContext})),
class:_.XH("ytCardViewModelHost",I.className,(O.ytCardViewModelClickable=function(){return _.Tj(I.data().rendererContext)},O))},_.t(_.kZ,{contentId:function(){return I.data().contentId}},function(){var w={};
return _.t("div",{class:_.XH("ytCardViewModelCardViewModelInner",function(){var v;return qER(I.data().cardStyle,(v=I.isSelected)==null?void 0:v.call(I))},function(){if(I.isSelected===void 0){var v;
a:{switch((v=I.data().cardState)==null?void 0:v.selectionState){case "CARD_SELECTION_STATE_SELECTED":v="ytCardViewModelSelected";break a}v=void 0}return v}})},_.t(_.aP,{data:y},{cinematicContainerViewModel:function(v){return _.t(_.wHT,{data:v.data})}}),_.t("div",{class:"ytCardViewModelContentWrapper"},_.t(_.U,{cond:function(){return!D()},
then:function(){var v={},P={};return _.t("div",{class:"ytCardViewModelTopContentContainer"},_.t("div",{class:_.XH("ytCardViewModelTopContent",(v.ytCardViewModelInnerPadding=function(){return!I.data().disableTopContentPadding&&I.data().topContent},v))},_.t(_.aP,{data:function(){return I.data().topContent}},{contentListItemViewModel:function(K){return _.t(YTg,{data:K.data})},
basicContentViewModel:_.Sc,linearLayoutViewModel:_.Kq})),_.t("div",{class:_.XH("ytCardViewModelInlineTrailingAction",(P.ytCardViewModelInlineCenterTrailingAction=F,P.ytCardViewModelInlineTrailingActionMargin=function(){return I.data().trailingAction},P))},_.t(_.aP,{data:function(){return I.data().trailingAction}},{buttonViewModel:function(K){return _.t(_.My,{data:K.data})}})))}}),_.t("div",{class:_.XH((w.ytCardViewModelInnerPadding=function(){return!I.data().disableBodyContentPadding&&I.data().bodyContent},
w))},_.t(_.aP,{data:function(){return I.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.$wa,
contentListItemViewModel:YTg,descriptionPreviewViewModel:_.Co,inlineExpanderViewModel:function(v){return _.t(pDa,{data:v.data,isSelected:I.isSelected})},
linearLayoutViewModel:_.Kq,listItemViewModel:_.P3},R&&{contentSectionViewModel:R})))),_.t(_.U,{cond:function(){return D()},
then:function(){return _.t("div",{class:"ytCardViewModelOverlayTrailingAction"},_.t(_.aP,{data:function(){return I.data().trailingAction}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data})}}))}}))}))},"Mh");_.NK(M3R,"yt-card-view-model",{props:{data:_.om,className:_.om,isSelected:_.om}});var zEo;var kZa;var dhC=function(){return _.k.apply(this,arguments)||this};
_.E(dhC,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],dhC.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],dhC.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],dhC);
_.a(dhC,"ytd-channel-history-renderer",function(){if(kZa!==void 0)return kZa;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kZa=I},{mode:1});var aDg;var cNo=function(){return _.k.apply(this,arguments)||this};
_.E(cNo,_.k);_.W([_.M(),_.A("design:type",Object)],cNo.prototype,"data",void 0);_.W([_.yd({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],cNo);
_.a(cNo,"ytd-feature-enablement-info-renderer",function(){if(aDg!==void 0)return aDg;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return aDg=I},{mode:1});var WYY;var CTb;var Dr=function(){var I=_.k.apply(this,arguments)||this;I.textBoxMaxLength=_.l("enable_tvod_campaign_code_integration")?15:12;return I};
_.E(Dr,_.k);_.L=Dr.prototype;_.L.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.L.onSubmit=function(){var I=this.data.serviceEndpoint,y=_.u(I,_.P_);y&&I&&(y.couponCode=this.userInput,_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}}))};
_.L.validate=function(){var I=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=I&&!this.data.errorMessage;this.showErrorMessage=I&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.l("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.L.computeStyle=function(I){return I};
_.L.computeShowValidationBelowInput=function(I){return I!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.L.updateUserInputFromBinding=function(I){this.userInput=I.currentTarget.value};
_.L.updateShowErrorMessageFromBinding=function(I){this.showErrorMessage=I.detail.value};
_.mD.Object.defineProperties(Dr.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Dr.prototype.dataChanged=Dr.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dr.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],Dr.prototype,"userInput",void 0);_.W([_.M(),_.A("design:type",Boolean)],Dr.prototype,"disableApplyButton",void 0);_.W([_.M(),_.A("design:type",Boolean)],Dr.prototype,"hideApplyButton",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Dr.prototype,"hideErrorMessage",void 0);_.W([_.M(),_.A("design:type",Boolean)],Dr.prototype,"showTick",void 0);_.W([_.M(),_.A("design:type",Boolean)],Dr.prototype,"showErrorMessage",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],Dr.prototype,"couponStyle",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.A("design:type",Boolean)],Dr.prototype,"showValidationBelowInput",void 0);_.W([_.M(),_.A("design:type",Object)],Dr.prototype,"textBoxMaxLength",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dr.prototype,"dataChanged",null);
_.W([_.Y("showTick","showErrorMessage","userInput"),_.A("design:type",String),_.A("design:paramtypes",[])],Dr.prototype,"validationState",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Dr);
_.a(Dr,"ytd-ypc-coupon-renderer",function(){if(CTb!==void 0)return CTb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return CTb=I},{mode:1});var Fn=function(){return _.k.apply(this,arguments)||this};
_.E(Fn,_.k);Fn.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"}}}};
Fn.prototype.computeStyle=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Fn.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],Fn.prototype,"buttonStyle",void 0);_.W([_.yd({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Fn);
_.a(Fn,"ytd-flow-bottom-bar-renderer",function(){if(WYY!==void 0)return WYY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return WYY=I},{mode:1});var BwT;var irg;var RH=function(){return _.k.apply(this,arguments)||this};
_.E(RH,_.k);RH.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RH.prototype.focus=function(I){this.title&&_.qw(this.title,I)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RH.prototype,"data",void 0);_.W([_.a0("#title"),_.A("design:type",HTMLElement)],RH.prototype,"title",void 0);_.W([_.yd({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],RH);
_.a(RH,"ytd-flow-top-bar-renderer",function(){if(irg!==void 0)return irg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return irg=I},{mode:1});var ANT;var $hY;var brZ;var OQ=function(){return _.k.apply(this,arguments)||this};
_.E(OQ,_.k);OQ.prototype.freeTextValueChanged=function(){_.uj(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
OQ.prototype.updateFreeTextValueFromBinding=function(I){this.freeTextValue=I.detail.value};
_.mD.Object.defineProperties(OQ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(y=(I=this.data)==null?void 0:I.responseMaxLength)!=null?y:500,F;return((F=this.freeTextValue)!=null?F:"").length>=D?"maxed-out":""}}});
OQ.prototype.freeTextValueChanged=OQ.prototype.freeTextValueChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OQ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],OQ.prototype,"freeTextValue",void 0);_.W([_.a0("#user-input"),_.A("design:type",HTMLTextAreaElement)],OQ.prototype,"input",void 0);
_.W([_.Y("freeTextValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],OQ.prototype,"characterLimitClass",null);_.W([_.ke("freeTextValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OQ.prototype,"freeTextValueChanged",null);_.W([_.I6({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],OQ);
_.a(OQ,"yt-free-text-input-flow-step-renderer",function(){if(brZ===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;$hY===void 0&&($hY=document.createElement("template"));var F=$hY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);brZ=I}I=brZ;return I},{mode:2});var Ls=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return I};
_.E(Ls,_.k);Ls.prototype.handleFreeTextFlowStepInputChanged=function(I){_.uj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:I}}])};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Ls.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ls.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Ls);
_.a(Ls,"ytd-free-text-input-flow-step-renderer",function(){if(ANT!==void 0)return ANT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ANT=I},{mode:1});var Hra;var eE8;var Tw8;var sw8=function(){return _.k.apply(this,arguments)||this};
_.E(sw8,_.k);_.W([_.M(),_.A("design:type",Object)],sw8.prototype,"data",void 0);_.W([_.I6({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],sw8);
_.a(sw8,"yt-survey-answer-card-renderer",function(){if(Tw8===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;eE8===void 0&&(eE8=document.createElement("template"));var F=eE8;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Tw8=I}I=Tw8;return I},{mode:2});var V3a;var Zr1;var JQ=function(){return _.k.apply(this,arguments)||this};
_.E(JQ,_.k);_.L=JQ.prototype;_.L.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.L.selectedItemChanged=function(I){_.uj(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[I.feedbackToken||""]}])};
_.L.surveyAnswerCardRendererClicked=function(I){if(I.target&&_.u(I.model.item,Kbb)){var y=I.target;I=_.u(I.model.item,Kbb);I.onTapCommand?_.GC(y,[I.onTapCommand],y):this.data.onTapCommand&&_.GC(y,[this.data.onTapCommand],y);this.selectedItemChanged(I)}};
_.L.checkIsCancellationStyle=function(I){return I==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.L.updateSelectedItemFromBinding=function(I){this.selectedItem=I.detail.value};
JQ.prototype.onSelectedItemChanged=JQ.prototype.onSelectedItemChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],JQ.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],JQ.prototype,"selectedItem",void 0);_.W([_.M({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],JQ.prototype,"isCancellationStyle",void 0);
_.W([_.ke("selectedItem"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JQ.prototype,"onSelectedItemChanged",null);_.W([_.I6({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],JQ);
_.a(JQ,"yt-survey-flow-step-renderer",function(){if(Zr1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;V3a===void 0&&(V3a=document.createElement("template"));var F=V3a;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Zr1=I}I=Zr1;return I},{mode:2});var w3=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return I};
_.E(w3,_.k);w3.prototype.handleSurveyFlowStepOptionChanged=function(I){this.ytdReduxBehavior.dispatch(_.Ec({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:I}));_.uj(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:I}}])};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],w3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],w3.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],w3.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],w3);
_.a(w3,"ytd-survey-flow-step-renderer",function(){if(Hra!==void 0)return Hra;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Hra=I},{mode:1});var gqC;var I9y;var y8b=function(){return _.k.apply(this,arguments)||this};
_.E(y8b,_.k);_.W([_.M(),_.A("design:type",Object)],y8b.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],y8b);
_.a(y8b,"ytd-metadata-line-renderer",function(){if(I9y!==void 0)return I9y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return I9y=I},{mode:1});var vX=function(){return _.k.apply(this,arguments)||this};
_.E(vX,_.k);vX.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vX.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],vX.prototype,"isMasthead",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],vX);
_.a(vX,"ytd-media-product-renderer",function(){if(gqC!==void 0)return gqC;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return gqC=I},{mode:1});var D6R;var Ss=function(){return _.k.apply(this,arguments)||this};
_.E(Ss,_.k);Ss.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Ss.prototype.onBillboardImageLoaded=function(){_.lj(this.hostElement,"yt-refit")};
Ss.prototype.onBillboardImageLoaded=Ss.prototype.onBillboardImageLoaded;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ss.prototype,"data",void 0);_.W([_.a0("#billboardImage"),_.A("design:type",Object)],Ss.prototype,"billboardImage",void 0);_.W([_.z4("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ss.prototype,"onBillboardImageLoaded",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Ss);
_.a(Ss,"ytd-billboard-masthead-renderer",function(){if(D6R!==void 0)return D6R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return D6R=I},{mode:1});var FpY;var tQ=function(){var I=_.k.apply(this,arguments)||this;I.smallSize=!1;return I};
_.E(tQ,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],tQ.prototype,"ytComponentBehaviorType",void 0);_.W([_.M(),_.A("design:type",Object)],tQ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],tQ.prototype,"smallSize",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],tQ);
_.a(tQ,"ytd-bullet-formatted-string",function(){if(FpY!==void 0)return FpY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FpY=I},{mode:1});var RKb;var PX=function(){return _.k.apply(this,arguments)||this};
_.E(PX,_.k);PX.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PX.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],PX);
_.a(PX,"ytd-offer-detail-renderer",function(){if(RKb!==void 0)return RKb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return RKb=I},{mode:1});var OIa;var Ks=function(){return _.k.apply(this,arguments)||this};
_.E(Ks,_.k);Ks.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ks.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Ks);
_.a(Ks,"ytd-offer-detail-step-renderer",function(){if(OIa!==void 0)return OIa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return OIa=I},{mode:1});var Lpa;var UQ=function(){var I=_.k.apply(this,arguments)||this;I.isInOfferModule=!1;return I};
_.E(UQ,_.k);_.L=UQ.prototype;_.L.computeHasEndpoint=function(){var I;return!((I=this.data)==null||!I.onClickCommand)};
_.L.dataChanged=function(){var I;if((I=this.data)==null?0:I.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")};
_.L.detached=function(){var I;if((I=this.data)==null?0:I.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.L.handleClickEvent=function(){var I;if((I=this.data)==null?0:I.onClickCommand){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand)}};
_.L.onContentKeyDown=function(I){I.key==="Enter"?this.handleClickEvent(I):I.key===" "&&I.preventDefault()};
_.L.onContentKeyUp=function(I){I.key===" "&&this.handleClickEvent(I)};
UQ.prototype.dataChanged=UQ.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],UQ.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UQ.prototype,"data",void 0);_.W([_.M({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],UQ.prototype,"hasEndpoint",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],UQ.prototype,"isInOfferModule",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UQ.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],UQ);
_.a(UQ,"ytd-channel-masthead-renderer",function(){if(Lpa!==void 0)return Lpa;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Lpa=I},{mode:1});var J8a;var r3=function(){var I=_.k.apply(this,arguments)||this;I.thumbnailObjectFit="CONTAIN";I.thumbnailObjectPosition="LEFT";I.isExpanded=!1;return I};
_.E(r3,_.k);_.L=r3.prototype;_.L.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.L.dataChanged=function(){this.resetStates()};
_.L.computeisTapOnOfferInfoContainerEnabled=function(){var I;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.L.onExpandBtnClick=function(){var I,y=_.u((I=this.data)==null?void 0:I.showMoreButtonRenderer,rb8);y&&_.Cb(_.W4(),y.trackingParams);this.isExpanded=!this.isExpanded};
_.L.onOfferInfoClick=function(I){this.isTapOnOfferInfoContainerEnabled&&(_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.rP(_.r4(I)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.L.onBottomBarClick=function(){this.executeTapCommand()};
_.L.executeTapCommand=function(){var I,y=(I=this.data)==null?void 0:I.tapCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.L.resetStates=function(){this.isExpanded=!1};
_.mD.Object.defineProperties(r3.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var I=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),y,D,F;return((y=this.data)==null?void 0:y.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&I&&!!((D=this.data)==null?0:(F=D.benefits)==null?0:F.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((y=_.u((I=this.data)==null?void 0:I.showMoreButtonRenderer,rb8))==null?void 0:y.showMoreButtonTitle)||((D=this.data)==null?void 0:D.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((y=_.u((I=this.data)==null?void 0:I.showMoreButtonRenderer,rb8))==null?void 0:y.showLessButtonTitle)||((D=this.data)==null?void 0:D.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var I;return(I=this.showLessButtonTitle)!=null?I:""}var y;return(y=this.showMoreButtonTitle)!=null?y:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((y=this.data)==null?0:y.footerTitle)||((D=this.data)==null?0:D.footerSubtitle))}}});
r3.prototype.dataChanged=r3.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],r3.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",String)],r3.prototype,"thumbnailObjectFit",void 0);
_.W([_.M(),_.A("design:type",String)],r3.prototype,"thumbnailObjectPosition",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.A("design:type",Boolean)],r3.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.W([_.M(),_.A("design:type",Object)],r3.prototype,"isExpanded",void 0);_.W([_.M(),_.A("design:type",Object)],r3.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.footerIcon)"}),_.A("design:type",String)],r3.prototype,"icon",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r3.prototype,"dataChanged",null);_.W([_.Y("data.thumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],r3.prototype,"hasThumbnail",null);_.W([_.Y("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],r3.prototype,"enableExpandButton",null);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],r3.prototype,"enableOfferContentIcon",null);_.W([_.Y("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],r3.prototype,"showMoreButtonTitle",null);_.W([_.Y("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],r3.prototype,"showLessButtonTitle",null);
_.W([_.Y("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],r3.prototype,"expandedBtnText",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],r3.prototype,"enableBottomBar",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],r3);
_.a(r3,"ytd-offer-card-renderer",function(){if(J8a!==void 0)return J8a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return J8a=I},{mode:1});var wLg;var js=function(){return _.k.apply(this,arguments)||this};
_.E(js,_.k);js.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"}}}};
js.prototype.onClick=function(I){if(!_.UP(I.composedPath()||[],this.hostElement,["A".toString()])){var y,D;if((I=(D=_.u((y=this.data)==null?void 0:y.actionButton,_.S1))==null?void 0:D.command)&&!this.ytComponentBehavior.resolveCommand(I)){var F;(F=_.W4())==null||F.clickCommand(I);_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})}}};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],js.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],js.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],js);
_.a(js,"ytd-offer-content-renderer",function(){if(wLg!==void 0)return wLg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return wLg=I},{mode:1});var vOy;var oH=function(){return _.k.apply(this,arguments)||this};
_.E(oH,_.k);oH.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.mD.Object.defineProperties(oH.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.title)||!((y=this.data)==null||!y.description)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oH.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],oH.prototype,"hasHeaderData",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],oH);
_.a(oH,"ytd-offer-section-renderer",function(){if(vOy!==void 0)return vOy;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return vOy=I},{mode:1});var So1;var Nb=function(){return _.k.apply(this,arguments)||this};
_.E(Nb,_.k);
Nb.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nb.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Nb);
_.a(Nb,"ytd-offer-selection-step-renderer",function(){if(So1!==void 0)return So1;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return So1=I},{mode:1});var tmZ;var hQ=function(){return _.k.apply(this,arguments)||this};
_.E(hQ,_.k);hQ.prototype.computeStyle=function(I){return I};
hQ.prototype.computeImageWidth=function(I){return I==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.W([_.M({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],hQ.prototype,"containerStyle",void 0);_.W([_.M({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.A("design:type",String)],hQ.prototype,"imageWidth",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hQ.prototype,"data",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],hQ);
_.a(hQ,"ytd-confirmation-masthead-renderer",function(){if(tmZ!==void 0)return tmZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return tmZ=I},{mode:1});var PYg;var xt=function(){return _.k.apply(this,arguments)||this};
_.E(xt,_.k);xt.prototype.computeStyle=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xt.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],xt.prototype,"containerStyle",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],xt);
_.a(xt,"ytd-purchase-complete-detail-renderer",function(){if(PYg!==void 0)return PYg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PYg=I},{mode:1});var Kpe;var lf=function(){var I=_.k.apply(this,arguments)||this;I.scriptsAppended=!1;return I};
_.E(lf,_.k);lf.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"}}}};
lf.prototype.onDataChanged=function(){var I=this.get("data.gtmId");I&&(_.V8(I,_.Pi("GL","")),this.setupConversionTracking())};
lf.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var I=document.createElement("noscript");I.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(I);this.scriptsAppended=!0}};
lf.prototype.onDataChanged=lf.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lf.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],lf.prototype,"scriptsAppended",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lf.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],lf);
_.a(lf,"ytd-purchase-complete-step-renderer",function(){if(Kpe!==void 0)return Kpe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Kpe=I},{mode:1});var U6T;var uf=function(){return _.k.apply(this,arguments)||this};
_.E(uf,_.k);uf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uf.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],uf);
_.a(uf,"ytd-ypc-transaction-error-message-renderer",function(){if(U6T!==void 0)return U6T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return U6T=I},{mode:1});var r8a;var jgY;var qb=function(){var I=_.k.apply(this,arguments)||this;I.handlePhoneVerificationSuccess=function(y){if(I.isValidPhoneVerificationCompletionMessageEvent(y)){var D;((D=I.data)==null?0:D.nextStepCommand)&&I.ytComponentBehavior.resolveCommand(I.data.nextStepCommand)}};
return I};
_.E(qb,_.k);qb.prototype.isValidPhoneVerificationCompletionMessageEvent=function(I){if(I.data!=="yt-phone-verification-complete")return!1;I=_.GP(I.origin);return I!==null&&I.includes("youtube.com")};
qb.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
qb.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],qb.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qb.prototype,"data",void 0);_.W([_.I6({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],qb);
_.a(qb,"yt-feature-enablement-soft-entry-renderer",function(){if(jgY===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;r8a===void 0&&(r8a=document.createElement("template"));var F=r8a;D.call(y,F.content.cloneNode(!0),I.content.firstChild);jgY=I}I=jgY;return I},{mode:1});var oOR;var Ngb;var hKG;var x6b;var l98=function(){return _.k.apply(this,arguments)||this};
_.E(l98,_.k);_.W([_.M(),_.A("design:type",Object)],l98.prototype,"data",void 0);_.W([_.I6({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],l98);
_.a(l98,"yt-benefits-item-renderer",function(){if(x6b===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;hKG===void 0&&(hKG=document.createElement("template"));var F=hKG;D.call(y,F.content.cloneNode(!0),I.content.firstChild);x6b=I}I=x6b;return I},{mode:2});var u3R;var qoy;var EQ=function(){return _.k.apply(this,arguments)||this};
_.E(EQ,_.k);EQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
EQ.prototype.computeisWithoutPadding=function(){var I;return((I=this.data)==null?void 0:I.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],EQ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.A("design:type",Boolean)],EQ.prototype,"isWithoutPadding",void 0);_.W([_.I6({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],EQ);
_.a(EQ,"yt-benefits-section-renderer",function(){if(qoy===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;u3R===void 0&&(u3R=document.createElement("template"));var F=u3R;D.call(y,F.content.cloneNode(!0),I.content.firstChild);qoy=I}I=qoy;return I},{mode:2});var Gw=function(){return _.k.apply(this,arguments)||this};
_.E(Gw,_.k);Gw.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Gw.prototype.computeisUsingLargeWidth=function(){var I;return((I=this.data)==null?void 0:I.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gw.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.A("design:type",Boolean)],Gw.prototype,"isUsingLargeWidth",void 0);_.W([_.I6({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Gw);
_.a(Gw,"yt-benefits-flow-step-renderer",function(){if(Ngb===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;oOR===void 0&&(oOR=document.createElement("template"));var F=oOR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Ngb=I}I=Ngb;return I},{mode:2});var EOY;var GYQ;var Xn=function(){return _.k.apply(this,arguments)||this};
_.E(Xn,_.k);Xn.prototype.checkIsUsingLargeWidth=function(){var I;return((I=this.data)==null?void 0:I.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.M(),_.A("design:type",Object)],Xn.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.W([_.M({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.A("design:type",Boolean)],Xn.prototype,"isUsingLargeWidth",void 0);_.W([_.I6({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Xn);
_.a(Xn,"yt-confirmation-flow-step-renderer",function(){if(GYQ===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;EOY===void 0&&(EOY=document.createElement("template"));var F=EOY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);GYQ=I}I=GYQ;return I},{mode:2});var XL1;var Qg8;var YoT=function(){return _.k.apply(this,arguments)||this};
_.E(YoT,_.k);_.W([_.M(),_.A("design:type",Object)],YoT.prototype,"data",void 0);_.W([_.I6({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],YoT);
_.a(YoT,"yt-info-flow-step-renderer",function(){if(Qg8===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;XL1===void 0&&(XL1=document.createElement("template"));var F=XL1;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Qg8=I}I=Qg8;return I},{mode:2});var f9e;var nOZ;var pLa=function(){return _.k.apply(this,arguments)||this};
_.E(pLa,_.k);_.W([_.M(),_.A("design:type",Object)],pLa.prototype,"data",void 0);_.W([_.I6({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],pLa);
_.a(pLa,"yt-info-list-flow-step-renderer",function(){if(nOZ===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;f9e===void 0&&(f9e=document.createElement("template"));var F=f9e;D.call(y,F.content.cloneNode(!0),I.content.firstChild);nOZ=I}I=nOZ;return I},{mode:2});var m6b=_.d(function(I){var y=I.data;return _.t("styled-text-view-model",{class:_.XH("ytStyledTextViewModelHost",function(){return dKo(y().fontAttributes)},function(){return kJ8(y().color)})},_.t(_.jr,{text:function(){return y().text},
ariaLabel:function(){var D,F,R;return(R=(D=y().accessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)!=null?R:""}}))},"Nh");
m6b.idomCompat=!0;var MmT=_.d(function(I){var y=function(){var R,O,w,v;return(v=(w=(R=I.alt)==null?void 0:R.call(I))!=null?w:(O=I.data().accessibilityData)==null?void 0:O.label)!=null?v:""},D=function(){return I.data().imageWidth},F=function(){return I.data().imageHeight};
return _.t("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.t(_.U,{cond:function(){var R=I.data();if(R){var O,w,v;var P=((O=_.nR().resolve(_.fR(_.cS)))==null?0:O())?(w=R.imageDark)!=null?w:R.imageLight:(v=R.imageLight)!=null?v:R.imageDark}else P=void 0;return P},
then:function(R){return _.t(_.UE,Object.assign({},I,{data:R,alt:y,targetWidth:D,targetHeight:F,preserveHeight:!0,preserveWidth:!0}))}}))},"Oh");
MmT.idomCompat=!0;var Q4=_.d(function(I){var y=I.data;I=_.jE(function(){return y().slots},[]);
var D=_.jE(function(){return y().layoutProperties},{}),F=_.nR().resolve(_.JU);
return _.t("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:nYT(D,F)},_.t(_.gZ,{each:I,keyBy:"INDEX"},function(R){return _.t("div",{class:"ytContainerLayoutViewModelSlot",style:nYT(function(){return R().layoutProperties},F)},_.t(_.aP,{data:function(){return R().contents}},{containerLayoutViewModel:Q4,
badgeViewModel:_.q1,buttonViewModel:_.My,styledTextViewModel:m6b,contentPreviewImageViewModel:function(O){return _.t(_.mF,{data:O.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(O){return _.t(MmT,{data:O.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ph");
Q4.idomCompat=!0;var zKo=_.d(function(I){var y=I.data;var D=I.stateFns;var F=function(){var K=y(),r=K.productId;return!(!K.clearGroupId&&!r)},R=function(){var K=y(),r=K.clearGroupId;
return(K=K.productId)?D().isProductSelected(K):r?D().getSelectedProductByGroupId(r)==null:!1},O=function(K){var r=y(),N=r.clearGroupId;
if(r=r.productId)D().onProductSelected(r),K==null||K.forEach(function(h){_.OE(h)});
else if(N)D().onClearGroupSelected(N)},w=function(){var K=y(),r=K.clearGroupId;
if(K=K.productId){var N;return"group:"+(((N=D().getProductById(K))==null?void 0:N.groupId)||"")}return r?"group:"+r:""},v=_.jE(function(){return y().header},[]),P=_.jE(function(){return y().body},[]);
return _.t("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.t(_.U,{cond:function(){return v().length>0||F()},
then:function(){return _.t("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.t("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.t(_.aP,{data:v},{containerLayoutViewModel:function(K){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(Q4,{data:K.data}))},
styledTextViewModel:function(K){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(m6b,{data:K.data}))}})),_.t(_.U,{cond:F,
then:function(){return _.t("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.t(_.tH,{checked:R,name:w,onChange:function(){O(y().onSelect)}}))}}))}}),_.t(_.U,{cond:function(){return P().length>0},
then:function(){return _.t("div",null,_.t(_.aP,{data:P},{containerLayoutViewModel:function(K){return _.t("div",{class:"ytPdpCardSectionViewModelContentItem"},_.t(Q4,{data:K.data}))}}))}}))},"Qh");
zKo.idomCompat=!0;var kYa=_.d(function(I){var y=I.data;var D=I.stateFns;return _.t("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.t(_.U,{cond:function(){return y().banner},
then:function(F){return _.t("div",{class:"ytPdpCardViewModelBanner"},_.t(_.jr,{text:F}))}}),_.t(_.aP,{data:function(){return y().sections}},{pdpCardSectionViewModel:function(F){F=F.data;
var R={};return _.t("div",{class:_.XH("ytPdpCardViewModelSectionContainer",(R.ytPdpCardViewModelShowDividers=function(){return y().showDividers},R))},_.t(zKo,{data:F,
stateFns:D}))}}))},"Rh");
kYa.idomCompat=!0;var d6G=_.d(function(I){var y=I.data;var D=I.isOverlay;I={};return _.t("pdp-masthead-view-model",{class:_.XH("ytPdpMastheadViewModelHost",(I.ytPdpMastheadViewModelIsOverlay=D,I))},_.t(_.aP,{data:function(){return y().image}},{contentPreviewImageViewModel:_.mF,
themedImageViewModel:function(F){return _.t(MmT,{data:F.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.t(_.U,{cond:function(){return y().title},
then:function(F){return _.t("h1",{class:"ytPdpMastheadViewModelHeading"},_.t(_.jr,{text:F,isOverlay:D}))}}),_.t(_.gZ,{each:function(){var F;
return(F=y().finePrint)!=null?F:[]}},function(F){return _.t("div",{class:"ytPdpMastheadViewModelFinePrint"},_.t(_.jr,{text:F,
isOverlay:D}))}))},"Sh");
d6G.idomCompat=!0;var a9G=_.d(function(I){var y=I.data;var D=I.stateFns;var F=function(){return"pdp-pricing-group-selector-"+y().pricingGroupAttributeIds},R=_.jE(function(){return y().pricingGroupSelectorSectionHeader});
return _.t("pdp-pricing-group-selector-view-model",null,_.t(_.U,{cond:function(){return!!R()},
then:function(){return _.t(_.aP,{data:R},{sectionHeaderViewModel:function(O){O=O.data;var w={};return _.t("div",{class:_.XH("ytPdpPricingGroupSelectorViewModelSectionHeader",(w.ytPdpPricingGroupSelectorViewModelFullBleed=!0,w.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,w))},_.t(_.BA,{data:O}))}})}}),_.t("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.t(_.gZ,{each:function(){var O=D().getSelectedProductByGroupId(y().groupId);
if(!O)return _.Sb(Error("Cl`"+y().groupId)),[];var w,v=(w=y().pricingGroupAttributeIds)!=null?w:[],P;if((P=O.pricingGroups)==null||!P.length||!v.length)return[];w=O.pricingGroups.filter(function(h){return v.length?h.pricingGroupAttributes.every(function(x){return v.includes(x)}):!1});
O=[];if(v.length>0){w=[].concat(_.Td(w));P=_.J(v);for(var K=P.next(),r={};!K.done;r={targetAttrId:void 0},K=P.next())r.targetAttrId=K.value,K=w.findIndex(function(h){return function(x){return x.pricingGroupAttributes.includes(h.targetAttrId)}}(r)),K!==-1&&(O.push(w[K]),w.splice(K,1))}var N=D().getSelectedPricingGroupAttributesByGroupId(y().groupId);
return O.map(function(h){var x=!1;N&&h.pricingGroupAttributes&&(x=Jc(h.pricingGroupAttributes,N));return{pricingGroup:h,isSelected:x}})},
keyBy:function(O){return O.pricingGroup.pricingGroupId}},function(O){return _.t("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.t("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.t(_.aP,{data:function(){return O().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Q4})),_.t("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.t(_.tH,{checked:function(){return O().isSelected},
name:F,onClick:function(){var w=O().pricingGroup;D().onPricingGroupSelected(w.pricingGroupId);if(w=_.yz(w.onSelectPricingGroup)){var v;(v=_.nR().resolve(_.MC))==null||v.resolveCommand(w)}}})))})))},"Th");
a9G.idomCompat=!0;var c81=_.d(function(I){var y=I.data;var D=I.stateFns;var F=function(){var w=D().getSelectedPricingOptions().map(function(K){return K.pricingOptionId}),v=D().getSelectedProductByGroupId(y().groupId);
if(!v)return _.Sb(Error("Dl`"+y().groupId)),[];var P=D().getSelectedPricingGroupAttributesByGroupId(y().groupId);return BVg(v.pricingOptions,P,w)},R=_.jE(function(){return y().pricingOptionSelectorSectionHeader}),O=function(){return F().length>1};
return _.t("pdp-pricing-option-selector-view-model",null,_.t(_.U,{cond:function(){return!!R()&&O()},
then:function(){return _.t(_.aP,{data:R},{sectionHeaderViewModel:function(w){w=w.data;var v={};return _.t("div",{class:_.XH("ytPdpPricingOptionSelectorViewModelSectionHeader",(v.ytPdpPricingOptionSelectorViewModelFullBleed=!0,v.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,v))},_.t(_.BA,{data:w}))}})}}),_.t(_.U,{cond:O,
then:function(){return _.t("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.t(_.gZ,{each:F,keyBy:"INDEX"},function(w){return _.t("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.t("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.t(_.aP,{data:function(){return w().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Q4})),_.t("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.t(_.tH,{checked:function(){return w().isSelected},
onClick:function(){D().onPricingOptionSelected(w().pricingOption.pricingOptionId);var v=w().pricingOption.onSelectPricingOption;if(v=_.yz(v)){var P;(P=_.nR().resolve(_.MC))==null||P.resolveCommand(v)}}})))}))}}))},"Uh");
c81.idomCompat=!0;var WpR=_.d(function(I){var y=I.data;var D=I.stateFns;return _.t("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.t(_.aP,{data:function(){var F,R;return(R=(F=D().getSelectedPricingOptions()[0])==null?void 0:F.primaryButton)!=null?R:y().emptyStateButton}},{buttonViewModel:_.My}))},"Vh");
WpR.idomCompat=!0;var CYe=_.d(function(I){var y=I.stateFns;return _.t("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.t(_.aP,{data:function(){return y().getSelectedPricingOptions().flatMap(function(D){return D.summaryLines}).filter(function(D){return!!D})}},{containerLayoutViewModel:function(D){return _.t("div",{class:"ytPdpSummaryViewModelLineItem"},_.t(Q4,{data:D.data}))}}))},"Wh");
CYe.idomCompat=!0;var BgG=_.d(function(I){function y(q){var X=w();_.ry(_.V0("pdpStateEntity",X,{key:X,selectedPricingOptions:q}))}
var D=I.data;var F=I.internalScrolling;var R=I.stateFnsForTesting;var O=_.jE(function(){return D().allProducts},[]),w=_.jE(function(){return D().pdpStateEntityKey},""),v=_.zj(i4g,w),P=_.su(function(){_.Ki(!0);
var q;return(q=R==null?void 0:R())!=null?q:$Ky(v,O,y)},void 0,"Pzdsic"),K=_.jE(function(){return D().body},[]),r=_.jE(function(){return D().columnBreakHints},[]),N=function(){return D().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},h=function(){return N()||D().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},x=_.su(function(){var q=_.OA(D().background),X;
if(q==null?0:(X=q.sources)==null?0:X.length){var f=f===void 0?!0:f;q=_.bOo(void 0,q.sources,void 0,f,f?1E3:void 0,f?void 0:1E3)}else q=null;return q},void 0,"RDPOae");
_.LR(function(){var q=D().onStartCommand;if(q&&(q=_.yz(q))){var X;(X=_.nR().resolve(_.MC))==null||X.resolveCommand(q)}});
I={};return _.t("pdp-view-model",{class:_.XH("ytPdpViewModelHost",(I.ytPdpViewModelHasBackground=function(){return h()||!!x()},I.ytPdpViewModelHasDarkBackground=h,I.ytPdpViewModelHasScrim=N,I.ytPdpViewModelInternalScrolling=F,I.ytPdpViewModelForceSingleColumn=function(){return r().length===0},I)),
style:_.p4({"--pdp-view-model-background":function(){return x()?"url("+x()+")":void 0}})},_.t("div",{class:"ytPdpViewModelColumnContainer"},_.t(_.gZ,{each:function(){return b4a(K(),r())},
keyBy:"INDEX"},function(q){return _.t("div",{class:"ytPdpViewModelColumn"},_.t(_.aP,{data:q},{containerLayoutViewModel:function(X){return _.t(Yt,null,_.t(Q4,{data:X.data}))},
dividerViewModel:function(X){return _.t(Yt,{fullBleed:!0},_.t(_.KlM,{data:X.data}))},
pdpCardViewModel:function(X){return _.t(Yt,null,_.t(kYa,{data:X.data,stateFns:P}))},
pdpMastheadViewModel:function(X){return _.t(Yt,null,_.t(d6G,{data:X.data,isOverlay:h}))},
pdpPricingGroupSelectorViewModel:function(X){return _.t(Yt,null,_.t(a9G,{data:X.data,stateFns:P}))},
pdpPricingOptionSelectorViewModel:function(X){return _.t(Yt,null,_.t(c81,{data:X.data,stateFns:P}))},
pdpPrimaryButtonViewModel:function(X){return _.t(Yt,null,_.t(WpR,{data:X.data,stateFns:P}))},
pdpSummaryViewModel:function(X){return _.t(Yt,null,_.t(CYe,{data:X.data,stateFns:P}))},
sectionHeaderViewModel:function(X){return _.t(Yt,{fullBleed:!0,noVerticalPadding:!0},_.t(_.BA,{data:X.data}))}}))})))},"Xh");
BgG.idomCompat=!0;var Yt=_.d(function(I){var y={};return _.t("div",{class:_.XH("ytPdpViewModelItem",(y.ytPdpViewModelFullBleed=I.fullBleed,y.ytPdpViewModelNoVerticalPadding=I.noVerticalPadding,y))},I.children)},"Yh");_.NK(BgG,"pdp-view-model",{props:{data:_.om,stateFnsForTesting:_.rV,internalScrolling:_.rV}});var iIa=_.d(function(I){var y=I.data;var D=I.className;var F=_.zj(_.oz,function(){return y().flowStateEntityKey});
return _.t("ytm-premium-purchase-button-renderer",{class:_.XH("ytPremiumPurchaseButtonRendererHost",D)},_.t(_.aP,{data:function(){var R;return(R=_.u(F(),egQ))==null?void 0:R.primaryButtonOverride}},{buttonRenderer:function(R){return _.t(_.u1,{data:R.data,
className:D})},
buttonViewModel:function(R){return _.t(_.My,{data:R.data,className:D})}}))},"Zh");
iIa.idomCompat=!0;var A8g=_.d(function(I){var y=I.data;I=I.className;var D=function(){return H4a(y().style)},F=_.XH("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D),R=_.XH("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D);
return _.t("yt-flow-bottom-bar-renderer",{class:_.XH("yt-flow-bottom-bar-renderer",I,D)},_.t(_.aP,{data:function(){return y().secondaryButton}},{buttonRenderer:function(O){return _.t(_.u1,{data:O.data,
className:R})},
buttonViewModel:function(O){return _.t(_.My,{data:O.data,className:R})},
premiumPurchaseButtonRenderer:function(O){return _.t(iIa,{data:O.data,className:R})}}),_.t(_.aP,{data:function(){return y().primaryButton}},{buttonRenderer:function(O){return _.t(_.u1,{data:O.data,
className:F})},
buttonViewModel:function(O){return _.t(_.My,{data:O.data,className:F})},
premiumPurchaseButtonRenderer:function(O){return _.t(iIa,{data:O.data,className:F})}}))},"$h");
A8g.idomCompat=!0;_.NK(A8g,"yt-flow-bottom-bar-renderer",{props:{data:_.om,className:_.om}});var $6Y=_.d(function(I){var y=_.XH(I.className,"ytOfferSummaryRendererHost");return _.t("yt-offer-summary-renderer",{class:y},_.t("div",{class:"ytOfferSummaryRendererTextContainer"},_.t("div",{class:"ytOfferSummaryRendererEyebrowText"},_.t(_.jr,{text:function(){return I.data().eyebrowText}})),_.t("div",{class:"ytOfferSummaryRendererTitle"},_.t(_.jr,{text:function(){return I.data().title}})),_.t("div",{class:"ytOfferSummaryRendererSubtitle"},_.t(_.jr,{text:function(){return I.data().subtitle}})),_.t("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.t(_.gZ,{each:function(){var D;
return(D=I.data().featureListData)!=null?D:[]}},function(D){var F;
return _.t("div",{class:"ytOfferSummaryRendererFeatureList"},_.t(_.mj,{icon:(F=D.icon)==null?void 0:F.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"}}}),_.t("div",{class:"ytOfferSummaryRendererFeatureListText"},_.t(_.jr,{text:D.text,
className:function(){return D.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.t("div",{class:"ytOfferSummaryRendererDescription"},_.t(_.jr,{text:function(){return I.data().description}}))))},"ai");_.NK(_.d(function(I){var y={};y=_.XH("ytOfferSummaryFlowStepRendererHost",(y.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=I.shouldDisableHeaderTopMargin,y));return _.t("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:y},_.t("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.t("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.t(_.jr,{text:function(){return I.data().header}})),_.t("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.t(_.jr,{text:function(){return I.data().subtitle}}))),_.t("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.t(_.aP,{data:function(){return I.data().offerSummary}},{offerSummaryRenderer:function(D){return _.t($6Y,{data:D.data,
className:I.flowClassName})}})))},"bi"),"yt-offer-summary-flow-step-renderer",{props:{data:_.rV,
flowClassName:_.rV,flowStateEntityKey:_.rV,shouldDisableHeaderTopMargin:_.rV}});var bIg=_.d(function(I){var y=I.data;var D=I.className;var F=I.flowStateEntityKey;var R=I.selectionStepStyle;I=_.YY(function(P){var K=y(),r=F==null?void 0:F();P.target&&(P.stopPropagation(),P=r||"",r=_.oz(_.Uv().getState(),P),K=Object.assign({},r,{premiumPurchaseFlowState:{selectedOptionId:K.optionId,primaryButtonOverride:K.primaryButtonOverride}}),_.Uv().dispatch(_.WS("flowStateEntity",P,K)));return!1});
var O=function(){return(F==null?void 0:F())||""},w=_.zj(_.oz,O);
_.LR(function(){var P=y(),K=O(),r=w();P.defaultSelected&&K!==""&&P.primaryButtonOverride&&TVY(P.optionId||"",K,P.primaryButtonOverride,r)});
var v={};return _.t("ytm-option-item-renderer",{"on:click":I,class:_.XH(D,"ytm-option-item-renderer",(v["ytm-option-item-renderer--lp2-style"]=function(){return(R==null?void 0:R())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},v))},_.t("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.t("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var P=y(),K=O(),r=w();r=_.u(r,egQ);return(r?(r==null?void 0:r.selectedOptionId)||"":P.defaultSelected&&K!==""?(P==null?void 0:P.optionId)||"":"")===y().optionId},
name:("input"+_.Fi(_.JH)).toString()})),_.t("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.t(_.aP,{data:function(){return y().titleBadge}},{badgeViewModel:function(P){return _.t(_.q1,{data:P.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.t(_.U,{cond:function(){return y().eyebrowText},
then:function(){return _.t("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.t(_.jr,{text:function(){return y().eyebrowText}}))}}),_.t("div",{class:"ytm-option-item-renderer__option-item-title"},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.t(_.jr,{text:function(){return y().subtitle}})),_.t(_.U,{cond:function(){return y().featureListData},
then:function(){return _.t("div",{class:"ytm-option-item-renderer__feature-list-data"},_.t(_.gZ,{each:function(){return y().featureListData||[]}},function(P){var K,r=(K=P.icon)==null?void 0:K.iconType;
a:switch(P.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":K="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":K="ytm-option-item-renderer__feature-list-icon-small";break a;default:K="ytm-option-item-renderer__feature-list-icon-default"}return _.t("div",{class:"ytm-option-item-renderer__feature-list"},_.t(_.mj,{icon:r,className:K,active:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.t("div",{class:"ytm-option-item-renderer__feature-list-text"},_.t(_.jr,{text:P.text,
className:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.t("div",{class:"ytm-option-item-renderer__option-item-description"},_.t(_.jr,{text:function(){return y().description}}))))},"ci");var HI1=_.d(function(I){var y=I.data;var D=I.flowClassName;var F=I.flowStateEntityKey;var R=I.selectionStepStyle;return _.t("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.t("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.t("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.t(_.jr,{text:function(){return y().title}}),_.t(_.aP,{data:function(){return y().titleBadge}},{badgeViewModel:function(O){return _.t(_.q1,{data:O.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.t(_.U,{cond:function(){return y().subtitle},
then:function(){return _.t("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.t(_.jr,{text:function(){return y().subtitle}}))}}),_.t(_.U,{cond:function(){return y().featureListData},
then:function(O){return _.t("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.t(_.gZ,{each:O},function(w){var v;return _.t("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.t(_.mj,{icon:(v=w.icon)==null?void 0:v.iconType,active:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(w.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.t("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.t(_.jr,{text:w.text,
className:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.t(_.U,{cond:function(){return y().secondaryTitle},
then:function(){return _.t("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.t(_.jr,{text:function(){return y().secondaryTitle}}))}}),_.t(_.gZ,{each:function(){return y().sectionDisclaimers||[]}},function(O){return _.t("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.t(_.jr,{text:O}))})),_.t(_.aP,{data:function(){return y().optionItems}},{optionItemRenderer:function(O){return _.t("div",{class:"ytOptionSectionRendererOptionItem"},_.t(bIg,{data:O.data,
className:D,flowStateEntityKey:F,selectionStepStyle:R}))}}),_.t(_.U,{cond:function(){return y().offerText},
then:function(){return _.t("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.t(_.jr,{text:function(){return y().offerText}}))}}))},"di");
HI1.idomCompat=!0;var eKZ=_.d(function(I){var y=I.data;var D=I.flowClassName;var F=I.flowStateEntityKey;I=I.isDesktop;var R=_.DF("div"),O=function(){var r;return(r=y().flowStateEntityKey)!=null?r:F==null?void 0:F()},w=function(){return(O==null?void 0:O())||""},v=function(){return y().style},P=_.zj(_.oz,w);
_.LR(function(){suT(y(),w(),P());setTimeout(function(){var r;(r=R.value)==null||r.focus()})});
var K={};return _.t("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.XH("ytm-option-selection-flow-step-renderer",(K["ytm-option-selection-flow-step-renderer--desktop"]=I,K["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return y().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.t("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"},
_.t("div",{el:R,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.t(_.jr,{text:function(){return y().header}})),_.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.t(_.jr,{text:function(){return y().subtitle}}))),_.t(_.aP,{data:function(){return y().optionItems||[]}},{optionItemRenderer:function(r){return _.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.t(bIg,{data:r.data,
className:D,flowStateEntityKey:O,selectionStepStyle:v}))},
optionSectionRenderer:function(r){return _.t("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.t(HI1,{data:r.data,flowClassName:D,flowStateEntityKey:O,selectionStepStyle:v}))}}))},"ei");
eKZ.idomCompat=!0;_.NK(eKZ,"yt-option-selection-flow-step-renderer",{props:{data:_.om,flowClassName:_.om,flowStateEntityKey:_.om,isDesktop:_.om}});var ns=_.d(function(I){var y=_.o6(I,{type:1,disablePadding:!1,disablePrimaryButton:!1}),D=y.data,F=y.type;I=y.disablePadding;var R=y.disablePrimaryButton,O=y.onClickPrimaryButton,w=function(){return D().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},v=function(){return{disabled:R(),
state:R()?"disabled":"active"}},P=function(){return D().leadingLabel||D().trailingLabel};
y={};return _.t("yt-panel-footer-view-model",{class:_.XH("yt-panel-footer-view-model",(y["yt-panel-footer-view-model--hide-divider"]=function(){return D().shouldHideDivider},y["yt-panel-footer-view-model--disable-padding"]=I,y))},_.t(_.U,{cond:P,
then:function(){var K={},r={};return _.t("div",{class:_.XH("yt-panel-footer-view-model__text-row",(K["yt-panel-footer-view-model--row-bottom-padding"]=function(){var N=D();return!(!N.leadingLabel&&!N.trailingLabel||!N.primaryButton&&!N.secondaryButton)},K))},_.t(_.jr,{text:function(){return D().leadingLabel},
className:_.XH((r["yt-panel-footer-view-model--text-padding"]=P,r))}),_.t(_.jr,{text:function(){return D().trailingLabel}}))}}),_.t(_.U,{cond:w,
then:function(){var K={};return _.t("div",{class:"yt-panel-footer-view-model__button-stack"},_.t("div",{class:_.XH("yt-panel-footer-view-model__primary-button",(K["yt-panel-footer-view-model__button-stack--top-button"]=function(){return D().secondaryButton},K))},_.t(_.aP,{data:function(){return D().primaryButton}},{buttonViewModel:function(r){return _.t(_.My,{data:r.data,
buttonOverrides:v,onClick:O})}})),_.t(_.aP,{data:function(){return D().secondaryButton}},{buttonViewModel:_.My}))}}),_.t(_.U,{cond:function(){return!w()},
then:function(){var K={},r={},N={};return _.t("div",{class:_.XH("yt-panel-footer-view-model__button-row",(K["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===F()},K))},_.t("div",{class:_.XH("yt-panel-footer-view-model__button-row--left-button",(r["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===F()},r["yt-panel-footer-view-model__button-row--hidden"]=function(){return!D().secondaryButton||0===F()},r["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===F()},r))},_.t(_.aP,{data:function(){return D().secondaryButton}},{buttonViewModel:_.My})),_.t("div",{class:_.XH("yt-panel-footer-view-model__primary-button",(N["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===F()||1===F()},N["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===F()},N))},_.t(_.aP,{data:function(){return D().primaryButton}},{buttonViewModel:function(h){return _.t(_.My,{data:h.data,
buttonOverrides:v,onClick:O})}})))}}))},"fi");
ns.idomCompat=!0;var Tge=_.d(function(I){I=_.o6(I,{disablePadding:!1});var y=I.data,D=I.disablePadding;I=_.$WC(function(){return y().formId},void 0,function(){return y().onSubmitSuccess});
var F=I.submitForm,R=I.isValid,O=I.isSubmitting;return _.t("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.t(_.aP,{data:function(){return y().panelFooter}},{panelFooterViewModel:function(w){return _.t(ns,{data:w.data,
onClickPrimaryButton:function(){F()},
disablePrimaryButton:function(){return!R()||O()},
disablePadding:D})}}))},"gi");_.NK(Tge,"yt-form-footer-view-model",{props:{data:_.om,disablePadding:_.om}});var sgb=_.d(function(I){var y=_.l("enable_user_rating_web");return _.t("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.t(_.U,{cond:function(){var D;return(D=I.data())==null?void 0:D.image},
then:function(D){return _.t(_.UE,{data:D,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.t(_.jr,{text:function(){var D;
return(D=I.data())==null?void 0:D.title}})),_.t("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.t(_.jr,{text:function(){var D;
return(D=I.data())==null?void 0:D.subtitle}})),_.t(_.U,{cond:function(){return!y},
then:function(){return _.t(_.aP,{data:function(){var D;return(D=I.data())==null?void 0:D.viewTipsButton}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"hi");_.NK(sgb,"yt-contributor-zero-state-view-model",{props:{data:_.om}});var Vma=_.d(function(I){var y=function(){var D;return(D=I.data())==null?void 0:D.image};
return _.t("yt-featured-content-item-view-model",{class:_.XH("ytFeaturedContentItemViewModelHost")},_.t("div",{class:_.XH(function(){return y()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.t("div",{class:function(){return y()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"ytFeaturedContentItemViewModelImage"},_.t(_.aP,{data:function(){return I.data().image}},{themedImageViewModel:function(D){return _.t(MmT,{data:D.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.t(_.U,{cond:function(){var D;
return!y()&&((D=I.data())==null?void 0:D.iconName)},
then:function(){return _.t("div",{class:"ytFeaturedContentItemViewModelIcon"},_.t(_.mj,{icon:function(){return I.data().iconName}}))}}),_.t("div",{class:"ytFeaturedContentItemViewModelContent"},_.t(_.U,{cond:function(){var D;
return(D=I.data())==null?void 0:D.title},
then:function(){return _.t("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.t(_.jr,{text:function(){return I.data().title}}))}}),_.t(_.U,{cond:function(){var D;
return(D=I.data())==null?void 0:D.body},
then:function(){return _.t("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.t(_.jr,{text:function(){return I.data().body}}))}})))))},"ii");var ZIC=_.d(function(I){var y=function(){var R;return VpT((R=I.data())==null?void 0:R.titleFontSize)},D=function(){var R;
return Z4R((R=I.data())==null?void 0:R.descriptionFontSize)},F=function(){var R;
return((R=I.data())==null?void 0:R.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.t("yt-landing-page-view-model",{class:_.XH("ytLandingPageViewModelHost",I.className)},_.t("div",{class:"ytLandingPageViewModelHeader"},_.t(_.U,{cond:function(){var R;return(R=I.data())==null?void 0:R.bannerImage},
then:function(R){return _.t("div",{class:"ytLandingPageViewModelHeaderImage"},_.t(_.aP,{data:function(){return R()}},{imageBannerViewModel:function(O){return _.t(_.jc,{data:O.data,
isPositionRelative:!0})}}))}}),_.t(_.U,{cond:function(){var R;
return(R=I.data())==null?void 0:R.bannerAnimation},
then:function(R){return _.t(_.Wb,{data:function(){var O=R();if(O==null?0:O.url){var w;O={path:(w=O==null?void 0:O.url)!=null?w:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(O==null?0:O.payload){var v;O={animationData:JSON.parse((v=O==null?void 0:O.payload)!=null?v:""),autoplay:!0,loop:!0,renderer:"svg"}}else O=void 0;return{animationConfig:O}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.t("div",{class:"ytLandingPageViewModelHeaderTitle"},_.t(_.U,{cond:function(){var R;
return(R=I.data())==null?void 0:R.title},
then:function(R){return _.t("div",{class:_.XH("ytLandingPageViewModelHeaderTitleContent",y)},_.t(_.jr,{text:function(){return R()}}))}}),_.t(_.U,{cond:function(){var R;
return(R=I.data())==null?void 0:R.description},
then:function(R){var O={};return _.t(_.jr,{className:_.XH("ytLandingPageViewModelHeaderTitleDescription",D,(O.ytLandingPageViewModelHeaderTitleDescriptionMargin=F,O)),text:function(){return R()}})}}))),_.t(_.U,{cond:function(){var R,O;
return(R=I.data())==null?void 0:(O=R.featuredContentList)==null?void 0:O.length},
then:function(){return _.t("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.t(_.aP,{data:function(){return I.data().featuredContentList}},{featuredContentItemViewModel:function(R){return _.t(Vma,{data:R.data})}}))}}),_.t(_.U,{cond:function(){var R,O;
return(R=I.data())==null?void 0:(O=R.expandableContentList)==null?void 0:O.length},
then:function(){return _.t("div",{class:"ytLandingPageViewModelFaqSection"},_.t(_.aP,{data:function(){return I.data().expandableContentList}},{faqEntryViewModel:function(R){return _.t("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.t(_.sNG,{data:R.data}))}}))}}),_.t("div",{class:"ytLandingPageViewModelFooter"},_.t(_.U,{cond:function(){var R;
return(R=I.data())==null?void 0:R.legalCopy},
then:function(R){return _.t("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.t(_.jr,{text:function(){return R()}}))}}),_.t(_.U,{cond:function(){var R;
return(R=I.data())==null?void 0:R.actions},
then:function(R){return _.t("div",null,_.t(_.aP,{data:function(){return R()}},{flexibleActionsViewModel:function(O){return _.t(_.wK,{data:O.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"ji");_.NK(_.d(function(I){return _.t("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.t("div",{class:"ytLpSectionGroupViewModelContainer"},_.t(_.aP,{data:function(){return I.data().sections}},{landingPageViewModel:function(y){return _.t(ZIC,{data:y.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ki"),"yt-lp-section-group-view-model",{props:{data:_.om}});var gOT=_.d(function(I){var y=I.data;var D=I.selectedKey;var F=I.onSelected;var R=I.groupName;var O=function(){return y().text},w=function(){return y().attributedText},v=function(){return y().subtext},P=function(){return y().attributedSubtext},K=_.t("div",{class:"ytRadioButtonItemViewModelLabel"},_.t(_.U,{cond:O,
then:function(){return _.t("div",null,O)}}),_.t(_.U,{cond:w,
then:function(){return _.t(_.jr,{text:w})}}),_.t(_.U,{cond:v,
then:function(){return _.t("div",{class:"ytRadioButtonItemViewModelSubText"},v)}}),_.t(_.U,{cond:P,
then:function(){return _.t("div",{class:"ytRadioButtonItemViewModelSubText"},_.t(_.jr,{text:P}))}})),r=function(){if(w()){var h;
return(h=w())==null?void 0:h.content}return O()},N=function(){if(P()){var h;
return(h=P())==null?void 0:h.content}return v()};
I={};return _.t("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.t(_.tH,{name:R,checked:function(){return!(D==null||!D()||y().key!==(D==null?void 0:D()))},
onChange:function(h){F==null||F(h.target,y(),R==null?void 0:R())},
labelRenderable:function(){return K},
ariaLabel:function(){return N()?r()+", "+N():r()},
className:_.XH((I.ytRadioButtonItemViewModelSubTitle=function(){return!!y().subtext},I))}))},"li");var IAY=_.d(function(I){var y=I.data,D=I.onSelected,F=I.selectedKey,R=I.groupName;I=I.className;var O=_.J(_.$M(!1,void 0,"mDtSad")),w=O.next().value,v=O.next().value,P=function(){if(F!==void 0){var K=F();return!(!K||y().key!==K)}return w()};
O=_.YY(function(K){D?D(K.currentTarget,y(),R==null?void 0:R()):v(!w())});
return _.t("yt-selectable-item-view-model",{class:_.XH("ytSelectableItemViewModelHost",I,"ytSelectableItemViewModelContainer"),"on:click":O,"prop:checked":P},_.t(_.aP,{data:function(){return y().content}},{cardViewModel:function(K){return _.t(M3R,{data:K.data,
isSelected:P})}}))},"mi");var yEy=_.d(function(I){var y=I.data;var D=I.onSelected;var F=I.selectedKey;var R=I.groupName;var O=function(){return(R==null?void 0:R())||y().key};
return _.t("yt-radio-button-group-view-model",{class:_.XH("ytRadioButtonGroupViewModelHost",I.className)},_.t("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.t(_.aP,{data:function(){return y().radioButtons}},{radioButtonItemViewModel:function(w){return _.t(gOT,{data:w.data,
onSelected:D,selectedKey:F,groupName:O})},
selectableItemViewModel:function(w){return _.t(IAY,{data:w.data,onSelected:D,selectedKey:F,groupName:O})}})))},"ni");var D9b=_.d(function(I){_.LR(function(){if(I.controlledMode()&&I.data().defaultSelected)_.vu(Error("El"));else{var O;!I.controlledMode()&&((O=I.selected)==null?0:O.call(I))&&_.vu(Error("Fl"))}});
var y=_.J(_.N4(function(){if(!I.controlledMode())return I.data().defaultSelected})),D=y.next().value,F=y.next().value,R=function(){if(!I.controlledMode())return D();
var O;return(O=I.selected)==null?void 0:O.call(I)};
return _.t("yt-checkbox-item-view-model",{class:_.XH("ytCheckboxItemViewModelHost",I.className)},_.t(_.P3,{data:function(){var O=I.data(),w=R();return{title:O.text,subtitle:O.subtext,superlabel:O.superlabel,isSelected:!!w,isDisabled:O.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!I.controlledMode()&&F(!D());var O,w;(w=I.onTap)==null||w.call(I,!!R(),I.data(),(O=I.groupName)==null?void 0:O.call(I))},
isCompact:I.isCompact,disableHorizontalPadding:I.disableHorizontalPadding}))},"oi");var FvR=_.d(function(I){var y=I.data;var D=I.controlledMode;var F=I.selectedKeys;var R=I.onItemTap;var O=I.groupName;var w=I.disableHorizontalPadding;var v=function(){return(O==null?void 0:O())||y().key};
_.LR(function(){D()&&y().defaultSelectedKeys?_.vu(Error("Gl")):!D()&&(F==null?0:F())&&_.vu(Error("Hl"))});
I=_.J(_.N4(function(){if(!D())return y().defaultSelectedKeys}));
var P=I.next().value,K=I.next().value,r=function(N,h,x){N=[];!D()&&h.key&&(N=gYC(h.key,P()||[]),K(N));R==null||R(h,N,x)};
return _.t("yt-checkbox-group-view-model",{class:_.XH("ytCheckboxGroupViewModelHost")},_.t("fieldset",{class:_.XH("ytCheckboxGroupViewModelFieldset")},_.t("div",{role:"list"},_.t(_.aP,{data:function(){return y().checkboxes}},{checkboxItemViewModel:function(N){var h=N.data;
return _.t(D9b,{data:h,controlledMode:!0,selected:function(){var x=D()?(F==null?void 0:F())||[]:P()||[],q=h().key;return q?x.includes(q):!1},
onTap:r,groupName:v,disableHorizontalPadding:w})}}))))},"pi");var ps=_.d(function(I){var y=_.zj(IXQ,_.jE(function(){var v;return(v=I.data())==null?void 0:v.noteFeedEntityKey},"")),D=_.zj(kCR,_.jE(function(){var v;
return(v=I.data())==null?void 0:v.userRatingEntityKey},"")),F=_.l("enable_user_rating_web"),R=function(){var v,P,K;
return((v=y())==null?0:v.contributorNote)?(P=y())==null?void 0:P.contributorNote:(K=I.data())==null?void 0:K.existingNote},O=function(){var v,P;
return!!D()&&!!yZY((v=D())==null?void 0:v.helpfulnessValue,(P=I.data())==null?void 0:P.noteData)};
if(F){var w={};return _.t("yt-note-view-model",{class:_.XH("ytNoteViewModelHostUserRating",(w.ytNoteViewModelHostUserRatingPublishedNote=function(){var v,P,K,r;return((v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.isPublished)&&!((K=I.data())==null?0:(r=K.noteData)==null?0:r.isUserRatingForm)},w))},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.t(_.U,{cond:function(){var v,P;
return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.isPinned},
then:function(){return _.t(_.mj,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.t(_.U,{cond:function(){var v,P;return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.isPublished},
then:function(){return _.t(_.mj,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.t(_.aP,{data:function(){var v;
return(v=I.data())==null?void 0:v.metadata}},{contentMetadataViewModel:_.zR}),_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var v,P;
return(P=_.u((v=I.data())==null?void 0:v.metadata,_.h9P))==null?void 0:P.delimiter}),_.t(_.jr,{text:function(){var v;
return(v=R())==null?void 0:v.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.t(_.U,{cond:function(){var v,P;return!((v=I.data())==null?0:(P=v.noteData)==null?0:P.isUserRatingForm)},
then:function(){return _.t(_.aP,{data:function(){var v,P,K,r,N,h,x,q=!!((v=I.data())==null?0:(P=v.noteData)==null?0:P.isPinned);v=O();P=(K=I.data())==null?void 0:K.noteData;K=(r=y())==null?void 0:(N=r.contributorNote)==null?void 0:N.deleteAction;r=(h=I.data())==null?void 0:h.overflowButtonNoteWithRatingOnTapOverride;h=(x=I.data())==null?void 0:x.overflowButton;var X;x=(X=_.u(h,_.Kb))==null?void 0:X.accessibilityText;return q?DYG(P,K,x):v?{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,accessibilityText:x}}:h}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.t("div",{class:"ytNoteViewModelNoteContent"},_.t(_.jr,{text:function(){var v;
return(v=R())==null?void 0:v.text}})),_.t(_.U,{cond:function(){var v,P,K,r;
return!((v=I.data())==null?0:(P=v.noteData)==null?0:P.isPinned)&&!((K=I.data())==null?0:(r=K.noteData)==null?0:r.isUserRatingForm)},
then:function(){return _.t(_.U,{cond:O,then:function(){return _.t("div",{class:"ytNoteViewModelUserRatingContainer"},_.t(_.jr,{text:function(){var v,P;return yZY((v=D())==null?void 0:v.helpfulnessValue,(P=I.data())==null?void 0:P.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.t(_.aP,{data:function(){var v;return(v=I.data())==null?void 0:v.userRatingButton}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.t(_.U,{cond:function(){var v,P,K,r;
return!((v=I.data())==null?0:(P=v.noteData)==null?0:P.ignoreDivider)&&!((K=I.data())==null?0:(r=K.noteData)==null?0:r.isUserRatingForm)},
then:function(){return _.t("div",{class:"ytNoteViewModelDivider"},_.t(_.aP,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(v){return _.t(_.KlM,{data:v.data})}}))}}))}return _.t("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.t(_.U,{cond:function(){var v,P;return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.isPinned},
then:function(){return _.t(_.mj,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.t(_.U,{cond:function(){var v,P;return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.isPublished},
then:function(){return _.t(_.mj,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.t(_.U,{cond:function(){return F},
then:function(){return _.t(_.aP,{data:function(){var v;return(v=I.data())==null?void 0:v.metadata}},{contentMetadataViewModel:function(v){return _.t(_.zR,{data:v.data})}})}}),_.t(_.jr,{text:function(){var v,P;
return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.headerText}}),_.t("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.t(_.jr,{text:function(){var v,P;
return(v=I.data())==null?void 0:(P=v.noteData)==null?void 0:P.delimiter}})),_.t(_.jr,{text:function(){var v,P;
return(v=y())==null?void 0:(P=v.contributorNote)==null?void 0:P.publishedTimeText}})),_.t(_.aP,{data:function(){var v,P,K;
return DYG((v=I.data())==null?void 0:v.noteData,(P=y())==null?void 0:(K=P.contributorNote)==null?void 0:K.deleteAction)}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.t("div",{class:"ytNoteViewModelNoteContent"},_.t(_.jr,{text:function(){var v,P;
return(v=y())==null?void 0:(P=v.contributorNote)==null?void 0:P.text}})))},"qi");
ps.idomCompat=!0;_.NK(_.d(function(I){var y=_.jE(function(){var z;return(z=I.data())==null?void 0:z.flowStateEntityKey},""),D=_.zj(_.oz,y),F=_.zj(IXQ,_.jE(function(){var z;
return(z=I.data())==null?void 0:z.noteFeedEntityKey},"")),R=_.J(_.N4(function(){var z;
return(z=_.u(I.data().helpfulnessValue,$ko))==null?void 0:z.defaultSelectedKey})),O=R.next().value,w=R.next().value;
R=_.J(_.N4(function(){var z,B,C;return(C=_.u((z=_.u(I.data().helpfulnessValue,$ko))==null?void 0:(B=z.radioButtons)==null?void 0:B.find(function(H){var e;return((e=_.u(H,bfR))==null?void 0:e.key)===O()}),bfR))==null?void 0:C.value}));
var v=R.next().value,P=R.next().value;R=_.J(_.N4(function(){var z;return(z=_.u(I.data().helpfulReasons,AkZ))==null?void 0:z.defaultSelectedKeys}));
var K=R.next().value,r=R.next().value;R=_.J(_.N4(function(){var z;return(z=_.u(I.data().notHelpfulReasons,AkZ))==null?void 0:z.defaultSelectedKeys}));
var N=R.next().value,h=R.next().value,x=function(z,B){w(B.key);P(B.value);r([]);h([])},q=function(){var z,B;
return((z=v())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((B=v())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},X=function(){var z,B;
return((z=v())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((B=v())==null?void 0:B.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},f=function(z){FC8(z.key,K,r)},m=function(z){FC8(z.key,N,h)};
_.LR(function(){var z,B,C;mra((z=I.data())==null?void 0:(B=z.userRatingFormSchema)==null?void 0:B.id,{isValid:function(){return!!O()},
formData:function(){var H=v(),e=Ot8(K(),_.u(I.data().helpfulReasons,AkZ)),T=Ot8(N(),_.u(I.data().notHelpfulReasons,AkZ));H={helpfulnessValue:H==null?void 0:H.noteHelpfulnessValue};if(e){H.helpfulReasons=[];e=_.J(e);for(var L5=e.next();!L5.done;L5=e.next()){L5=L5.value;var vH=void 0;if((vH=L5)==null?0:vH.noteHelpfulReason)vH=void 0,H.helpfulReasons.push((vH=L5)==null?void 0:vH.noteHelpfulReason)}}if(T)for(H.notHelpfulReasons=[],T=_.J(T),e=T.next();!e.done;e=T.next())if(e=e.value,L5=void 0,(L5=e)==
null?0:L5.noteNotHelpfulReason)L5=void 0,H.notHelpfulReasons.push((L5=e)==null?void 0:L5.noteNotHelpfulReason);return{userRatingFormData:H}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(C=_.u(D(),r5R))==null?void 0:C.submitFormParams},onSubmitResult:function(){var H,e=(H=_.u(D(),r5R))==null?void 0:H.userRatingEntityKey,T;H={key:e,helpfulnessValue:(T=v())==null?void 0:T.noteHelpfulnessValue};e&&_.ry(_.WS("contextNoteUserRatingEntityPayload",e,H));var L5;e=(L5=I.data())==null?void 0:L5.viewNoteFlowStepId;var vH;if((vH=F())==null||!vH.contributorNote){var u_;e=(u_=I.data())==null?void 0:u_.zeroStateFlowStepId}(L5=
Object.assign({},D()))&&e&&(L5.currentStepId=e,L5.stepIdStack=[e],_.ry(_.WS("flowStateEntity",y(),L5)));var jW;(L5=(jW=I.data())==null?void 0:jW.ratingSubmittedSnackbarCommand)&&_.OE(L5)},
disableDuringSubmission:!0})});
return _.t("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.t(_.aP,{data:function(){var z=_.u(D(),r5R);if(z){var B;var C={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:z==null?void 0:(B=z.note)==null?void 0:B.headerText}]}],delimiter:"\u2022"}},existingNote:z.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else C=void 0;return C}},{noteViewModel:function(z){return _.t("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.t(ps,{data:z.data}))}}),_.t(_.aP,{data:function(){var z;
return(z=I.data())==null?void 0:z.helpfulnessValue}},{radioButtonGroupViewModel:function(z){return _.t("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.t(yEy,{data:z.data,
onSelected:x,selectedKey:O}))}}),_.t(_.U,{cond:q,
then:function(){return _.t("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.t("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.t(_.jr,{text:function(){var z;return(z=I.data())==null?void 0:z.helpfulReasonQuestion}})),_.t(_.aP,{data:function(){var z;
return(z=I.data())==null?void 0:z.helpfulReasons}},{checkboxGroupViewModel:function(z){return _.t(FvR,{data:z.data,
onItemTap:f,selectedKeys:K,controlledMode:!0})}}))}}),_.t(_.U,{cond:X,
then:function(){return _.t("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.t("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.t(_.jr,{text:function(){var z;return(z=I.data())==null?void 0:z.notHelpfulReasonQuestion}})),_.t(_.aP,{data:function(){var z;
return(z=I.data())==null?void 0:z.notHelpfulReasons}},{checkboxGroupViewModel:function(z){return _.t(FvR,{data:z.data,
onItemTap:m,selectedKeys:N,controlledMode:!0})}}))}}),_.t(_.U,{cond:function(){return!q()&&!X()},
then:function(){return _.t(_.aP,{data:function(){var z;return(z=I.data())==null?void 0:z.helpfulNoteFeatures}},{alertBannerViewModel:function(z){return _.t("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.t(_.h8n,{data:z.data}))}})}}))},"ri"),"yt-note-user-rating-view-model",{props:{data:_.om}});_.NK(ps,"yt-note-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=_.zj(IXQ,_.jE(function(){var D;return(D=I.data())==null?void 0:D.noteFeedEntityKey},""));
return _.t("yt-notes-wrapper-view-model",{class:_.XH("ytNotesWrapperViewModelHost")},_.t(_.U,{cond:function(){var D,F,R;return!((D=I.data())==null||!D.existingNotes)||!((F=I.data())==null||!F.currentNote)&&!((R=y())==null||!R.contributorNote)},
then:function(){return _.t(_.ni,null,_.t(_.aP,{data:function(){var D,F,R,O;return((F=_.u((D=I.data())==null?void 0:D.currentNote,j_g))==null?0:(R=F.noteData)==null?0:R.isPublished)?(O=I.data())==null?void 0:O.currentNote:void 0}},{noteViewModel:function(D){return _.t(ps,{data:D.data})}}),_.t(_.aP,{data:function(){var D;
return(D=I.data())==null?void 0:D.existingNotes}},{noteViewModel:function(D){var F=D.data;
return _.t(_.U,{cond:function(){var R,O;return(R=F())==null?void 0:(O=R.noteData)==null?void 0:O.isPublished},
then:function(){return _.t(ps,{data:F})}})}}),_.t(_.aP,{data:function(){var D,F,R,O,w;
return((F=_.u((D=I.data())==null?void 0:D.currentNote,j_g))==null?0:(R=F.noteData)==null?0:R.isPublished)||(O=y())==null||!O.contributorNote?void 0:(w=I.data())==null?void 0:w.currentNote}},{noteViewModel:function(D){return _.t(ps,{data:D.data})}}),_.t(_.aP,{data:function(){var D;
return(D=I.data())==null?void 0:D.existingNotes}},{noteViewModel:function(D){var F=D.data;
return _.t(_.U,{cond:function(){var R,O;return!((R=F())==null?0:(O=R.noteData)==null?0:O.isPublished)},
then:function(){return _.t(ps,{data:F})}})}}))},
else:function(){return _.t(_.aP,{data:function(){var D;return(D=I.data())==null?void 0:D.zeroStateData}},{contributorZeroStateViewModel:sgb})}}))},"si"),"yt-notes-wrapper-view-model",{props:{data:_.om}});var OKa=_.d(function(I){var y=_.o6(I,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,ariaLabel:void 0,timePickerData:void 0,hasError:!1}),D=y.label,F=y.text,R=y.placeholder,O=y.hint;I=y.rows;var w=y.overflowStyle,v=y.outline,P=y.disabled,K=y.disableNewLines,r=y.characterLimit,N=y.validation,h=y.onInput,x=y.ariaLabel,q=y.timePickerData,X=y.hasError,f=_.DF("textarea");y=_.J(_.N4(function(){return F()}));
var m=y.next().value,z=y.next().value;y=_.J(_.$M(!1,void 0,"Z8Zese"));var B=y.next().value,C=y.next().value,H=function(){C(!0)},e=function(){C(!1)};
_.LR(function(){var yg=f.value,eW=w(),oe=m();eW==="expand-vertically"&&oe&&LCb(yg);f.value.addEventListener("focusin",H);f.value.addEventListener("focusout",e)});
_.tI(function(){f.value.removeEventListener("focusin",H);f.value.removeEventListener("focusout",e)});
var T=function(){var yg;return(yg=N())==null?void 0:yg.validate(m())},L5=function(){return r()&&!T()&&m().length>r().maxChars},vH=function(){return!!T()||L5()||X()};
y=_.YY(function(yg){if(!yg.currentTarget)return!1;yg=yg.currentTarget;z(yg.value);w()==="expand-vertically"&&LCb(yg);h==null||h(yg.value);return!0});
var u_=_.YY(function(yg){K()&&yg.key==="Enter"&&yg.preventDefault();return!1}),jW=_.YY(function(){f.value.focus()}),xA=function(){return R()||D()},dq={},$A={},BH={},jf={};
return _.t("textarea-shape",{class:_.XH("ytStandardsTextareaShapeHost",(dq.ytStandardsTextareaShapeTimePicker=function(){var yg;return(yg=q())==null?void 0:yg.useTimePickerStyles},dq))},_.t("div",{class:_.XH("ytStandardsTextareaShapeTextareaContainer",($A.ytStandardsTextareaShapeTextareaContainerOutline=v,$A.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=P,$A.ytStandardsTextareaShapeTextareaContainerOutlineError=vH,$A)),
"on:click":jW},_.t("label",{class:_.XH("ytStandardsTextareaShapeLabel",(BH.ytStandardsTextareaShapeLabelFocused=B,BH.ytStandardsTextareaShapeLabelDisabled=P,BH.ytStandardsTextareaShapeLabelError=function(){return vH()&&!P()},BH.ytStandardsTextareaShapeLabelHidden=function(){return!B()&&!m()&&!!xA()},BH))},D),_.t("div",{class:_.XH("ytStandardsTextareaShapePlaceholder",(jf.ytStandardsTextareaShapePlaceholderVisible=function(){return!B()&&!m()},jf)),
"aria-hidden":"true"},xA),_.t("textarea",{el:f,"aria-label":x,class:"ytStandardsTextareaShapeTextarea",rows:I,disabled:P,placeholder:xA,"prop:value":m,"on:input":y,"on:keydown":u_})),_.t(_.U,{cond:function(){return O()&&!vH()},
then:function(){var yg={};return _.t("div",{class:_.XH("ytStandardsTextareaShapeHint",(yg.ytStandardsTextareaShapeHintDisabled=P,yg))},_.t("div",{class:"ytStandardsTextareaShapeHintHintMessage"},O))}}),_.t(_.U,{cond:T,
then:function(){return _.t(Rw8,{disabled:P},_.t("div",{class:"ytStandardsTextareaShapeErrorMessage"},T))}}),_.t(_.U,{cond:r,
then:function(yg){return _.t(_.U,{cond:L5,then:function(){return _.t(Rw8,{disabled:P},_.t("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return yg().errorMessage}),_.t("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return m().length+"/"+yg().maxChars}))}})}}))},"ti");
OKa.idomCompat={callbacks:{onInput:!0}};var Rw8=_.d(function(I){var y={};return _.t("div",{class:_.XH("ytStandardsTextareaShapeError",(y.ytStandardsTextareaShapeErrorDisabled=I.disabled,y)),role:"alert"},_.t(_.mj,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),I.children)},"ui");var LvZ=_.d(function(I){var y=I.data;return _.t("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.t(OKa,{text:I.text,label:function(){var D;return(D=y().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=y().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=y().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=y().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=y().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:I.disabled,disableNewLines:function(){var D;return(D=y().displayProperties)==null?void 0:D.disableNewLines},
onInput:I.onInput,characterLimit:I.characterLimit,validation:I.validation,rows:function(){var D;return(D=y().displayProperties)==null?void 0:D.rows}}))},"vi");var JEo=_.d(function(I){var y=I.data;return _.t("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.t(OKa,{text:I.text,label:function(){var D;return(D=y().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=y().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=y().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=y().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=y().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var D;return(D=y().displayProperties)==null?void 0:D.disableNewLines},
onInput:I.onInput,characterLimit:I.characterLimit,validation:I.validation,rows:function(){var D;return(D=y().displayProperties)==null?void 0:D.rows}}))},"wi");var wse=_.d(function(I){var y=_.J(_.N4(function(){var vH,u_;return((vH=I.data().structuredContextNoteFormSchema)==null?0:(u_=vH.initialValues)==null?0:u_.noteBody)?I.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),D=y.next().value,F=y.next().value;
y=_.J(_.N4(function(){I.data();return!1}));
var R=y.next().value,O=y.next().value;y=_.J(_.N4(function(){I.data();return!1}));
var w=y.next().value,v=y.next().value;y=_.J(_.N4(function(){var vH,u_;return((vH=I.data().structuredContextNoteFormSchema)==null?0:(u_=vH.initialValues)==null?0:u_.timestamp)?I.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var P=y.next().value,K=y.next().value;y=_.J(_.N4(function(){I.data();return!1}));
var r=y.next().value,N=y.next().value;y=_.J(_.N4(function(){var vH,u_;return((vH=I.data().structuredContextNoteFormSchema)==null?0:(u_=vH.initialValues)==null?0:u_.sources)?[I.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var h=y.next().value,x=y.next().value;y=_.J(_.N4(function(){I.data();return!1}));
var q=y.next().value,X=y.next().value;y=_.J(_.N4(function(){return!1}));
var f=y.next().value,m=y.next().value;_.LR(function(){var vH;MkZ((vH=I.data().structuredContextNoteFormSchema)==null?void 0:vH.id,{isSubmitting:f,onSubmit:function(){m(!0);var u_=rZY(D(),P(),h(),I.data()),jW=_.nR().resolve(_.MC);u_&&jW&&jW.resolveCommand(u_,{commandController:{onSuccess:function(){m(!1)}}})},
isValid:function(){return R()&&!w()&&!r()&&!q()}})});
var z=function(vH){if(vH!==void 0&&(F(vH),!R()&&vH.length>0&&O(!0),R())){var u_=vzR(I.data());if(u_){var jW=u_.minLength;u_=u_.maxLength;jW&&vH.length<jW?v(!0):u_&&vH.length>u_?v(!0):v(!1)}}},B=function(vH){if(vH!==void 0){K(vH);
if(vH.length>0){var u_,jW,xA,dq,$A=taT((u_=I.data())==null?void 0:(jW=u_.structuredContextNoteFormSchema)==null?void 0:(xA=jW.fieldSchemas)==null?void 0:(dq=xA.timestamp)==null?void 0:dq.validationSchema);if($A&&(u_=$A.regex)&&!(new RegExp(u_)).test(vH)){N(!0);return}}N(!1)}},C=function(vH){if(vH!==void 0){var u_=vH.split(/[ \n]/).map(function(jW){return jW.trim()});
x(u_);if(vH.length>0)for(vH=_.J(u_),u_=vH.next();!u_.done;u_=vH.next())if(!UYY(u_.value)){X(!0);return}X(!1)}},H=function(){return{validate:function(vH){if(R()){var u_=vzR(I.data());
if(u_){var jW=u_.minLength;u_=u_.translations;if(jW&&vH.length<jW)return u_==null?void 0:u_.minLengthErrorMessage}}}}},e=function(){var vH=vzR(I.data()),u_=vH==null?void 0:vH.maxLength,jW;
vH=vH==null?void 0:(jW=vH.translations)==null?void 0:jW.maxLengthErrorMessage;if(u_&&vH)return{maxChars:u_,errorMessage:vH}},T=function(){return{validate:function(vH){if(vH){var u_,jW,xA,dq,$A=taT((u_=I.data())==null?void 0:(jW=u_.structuredContextNoteFormSchema)==null?void 0:(xA=jW.fieldSchemas)==null?void 0:(dq=xA.timestamp)==null?void 0:dq.validationSchema);
if($A&&(u_=$A.regex,$A=$A.translations,u_&&!(new RegExp(u_)).test(vH)))return $A==null?void 0:$A.regexErrorMessage}}}},L5=function(){return{validate:function(vH){if(vH){var u_,jW,xA,dq,$A=KCQ((u_=I.data())==null?void 0:(jW=u_.structuredContextNoteFormSchema)==null?void 0:(xA=jW.fieldSchemas)==null?void 0:(dq=xA.sources)==null?void 0:dq.validationSchema);
if($A&&(u_=$A.translations,u_==null?0:u_.selectedErrorMessage))for(vH=vH.split(/[ \n]/).map(function(BH){return BH.trim()}),vH=_.J(vH),jW=vH.next();!jW.done;jW=vH.next())if(!UYY(jW.value))return vH=void 0,(vH=u_)==null?void 0:vH.selectedErrorMessage}}}};
return _.t("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.aP,{data:function(){var vH;return(vH=I.data())==null?void 0:vH.noteContents}},{textFormFieldViewModel:function(vH){return _.t(JEo,{data:vH.data,
onInput:z,validation:H,characterLimit:e})},
textFieldViewModel:function(vH){return _.t(LvZ,{data:vH.data,onInput:z,validation:H,characterLimit:e})}})),_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.aP,{data:function(){var vH;
return(vH=I.data())==null?void 0:vH.noteTimestamp}},{textFormFieldViewModel:function(vH){return _.t(JEo,{data:vH.data,
onInput:B,validation:T})},
textFieldViewModel:function(vH){return _.t(LvZ,{data:vH.data,onInput:B,validation:T})}})),_.t("div",{class:"ytStructuredContextNoteViewModelTextField"},_.t(_.aP,{data:function(){var vH;
return(vH=I.data())==null?void 0:vH.noteSources}},{textFormFieldViewModel:function(vH){return _.t(JEo,{data:vH.data,
onInput:C,validation:L5})},
textFieldViewModel:function(vH){return _.t(LvZ,{data:vH.data,onInput:C,validation:L5})}})))},"xi");
wse.idomCompat=!0;_.NK(wse,"yt-structured-context-note-view-model",{props:{data:_.om}});var vNa=_.d(function(I){var y=_.J(_.N4(function(){var O;if((O=I.controlled)==null?0:O.call(I))return[];var w;return(((w=I.data())==null?void 0:w.chips)||[]).map(function(v){v=_.u(v,_.UZ);if(v==null?0:v.selected)return jPT(v.chipValue)}).filter(function(v){return v!==void 0})})),D=y.next().value,F=y.next().value,R=function(O){var w=jPT(O.chipValue);
if(w!==void 0){var v;if((v=I.controlled)==null?0:v.call(I))return void I.controlled().onTap(w);O=D().includes(w)?[].concat(_.Td(D().filter(function(K){return K!==w}))):[].concat(_.Td(D()),[w]);
F(O);var P;if((P=I.uncontrolled)==null?0:P.call(I))I.uncontrolled().onUpdate(O)}};
return _.t("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.t(_.gZ,{each:function(){return I.data().chips||[]}},function(O){return _.t("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.t(_.kDz,{data:function(){return _.u(O,_.UZ)},
selected:function(){var w;if(w=_.u(O,_.UZ)){var v=jPT(w.chipValue);if(v!==void 0){var P;w=((P=I.controlled)==null?0:P.call(I))?I.controlled().selectedValues.includes(v):D().includes(v)}else w=void 0}else w=!1;return w},
callback:R}))}))},"yi");var SBy=_.d(function(I){var y=I.data;var D=function(){var v;return((v=y())==null?void 0:v.flowStateKey)||""},F=_.zj(_.oz,D),R=function(){var v;
return(v=_.u(F(),D1a))==null?void 0:v.chips},O=function(v){if(v!==void 0){var P=R()||[];
P=P.find(function(K){return K===v})?P.filter(function(K){return K!==v}):[].concat(_.Td(P),[v]);
P=Object.assign({},F(),{feedbackFormFlowState:Object.assign({},_.u(F(),D1a),{chips:P})});_.ry(_.WS("flowStateEntity",D(),P))}},w=function(){var v;
return _.u((v=y())==null?void 0:v.inputBox,cig)};
I=_.TQ(function(v){var P=w();P=!(P==null?0:P.maxChars)||v.length<=P.maxChars;v=Object.assign({},F(),{feedbackFormFlowState:Object.assign({},_.u(F(),D1a),{detail:v}),abuseReportFlowState:Object.assign({},_.u(F(),qs),{navigationEnabled:P})});_.ry(_.WS("flowStateEntity",D(),v))},150);
return _.t("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.t("div",{class:"ytFeedbackFormViewModelChips"},_.t(_.aP,{data:function(){var v;return(v=y())==null?void 0:v.chipSelection}},{chipSelectionFormFieldViewModel:function(v){return _.t(vNa,{data:v.data,
controlled:function(){return{selectedValues:R()||[],onTap:O}}})}})),_.t("div",{class:"ytFeedbackFormViewModelInputBox"},_.t(OKa,{text:function(){var v;
return(v=_.u(F(),D1a))==null?void 0:v.detail},
placeholder:function(){var v;return((v=w())==null?void 0:v.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var v=w();if(v&&v.maxChars)return{maxChars:v.maxChars,errorMessage:v.maxCharsExceededErrorMessage||""}},
onInput:I})),_.t("div",{class:"ytFeedbackFormViewModelFooterText"},_.t(_.jr,{text:function(){return y().footerText}})))},"zi");
SBy.idomCompat=!0;_.NK(SBy,"yt-feedback-form-view-model",{props:{data:_.om}});var tda=_.d(function(I){var y=I.data;var D=_.zj(Q1b,function(){return y().flowStateKey||""}),F=function(){var R;
_.OE((R=_.u(D(),qs))==null?void 0:R.navigationCommand)};
return _.t("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.t("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.t(_.aP,{data:function(){return y().cancelButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}}),_.t(_.aP,{data:function(){var R;
if(y().navButton){var O=Object;var w=O.assign,v=_.u(y().navButton,_.Kb),P=((R=_.u(D(),qs))==null?0:R.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",K,r;R=_.u((K=_.u(D(),qs))==null?void 0:K.navigationCommand,_.Iu);K=(r=_.u(R,_.lK))==null?void 0:r.url;O={buttonViewModel:w.call(O,{},v,{state:P,iconName:K?"OPEN_IN_NEW":""})}}else O=void 0;return O}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:F})}})))},"Ai");
tda.idomCompat=!0;_.NK(tda,"yt-report-form-bottom-bar-view-model",{props:{data:_.om}});var PsZ=_.d(function(I){var y=I.nextStep;return _.t("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.t("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.t(_.mj,{icon:function(){return y().iconName||""}})),_.t("div",null,_.t(_.jr,{text:function(){return y().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Bi"),KvR=_.d(function(I){var y=I.data;
var D,F=(D=_.nR().resolve(_.fR(_.cS)))==null?void 0:D(),R=_.zj(_.oz,function(){return y().flowStateKey||""});
return _.t("yt-report-form-confirmation-page-view-model",{class:function(){var O;return((O=_.u(R(),qs))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.t("div",{class:function(){var O;
return((O=_.u(R(),qs))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.t(_.UE,{data:function(){return F&&y().imageDark?y().imageDark:y().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.t("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return y().confirmationHeader}),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.t(_.jr,{text:function(){return y().confirmationText}})),_.t("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.t(_.jr,{text:function(){return y().lawEnforcementText}})),
_.t("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return y().whatToExpectHeader}),_.t(_.U,{cond:function(){return y().nextSteps},
then:function(O){return _.t("div",null,_.t(_.gZ,{each:O},function(w){return _.t(PsZ,{nextStep:w})}))}}),_.t(_.U,{cond:function(){return y().legalReportText},
then:function(O){return _.t("div",null,_.t(_.jr,{text:O,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ci");
KvR.idomCompat=!0;_.NK(KvR,"yt-report-form-confirmation-page-view-model",{props:{data:_.om}});var U91=_.d(function(I){var y=I.data;var D=function(){var O;return((O=_.u(y().inputBox,cig))==null?void 0:O.maxChars)||500},F=function(){return y().flowStateKey||""},R=_.zj(_.oz,F);
I=_.TQ(function(O){O=Object.assign({},R(),{flowFormState:{isValid:O.length<=D()},abuseReportFlowState:{userComments:O,navigationEnabled:!(O.length>D()),isReportFormDirty:!0}});_.Uv().dispatch(_.V0("flowStateEntity",F(),O))},150);
_.LR(function(){var O=Object.assign({},R(),{flowFormState:{isValid:!0}});_.Uv().dispatch(_.V0("flowStateEntity",F(),O))});
return _.t("yt-report-form-details-page-view-model",{class:function(){var O;return((O=_.u(R(),qs))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.t("h1",{class:function(){var O;
return((O=_.u(R(),qs))==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return y().detailsPageHeader}),_.t("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.t(_.jr,{text:function(){return y().bodyText}})),_.t("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.t(OKa,{label:function(){var O;
return((O=_.u(y().inputBox,cig))==null?void 0:O.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var O;return{errorMessage:((O=_.u(y().inputBox,cig))==null?void 0:O.maxCharsExceededErrorMessage)||"",maxChars:D()}},
onInput:I})))},"Di");
U91.idomCompat=!0;_.NK(U91,"yt-report-form-details-page-view-model",{props:{data:_.om}});var rE1=_.d(function(I){var y=I.data;var D=function(){return y().flowStateKey||""},F=_.zj(_.oz,D),R=function(){return _.u(F(),qs)};
return _.t("yt-report-form-reason-select-page-view-model",{class:function(){var O;return((O=R())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.t("h1",{class:function(){var O;
return((O=R())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return y().pageHeader}),_.t("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.t(_.jr,{text:function(){return y().bodyText}})),_.t("div",{class:function(){var O;
return((O=R())==null?void 0:O.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.t(yEy,{data:function(){return _.u(y().radioButtonGroup,$ko)},
onSelected:function(O,w){O=Object.assign({},F(),{abuseReportFlowState:Object.assign({},R(),{reasonKey:w.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:w.command})});_.ry(_.WS("flowStateEntity",D(),O))},
selectedKey:function(){var O;return(O=R())==null?void 0:O.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ei");
rE1.idomCompat=!0;_.NK(rE1,"yt-report-form-reason-select-page-view-model",{props:{data:_.om}});var jXT=_.d(function(I){var y=I.data;var D,F=(D=_.nR().resolve(_.fR(_.cS)))==null?void 0:D();return _.t("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.t("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.t(_.UE,{data:function(){return F&&y().imageDark?y().imageDark:y().image},
alt:""})),_.t("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.t("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return y().header}),_.t(_.jr,{text:function(){return y().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Fi");
jXT.idomCompat=!0;_.NK(jXT,"yt-report-form-sign-in-page-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;var D=_.dV(_.Cxn.talkToRecsStateSelector),F=function(){return y().titleSuperscript},R=function(){return y().answersShelf},O=function(){return y().videoShelf},w=function(){var T;
return(T=y().textInputPlaceholder)==null?void 0:T.content},v=function(){return y().showOpenTextInput},P=function(){var T;
return(T=y().textInputValue)==null?void 0:T.content},K=function(){return y().isMultiTurnFlow?y().resetButtonViewModel:void 0},r="",N=function(){return y().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
I=_.J(_.$M("",void 0,"GjDBze"));var h=I.next().value,x=I.next().value;I=_.J(_.$M(!1,void 0,"cHfsvd"));var q=I.next().value,X=I.next().value,f=function(){return{state:q()||h()?"active":"disabled",disabled:!(q()||h())}};
_.OJ(function(){if(v()){P()&&x(P());var T;if(!K()&&((T=D())==null?0:T.stepStates)){var L5;T=Object.keys((L5=D())==null?void 0:L5.stepStates);L5=T[T.length-1];var vH,u_;L5=(vH=D().stepStates[L5])==null?void 0:(u_=vH.userQuery)==null?void 0:u_.userQuery;_.ry($jC());L5&&m(L5)}}});
var m=function(T){var L5=y().onUpdateText;L5&&_.OE(L5,{form:{userQuery:T}});x(T)},z=_.TQ(function(T){m(T.target.value.trim())},150),B=_.YY(function(T){var L5;
r=(L5=T.target.value)==null?void 0:L5.trim();z(T);return!1}),C=_.YY(function(T){T.key==="Enter"&&(q()||h())&&(m(T.target.value.trim()),e());
return!1}),H=function(T,L5){X(L5);
if(L5){if(y().isMultiTurnFlow&&!r){var vH;m((vH=T==null?void 0:T.text)!=null?vH:"")}y().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&e()}else x(r)},e=function(){var T=_.u(y().nextButtonViewModel,_.Kb);
if(T==null?0:T.trackingParams){T=_.AC(T.trackingParams);var L5=_.VO();L5&&T&&_.t_(L5,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(T=y().onNextStepCommand)&&_.OE(T)};
I={};return _.t("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.t("div",{class:"ytwTalkToRecsTopCornerButton"},_.t(_.aP,{data:function(){return y().topCornerButton}},{buttonViewModel:_.My})),_.t("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.t("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.t(_.jr,{text:function(){return y().title}}),_.t(_.U,{cond:F,
then:function(){return _.t("sup",{class:"ytwTalkToRecsSuperScript"},_.t(_.jr,{text:F}))}})),_.t("div",{class:"ytwTalkToRecsSubtitle"},_.t(_.jr,{text:function(){return y().subtitle}})),_.t("div",{class:"ytwTalkToRecsResultsShelf"},_.t(_.U,{cond:R,
then:function(){return _.t(_.aP,{data:R},{chipsShelfViewModel:function(T){return _.t("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.t(_.iG,{data:T.data,callback:H,selectionBehavior:N}))}})}}),_.t(_.U,{cond:O,
then:function(){return _.t(_.aP,{data:O},{horizontalShelfViewModel:function(T){return _.t("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.t(_.r_,{data:T.data,thumbnailAspectRatio:0}))}})}})),_.t("div",{class:_.XH("ytwTalkToRecsRefinementContainer",(I.ytwTalkToRecsBottomMargin=function(){return y().isMultiTurnFlow},I))},_.t(_.U,{cond:v,
then:function(){return _.t("div",{class:"ytwTalkToRecsUserInputBox"},_.t("input",{type:"text",class:"ytwTalkToRecsTextInput",title:w,placeholder:w,value:h,"on:input":B,"on:keyup":C,maxlength:200}))}}),_.t(_.aP,{data:function(){return y().isMultiTurnFlow?y().nextButtonViewModel:void 0}},{buttonViewModel:function(T){return _.t("div",{class:"ytwTalkToRecsFlowControlButtons"},_.t(_.My,{data:T.data,
buttonOverrides:f}))}}),_.t(_.aP,{data:K},{buttonViewModel:function(T){return _.t("div",{class:"ytwTalkToRecsFlowControlButtons"},_.t(_.My,{data:T.data,
onClick:function(){var L5=_.u(y().resetButtonViewModel,_.Kb);m(h());(L5=L5==null?void 0:L5.onTap)&&_.OE(L5)}}))}}))))},"Hi"),"yt-talk-to-recs-view-model",{props:{data:_.om}});var ozZ={sources:[{clientResource:{imageName:"CHECK"}}]};var oN8=_.d(function(I){var y=_.DF("div");I=_.o6(I,{error:void 0});var D=I.data,F=I.error,R=I.onSelected;I=I.className;var O=_.J(_.N4(function(){return xYo(D())})),w=O.next().value,v=O.next().value;
Eze(D,function(x){v(x);var q,X,f=h21((q=D().options)==null?void 0:(X=q[x])==null?void 0:X.value,D().type);R==null||R(f);y.value.focus()});
O=_.YY(function(){if(!D().disabled){var x=D(),q=w(),X=y.value;x.options&&(x=NPy(x.options,q,x.label),_.nR().resolve(_.DP).openSheet({viewModel:x},X))}});
var P=_.lq5(),K=function(){return!!F()},r=function(){return!!D().disabled},N={},h={};
return _.t("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.t("div",{class:_.XH("ytDropdownViewModelDropdownContainer",I,(N.ytDropdownViewModelDropdownContainerErrorBorder=K,N.ytDropdownViewModelDropdownContainerDisabled=r,N)),"on:click":O,el:y,role:"combobox",tabindex:0,"on:keydown":P,"aria-invalid":K,"aria-disabled":r,"aria-describedby":function(){return K()?"dropdown-view-model-error":void 0}},_.t("div",{class:"ytDropdownViewModelText"},lXG(D,K,w),upy(D,w)),_.t("div",{class:_.XH("ytDropdownViewModelChevronDown",
(h.ytDropdownViewModelChevronDownDisabled=r,h))},_.t(_.mj,{icon:"CHEVRON_DOWN"}))),qP8(D,F))},"Ii");_.NK(_.d(function(I){var y=I.data;var D=function(R){var O=XSY(y());O.videoMetadata||(O.videoMetadata={});O.videoMetadata.sponsorshipsMetadata||(O.videoMetadata.sponsorshipsMetadata={});O.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(R)},F=function(R){var O=XSY(y());
O.scheduledRedirectMetadata||(O.scheduledRedirectMetadata={});O.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(R)};
return _.t("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.t("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.t("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.t(_.jr,{text:function(){return y().title}}),_.t(_.mj,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.t(_.jr,{text:function(){return y().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.t(_.aP,{data:function(){return y().tierChoices}},{dropdownViewModel:function(R){return _.t("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.t(oN8,{data:R.data,
onSelected:D}))}}),_.t(_.aP,{data:function(){return y().startTimeChoices}},{dropdownViewModel:function(R){return _.t("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.t(oN8,{data:R.data,
onSelected:F}))}}),_.t(_.jr,{text:function(){return y().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.t("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.t(_.aP,{data:function(){return y().scheduleButton}},{panelFooterViewModel:ns})))},"Ji"),"ytfz-schedule-fanzone-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;I=I.className===void 0?"":I.className;var D=_.zj(Q1b,function(){return y().flowStateEntityKey||""}),F={};
F=_.XH("ytFlowBottomBarViewModelFlowBottomBarButtons",(F.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},F));
var R={},O=_.XH("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",F,(R.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},R));
R={};var w=_.XH("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",F,(R.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},R));
F={};F=_.XH("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},F.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
F));
I=_.XH("ytFlowBottomBarViewModelHost",I);return _.t("yt-flow-bottom-bar-view-model",{class:I},_.t(_.U,{cond:function(){var v;return(v=y())==null?void 0:v.textSection},
then:function(v){return _.t("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.t(_.jr,{text:v}))}}),_.t("div",{class:F},_.t(_.aP,{data:function(){return y().secondaryButton}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
className:w})}}),_.t(_.aP,{data:function(){return y().primaryButton}},{buttonViewModel:function(v){return _.t(_.My,{data:v.data,
className:O,buttonOverrides:function(){var P;return{disabled:!((P=D())==null||!P.primaryButtonDisabled)}}})}})))},"Ki"),"yt-flow-bottom-bar-view-model",{props:{data:_.om,
className:_.rV}});var N9T="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),m8=function(){var I=_.k.apply(this,arguments)||this;I.enableScrollingFix=!0;I.bottomBar=!1;I.fitContent=!1;return I};
_.E(m8,_.k);_.L=m8.prototype;_.L.ready=function(){_.l("enable_pdp_icon_prefetch")&&yrY(_.nR().resolve(_.xO),0,N9T)};
_.L.focus=function(I){this.topBar?_.qw(this.topBar,I):this.paperDialog.focus(I)};
_.L.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20888_scroller&&(this.JSC$20888_scroller.dialogElement=this.paperDialog,this.JSC$20888_scroller.attached&&typeof this.JSC$20888_scroller.attached==="function"&&this.JSC$20888_scroller.attached())};
_.L.onDataChanged=function(){var I;this.fitContent=!((I=this.data)==null||!I.fitContent);var y;this.bottomBar=!((y=this.data)==null||!y.bottomBar)};
_.L.onProgressChanged=function(){var I,y,D=((y=(I=this.data)==null?void 0:I.progress)!=null?y:0)*100;this.progressElement.style.width=D+"%"};
_.L.isProgressHidden=function(){var I;return!((I=this.data)==null?0:I.progress)};
_.L.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(I){return I&&!I.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
m8.prototype.onProgressChanged=m8.prototype.onProgressChanged;m8.prototype.onDataChanged=m8.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],m8.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],m8.prototype,"enableScrollingFix",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],m8.prototype,"bottomBar",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],m8.prototype,"fitContent",void 0);_.W([_.a0("#progress"),_.A("design:type",HTMLElement)],m8.prototype,"progressElement",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],m8.prototype,"JSC$20888_scroller",void 0);_.W([_.a0("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],m8.prototype,"topBar",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],m8.prototype,"onDataChanged",null);_.W([_.ke("data.progress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],m8.prototype,"onProgressChanged",null);_.W([_.yd({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],m8);
_.a(m8,"ytd-flow-step-renderer",function(){if(BwT!==void 0)return BwT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return BwT=I},{mode:1});var Mb=function(I){this.resolveCommand=I;this.steps={}},hwb=function(I,y){y=_.J(y||[]);
for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=Object.values(D)[0],R=void 0;if((R=F)==null?0:R.stepId)I.steps[F.stepId]=D}},lAa=function(I,y){var D,F,R,O,w;
return _.S(function(v){if((D=I.state)==null||!D.currentStepId)return v.return(void 0);F=I.getCurrentStep();if(!F)return v.return(x9a(I));if(R=_.u(F,_.s2))I.logVEScreen(R),((O=R)==null?0:O.onStepStartCommand)&&I.resolveCommand((w=R)==null?void 0:w.onStepStartCommand,{});R&&y&&(I.logFlowEvent(R,y),y.steps&&!y.steps.includes(F)&&y.steps.push(F));return v.return(F)})};
Mb.prototype.back=function(){var I;(I=this.state)!=null&&I.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Mb.prototype.handleUpdateFlowCommand=function(I){I.steps&&hwb(this,I.steps);I.entityUpdateCommand&&this.resolveCommand(I.entityUpdateCommand,{});I.flowContinuationCommand&&(I=I.flowContinuationCommand)&&(this.getFlowContinuationCommand=I);this.awaitFlowContinuation&&(I=this.getCurrentStep(),this.awaitFlowContinuation(I),this.awaitFlowContinuation=void 0)};
Mb.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var x9a=function(I){return _.S(function(y){return I.getFlowContinuationCommand?y.return(new Promise(function(D){I.awaitFlowContinuation=D;I.getFlowContinuationCommand&&I.resolveCommand(I.getFlowContinuationCommand,{flow_state:I.state})})):y.return(Promise.resolve(void 0))})};
Mb.prototype.getCurrentStep=function(){var I;if((I=this.state)!=null&&I.currentStepId)return this.steps[this.state.currentStepId]};
Mb.prototype.logVEScreen=function(I){var y;((y=I.screenLoggingData)==null?0:y.screenVeType)&&_.d7(_.W4(),I.screenLoggingData.screenVeType)};
Mb.prototype.logFlowEvent=function(I,y){var D,F,R,O;((D=y.flowLoggingData)==null?0:D.eventNamespace)&&((F=I.flowEventData)==null?0:F.eventType)&&((R=I.flowEventData)==null?0:R.eventMetadata)&&((O=y.flowLoggingData)==null?0:O.flowType)&&(I=_.p0(y.flowLoggingData.eventNamespace,I.flowEventData.eventType,I.flowEventData.eventMetadata),_.mX().logFlowEvent(I,y.flowLoggingData.flowType))};
_.mD.Object.defineProperties(Mb.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.state)==null?void 0:I.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.state)!=null&&I.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(y,D){D.key&&D.value&&(y[D.key]=D.value);return y},{})}}});var zw=function(){var I=_.k.apply(this,arguments)||this;I.flowState=_.l("web_use_flow_state_manager")?void 0:new Mb(function(y,D){D=D===void 0?{}:D;_.M4.instance.resolveCommand(y,{form:{form:D,element:I.hostElement}})});
I.JSC$20899_flowStateManager=_.l("web_use_flow_state_manager")?_.nR().resolve(_.BN):void 0;I.currentTargetId="";I.initialState=!0;I.isLoading=!1;I.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"};I.containsTalkToRecs=!1;return I};
_.E(zw,_.k);_.L=zw.prototype;_.L.onPopupClosed=function(I){if(!I||this.hostElement===I.detail.popupRenderer){if(this.JSC$20899_flowStateManager){var y;((y=this.data)==null?0:y.flowStateEntityKey)&&this.JSC$20899_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.L.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.L.focus=function(I){var y=this;_.wy(function(){var D=_.XB(y.hostElement).querySelector("ytd-flow-step-renderer");(D==null?0:D.topBar)?D.focus(I):y.topBar&&_.qw(y.topBar,I)},1)};
_.L.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.L.computeTopBarHidden=function(I){var y;return!((y=_.u(I,_.s2))==null||!y.topBarOverride)};
_.L.onCurrentFlowChange=function(){if(this.JSC$20899_flowStateManager&&this.data&&this.flow){var I=Jdo(this.JSC$20899_flowStateManager,this.data),y;if(I&&((y=this.flow)==null?0:y.currentStepId)){I=S7a(I,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var D;!I&&((D=this.data)==null?0:D.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.L.observeData=function(){var I=this;if(this.JSC$20899_flowStateManager){var y=this.currentTargetId,D,F,R=(F=(D=this.data)==null?void 0:D.targetId)!=null?F:"";y!==R&&y&&wvY(this.JSC$20899_flowStateManager,y);this.currentTargetId=R;this.data&&vr1(Jdo(this.JSC$20899_flowStateManager,this.data),function(O){O&&(I.initialState=!1,I.currentFlowStep={flowStepRenderer:O},I.isLoading=!I.currentFlowStep,I.autofocusAndRefit(),I.updateContainsTalkToRecs(),I.logVEScreen(),I.logFlowEvent())})}};
_.L.dataChanged=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1){if(!I.flowState)return F.return();((y=I.data)==null?0:y.steps)&&hwb(I.flowState,I.data.steps);if((D=I.data)==null?0:D.flowContinuationCommand){var R=I.flowState,O=I.data.flowContinuationCommand;O&&(R.getFlowContinuationCommand=O)}return F.yield(lAa(I.flowState,I.data),2)}I.currentFlowStep=F.yieldResult;_.Cj(F)})};
_.L.flowChanged=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1){if(!I.flowState||!I.flow)return D.return();I.flowState.state=I.flow;I.isLoading=!0;return D.yield(lAa(I.flowState,I.data),2)}y=D.yieldResult;if(!y||I.flow.isLoading)return D.return();I.currentFlowStep=y;I.initialState=!1;I.isLoading=!1;I.autofocusAndRefit();I.updateContainsTalkToRecs();_.Cj(D)})};
_.L.logVEScreen=function(){var I,y,D=(I=_.u(this.currentFlowStep,_.s2))==null?void 0:(y=I.screenLoggingData)==null?void 0:y.screenVeType;D&&_.d7(_.nR().resolve(_.gi),D)};
_.L.logFlowEvent=function(){var I=_.u(this.currentFlowStep,_.s2),y,D,F,R,O,w;(this==null?0:(y=this.data)==null?0:(D=y.flowLoggingData)==null?0:D.eventNamespace)&&(this==null?0:(F=this.data)==null?0:(R=F.flowLoggingData)==null?0:R.flowType)&&(I==null?0:(O=I.flowEventData)==null?0:O.eventType)&&(I==null?0:(w=I.flowEventData)==null?0:w.eventMetadata)&&(I=_.p0(this.data.flowLoggingData.eventNamespace,I.flowEventData.eventType,I.flowEventData.eventMetadata),_.mX().logFlowEvent(I,this.data.flowLoggingData.flowType))};
_.L.updateContainsTalkToRecs=function(){var I,y=(I=_.u(this.currentFlowStep,_.s2))==null?void 0:I.content;this.containsTalkToRecs=!!y&&!!_.u(y,LBg)};
_.L.autofocusAndRefit=function(){var I=this,y=_.nR().resolve(_.fR(_.Q3)),D=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),F=document.querySelector("yt-report-form-confirmation-page-view-model"),R=document.querySelector("yt-report-form-details-page-view-model"),O=document.querySelector("yt-report-form-reason-select-page-view-model"),w=document.querySelector("yt-contributor-zero-state-view-model"),
v=document.querySelector("yt-structured-context-note-view-model"),P=document.querySelector("yt-note-view-model");(!D&&y&&y.isKeyBoardInUse()||F||!D&&R||!D&&O||!D&&(w||v||P))&&_.E6(this.hostElement);_.YC(this,function(){_.lj(I.hostElement,"yt-refit")})};
_.L.handleUpdateFlowCommand=function(I){this.flowState?this.data&&(I=_.u(I,_.Jwz),I.targetId===this.data.targetId&&(I.flowContinuationCommand&&(this.data.flowContinuationCommand=I.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(I),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(I)};
_.L.handleFlowNextStepCommand=function(I){this.JSC$20899_flowStateManager?this.ytComponentBehavior.resolveCommand(I):this.data&&this.flow&&this.flow.key&&(I=_.u(I,_.Fga),I.targetId===this.data.targetId&&(I=I.stepId||"",this.ytdReduxBehavior.dispatch(_.V0("flowStateEntity",this.flow.key,{currentStepId:I,stepIdStack:(this.flow.stepIdStack||[]).concat(I)}))))};
_.L.handleFlowPrevStepCommand=function(I){if(this.JSC$20899_flowStateManager)this.ytComponentBehavior.resolveCommand(I);else if(this.data&&this.flow&&this.flow.key&&(I=_.u(I,_.RRc),I.targetId===this.data.targetId)){var y=[].concat(_.Td(this.flow.stepIdStack||[]));y.length>1?(y.pop(),this.ytdReduxBehavior.dispatch(_.V0("flowStateEntity",this.flow.key,{currentStepId:y[y.length-1],stepIdStack:y}))):I.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(I.onFirstStepCommand)}};
_.L.handleYpcCancelRecurrenceCommand=function(I){if(this.data&&this.flow&&this.flow.key&&(I=_.u(I,SVQ),I.targetId===this.data.targetId&&I.endpointCommand)){var y=_.u(this.flow,tHY);y&&_.u(I.endpointCommand,_.x1f)&&(_.u(I.endpointCommand,_.x1f).feedbackData=y.surveyFeedback);this.ytComponentBehavior.resolveCommand(I.endpointCommand)}};
_.L.handlePartialUpdateFlowStateEntity=function(I){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.V0("flowStateEntity",this.flow.key,I,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
zw.prototype.flowChanged=zw.prototype.flowChanged;zw.prototype.dataChanged=zw.prototype.dataChanged;zw.prototype.observeData=zw.prototype.observeData;zw.prototype.onCurrentFlowChange=zw.prototype.onCurrentFlowChange;zw.prototype.onPopupClosed=zw.prototype.onPopupClosed;_.W([_.Q(_.Jl),_.A("design:type",Object)],zw.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],zw.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],zw.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zw.prototype,"initialState",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zw.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Object)],zw.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],zw.prototype,"currentFlowStep",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],zw.prototype,"onPopupClosed",null);
_.W([_.M({selectorArgs:["data.flowStateEntityKey"],selector:Q1b}),_.A("design:type",Object)],zw.prototype,"flow",void 0);_.W([_.a0("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],zw.prototype,"topBar",void 0);_.W([_.ke("data","flow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zw.prototype,"onCurrentFlowChange",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zw.prototype,"observeData",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],zw.prototype,"dataChanged",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zw.prototype,"containsTalkToRecs",void 0);_.W([_.Bp("flow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],zw.prototype,"flowChanged",null);_.W([_.yd({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],zw);
var uQY=_.Xf()(zw,"ytd-flow-root-renderer",function(){if(zEo!==void 0)return zEo;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return zEo=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var mYb=_.Cxn.talkToRecsStateSelector;_.NK(_.d(function(I){var y=function(){return _.u(I.data().flowRoot,Ws1)};
_.LR(function(){var D=y(),F=function(){},R=function(){};
if(D){var O,w,v,P=((v=_.u((O=y())==null?void 0:(w=O.steps)==null?void 0:w[0],_.s2))==null?void 0:v.stepId)||"";fXy(D,P);F=pS1(D);R=Mab(D)}_.tI(function(){var K=y();K&&_.oq().dispatch(_.WS("flowStateEntity",K.flowStateEntityKey));F();F=function(){};
R();R=function(){};
_.ry($jC())})});
return _.t("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.t(_.kZ,{contentId:function(){return I.data().contentId}},function(){return _.t("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.t(_.U,{cond:y,
then:function(D){return _.t(uQY,{data:D})}}))}))},"Li"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.om}});var qBe=_.d(function(I){var y=_.o6(I,{numberOfChips:5}).numberOfChips;return _.t("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.t(_.gZ,{each:function(){return Array(y==null?void 0:y())}},function(){return _.t("div",{class:"ytGhostChipShelfChip"})}))},"Mi");_.NK(_.d(function(){return _.t("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.t("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.t("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.t(qBe,null)),_.t(_.gUc,{data:{rows:1},isExploreHub:!0}))},"Ni"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.NK(_.d(function(I){var y=I.data;var D=I.standardUnitMinWidth;I=_.J((0,_.F3a)(y));var F=I.next().value,R=I.next().value,O=function(){var v,P=(v=F())==null?void 0:v.contents;return P==null||P.length===0},w=function(){R(Object.assign({},F(),{contents:[]}))};
return _.t("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.K4(_.pT({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var v=_.u(y().chipsShelf,FBg);if(v!=null&&v!=null&&v.autoselectChipOnVisible){var P,K,r=_.u(v==null?void 0:(P=v.contents)==null?void 0:P[(K=v.autoselectedChipIndex)!=null?K:0],_.UZ);r&&r.tapCommand&&_.OE(r.tapCommand)}}}))},_.t(_.kZ,{contentId:function(){return y().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.t("div",null,_.t("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.t(_.aP,{data:function(){return y().header}},{sectionHeaderViewModel:function(v){return _.t(_.BA,{data:v.data,
disableHorizontalPadding:!0})}})),_.t("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.t(_.aP,{data:function(){return y().chipsShelf}},{chipsShelfViewModel:function(v){return _.t(_.iG,{data:v.data,
callback:w,selectionBehavior:1})}})),_.t("div",null,_.t(_.U,{cond:O,
then:function(){return _.t("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.t(_.gUc,{data:{rows:1},isExploreHub:!0}))}}),_.t(_.aP,{data:function(){var v;
return(v=F())==null?void 0:v.contents}},{richShelfRenderer:function(v){return _.t(_.Nzc,{data:v.data,
isInnerShelf:!0,standardUnitMinWidth:D})}})))}))},"Oi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.om,
standardUnitMinWidth:_.om}});var kt=function(){return _.k.apply(this,arguments)||this};
_.E(kt,_.k);
kt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
kt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.W([_.Q(_.Jl),_.A("design:type",Object)],kt.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],kt.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kt.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Number)],kt.prototype,"standardUnitMinWidth",void 0);_.W([_.yd({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],kt);
_.a(kt,"ytd-rich-section-renderer",function(){if(STG!==void 0)return STG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return STG=I},{mode:_.Qd("kevlar_poly_si_batch_j029")?
1:2});var ENR;var CpZ=null;_.NK(_.d(function(I){return _.t("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.t("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.t(_.jr,{text:function(){return I.data().text}}),_.t("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Pi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.om}});var Gbe=_.d(function(I){var y=I.playerControlsProps;var D=I.isShortsPage;return _.t("yt-bigboard",null,_.t(_.U,{cond:function(){return y().isDragging},
then:function(){return _.t("div",{class:"ytBigboardStoryboardHost"},_.t(_.yOC,{progressBarProps:y,isShortsPage:D}))}}))},"Qi");
Gbe.idomCompat=!0;var d3={ACCOUNT_LABEL:vM("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:vM("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:vM("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:vM("AD_BADGE_HINT"),AD_BADGE_TEXT:vM("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:vM("ALL_CHANNELS_LABEL"),AMBIENT_MODE:vM("AMBIENT_MODE"),AMBIENT_MODE_OFF:vM("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:vM("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:vM("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:vM("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:vM("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:vM("APP_UPSELL_TITLE"),AUDIO_TRACK:vM("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:vM("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:vM("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:vM("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:vM("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:vM("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:vM("AUTO_ZOOM","Auto zoom"),BACK:vM("BACK"),CANCEL:vM("CANCEL"),CHANNEL_SWITCHER_LABEL:vM("CHANNEL_SWITCHER_LABEL"),CLOSE:vM("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:vM("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:vM("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:vM("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:vM("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:vM("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:vM("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:vM("COMMENT_MODAL_CONTENT"),CONFIRM_OK:vM("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:vM("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:vM("COPIED_TO_CLIPBOARD"),COPY:vM("COPY"),COPY_DEBUG_INFO:vM("COPY_DEBUG_INFO"),COPY_EMBED_CODE:vM("COPY_EMBED_CODE"),
COPY_LINK_LABEL:vM("COPY_LINK_LABEL"),COPY_VIDEO_URL:vM("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:vM("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:vM("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:vM("DELETE_FROM_DOWNLOADS"),DIALOG:vM("DIALOG"),DONE:vM("DONE"),DOWNLOAD:vM("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:vM("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:vM("FLAG_CONFIRM"),FLAG_CONTENT:vM("FLAG_CONTENT"),FLAG_LABEL:vM("FLAG_LABEL"),FLAG_TITLE:vM("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:vM("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:vM("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:vM("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:vM("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:vM("HIDE_SEARCH_FILTERS_LABEL"),HOME:vM("HOME","Home"),INVALID_RESPONSE_RECEIVED:vM("INVALID_RESPONSE_RECEIVED"),LIBRARY:vM("LIBRARY","Library"),LISTENING:vM("LISTENING"),LOADING:vM("LOADING"),LONG_PRESS_MIC_TO_SPEAK:vM("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:vM("LOOP"),MENU_DESKTOP:vM("MENU_DESKTOP"),
MENU_EXIT:vM("MENU_EXIT"),MENU_FEEDBACK:vM("MENU_FEEDBACK"),MENU_HELP:vM("MENU_HELP"),MENU_IMPRESSUM:vM("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:vM("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:vM("MENU_SETTINGS"),MENU_SIGN_IN:vM("MENU_SIGN_IN"),MENU_TITLE:vM("MENU_TITLE"),MENU_YOUR_DATA:vM("MENU_YOUR_DATA"),MORE_INFO:vM("MORE_INFO"),MORE_OPTIONS:vM("MORE_OPTIONS"),MUTE_VOLUME:vM("MUTE_VOLUME"),NEW_PLAYLIST:vM("NEW_PLAYLIST"),NEXT_VIDEO:vM("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:vM("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:vM("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:vM("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:vM("NOT_FOUND_TITLE"),NO_DOWNLOADS:vM("NO_DOWNLOADS"),NO_MIC_INPUT:vM("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:vM("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:vM("OOPS_MESSAGE"),OPEN_APP:vM("OPEN_APP"),OPEN_YOUTUBE:vM("OPEN_YOUTUBE"),PAUSE:vM("PAUSE"),PLAY:vM("PLAY"),PLAYER_CAPTION:vM("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:vM("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:vM("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:vM("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:vM("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:vM("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:vM("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:vM("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:vM("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:vM("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:vM("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:vM("PLAYER_MINIMIZE"),PLAYER_NEXT:vM("PLAYER_NEXT"),PLAYER_PAUSE:vM("PLAYER_PAUSE"),PLAYER_PLAY:vM("PLAYER_PLAY"),
PLAYER_PREVIOUS:vM("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:vM("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:vM("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:vM("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:vM("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:vM("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:vM("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:vM("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:vM("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:vM("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:vM("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:vM("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:vM("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:vM("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:vM("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:vM("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:vM("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:vM("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:vM("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:vM("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:vM("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:vM("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:vM("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:vM("PLAY_ALL"),PLEASE_FIX_ERRORS:vM("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:vM("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:vM("PREVIOUS_VIDEO"),PRIVACY_POLICY:vM("PRIVACY_POLICY"),RELOAD:vM("RELOAD"),REQUIRED_LABEL:vM("REQUIRED_LABEL"),SAVE_PLAYLIST:vM("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:vM("SCRUB_SLIDE_USER_EDU"),SEARCH:vM("SEARCH","Search"),
SEARCH_APPEND_LABEL:vM("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:vM("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:vM("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:vM("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:vM("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:vM("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:vM("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:vM("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:vM("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:vM("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:vM("SEEK_SLIDER"),SETTINGS_LABEL:vM("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:vM("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:vM("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:vM("SHOW_LESS"),SHOW_MORE:vM("SHOW_MORE"),SHOW_PLAYER_CONTROLS:vM("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:vM("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:vM("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:vM("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:vM("SIGN_IN_ON_WEB"),STABLE_VOLUME:vM("STABLE_VOLUME"),STABLE_VOLUME_OFF:vM("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:vM("STABLE_VOLUME_ON"),STATS_FOR_NERDS:vM("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:vM("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:vM("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:vM("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:vM("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:vM("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:vM("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:vM("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:vM("TIMESTAMP_SECONDS"),TOGGLE_OFF:vM("TOGGLE_OFF"),TOGGLE_ON:vM("TOGGLE_ON"),TRENDING:vM("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:vM("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:vM("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:vM("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:vM("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:vM("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:vM("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:vM("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:vM("VIDEO_LINK_LABEL")};var Xs8=_.d(function(I){var y=I.playerApi;I=_.DF("button",function(F){Sd(F,36843)});
var D=vM("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.t("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.t("button",{el:I,class:"ytPlayerControlsJumpForwardButtonButton",title:D,"aria-label":D,"on:click":_.YY(function(){tE(36843);y&&y().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.t("span",null,_.t(_.mj,{icon:"FAST_FORWARD"}))))},"Ri");var QX1=_.d(function(I){var y=I.appApi;I=_.DF("button",function(F){Sd(F,62946)});
var D=vM("OPEN_IN_MINIPLAYER");return _.t("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.t("button",{el:I,class:"ytMiniplayerButtonButton",title:D,"aria-label":D,"on:click":_.YY(function(){tE(62946);var F,R;(R=(F=y()).openInMiniplayer)==null||R.call(F);return!1})},_.t(_.mj,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Si");var YB8=_.d(function(I){var y=I.playerApi;I=_.DF("button",function(O){Sd(O,142812)});
var D=_.J(_.$M(!1,void 0,"eOMRAb")),F=D.next().value,R=D.next().value;D=function(){return vM("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(F()?1:2)})};
return _.t("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.t("button",{el:I,class:"ytPlaybackSpeedButtonButton",title:D,"aria-label":D,"on:click":_.YY(function(){tE(142812);if(y){var O=y(),w=F();O.setPlaybackRate(w?1:2);R(!F())}return!1})},_.t("span",null,_.t(_.mj,{icon:function(){return F()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ti");var fAa=_.d(function(I){var y=I.title;var D=I.ariaLabel;var F=I.icon;var R=I.command;var O=I.visualElementId;I=_.DF("button",function(w){O&&Sd(w,O())});
return _.t("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.t("button",{el:I,class:"ytdThumbnailOverlayButtonButton",title:y,"aria-label":D,"on:click":_.YY(function(){O&&tE(O());R&&_.nR().resolve(_.MC).resolveCommand(R())})},_.t(_.mj,{icon:F})))},"Ui");var nNy=["en-CA","en","es-MX","fr-CA"];var psG=_.d(function(I){var y=_.o6(I,{isOverlay:!1,isModern:!1}),D=y.captionIconType,F=y.onClick;I=y.ariaLabel;var R=y.ariaPressed,O=y.isOverlay,w=y.isModern;y=_.DF("button",function(K){Sd(K,127299)});
var v=_.YY(function(K){tE(127299);F==null||F(K);return!1}),P={};
return _.t("ytm-closed-captioning-button",{class:_.XH("ytmClosedCaptioningButtonHost",(P.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return D()===-1&&O()},P.ytmClosedCaptioningButtonIconDisabled=function(){return D()===-1&&!O()},P))},_.t("button",{el:y,
class:"ytmClosedCaptioningButtonButton",title:I,"aria-label":I,"aria-pressed":R,"on:click":v},_.t(_.mj,{icon:function(){var K="",r=w();var N=r?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";r=r?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var h=_.a1().get("hl");N=!h||nNy.includes(h)?N:r;r=D();switch(r){case -1:case 0:K=N;break;case 1:K=N+"_FILLED";break;default:_.ya(r)}return K}})))},"Vi");
psG.idomCompat={callbacks:{onClick:!0}};var vs="";var m9R=_.d(function(I){var y=I.playerControlsProps,D=I.onClickFn;I=_.su(function(){var O=y(),w=-1;O.captionsAvailable&&(w=O.captionsEnabled?1:0);return w},void 0,"MZ0Wqe");
var F=_.su(function(){var O=y();return O.captionsAvailable?_.zC(O.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.zC("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),R=_.su(function(){var O=y();
O=O.captionsAvailable?O.captionsEnabled:void 0;return O},void 0,"fhuQRe");
return _.t("yt-closed-captions-toggle-button",null,_.t(psG,{captionIconType:I,ariaLabel:F,ariaPressed:R,onClick:function(O){var w=y();if(w.captionsAvailable){var v=w.playerApi;if(v){var P=w.playerApi;if(P){var K=vs;if(K){P=P.getOption("captions","track");var r;vs=(r=P?P.displayName:null)!=null?r:K}else s1G(P)?(K=_.FRS(P),vs=K.length?(r=ZEQ(K))?r.displayName:K[0].displayName:""):vs=""}gIy(v);_.l("mweb_disable_set_state_captions_killswitch")&&w.setState({captionsEnabled:!w.captionsEnabled})}}var N,
h;(h=(N=w.appApi).showCaptionsToggleToast)==null||h.call(N,w);D==null||D(O)},
isOverlay:!0}))},"Wi");var Mda=_.d(function(I){var y=I.data;return _.t("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.t(_.PQ,{data:function(){return{type:17,text:_.Kyq(y().label)}}}))},"Xi");var zwZ=_.d(function(I){var y=_.XH("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return I.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return I.size()==="small"?I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.t("animated-seek-arrows",{class:_.XH("ytPlayerControlsAnimatedSeekArrowsHost")},_.t("span",{class:y}),_.t("span",{class:y}),_.t("span",{class:y}))},"Yi");
zwZ.idomCompat=!0;var kba=_.d(function(){var I=_.zC("PLAYER_SECONDS",{seconds_placeholder:"30"}),y=_.J(_.$M(!1,void 0,"iRJu8c")),D=y.next().value,F=y.next().value,R=_.J(_.$M(!1,void 0,"MPnizf"));y=R.next().value;var O=R.next().value;R={};var w=_.XH("jumpForwardOverlayOverlay",(R.jumpForwardOverlayOverlayHidden=y,R));_.LR(function(){var v=null,P=null,K=function(){v!==null&&_.Tr().cancelJob(v);P!==null&&_.Tr().cancelJob(P);O(!0);F(!0);_.qK(_.Tr(),function(){O(!1)});
v=_.qK(_.Tr(),function(){O(!0);P=_.qK(_.Tr(),function(){F(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",K);_.tI(function(){window.removeEventListener("jump-forward-clicked",K)})});
return _.t("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.t(_.U,{cond:D,then:function(){return _.t("div",{class:w},_.t(zwZ,{direction:1,size:"large"}),_.t("div",null,I))}}))},"Zi");var d9a=d3.MUTE_VOLUME,aAb=d3.UNMUTE_VOLUME,cEG=_.d(function(I){var y=I.muteIconType;var D=I.onClick;var F=I.useOutlineIcon;var R=I.useDelhiIcons;I=_.DF("button",function(v){Sd(v,28662)});
var O=function(){var v=y(),P=F==null?void 0:F(),K=R==null?void 0:R(),r="",N="";switch(v){case -1:case 0:r=P?"VOLUME_OFF":K?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";N=aAb;break;case 1:r=P?"VOLUME_UP_OUTLINE":K?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";N=d9a;break;case 2:r=P?"VOLUME_DOWN_OUTLINE":K?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";N=d9a;break;default:_.ya(v)}return{iconName:r,ariaLabel:N}},w=function(){return O().ariaLabel};
return _.t("ytm-mute-button",{class:"ytmMuteButtonHost"},_.t("button",{el:I,class:"ytmMuteButtonButton",title:w,"aria-label":w,"on:click":_.YY(function(v){tE(28662);D==null||D(v);return!1})},_.t("span",null,_.t(_.mj,{icon:function(){return O().iconName}}))))},"$i");var WvG=_.d(function(I){var y=I.volumeProps;var D=I.onClickFn;var F=I.useOutlineIcon;var R=I.useDelhiIcons;return _.t("yt-mute-toggle-button",null,_.t(cEG,{muteIconType:function(){var O=y();return O.volumeMuted||O.volume===0?0:O.volume>50?1:2},
onClick:function(O){var w=y().playerApi;w&&(w.isMuted()?w.unMute():w.mute(!1));D==null||D(O)},
useOutlineIcon:function(){return!(F==null||!F())},
useDelhiIcons:function(){return!(R==null||!R())}}))},"aj");
WvG.idomCompat=!0;var CsT=_.d(function(I){var y=I.data;var D=_.DF("ytm-paid-content-overlay-renderer");return _.t("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:D,"on:animationend":_.YY(function(){D.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.t(_.Yp,{command:function(){return y().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.t(_.U,{cond:function(){var F;return(F=y().icon)==null?void 0:F.iconType},
then:function(){return _.t("span",null,_.t(_.mj,{icon:function(){var F;return(F=y().icon)==null?void 0:F.iconType}}))}}),_.t("div",{class:"ytmPaidContentOverlayText"},_.t(_.jr,{text:function(){return y().text}})),_.t(_.U,{cond:function(){return y().navigationEndpoint},
then:function(){return _.t(_.mj,{icon:"CHEVRON_RIGHT"})}})))},"bj");
CsT.idomCompat=!0;var PMa=[].concat(_.Td([{register:function(I){var y=LKg(I),D;(D=I().playerApi)==null||D.addEventListener("onVolumeChange",y);return function(){}}},
{register:function(I){var y=JUZ(I);I=I().playerApi;I==null||I.addEventListener("captionschanged",y);I==null||I.addEventListener("captionssettingschanged",y);I==null||I.addEventListener("onCaptionsTrackListChanged",y);return function(){}}}]),[{register:function(I){var y=D5g(I),D;
(D=I().playerApi)==null||D.addEventListener("onStateChange",y);return function(){}}},
{register:function(I){var y=FKT(I),D;(D=I().playerApi)==null||D.addEventListener("onPlaybackRateChange",y);return function(){}}},
{register:function(I){var y=RbR(I),D;(D=I().playerApi)==null||D.addEventListener("onVideoDataChange",y);return function(){}}},
{register:function(I){var y=OVR(I),D,F;(D=I())==null||(F=D.playerApi)==null||F.addEventListener("onVideoProgress",y);return function(){}}}]);var B9o=_.d(function(I){var y=I.data;var D=function(){return _.zC("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+y().playbackRate})};
return _.t(_.U,{cond:function(){return y().playbackRate&&y().playbackRate!==1},
then:function(){return _.t("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.t("div",{class:"ytPlaybackRateOverlayOverlay"},_.t(zwZ,{direction:1,size:"small"}),_.t("div",{class:"ytPlaybackRateOverlayLabel"},D)))}})},"dj");var iKg=_.d(function(I){var y=I.data;return _.t("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.t(_.U,{cond:function(){var D,F=(D=y())==null?void 0:D.playerResponse,R;return F==null?void 0:(R=F.paidContentOverlay)==null?void 0:R.paidContentOverlayRenderer},
then:function(D){return _.t(CsT,{data:D})}}))},"fj"),AE8=_.d(function(I){var y=I.props;
var D=I.data;var F=I.options;var R=function(){var K,r,N,h;return(K=D())==null?void 0:(r=K.playerResponse)==null?void 0:(N=r.playerConfig)==null?void 0:(h=N.inlinePlaybackConfig)==null?void 0:h.showAudioControls},O=function(){var K,r;
if(R()&&((K=F())==null?void 0:(r=K.additionalButton)==null?void 0:r.button)!==void 0){var N,h,x;K=(N=D())==null?void 0:(h=N.playerApi)==null?void 0:(x=h.getSize())==null?void 0:x.height;if(!(K===void 0||K<180)){var q,X;return(q=F())==null?void 0:(X=q.additionalButton)==null?void 0:X.button}}},w=function(){var K,r;
return(K=F())==null?void 0:(r=K.additionalButton)==null?void 0:r.thumbnailOverlayButtonRenderers},v=function(){var K,r;
return(K=F())==null?void 0:(r=K.additionalButton)==null?void 0:r.thumbnailOverlayButtonViewModels},P=function(){var K=[_.t(WvG,{volumeProps:y})],r;
((r=F())==null?0:r.hideCaptionsToggleButton)||K.push(_.t(m9R,{playerControlsProps:y}));O()===1&&K.push(_.t(Xs8,{playerApi:function(){return y().playerApi}}));
O()===2&&K.push(_.t(QX1,{appApi:function(){return y().appApi}}));
O()===3&&K.push(_.t(YB8,{playerApi:function(){return y().playerApi}}));
r=w();if(O()===4&&r){r=_.J(r);for(var N=r.next(),h={};!N.done;h={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$630:void 0},N=r.next()){N=N.value;h.tooltip$jscomp$3=N.tooltip;var x=void 0,q=void 0;h.ariaLabel$jscomp$20=((x=N.accessibility)==null?void 0:(q=x.accessibilityData)==null?void 0:q.label)||h.tooltip$jscomp$3;x=void 0;h.icon$jscomp$54=(x=N.icon)==null?void 0:x.iconType;h.command$jscomp$630=N.command;h.tooltip$jscomp$3&&h.ariaLabel$jscomp$20&&h.icon$jscomp$54&&
K.push(_.t(fAa,{title:function(X){return function(){return X.tooltip$jscomp$3}}(h),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$20}}(h),
icon:function(X){return function(){return X.icon$jscomp$54}}(h),
command:function(X){return function(){return X.command$jscomp$630}}(h)}))}}r=v();
if(O()===4&&r)for(r=_.J(r),N=r.next(),h={};!N.done;h={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$631:void 0,trackingParamsVeType:void 0},N=r.next())N=N.value,h.tooltip$jscomp$4=N.title,h.ariaLabel$jscomp$21=N.accessibilityText||h.tooltip$jscomp$4,h.icon$jscomp$55=N.iconName,h.command$jscomp$631=_.yz(N.onTap),q=x=void 0,h.trackingParamsVeType=((x=N.loggingDirectives)==null?0:x.trackingParams)?(q=V48(_.ZC(N.loggingDirectives.trackingParams)))==null?void 0:
_.lD(q,2):void 0,h.tooltip$jscomp$4&&h.ariaLabel$jscomp$21&&h.icon$jscomp$55&&K.push(_.t(fAa,{title:function(X){return function(){return X.tooltip$jscomp$4}}(h),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$21}}(h),
icon:function(X){return function(){return X.icon$jscomp$55}}(h),
command:function(X){return function(){return X.command$jscomp$631}}(h),
visualElementId:function(X){return function(){return X.trackingParamsVeType}}(h)}));
return K};
return _.t(_.U,{cond:R,then:function(){return _.t("div",{class:"ytInlinePlayerControlsTopRightControls"},_.t(_.gZ,{each:P},function(K){return _.t("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.t("div",{class:"ytInlinePlayerControlsButtonIcon"},K))}))}})},"gj"),HKe=_.d(function(I){var y=I.props;
var D=I.data;var F=I.options;I={};I=_.XH("ytInlinePlayerControlsBottomRightControls",(I.ytInlinePlayerControlsBottomRightControlsHidden=function(){var R;return vwZ(D(),F())&&((R=F())==null?void 0:R.insetProgressBar)&&(y().isHovering||y().isDragging)},I));
return _.t("div",{class:I},_.t($9a,{data:D}),_.t(_.U,{cond:function(){var R;return!((R=F())==null?0:R.hideTimeDisplay)},
then:function(){return _.t(bKC,{props:y,data:D})}}))},"hj"),$9a=_.d(function(I){var y=I.data;
return _.t(_.aP,{data:function(){var D;return TPg((D=y())==null?void 0:D.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Mda})},"ij"),bKC=_.d(function(I){var y=I.props;
var D=I.data;return _.t(_.U,{cond:function(){return y().isLive},
then:function(){return _.t(ewa,{props:y,data:D})},
else:function(){return _.t(T9b,{props:y,data:D})}})},"jj"),T9b=_.d(function(I){var y=I.props;
var D=I.data;var F=_.su(function(){var R;return sPy((R=D())==null?void 0:R.thumbnailOverlays)},void 0,"Pf9uIe");
return _.t("div",{class:_.XH("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return d3.PLAYER_TIME_ELAPSED+" "+_.fYt(y().playedTime)}},_.t(_.PQ,{data:function(){var R=_.fYt(y().videoDuration-y().playedTime);
return Object.assign({},{type:17,text:R},F())}}))},"kj"),sXb=_.d(function(I){I=I.badgeShapeData;
return _.t("div",{class:_.XH("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.t(_.PQ,{data:I}))},"lj"),ewa=_.d(function(I){var y=I.data;
I=_.su(function(){if(_.l("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var F,R=_.J(((F=y())==null?void 0:F.thumbnailOverlays)||[]);for(F=R.next();!F.done;F=R.next()){F=F.value;if(F.thumbnailOverlayTimeStatusRenderer||F.thumbnailOverlayBadgeViewModel)return F;var O=void 0;if((O=F.thumbnailBottomOverlayViewModel)==null?0:O.badges)if(F=F.thumbnailBottomOverlayViewModel.badges.find(function(w){return _.u(w,Htg)}))return F}}},void 0,"GPGpgc");
var D=_.su(function(){var F,R,O,w,v,P;return _.NwB((F=y())==null?void 0:(R=F.playerApi)==null?void 0:(O=R.getSize())==null?void 0:O.width,(w=y())==null?void 0:(v=w.playerApi)==null?void 0:(P=v.getSize())==null?void 0:P.height)},void 0,"OeIVKe");
return _.t(_.U,{cond:I,then:function(F){return _.t(_.aP,{data:F},{thumbnailOverlayTimeStatusRenderer:function(R){var O=R.data;R=_.su(function(){return _.wk5(O(),0)},void 0,"skoDC");
return _.t(sXb,{badgeShapeData:R})},
thumbnailBadgeViewModel:function(R){return _.t(_.XIG,{data:R.data,class:_.XH("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(R){return _.t(_.m$M,{data:R.data,thumbnailSize:D})}})},
else:function(){var F={type:18,text:d3.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.t(sXb,{badgeShapeData:function(){return F}})}})},"mj"),Vda=_.d(function(I){var y=I.props;
var D=I.data;var F=I.options;return _.t(_.JOb,{progressBarProps:y,config:function(){var R,O=_.u((R=D())==null?void 0:R.multiMarkersPlayerBar,_.AlG),w;R=((w=F())==null?0:w.insetProgressBar)?2:1;var v;w=(v=F())==null?void 0:v.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:R,chapterData:O,isInlinePlayback:!0,doSeekOnClick:w,playheadDotBehavior:w?1:0}}})},"nj");_.NK(_.d(function(I){var y=I.data;var D=I.appApi;var F=I.options;var R=yUo(y,w_Z(D));I={};D={};return _.t("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.t("div",{class:_.XH("ytInlinePlayerControlsDarkenedOverlay",(I.ytInlinePlayerControlsDarkenedOverlayShow=function(){return R().isHovering},I))}),_.t(kba,null),_.t(B9o,{data:R}),_.t(iKg,{data:y}),_.t(Gbe,{playerControlsProps:R,
isShortsPage:!1}),_.t("div",{class:_.XH((D.ytInlinePlayerControlsControlsHidden=function(){return R().isDragging},D))},_.t(AE8,{props:R,
data:y,options:F}),_.t(HKe,{props:R,data:y,options:F})),_.t(_.U,{cond:function(){return vwZ(y(),F())},
then:function(){return _.t(Vda,{props:R,data:y,options:F})}}))},"ej"),"yt-inline-player-controls",{props:{data:_.om,
appApi:_.rV,options:_.om}});var aH=function(){var I=_.k.apply(this,arguments)||this;I.opts=null;I.playerControlsData=null;I.playerControlsAppApi={openInMiniplayer:function(){I.openInMiniplayer()}};
I.playerControlsOptions={};I.noAnimation=!1;I.playbackIntentTriggered=!1;I.positionData=null;I.hidden=!0;I.active=!1;I.playing=!1;I.persistentPanelVisible=!1;I.videoPreviewDataIndex=0;I.JSC$20956_playerPromise=null;I.player=null;I.enableAudioControls=!1;I.hasBeenUnmuted=!1;I.captionsHaveBeenTurnedOff=!1;I.JSC$20956_playerEvents=new Map;I.videoPreviewFetchRequest=null;I.scheduledPreviewEndJobId=null;I.JSC$20956_preventProgressSaveTimer=null;I.watchEndpointStartTimeUpdaterInterval=null;I.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};I.windowOnBlurFn=function(){I.deactivate()};
return I};
_.E(aH,_.k);_.L=aH.prototype;
_.L.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.L.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$20956_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$20956_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$20956_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$20956_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.MX(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.MX(this,this.onScroll))};
_.L.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.MX(this,this.onScroll))};
_.L.onPageTypeChange=function(){this.deactivate()};
_.L.onWindowResized=function(){this.deactivate()};
_.L.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.L.onCaptionsChanged=function(I){I=!!I.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!I);this.setCaptionSize()};
_.L.setCaptionSize=function(){var I;if(this.active&&!this.captionsHaveBeenTurnedOff&&((I=this.player)==null?0:I.getCaptionWindowContainerId())){var y;(y=this.player)==null||y.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.L.currentPageAllowed=function(){return!this.isWatchPage};
_.L.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.l("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var I=this.positionData,y=I.initialTopPosition,D=I.initialHorizontalPosition;_.pg(this.hostElement,{"--ytd-video-preview-translate-left":I.finalHorizontalPosition-D+"px","--ytd-video-preview-translate-top":I.finalTopPosition-y+"px","--ytd-video-preview-original-top-position":y+
"px","--ytd-video-preview-original-horizontal-position":D+"px","--ytd-video-preview-initial-scale":"scale("+I.initialScale+")","--ytd-video-preview-width":I.videoPreviewWidth+"px","--ytd-video-preview-height":I.videoPreviewHeight+"px"});return!0};
_.L.isOutOfBounds=function(I){var y=I.initialHorizontalPosition+12;I=y+I.videoPreviewWidth>window.innerWidth;return y<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&y<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&y<72||I};
_.L.handleOpenVideoPreviewAction=function(I){var y=this,D;return _.S(function(F){if(!y.currentPageAllowed())return F.return(0);y.opts=I;return(D=y.alignVideoPreviewForAnimation(I.thumbnail))?F.return(y.activate()):F.return(0)})};
_.L.onMouseLeave=function(I){var y,D;(y=this.opts)==null||(D=y.mouseleaveCallback)==null||D.call(y);this.shouldDeactivateOnMouseLeave(I)&&this.deactivate()};
_.L.onScroll=function(){var I,y;((I=this.opts)==null?0:I.isAutoplay)&&((y=this.opts)==null?0:y.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.L.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.w2.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.L.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.L.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",aH.JSC$20955_DEFAULT_CLICK_LOCATION_BEHAVIOR,aH.JSC$20955_CLICK_LOCATION_ID_MAP)};
_.L.shouldDeactivateOnMouseLeave=function(I){I=I.relatedTarget;if(!I)return!0;var y;return(y=this.opts)!=null&&y.mediaRenderer?!_.QU(this.opts.mediaRenderer).contains(I):!0};
_.L.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.L.onPlaybackStart=function(){var I=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$20956_preventProgressSaveTimer=
_.qK(_.w2,function(){I.resetPreventProgressSaveTimer()},1E4);
var y;if((y=this.opts)==null?0:y.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.qK(_.w2,function(){I.hasMultipleVideoPreviews()?I.startPlaybackForNextVideo():I.deactivate()},this.opts.videoPreviewDurationMs);
var D;this.player.setGlobalCrop(((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.L.getRoundedCornersSize=function(){var I;if((I=this.opts)==null?0:I.roundedCornersSize){var y;return(y=this.opts)==null?void 0:y.roundedCornersSize}var D;if((D=this.opts)==null?0:D.enableRounding){var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="small")return 1;var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="medium")return 2;var O;if(((O=this.opts)==null?void 0:O.thumbnailSize)==="large")return 3}return _.l("web_imp_inset_progress_bar")?3:0};
_.L.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.L.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.L.onMediaContainerClick=function(I){this.isShortcutClick(I)||(this.navigateToWatch(I),I.preventDefault(),I.stopPropagation())};
_.L.activate=function(){var I=this,y,D,F,R,O,w,v,P,K;return _.S(function(r){switch(r.nextAddress){case 1:if(!I.currentPageAllowed())return r.return(0);D=(y=I.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint;F=_.Lt.instance;if(!D||!F)return r.return(0);I.playbackIntentTriggered=!0;((R=I.opts)==null?0:R.mediaRenderer)&&((O=I.opts)==null||!O.isAutoplay)&&$Ya(I.opts.mediaRenderer,function(){I.deactivate()});
_.YC(I,function(){I.revealPreviewUi()});
w={};_.l("enable_unknown_lact_fix_on_html5")&&(_.nR().resolve(_.cU),w.lact=_.m$());I.videoPreviewFetchRequest=aXT(F,I.getInlinePlaybackRequestData(I.videoPreviewData),w);_.nj(r,2);return r.yield(I.videoPreviewFetchRequest,4);case 4:v=r.yieldResult;if(((P=v)==null?void 0:(K=P.playabilityStatus)==null?void 0:K.status)==="OK")return r.return(I.handlePlayerResponse(v));throw Error("Jl");case 2:_.dj(r),I.deactivate();case 3:return r.return(1)}})};
_.L.getInlinePlaybackRequestData=function(I){var y,D=_.l("web_imp_player_mute_params")?((y=this.opts)==null?void 0:y.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:I.inlinePlaybackEndpoint,startPlaybackInMutedState:D}};
_.L.handlePlayerResponse=function(I){var y=this,D,F,R,O,w,v,P,K,r,N,h,x,q,X;return _.S(function(f){if(f.nextAddress==1){D=y.getInlinePlaybackVideoId();if(!(((F=I)==null?0:(R=F.videoDetails)==null?0:R.videoId)&&y.currentPageAllowed()&&y.playbackIntentTriggered&&y.opts&&D))return y.deactivate(),f.return(0);if(I.videoDetails.videoId!==D)return f.return(0);y.enableAudioControls=!!((O=I.playerConfig)==null?0:(w=O.inlinePlaybackConfig)==null?0:w.showAudioControls);I.trackingParams=y.getInlinePlaybackTrackingParams();
if(!y.inlinePlayer)return f.return(0);v={};if(K=_.u((P=y.videoPreviewData)==null?void 0:P.inlinePlaybackEndpoint,_.t9))v.watch_endpoint=K;if(y.videoPreviewData){var m,z=(m=_.u(y.videoPreviewData.inlinePlaybackEndpoint,_.t9))==null?void 0:m.startTimeSeconds;z!==void 0&&(I.playerConfig||(I.playerConfig={}),I.playerConfig.playbackStartConfig||(I.playerConfig.playbackStartConfig={}),I.playerConfig.playbackStartConfig.startPosition||(I.playerConfig.playbackStartConfig.startPosition={}),I.playerConfig.playbackStartConfig.startSeconds=
z,I.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(z*1E3))}y.inlinePlayer.loadVideoWithPlayerResponse(I,v);if(y.JSC$20956_playerPromise)return f.jumpTo(2);y.JSC$20956_playerPromise=y.inlinePlayer.getPlayerPromise();return f.yield(y.JSC$20956_playerPromise,3)}f.nextAddress!=2&&(r=f.yieldResult,r.setInlinePreview(!0),N=!_.l("web_imp_theater_bugfix"),r.setSizeStyle(!1,N),y.ytPlayerListenerBehavior.listenToPlayerEvents(r,y.JSC$20956_playerEvents),y.player=r,_.lj(y.hostElement,
"player-api-ready"));((h=y.opts)==null?0:h.showPlayerControls)&&y.videoPreviewData&&y.player&&(y.playerControlsData={playerResponse:I,isInlinePlayback:!0,thumbnailOverlays:y.videoPreviewData.thumbnailOverlays,playerApi:y.player},y.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!y.unroundCornersForPlayback,additionalButton:y.getAdditionalButtonType(y.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(x=y.opts)==null?void 0:x.hideTimeDisplay,hideScrubbingControls:(q=y.opts)==
null?void 0:q.hideScrubber,hideCaptionsToggleButton:(X=y.opts)==null?void 0:X.hideCaptionsToggleButton});return f.return(2)})};
_.L.revealPreviewUi=function(){var I=this;this.playbackIntentTriggered&&_.UVo(this,function(){I.hasThumbnailPositionChangedSinceTriggered()||(I.updateActiveState(!0),I.noAnimation=!1)})};
_.L.hasThumbnailPositionChangedSinceTriggered=function(){var I=this.positionData,y=this.getThumbnailPositionData();return(I==null?void 0:I.initialTopPosition)!==(y==null?void 0:y.initialTopPosition)||(I==null?void 0:I.initialHorizontalPosition)!==(y==null?void 0:y.initialHorizontalPosition)};
_.L.getThumbnailPositionData=function(){var I,y;if((y=this.opts)==null||!y.thumbnail)return null;y=this.opts.thumbnail;var D=((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?!1:!0;var F=y.getBoundingClientRect();I=F.width;y=F.height;var R=F.top+window.scrollY;F=F.left+window.scrollX;var O=D?Math.ceil(I):I;D=D?Math.ceil(y):y;var w=I/O;I={initialScale:w,initialTopPosition:R-12*w,finalTopPosition:R-12-(D-y)/2,initialHorizontalPosition:F-(12+(O-I)/2),finalHorizontalPosition:F-12-(O-I)/
2,videoPreviewWidth:O,videoPreviewHeight:D};return I};
_.L.updateActiveState=function(I){this.active=I;this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:I}))};
_.L.stopPlayer=function(I){I=I.resetWatchEndpointStartTime===void 0?!1:I.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(I)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.w2.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.L.deactivate=function(I){I=I===void 0?{}:I;I=I.resetWatchEndpointStartTime===void 0?!1:I.resetWatchEndpointStartTime;CpZ&&(CpZ.disconnect(),CpZ=null);this.stopPlayer({resetWatchEndpointStartTime:I});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.L.isValidThumbnailOverlayButton=function(I,y){I=I.thumbnailOverlayButtonRenderer;var D;return!!I&&!!I.tooltip&&!((D=I.icon)==null||!D.iconType)&&y.includes(I.icon.iconType)};
_.L.isValidThumbnailOverlayButtonViewModel=function(I,y){var D;I=_.u((D=I.thumbnailOverlayButtonViewModel)==null?void 0:D.overlayButton,_.Kb);return!!I&&!!I.title&&!!I.iconName&&y.includes(I.iconName)};
_.L.getAdditionalButtonType=function(I){var y=this;if(_.l("web_imp_fastforward_button"))return{button:1};if(_.l("web_imp_miniplayer_button"))return{button:2};if(_.l("web_imp_playback_speed_button"))return{button:3};var D=["BOX_STACK_3"],F=(I||[]).filter(function(O){return y.isValidThumbnailOverlayButton(O,D)}).map(function(O){return O.thumbnailOverlayButtonRenderer});
if(F.length)return{button:4,thumbnailOverlayButtonRenderers:F};var R=["BOX_STACK_3"];I=(I||[]).filter(function(O){return y.isValidThumbnailOverlayButtonViewModel(O,R)}).map(function(O){return _.u(O.thumbnailOverlayButtonViewModel.overlayButton,_.Kb)});
if(I.length)return{button:4,thumbnailOverlayButtonViewModels:I}};
_.L.allowCaptions=function(){var I;return!((I=this.opts)==null?0:I.forceCaptionsOff)};
_.L.allowUnmuting=function(){var I;return this.enableAudioControls&&!((I=this.opts)==null?0:I.forceMutedVolume)};
_.L.beginStartTimeUpdater=function(){var I=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.CR(function(){I.updateWatchEndpointStartTime()},1E3)};
_.L.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.L.resetPreventProgressSaveTimer=function(){this.JSC$20956_preventProgressSaveTimer!==null&&(_.w2.cancelJob(this.JSC$20956_preventProgressSaveTimer),this.JSC$20956_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.L.updateWatchEndpointStartTime=function(I){var y=this.videoPreviewData;if(this.player&&y!=null&&y.inlinePlaybackEndpoint&&!this.JSC$20956_preventProgressSaveTimer){I=I?0:Math.floor(this.player.getCurrentTime());var D=_.u(y.navigationEndpoint,_.t9);D&&(D.startTimeSeconds=I);if(y=_.u(y.inlinePlaybackEndpoint,_.t9))y.startTimeSeconds=I}};
_.L.isShortcutClick=function(I){return!!I&&(I.ctrlKey||I.shiftKey||I.metaKey)};
_.L.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.L.openInMiniplayer=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1){D=(y=I.videoPreviewData)==null?void 0:y.navigationEndpoint;if(!D)return F.return();_.bW().lockupActivation=!0;return F.yield(_.DBz(_.nR().resolve(_.OI),D),2)}_.bW().userActivation=!0;_.Cj(F)})};
_.L.navigateToWatch=function(I){var y,D=(y=this.videoPreviewData)==null?void 0:y.navigationEndpoint;if(D){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(D,I,!0);else{var F;_.l("web_thumbnail_to_watch_transition")&&((F=this.opts)==null?0:F.thumbnail)&&_.gLG(_.nR().resolve(_.et),this.opts.thumbnail);_.lj(this.hostElement,"yt-navigate",{endpoint:D})}this.deactivate()}};
_.L.getInlinePlaybackVideoId=function(){var I,y;return(y=_.u((I=this.videoPreviewData)==null?void 0:I.inlinePlaybackEndpoint,_.t9))==null?void 0:y.videoId};
_.L.getInlinePlaybackTrackingParams=function(){var I,y;return(I=this.videoPreviewData)==null?void 0:(y=I.inlinePlaybackEndpoint)==null?void 0:y.clickTrackingParams};
_.L.hasMultipleVideoPreviews=function(){var I;return!!(((I=this.opts)==null?0:I.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.L.startPlaybackForNextVideo=function(){var I;(I=this.opts)!=null&&I.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())};
_.mD.Object.defineProperties(aH.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.opts)==null?0:I.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.opts)==null||!I.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 I;if(Array.isArray((I=this.opts)==null?void 0:I.videoPreviewData)){var y;return(y=this.opts)==null?void 0:y.videoPreviewData[this.videoPreviewDataIndex]}var D;return(D=this.opts)==null?void 0:D.videoPreviewData}}});
aH.prototype.onIsAdsVideoChange=aH.prototype.onIsAdsVideoChange;aH.prototype.onInlinePreviewIsEnabledChange=aH.prototype.onInlinePreviewIsEnabledChange;aH.prototype.optsChanged=aH.prototype.optsChanged;aH.prototype.onMouseLeave=aH.prototype.onMouseLeave;aH.prototype.onPersistentPanelVisibleChange=aH.prototype.onPersistentPanelVisibleChange;aH.JSC$20955_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
aH.JSC$20955_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"}];_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],aH.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],aH.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],aH.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],aH.prototype,"componentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],aH.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.Xb.YtSparklesClickLocationBehavior),_.A("design:type",Object)],aH.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aH.prototype,"opts",void 0);_.W([_.M(),_.A("design:type",Object)],aH.prototype,"playerControlsData",void 0);_.W([_.M(),_.A("design:type",Object)],aH.prototype,"playerControlsAppApi",void 0);
_.W([_.M(),_.A("design:type",Object)],aH.prototype,"playerControlsOptions",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],aH.prototype,"noAnimation",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],aH.prototype,"hidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],aH.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],aH.prototype,"playing",void 0);
_.W([_.M({selector:_.cme}),_.A("design:type",Boolean)],aH.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.M(),_.A("design:type",String)],aH.prototype,"pagePath",void 0);_.W([_.M({selector:_.k2q}),_.A("design:type",Boolean)],aH.prototype,"isWatchPage",void 0);_.W([_.M({selector:_.LV.persistentPanelVisibleSelector}),_.A("design:type",Object)],aH.prototype,"persistentPanelVisible",void 0);
_.W([_.Y("videoPreviewData"),_.A("design:type",Object),_.A("design:paramtypes",[])],aH.prototype,"thumbnailData",null);_.W([_.Y("opts","active"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"hidePlayerControls",null);_.W([_.Y("opts"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"isAdsVideo",null);
_.W([_.Y("opts"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"roundedCornersSmall",null);_.W([_.Y("opts"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"roundedCornersMedium",null);_.W([_.Y("opts"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"roundedCornersLarge",null);
_.W([_.Y("opts"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aH.prototype,"unroundCornersForPlayback",null);_.W([_.Y("opts","videoPreviewDataIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],aH.prototype,"videoPreviewData",null);_.W([_.M(),_.A("design:type",Object)],aH.prototype,"videoPreviewDataIndex",void 0);_.W([_.a0("#inline-player"),_.A("design:type",Object)],aH.prototype,"inlinePlayer",void 0);
_.W([_.ke("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aH.prototype,"onPersistentPanelVisibleChange",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],aH.prototype,"onMouseLeave",null);_.W([_.Bp("opts"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aH.prototype,"optsChanged",null);
_.W([_.Bp("inlinePreviewIsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aH.prototype,"onInlinePreviewIsEnabledChange",null);_.W([_.ke("isAdsVideo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aH.prototype,"onIsAdsVideoChange",null);_.W([_.yd({is:"ytd-video-preview",disableElementRegistration:!0})],aH);
_.a(aH,"ytd-video-preview",function(){if(ENR!==void 0)return ENR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ENR=I},{mode:2});var ZKC;var cX=function(){var I=_.k.apply(this,arguments)||this;I.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};I.forceDarkTheme=!1;I.forceLightTheme=!1;I.dynamicTextHeight=94;I.hasOverflowButton=!1;I.isInfeedModernization=!1;return I};
_.E(cX,_.k);_.L=cX.prototype;_.L.computeUrlImg=function(I){if(I)return _.xY(I.thumbnails)};
_.L.getLogoHeight=function(I){return this.logoWithPadding(I)?"31":"24"};
_.L.getLogoClassName=function(I){return this.logoWithPadding(I)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.L.logoWithPadding=function(I){var y,D;return(I=(y=I.thumbnails)==null?void 0:(D=y[0])==null?void 0:D.height)&&I%31===0?!0:!1};
_.L.sendImpressionEndpoints=function(I){I.impressionEndpoints&&_.E$(this.hostElement,I.impressionEndpoints)};
_.L.observeBasicPalette=function(){var I,y,D=(I=this.data)==null?void 0:(y=I.colorData)==null?void 0:y.basicColorPaletteData;D?_.Af(this.hostElement,D):_.Af(this.hostElement,{})};
_.L.observeDataChanged=function(){var I;this.dynamicTextHeight=((I=this.data)==null?0:I.supplementalText)?74:94;var y;this.hasSupplementalText=!((y=this.data)==null||!y.supplementalText);var D,F,R,O;I=(D=this.data)==null?void 0:(F=D.actionButton)==null?void 0:(R=F.buttonRenderer)==null?void 0:(O=R.colorData)==null?void 0:O.basicColorPaletteData;var w,v,P;if(!((w=this.data)==null?0:(v=w.actionButton)==null?0:(P=v.buttonRenderer)==null?0:P.style)&&I){this.computeIsInfeedModernization(this.data)||(I.borderColor=
I.foregroundTitleColor);var K,r;this.set("data.actionButton.buttonRenderer",_.e$.unsafeClone((K=this.data)==null?void 0:(r=K.actionButton)==null?void 0:r.buttonRenderer))}};
_.L.observeDataForCounterfactual=function(){if(_.l("kevlar_banner_cf_extra_logging")){var I;((I=this.data)==null?0:I.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.L.computeSupplementalStyle=function(){var I;if((I=this.data)!=null&&I.supplementalText){var y,D,F;if((y=this.data)==null?0:(D=y.colorData)==null?0:(F=D.basicColorPaletteData)==null?0:F.foregroundActivatedColor)return I=_.Vp(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+I+"; --yt-endpoint-hover-color:"+I+"; --yt-endpoint-visited-color:"+I+"; --yt-formatted-string-bold-font-weight:700;"}};
_.L.computeForcedDarkTheme=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.actionButton)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.style,R,O,w;I=Y_G(((R=this.data)==null?void 0:(O=R.colorData)==null?void 0:(w=O.basicColorPaletteData)==null?void 0:w.backgroundColor)||0);return F&&I};
_.L.computeForcedLightTheme=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.actionButton)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.style,R,O,w;I=!Y_G(((R=this.data)==null?void 0:(O=R.colorData)==null?void 0:(w=O.basicColorPaletteData)==null?void 0:w.backgroundColor)||0);return F&&I};
_.L.computeHasOverflowButton=function(I){return!!I.overflowButton};
_.L.computeHasTitle=function(I){return!!I.title};
_.L.computeTitleMaxFontSize=function(I){return this.computeHasOverflowButton(I)?28:64};
_.L.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.L.computeIsInfeedModernization=function(){var I,y,D,F,R=(I=this.data)==null?void 0:(y=I.actionButton)==null?void 0:(D=y.buttonRenderer)==null?void 0:(F=D.colorData)==null?void 0:F.basicColorPaletteData;return(R==null?void 0:R.backgroundColor)===452984831||(R==null?void 0:R.backgroundColor)===218103808};
cX.prototype.observeDataForCounterfactual=cX.prototype.observeDataForCounterfactual;cX.prototype.observeDataChanged=cX.prototype.observeDataChanged;cX.prototype.observeBasicPalette=cX.prototype.observeBasicPalette;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],cX.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],cX.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],cX.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],cX.prototype,"hasSupplementalText",void 0);_.W([_.M(),_.A("design:type",Object)],cX.prototype,"dismissButtonOverrides",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Boolean)],cX.prototype,"hasTitle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.A("design:type",Object)],cX.prototype,"forceDarkTheme",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.A("design:type",Object)],cX.prototype,"forceLightTheme",void 0);_.W([_.M(),_.A("design:type",Object)],cX.prototype,"dynamicTextHeight",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Object)],cX.prototype,"hasOverflowButton",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.A("design:type",Object)],cX.prototype,"isInfeedModernization",void 0);_.W([_.ke("data.colorData.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cX.prototype,"observeBasicPalette",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cX.prototype,"observeDataChanged",null);_.W([_.ke("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cX.prototype,"observeDataForCounterfactual",null);_.W([_.yd({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],cX);
_.a(cX,"ytd-banner-promo-renderer",function(){if(ZKC!==void 0)return ZKC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ZKC=I},{mode:1});var DWo=_.d(function(I){var y=I.data;var D=I.hideDivider;var F=I.isChannelInfoCard;I={};return _.t("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.t("div",{class:_.XH("yt-profile-identity-info-view-model__frame",(I["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!y().channelBanner},I))},_.t(gNG,{profileIdentityInfoData:y}),_.t("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.t("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF})),_.t(IuT,{profileIdentityInfoData:y})),_.t(_.U,{cond:function(){return y().channelDescription},
then:function(R){var O={};return _.t("div",{class:_.XH((O["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(F==null||!F())},O["yt-profile-identity-info-view-model__channel-description"]=function(){return!(F==null?0:F())},O))},R)}}),_.t(ycy,{profileIdentityInfoData:y}),_.t(_.U,{cond:function(){return!(D==null?0:D())},
then:function(){return _.t("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"oj");
DWo.idomCompat=!0;var ycy=_.d(function(I){var y=I.profileIdentityInfoData;return _.t("div",{class:"yt-profile-identity-info-view-model__buttons"},_.t(_.gZ,{each:function(){return y().subscribeButton?[y().subscribeButton,y().channelAccess]:[y().channelAccess]}},function(D){return _.t("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.t("div",{class:"yt-profile-identity-info-view-model--button"},_.t(_.aP,{data:function(){return D}},{buttonViewModel:_.My,
subscribeButtonViewModel:_.Lc})))}))},"pj"),IuT=_.d(function(I){var y=I.profileIdentityInfoData;
return _.t("div",{class:"yt-profile-identity-info-view-model__trio"},_.t("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.t(FxQ,{profileIdentityInfoData:y}),_.t(_.aP,{data:function(){return y().threeDotMenu}},{buttonViewModel:_.My})),_.t(Rma,{profileIdentityInfoData:y}))},"qj"),FxQ=_.d(function(I){var y=I.profileIdentityInfoData;
return _.t("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.t("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return y().channelDisplayName}),_.t(_.U,{cond:function(){return y().verifiedOrOacBadge},
then:function(D){return _.t("div",{class:"yt-profile-identity-info-view-model__badge"},_.t(_.UE,{data:function(){return{thumbnails:[{url:D().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"rj"),gNG=_.d(function(I){var y=I.profileIdentityInfoData;
return _.t("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.t(_.aP,{data:function(){var D=y().channelBanner;if(D)return{imageBannerViewModel:{image:D.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(D){return _.t("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.t(_.jc,{data:D.data,
isPositionRelative:!0}))}}))},"sj"),Rma=_.d(function(I){var y=I.profileIdentityInfoData;
return _.t("div",{class:"yt-profile-identity-info-view-model__metadata"},_.t("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.t("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return y().channelHandle}),_.t(_.U,{cond:function(){return y().channelPronouns&&y().channelHandle},
then:function(){return _.t("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.t("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return y().channelPronouns})),_.t("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.t("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return y().leftOfBulletInfo}),_.t(_.U,{cond:function(){return y().leftOfBulletInfo&&y().rightOfBulletInfo},
then:function(){return _.t("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.t("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return y().rightOfBulletInfo})))},"tj");_.NK(DWo,"yt-profile-identity-info-view-model",{props:{data:_.om,hideDivider:_.om,isChannelInfoCard:_.om}});_.NK(_.joe,"yt-page-header-view-model",{props:{data:_.om,noPadding:_.om,enableBanner:_.om,cinematicContainerTopbarOffset:_.om,allowCinematicContainerOverflow:_.om,displayAsSidebar:_.om,displayAsPanel:_.om,alwaysUseMediumTextDescription:_.om}});var OwG=_.d(function(){return _.t("div",{class:_.XH("ytdGhostGridViewModelGhostCard")},_.t("div",{class:_.XH("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.t("div",{class:_.XH("ytdGhostGridViewModelDetails")},_.t("div",{class:_.XH("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.t("div",{class:_.XH("ytdGhostGridViewModelDetailsTextShell")},_.t("div",{class:_.XH("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.t("div",{class:_.XH("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"vj");_.NK(_.d(function(I){var y=I.data;var D=_.dV(_.gH);return _.t("ytd-ghost-grid-view-model",{class:_.XH("ytdGhostGridViewModelHost")},_.t(_.gZ,{each:function(){var F=Array,R;var O=((R=y().numRows)!=null?R:0)*D();return F(O)},
keyBy:"INDEX"},function(){return _.t(OwG,null)}))},"uj"),"ytd-ghost-grid-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;var D=function(){var R;return(R=y().numColumns)!=null?R:2},F=function(){return D()>1?3:2};
I={};return _.t("ytd-rich-grid-group",{class:_.XH("ytdRichGridGroupHost",(I.ytdRichGridGroupHostFirstColumn=function(){return y().colIndex===0},I)),
style:_.p4({"--ytd-rich-grid-group-num-columns":D,"--ytd-rich-grid-items-per-group":F})},_.t("div",{class:"ytdRichGridGroupContents"},_.t(_.aP,{data:function(){var R;return(R=y().contents)==null?void 0:R.slice(0,F())}},{richItemRenderer:function(R){return _.t(_.jIg,{data:R.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"wj"),"ytd-rich-grid-group",{props:{data:_.om}});var WX=function(){var I=_.k.apply(this,arguments)||this;I.resizeOnObserverInit=!1;I.isInlinePreviewDisabled=_.l("web_disable_inline_preview");I.disableStickyFilterBar=!1;I.transparentBackgroundChipsBar=!1;I.hideChipsBar=!1;I.isScrolled=!1;I.isWatchDefaultLayout=!0;I.continuationShowButton=!1;I.rowReducedHorizontalMargin=!1;I.useCompactList=!1;I.manualDownloadsPresent=!1;I.smartDownloadsPresent=!1;I.isOnline=!1;I.shouldRenderDownloadsBanner=!1;I.shouldRenderDownloadsBannerUpsell=!1;I.hasOptedIntoSmartDownloads=
!1;I.elementsPerRow=4;I.typographyBump=!1;I.slimItemsPerRow=1;I.pageLoadingFromNavigation=!1;I.resizeObserver=null;I.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"};I.rendererToTagNameMap=new Map(Object.entries(I.contentMapping()).map(function(y){var D=
_.J(y);y=D.next().value;D=D.next().value;return[y,D.component]}));
I.insertedContent=new Map;return I};
_.E(WX,_.k);_.L=WX.prototype;_.L.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var I=_.J(_.XB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=I.next();!y.done;y=I.next())y.value.useCompactList=this.useCompactList};
_.L.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var I=_.J(_.XB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),y=I.next();!y.done;y=I.next())y=y.value,y.sizing=this.sizing,y.typographyBump=this.typographyBump};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.L.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]]"}}}};
_.L.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},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.L.attached=function(){document.addEventListener("yt-page-type-changed",_.MX(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.MX(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$20985_throttledOnResize=new _.n4(this.resizeObserved,_.kf("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.MX(this,this.onScroll))};
_.L.detached=function(){var I;(I=this.resizeObserver)==null||I.disconnect();document.removeEventListener("yt-page-type-changed",_.MX(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.MX(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.MX(this,this.onScroll))};
_.L.insertRichSection=function(I){var y=I.richItemTargetId;I=I.richSectionRendererToInsert;y&&I&&(this.insertedContent.set(y,{content:I,timestamp:Date.now()}),this.reflowContent())};
_.L.computeIsInlinePreviewEnabled=function(I,y,D){return _.l("web_disable_inline_preview")?!1:!D&&SAQ({miniplayerIsActive:I,miniplayerPlaybackState:y})};
_.L.computeSizing=function(){var I=_.rJe(this.data);if(I||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return I?this.useCompactList?"COMPACT":I:this.miniMode?"COMPACT":"STANDARD"};
_.L.updateItemMinAndMaxWidth=function(){var I=_.kf("rich_grid_max_item_width",500);I>0&&_.pg(this.hostElement,{"--ytd-rich-grid-item-max-width":I+"px"});var y;I=this.getRichItemMinWidth((y=this.hostElement)==null?void 0:y.clientWidth);I>0&&_.pg(this.hostElement,{"--ytd-rich-grid-item-min-width":I+"px"})};
_.L.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.L.resizeObserved=function(){_.qr(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.L.onPageChange=function(){var I=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.qr(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.w2.addJob(function(){I.pageLoadingFromNavigation=!1;I.setMasthead();I.maybeSetBigYoodle();I.forceRefreshAndLog();I.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.L.dataChanged=function(){var I=this;_.qr(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.YC(this,function(){I.updateRichItemGridPositions();I.contentsElement&&_.pg(I.hostElement,{"--ytd-rich-grid-content-offset-top":I.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.L.initResizeObserver=function(){var I=this;if(window.ResizeObserver){var y;(y=this.resizeObserver)==null||y.disconnect();var D=!1;this.resizeObserver=new ResizeObserver(function(){if(D){var F;(F=I.resizeObserver)==null||F.disconnect();var R;(R=I.JSC$20985_throttledOnResize)==null||R.fire();requestAnimationFrame(function(){var w;(w=I.JSC$20985_throttledOnResize)==null||w.fire();I.initResizeObserver()})}else if(D=!0,I.resizeOnObserverInit){var O;
(O=I.JSC$20985_throttledOnResize)==null||O.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.L.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.qr(this.hostElement,"ytd-rich-item-index-update-action")};
_.L.updateElementsPerRow=function(){_.qr(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.L.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.L.onRichShelfRendererCollapse=function(I){if(this.shownItems){var y=I.detail;I=this.shownItems.findIndex(function(F){var R,O;return((O=_.u(F==null?void 0:(R=F.richSectionRenderer)==null?void 0:R.content,_.qDM))==null?void 0:O.trackingParams)===y});
var D=I+1;I<0||D>=this.contentsElement.children.length||!this.shownItems[D].richItemRenderer||this.contentsElement.children[D].scrollIntoView({behavior:"smooth",block:"start"})}};
_.L.onSoftReloadPage=function(){this.scrollUpToTop()};
_.L.handleRerenderDownloadsData=function(){_.l("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.L.handlePlaylistRemoveVideosAction=function(I){var y;if(((y=_.u(I,_.CMu))==null?0:y.setVideoIds)&&this.data&&this.data.contents){I=_.u(I,_.CMu).setVideoIds;for(y=this.data.contents.length-1;y>=0;){var D=_.u(this.data.contents[y],_.Th);(D=D&&_.u(D.content,_.w7))&&D.setVideoId&&I.includes(D.setVideoId)&&this.splice("data.contents",y,1);y--}this.updateIndices()}};
_.L.updateIndices=function(){if(this.data&&this.data.contents)for(var I=0;I<this.data.contents.length;I++)this.set("data.contents."+I+".richItemRenderer.index",_.Ug(String(I+1)))};
_.L.hasTopRowInlinePlayableVideoWithEndorsement=function(I){var y;return!((y=I.slice(0,this.getItemsPerRow()))==null||!y.some(function(D){var F;D=_.u(D==null?void 0:(F=D.richItemRenderer)==null?void 0:F.content,_.hJ_);var R;return(D==null?void 0:D.inlinePlaybackEndpoint)&&(D==null?void 0:(R=D.thumbnailOverlays)==null?void 0:R.some(function(O){return O.thumbnailOverlayEndorsementRenderer}))}))};
_.L.refreshGridLayoutNew=function(I,y,D,F){var R=F.postsPerRow;var O=F.slimItemsPerRow;var w=F.gameCardsPerRow;F=F.miniGameCardsPerRow;var v;if((v=this.data)==null||!v.contents||!this.containerWidth)return!1;var P;if((P=this.data.responsiveContainerConfiguration)==null?0:P.responsiveSize){var K=_.ezq(this.data.responsiveContainerConfiguration,this.containerWidth,2),r;v=_.FP(Object.assign({},K,{standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&K.isCompactList)}else v=_.FP({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(K=this.data)==null?void 0:K.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=v.typographyBump;r=!1;if(I||this.elementsPerRow!==v.numItems||this.postsPerRow!==R||this.slimItemsPerRow!==O||this.gameCardsPerRow!==
w||this.miniGameCardsPerRow!==F||this.gutter!==v.gutter)r=this.elementsPerRow!==v.numItems,this.elementsPerRow=v.numItems,this.postsPerRow=R,this.slimItemsPerRow=O,this.gameCardsPerRow=w,this.miniGameCardsPerRow=F,this.gutter=v.gutter,this.itemWidth=v.itemWidth,this.reflowContent(y),_.pg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":v.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(_.Ec({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:v.maxContainerWidth}));return r};
_.L.refreshGridLayout=function(I,y){var D,F=(D=this.hostElement)==null?void 0:D.clientWidth;this.containerWidth=this.adjustRichGridWidth(F,!0);var R;if((R=this.data)==null||!R.contents||!this.containerWidth)return I&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(I=!0,this.pendingForceReflow=!1);D=this.getRichItemMinWidth(F);var O=this.isShortsPanel?146:194,w=this.getMiniGameCardMinWidth(),v=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.kf("rich_grid_default_max_items_per_row",
6);F=D=this.calcElementsPerRow(D,v);(R=D<=3&&this.miniModeAllowed())&&(D=this.calcElementsPerRow(240,4));var P=this.calcMaxSlimElementsPerRow(D,v,this.isDefaultGrid);v=this.calcElementsPerRow(O,P);var K=this.calcElementsPerRow(this.isCompactGrid?O:154,P);O=this.calcElementsPerRow(this.isCompactGrid?O:w,P);w=!1;if(this.sizing)return this.refreshGridLayoutNew(I,y,R,{postsPerRow:F,slimItemsPerRow:v,gameCardsPerRow:K,miniGameCardsPerRow:O});if(I||this.elementsPerRow!==D||this.postsPerRow!==F||this.slimItemsPerRow!==
v||this.gameCardsPerRow!==K||this.miniGameCardsPerRow!==O)w=this.elementsPerRow!==D,this.elementsPerRow=D,this.postsPerRow=F,this.slimItemsPerRow=v,this.gameCardsPerRow=K,this.miniGameCardsPerRow=O,this.reflowContent(y),this.updateElementsPerRow(),_.pg(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)&&_.pg(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(R);_.qr(this.hostElement,"yt-rich-grid-layout-refreshed");return w};
_.L.getRichItemMinWidth=function(I){var y=_.kf("rich_grid_min_item_width",310);if(!_.l("kevlar_disable_min_width_override")){var D,F;y=(F=(D=this.data)==null?void 0:D.minItemWidth)!=null?F:y}return y+_.v2o(I)};
_.L.calcMaxSlimElementsPerRow=function(I,y,D){return(D===void 0?0:D)?I===1?2:I%2===0?I/2*3:I+2:y*2};
_.L.adjustRichGridWidth=function(I,y){var D=_.l("disable_rich_grid_guide_compensation");if(!this.isWatch&&!D){D=_.nR().resolve(_.fR(_.Py));var F=D==null?void 0:D.guideElement;if(!(!D||D.getData()||F!=null&&F.opened||D.getMiniGuideVisible()))if(D.canFitPersistentGuide(I)&&D.getGuideExpandsAutomatically()){var R,O,w=Number((R=window.getComputedStyle(this.hostElement))==null?void 0:(O=R.getPropertyValue("--app-drawer-width"))==null?void 0:O.replace("px",""));I-=w||0}else if(D.canFitMiniGuide(I)){var v;
R=Number((w=window.getComputedStyle(this.hostElement))==null?void 0:(v=w.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:v.replace("px",""));I-=R||0}}I>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(I-=y?32:48));return I};
_.L.calcElementsPerRow=function(I,y){var D=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),F=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((D+F)/(I+F))||1,y)};
_.L.reflowContent=function(I){var y=this;if(!this.isReflowing){this.isReflowing=!0;var D,F,R=!!((D=this.data)==null?0:(F=D.contents)==null?0:F.some(function(v){return _.u(v,_.hs)}));
D=this.getItemsPerRow();var O;F=(O=this.data)==null?void 0:O.reflowOptions;I&&(_.V_("rgr_s"),_.YC(this,function(){_.V_("rgr_nrf")}));
I={};(O=_.XB(this.hostElement).querySelector("#contents"))&&(I={contentElement:O,rendererToTagNameMap:this.rendererToTagNameMap});O=(O=this.data.contents)?O.slice():[];R=Be1(O,D,R,F,this.getRichGridStyle(),I,this.insertedContent);var w=R.orderedContent;if(R=R.pinnedContentNotShownTargetIds)for(R=_.J(R),D=R.next();!D.done;D=R.next())this.insertedContent.delete(D.value);R=function(){y.shownItems=w;y.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(w),_.YC(this,R)):R()}};
_.L.getFirstRowItems=function(I){for(var y=[],D=0;D<I.length;D++){var F=void 0,R=void 0,O=void 0,w=void 0,v=void 0,P=void 0;if(((F=I[D])==null?void 0:(R=F.richItemRenderer)==null?void 0:R.rowIndex)===0||((O=I[D])==null?void 0:(w=O.richGroupRenderer)==null?void 0:w.rowIndex)===0||((v=I[D])==null?void 0:(P=v.richSectionRenderer)==null?void 0:P.rowIndex)===0)y.push(I[D]);else break}return y};
_.L.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.L.resetInsertedContentIfNeeded=function(){(_.l("web_explore_hub_on_hover")||_.l("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.L.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.L.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.L.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.L.terminateVideoPreview=function(){_.qr(this.hostElement,"yt-terminate-video-preview-action")};
_.L.updateRichItemGridPositions=function(){var I={gridData:{gridColumnCount:this.elementsPerRow}},y;((y=this.data)==null?0:y.trackingParams)&&(y=_.VO())&&_.PW(y,_.AC(this.data.trackingParams),I);_.qr(this.hostElement,"ytd-rich-item-index-update-action")};
_.L.miniModeAllowed=function(){return this.isChannelPage};
_.L.getMiniGameCardMinWidth=function(){return 154};
_.L.updateMiniMode=function(I){this.miniMode=this.miniModeAllowed()&&I;this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_RICH_GRID_MINI_MODE",payload:I}))};
_.L.isCurrentPage=function(){return location.pathname===this.pagePath};
_.L.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var I=_.nR().resolve(_.ja).getCurrentPage();I&&I.setScrollTop(0)}};
_.L.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.L.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.L.maybeSetBigYoodle=function(){var I,y=(I=this.data)==null?void 0:I.bigYoodle;this.bigYoodleData!==y&&(this.bigYoodleData=y)};
_.L.setMasthead=function(){var I;((I=this.data)==null?0:I.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.L.getRichGridStyle=function(){var I,y;return(y=(I=this.data)==null?void 0:I.style)!=null?y:"RICH_GRID_STYLE_UNKNOWN"};
_.L.onIsShortsGridChange=function(){var I=this.ytdReduxBehavior,y=I.dispatch,D=this.getRichGridStyle();y.call(I,_.Ec({type:"SET_RICH_GRID_STYLE",payload:D}))};
_.L.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.L.onScroll=function(){this.isScrolled=window.scrollY>0};
_.mD.Object.defineProperties(WX.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.l("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.ytContinuationHandlerBehavior)==null?void 0:I.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var I=_.nR().resolve(_.ja).getCurrentPage(),y,D,F;return(((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_audio_pivot"||_.l("web_enable_channel_pivot_panel")&&((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_channel_pivot"||_.l("web_enable_effect_pivot_panel")&&((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_effect_pivot")&&(I==null?void 0:I.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.l("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 I;return!((I=this.data)==null?0:I.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var I;return((I=_.nR().resolve(_.ja).getCurrentPage())==null?void 0:I.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var I;return((I=_.nR().resolve(_.ja).getCurrentPage())==null?void 0:I.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?0:I.enableContentSpecificAspectRatio)||((y=this.data)==null?0:(D=y.responsiveContainerConfiguration)==null?0:D.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.kf("web_continuation_handler_margin",0):0}}});
WX.prototype.onIsShortsGridChange=WX.prototype.onIsShortsGridChange;WX.prototype.onReloadContinuationFinish=WX.prototype.onReloadContinuationFinish;WX.prototype.reflowContent=WX.prototype.reflowContent;WX.prototype.handleRerenderDownloadsData=WX.prototype.handleRerenderDownloadsData;WX.prototype.onRichShelfRendererCollapse=WX.prototype.onRichShelfRendererCollapse;WX.prototype.onRequestElementsPerRow=WX.prototype.onRequestElementsPerRow;WX.prototype.contentLengthChanged=WX.prototype.contentLengthChanged;
WX.prototype.dataChanged=WX.prototype.dataChanged;WX.prototype.onSizingChange=WX.prototype.onSizingChange;WX.prototype.onUseCompactListChange=WX.prototype.onUseCompactListChange;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],WX.prototype,"ironResizableBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],WX.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],WX.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],WX.prototype,"componentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],WX.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],WX.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],WX.prototype,"miniMode",void 0);_.W([_.M({value:[]}),_.A("design:type",Array)],WX.prototype,"shownItems",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],WX.prototype,"isReflowing",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],WX.prototype,"isFilteredFeed",void 0);_.W([_.M({selector:_.MxJ}),_.A("design:type",Boolean)],WX.prototype,"guideIsExpanded",void 0);
_.W([_.M({selectorArgs:["entitySelectorType"],selector:function(I,y){if(_.l("kevlar_modern_downloads_page")&&y&&y!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(y){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":y=I.entities;var D=_.Tz(y),F=_.sc(y),R=_.ZYo(I),O=_.Vxe(I),w=_.g3W(I),v=_.qyB(y),P=_.io(D),K=_.Vi(y);return _.B0B(D,F,v,_.Qte(y),R,O,P,K,w,_.ylL(I),_.D7(I));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return I=_.Tz(I.entities),_.A3B(I);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return I=
_.xTq(I.entities),_.$p_(I);default:_.tq(new _.g6("Error: entitySelectorType defined but not matched in selector.",I,y))}}}),
_.A("design:type",Object)],WX.prototype,"entityDrivenRichGridData",void 0);_.W([_.M(),_.A("design:type",Object)],WX.prototype,"resizeOnObserverInit",void 0);_.W([_.M(),_.A("design:type",Object)],WX.prototype,"bigYoodleData",void 0);_.W([_.M(),_.A("design:type",Object)],WX.prototype,"mastheadData",void 0);_.W([_.M(),_.A("design:type",Boolean)],WX.prototype,"isInlinePreviewDisabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"disableStickyFilterBar",void 0);
_.W([_.M(),_.A("design:type",Object)],WX.prototype,"transparentBackgroundChipsBar",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"hideChipsBar",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("isHomePage","isFilteredFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"showChipsOnScroll",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"isScrolled",void 0);
_.W([_.M(),_.A("design:type",Object)],WX.prototype,"isWatchDefaultLayout",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"continuationShowButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"rowReducedHorizontalMargin",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"useCompactList",void 0);_.W([_.M({selector:function(I){return _.sc(I.entities).length>0}}),
_.A("design:type",Object)],WX.prototype,"manualDownloadsPresent",void 0);_.W([_.M({selector:function(I){return _.Tz(I.entities).length>0}}),
_.A("design:type",Object)],WX.prototype,"smartDownloadsPresent",void 0);_.W([_.M({selector:_.D7}),_.A("design:type",Object)],WX.prototype,"isOnline",void 0);_.W([_.M({selector:_.Vxe}),_.A("design:type",Object)],WX.prototype,"shouldRenderDownloadsBanner",void 0);_.W([_.M({selector:_.ylL}),_.A("design:type",Object)],WX.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.M({selector:_.ZYo}),_.A("design:type",Object)],WX.prototype,"hasOptedIntoSmartDownloads",void 0);
_.W([_.ke("useCompactList"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"onUseCompactListChange",null);_.W([_.ke("sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"onSizingChange",null);_.W([_.M({selector:_.Wk5}),_.A("design:type",Number)],WX.prototype,"miniplayerPlaybackState",void 0);_.W([_.M({selector:_.Iq}),_.A("design:type",Boolean)],WX.prototype,"miniplayerIsActive",void 0);
_.W([_.M({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],WX.prototype,"isInlinePreviewEnabled",void 0);_.W([_.M({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.A("design:type",String)],WX.prototype,"sizing",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WX.prototype,"elementsPerRow",void 0);
_.W([_.M(),_.A("design:type",Object)],WX.prototype,"typographyBump",void 0);_.W([_.M(),_.A("design:type",Number)],WX.prototype,"itemWidth",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],WX.prototype,"headerElement",void 0);_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],WX.prototype,"contentsElement",void 0);_.W([_.Y("reloadUiContent"),_.A("design:type",Object),_.A("design:paramtypes",[])],WX.prototype,"loadingContentRenderer",null);
_.W([_.Y("reloadUiContent"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"hasLoadingContent",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"dataChanged",null);_.W([_.Bp("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"contentLengthChanged",null);
_.W([_.z4("yt-request-elements-per-row"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"onRequestElementsPerRow",null);_.W([_.z4("yt-rich-shelf-renderer-collapse"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WX.prototype,"onRichShelfRendererCollapse",null);
_.W([_.Bp("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"handleRerenderDownloadsData",null);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],WX.prototype,"entitySelectorType",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isSub",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isWatch",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isShortsPanel",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"reducedTopMargin",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data","isWatch","isWatchDefaultLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"noTopMargin",null);_.W([_.M({reflectToAttribute:!0}),_.Y("isInlinePreviewEnabled","shownItems"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"topRowEndorsement",null);
_.W([_.Y("data.header"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"hideHeader",null);_.W([_.z4("yt-rich-grid-reflow"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],WX.prototype,"reflowContent",null);_.W([_.z4("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"onReloadContinuationFinish",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isSlimGrid",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isShortsGrid",null);_.W([_.Y("data","isSlimGrid","isShortsGrid"),_.M(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"noRichItemGutterMargins",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isShortsGridSlim",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isCompactGrid",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"isDefaultGrid",null);
_.W([_.Y("data.targetId"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"hideChipsBarOnWatch",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WX.prototype,"onIsShortsGridChange",null);_.W([_.Y("data.enableContentSpecificAspectRatio"),_.M(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WX.prototype,"force16By9ThumbnailAspectRatio",null);
_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],WX.prototype,"continuationTriggerOffset",null);_.W([_.yd({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],WX);
_.a(WX,"ytd-rich-grid-renderer",function(){if(yNg!==void 0)return yNg;var I=document.createElement("template");_.G(I,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yNg=I},{mode:2});var Lx8;var Cs=function(){return _.k.apply(this,arguments)||this};
_.E(Cs,_.k);_.L=Cs.prototype;
_.L.onKeyDown=function(I){if(this.snippetElements.length!==0&&(I=I.keyCode,I===38||I===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);I===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.IL(this.highlightedIndex,-1,this.snippetElements.length);I=this.snippetElements.length;var y=this.highlightedIndex%I;this.highlightedIndex=y*I<0?y+I:y;I=this.snippetElements[this.highlightedIndex];this.highlightSnippet(I);this.ensureVisible(I)}};
_.L.onKeyUp=function(I){var y=this;zPg(I)&&(I.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.w2.cancelJob(this.inputTimerId),this.inputTimerId=_.w2.addLowPriorityJob(function(){y.typedValue&&(y.fetchSnippets(y.typedValue),y.logInputGesture(y.data))},1E3))};
_.L.onClick=function(I){(I=_.OW_(I.target,null,"snippet-item"))&&this.selectSnippet(I)};
_.L.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.L.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.L.ready=function(){var I=this;this.inputElement.addEventListener("focus",function(){I.snippetsWrapper.style.removeProperty("display")})};
_.L.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.L.getSourceTimelines=function(){if(!this.data)return[];var I=[];if(this.data.searchInVideoSources)for(var y=_.J(this.data.searchInVideoSources),D=y.next();!D.done;D=y.next())D=D.value,D==="SEARCH_IN_VIDEO_SOURCE_ASR"?I.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):D==="SEARCH_IN_VIDEO_SOURCE_OCR"&&I.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return I};
_.L.fetchSnippets=function(I){var y=_.uj(this.hostElement,"yt-get-current-video-id-action")[0],D=this.getSourceTimelines();I={getSearchInVideoCommand:{externalVideoId:y,query:I!=null?I:"",sourceTimelines:D},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})};
_.L.filterSnippets=function(I,y){var D=this;if(y){this.filteredSnippets=(0,_.e$.unsafeClone)(I);var F=RegExp(_.k0B(y),"i");this.filteredSnippets=this.filteredSnippets.filter(function(w){return F.test(D.ytRendererBehavior.getSimpleString(w.snippet))});
I=_.J(this.filteredSnippets);for(var R=I.next();!R.done;R=I.next()){R=R.value;var O=this.ytRendererBehavior.getSimpleString(R.snippet);R.snippet={runs:[{text:O.substring(0,O.toLowerCase().indexOf(y))},{text:O.substring(O.toLowerCase().indexOf(y),O.toLowerCase().indexOf(y)+y.length),bold:!0},{text:O.substring(O.toLowerCase().indexOf(y)+y.length,O.length)}]}}}else this.filteredSnippets=I};
_.L.onUpdateSearchInVideoResults=function(I){if(!(this.snippets.length>0)){var y,D,F;if((F=(y=_.u(I,pQa))==null?void 0:(D=y.results)==null?void 0:D.length)!=null&&F){var R;this.filteredSnippets=this.snippets=((R=_.u(I,pQa))==null?void 0:R.results).map(function(O){var w,v,P;return{startMs:O==null?void 0:(w=O.searchInVideoResultRenderer)==null?void 0:w.startMs,startTimeText:O==null?void 0:(v=O.searchInVideoResultRenderer)==null?void 0:v.startTimeText,snippet:O==null?void 0:(P=O.searchInVideoResultRenderer)==
null?void 0:P.snippet}})}}};
_.L.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};
_.L.highlightSnippet=function(I){I.classList.add("highlighted")};
_.L.removeSnippetHighlight=function(I){I.classList.remove("highlighted")};
_.L.selectSnippet=function(I){this.typedValue=String(I.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(I);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.L.ensureVisible=function(I){var y=this.snippetsWrapper.scrollTop,D=y+this.snippetsWrapper.clientHeight,F=I.offsetTop-this.snippetsWrapper.offsetTop;I=F+I.clientHeight;F<y?this.snippetsWrapper.scrollTop-=y-F:I>D&&(this.snippetsWrapper.scrollTop+=I-D)};
_.L.seekPlayer=function(I){var y,D;return _.S(function(F){if(F.nextAddress==1){if(!I)return F.jumpTo(0);y=Number(I.dataset.startOffset);return F.yield(_.hZ().getPlayerPromise(),3)}D=F.yieldResult;D.seekTo(y/1E3,!0);D.wakeUpControls();_.Cj(F)})};
_.L.logInputGesture=function(I){var y=_.VO();y&&(I==null?0:I.trackingParams)&&_.t_(y,_.AC(I.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.L.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("typed-value-changed",this.typedValue))};
_.L.updateTypedValueFromBinding=function(I){this.typedValue=I.currentTarget.value};
Cs.prototype.typedValueChangedForBinding=Cs.prototype.typedValueChangedForBinding;Cs.prototype.dataChanged=Cs.prototype.dataChanged;Cs.prototype.panelContentVisibleChanged=Cs.prototype.panelContentVisibleChanged;Cs.prototype.onClick=Cs.prototype.onClick;Cs.prototype.onKeyUp=Cs.prototype.onKeyUp;Cs.prototype.onKeyDown=Cs.prototype.onKeyDown;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Cs.prototype,"data",void 0);_.W([_.M({value:[]}),_.A("design:type",Array)],Cs.prototype,"snippets",void 0);_.W([_.M({value:[]}),_.A("design:type",Array)],Cs.prototype,"filteredSnippets",void 0);_.W([_.M({value:[]}),_.A("design:type",Array)],Cs.prototype,"snippetElements",void 0);
_.W([_.a0("#siv-input"),_.A("design:type",HTMLElement)],Cs.prototype,"inputElement",void 0);_.W([_.a0("#siv-snippets-wrapper"),_.A("design:type",HTMLElement)],Cs.prototype,"snippetsWrapper",void 0);_.W([_.M(),_.A("design:type",String)],Cs.prototype,"typedValue",void 0);_.W([_.M({value:-1}),_.A("design:type",Number)],Cs.prototype,"highlightedIndex",void 0);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[_.ee]),_.A("design:returntype")],Cs.prototype,"onKeyDown",null);
_.W([_.z4("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[_.ee]),_.A("design:returntype")],Cs.prototype,"onKeyUp",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Cs.prototype,"onClick",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cs.prototype,"panelContentVisible",void 0);
_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cs.prototype,"panelContentVisibleChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cs.prototype,"dataChanged",null);_.W([_.ke("typedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cs.prototype,"typedValueChangedForBinding",null);
_.W([_.yd({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Cs);
_.a(Cs,"ytd-search-in-video-renderer",function(){if(Lx8!==void 0)return Lx8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Lx8=I},{mode:1});var Jco;var BX=function(){return _.k.apply(this,arguments)||this};
_.E(BX,_.k);BX.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
BX.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]]"}}}}}};
BX.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var I,y,D,F,R=(y=_.u((I=this.data)==null?void 0:I.onClickCommand,_.G9O))==null?void 0:(D=y.item)==null?void 0:(F=D.notificationTextRenderer)==null?void 0:F.successResponseText;R&&_.b7S(this.hostElement,R)}};
_.mD.Object.defineProperties(BX.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return this.isProductPlaceholder&&((I=this.data)==null?void 0:(y=I.hiddenProductOptions)==null?void 0:y.showDropCountdown)&&!!((D=this.data)==null?0:(F=D.hiddenProductOptions)==null?0:F.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var I;return!this.isProductPlaceholder&&!((I=this.data)==null?0:I.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null?0:I.priceReplacementText)&&!((y=this.data)==null||!y.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],BX.prototype,"componentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],BX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BX.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"useCenterLayoutContainer",null);_.W([_.M({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],BX.prototype,"buttonOverride",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"isProductPlaceholder",null);
_.W([_.Y("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"showDropCountdown",null);_.W([_.Y("isProductPlaceholder","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"showBrandName",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"showPriceReplacementText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"showPrice",null);
_.W([_.Y("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],BX.prototype,"showMetadata",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],BX);
_.a(BX,"ytd-product-list-item-renderer",function(){if(Jco!==void 0)return Jco;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Jco=I},{mode:1});var wM1;var AQ=function(){return _.k.apply(this,arguments)||this};
_.E(AQ,_.k);AQ.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
AQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
AQ.prototype.panelContentVisibleChanged=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return I.playerApi?D.jumpTo(2):D.yield(_.hZ().getPlayerPromise(),3);D.nextAddress!=2&&(I.playerApi=D.yieldResult);(y=I.playerApi)==null||y.productsInVideoVisibilityUpdated(!!I.panelContentVisible);_.Cj(D)})};
AQ.prototype.panelContentVisibleChanged=AQ.prototype.panelContentVisibleChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],AQ.prototype,"panelContentVisible",void 0);_.W([_.M(),_.A("design:type",Object)],AQ.prototype,"data",void 0);
_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],AQ.prototype,"panelContentVisibleChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],AQ);
_.a(AQ,"ytd-product-list-renderer",function(){if(wM1!==void 0)return wM1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return wM1=I},{mode:1});var voa;var $t=function(){var I=_.k.apply(this,arguments)||this;I.isToggleChecked=!1;return I};
_.E($t,_.k);$t.prototype.onDataChanged=function(){var I;this.isToggleChecked=((I=this.data)==null?void 0:I.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
$t.prototype.close=function(){var I;((I=this.data)==null?0:I.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
$t.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var I,y=_.u((I=this.data)==null?void 0:I.switchButton,MtQ);y&&(this.isToggleChecked&&y.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOnInnertubeCommand),!this.isToggleChecked&&y.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(y.switchOffInnertubeCommand))};
$t.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$t.prototype.onDataChanged=$t.prototype.onDataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],$t.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$t.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],$t.prototype,"isToggleChecked",void 0);_.W([_.M({value:_.zC("CLOSE")}),_.A("design:type",String)],$t.prototype,"closeButtonAriaLabel",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$t.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],$t);
_.a($t,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(voa!==void 0)return voa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return voa=I},{mode:1});var Sjg;var bf=function(){var I=_.k.apply(this,arguments)||this;I.hideTimestamps=!!_.bX("hide-transcript-timestamps");I.currentCueIndex=-1;I.flatCues=[];I.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};I.TEST_ONLY={getFlatCues:function(){return I.flatCues}};
return I};
_.E(bf,_.k);_.L=bf.prototype;_.L.hideTimestampsChanged=function(){_.$c("hide-transcript-timestamps",this.hideTimestamps)};
_.L.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.L.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.L.dataChanged=function(){var I;if((I=this.data)!=null&&I.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;I=_.J(this.data.cueGroups);for(var y=I.next();!y.done;y=I.next()){y=_.J(_.u(y.value,bc1).cues);for(var D=y.next();!D.done;D=y.next())this.flatCues.push(Number(_.u(D.value,Hca).startOffsetMs))}}};
_.L.onYtPlayerTimeChanged=function(I){if(!(I<0)){for(var y=this.currentCueIndex,D=y;;){var F=D>=0?this.flatCues[D]/1E3:-1;if(I+.5<F)--D;else if(F=D+1<this.flatCues.length?this.flatCues[D+1]/1E3:Infinity,I+.5>F)D+=1;else break}D!==y&&(y>=0&&((I=this.getCueElement(y))&&I.classList.remove("active"),(y=this.getCueGroupElement(y))&&y.classList.remove("active")),(y=this.getCueElement(D))&&y.classList.add("active"),(y=this.getCueGroupElement(D))&&y.classList.add("active"),this.currentCueIndex=D,this.isHovered||
this.scrollElementToTop(D))}};
_.L.scrollElementToTop=function(I){I=this.getCueElement(I>=3?I-3:0);this.hostElement.scrollTop=Math.min(I.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.L.getCueElement=function(I){return _.XB(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[I]+'"]')};
_.L.getCueGroupElement=function(I){return(I=this.getCueElement(I))&&I.parentElement?I.parentElement.parentElement:null};
_.L.onTap=function(I){var y=_.jv(I);I.target.classList.contains("cue")&&this.seekCueElement(y)};
_.L.onKeyPress=function(I){I.keyCode==13&&(I=_.OW_(I.target,null,"cue"))&&this.seekCueElement(I)};
_.L.seekCueElement=function(I){I=Number(I.getAttribute("start-offset"));_.uj(this.hostElement,"yt-transcript-player-seek",[I/1E3])};
_.L.onMouseEnter=function(){this.isHovered=!0};
_.L.onMouseLeave=function(){this.isHovered=!1};
bf.prototype.onMouseLeave=bf.prototype.onMouseLeave;bf.prototype.onMouseEnter=bf.prototype.onMouseEnter;bf.prototype.onKeyPress=bf.prototype.onKeyPress;bf.prototype.onTap=bf.prototype.onTap;bf.prototype.dataChanged=bf.prototype.dataChanged;bf.prototype.hideTimestampsChanged=bf.prototype.hideTimestampsChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],bf.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bf.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],bf.prototype,"hideTimestamps",void 0);_.W([_.M(),_.A("design:type",Boolean)],bf.prototype,"isHovered",void 0);_.W([_.ke("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bf.prototype,"hideTimestampsChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bf.prototype,"dataChanged",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],bf.prototype,"onTap",null);_.W([_.z4("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],bf.prototype,"onKeyPress",null);
_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bf.prototype,"onMouseEnter",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bf.prototype,"onMouseLeave",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],bf);
_.a(bf,"ytd-transcript-body-renderer",function(){if(Sjg!==void 0)return Sjg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Sjg=I},{mode:1});var tLR;var HX=function(){var I=_.k.apply(this,arguments)||this;I.darkerPanels=_.l("web_watch_darker_panels");return I};
_.E(HX,_.k);HX.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HX.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],HX.prototype,"darkerPanels",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],HX);
_.a(HX,"ytd-transcript-footer-renderer",function(){if(tLR!==void 0)return tLR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return tLR=I},{mode:1});var PwR;var Kxg;var es=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.showClearButton=!1;return I};
_.E(es,_.k);_.L=es.prototype;_.L.handleInput=function(I){var y=this;I.target.value.length?_.v4(this,"ytdTranscriptSearchBoxSearch",function(){y.emitSearchEvent(I)},500):(_.x75(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=I.target.value.length>0};
_.L.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.L.handleClick=function(){var I,y=(I=this.data)==null?void 0:I.trackingParams;y&&_.Cb(_.W4(),y)};
_.L.handleClear=function(){_.x75(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var I,y,D=(y=_.u((I=this.data)==null?void 0:I.clearButton,_.S1))==null?void 0:y.trackingParams;D&&_.Cb(_.W4(),D);this.clear()};
_.L.emitSearchEvent=function(I){_.lj(this.hostElement,"yt-transcript-search-box-search",{query:I.target.value});var y,D;(I=(D=_.u((y=this.data)==null?void 0:y.searchButton,_.S1))==null?void 0:D.trackingParams)&&_.Cb(_.W4(),I)};
_.L.emitClearEvent=function(){_.lj(this.hostElement,"yt-transcript-search-box-clear")};
_.mD.Object.defineProperties(es.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.XB(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],es.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],es.prototype,"systemIcons",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],es);
_.a(es,"ytd-transcript-search-box-renderer",function(){if(Kxg!==void 0)return Kxg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Kxg=I},{mode:1});var UWY;var rcy;var Tw=function(){return _.k.apply(this,arguments)||this};
_.E(Tw,_.k);Tw.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var I,y;this.sectionHeaderAriaLabel=(I=this.data)==null?void 0:(y=I.accessibility)==null?void 0:y.accessibilityData.label}};
Tw.prototype.fireSelectedEvent=function(I){_.lj(this.hostElement,"ytd-transcript-section-header",{startMs:I})};
Tw.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Tw.prototype.handleKeyPress=function(I){this.data&&I.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.mD.Object.defineProperties(Tw.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.data)==null?void 0:I.enableTappableTranscriptHeader)!=null?y:!1}}});
Tw.prototype.dataChanged=Tw.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],Tw.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],Tw.prototype,"sectionHeaderAriaLabel",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Tw.prototype,"enableTappableTranscriptHeader",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tw.prototype,"dataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Tw);
_.a(Tw,"ytd-transcript-section-header-renderer",function(){if(rcy!==void 0)return rcy;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rcy=I},{mode:1});var j9T;var ooR;var sQ=function(){var I=_.k.apply(this,arguments)||this;I.isEditMode=!1;I.touchCaptionsEnabled=!1;I.deleteCaptionCorrectionPopupCommand=null;I.voteCaptionCorrectionPopupCommand=null;I.roundedContainer=!0;I.mouseOver=!1;I.textChanged=!1;I.messages={suggest_correction:_.zC("suggest_correction",void 0,"Edit caption"),suggested_caption:_.zC("suggested_caption",void 0,"Suggested caption"),submit_correction:_.zC("submit_correction",void 0,"Submit for review"),cancel_correction:_.zC("cancel_correction",
void 0,"Cancel"),replay_segment:_.zC("replay_segment",void 0,"Re-play segment"),delete_correction:_.zC("delete_correction",void 0,"Delete correction")};I.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return I};
_.E(sQ,_.k);_.L=sQ.prototype;_.L.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)};
_.L.handleDelete=function(I){if(this.deleteCaptionCorrectionPopupCommand){var y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);y&&this.ytdOpenPopupBehavior.openPopup(y);I.stopPropagation()}};
_.L.handleSubmit=function(I){if(this.data&&this.data.submitCaptionCorrectionCommand&&(I.stopPropagation(),this.textChanged)){var y;I=(y=_.u(this.data.submitCaptionCorrectionCommand,_.Mon))==null?void 0:y.params;y=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:I,correctionText:String(this.ironTextAreaElement.value),originalText:_.rY(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(y);this.isEditMode=!1}};
_.L.handleUpdateSegmentText=function(I){(I=_.u(I,T5a))&&I.targetId&&this.data&&I.targetId===this.data.targetId&&(I.userCorrection&&(this.editedText=I.userCorrection),I.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.rY(this.data.snippet)),I.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=I.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=I.voteCaptionCorrectionPopupCommand?
I.voteCaptionCorrectionPopupCommand:null,I.accessibility&&(this.segmentAriaLabel=I.accessibility.accessibilityData.label))};
_.L.handleCancel=function(I){this.isEditMode=!1;I.stopPropagation();this.logClientVe(159409)};
_.L.handleEditSegmentCommand=function(I){(I=_.u(I,esa))&&I.targetId&&this.data&&I.targetId===this.data.targetId&&this.handleEdit()};
_.L.handleEditButtonClick=function(I){this.data&&(this.handleEdit(),I.stopPropagation())};
_.L.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var I;(I=this.ironTextAreaElement.textarea)==null||I.focus();this.logClientVe(159407)}};
_.L.handleMouseEnter=function(){this.mouseOver=!0};
_.L.handleMouseLeave=function(){this.mouseOver=!1};
_.L.handleReplay=function(I){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),I.stopPropagation(),this.logClientVe(159408))};
_.L.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()))};
_.L.handleKeypress=function(I){this.data&&(this.isEditMode?I.stopPropagation():this.isEnterPress(I)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(I)&&this.logClientVe(138758))};
_.L.handleTextboxClick=function(I){I.stopPropagation()};
_.L.handleTextboxKeydown=function(I){this.isControlEnterPress(I)?this.handleSubmit(I):I.key==="Escape"&&this.handleCancel(I)};
_.L.handleTextboxKeyup=function(){this.textChanged=_.rY(this.latestText)!==String(this.ironTextAreaElement.value)};
_.L.fireSelectedEvent=function(I){_.lj(this.hostElement,"yt-transcript-segment-selected",{startMs:I})};
_.L.fireReplayEvent=function(I,y){_.lj(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(I-100,0),endMs:y})};
_.L.fireEditEvent=function(I,y){_.lj(this.hostElement,"yt-transcript-segment-edit",{startMs:I,endMs:y})};
_.L.isEnterPress=function(I){return I.key==="Enter"||I.code==="Enter"||I.code==="NumpadEnter"||I.keyCode===13?!0:!1};
_.L.isControlEnterPress=function(I){var y=I.key==="Enter"||I.code==="Enter"||I.code==="NumpadEnter"||I.keyCode===13;return(I.ctrlKey||I.metaKey)&&y};
_.L.isCopyPress=function(I){var y=I.ctrlKey;return I.key==="c"&&y};
_.L.logClick=function(){var I,y=(I=this.data)==null?void 0:I.trackingParams;y&&_.Cb(_.W4(),y)};
_.L.logClientVe=function(I){_.W0(_.W4(),_.QM(I))};
_.mD.Object.defineProperties(sQ.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}}});
sQ.prototype.handleMouseLeave=sQ.prototype.handleMouseLeave;sQ.prototype.handleMouseEnter=sQ.prototype.handleMouseEnter;sQ.prototype.dataChanged=sQ.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],sQ.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"isEditMode",void 0);_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"touchCaptionsEnabled",void 0);_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"editedText",void 0);_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.W([_.M(),_.A("design:type",String)],sQ.prototype,"segmentAriaLabel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"mouseOver",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sQ.prototype,"textChanged",void 0);_.W([_.M(),_.A("design:type",Object)],sQ.prototype,"messages",void 0);
_.W([_.a0("#suggestion"),_.A("design:type",Object)],sQ.prototype,"ironTextAreaElement",void 0);_.W([_.Y("data","editedText"),_.A("design:type",Object),_.A("design:paramtypes",[])],sQ.prototype,"latestText",null);_.W([_.Y("touchCaptionsEnabled","isEditMode"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sQ.prototype,"enableEditButton",null);
_.W([_.Y("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sQ.prototype,"enableUndoButton",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sQ.prototype,"dataChanged",null);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sQ.prototype,"handleMouseEnter",null);
_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sQ.prototype,"handleMouseLeave",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],sQ);
_.a(sQ,"ytd-transcript-segment-renderer",function(){if(ooR!==void 0)return ooR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ooR=I},{mode:1});var V4=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};I.isError=!1;I.darkerPanels=_.l("web_watch_darker_panels");I.useParentMaxHeight=_.l("web_watch_transscript_use_parent_max_height");I.segmentOffsets=[];I.segmentIndex=-1;return I};
_.E(V4,_.k);_.L=V4.prototype;_.L.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"}}}}};
_.L.segmentsChanged=function(){this.updateOffsets()};
_.L.onYtPlayerTimeChanged=function(I){for(var y=this.segmentIndex,D=y;;){if(D>=0){var F=this.segmentOffsets[D].start;var R=this.segmentOffsets[D].isAutoScrollable}else F=-1,R=!0;var O=I+.5;if(!R){F=D+1<this.segmentOffsets.length?this.segmentOffsets[D+1].start:Infinity;if(O>=F){D+=1;continue}D=-1;break}if(O<F)F=D-1>=0&&this.segmentOffsets[D-1].isAutoScrollable,R=D===0||F?1:2,D-=R;else if(R=D+1<this.segmentOffsets.length&&this.segmentOffsets[D+1].isAutoScrollable?1:2,F=D+R<this.segmentOffsets.length?
this.segmentOffsets[D+R].start:Infinity,O>F)D+=R;else{if(D<0)break;D<this.segmentOffsets.length&&O>this.segmentOffsets[D].end&&(D=-1);break}}if(y!==D){if(y>=0){var w;(w=this.getSegmentElement(y))==null||w.classList.remove("active")}this.segmentIndex=D;if(!(D<0)){var v;(v=this.getSegmentElement(D))==null||v.classList.add("active");this.isHovered||this.scrollElementToTop(D)}}};
_.L.handleSegmentEdit=function(I){I.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=I.target,_.uj(this.hostElement,"yt-transcript-player-edit",[I.detail.startMs/1E3,I.detail.endMs/1E3]))};
_.L.handleSegmentSelected=function(I){_.uj(this.hostElement,"yt-transcript-player-seek",[I.detail.startMs/1E3])};
_.L.handleSegmentReplay=function(I){_.uj(this.hostElement,"yt-transcript-player-replay",[I.detail.startMs/1E3,I.detail.endMs/1E3])};
_.L.handleSectionHeaderSelected=function(I){_.uj(this.hostElement,"yt-transcript-player-seek",[I.detail.startMs/1E3])};
_.L.onMouseEnter=function(){this.isHovered=!0};
_.L.onMouseLeave=function(){this.isHovered=!1};
_.L.onRetryButtonClick=function(){_.lj(this.hostElement,"transcript-retry-button-click")};
_.L.getSegmentElement=function(I){return _.XB(this.hostElement).querySelector(":nth-child("+(I+1)+")")};
_.L.scrollElementToTop=function(I){I=this.getSegmentElement(I>=2?I-2:0);this.hostElement.scrollTop=Math.min(I.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.L.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(I){var y,D=(y=I.transcriptSegmentRenderer)!=null?y:I.transcriptSectionHeaderRenderer;return{start:Number(D.startMs)/1E3,end:Number(D.endMs)/1E3,isAutoScrollable:I.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.L.clearHighlightedSegments=function(){var I=_.XB(this.hostElement);I=_.J(I.querySelectorAll("ytd-transcript-segment-renderer"));for(var y=I.next();!y.done;y=I.next())y.value.classList.remove("active")};
_.mD.Object.defineProperties(V4.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.searchResultSegments)||((y=this.data)==null?void 0:y.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
V4.prototype.onMouseLeave=V4.prototype.onMouseLeave;V4.prototype.onMouseEnter=V4.prototype.onMouseEnter;V4.prototype.handleSectionHeaderSelected=V4.prototype.handleSectionHeaderSelected;V4.prototype.handleSegmentReplay=V4.prototype.handleSegmentReplay;V4.prototype.handleSegmentSelected=V4.prototype.handleSegmentSelected;V4.prototype.handleSegmentEdit=V4.prototype.handleSegmentEdit;V4.prototype.segmentsChanged=V4.prototype.segmentsChanged;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],V4.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],V4.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],V4.prototype,"isError",void 0);
_.W([_.M(),_.A("design:type",Object)],V4.prototype,"noResultLabel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],V4.prototype,"darkerPanels",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],V4.prototype,"useParentMaxHeight",void 0);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],V4.prototype,"segments",null);
_.W([_.Y("segments","noResultLabel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],V4.prototype,"displayNoResults",null);_.W([_.ke("segments"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V4.prototype,"segmentsChanged",null);_.W([_.z4("yt-transcript-segment-edit"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],V4.prototype,"handleSegmentEdit",null);
_.W([_.z4("yt-transcript-segment-selected"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],V4.prototype,"handleSegmentSelected",null);_.W([_.z4("yt-transcript-segment-replay"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],V4.prototype,"handleSegmentReplay",null);
_.W([_.z4("ytd-transcript-section-header"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],V4.prototype,"handleSectionHeaderSelected",null);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V4.prototype,"onMouseEnter",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],V4.prototype,"onMouseLeave",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],V4);
_.a(V4,"ytd-transcript-segment-list-renderer",function(){if(j9T!==void 0)return j9T;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return j9T=I},{mode:1});var Zr=function(){var I=_.k.apply(this,arguments)||this;I.hideTimestamps=!!_.bX("hide-transcript-timestamps");I.isLoadingTranscripts=!1;I.darkerPanels=_.l("web_watch_darker_panels");I.isError=!1;I.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return I};
_.E(Zr,_.k);_.L=Zr.prototype;_.L.headerChanged=function(){var I,y;this.baseGetTranscriptsCommand=(y=_.u((I=this.data)==null?void 0:I.header,sYg))==null?void 0:y.onTextChangeCommand};
_.L.bodyChanged=function(){var I=this.getBodyRenderer();I&&(I.initialSegments&&(this.initialTranscriptsRenderer=I),I.noResultLabel&&(this.noResultLabel=I.noResultLabel),I.retryLabel&&(this.retryLabel=I.retryLabel))};
_.L.detached=function(){this.clearSearchBoxText()};
_.L.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.L.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"}}}};
_.L.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.L.fireSearch=function(I){var y=this;if(I){var D=I.detail.query;if(this.baseGetTranscriptsCommand){var F;I=(F=_.u(this.baseGetTranscriptsCommand,_.nFM))==null?void 0:F.params;var R;F=_.u((R=this.data)==null?void 0:R.footer,eHY);var O;if((R=(O=_.u(F==null?void 0:F.languageMenu,knG))==null?void 0:O.subMenuItems)&&R.length>0&&(O=R.find(function(P){return P.selected}))){var w,v;
I=(w=O.continuation)==null?void 0:(v=w.reloadContinuationData)==null?void 0:v.continuation}w=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:I,searchQuery:D}});this.ytComponentBehavior.resolveCommand(w,{commandController:{onServerError:function(){y.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Rdo(this.ytContinuationHandlerBehavior,function(){return D===y.getCurrentSearchBoxText()})}}};
_.L.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.L.onRetryButtonClick=function(){this.isError=!1;var I={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:I}))};
_.L.hideTimestampsChanged=function(){_.$c("hide-transcript-timestamps",this.hideTimestamps)};
_.L.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.L.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.L.handleSignalActionCopyTranscript=function(){var I=this,y=this.getBodyRenderer();y&&(y=((y==null?void 0:y.searchResultSegments)||(y==null?void 0:y.initialSegments)||[]).map(function(D){return _.u(D,Zfb)}).filter(function(D){return!!D}).map(function(D){return{snippet:D.snippet||{runs:[{text:""}]},
startTimeText:D.startTimeText||{simpleText:""}}}).map(function(D){var F=(D.snippet.runs||[]).reduce(function(R,O){return R+O.text},"");
return I.hideTimestamps?F:D.startTimeText.simpleText+" "+F}).join("\n"),this.copyToClipboard(y))};
_.L.copyToClipboard=function(I){navigator.clipboard&&navigator.clipboard.writeText(I)};
_.L.getCurrentSearchBoxText=function(){var I;return(I=this.searchBox)==null?void 0:I.value};
_.L.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.L.getBodyRenderer=function(){var I;return _.u((I=this.data)==null?void 0:I.body,Vt8)};
_.L.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.mD.Object.defineProperties(Zr.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.XB(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Zr.prototype.hideTimestampsChanged=Zr.prototype.hideTimestampsChanged;Zr.prototype.searchCleared=Zr.prototype.searchCleared;Zr.prototype.fireSearch=Zr.prototype.fireSearch;Zr.prototype.onReloadContinuationFinish=Zr.prototype.onReloadContinuationFinish;Zr.prototype.bodyChanged=Zr.prototype.bodyChanged;Zr.prototype.headerChanged=Zr.prototype.headerChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],Zr.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zr.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zr.prototype,"hideTimestamps",void 0);
_.W([_.M(),_.A("design:type",Object)],Zr.prototype,"isLoadingTranscripts",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zr.prototype,"darkerPanels",void 0);_.W([_.M(),_.A("design:type",Object)],Zr.prototype,"isError",void 0);_.W([_.ke("data.header"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"headerChanged",null);
_.W([_.Bp("data.body"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"bodyChanged",null);_.W([_.z4("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"onReloadContinuationFinish",null);_.W([_.z4("yt-transcript-search-box-search"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Zr.prototype,"fireSearch",null);
_.W([_.z4("yt-transcript-search-box-clear"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"searchCleared",null);_.W([_.ke("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"hideTimestampsChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Zr);
_.a(Zr,"ytd-transcript-search-panel-renderer",function(){if(UWY!==void 0)return UWY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return UWY=I},{mode:1});var g3=function(){var I=_.k.apply(this,arguments)||this;I.player=null;I.playerPollJobId=0;return I};
_.E(g3,_.k);_.L=g3.prototype;_.L.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.L.onLoadReloadContinuation=function(I){_.l("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:I.target.data.continuation}}):(I={clickTrackingParams:I.target.data.clickTrackingParams,getTranscriptEndpoint:{params:I.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}}))};
_.L.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"}}}};
_.L.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.L.attached=function(){this.updatePlayerListening()};
_.L.detached=function(){this.updatePlayerListening()};
_.L.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.L.startPlayerListening=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return(y=_.NY())?D.yield(y.getPlayerPromise(),2):D.return();I.player=D.yieldResult;I.playerPollJobId=_.w2.addLowPriorityJob(function(){I.getPlayerVideoProgress()},1E3);
I.player.addEventListener("onCueRangeEnter",function(F){I.onCueRangeEnter(F)});
I.player.addEventListener("onCueRangeExit",function(F){I.onCueRangeExit(F)});
I.player.addEventListener("onStateChange",function(F){I.onPlayerStateChange(F)});
I.player.addEventListener("SEEK_TO",function(F){I.onPlayerSeek(F)});
_.Cj(D)})};
_.L.getPlayerVideoProgress=function(){var I=this;_.w2.cancelJob(this.playerPollJobId);if(this.player){var y=this.player.getCurrentTime();_.uj(this.hostElement,"yt-player-time-changed",[y])}this.playerPollJobId=_.w2.addLowPriorityJob(function(){I.getPlayerVideoProgress()},1E3)};
_.L.stopPlayerListening=function(){this.player=null;_.w2.cancelJob(this.playerPollJobId)};
_.L.onPlayerStateChange=function(I){I===2&&this.removePendingCue()};
_.L.onPlayerSeek=function(I){var y;if(y=this.pendingReplayCueId)y=this.pendingReplayCueId,y=I===(_.l("web_transcript_cue_id_killswitch")?Number(y):Number(y.split("_")[1]));y||this.removePendingCue()};
_.L.onCueRangeEnter=function(I){P9g(I)&&(this.pendingReplayCueId=I)};
_.L.onCueRangeExit=function(I){P9g(I)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.L.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.L.onYtTranscriptPlayerSeek=function(I){this.player&&this.player.seekTo(I,!0)};
_.L.onYtTranscriptPlayerReplay=function(I,y){this.player&&(this.player.addCueRange(t58(I),I,y),this.player.seekTo(I,!0),this.player.playVideo())};
_.L.onYtTranscriptPlayerEdit=function(I,y){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(t58(I),I,y),this.player.seekTo(I,!0))};
g3.prototype.onLoadReloadContinuation=g3.prototype.onLoadReloadContinuation;g3.prototype.panelContentVisibleChanged=g3.prototype.panelContentVisibleChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],g3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],g3.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],g3.prototype,"panelContentVisible",void 0);_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g3.prototype,"panelContentVisibleChanged",null);
_.W([_.z4("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],g3.prototype,"onLoadReloadContinuation",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],g3);
_.a(g3,"ytd-transcript-renderer",function(){if(PwR!==void 0)return PwR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PwR=I},{mode:1});var NFg;var hm1;var IM=function(){return _.k.apply(this,arguments)||this};
_.E(IM,_.k);IM.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.GC(this.hostElement,[this.data.clickCommand],this.hostElement))};
IM.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(ZA()+g9)+"px)"};
IM.prototype.updateShouldHideFromBinding=function(I){this.shouldHide=I.detail.value};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IM.prototype,"rendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IM.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],IM.prototype,"shouldHide",void 0);_.W([_.yd({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],IM);
_.a(IM,"ytd-ad-engagement-panel-banner-renderer",function(){if(hm1!==void 0)return hm1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return hm1=I},{mode:_.Qd("kevlar_poly_si_batch_j070")?1:2});var xW8;var yY=function(){var I=_.k.apply(this,arguments)||this;I.buttonUpdate=_.l("web_modern_buttons");I.adsSemanticText=_.l("enable_ads_web_ep_buenos_aires_and_padding_fix");return I};
_.E(yY,_.k);yY.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.W([_.M(),_.A("design:type",Object)],yY.prototype,"data",void 0);_.W([_.M({computed:"computeHideDefaultAdBadge(data)"}),_.A("design:type",Boolean)],yY.prototype,"hideDefaultAdBadge",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],yY.prototype,"buttonUpdate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],yY.prototype,"adsSemanticText",void 0);_.W([_.yd({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],yY);
_.a(yY,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(xW8!==void 0)return xW8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return xW8=I},{mode:1});var luQ;var D2=function(){var I=_.k.apply(this,arguments)||this;I.darkerPanels=_.l("web_watch_darker_panels");I.enableSqueezebackPanels=_.l("web_shorts_enable_squeezeback_panels");I.enableAnchoredPanel=_.l("desktop_shorts_v2_anchored_panel");I.headerClickListener=function(y){I.onHeaderClick(y)};
I.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return I};
_.E(D2,_.k);_.L=D2.prototype;_.L.computeAdsInfoButton=function(){if(_.l("web_modern_buttons")){var I,y;return(y=_.u((I=this.data)==null?void 0:I.subtitleComplex,TKb))==null?void 0:y.adInfoRenderer}};
_.L.updateHeaderClickListener=function(){var I,y,D;((I=this.data)==null?0:I.navigationEndpoint)||((y=this.data)==null?0:y.onClickCommand)||_.u((D=this.data)==null?void 0:D.visibilityButton,_.tz)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.L.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}}}}}};
_.L.collapsedChanged=function(){var I;(I=this.data)!=null&&I.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.l("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.L.focus=function(I){var y=this;this.titleElement&&_.w2.addJob(function(){_.qw(y.titleElement,I)},0,500)};
_.L.computeTitleAriaLabel=function(I){var y=[];if(I.title){var D,F;y.push(this.ytRendererBehavior.getSimpleString(I.title)||((D=I.title.accessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label))}I.contextualInfo&&y.push(this.ytRendererBehavior.getSimpleString(I.contextualInfo));return y.join(" ")};
_.L.onHeaderClick=function(I){this.shouldTriggerHeaderClick(I)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.GC(this.hostElement,[this.data.onClickCommand],this.hostElement)):(I=this.getVisibilityToggleButton())&&I.click())};
_.L.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var I=_.u(this.data.visibilityButton,_.S1)||_.u(this.data.visibilityButton,_.tz);I&&this.ytRendererBehavior.logExplicitClick(I)}};
_.L.getVisibilityToggleButton=function(){var I=_.XB(this.hostElement).querySelector("#visibility-button").firstElementChild;return(I==null?void 0:I.is)==="ytd-toggle-button-renderer"?I:null};
_.L.shouldTriggerHeaderClick=function(I){return!_.UP(_.r4(I),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.L.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(I){I=_.u(I,hH1);this.targetId&&(I==null?void 0:I.targetId)===this.targetId&&(I=I.navigationButton)&&this.set("data.navigationButton",I)};
_.mD.Object.defineProperties(D2.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!!(((I=this.entity)==null?0:I.isActionButtonHidden)||this.hideActionButton)}}});
D2.prototype.collapsedChanged=D2.prototype.collapsedChanged;D2.prototype.updateHeaderClickListener=D2.prototype.updateHeaderClickListener;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],D2.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],D2.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],D2.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],D2.prototype,"targetId",void 0);_.W([_.M(),_.A("design:type",Boolean)],D2.prototype,"collapsed",void 0);_.W([_.M(),_.A("design:type",Boolean)],D2.prototype,"hideActionButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],D2.prototype,"shortsPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],D2.prototype,"liveChatEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],D2.prototype,"learningChatEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],D2.prototype,"darkerPanels",void 0);_.W([_.a0("#title"),_.A("design:type",HTMLElement)],D2.prototype,"titleElement",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],D2.prototype,"headerElement",void 0);
_.W([_.M({computed:"computeAdsInfoButton(data)"}),_.A("design:type",Object)],D2.prototype,"adsInfoButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],D2.prototype,"enableSqueezebackPanels",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],D2.prototype,"enableAnchoredPanel",void 0);_.W([_.M({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(I,y){return _.nC(I.entities,"engagementPanelTitleHeaderEntity",y)}}),
_.A("design:type",Object)],D2.prototype,"entity",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D2.prototype,"adsSemanticText",null);_.W([_.ke("data","data.navigationEndpoint","data.onClickCommand"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D2.prototype,"updateHeaderClickListener",null);
_.W([_.Bp("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D2.prototype,"collapsedChanged",null);_.W([_.Y("entity","hideActionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D2.prototype,"isActionButtonHidden",null);_.W([_.yd({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],D2);
_.a(D2,"ytd-engagement-panel-title-header-renderer",function(){if(luQ!==void 0)return luQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return luQ=I},{mode:1});var uag;var F7=function(){return _.k.apply(this,arguments)||this};
_.E(F7,_.k);F7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],F7.prototype,"data",void 0);_.W([_.yd({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],F7);
_.a(F7,"ytd-macro-markers-info-item-renderer",function(){if(uag!==void 0)return uag;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return uag=I},{mode:1});var qjY;var RM=function(I,y,D,F,R,O){_.B5.call(this);var w=this;this.JSC$21092_containerElement=I;this.hostElement=y;this.supportedSyncItems=D;this.syncEntityKey=F;this.options=R;this.renderLazyListItems=O;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Eo8(this);GgZ(this);this.JSC$21092_scrollAnimation=new _.xH(function(v){I.scrollTop=v});
_.pW(this,this.JSC$21092_scrollAnimation);this.addOnDisposeCallback(function(){XMe(w,!1);w.activeItem&&w.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.E(RM,_.B5);var Eo8=function(I){var y=_.TV(_.nR().resolve(_.LM),function(D){return D.entities.markersEngagementPanelSyncEntity||{}},function(D,F){var R;
if(D[I.syncEntityKey]!==F[I.syncEntityKey]&&((R=D[I.syncEntityKey])==null?void 0:R.activeItemIndex)!==void 0)if(F=D[I.syncEntityKey].activeItemIndex,D=I.getItemByIndex(F)){if(Q9o(I,D),I.contentVisible)if(I.browsingMode){var O;((O=I.options)==null?void 0:O.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(O=YjC(I),D.offsetTop<I.JSC$21092_containerElement.clientHeight+I.JSC$21092_containerElement.scrollTop&&O&&!I.activeItemBelowSyncPosition&&XMe(I,!1));fuy(I)}else I.scrollToItem(D)}else _.tq(new _.g6("Could not find "+
I.supportedSyncItems+" sync child to set active.",F,I.JSC$21092_containerElement.querySelectorAll(I.supportedSyncItems).length))});
I.unsubscribeFromTimedMarkersListSyncEntity=y;I.addOnDisposeCallback(y);noG(I)},noG=function(I){var y=_.nR().resolve(_.LM);
y=_.Trq(y.getState(),I.syncEntityKey);(y==null?void 0:y.activeItemIndex)!==void 0&&(y=I.getItemByIndex(y.activeItemIndex))&&Q9o(I,y)},GgZ=function(I){var y=new _.n4(I.onScroll,50,I);
_.pW(I,y);var D=function(){y.fire()};
I.JSC$21092_containerElement.addEventListener("scroll",D);I.addOnDisposeCallback(function(){I.JSC$21092_containerElement.removeEventListener("scroll",D)})};
RM.prototype.getItemByIndex=function(I){var y;(y=this.renderLazyListItems)==null||y.call(this,I);y=this.JSC$21092_containerElement.querySelectorAll(this.supportedSyncItems);if(y.length>I)return y[I]};
var Q9o=function(I,y){I.activeItem&&I.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));y.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));I.activeItem=y};
RM.prototype.scrollToItem=function(I){I=this.getScrollPositionForItem(I);this.JSC$21092_containerElement.scrollTop!==I&&this.JSC$21092_scrollAnimation.start(this.JSC$21092_containerElement.scrollTop,I,300)};
RM.prototype.getScrollPositionForItem=function(I){if(this.JSC$21092_containerElement.querySelectorAll(this.supportedSyncItems)[0]===I)return 0;var y,D=((y=this.options)==null?0:y.percentOffset)?this.JSC$21092_containerElement.clientHeight*this.options.percentOffset:0;I=_.ZO(I).y+this.JSC$21092_containerElement.scrollTop-(_.ZO(this.JSC$21092_containerElement).y+D);return Math.max(0,Math.min(I,this.JSC$21092_containerElement.scrollHeight-this.JSC$21092_containerElement.offsetHeight))};
RM.prototype.onScroll=function(){this.activeItemBelowSyncPosition=YjC(this);if(this.activeItem&&!this.JSC$21092_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21092_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var I;switch((I=this.options)==null?void 0:I.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":pMR(this,!mWa(this));fuy(this);break;default:pMR(this,!0)}}};
var pMR=function(I,y){var D,F;_.S(function(R){if(R.nextAddress==1){if(I.browsingMode)return R.return();I.browsingMode=!0;y&&I.hostElement.classList.add("browsing-mode");I.playerExitBrowsingModeListener=function(){XMe(I,!1)};
return R.yield(_.Yz(),2)}D=R.yieldResult;(F=D)==null||F.addEventListener("SEEK_TO",I.playerExitBrowsingModeListener);_.Cj(R)})},XMe=function(I,y){y=y===void 0?!0:y;
I.browsingMode&&(I.browsingMode=!1,I.hostElement.classList.remove("browsing-mode"),y&&I.scrollToItem(I.activeItem),MLo(I))},MLo=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return I.playerExitBrowsingModeListener?F.yield(_.Yz(),3):F.jumpTo(0);y=F.yieldResult;(D=y)==null||D.removeEventListener("SEEK_TO",I.playerExitBrowsingModeListener);I.playerExitBrowsingModeListener=void 0;_.Cj(F)})},fuy=function(I){var y;
((y=I.options)==null?void 0:y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(mWa(I)?I.hostElement.classList.remove("browsing-mode"):I.activeItem&&I.hostElement.classList.add("browsing-mode"))},YjC=function(I){if(!I.activeItem)return!1;
var y,D=((y=I.options)==null?0:y.percentOffset)?I.JSC$21092_containerElement.clientHeight*I.options.percentOffset:0;return I.activeItem.offsetTop>=I.JSC$21092_containerElement.scrollTop+D},mWa=function(I){if(!I.activeItem)return!1;
var y=I.activeItem.offsetTop+14<=I.JSC$21092_containerElement.scrollTop+I.JSC$21092_containerElement.clientHeight;return I.activeItem.offsetTop+I.activeItem.clientHeight-14>=I.JSC$21092_containerElement.scrollTop&&y};
RM.prototype.panelContentVisibleChanged=function(I){(this.contentVisible=I)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var zmG=function(I,y){I.syncEntityKey=y;var D;(D=I.unsubscribeFromTimedMarkersListSyncEntity)==null||D.call(I);Eo8(I)},kgo=function(I,y){I.options=y};var Oz=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return I};
_.E(Oz,_.k);_.L=Oz.prototype;_.L.detached=function(){var I;(I=this.scrollController)==null||I.dispose();this.scrollController=void 0};
_.L.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"}}}};
_.L.dataChanged=function(){var I=this;_.YC(this,function(){if(I.scrollController){var y;(y=I.scrollController)==null||XMe(y,!1);var D,F,R;(F=I.scrollController)==null||zmG(F,(R=(D=I.data)==null?void 0:D.syncModelEntityKey)!=null?R:"default-macro-markers-list-renderer-entity-key");var O,w,v;(v=I.scrollController)==null||kgo(v,{percentOffset:(O=I.data)==null?void 0:O.selectedItemAlignmentPercentOffset,floatingPillType:(w=I.data)==null?void 0:w.floatingPillType})}else{var P,K,r,N;I.scrollController=
new RM(I.contents,I.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(N=(P=I.data)==null?void 0:P.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key",{percentOffset:(K=I.data)==null?void 0:K.selectedItemAlignmentPercentOffset,floatingPillType:(r=I.data)==null?void 0:r.floatingPillType},function(h){I.renderLazyListItems(h)})}I.scrollController.panelContentVisibleChanged(!!I.panelContentVisible)})};
_.L.computeButtonShape=function(){var I=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){I.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.L.renderLazyListItems=function(I){for(var y=this.contents.children,D=0,F=0;F<y.length;F++){var R=void 0;(R=y[F].ytLazyListBehavior)==null||R.fillRemainingListItems();var O=void 0,w=void 0;R=_.u((O=this.data)==null?void 0:(w=O.contents)==null?void 0:w[F],_.jtz);w=O=void 0;if((O=R)==null?0:(w=O.contents)==null?0:w.length)D+=R.contents.length;if(D>=I)break}};
_.L.handleSetActivePanelItemAction=function(I){if((I=_.u(I,YGy))&&this.panelTargetId===I.panelTargetId){I=I.itemIndex;var y,D,F=(D=(y=this.data)==null?void 0:y.syncModelEntityKey)!=null?D:"default-macro-markers-list-renderer-entity-key",R;((R=this.syncEntity)==null?void 0:R.activeItemIndex)!==I&&this.ytdReduxBehavior.dispatch(_.WS("markersEngagementPanelSyncEntity",F,{key:F,activeItemIndex:I}))}};
_.L.onSyncClick=function(){var I;(I=this.scrollController)==null||XMe(I)};
_.L.panelContentVisibleChanged=function(){var I;(I=this.scrollController)==null||I.panelContentVisibleChanged(!!this.panelContentVisible)};
Oz.prototype.panelContentVisibleChanged=Oz.prototype.panelContentVisibleChanged;Oz.prototype.dataChanged=Oz.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Oz.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],Oz.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Oz.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oz.prototype,"useCustomColors",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Oz.prototype,"panelTargetId",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Oz.prototype,"panelContentVisible",void 0);
_.W([_.a0("#contents"),_.A("design:type",HTMLElement)],Oz.prototype,"contents",void 0);_.W([_.M({selectorArgs:["data.syncModelEntityKey"],selector:_.Trq}),_.A("design:type",Object)],Oz.prototype,"syncEntity",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oz.prototype,"dataChanged",null);
_.W([_.ke("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oz.prototype,"panelContentVisibleChanged",null);_.W([_.yd({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Oz);
_.a(Oz,"ytd-macro-markers-list-renderer",function(){if(qjY!==void 0)return qjY;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qjY=I},{mode:1});var dWZ;var aug;var LU=function(){return _.k.apply(this,arguments)||this};
_.E(LU,_.k);LU.prototype.computeAriaLabel=function(I){var y,D;return(I==null?void 0:(y=I.accessibility)==null?void 0:(D=y.accessibilityData)==null?void 0:D.label)||_.zC("LOADING",void 0,"Loading")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],LU.prototype,"data",void 0);_.W([_.M({computed:"computeAriaLabel(data)"}),_.A("design:type",String)],LU.prototype,"ariaLabel",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],LU);
_.a(LU,"yt-content-loading-renderer",function(){if(aug===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;dWZ===void 0&&(dWZ=document.createElement("template"));var F=dWZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);aug=I}I=aug;return I},{mode:1});_.NK(_.d(function(I){var y=_.J(_.$M(!1,void 0,"OZMtVb")),D=y.next().value,F=y.next().value;y=_.J(_.$M(!1,void 0,"qWERsf"));var R=y.next().value,O=y.next().value;_.LR(function(){var P=_.u(I.data().collaboratePlaylistCollaborationSetting,HfR);P&&F(P.switchedOnByDefault);var K=_.u(I.data().allowNewCollaboratorsPlaylistCollaborationSetting,HfR);K&&O(K.switchedOnByDefault);if(!P&&!K||!P&&I.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")F(!0),O(!0)});
var w=function(P){F(P);O(P);var K=I.data().playlistCollaborationEntityKey||"";var r=_.Uv().getState();(r=_.nC(r.entities,"playlistCollaborationEntity",K))&&(r==null?void 0:r.isCollaborative)===P||_.Uv().dispatch(_.WS("playlistCollaborationEntity",K,Object.assign({},r,{isCollaborative:P})))},v=function(P){O(P)};
return _.t("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.t("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.t(_.aP,{data:function(){return I.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(P){return _.t(_.nGM,{data:P.data,
onSwitch:w})}})),_.t(_.U,{cond:D,
then:function(){return _.t(_.ni,null,_.t("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.t(_.aP,{data:function(){return I.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(P){return _.t(_.nGM,{data:P.data,
onSwitch:v,overrideDisabled:!1})}})),_.t(_.U,{cond:R,
then:function(){return _.t("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.t(_.aP,{data:function(){return I.data().copyLinkButton}},{buttonViewModel:_.My}))}}),_.t("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.t(_.aP,{data:function(){return I.data().playlistCollaborators}},{contentListItemViewModel:YTg})))}}))},"xj"),"playlist-collaboration-view-model",{props:{data:_.om}});var ccC=_.d(function(I){var y=I.data;var D=I.customCommandResolver;return _.t(_.ni,null,_.t("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.t(_.aP,{data:function(){return y().adAvatar}},{adAvatarViewModel:function(F){return _.t(_.sHW,{data:F.data,
customCommandResolver:D})}})),_.t("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.t(_.U,{cond:function(){return y().headline},
then:function(F){return _.t(_.jr,{text:F,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.t("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.t(_.aP,{data:function(){return y().adBadge}},{adBadgeViewModel:function(F){return _.t(_.dm,{data:F.data,
hasDot:function(){return y().primaryDetailsLine!==void 0},
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.t(_.aP,{data:function(){return y().primaryDetailsLine}},{adDetailsLineViewModel:function(F){return _.t(_.a2,{data:F.data,
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"yj"),WxY=_.d(function(I){var y=I.data;
var D=I.customCommandResolver;return _.t("ad-avatar-lockup-view-model",{class:function(){var F;return((F=y().interaction)==null?0:F.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.K4(_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF}),_.Dy(function(){return y().interaction},D)),
"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t(_.I8,null,_.t(_.Vj,{when:function(){return y().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.t(ccC,{data:y,
customCommandResolver:D})}),_.t(_.Z4,null,function(){return null})))},"zj");_.NK(_.d(function(I){var y=I.data;var D=I.panelContentVisibility;I=_.pT({visibilityCallback:function(O){var w,v=(w=y().interaction)==null?void 0:w.onFirstVisible;O&&v&&_.OE(v)},
showOption:_.fF});var F=_.Dy(function(){return y().interaction},KKa);
_.JI(function(){var O,w;if(w=_.jF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var v;w=(v=w())==null?void 0:v.onLayoutVisibleCallback}else w=null;(O=w)==null||O()},"Aj");
var R=function(){return D()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.t("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.K4(I,F)},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.t(_.U,{cond:_.ZyJ("(min-width: "+(ZA()+g9)+"px) or (max-width: 600px)"),then:function(){return _.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(O){return _.t(_.$x,{data:O.data,
targetHeight:80,customCommandResolver:KKa})}})}})),_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.t(_.aP,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(O){return _.t(WxY,{data:O.data,
customCommandResolver:KKa})}})),_.t(_.U,{cond:R,
then:function(){return _.t(_.aP,{data:function(){return y().adButton}},{adButtonViewModel:function(O){return _.t(_.pF,{data:O.data,
customCommandResolver:KKa})}})},
else:function(){return _.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:_.My})}}),_.t("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.t(_.aP,{data:function(){var O=_.u(y().toggleButton,_.r7);
return{toggleButtonViewModel:Object.assign({},O,{isTogglingDisabled:!0,isToggled:R()})}}},{toggleButtonViewModel:_.yJ})))))},"Bj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.om,
panelContentVisibility:_.om}});var Cwg=_.d(function(I){return _.t("yt-feedback-prompt-view-model",{class:_.XH("ytFeedbackPromptViewModelHost",I.className)},_.t(_.U,{cond:function(){return I.data().text},
then:function(y){return _.t(_.jr,{text:y,className:"ytFeedbackPromptViewModelPrompt"})}}),_.t(_.aP,{data:function(){return I.data().likeButton}},{likeButtonViewModel:function(y){return _.t(_.SD,{data:y.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.t(_.aP,{data:function(){return I.data().dislikeButton}},{dislikeButtonViewModel:_.vQ}))},"Cj");var BFa=_.d(function(I){var y=void 0,D=function(){return I.data()},F=function(){return!!_.b9(_.AU(D())).optionColor},R=_.J(_.$M(-1,void 0,"m6Iyqc")),O=R.next().value,w=R.next().value,v=function(h){return O()===h},P=function(h){return D().correctAnswerIndex===h},K=function(){return O()!==-1};
R=_.J(_.$M("",void 0,"jvMkLd"));var r=R.next().value,N=R.next().value;return _.t("yoututor-quiz-view-model",{class:_.XH("learningQuizComponentHost","learningYoututorQuizHost",I.className),style:_.p4({background:function(){return _.b9(_.AU(D())).backgroundColor}})},_.t("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},r),_.t("div",{class:"learningQuizComponentQuizContainer"},_.t("div",{class:"learningQuizComponentQuiz"},_.t("div",{class:"learningQuizComponentQuizContent"},_.t(_.U,{cond:function(){return!!D().aiGeneratedQuizLabel},
then:function(){return _.t("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.t(_.jr,{text:function(){return D().aiGeneratedQuizLabel}}))}}),_.t("div",{class:"learningQuizComponentQuizHeader"},_.t("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.t("div",{class:"learningYoututorQuizText",
style:_.p4({color:function(){return _.b9(_.AU(D())).primaryTextColor}})},_.t(_.jr,{text:function(){return D().questionHeaderText}}))))),_.t("div",{role:"group",
class:_.XH("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.t(_.gZ,{each:function(){return D().optionsData||[]}},function(h,x){var q={};
return _.t("button",{class:_.XH("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(q.learningQuizComponentQuizHover=function(){return!K()},q.learningQuizComponentQuizOptionWithCustomColor=F,q.learningYoututorQuizOptionSelectedCorrectOutline=function(){return K()&&P(x())},q.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return O()!==D().correctAnswerIndex&&v(x())},q.learningQuizComponentQuizIncorrectShake=function(){return O()!==
D().correctAnswerIndex&&v(x())},q)),
"on:click":_.YY(function(){_.OP(_.W4(),{data:h});if(K())return!1;w(x());N(P(x())?D().correctAnswerAriaLabel||"":D().incorrectAnswerAriaLabel||"");return!1}),
style:_.p4({background:"transparent"}),"aria-description":function(){return K()?P(x())?D().correctAnswerAriaLabel:D().incorrectAnswerAriaLabel:""},
"aria-disabled":K,el:_.K4(function(X){_.H_(271905,X,y,function(f){y=f})}),
"client-ve-type":271905},_.t("div",{class:"learningQuizComponentQuizOptionContainer"},_.t(_.jr,{text:h.optionText}),_.t(_.U,{cond:function(){var X=x();return K()&&(v(X)||P(X))},
then:function(){var X={};return _.t(_.mj,{className:_.XH("learningYoututorQuizOptionIcon",(X.learningQuizComponentQuizPulse=function(){return O()===D().correctAnswerIndex&&P(x())},X)),
size:24,icon:function(){return P(x())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.t(_.U,{cond:K,
then:function(){return _.t("div",{class:"learningYoututorQuizExplanationContainer"},_.t("div",{class:"learningYoututorQuizExplanationText"},_.t(_.jr,{text:function(){return D().explanationHeaderText}})),_.t(_.jr,{text:function(){return D().optionsData[O()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Dj");
BFa.idomCompat=!0;var iw1=_.d(function(I){var y=I.thumbsUp,D=I.thumbsDown,F=I.rightAlignThumbs;I=_.J(_.$M(!1,void 0,"OxPsH"));var R=I.next().value,O=I.next().value;I=_.J(_.$M(!1,void 0,"V5vWne"));var w=I.next().value,v=I.next().value;I={};return _.t("div",{class:_.XH("ytwThumbsUpDownThumbs",(I.ytwThumbsUpDownRightAlign=function(){return F==null?void 0:F()},I))},_.t(_.yJ,{data:y,
onToggle:function(P){O(P);w()&&v(!1)},
buttonShapeOverrides:function(){return{toggled:R()}}}),_.t(_.yJ,{data:D,
onToggle:function(P){v(P);R()&&O(!1)},
buttonShapeOverrides:function(){return{toggled:w()}}}))},"Ej");
iw1.idomCompat=!0;var $WQ=_.d(function(I){var y=function(){return I.data().pendingStateEntityKey||""},D=_.zj(rUR,y),F=function(){var v;
if(!(v=I.disabled())){var P;v=!((P=D())==null||!P.isPendingResponse)}return v},R=_.J(_.$M(nca(""),void 0,"Q6q6y")),O=R.next().value,w=R.next().value;
_.OJ(function(){requestAnimationFrame(function(){var v=I.data().onShowAnimationMs||0;v=v>0?nca("--chip-animation-duration: "+v+"ms;"):nca("");w(v)})});
return _.t("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:O},_.t(_.gZ,{each:function(){return I.data().chipData||[]},
keyBy:"REFERENCE"},function(v){return _.t(AcC,{data:v,disabled:F,pendingStateKey:y,onError:I.onError})}))},"Gj"),AcC=_.d(function(I){var y=_.Fh("button"),D=_.J(_.$M(!0,void 0,"baSFEf")),F=D.next().value,R=D.next().value,O=function(){return I.data().text.content},w=function(){return I.data().transparentWhenLoading},v=_.dV(_.LV.currentPageSubTypeSelector),P=function(){var r;
return(r=_.nR().resolve(_.fR(_.yb)))==null?void 0:_.vBy(r,v())},K=_.YY(function(r){var N,h,x,q,X,f,m,z;
return _.S(function(B){switch(B.nextAddress){case 1:r.stopPropagation();if(I.disabled())return B.return();h=String(Math.floor(((N=_.ft())==null?void 0:N.getCurrentTime())||0)*1E3);x="youchat-"+Date.now();q=function(){_.Do(I.data().onClick||{});var C=UlT(I.data().continuation),H=bY({clientMessageId:x,playerOffsetMs:h,pageContext:P()});return new Promise(function(e,T){_.Do(C,{form:{formData:H},commandController:{onSuccess:function(L5,vH){e(vH)},
onServerError:function(L5,vH){T(vH.error)}}})})};
X=jkY(I.pendingStateKey());X(!0);iTR("#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");R(!1);_.nj(B,2);return B.yield(q(),4);case 4:_.lZ(B,3);break;case 2:f=_.dj(B),(z=(m=I).onError)==null||z.call(m,f);case 3:X(!1),_.Cj(B)}})});
return _.t(_.U,{cond:F,then:function(){return _.t("div",{class:"ytwYouChatChipsDataChipWrapper"},_.t("button",{el:y,class:"ytwYouChatChipsDataChip","data-disabled":I.disabled,"data-transparent-loading":w,"on:click":K,tabindex:0},O))}})},"Hj");var bwT=_.d(function(I){var y=I.data;var D=I.initiallyExpanded;var F=function(){var K;return(K=y().conversationResourceData)==null?void 0:K.learningGuideData};
I=_.J(_.N4(function(){var K;return(K=D==null?void 0:D())!=null?K:!1}));
var R=I.next().value,O=I.next().value,w=function(){var K,r=_.u((K=F())==null?void 0:K.expandButton,_.Kb);r&&_.OP(_.W4(),{data:r});O(!0)},v=_.su(function(){var K,r;
return(r=(K=F())==null?void 0:K.sections)!=null?r:[]},void 0,"V7sYqc"),P=_.su(function(){return v().length>4},void 0,"GFFPnd");
I=_.su(function(){var K;return!R()&&P()&&(K=F())!=null&&K.expandButton?v().slice(0,4):v()},void 0,"Rbi7Ke");
return _.t("yt-conversation-resource-view-model",{class:_.XH("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.t(_.aP,{data:I},{expandableMetadataViewModel:_.NZe}),_.t(_.U,{cond:function(){return P()&&!R()},
then:function(){return _.t("div",{id:"showMoreButton"},_.t(_.aP,{data:function(){var K;return(K=F())==null?void 0:K.expandButton}},{buttonViewModel:function(K){return _.t(_.My,{data:K.data,
onClick:w})}}))}}))},"Ij");_.Hwo=_.d(function(I){var y=function(){var B;return(B=I.data().text)==null?void 0:B.content},D=function(){var B,C;
return(B=I.data().webData)==null?void 0:(C=B.textResult)==null?void 0:C.content},F=_.nR().resolve(_.JU),R=_.nt(),O=function(){return I.data().chatResponseStyle},w=function(){return!I.data().transparentBackground},v=function(){return I.data().rightAlignThumbs},P=function(){return I.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||I.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},K=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:P()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:I.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},r=function(){var B;
return I.data().webData||((B=I.data().text)==null?void 0:B.content)||I.data().videoResultsData||I.data().conversationResourceViewModel||I.data().quiz||I.data().yoututorQuiz||I.data().richContent},N=function(){return!!I.data().sectionHeader||r()},h=function(){return I.data().hideIcon||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:N()},x=function(){var B;
return(B=I.data().videoResultsData)==null?void 0:B.videoShelf},q=function(){var B;
return(B=I.data().webData)==null?void 0:B.sourcesShelf},X=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:I.data().thumbsDownViewModel&&I.data().thumbsUpViewModel},f=function(){return _.u(I.data().thumbsUpViewModel,_.r7)},m=function(){return _.u(I.data().thumbsDownViewModel,_.r7)};
_.OJ(function(){requestAnimationFrame(function(){var B;(B=I.shouldAnimateIcon)!=null&&B.call(I)&&hba(R.lottieEl)})});
var z={};return _.t("you-chat-item-view-model",{class:_.XH("ytwYouChatItemViewModelYouChatItemViewModel",(z.ytwYouChatItemViewModelColumnLayout=function(){return P()},z)),
style:_.p4({"min-height":function(){var B,C;return U5C((B=I.containerHeight)==null?void 0:B.call(I),(C=I.isLastItem)==null?void 0:C.call(I))}}),
"data-target-id":function(){return I.data().id||""}},_.t(_.U,{cond:function(){return I.data().removeIcon||P()&&!h()?!1:N()},
then:function(){var B={};return _.t("div",{"aria-hidden":"true"},_.t(_.Wb,{className:_.XH("ytwYouChatItemViewModelIcon",(B.ytwYouChatItemViewModelRtl=F==="rtl",B.ytwYouChatItemViewModelHidden=function(){return!h()},B)),
animationName:"YOUCHAT_ICON",data:K,animationRef:R}))}}),_.t(_.U,{cond:N,
then:function(){var B={};return _.t("div",{class:_.XH("ytwYouChatItemViewModelHost",(B.ytwYouChatItemViewModelHostNoPadding=function(){return!!I.data().sectionHeader&&!r()},B.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},B.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},B.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
B.ytwYouChatItemViewModelGradientBackground=w,B.ytwYouChatItemViewModelHostAlignStart=function(){return!P()},B.ytwYouChatItemViewModelHostDefaultFlex=function(){return!P()},B)),
role:"alert"},_.t(_.U,{cond:y,then:function(C){return _.t(_.ox,{text:C,wrapCodeBlocks:!0})}}),_.t(_.aP,{data:function(){return I.data().sectionHeader}},{sectionHeaderViewModel:function(C){var H={};
return _.t(_.BA,{data:C.data,className:_.XH("ytwYouChatItemViewModelSectionHeader",(H.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!I.data().sectionHeader&&!r()},H)),
forceSmallLayout:!0})}}),_.t(_.U,{cond:D,
then:function(C){return _.t(_.ox,{text:C,wrapCodeBlocks:!0})}}),_.t(_.U,{cond:x,
then:function(){return _.t("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.t(_.aP,{data:function(){var C;return(C=I.data().videoResultsData)==null?void 0:C.videoShelf}},{horizontalShelfViewModel:function(C){return _.t(_.r_,{data:C.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.t(_.U,{cond:q,
then:function(){return _.t("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.t(_.aP,{data:function(){var C;return(C=I.data().webData)==null?void 0:C.sourcesShelf}},{horizontalShelfViewModel:function(C){return _.t(_.r_,{data:C.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.t(_.aP,{data:function(){return I.data().conversationResourceViewModel}},{conversationResourceViewModel:bwT}),_.t(_.aP,{data:function(){return I.data().quiz}},{learningJourneyQuizViewModel:_.e8O}),_.t(_.aP,{data:function(){return I.data().yoututorQuiz}},{yoututorQuizViewModel:BFa}),_.t(_.aP,{data:function(){return I.data().richContent}},{cardViewModel:M3R,
linearLayoutViewModel:_.Kq}),_.t(_.U,{cond:X,then:function(){return _.t(iw1,{thumbsUp:f,thumbsDown:m,rightAlignThumbs:v})}}))}}),_.t(_.U,{cond:function(){return I.data().chipsData},
then:function(B){return _.t($WQ,{data:B,disabled:I.pending,onError:I.onError})}}))},"Kj");
_.Hwo.idomCompat={callbacks:{onError:!0,onSend:!0}};_.em1=_.d(function(I){var y=function(){var w;return((w=I.data)==null?void 0:w.call(I).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},D=_.nt(),F=_.nR().resolve(_.JU);
_.OJ(function(){requestAnimationFrame(function(){var w;(w=D.lottieEl)==null||w.addEventListener("DOMLoaded",function(){var v;(v=I.onLottieLoaded)==null||v.call(I)})})});
var R=function(){var w;return(w=I.data)==null?void 0:w.call(I).loadingAnimationA11yLabel},O={};
return _.t("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var w;return((w=I.data)==null?void 0:w.call(I).targetId)||""},
"aria-label":function(){return R()||""},
role:function(){return R()?"progressbar":void 0},
style:_.p4({"min-height":function(){var w,v;return U5C((w=I.containerHeight)==null?void 0:w.call(I),(v=I.isLastItem)==null?void 0:v.call(I))}})},_.t(_.Wb,{"aria-hidden":"true",
className:_.XH((O.ytChatLoadingViewModelRtl=F==="rtl",O)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:y()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||y()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:y()}}},
animationRef:D}))},"Mj");_.TFG=_.d(function(I){var y=function(){return I.data().choiceSelectedText};
return _.t("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.p4({"min-height":function(){var D,F;return U5C((D=I.containerHeight)==null?void 0:D.call(I),(F=I.isLastItem)==null?void 0:F.call(I))}}),
"data-target-id":function(){var D;return(D=I.data().itemTargetId)!=null?D:""}},_.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.t(_.jr,{text:y}))}}),_.t("div",{class:_.XH("ytChatUserTurnViewModelUserMessage",function(){return x5G(I.data())})},function(){return I.data().text}))},"Nj");var s9T=_.d(function(I){var y=_.J((0,_.L3u)(I.data)).next().value,D=function(){var F,R;return(R=(F=y().contents)==null?void 0:F.length)!=null?R:0};
return _.t("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return I.data().targetId||""},
"aria-busy":function(){var F,R;return(R=(F=y().contents)==null?void 0:F.some(function(O){return!!O.chatLoadingViewModel}))!=null?R:!1}},_.t(_.aP,{data:function(){return I.data().header}},{chipBarViewModel:_.PUM,
sectionHeaderViewModel:_.BA}),_.t(_.aP,{data:function(){return y().contents}},{accordionViewModel:_.ZmW,
alertBannerViewModel:_.h8n,chatLoadingViewModel:function(F,R){return _.t(_.em1,{data:F.data,containerHeight:I.containerHeight,isLastItem:function(){return R()===D()-1}})},
chatUserTurnViewModel:function(F,R){return _.t(_.TFG,{data:F.data,containerHeight:I.containerHeight,isLastItem:function(){return R()===D()-1}})},
feedbackPromptViewModel:Cwg,gridShelfViewModel:function(F){return _.t(_.v3,{data:F.data,shouldUseOwnContainerSize:!0,marginSettings:I.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.AyG,linearLayoutViewModel:_.Kq,lockupViewModel:function(F){return _.t(_.W7,{data:F.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:I.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.BA,videoOverviewViewModel:_.JLb,youChatItemViewModel:function(F,R){return _.t(_.Hwo,{data:F.data,pending:!1,containerHeight:I.containerHeight,isLastItem:function(){return R()===D()-1}})}}))},"Oj");_.NK(_.d(function(I){var y=_.J((0,_.L3u)(I.data)).next().value,D=_.J(_.c_()),F=D.next().value;D=D.next().value;var R=_.K4(D);D=_.J(_.$M(void 0,void 0,"fqbUqd"));var O=D.next().value,w=D.next().value,v=function(){var P;return _.u((P=I.data().sectionListLayoutConfiguration)==null?void 0:P.layoutConfiguration,zsQ)};
_.LR(function(){var P,K=(P=R.value)==null?void 0:P.clientWidth;P=v()?_.flB(K,v()):void 0;w(P)});
D={};return _.t("yt-section-list-renderer",{class:_.XH("ytSectionListRendererHost",I.className,(D.ytSectionListRendererHostOverscrollContain=function(){var P;return(P=I.overscrollContain)==null?void 0:P.call(I)},D)),
el:R,"data-target-id":function(){return I.data().targetId||""}},_.t(_.aP,{data:function(){return y().contents}},{itemSectionRenderer:function(P){return _.t(s9T,{data:P.data,
containerLayoutConfig:O,marginSettings:I.marginSettings,containerHeight:function(){return F.height()}})}}))},"Pj"),"yt-section-list-renderer",{props:{data:_.om,
className:_.rV,marginSettings:_.om,overscrollContain:_.om}});_.NK(_.d(function(I){var y=function(){return _.u(I.data().inputComposerViewModel,qAa)},D=_.dV(_.LV.currentPageSubTypeSelector),F=_.dV(_.LV.persistentPanelVisibleSelector),R=_.J(_.$M(!1,void 0,"RXGzYc")),O=R.next().value,w=R.next().value;
R=_.J(_.$M(!1,void 0,"oyonKd"));var v=R.next().value,P=R.next().value,K=function(){X(!0);var xA;_.OE(((xA=y())==null?void 0:xA.onSubmitCommand)||{})},r=function(){if(F()&&!v()){var xA;
(xA=_.ft())==null||xA.removeCueRange("aic-proactive");w(!1);P(!0);K();_.Do(UlT(y().endOfVideoContinuation),{form:{formData:bY({clientMessageId:"youchat-"+Date.now(),pageContext:u_()})},commandController:{onSuccess:function(){X(!1)},
onServerError:function(){_.Do(PoY(B()));X(!1)}}})}},N=function(){var xA=_.ft();
if(xA&&!O()&&!v()){var dq=xA.getDuration();dq>60&&(xA.addCueRange("aic-proactive",dq-60,dq-20),w(!0))}},h=function(){var xA;
return((xA=y())==null?void 0:xA.youchatPendingResponseEntityKey)||""},x=_.zj(rUR,h),q=function(){var xA;
return!((xA=x())==null||!xA.isPendingResponse)},X=function(xA){jkY(h())(xA)};
R=_.J(_.$M(!0,void 0,"umCoCf"));var f=R.next().value,m=R.next().value,z=function(){var xA,dq;var $A=_.u((dq=y())==null?void 0:dq.inputFormField,Uib);return $A==null?void 0:(xA=$A.contentProperties)==null?void 0:xA.placeholderText},B=function(){return y().sectionTargetId||"youchat_messages_section"};
R=_.Fh("yt-chat-input-view-model");var C=_.DF("textarea"),H=_.zj(owa,"chat_input_view_model_state"),e=NvQ(),T=function(){var xA;return!((xA=H())==null||!xA.value)},L5=function(){return I.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},vH=function(){var xA;
(xA=_.ft())==null||xA.removeCueRange("aic-proactive");w(!1);P(!1);var dq;_.l("enable_navigational_proactive_messages_on_ai_companion")&&((dq=y())==null?0:dq.navigationContinuation)&&F()&&(K(),_.Do(UlT(y().navigationContinuation),{form:{formData:bY({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:uPG(),pageContext:u_()})},commandController:{onSuccess:function(){X(!1)},
onServerError:function(){_.Do(PoY(B()));X(!1)}}}))},u_=function(){var xA;
return(xA=_.nR().resolve(_.fR(_.yb)))==null?void 0:_.vBy(xA,D())};
_.LR(function(){if(_.uI("enable_ai_chat_controller")){var xA;(xA=_.nR().resolve(_.fR(_.yb)))==null||xA.init(I.data().environment)}else if(xA=Ewo(I.data()),!T()&&xA){var dq;((dq=y())==null?0:dq.setPendingResponseOnWelcome)&&X(!0);_.Do(xA,{form:{formData:bY({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:uPG(),pageContext:u_()})}});e(!0)}var $A=B(),BH=_.nR().resolve(_.fR(_.Wf)),jf=function(){_.dP.remove($A);if(_.uI("enable_ai_chat_controller")){var eW;(eW=_.nR().resolve(_.fR(_.yb)))!=null&&eW.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(eW.lastWelcomeContinuationSent=void 0)}else e(!1)},yg=function(){_.iS(function(){if(L5()&&(vH($A),D()==="watch")){var eW=_.ft();
eW&&(eW.addEventListener("onStateChange",N),eW.addEventListener("onCueRangeEnter",r))}})};
dq=_.l("enable_ai_companion")?!L5():!0;BH==null||BH.addEventListener("yt-navigate-start",jf,{once:dq});BH==null||BH.addEventListener("yt-navigate-finish",yg,{once:dq});_.tI(function(){BH==null||BH.removeEventListener("yt-navigate-start",jf);BH==null||BH.removeEventListener("yt-navigate-finish",yg);var eW=_.ft();eW&&(eW.removeEventListener("onCueRangeEnter",r),eW.removeEventListener("onStateChange",N),eW.removeCueRange("aic-proactive"))})});
_.wZ(function(){if(_.uI("enable_ai_chat_controller")){var xA=Ewo(I.data());if(xA){var dq,$A=((dq=y())==null?0:dq.setPendingResponseOnWelcome)?X:void 0,BH;(BH=_.nR().resolve(_.fR(_.yb)))==null||rrC(BH,{command:xA,setPending:$A})}}},"SXTMBe");
var jW=function(){var xA=C.value.value;C.value.value="";lyy(C.value);var dq,$A=((dq=y())==null?void 0:dq.enableGradientColorBg)||!1;dq=Kdy(B(),xA,$A);_.Do(dq);K();var BH,jf,yg;dq=(yg=_.yz((BH=I.data())==null?void 0:BH.sendUserQueryCommand))!=null?yg:UlT((jf=y())==null?void 0:jf.continuation);_.Do(dq,{form:{formData:bY({clientMessageId:"youchat-"+Date.now(),userInputText:xA,playerOffsetMs:uPG(),pageContext:u_()})},commandController:{onSuccess:function(){X(!1)},
onServerError:function(){_.Do(PoY(B()));X(!1)}}})};
return _.t("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:R},_.t("div",{class:"chatInputViewModelChatInputWrapper"},_.t("form",{class:"chatInputViewModelChatInputForm"},_.t("textarea",{class:"chatInputViewModelChatInput",el:C,"on:keydown":_.YY(function(xA){var dq=q()||!1;lyy(C.value);dq||xA.key!=="Enter"||xA.shiftKey||(xA.preventDefault(),jW());return!1}),
"on:keyup":_.YY(function(){m(C.value.value.length===0);return!1}),
"aria-label":function(){return q()?I.data().loadingAnimationA11yLabel||"":z()},
placeholder:z,rows:1}),_.t(_.My,{data:function(){return _.u(I.data().sendButton,_.Kb)},
onClick:function(xA){xA.preventDefault();jW();m(C.value.value.length===0)},
buttonOverrides:function(){return{disabled:f()||q()}}})),_.t(_.jr,{className:"chatInputViewModelChatDisclaimer",
text:function(){var xA;return I.data().disclaimerText||((xA=_.u(I.data().disclaimer,_.o3a))==null?void 0:xA.text)}})))},"Rj"),"yt-chat-input-view-model",{props:{data:_.om}});var VLZ=["engagement-panel-clip-create","engagement-panel-clip-view"],Zwo=0,J3=function(){var I=_.k.apply(this,arguments)||this;var y;I.headerData=(y=I.data)==null?void 0:y.header;I.darkerPanels=_.l("web_watch_darker_panels");I.matchContentTheme=_.l("web_watch_panel_content_match_theme");I.disableAutoFill=!1;I.isFullscreen=!1;I.isTheaterMode=!1;I.liveChatReplyPanel=!1;I.enableAnchoredPanel=_.l("desktop_shorts_v2_anchored_panel");I.disableBackdropFilter=_.l("web_disable_backdrop_filter");I.isPersistentPanel=
!1;I.trackEngagementPanelVisibility=_.l("web_watch_track_engagement_panel_visibility");I.overscrollContain=!1;I.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 I};
_.E(J3,_.k);_.L=J3.prototype;
_.L.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(I){var y;return(I==null?void 0:(y=I.webComponentHint)==null?void 0:y.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.L.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var I;if((I=this.hostElement.parentElement)==null?0:I.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.L.detached=function(){this.updateTheaterDisablement()};
_.L.showPanel=function(){var I=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.w2.addJob(function(){I.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.L.maybeScrollToItemSection=function(I){var y=this,D,F=I==null?void 0:(D=I.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;F&&_.w2.addJob(function(){var R;(R=y.sectionListRendererElement)==null||R.scrollToItemSection(F)},8)};
_.L.hidePanel=function(){var I=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.w2.addJob(function(){I.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.L.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.L.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.L.updatePanel=function(I,y,D,F){var R=this;if((I=I==null?void 0:I.engagementPanelSectionListRenderer)||F){if(I){F=I.header;var O=I.content,w=I.footer;(I=I.targetId)&&this.set("data.targetId",I);F&&this.set("data.header",F);O&&this.set("data.content",O);w&&this.set("data.footer",w)}else F&&(I=F.content,O=F.secondaryHeaderContent,w=F.targetId,F=F.loggingDirectives,w&&this.set("data.targetId",w),I&&this.set("data.content",I),F&&_.l("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
F),O&&(this.secondaryHeaderData=O));this.updateChildVisibilityProperties();if(y){var v;_.l("kevlar_update_panel_focus_scroll_killswitch")||(v={preventScroll:!0});this.focus(v)}_.YC(this,function(){_.lj(R.hostElement,"yt-refit");R.maybeScrollToItemSection(D)})}};
_.L.computeHeaderData=function(){var I,y=(0,_.e$.unsafeClone)((I=this.data)==null?void 0:I.header);if(y){I=new _.lk(Object.keys(y)[0]);var D=_.u(y,I),F=_.u(this.secondaryHeaderData,I);F&&_.sv(y,I,Object.assign({},F,D))}return y};
_.L.getReloadContinuation=function(){var I,y,D,F=_.J(((I=this.data)==null?void 0:(y=I.content)==null?void 0:(D=y.sectionListRenderer)==null?void 0:D.continuations)||[]);for(I=F.next();!I.done;I=F.next())if(I=I.value,I.reloadContinuationData)return I.reloadContinuationData.continuation};
_.L.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var I;((I=this.data)==null?0:I.targetId)&&(I=this.contentElement.firstElementChild)&&I.setAttribute("panel-target-id",this.data.targetId)};
_.L.forwardPopupClosedToFlowRootRenderer=function(){var I=_.XB(this.hostElement).querySelector("ytd-flow-root-renderer");if(I&&this.hostElement.closest("ytd-popup-container"))I.onPopupClosed()};
_.L.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var I;if(!VLZ.includes((I=this.theaterDisablementPanelIdentifier)!=null?I:""))if(I=_.l("web_watch_imax_theater_mode")&&this.isTheaterMode,I=_.l("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||I,_.l("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||I){var y;this.visibility=(y=this.data)==null?void 0:y.visibility;var D;this.trackEngagementPanelVisibility&&((D=this.data)==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var F,R,O,w;this.contentEmpty=!!(((F=this.data)==null?0:(R=F.content)==null?0:R.structuredDescriptionContentRenderer)&&Object.keys((O=this.data)==null?void 0:(w=O.content)==null?void 0:
w.structuredDescriptionContentRenderer).length===0);(y=_.nR().resolve(_.yR))&&y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.L.isTheaterModeChanged=function(){_.l("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.L.isFullscreenChanged=function(){_.l("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.L.focus=function(I){if(this.header)this.header.focus(I);else{var y;(y=_.XB(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||y.focus(I)}};
_.L.visibilityChanged=function(){if(!_.l("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var I=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=F||!this.lastVisibility,O,w,v,P=((O=this.data)==null?void 0:(w=O.identifier)==null?void 0:
w.tag)||((v=this.data)==null?void 0:v.panelIdentifier);if(I&&R){var K;((K=this.data)==null?0:K.onShowCommands)&&_.GC(this.hostElement,this.data.onShowCommands,this.hostElement);P&&_.oq().dispatch(_.Ec({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:P}}))}else if(y&&D){var r;((r=this.data)==null?0:r.onHideCommands)&&_.GC(this.hostElement,this.data.onHideCommands,this.hostElement);P&&_.oq().dispatch(_.Ec({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:P}}))}I&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Zwo++));_.l("kevlar_watch_focus_on_engagement_panels")&&I&&F&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.L.notifyVisibilityChanged=function(I){var y;_.qr(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,I,(y=this.data)==null?void 0:y.targetId]);if(_.l("autonav_pause_for_comments_ep")){var D;_.lj(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:I==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(D=this.data)==null?void 0:D.targetId})}};
_.L.updateTheaterDisablement=function(){if(!_.l("kevlar_watch_theater_disablement_killswitch")){var I=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&VLZ.includes(I)&&!_.l("watch_next_grid_ignore_disallowed_panels")){var y=_.sE(_.oq().getState()),D=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";I!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():D?(this.originalTheaterState===void 0&&(this.originalTheaterState=y,this.theaterDisablementPanelIdentifier=
I),y&&_.uj(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.L.clearTheaterDisablement=function(){_.uj(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.L.updateChildVisibilityProperties=function(){this.hostElement||_.l("kevlar_panel_property_init_killswitch")||this._enableProperties();var I=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=I);var y,D=(y=this.headerElement)==null?void 0:y.firstElementChild;if(D&&!this.adHeaderImageLockupViewModel){y=I==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";D.collapsed=y;D=_.XB(D).querySelector("#visibility-button");if(!D)return;(D=D.firstElementChild)&&
D.polymerController.is==="ytd-toggle-button-renderer"&&D.polymerController.data.isToggled!==y&&D.polymerController.set("data.isToggled",y)}var F;if(y=(F=this.contentElement)==null?void 0:F.firstElementChild)if(I&&I!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")y.removeAttribute("panel-content-visible");else{y.setAttribute("panel-content-visible","");var R;(R=y.markDirty)==null||R.call(y)}};
_.L.onYtChangeEngagementPanelVisibilityAction=function(I){var y=this,D,F=(D=this.data)==null?void 0:D.targetId,R,O,w;D=((R=this.data)==null?void 0:(O=R.identifier)==null?void 0:O.tag)||((w=this.data)==null?void 0:w.panelIdentifier);var v=_.u(I,_.dnM),P;I=F&&(v==null?void 0:v.targetId)===F||D&&(v==null?void 0:(P=v.panelIdentifier)==null?void 0:P.tag)===D;this.dialog&&I&&(v==null?void 0:v.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(F==="engagement-panel-comments-section"?_.uj(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.uj(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",D]));!_.l("kevlar_use_engagement_panel_management_component")&&I&&(F=v.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!F?_.w2.addJob(function(){y.visibility=v.visibility},2,this.hideDelayMs):this.visibility=v.visibility,v.visibility&&this.notifyVisibilityChanged(v.visibility))};
_.L.onYtScrollToEngagementPanelCommand=function(I){var y,D=(y=this.data)==null?void 0:y.targetId,F,R,O;y=((F=this.data)==null?void 0:(R=F.identifier)==null?void 0:R.tag)||((O=this.data)==null?void 0:O.panelIdentifier);I=_.u(I,_.ThM);var w;(D&&(I==null?void 0:I.targetId)===D||y&&(I==null?void 0:(w=I.panelIdentifier)==null?void 0:w.tag)===y)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.uj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.L.attachVEs=function(I){var y,D;(I==null?0:(y=I.content)==null?0:(D=y.productListRenderer)==null?0:D.trackingParams)&&_.W4().graftServerVe(I.content.productListRenderer.trackingParams);var F,R;(I==null?0:(F=I.content)==null?0:(R=F.transcriptRenderer)==null?0:R.trackingParams)&&_.W4().graftServerVe(I.content.transcriptRenderer.trackingParams)};
_.L.onYtUpdateEngagementPanelAction=function(I){var y,D=(y=this.data)==null?void 0:y.targetId;I=_.u(I,nSG);D&&(I==null?void 0:I.targetId)===D&&(this.updatePanel({engagementPanelSectionListRenderer:{header:I==null?void 0:I.header,content:I==null?void 0:I.content}},!1),this.attachVEs(I))};
_.L.onYtShowEngagementPanelScrimAction=function(I){var y,D=(y=this.data)==null?void 0:y.targetId;I=_.u(I,fPZ);D&&(I==null?void 0:I.engagementPanelTargetId)===D&&(this.scrimmed=!0)};
_.L.onYtHideEngagementPanelScrimAction=function(I){var y,D=(y=this.data)==null?void 0:y.targetId;I=_.u(I,qGg);D&&(I==null?void 0:I.engagementPanelTargetId)===D&&(this.scrimmed=!1)};
_.L.getIdentifier=function(){var I,y,D;return((I=this.data)==null?void 0:I.panelIdentifier)||((y=this.data)==null?void 0:(D=y.identifier)==null?void 0:D.tag)};
_.L.getSurface=function(){var I,y;return(I=this.data)==null?void 0:(y=I.identifier)==null?void 0:y.surface};
_.mD.Object.defineProperties(J3.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var I=this.getIdentifier();return I==="engagement-panel-youchat"||I==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
J3.prototype.visibilityChanged=J3.prototype.visibilityChanged;J3.prototype.isFullscreenChanged=J3.prototype.isFullscreenChanged;J3.prototype.isTheaterModeChanged=J3.prototype.isTheaterModeChanged;J3.prototype.dataChanged=J3.prototype.dataChanged;J3.prototype.forwardPopupClosedToFlowRootRenderer=J3.prototype.forwardPopupClosedToFlowRootRenderer;J3.prototype.onYtRendererstamperFinished=J3.prototype.onYtRendererstamperFinished;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],J3.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],J3.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],J3.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"data",void 0);
_.W([_.M({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.A("design:type",Object)],J3.prototype,"headerData",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"secondaryHeaderData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"visibility",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"contentEmpty",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"scrimmed",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"dialog",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"dropdown",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"darkerPanels",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"matchContentTheme",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"disableAutoFill",void 0);
_.W([_.M({reflectToAttribute:!0,value:_.l("optimal_reading_width_comments_ep")}),_.A("design:type",Boolean)],J3.prototype,"optimalReadingWidthComments",void 0);_.W([_.M(),_.A("design:type",Number)],J3.prototype,"hideDelayMs",void 0);_.W([_.M({selector:_.Vz,reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"isFullscreen",void 0);_.W([_.M({selector:_.sE,reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"isTheaterMode",void 0);
_.W([_.M(),_.A("design:type",Number)],J3.prototype,"showDelayMs",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.targetId"),_.A("design:type",Object),_.A("design:paramtypes",[])],J3.prototype,"targetId",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J3.prototype,"webSize",null);_.W([_.M(),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J3.prototype,"hideFooterBorder",null);
_.W([_.M(),_.A("design:type",Object)],J3.prototype,"isWatch",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"originalTheaterState",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"theaterDisablementPanelIdentifier",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"isWatchWhilePanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"shortsPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"liveChatEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J3.prototype,"learningChatEngagementPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"liveChatReplyPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"enableAnchoredPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"disableBackdropFilter",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J3.prototype,"isPersistentPanel",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"trackEngagementPanelVisibility",void 0);_.W([_.M(),_.A("design:type",Object)],J3.prototype,"overscrollContain",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J3.prototype,"isAiCompanionPanel",null);
_.W([_.a0("#header"),_.A("design:type",HTMLElement)],J3.prototype,"headerElement",void 0);_.W([_.a0("#header > *"),_.A("design:type",HTMLElement)],J3.prototype,"header",void 0);_.W([_.a0("ytd-section-list-renderer"),_.A("design:type",Object)],J3.prototype,"sectionListRendererElement",void 0);_.W([_.a0("panel-ad-header-image-lockup-view-model"),_.A("design:type",HTMLElement)],J3.prototype,"adHeaderImageLockupViewModel",void 0);
_.W([_.a0("#content"),_.A("design:type",HTMLElement)],J3.prototype,"contentElement",void 0);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"onYtRendererstamperFinished",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.W([_.Bp("data","isFullscreen","isTheaterMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"dataChanged",null);_.W([_.ke("isTheaterMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"isTheaterModeChanged",null);_.W([_.ke("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"isFullscreenChanged",null);
_.W([_.ke("visibility"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J3.prototype,"visibilityChanged",null);_.W([_.yd({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],J3);
_.a(J3,"ytd-engagement-panel-section-list-renderer",function(){if(NFg!==void 0)return NFg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return NFg=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var goY;var w0=function(){var I=_.k.apply(this,arguments)||this;I.rounded=!0;I.pageAttachedTo=void 0;I.currentRequestResolver=void 0;I.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return I};
_.E(w0,_.k);w0.prototype.attached=function(){this.pageAttachedTo=_.nR().resolve(_.ja).getCurrentPage();_.lj(this.hostElement,"yt-player-attached",this.player)};
w0.prototype.detached=function(){var I;if((I=this.pageAttachedTo)==null?0:I.hostElement)_.lj(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
w0.prototype.dataChanged=function(){var I=this,y;if(((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&!_.l("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();y=this.data.inlinePlaybackEndpoint;var D=_.nR().resolve(_.iX),F={};_.nR().resolve(_.cU);F.lact=_.m$();var R=new _.n0;this.currentRequestResolver=R;R.promise.then(function(O){var w={autoplay:!0};!_.l("miniplayer_stop_channel_video_autoplay_killswitch")&&_.nR().resolve(_.OI).isMiniplayerActive()&&(w.pause_at_start=
!0,w.autoplay=!1);O&&I.player.loadVideoWithPlayerResponse(O,w)});
aXT(D,{endpoint:y,startPlaybackInMutedState:!1},F).then(function(O){R.resolve(O)}).catch(function(){})}else if((D=this.data)==null?0:D.videoId)y={video_id:this.data.videoId,
autoplay:!0},!_.l("miniplayer_stop_channel_video_autoplay_killswitch")&&_.nR().resolve(_.OI).isMiniplayerActive()&&(y.pause_at_start=!0,y.autoplay=!1),this.player.loadVideoWithPlayerVars(y)};
w0.prototype.handleSignalActionPausePlayer=function(){_.hZ().pause()};
w0.prototype.dataChanged=w0.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],w0.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],w0.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],w0.prototype,"rounded",void 0);_.W([_.a0("#player"),_.A("design:type",Object)],w0.prototype,"player",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],w0.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],w0);
_.a(w0,"ytd-channel-video-player-renderer",function(){if(goY!==void 0)return goY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return goY=I},{mode:1});var Ieb;var vO=function(){return _.k.apply(this,arguments)||this};
_.E(vO,_.k);vO.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:_.l("web_modern_buttons"),forceIconButton:!_.l("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
vO.prototype.activate=function(I){I.appendTo(this.player);I.getPlayerPromise().then(function(y){y.setMinimized(!0)});
this.active=!0};
vO.prototype.deactivate=function(){var I=this.player.firstElementChild;I.getPlayerPromise().then(function(y){y.setMinimized(!1)});
this.active=!1;return I};
vO.prototype.onScrollUpTap=function(){var I=_.nR().resolve(_.ja).getCurrentPage();I&&I.setScrollTop(0)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],vO.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vO.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],vO.prototype,"active",void 0);
_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.A("design:type",Boolean)],vO.prototype,"darkLaunch",void 0);_.W([_.a0("#player"),_.A("design:type",HTMLDivElement)],vO.prototype,"player",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],vO);
_.a(vO,"ytd-miniplayer-bar-renderer",function(){if(Ieb!==void 0)return Ieb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ieb=I},{mode:1});var yAQ;var S_=function(){return _.k.apply(this,arguments)||this};
_.E(S_,_.k);S_.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.rj(_.XB(this.hostElement).querySelector("#text"),_.uOP(_.G_c,this.data.companionLegalText))};
S_.prototype.computeAutoScrollEnabled=function(I,y){return I&&!y};
S_.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
S_.prototype.onToggleTap=function(){this.expanded=!this.expanded};
S_.prototype.expandedChanged=S_.prototype.expandedChanged;S_.prototype.dataChanged=S_.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(qpT),_.A("design:type",Object)],S_.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],S_.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],S_.prototype,"expanded",void 0);
_.W([_.M({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.A("design:type",Boolean)],S_.prototype,"autoScrollEnabled",void 0);_.W([_.M(),_.A("design:type",String)],S_.prototype,"expanderIcon",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],S_.prototype,"dataChanged",null);
_.W([_.ke("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],S_.prototype,"expandedChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],S_);
_.a(S_,"ytd-companion-legal-text-renderer",function(){if(yAQ!==void 0)return yAQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yAQ=I},{mode:1});var Dsa;var t3=function(){var I=_.k.apply(this,arguments)||this;I.buttonUpdate=_.l("web_modern_buttons");I.kevlarWatchGrid=_.l("kevlar_watch_grid");I.centerAlignDescription=_.l("action_companion_center_align_description");I.truncateDomain=_.l("action_companion_truncate_domain");I.enableMonoStyle=_.l("enable_default_mono_cta_migration_web_client");return I};
_.E(t3,_.k);_.L=t3.prototype;_.L.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.L.getOnLayoutVisibleCallback=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.L.getLayoutId=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.L.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",t3.JSC$21181_DEFAULT_AD_BADGE_RENDERER);var I=this.getOnLayoutVisibleCallback();I&&I()}};
_.L.getButtonRenderer=function(I){return I.actionButton&&_.u(I.actionButton,_.S1)?(delete _.u(I.actionButton,_.S1).navigationEndpoint,_.u(I.actionButton,_.S1)):{}};
_.L.onClick=function(I){var y=this;if((!_.l("web_modern_buttons")||!_.UP(_.r4(I),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){I=_.NY();var D=this.getLayoutId();I&&D&&_.l("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(F){(new _.DV(F)).executeCommand(y.data.navigationEndpoint,D)}):_.l("kevlar_companion_resolve_command_killswitch")?_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.uj(this.hostElement,"yt-companion-ad-clicked",["action-companion",D])}};
_.mD.Object.defineProperties(t3.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?0:(y=I.detailsLine)==null?0:(D=y.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 I,y,D,F;return((I=this.data)==null?0:(y=I.detailsLine)==null?0:(D=y.adRating)==null?0:(F=D.ratingIcon)==null?0:F.iconType)?_.pQ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return((I=this.data)==null?0:(y=I.detailsLine)==null?0:(D=y.texts)==null?0:(F=D[0])==null?0:F.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 I,y;return((I=this.data)==null?0:(y=I.description)==null?0:y.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var I=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return I?I.indexOf("/default_banner")!==-1:!0}}});
t3.prototype.onClick=t3.prototype.onClick;t3.prototype.dataChanged=t3.prototype.dataChanged;t3.JSC$21181_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],t3.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],t3.prototype,"rendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],t3.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t3.prototype,"buttonUpdate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t3.prototype,"kevlarWatchGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t3.prototype,"centerAlignDescription",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t3.prototype,"truncateDomain",void 0);
_.W([_.M({computed:"computeButtonOverride(buttonUpdate)"}),_.A("design:type",Object)],t3.prototype,"buttonOverride",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t3.prototype,"enableMonoStyle",void 0);_.W([_.Y("data.detailsLine.adRating.ratingText"),_.A("design:type",Object),_.A("design:paramtypes",[])],t3.prototype,"getRating",null);_.W([_.Y("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],t3.prototype,"computeRatingHidden",null);
_.W([_.Y("data.detailsLine.adRating.ratingIcon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],t3.prototype,"iconType",null);_.W([_.Y("data.detailsLine.texts.0.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],t3.prototype,"getDetailsLine",null);_.W([_.Y("getDetailsLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],t3.prototype,"computeDetailsLineHidden",null);
_.W([_.Y("data.description.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],t3.prototype,"getDescriptionText",null);_.W([_.Y("getDescriptionText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],t3.prototype,"computeDescriptionTextHidden",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],t3.prototype,"interactionLoggingClientData",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],t3.prototype,"hideBanner",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t3.prototype,"dataChanged",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],t3.prototype,"onClick",null);_.W([_.yd({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],t3);
_.a(t3,"ytd-action-companion-ad-renderer",function(){if(Dsa!==void 0)return Dsa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Dsa=I},{mode:_.Qd("kevlar_poly_si_batch_j067")?1:2});var F0Z;var Rce;var PO=function(){var I=_.k.apply(this,arguments)||this;I.buttonUpdate=_.l("web_modern_buttons");I.hideLegacyBanner=_.l("enable_dsa_one_click_ata_translators_infeed_elements");I.adInfoButtonStyle="mono";I.adInfoButtonType="text";I.noDotAdBadge=!0;return I};
_.E(PO,_.k);_.L=PO.prototype;_.L.getOnLayoutVisibleCallback=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.L.getLayoutId=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.L.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 I=this.data.image.thumbnail.thumbnails[0];this.imageSrc=I.url?_.VA(I.url):void 0;this.imageWidth=I.width||0;this.imageHeight=I.height||0}this.data.clickthroughEndpoint&&_.u(this.data.clickthroughEndpoint,_.lK)&&(I=_.u(this.data.clickthroughEndpoint,_.lK).url,_.l("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
I||"":I?(I=_.VA(I),this.clickThroughUrl=_.H$(I)):this.clickThroughUrl=void 0);(I=this.getOnLayoutVisibleCallback())&&I()}};
_.L.onClick=function(I){_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(I)};
_.L.handleClick=function(){var I=this;this.data&&this.data.clickthroughEndpoint&&(_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(y){I.macroReplacementBehavior.sendServiceRequestAction([y])}),_.uj(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.L.onLoad=function(){_.qr(this.hostElement,"yt-refit-popups-action")};
_.mD.Object.defineProperties(PO.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}}});
PO.prototype.onLoad=PO.prototype.onLoad;PO.prototype.onClick=PO.prototype.onClick;PO.prototype.dataChanged=PO.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PO.prototype,"rendererBehavior",void 0);_.W([_.Q(pl8.YtMacroReplacementBehavior),_.A("design:type",Object)],PO.prototype,"macroReplacementBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PO.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PO.prototype,"buttonUpdate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PO.prototype,"hideLegacyBanner",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PO.prototype,"adInfoButtonStyle",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],PO.prototype,"adInfoButtonType",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],PO.prototype,"macros",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],PO.prototype,"interactionLoggingClientData",null);_.W([_.M(),_.A("design:type",String)],PO.prototype,"clickThroughUrl",void 0);_.W([_.M(),_.A("design:type",_.B$)],PO.prototype,"imageSrc",void 0);_.W([_.M(),_.A("design:type",Number)],PO.prototype,"imageWidth",void 0);_.W([_.M(),_.A("design:type",Number)],PO.prototype,"imageHeight",void 0);_.W([_.M(),_.A("design:type",Object)],PO.prototype,"noDotAdBadge",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PO.prototype,"dataChanged",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],PO.prototype,"onClick",null);_.W([_.z4("load"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PO.prototype,"onLoad",null);_.W([_.yd({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],PO);
_.a(PO,"ytd-image-companion-renderer",function(){if(Rce!==void 0)return Rce;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Rce=I},{mode:_.Qd("kevlar_poly_si_batch_j067")?1:2});var OdQ;var KU=function(){return _.k.apply(this,arguments)||this};
_.E(KU,_.k);_.L=KU.prototype;_.L.dataChanged=function(){this.set("data.adBadge",KU.JSC$21190_DEFAULT_AD_BADGE_RENDERER);if(this.data){var I=this.getOnLayoutVisibleCallback();I&&I()}};
_.L.getOnLayoutVisibleCallback=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.L.getLayoutId=function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.L.onCompanionClicked=function(I){this.data&&(I.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.uj(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.L.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var I=_.NY(),y=this.getLayoutId(),D=this.data.clickToAdvSiteEndpoint;I&&y&&_.l("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(F){(new _.DV(F)).executeCommand(D,y)}):_.lj(this.hostElement,"yt-navigate",{endpoint:D})}};
_.L.sendTrackingPings=function(I){if(I&&I.length!==0&&I[0].loggingUrls&&(I=I[0].loggingUrls.map(this.getBaseUrl)))for(var y=0;y<I.length;y++)_.Nw(I[y])};
_.L.getBaseUrl=function(I){return I.baseUrl||""};
_.mD.Object.defineProperties(KU.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.jF("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}}});
KU.prototype.onCompanionClicked=KU.prototype.onCompanionClicked;KU.prototype.dataChanged=KU.prototype.dataChanged;KU.JSC$21190_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zC("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],KU.prototype,"data",void 0);_.W([_.a0("#title"),_.A("design:type",HTMLElement)],KU.prototype,"shopTitle",void 0);
_.W([_.Bp("data.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KU.prototype,"dataChanged",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],KU.prototype,"interactionLoggingClientData",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],KU.prototype,"onCompanionClicked",null);
_.W([_.yd({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],KU);
_.a(KU,"ytd-shopping-companion-renderer",function(){if(OdQ!==void 0)return OdQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return OdQ=I},{mode:1});_.NK(_.d(function(I){var y=I.data;I=_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF});var D=_.Dy(function(){return y().interaction},GEy);
_.JI(function(){var F,R;R=(R=_.jF("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.onLayoutVisibleCallback:null;(F=R)==null||F()},"Sj");
return _.t("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.YY(function(F){_.qr(F.currentTarget,"yt-refit-popups-action")}),
el:_.K4(I,D),"aria-label":function(){var F,R;return(F=y().interaction)==null?void 0:(R=F.accessibility)==null?void 0:R.label}},_.t("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(F){return _.t(_.$x,{data:F.data,
targetHeight:80,customCommandResolver:GEy})}})),_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.t(_.aP,{data:function(){return y().adBadge}},{adBadgeViewModel:function(F){return _.t(_.dm,{data:F.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.t("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:_.My}))))},"Tj"),"banner-image-layout-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;I=_.pT({visibilityCallback:function(F){var R,O=(R=y().interaction)==null?void 0:R.onFirstVisible;F&&O&&_.OE(O)},
showOption:_.fF});var D=_.Dy(function(){return y().interaction},X_1);
_.JI(function(){var F,R;R=(R=_.jF("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.onLayoutVisibleCallback:null;(F=R)==null||F()},"Uj");
return _.t("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.K4(I,D)},_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.t(_.aP,{data:function(){return y().adImage}},{adImageViewModel:function(F){return _.t(_.$x,{data:F.data,
targetHeight:80,customCommandResolver:X_1})}})),_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.t(_.aP,{data:function(){return y().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.t(WxY,{data:F.data,
customCommandResolver:X_1})}})),_.t(_.aP,{data:function(){return y().adButton}},{adButtonViewModel:function(F){return _.t(_.pF,{data:F.data,
customCommandResolver:X_1})}}),_.t("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.t(_.aP,{data:function(){return y().menu}},{buttonViewModel:_.My}))))},"Vj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.om}});var L0e={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"},Uz=function(){var I=_.k.apply(this,arguments)||this;I.updateCompanionDataJobId=0;I.contentVideoId=null;I.player=null;I.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return I};
_.E(Uz,_.k);_.L=Uz.prototype;_.L.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:L0e}}};
_.L.attached=function(){var I=this,y=_.NY();y&&y.getPlayerPromise().then(function(D){I.getCachedDataAndListen(D)})};
_.L.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.L.updateRendererStamper=function(){var I={};if(this.data)for(var y in L0e)if(this.data[y]){I[y]=this.data[y];break}if(this.oneofRenderer!=void 0||Object.keys(I).length)this.oneofRenderer=I};
_.L.getCachedDataAndListen=function(I){var y=this.retrieveCachedCompanionData();y&&Object.keys(y).length&&this.receiveCompanionData(y);this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=I};
_.L.retrieveCachedCompanionData=function(){return _.Ft.yt&&_.Ft.yt.www&&_.Ft.yt.www.ads&&_.Ft.yt.www.ads.eventcache&&_.Ft.yt.www.ads.eventcache.getLastCompanionData?_.Ft.yt.www.ads.eventcache.getLastCompanionData():null};
_.L.receiveCompanionData=function(I){I&&Object.keys(I).length?(this.contentVideoId=I.contentVideoId,this.setCompanionData(I)):this.setCompanionData(I)};
_.L.setCompanionData=function(I){this.cancelPendingCompanionAdJobs();if(I){this.updateCompanionDataJobId=0;for(var y in L0e)L0e.hasOwnProperty(y)&&(this.data[y]=void 0);I.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",I.shoppingCompanionCarouselRenderer):I.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",I.imageCompanionAdRenderer):I.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",I.actionCompanionAdRenderer),_.qr(this.hostElement,
"yt-hide-unlimited-offer-module"),_.qr(this.hostElement,"yt-hide-tvfilm-offer-module")):I.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",I.bannerImageLayoutViewModel):I.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",I.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.L.dataChanged=function(){var I=this,y=_.NY();y?y.getPlayerPromise().then(function(D){I.contentVideoId&&D.getVideoUrl().includes("v="+I.contentVideoId)||(I.cancelPendingCompanionAdJobs(),I.updateRendererStamper())}):_.o8(Error("Kl"))};
_.L.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.w2.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.L.handleCompanionAdClicked=function(I,y){this.player.onAdUxClicked(I,y);this.player.pauseVideo()};
Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Uz.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Uz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],Uz.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Uz.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Uz.prototype,"oneofRenderer",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Uz.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Uz);
_.a(Uz,"ytd-companion-slot-renderer",function(){if(F0Z!==void 0)return F0Z;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return F0Z=I},{mode:_.Qd("kevlar_poly_si_batch_j067")?
1:2});var JAb;var r0=function(){return _.k.apply(this,arguments)||this};
_.E(r0,_.k);r0.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
r0.prototype.dataChanged=r0.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],r0.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],r0.prototype,"companionSlotData",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],r0.prototype,"dataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],r0);
_.a(r0,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(JAb!==void 0)return JAb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return JAb=I},{mode:1});var wzG;var j_=function(){var I=_.k.apply(this,arguments)||this;I.skinnyMode=!1;I.COMPACT_EVENT_COUNT=4;I.onShelfToggleButtonTap=function(){I.logTap(I.data);I.showingMore=!I.showingMore};
I.onShelfToggleButtonFocus=function(){I.showingMore||(I.logTap(I.data),I.showingMore=!0,_.YC(I,function(){var y=I.COMPACT_EVENT_COUNT-1,D;(D=_.XB(I.hostElement).querySelector("#event-"+y))==null||D.focus()}))};
return I};
_.E(j_,_.k);_.L=j_.prototype;_.L.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.L.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.L.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.MX(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.MX(this.infoTooltip,this.infoTooltip.hide))};
_.L.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.MX(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.MX(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.MX(this.infoTooltip,this.infoTooltip.hide))};
_.L.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)};
_.L.onShowingMoreChanged=function(){var I;this.showingMoreChanged((I=this.showingMore)!=null?I:!1)};
_.L.showingMoreChanged=function(I){var y=this.get("data.events")||[];this.set("restEvents",y.slice(1,I?y.length:this.COMPACT_EVENT_COUNT).map(function(D){return D.ticketEventRenderer}));
y.slice(0,I?y.length:this.COMPACT_EVENT_COUNT).forEach(function(D){var F=_.VO();D=D.ticketEventRenderer.trackingParams;_.s_()&&F&&D&&(D=_.AC(D),F&&_.J_(F,D))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.L.computeAriaLabel=function(I){return I.subtitle1+", "+I.subtitle2};
_.L.logTap=function(I){_.s_()&&this.ytRendererBehavior.logExplicitClick(I)};
_.L.isKeyboardAction=function(I){return this.get("detail.x",I)===0&&this.get("detail.y",I)===0};
_.L.onFirstEventTap=function(I){I.target&&this.handleTap(I.target,this.firstEvent,this.isKeyboardAction(I))};
_.L.onTicketLinkTap=function(I){I.target&&this.handleTap(I.target,I.model.item,this.isKeyboardAction(I))};
_.L.handleTap=function(I,y,D){if(y.buttonCommand)if(y.hasMultipleOffers)Object.assign(_.u(y.buttonCommand,_.Hc),{properties:{source:D?"keyboard":"tap"}}),this.logTap(y),this.popupPositionTarget=I,_.GC(this.hostElement,[y.buttonCommand],this.hostElement);else{var F;if((F=_.u(y.buttonCommand,_.lK))==null?0:F.url)this.logTap(y),_.wj(window,_.u(y.buttonCommand,_.lK).url)}};
j_.prototype.onShowingMoreChanged=j_.prototype.onShowingMoreChanged;j_.prototype.dataChanged=j_.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],j_.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],j_.prototype,"firstEvent",void 0);_.W([_.M(),_.A("design:type",Object)],j_.prototype,"restEvents",void 0);_.W([_.M(),_.A("design:type",String)],j_.prototype,"imageUrl",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],j_.prototype,"showingMore",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],j_.prototype,"canShowMore",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],j_.prototype,"skinnyMode",void 0);_.W([_.M(),_.A("design:type",HTMLElement)],j_.prototype,"popupPositionTarget",void 0);_.W([_.a0("#banner-info-tooltip"),_.A("design:type",Object)],j_.prototype,"infoTooltip",void 0);
_.W([_.a0("#info-container"),_.A("design:type",HTMLElement)],j_.prototype,"infoContainer",void 0);_.W([_.a0("#shelf-toggler"),_.A("design:type",HTMLElement)],j_.prototype,"shelfToggleButton",void 0);_.W([_.a0("#separator"),_.A("design:type",HTMLDivElement)],j_.prototype,"separator",void 0);_.W([_.M(),_.A("design:type",String)],j_.prototype,"shelfTogglerLabelText",void 0);_.W([_.M(),_.A("design:type",String)],j_.prototype,"shelfTogglerIcon",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j_.prototype,"dataChanged",null);_.W([_.Bp("showingMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j_.prototype,"onShowingMoreChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],j_);
_.a(j_,"ytd-ticket-shelf-renderer",function(){if(wzG!==void 0)return wzG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wzG=I},{mode:1});var vVy={};vVy.YtVisibilityRootBehavior=[_.qrO.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.rM(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Pi("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var I=_.Pi("INNERTUBE_CLIENT_NAME")!=="WEB";_.l("kevlar_use_vimio_behavior")&&I&&_.$cu()}}];var oM={};oM.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(I){I.detail.contextProvider=this;I.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
vVy.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.vS();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(I){var y=this;this.pageCount+=1;_.l("kevlar_use_vimio_behavior")&&(_.Pi("INNERTUBE_CLIENT_NAME")==="WEB"?_.w2.addJob(function(){y.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(I)},
loadPage_:function(I){this.data=I},
ytPageBehaviorActiveObserver_:function(I){var y=this;_.l("kevlar_use_vimio_behavior")&&(I?_.Pi("INNERTUBE_CLIENT_NAME")==="WEB"?_.w2.addJob(function(){y.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(I){if(!this.setScrollTopJobId_){var y=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){y.setScrollTopJobId_=0;var D=_.nR().resolve(_.fR(_.cU));D&&_.G$(D);this.getPageScrollingElement().scrollTop=I}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.IR(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var S9o;var tKZ;var P2a;var K0G;var Np=function(){var I=_.k.apply(this,arguments)||this;I.originalQuery=null;I.originalEndpoint=null;return I};
_.E(Np,_.k);Np.prototype.computeShowOriginalQueryWithoutEndpoint_=function(I,y){return!(!I||y)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Np.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Np.prototype,"correctedText",void 0);_.W([_.M(),_.A("design:type",Object)],Np.prototype,"correctedQuery",void 0);_.W([_.M(),_.A("design:type",Object)],Np.prototype,"correctedEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],Np.prototype,"originalText",void 0);_.W([_.M(),_.A("design:type",Object)],Np.prototype,"originalQuery",void 0);
_.W([_.M(),_.A("design:type",Object)],Np.prototype,"originalEndpoint",void 0);_.W([_.M({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.A("design:type",Boolean)],Np.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.W([_.I6({is:"yt-search-query-correction",disableElementRegistration:!0})],Np);
_.a(Np,"yt-search-query-correction",function(){if(K0G===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;P2a===void 0&&(P2a=document.createElement("template"));var F=P2a;D.call(y,F.content.cloneNode(!0),I.content.firstChild);K0G=I}I=K0G;return I},{mode:2});_.bO("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Us1=function(){return _.k.apply(this,arguments)||this};
_.E(Us1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Us1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Us1.prototype,"data",void 0);_.W([_.I6({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Us1);
_.a(Us1,"yt-did-you-mean-renderer",function(){if(tKZ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;S9o===void 0&&(S9o=document.createElement("template"));var F=S9o;D.call(y,F.content.cloneNode(!0),I.content.firstChild);tKZ=I}I=tKZ;return I},{mode:2});var rAo;var j3G;_.bO("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var oVy=function(){return _.k.apply(this,arguments)||this};
_.E(oVy,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oVy.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oVy.prototype,"data",void 0);_.W([_.I6({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],oVy);
_.a(oVy,"yt-including-results-for-renderer",function(){if(j3G===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;rAo===void 0&&(rAo=document.createElement("template"));var F=rAo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);j3G=I}I=j3G;return I},{mode:2});var Nk1;var hco;_.bO("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var h3=function(){return _.k.apply(this,arguments)||this};
_.E(h3,_.k);h3.prototype.computeExtraClasses_=function(I,y){var D="";I&&(D+=" "+I.toLowerCase().replace(/_/g,"-"));y&&(D+=" "+y.toLowerCase().replace(/_/g,"-"));return D};
h3.prototype.computeUrlImg_=function(){var I=this.data;I.image&&(_.XB(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.hf(I.image.thumbnails,Number.MAX_VALUE)+")")};
h3.prototype.computeUrlImg_=h3.prototype.computeUrlImg_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],h3.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h3.prototype,"computeUrlImg_",null);_.W([_.I6({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],h3);
_.a(h3,"yt-music-pass-feature-info-renderer",function(){if(hco===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Nk1===void 0&&(Nk1=document.createElement("template"));var F=Nk1;D.call(y,F.content.cloneNode(!0),I.content.firstChild);hco=I}I=hco;return I},{mode:2});var xsY;var le1;_.bO("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var ueT=function(){return _.k.apply(this,arguments)||this};
_.E(ueT,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ueT.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ueT.prototype,"data",void 0);_.W([_.I6({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ueT);
_.a(ueT,"yt-no-results-found-showing-results-for-renderer",function(){if(le1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;xsY===void 0&&(xsY=document.createElement("template"));var F=xsY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);le1=I}I=le1;return I},{mode:2});var q9Q;var EVo;_.bO("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var GXg=function(){return _.k.apply(this,arguments)||this};
_.E(GXg,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GXg.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GXg.prototype,"data",void 0);_.W([_.I6({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],GXg);
_.a(GXg,"yt-results-without-quotes-renderer",function(){if(EVo===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;q9Q===void 0&&(q9Q=document.createElement("template"));var F=q9Q;D.call(y,F.content.cloneNode(!0),I.content.firstChild);EVo=I}I=EVo;return I},{mode:2});var XzY;var Q3Q;_.bO("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Y91=function(){return _.k.apply(this,arguments)||this};
_.E(Y91,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Y91.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Y91.prototype,"data",void 0);_.W([_.I6({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Y91);
_.a(Y91,"yt-search-no-results-renderer",function(){if(Q3Q===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;XzY===void 0&&(XzY=document.createElement("template"));var F=XzY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Q3Q=I}I=Q3Q;return I},{mode:2});var feo;var nVG;_.bO("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var pzY=function(){return _.k.apply(this,arguments)||this};
_.E(pzY,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pzY.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pzY.prototype,"data",void 0);_.W([_.I6({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],pzY);
_.a(pzY,"yt-showing-results-for-renderer",function(){if(nVG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;feo===void 0&&(feo=document.createElement("template"));var F=feo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);nVG=I}I=nVG;return I},{mode:2});var msC;var MKa;_.bO("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var xU=function(){return _.k.apply(this,arguments)||this};
_.E(xU,_.k);
xU.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xU.prototype,"data",void 0);_.W([_.I6({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],xU);
_.a(xU,"yt-offer-item-expanded-renderer",function(){if(MKa===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;msC===void 0&&(msC=document.createElement("template"));var F=msC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);MKa=I}I=MKa;return I},{mode:2});var zcZ;var kXC;_.bO("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var lr=function(){return _.k.apply(this,arguments)||this};
_.E(lr,_.k);
lr.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"}}}}};
lr.prototype.computeFullWidthMode=function(I){return!(!I||!I.fullWidthMode)};
lr.prototype.computeBorderlessMode=function(I){return!(!I||!I.borderlessMode)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lr.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.A("design:type",Boolean)],lr.prototype,"fullWidthMode",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.A("design:type",Boolean)],lr.prototype,"borderlessMode",void 0);_.W([_.I6({is:"yt-offer-item-renderer",disableElementRegistration:!0})],lr);
_.a(lr,"yt-offer-item-renderer",function(){if(kXC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;zcZ===void 0&&(zcZ=document.createElement("template"));var F=zcZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);kXC=I}I=kXC;return I},{mode:2});var dsa;var aeY;_.bO("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var ur=function(){return _.k.apply(this,arguments)||this};
_.E(ur,_.k);ur.prototype.computeAriaLevel_=function(I){return this.getLevelID_(I)};
ur.prototype.getLevelID_=function(I){return(I=I.match(/[0-9]+$/))&&I.length==1?I[0]:"1"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ur.prototype,"data",void 0);_.W([_.M({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.A("design:type",String)],ur.prototype,"ariaLevel",void 0);_.W([_.M({value:"heading",reflectToAttribute:!0}),_.A("design:type",String)],ur.prototype,"role",void 0);
_.W([_.M({value:-1,reflectToAttribute:!0}),_.A("design:type",Number)],ur.prototype,"tabindex",void 0);_.W([_.I6({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],ur);
_.a(ur,"yt-subscription-product-header-renderer",function(){if(aeY===void 0){var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;dsa===void 0&&(dsa=document.createElement("template"));var F=dsa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);aeY=I}I=aeY;return I},{mode:2});var cAg;var W0Q;_.bO("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var qp=function(){return _.k.apply(this,arguments)||this};
_.E(qp,_.k);qp.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:_.HU("menuRenderer"),events:!0}}};
qp.prototype.onStampFinished_=function(){_.XB(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
qp.prototype.onStampFinished_=qp.prototype.onStampFinished_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qp.prototype,"data",void 0);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qp.prototype,"onStampFinished_",null);
_.W([_.I6({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],qp);
_.a(qp,"yt-subscription-product-renderer",function(){if(W0Q===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;cAg===void 0&&(cAg=document.createElement("template"));var F=cAg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);W0Q=I}I=W0Q;return I},{mode:2});var C2Q;var Bkb;_.bO("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ez=function(){return _.k.apply(this,arguments)||this};
_.E(Ez,_.k);Ez.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ez.prototype.imageScrimColorValuesChanged_=function(){var I,y=(I=this.data)==null?void 0:I.imageScrimColorValues;_.XB(this.hostElement).querySelector("#scrim").style.backgroundColor=y?_.Z7(y[0]):"transparent"};
Ez.prototype.imageScrimColorValuesChanged_=Ez.prototype.imageScrimColorValuesChanged_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ez.prototype,"data",void 0);
_.W([_.ke("data.imageScrimColorValues"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ez.prototype,"imageScrimColorValuesChanged_",null);_.W([_.I6({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ez);
_.a(Ez,"yt-subscription-product-upsell-offer-renderer",function(){if(Bkb===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;C2Q===void 0&&(C2Q=document.createElement("template"));var F=C2Q;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Bkb=I}I=Bkb;return I},{mode:2});var ida;var AA1;var $sT;var bda;var HdR;var eca;var Gk=function(){return _.k.apply(this,arguments)||this};
_.E(Gk,_.k);Gk.prototype.onYtServiceRequestError_=function(I){_.v_(this.hostElement,I.detail.error.message)};
Gk.prototype.onYtServiceRequestError_=Gk.prototype.onYtServiceRequestError_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gk.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Gk.prototype,"collapsible",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Gk.prototype,"isManageRed",void 0);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Gk.prototype,"onYtServiceRequestError_",null);_.W([_.I6({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Gk);
_.a(Gk,"yt-single-ypc-offer-renderer",function(){if(eca===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;HdR===void 0&&(HdR=document.createElement("template"));var F=HdR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);eca=I}I=eca;return I},{mode:2});var X7=function(){return _.k.apply(this,arguments)||this};
_.E(X7,_.k);X7.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],X7.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],X7.prototype,"isManageRed",void 0);_.W([_.I6({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],X7);
_.a(X7,"yt-single-ypc-offer-list-renderer",function(){if(bda===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;$sT===void 0&&($sT=document.createElement("template"));var F=$sT;D.call(y,F.content.cloneNode(!0),I.content.firstChild);bda=I}I=bda;return I},{mode:2});var Tkb;var s3a;_.bO("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var QY=function(){return _.k.apply(this,arguments)||this};
_.E(QY,_.k);QY.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QY.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],QY.prototype,"isManageRed",void 0);_.W([_.I6({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],QY);
_.a(QY,"yt-ypc-offers-list-renderer",function(){if(s3a===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Tkb===void 0&&(Tkb=document.createElement("template"));var F=Tkb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);s3a=I}I=s3a;return I},{mode:2});_.bO("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var YU=function(){return _.k.apply(this,arguments)||this};
_.E(YU,_.k);
YU.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],YU.prototype,"data",void 0);_.W([_.I6({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],YU);
_.a(YU,"yt-unlimited-manage-subscription-page-renderer",function(){if(AA1===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;ida===void 0&&(ida=document.createElement("template"));var F=ida;D.call(y,F.content.cloneNode(!0),I.content.firstChild);AA1=I}I=AA1;return I},{mode:2});var VKG;var ZdG;var fU=function(){return _.k.apply(this,arguments)||this};
_.E(fU,_.k);_.L=fU.prototype;_.L.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.L.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.L.onKeypress_=function(I){I.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.L.handleHeaderTap_=function(I){I.preventDefault();I.stopPropagation();this.expandOffers_()};
_.L.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.L.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
fU.prototype.dataChanged_=fU.prototype.dataChanged_;_.W([_.Q(_.CP),_.A("design:type",Object)],fU.prototype,"ironA11yKeysBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fU.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],fU.prototype,"offersVisible_",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fU.prototype,"dataChanged_",null);_.W([_.I6({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],fU);
_.a(fU,"yt-collapsible-ypc-offer-renderer",function(){if(ZdG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;VKG===void 0&&(VKG=document.createElement("template"));var F=VKG;D.call(y,F.content.cloneNode(!0),I.content.firstChild);ZdG=I}I=ZdG;return I},{mode:2});var gVY;var Iqa;_.bO("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var nU=function(){return _.k.apply(this,arguments)||this};
_.E(nU,_.k);_.L=nU.prototype;_.L.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.L.dataChanged_=function(){if(this.data.backgroundImage){var I=_.hf(this.data.backgroundImage.thumbnails,screen.width),y=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=y?"linear-gradient(180deg, "+y+"), url("+I+")":"url("+I+")";this.data.gtmId&&_.V8(this.data.gtmId,_.Pi("GL",""))}};
_.L.onYtServiceRequestError_=function(I){_.v_(this.hostElement,I.detail.error.message)};
_.L.getScrimLayerColorStops_=function(){var I,y,D=(I=this.data.unlimitedHeaderV2Data)==null?void 0:(y=I.unlimitedHeaderV2Data)==null?void 0:y.scrimLayerColors;if(!D)return null;var F=100/D.length;return D.map(function(R,O){O*=F;return _.Z7(R)+" "+O+"%"}).join(",")};
_.L.computeLogoWithPadding=function(I){var y,D,F;return(I=(y=I.unlimitedLogoImage)==null?void 0:(D=y.thumbnails)==null?void 0:(F=D[0])==null?void 0:F.height)&&I%31===0?!0:!1};
nU.prototype.onYtServiceRequestError_=nU.prototype.onYtServiceRequestError_;nU.prototype.dataChanged_=nU.prototype.dataChanged_;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.W([_.M({computed:"computeLogoWithPadding(data)"}),_.A("design:type",Boolean)],nU.prototype,"logoWithPadding",void 0);
_.W([_.M(),_.A("design:type",Object)],nU.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nU.prototype,"dataChanged_",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],nU.prototype,"onYtServiceRequestError_",null);_.W([_.I6({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],nU);
_.a(nU,"yt-unlimited-page-header-renderer",function(){if(Iqa===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;gVY===void 0&&(gVY=document.createElement("template"));var F=gVY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Iqa=I}I=Iqa;return I},{mode:2});var yja;var DqT;_.bO("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var pU=function(){return _.k.apply(this,arguments)||this};
_.E(pU,_.k);pU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pU.prototype,"data",void 0);_.W([_.I6({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],pU);
_.a(pU,"yt-unlimited-user-notification-renderer",function(){if(DqT===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;yja===void 0&&(yja=document.createElement("template"));var F=yja;D.call(y,F.content.cloneNode(!0),I.content.firstChild);DqT=I}I=DqT;return I},{mode:2});var FLg;var Ra1;var Okg=function(){return _.k.apply(this,arguments)||this};
_.E(Okg,_.k);_.W([_.M(),_.A("design:type",Object)],Okg.prototype,"data",void 0);_.W([_.I6({is:"yt-alert-renderer",disableElementRegistration:!0})],Okg);
_.a(Okg,"yt-alert-renderer",function(){if(Ra1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;FLg===void 0&&(FLg=document.createElement("template"));var F=FLg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Ra1=I}I=Ra1;return I},{mode:2});var KLC=function(I){_.B5.call(this);this.JSC$21278_watchApi=I;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;LLy(this);Jjy(this);wka(this);v9y(this);Sna(this);tPg(this);Pt1(this)};
_.E(KLC,_.B5);var wka=function(I){var y=function(){_.l("kevlar_is_pupi_enabled")||my(I)};
I.JSC$21278_watchApi.getRoot().addEventListener("yt-player-updated",y);I.addOnDisposeCallback(function(){I.JSC$21278_watchApi.getRoot().removeEventListener("yt-player-updated",y)})},Sna=function(I){if(_.l("kevlar_endscreen_auto_theater_mode")){var y=I.JSC$21278_watchApi.subscribeToActiveChanged(function(){Uqe(I)},!1);
I.addOnDisposeCallback(y)}},LLy=function(I){var y,D,F,R,O;
_.S(function(w){if(w.nextAddress==1)return w.yield(I.JSC$21278_watchApi.playerApi,2);y=w.yieldResult;D=function(v){v=!!v;rja(I)&&(v=v?2:1,_.X4.getInstance().setState(v,!0,!1))};
F=function(v){v&&GCy(_.oq().getState())&&(_.uj(I.JSC$21278_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),I.temporaryTheaterMode=!0)};
R=function(v){_.l("kevlar_player_update_autonav_on_new_data")&&v.type==="newdata"&&(_.l("kevlar_is_pupi_enabled")||my(I))};
O=function(v){I.onPlayerStateChange(v)};
_.l("kevlar_endscreen_auto_theater_mode")&&y.addEventListener("onAutonavCancelled",F);y.addEventListener("onAutonavChangeRequest",D);y.addEventListener("onVideoDataChange",R);y.addEventListener("onStateChange",O);I.addOnDisposeCallback(function(){y.removeEventListener("onAutonavChangeRequest",D);y.removeEventListener("onVideoDataChange",R);y.removeEventListener("onStateChange",O);_.l("kevlar_endscreen_auto_theater_mode")&&y.removeEventListener("onAutonavCancelled",F)});
_.Cj(w)})},Jjy=function(I){I.JSC$21278_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){I.autonavCancelledBySignal=!0;
_.l("kevlar_is_pupi_enabled")||my(I)});
I.JSC$21278_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(y,D,F){D&&my(I,F)});
I.JSC$21278_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){rja(I)&&_.X4.getInstance().setState(2,!0,!0)});
I.JSC$21278_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){rja(I)&&_.X4.getInstance().setState(1,!0,!0)});
I.addOnDisposeCallback(function(){I.JSC$21278_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");I.JSC$21278_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");I.JSC$21278_watchApi.unregisterActionHandler("yt-enable-autoplay-command");I.JSC$21278_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},v9y=function(I){var y=I.JSC$21278_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Pt1(I)}),D=I.JSC$21278_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){tPg(I)});
I.addOnDisposeCallback(function(){I.JSC$21278_watchApi.unsubscribeByKey(y);I.JSC$21278_watchApi.unsubscribeByKey(D)})},Pt1=function(I){I.autonavCancelledBySignal=!1;
_.l("kevlar_is_pupi_enabled")||my(I)},tPg=function(I){var y=I.JSC$21278_watchApi.getWatchNextResponse(),D,F;
var R=(y=(F=_.u(y==null?void 0:(R=y.playerOverlays)==null?void 0:(D=R.playerOverlayRenderer)==null?void 0:D.autonavToggle,_.iNu))==null?void 0:F.enabled)?2:1;_.l("kevlar_is_pupi_enabled")?_.X4.getInstance().setState(R,!1,!1):my(I);_.l("web_persist_server_autonav_state_on_client")&&typeof y==="boolean"&&_.N7J(R===2)},rja=function(I){if(I.autonavCancelledBySignal)return!1;
var y,D,F,R;return!!((y=I.JSC$21278_watchApi.getWatchNextResponse())==null?0:(D=y.contents)==null?0:(F=D.twoColumnWatchNextResults)==null?0:(R=F.autoplay)==null?0:R.autoplay)};
KLC.prototype.onPlayerStateChange=function(I){if(I===0){I=!_.X4.getInstance().isAutoplaySetExplicitly();var y=this.JSC$21278_watchApi.getWatchNextResponse(),D,F,R,O;y=_.u(y==null?void 0:(D=y.contents)==null?void 0:(F=D.twoColumnWatchNextResults)==null?void 0:(R=F.autoplay)==null?void 0:(O=R.autoplay)==null?void 0:O.autoplayExplicitChoiceDialogRenderer,_.Jmu);rja(this)&&I&&y&&_.M4.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:y},popupType:"DIALOG"}})}else Uqe(this)};
var Uqe=function(I){I.temporaryTheaterMode&&(I.temporaryTheaterMode=!1,_.uj(I.JSC$21278_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},my=function(I,y){y=y===void 0?!1:y;
var D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21278_watchApi.playerApi,2);D=F.yieldResult;rja(I)?D.setAutonavState(_.X4.getInstance().getState(),y):D.setAutonavState(1,y);_.Cj(F)})};var jig={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"};var NAy=function(I){_.B5.call(this);var y=this;this.JSC$21283_watchApi=I;var D=this.JSC$21283_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){o9a(y)});
this.addOnDisposeCallback(function(){y.JSC$21283_watchApi.unsubscribeByKey(D)});
o9a(this)};
_.E(NAy,_.B5);var o9a=function(I){var y=I.JSC$21283_watchApi.getPlayerResponse(),D=I.JSC$21283_watchApi.getWatchNextResponse();if(!_.xt4(y==null?void 0:y.playabilityStatus,D==null?void 0:D.playerOverlays)){var F;var R=y==null?void 0:(F=y.playabilityStatus)==null?void 0:F.errorScreen}I.JSC$21283_watchApi.provideRenderingData("ERROR_SCREEN",R)};var hab=_.d(function(I){return _.t("yt-player-grid-renderer",{class:_.XH("ytPlayerGridRendererHost",I.className)},_.t(_.aP,{data:I.data},{lockupViewModel:function(y){return _.t(_.W7,{data:y.data,useOverlayStyling:!0})}}))},"Wj");var xqe=_.d(function(I){var y=I.data;I=_.l("web_watch_video_details_hide_subtitle");var D=_.l("web_watch_video_details_single_line_title"),F=_.YY(function(){var v=y().onTap;v&&_.nR().resolve(_.MC).resolveCommand(v)}),R={},O={},w={};
return _.t("yt-player-overlay-video-details-renderer",{class:_.XH("ytPlayerOverlayVideoDetailsRendererHost",(R.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.l("web_watch_video_details_transparent_background"),R)),"on:click":F,role:"button"},_.t("h2",{class:_.XH("ytPlayerOverlayVideoDetailsRendererTitle",(O.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return D},O))},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:_.XH("ytPlayerOverlayVideoDetailsRendererSubtitle",
(w.ytPlayerOverlayVideoDetailsRendererHideSubtitle=I,w))},_.t(_.jr,{text:function(){return y().subtitle}})))},"Xj");var Mp={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},lqa=_.d(function(I){var y=I.data;var D=_.dV(_.Vz),F=_.l("web_watch_action_bar_resize_buttons"),R=_.l("web_watch_video_action_dsdvb"),O=_.l("delhi_modern_web_player_icons")&&!_.l("enable_web_delhi_icons");I=_.l("delhi_modern_web_player_disable_frosted_glass");var w=_.l("delhi_modern_web_player_compact_video_actions_controls"),
v=_.l("web_player_quick_action_buttons_icon_only"),P=function(){var r=F&&!D(),N={};w?N.size="S":r&&(N.size="M");v&&(N.iconPosition="icon-only");if(Object.keys(N).length!==0)return N},K={};
return _.t("yt-player-quick-action-buttons",{class:_.XH("ytPlayerQuickActionButtonsHost",(K.ytPlayerQuickActionButtonsHostCompactControls=function(){return!D()||w},K.ytPlayerQuickActionButtonsHostDisableBackdropFilter=I,K))},_.t(_.gZ,{each:function(){var r=y();
if(O){r=JSON.parse(JSON.stringify(r));for(var N=_.J(r),h=N.next();!h.done;h=N.next()){var x=h.value,q=void 0;h=_.u((q=_.u(x,_.Lz))==null?void 0:q.toggleButtonViewModel,_.r7);var X=void 0;q=_.u((X=_.u(x,_.JT))==null?void 0:X.toggleButtonViewModel,_.r7);X=_.u(x,_.Kb);x=_.u(x,_.r7);if(h)q=_.u(h.defaultButtonViewModel,_.Kb),h=_.u(h.toggledButtonViewModel,_.Kb),q&&q.iconName&&(q.iconName=Mp[q.iconName]),h&&h.iconName&&(h.iconName=Mp[h.iconName]);else if(q)h=_.u(q.defaultButtonViewModel,_.Kb),q=_.u(q.toggledButtonViewModel,
_.Kb),h&&h.iconName&&(h.iconName=Mp[h.iconName]),q&&q.iconName&&(q.iconName=Mp[q.iconName]);else if(X)X.iconName&&(X.iconName=Mp[X.iconName]);else if(x){h=_.u(x.defaultButtonViewModel,_.Kb);q=_.u(x.toggledButtonViewModel,_.Kb);x=void 0;if((x=h)==null?0:x.iconName)h.iconName=Mp[h.iconName];h=void 0;if((h=q)==null?0:h.iconName)q.iconName=Mp[q.iconName]}}}R&&(r=Qko(r));return r}},function(r){return _.t(_.aP,{data:function(){return r}},{buttonViewModel:function(N){return _.t(_.My,{data:N.data,
buttonOverrides:P})},
likeButtonViewModel:function(N){return _.t(_.SD,{data:N.data,buttonShapeOverrideables:P})},
dislikeButtonViewModel:function(N){return _.t(_.vQ,{data:N.data,buttonShapeOverrideables:P})},
toggleButtonViewModel:function(N){return _.t(_.yJ,{data:N.data,buttonShapeOverrides:P})}})}))},"Yj");var qne=function(I){_.B5.call(this);var y=this;this.JSC$21291_watchApi=I;I=_.J(_.$M({},void 0,"OB6c5e"));this.quickActionsViewModel=I.next().value;this.setQuickActionsViewModel=I.next().value;I=_.J(_.$M({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=I.next().value;this.setPlayerOverlayVideoDetailsRenderer=I.next().value;I=_.J(_.$M([],void 0,"A7tRk"));this.lockupViewModels=I.next().value;this.setLockupViewModels=I.next().value;var D=this.JSC$21291_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ura(y)});
this.addOnDisposeCallback(function(){y.JSC$21291_watchApi.unsubscribeByKey(D)});
ura(this)};
_.E(qne,_.B5);
var ura=function(I){var y,D,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m;_.S(function(z){if(z.nextAddress==1)return z.yield(I.JSC$21291_watchApi.playerApi,2);y=z.yieldResult;D=I.JSC$21291_watchApi.getWatchNextResponse();O=(F=D)==null?void 0:(R=F.playerOverlays)==null?void 0:R.playerOverlayRenderer;v=_.u((w=O)==null?void 0:w.fullscreenQuickActionsBar,_.Bic);(K=(P=I).setQuickActionsViewModel)==null||K.call(P,v||{});v&&E9o(I,y);h=(r=O)==null?void 0:(N=r.videoDetails)==null?void 0:N.playerOverlayVideoDetailsRenderer;(q=
(x=I).setPlayerOverlayVideoDetailsRenderer)==null||q.call(x,h||{});h&&GWo(I,y);if(_.l("web_player_use_external_grid_component")){var B=[],C,H,e,T,L5=D==null?void 0:(C=D.contents)==null?void 0:(H=C.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:(T=e.secondaryResults)==null?void 0:T.results;if(L5)for(C=_.J(L5),H=C.next();!H.done;H=C.next())if(H=H.value,H.lockupViewModel)B.push(H);else if(e=void 0,(e=H.itemSectionRenderer)==null?0:e.contents)for(H=_.J(H.itemSectionRenderer.contents),
e=H.next();!e.done;e=H.next())e=e.value,e.lockupViewModel&&B.push(e);X=B;(m=(f=I).setLockupViewModels)==null||m.call(f,X||[]);Xko(I,y)}_.Cj(z)})},E9o=function(I,y){if(!I.quickActionButtonsContainer)if(y.setFullscreenQuickActions){I.quickActionButtonsContainer=document.createElement("div");
y.setFullscreenQuickActions(I.quickActionButtonsContainer);var D=function(){return I.quickActionsViewModel().quickActionButtons||[]},F=_.R8(I.quickActionButtonsContainer,function(){return _.t(lqa,{data:D})},"Zj");
I.addOnDisposeCallback(function(){y.setFullscreenQuickActions(void 0);F()})}else _.tq(new _.g6("setFullscreenQuickActions not defined",{playerApi:Object.keys(y),
isReady:y.isReady(),appState:y.getAppState()}))},GWo=function(I,y){if(!I.playerOverlayVideoDetailsRendererContainer)if(y.setPlayerOverlayVideoDetailsRenderer){I.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
y.setPlayerOverlayVideoDetailsRenderer(I.playerOverlayVideoDetailsRendererContainer);var D=_.R8(I.playerOverlayVideoDetailsRendererContainer,function(){return _.t(xqe,{data:I.playerOverlayVideoDetailsRenderer})},"$j");
I.addOnDisposeCallback(function(){y.setPlayerOverlayVideoDetailsRenderer(void 0);D()})}else _.tq(new _.g6("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(y),
isReady:y.isReady(),appState:y.getAppState()}))},Xko=function(I,y){if(!I.gridRendererContainer)if(y.setFullscreenGrid){I.gridRendererContainer=document.createElement("div");
y.setFullscreenGrid(I.gridRendererContainer);var D=_.R8(I.gridRendererContainer,function(){return _.t(hab,{data:I.lockupViewModels})},"ak");
I.addOnDisposeCallback(function(){y.setFullscreenGrid(void 0);D()})}else _.tq(new _.g6("setFullscreenGrid not defined",{playerApi:Object.keys(y),
isReady:y.isReady(),appState:y.getAppState()}))};var zk=function(I){_.B5.call(this);var y=this;this.JSC$21297_watchApi=I;this.JSC$21297_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;I=_.TV(_.oq(),_.Vz,function(D){y.onFullscreenChanged(D)});
this.addOnDisposeCallback(I);I=_.TV(_.oq(),w9,function(D){y.onWatchScroll(D)});
this.addOnDisposeCallback(I);_.l("kevlar_watch_while_v2")&&(I=_.TV(_.oq(),_.Iq,function(D){Qiy(y,D)}),this.addOnDisposeCallback(I));
YnZ(this);fqb(this);n9b();this.onWatchScroll(w9(_.oq().getState()));_.KR("START_IN_FULL_WINDOW_MODE")&&this.JSC$21297_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.E(zk,_.B5);var YnZ=function(I){I.JSC$21297_watchApi.registerActionHandler("yt-fullscreen-change-action",function(y){var D=I.JSC$21297_watchApi.isActive();y&&!D||_.oq().dispatch(_.Ec({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!y}}))});
I.addOnDisposeCallback(function(){I.JSC$21297_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},fqb=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21297_watchApi.playerApi,2);y=F.yieldResult;D=function(){I.onFullerscreenEduClicked()};
y.addEventListener("onFullerscreenEduClicked",D);I.addOnDisposeCallback(function(){y.removeEventListener("onFullerscreenEduClicked",D)});
_.Cj(F)})};
zk.prototype.onFullscreenChanged=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return y.isFullscreen=!!_.o1(),F.yield(y.JSC$21297_watchApi.playerApi,2);D=F.yieldResult;y.JSC$21297_miniplayerActive||D.setFauxFullscreen(y.isFullscreen);if(I&&(y.JSC$21297_watchApi.focusOnPlayer(),!y.fullerscreenEduButtonShownThisPlayback)){y.fullerscreenEduButtonShownThisPlayback=!0;var R=_.bX("yt-fullerscreen-edu-button-shown-count")||0;_.$c("yt-fullerscreen-edu-button-shown-count",R+1,31536E3);
y.updateFullerscreenEduButtonSubtleModeState()}_.Cj(F)})};
var Qiy=function(I,y){var D;_.S(function(F){if(F.nextAddress==1)return I.JSC$21297_miniplayerActive=y,F.yield(I.JSC$21297_watchApi.playerApi,2);D=F.yieldResult;D.setFauxFullscreen(!I.JSC$21297_miniplayerActive&&I.isFullscreen);_.Cj(F)})};
zk.prototype.onWatchScroll=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return _.l("external_fullscreen_with_edu")?R.yield(y.JSC$21297_watchApi.playerApi,2):R.return();D=R.yieldResult;F=I<=0;y.shouldShowFullerscreenEdu!==F&&(y.shouldShowFullerscreenEdu=F,D.updateFullerscreenEduButtonVisibility(!y.shouldShowFullerscreenEdu));_.Cj(R)})};
zk.prototype.onFullerscreenEduClicked=function(){this.JSC$21297_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var I=_.bX("yt-fullerscreen-edu-button-click-count")||0;_.$c("yt-fullerscreen-edu-button-click-count",I+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
zk.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var I=this,y,D,F,R,O,w;return _.S(function(v){if(v.nextAddress==1)return y=_.bX("yt-fullerscreen-edu-button-click-count")||0,D=_.bX("yt-fullerscreen-edu-button-shown-count")||0,F=_.kf("external_fullscreen_button_click_threshold"),R=_.kf("external_fullscreen_button_shown_threshold"),O=y>=F||D>=R,v.yield(I.JSC$21297_watchApi.playerApi,2);w=v.yieldResult;w.updateFullerscreenEduButtonSubtleModeState(O);_.Cj(v)})};
zk.prototype.disposeInternal=function(){_.B5.prototype.disposeInternal.call(this);var I=_.o1();_.l("kevlar_exit_fullscreen_leaving_watch")&&I&&_.Nr(I)};
var n9b=function(){if(_.l("web_watch_add_viewport_meta_tag")){var I=document.querySelector("meta[name=viewport]"),y=document.head;y&&!I&&(I=document.createElement("meta"),I.name="viewport",I.content="width=device-width, initial-scale=1.0, viewport-fit=cover",y.appendChild(I))}};var mqy=function(I){_.B5.call(this);var y=this;this.JSC$21300_watchApi=I;this.jobId=0;this.pendingRequestId=void 0;var D=this.JSC$21300_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pkY(y)});
this.addOnDisposeCallback(function(){y.JSC$21300_watchApi.unsubscribeByKey(D)});
pkY(this)};
_.E(mqy,_.B5);var MPb=function(I){_.w2.cancelJob(I.jobId);I.pendingRequestId=void 0},pkY=function(I){MPb(I);
var y=YAQ(I.JSC$21300_watchApi.getWatchNextResponse());if(y){var D=250,F,R=(F=_.u(y,_.BQO))==null?void 0:F.initialDelayMs;_.l("web_watch_updated_metadata_server_initial_delay")&&R&&(D=R);I.jobId=_.w2.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(y)},D)}};
mqy.prototype.fetchUpdatedMetadata=function(I,y){var D=this,F,R,O,w,v,P,K,r,N,h,x,q,X,f,m;return _.S(function(z){switch(z.nextAddress){case 1:y&&(F={continuation:y});if(!_.l("web_get_updated_metadata_fantasy_panel_continuation_params")){z.jumpTo(2);break}R=_.nR().resolve(_.yR);O="PAsports_fantasy";return z.yield(R.isVisible(O,!0),3);case 3:z.yieldResult&&(K=(v=(w=R).getUpdatePanelContinuationData)==null?void 0:(P=v.call(w,O))==null?void 0:P.updatePanelContinuationRequest)&&(F||(F={}),F.clientParams=
{panelContinuationParams:{panelContinuation:K}});case 2:r=_.nR().resolve(_.iX);if(!r)return _.vu(Error("Ll")),z.return();N={};D.pendingRequestId=N;return z.yield(_.wP(r,I,F),4);case 4:h=z.yieldResult;if(N!==D.pendingRequestId)return z.return();X=(x=h)==null?void 0:(q=x.continuation)==null?void 0:q.timedContinuationData;((f=X)==null?0:f.continuation)&&((m=X)==null?0:m.timeoutMs)&&(D.jobId=_.w2.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(I,X.continuation)},X.timeoutMs));
_.Cj(z)}})};
mqy.prototype.disposeInternal=function(){_.B5.prototype.disposeInternal.call(this);MPb(this)};var zae=_.d(function(I){var y=_.YY(function(){var F=I.data().videoId;if(I.active())F=_.xK(F),_.nR().resolve(_.MC).resolveCommand(F);else{var R=I.playerApi(),O=R.getAvailableAudioTracks(),w,v,P=(w=I.sourceVideoConfig().audioTracks)==null?void 0:(v=w.find(function(K){return K.isDefaultForSource}))==null?void 0:v.id;
if(O=O.find(function(K){return K.getLanguageInfo().getId()===P}))R.setAudioTrack(O,!0),R.setCompositeParam({activeVideoId:F}),I.setActiveSourceId(F)}}),D={};
return _.t("ytw-composite-source-video-overlay",{class:_.XH("ytwCompositeSourceVideoOverlayHost",(D.ytwCompositeSourceVideoOverlayActive=I.active,D.ytwCompositeSourceVideoOverlayInteracting=I.interacting,D)),style:_.p4({left:function(){var F;return((F=I.data().topLeftCornerX)!=null?F:0)*100+"%"},
top:function(){var F;return((F=I.data().topLeftCornerY)!=null?F:0)*100+"%"},
width:function(){var F;return((F=I.data().width)!=null?F:0)*100+"%"},
height:function(){var F;return((F=I.data().height)!=null?F:0)*100+"%"}}),
"on:click":y},_.t("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"bk");var kWQ=_.d(function(I){var y=_.J(_.N4(function(){var w,v=(w=I.data().sources)==null?void 0:w.find(function(P){return P.isActive});
if(v)return v.videoId})),D=y.next().value,F=y.next().value;
y=_.J(_.$M(!1,void 0,"rmRJ8d"));var R=y.next().value,O=y.next().value;return _.t("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.YY(function(){O(!0)}),
"on:mouseout":_.YY(function(){O(!1)})},_.t(_.U,{cond:function(){return I.data().sources},
then:function(w){return _.t(_.gZ,{each:w},function(v){return _.t(zae,{data:v,active:function(){return v.videoId===D()},
setActiveSourceId:F,interacting:R,playerApi:I.playerApi,sourceVideoConfig:function(){return fyg(I.compositeVideoConfig(),v.videoId)}})})}}))},"ck");var cjR=function(I){_.B5.call(this);this.JSC$21315_watchApi=I;I=_.J(_.$M({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=I.next().value;this.setCompositeVideoOverlayRenderer=I.next().value;I=_.J(_.$M({},void 0,"OlaJpc"));this.compositeVideoConfig=I.next().value;this.setCompositeVideoConfig=I.next().value;dqa(this);aqy(this)};
_.E(cjR,_.B5);var dqa=function(I){var y=I.JSC$21315_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){aqy(I)});
I.addOnDisposeCallback(function(){I.JSC$21315_watchApi.unsubscribeByKey(y)})},WLG=function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21315_watchApi.playerApi,2);y=D.yieldResult;y.setCompositeVideoOverlayRendererComponent(I.container);_.Cj(D)})},Cta=function(I){var y;
return _.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21315_watchApi.playerApi,2);y=D.yieldResult;y.setCompositeVideoOverlayRendererComponent(void 0);_.Cj(D)})},BAg=function(I){var y,D;
return _.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21315_watchApi.playerApi,2);y=F.yieldResult;I.container=document.createElement("div");D=_.R8(I.container,function(){return _.t(kWQ,{data:I.compositeVideoOverlayRenderer,compositeVideoConfig:I.compositeVideoConfig,playerApi:y})},"dk");
I.addOnDisposeCallback(D);_.Cj(F)})},aqy=function(I){var y,D,F,R,O,w,v,P;
_.S(function(K){return K.nextAddress==1?(y=I.JSC$21315_watchApi.getPlayerResponse(),O=_.u((D=y)==null?void 0:(F=D.overlay)==null?void 0:(R=F.playerControlsOverlayRenderer)==null?void 0:R.compositeVideoOverlay,Y0g),P=(w=y)==null?void 0:(v=w.playerConfig)==null?void 0:v.compositeVideoConfig,O&&I.setCompositeVideoOverlayRenderer(O),P&&I.setCompositeVideoConfig(P),O&&P?I.container?K.jumpTo(6):K.yield(BAg(I),6):ikC(I)?K.yield(Cta(I),0):K.jumpTo(0)):ikC(I)?K.jumpTo(0):K.yield(WLG(I),0)})},ikC=function(I){var y;
return!((y=I.container)==null||!y.parentElement)};
cjR.prototype.disposeInternal=function(){ikC(this)&&Cta(this);_.B5.prototype.disposeInternal.call(this)};var eag=function(I){_.B5.call(this);var y=this;this.JSC$21321_watchApi=I;var D=this.JSC$21321_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var F=y.JSC$21321_watchApi.getPlayerResponse();if(F){var R,O;if(F=_.u((R=F.endscreen)==null?void 0:(O=R.endscreenRenderer)==null?void 0:O.hideButton,_.r7)){var w;(w=y.setEndscreenHideButton)==null||w.call(y,F);AjZ(y)}}});
this.addOnDisposeCallback(function(){y.JSC$21321_watchApi.unsubscribeByKey(D)});
I=_.J(_.$M({},void 0,"ER3tqb"));this.endscreenHideButton=I.next().value;this.setEndscreenHideButton=I.next().value;$qg(this);bke(this);HkT(this)};
_.E(eag,_.B5);var AjZ=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return I.creatorEndscreenHideButtonContainer?F.return():F.yield(I.JSC$21321_watchApi.playerApi,2);y=F.yieldResult;I.creatorEndscreenHideButtonContainer=document.createElement("div");_.xM(I.creatorEndscreenHideButtonContainer,!1);y.setCreatorEndscreenHideButton(I.creatorEndscreenHideButtonContainer);D=_.R8(I.creatorEndscreenHideButtonContainer,function(){return _.t(_.yJ,{data:I.endscreenHideButton,useOutlinedIcon:!0})},"ek");
I.addOnDisposeCallback(function(){D();var R;(R=y)==null||R.setCreatorEndscreenHideButton(void 0)});
_.Cj(F)})},$qg=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21321_watchApi.playerApi,2);y=F.yieldResult;D=function(){I.creatorEndscreenHideButtonContainer&&_.xM(I.creatorEndscreenHideButtonContainer,!0)};
y.addEventListener("endscreenelementshown",D);I.addOnDisposeCallback(function(){var R;(R=y)==null||R.removeEventListener("endscreenelementshown",D)});
_.Cj(F)})},bke=function(I){var y=function(){I.creatorEndscreenHideButtonContainer&&_.xM(I.creatorEndscreenHideButtonContainer,!1)},D=I.JSC$21321_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",y),F=I.JSC$21321_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",y);
I.addOnDisposeCallback(function(){I.JSC$21321_watchApi.unsubscribeByKey(D);I.JSC$21321_watchApi.unsubscribeByKey(F)})},HkT=function(I){I.JSC$21321_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(y){var D=_.u(y,gbg);
I.JSC$21321_watchApi.playerApi.then(function(F){F==null||F.setCreatorEndscreenVisibility(!!D.hide)})});
I.addOnDisposeCallback(function(){I.JSC$21321_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var siG=function(I){_.B5.call(this);this.JSC$21327_watchApi=I;TAQ(this)};
_.E(siG,_.B5);var TAQ=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21327_watchApi.playerApi,2);y=F.yieldResult;D=function(R){_.oq().dispatch(_.Ec({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:R}}))};
y.addEventListener("onRetroModeChanged",D);I.addOnDisposeCallback(function(){y.removeEventListener("onRetroModeChanged",D)});
_.Cj(F)})};var ayC=0,SL=0,WKb=0;var VPg=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),kU=function(I){_.B5.call(this);this.JSC$21344_watchApi=I;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Zko(this)};
_.E(kU,_.B5);
var Zko=function(I){var y,D,F;_.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$21344_watchApi.playerApi,2);y=R.yieldResult;if(I.isDisposed())return R.return();I.sessionStorage=_.of1("yt-sleep-timer");I.sessionStorage||_.tq(new _.g6("SessionStorage for Sleep Timer is undefined."));((D=I.sessionStorage)==null?void 0:D.get("yt-sleep-timer"))==="true"&&(iVy(),(F=I.sessionStorage)==null||F.remove("yt-sleep-timer"),y.syncVolume());g9e(I,y);IKy(I,y);yJ1(I,y);_.Cj(R)})},g9e=function(I,y){var D=function(K){I.onSleepTimerSettingsChanged(K,
y)},F=function(K){I.onPlayerStateChange(K,y)},R=function(){I.onLoopChange(y)},O=function(){I.onCloseMiniplayer(y)},w=function(){d5b(y,(0,_.m_)(),AUy(y),I.selectedOption==="End of video",y.getPlayerState()!==1)},v=function(){I.onSeekComplete(y)},P=function(){_.w2.cancelJob(SL);
var K=y.getCurrentTime()>=y.getDuration(),r=I.selectedOption==="End of video"||I.selectedOption==="End of playlist"&&!M58(I.playlistId);K&&r&&D$G(I,y)};
y.addEventListener("onSleepTimerSettingsChanged",D);y.addEventListener("onLoopChange",R);y.addEventListener("onLoopRangeChange",R);y.addEventListener("onStateChange",F);y.addEventListener("onCloseMiniplayer",O);y.addEventListener("onSleepTimerFeatureAvailable",w);y.addEventListener("SEEK_COMPLETE",v);y.addEventListener("onAdStart",P);I.addOnDisposeCallback(function(){y.removeEventListener("onSleepTimerSettingsChanged",D);y.removeEventListener("onLoopChange",R);y.removeEventListener("onLoopRangeChange",
R);y.removeEventListener("onStateChange",F);y.removeEventListener("onCloseMiniplayer",O);y.removeEventListener("onSleepTimerFeatureAvailable",w);y.removeEventListener("SEEK_COMPLETE",v);y.removeEventListener("onAdStart",P)})},IKy=function(I,y){var D=I.JSC$21344_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var F=y.getVideoData().video_id,R,O=(R=p_G(I.JSC$21344_watchApi))==null?void 0:R.playlistId;
I.pauseAutonavPlayback&&(y.pauseVideo(),y.syncVolume(),I.pauseAutonavPlayback=!1);if(I.selectedOption==="End of video"&&F!==I.videoId)d0(I,y);else{if(I.selectedOption==="End of playlist"){R=M58(I.playlistId);if(O!==I.playlistId){d0(I,y);break a}R?R&&FGR(I,y):Rig(I,y)}I.videoId=F;I.playlistId=O}}});
I.addOnDisposeCallback(function(){I.JSC$21344_watchApi.unsubscribeByKey(D)})},yJ1=function(I,y){var D=_.nR().resolve(_.LM),F=_.TV(D,_.dT_,function(O){O&&I.selectedOption!=="Off"&&d0(I,y)}),R=I.JSC$21344_watchApi.subscribeToActiveChanged(function(O){var w,v;
return _.S(function(P){if(P.nextAddress==1)return P.yield(_.bW().navigationFinishPromise,2);w=!_.wJu();v=_.nR().resolve(_.OI).isMiniplayerActive();O||!nwG(I.selectedOption)||v||w||d0(I,y);_.Cj(P)})},!1);
D=_.TV(D,function(O){return O.entities.playlistLoopStateEntity||{}},function(O){O=O===void 0?{}:O;
var w=m5a(I.JSC$21344_watchApi);if(w){var v;((v=O[w])==null?void 0:v.state)==="PLAYLIST_LOOP_STATE_ALL"&&nwG(I.selectedOption)&&d0(I,y)}});
I.addOnDisposeCallback(F);I.addOnDisposeCallback(D);I.addOnDisposeCallback(R)};
kU.prototype.onSleepTimerSettingsChanged=function(I,y){switch(I){case "Off":this.selectedOption!=="Off"&&d0(this,y);break;case "End of video":case "End of playlist":O7Q(this,I,y);break;default:O7Q(this,I,y,VPg.get(I))}};
kU.prototype.onLoopChange=function(I){(I.getLoopVideo()||I.getLoopRange())&&nwG(this.selectedOption)&&d0(this,I)};
kU.prototype.onCloseMiniplayer=function(I){nwG(this.selectedOption)&&d0(this,I)};
var O7Q=function(I,y,D,F){LGQ(I,D);I.selectedOption=y;I.videoId=D.getVideoData().video_id;I.playlistId="";var R;(R=I.sessionStorage)==null||R.set("yt-sleep-timer","true");I.adjustmentsCount++;d5b(D,(0,_.m_)(),AUy(D),I.selectedOption==="End of video");if(I.selectedOption==="End of video")Rig(I,D),JJQ(I,D);else if(I.selectedOption==="End of playlist"){JJQ(I,D);var O,w;I.playlistId=(w=(O=p_G(I.JSC$21344_watchApi))==null?void 0:O.playlistId)!=null?w:"";M58(I.playlistId)||Rig(I,D)}else F&&(I.presetFadeSchedulerId=
_.ip(_.w2,function(){C9R(D,15E3)},F-15E3),I.presetPauseSchedulerId=_.ip(_.w2,function(){D$G(I,D)},F),cUo(D,(0,_.m_)(),F))},D$G=function(I,y){if(I.JSC$21344_watchApi.isActive()){var D={dismissDialogEndpoint:{}};
var F={commandExecutorCommand:{commands:[D,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};D={buttonViewModel:{title:_.zC("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:D}}};F={buttonViewModel:{title:_.zC("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:F}}};var R={dialogHeaderViewModel:{headline:{content:_.zC("SLEEP_TIMER_ENDED_TITLE")}}},
O={basicContentViewModel:{paragraphs:[{text:{content:_.zC("SLEEP_TIMER_ENDED_TEXT")}}]}};D={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:R,content:O,footer:{panelFooterViewModel:{primaryButton:D,secondaryButton:F,shouldHideDivider:!0}}}}}}};_.nR().resolve(_.MC).resolveCommand(D,{form:{element:I}})}else iVy();wIQ(I,!1);v2T(I,y);y.pauseVideo();_.X4.getInstance().getState()===2&&y.getPlayerState()===5&&(I.pauseAutonavPlayback=!0)},d0=function(I,y){wIQ(I,!0);
v2T(I,y);iVy()},v2T=function(I,y){LGQ(I,y);
I.selectedOption="Off";I.videoId="";I.playlistId="";I.adjustmentsCount=0;var D;(D=I.sessionStorage)==null||D.remove("yt-sleep-timer");_.w2.cancelJob(ayC);y.resetSleepTimerMenuSettings()},wIQ=function(I,y){y={timer_length_adjustment_times_during_session:I.adjustmentsCount-1,
is_session_cancelled:y};switch(I.selectedOption){case "Off":y.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:y.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",y.option_duration_in_minutes=VPg.get(I.selectedOption)/6E4}_.Jq("sleepTimerSessionFinishEvent",y)};
kU.prototype.onPlayerStateChange=function(I,y){I===1?d5b(y,(0,_.m_)(),AUy(y),this.selectedOption==="End of video"):I===0?(_.w2.cancelJob(SL),y.setVideoTimeLeft(kEe(0,0))):I===2&&_.w2.cancelJob(SL);this.selectedOption==="End of video"?I===0?D$G(this,y):I===2&&Bva(y):this.selectedOption!=="End of playlist"||M58(this.playlistId)||(I===0?D$G(this,y):I===2&&Bva(y))};
kU.prototype.onSeekComplete=function(I){I.getPlayerState()===2&&d5b(I,(0,_.m_)(),AUy(I),this.selectedOption==="End of video",!0)};
kU.prototype.onCueRangeEnter=function(I,y){I==="sleep-timer-fade-audio"&&C9R(y,(y.getDuration()-y.getProgressState().current)*1E3)};
kU.prototype.onCueRangeExit=function(I,y){I==="sleep-timer-fade-audio"&&y.getPlayerState()!==0&&Bva(y,!0)};
var Rig=function(I,y){y.addCueRange("sleep-timer-fade-audio",y.getDuration()-15,y.getDuration());y.addEventListener("onCueRangeEnter",function(D){I.onCueRangeEnter(D,y)});
y.addEventListener("onCueRangeExit",function(D){I.onCueRangeExit(D,y)})},FGR=function(I,y){y.removeCueRange("sleep-timer-fade-audio");
y.removeEventListener("onCueRangeEnter",function(D){I.onCueRangeEnter(D,y)});
y.removeEventListener("onCueRangeExit",function(D){I.onCueRangeExit(D,y)})},LGQ=function(I,y){nwG(I.selectedOption)?FGR(I,y):(_.w2.cancelJob(I.presetPauseSchedulerId),_.w2.cancelJob(I.presetFadeSchedulerId),I.presetPauseSchedulerId=0,I.presetFadeSchedulerId=0);
Bva(y,!0)},JJQ=function(I,y){y.setLoop(!1);
y.setLoopVideo(!1);y.setLoopRange(null);(I=m5a(I.JSC$21344_watchApi))&&_.nR().resolve(_.LM).dispatch(_.WS("playlistLoopStateEntity",I,{key:I,state:"PLAYLIST_LOOP_STATE_NONE"}))};var U$g=function(I){_.B5.call(this);var y=this;this.JSC$21347_watchApi=I;_.l("web_watch_force_start_in_theater_mode")&&SSY(this,!0,!1);tNa(this);PvZ(this);KGa(this);var D=this.JSC$21347_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.kf("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.eF.get("wide",void 0)==="1"&&_.TP("wide","1",_.kf("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){y.JSC$21347_watchApi.unsubscribeByKey(D)});
I=I.getRoot();if(I.is==="ytd-watch-flexy"||I.is==="ytd-watch-grid")I.onTheaterReduxValueUpdate(this.getState());this.getState()&&drZ();_.l("web_watch_log_theater_mode_cookie_state")&&_.eF.get("wide","0")==="1"&&_.JjA("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.E(U$g,_.B5);var tNa=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21347_watchApi.playerApi,2);y=F.yieldResult;D=function(R){SSY(I,!!R)};
y.addEventListener("SIZE_CLICKED",D);I.addOnDisposeCallback(function(){y.removeEventListener("SIZE_CLICKED",D)});
_.Cj(F)})},PvZ=function(I){I.JSC$21347_watchApi.registerActionHandler("yt-toggle-theater-mode",function(y,D){SSY(I,y,D===void 0?!0:D)});
I.addOnDisposeCallback(function(){I.JSC$21347_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
U$g.prototype.getState=function(){return _.sE(_.oq().getState())};
var SSY=function(I,y,D){D=D===void 0?!0:D;var F,R,O,w=_.l("enable_player_resize_transition")&&!!I.JSC$21347_watchApi.getWatchNextResponse()&&!((F=I.JSC$21347_watchApi.getWatchNextResponse())==null?0:(R=F.contents)==null?0:(O=R.twoColumnWatchNextResults)==null?0:O.conversationBar);nnQ(function(){_.oq().dispatch(_.Ec({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:y}}));_.l("theater_mode_scroll_to_top_killswitch")||I.JSC$21347_watchApi.scrollWatchTo(0,!1);_.o1()&&_.l("external_fullscreen")&&_.Nr(document.documentElement);
KGa(I);D&&_.TP("wide",y?"1":"0",_.kf("theater_mode_cookie_max_age_seconds",-1));_.uj(I.JSC$21347_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);I.JSC$21347_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:y});y&&drZ()},{shouldWrap:w})},KGa=function(I){var y;
_.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21347_watchApi.playerApi,2);y=D.yieldResult;y.setSizeStyle(!0,I.getState());_.Cj(D)})};var o2a=function(I){_.B5.call(this);var y=this;this.playerApi=I;this.timeToPanelSyncKeyMap={};var D;if(I==null?0:(D=I.isReady)==null?0:D.call(I)){D=_.TV(_.nR().resolve(_.LM),function(R){return R.entities.timedMarkersListSyncEntity||{}},function(R,O){R=R===void 0?{}:R;
O=O===void 0?{}:O;for(var w=_.J(Object.keys(O)),v=w.next();!v.done;v=w.next())v=v.value,R[v]!==O[v]&&rJo(y,O[v]);O=_.J(Object.keys(R));for(w=O.next();!w.done;w=O.next())w=w.value,v=R[w],y.timeToPanelSyncKeyMap[w]&&jEa(y,v)});
this.addOnDisposeCallback(D);var F=function(R){y.onCueRangeEnter(R)};
I.addEventListener("onCueRangeEnter",F);this.addOnDisposeCallback(function(){var R;(R=I.removeEventListener)==null||R.call(I,"onCueRangeEnter",F)})}};
_.E(o2a,_.B5);
var jEa=function(I,y){var D,F;if((D=I.playerApi)==null?0:(F=D.isReady)==null?0:F.call(D)){var R;if((D=y==null?void 0:(R=y.timedListData)==null?void 0:R.sections)&&y!=null&&y.key)for(R=_.J(D),D=R.next();!D.done;D=R.next())if(D=D.value,D.timedSyncDataList&&D.sectionId)for(F=0;F<D.timedSyncDataList.length;F++){var O=D.timedSyncDataList[F];O.syncItemId&&I.playerApi.addCueRange(D.sectionId+"_"+y.key+"_"+O.syncItemId,Number(O.videoTimeMs)/1E3,F===D.timedSyncDataList.length-1?0x8000000000000:Number(D.timedSyncDataList[F+
1].videoTimeMs)/1E3)}}},rJo=function(I,y){var D,F;
if((D=I.playerApi)==null?0:(F=D.isReady)==null?0:F.call(D)){var R;if((D=y==null?void 0:(R=y.timedListData)==null?void 0:R.sections)&&y!=null&&y.key)for(R=_.J(D),D=R.next();!D.done;D=R.next())if(D=D.value,D.timedSyncDataList&&D.sectionId){F=_.J(D.timedSyncDataList);for(var O=F.next();!O.done;O=F.next())O=O.value,O.syncItemId&&I.playerApi.removeCueRange(D.sectionId+"_"+y.key+"_"+O.syncItemId)}}};
o2a.prototype.onCueRangeEnter=function(I){for(var y=_.J(Object.keys(this.timeToPanelSyncKeyMap)),D=y.next();!D.done;D=y.next()){D=D.value;var F=_.J(I.split("_"+D+"_")),R=F.next().value;F=F.next().value;if(R&&F){I=_.nR().resolve(_.LM);y=this.timeToPanelSyncKeyMap[D];var O=_.Trq(I.getState(),y);D=Nao(D,R,F);if(D===-1)break;D={activeSyncId:F,activeItemIndex:D,activeSectionInfo:{sectionIdentifier:R}};O?I.dispatch(_.V0("markersEngagementPanelSyncEntity",y,D)):I.dispatch(_.WS("markersEngagementPanelSyncEntity",
y,Object.assign({},{key:y},D)));break}}};
var Nao=function(I,y,D){var F=_.nR().resolve(_.LM),R,O;I=(R=Ney(F.getState(),I))==null?void 0:(O=R.timedListData)==null?void 0:O.sections;if(!I)return-1;R=0;O=_.J(I);for(I=O.next();!I.done;I=O.next()){I=I.value;F=I.timedSyncDataList||[];if(I.sectionId===y)return y=F.findIndex(function(w){return w.syncItemId===D}),y===-1?y:R+y;
R+=F.length}return-1};var lKG=function(I){_.B5.call(this);var y=this;this.JSC$21361_watchApi=I;this.unresolvedCommands=[];this.JSC$21361_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(D){hiG(y,D)});
this.addOnDisposeCallback(function(){y.JSC$21361_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
x$C(this)};
_.E(lKG,_.B5);var x$C=function(I){var y;_.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21361_watchApi.playerApi,2);y=D.yieldResult;if(I.isDisposed())return D.return();I.timedSyncObserver=new o2a(y);I.unresolvedCommands.length&&(I.unresolvedCommands.forEach(function(F){return hiG(I,F)}),I.unresolvedCommands=[]);
_.pW(I,I.timedSyncObserver);_.Cj(D)})},hiG=function(I,y){if(I.timedSyncObserver){var D=_.u(y,RsR);
if(D&&D.timedSyncEntityKey&&D.panelSyncEntityKey){I=I.timedSyncObserver;y=D.timedSyncEntityKey;var F=D.panelSyncEntityKey;D=!!D.isEnabled;D=D===void 0?!0:D;var R=_.nR().resolve(_.LM);R=Ney(R.getState(),y);D?I.timeToPanelSyncKeyMap[y]||(I.timeToPanelSyncKeyMap[y]=F,jEa(I,R)):(delete I.timeToPanelSyncKeyMap[y],rJo(I,R))}}else I.unresolvedCommands.push(y)};var ukY=_.d(function(I){var y=I.data,D=I.maybeLogSmartSkipClientData,F=null,R=null,O=_.l("web_enable_auto_focus_for_timely_action_button"),w=function(){F=document.activeElement},v=function(){y().smartSkipMetadata&&(F=document.activeElement,iTR(function(){return R}))},P=function(r){if(y().smartSkipMetadata&&(!r||r.key!=="Enter")){F&&F.isConnected&&(iTR(function(){return F}),F=null);
var N;(N=R)==null||N.blur()}};
I=_.YY(function(){D==null||D(!0,y());return!1});
var K=_.K4(_.VM(function(){return y().rendererContext},{onTap:function(r,N){N({disableClickTracking:!0})}}),_.pT({visibilityCallback:function(r){if(O)r?R&&y().smartSkipMetadata&&(v(),document.addEventListener("focusin",w)):(document.removeEventListener("focusin",w),P());
else if(r){r=_.Tj(y().rendererContext);var N=Number(y().maxVisibleDurationMilliseconds),h,x=(h=_.u(y().rendererContext,_.W_))==null?void 0:h.label;r&&N&&x&&(h={label:x,command:r,durationMs:N},_.nR().resolve(_.uY).enqueue(h))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.OJ(function(){if(O){var r;if((R=(r=K.value)==null?void 0:r.querySelector("button"))&&y().smartSkipMetadata){var N;(N=K.value)==null||N.addEventListener("keydown",P)}}});
_.tI(function(){O&&(R&&y().smartSkipMetadata&&R.removeEventListener("keydown",P),document.removeEventListener("focusin",w),P())});
return _.t("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:K,"on:click":I},_.t(_.aP,{data:function(){return y().content}},{buttonViewModel:_.My}))},"gk");var qSb=_.d(function(I){var y=I.data,D=I.playerApi,F=_.nR().resolve(_.aOQ);I=_.J(_.N4(function(){y()}));
var R=I.next().value,O=I.next().value,w=function(){return HVR(y(),R())},v=function(K,r){var N,h,x=(N=_.u(r==null?void 0:r.rendererContext,_.CQ))==null?void 0:(h=N.loggingDirectives)==null?void 0:h.trackingParams;
if((r=r==null?void 0:r.smartSkipMetadata)&&r.loggingData&&(h=r.loggingData,r=h.algorithmId,N=h.startMilliseconds,h=h.endMilliseconds,r&&N!==void 0&&h!==void 0)){var q,X;K={smartSkipData:Object.assign({},{versionName:r,startMediaTimeMs:N,endMediaTimeMs:h},K&&{userInteractionMediaTimeMs:(Math.floor(((q=_.NY())==null?void 0:(X=q.getPlayer())==null?void 0:X.getCurrentTime())||0)*1E3).toString()})};q=_.VO();var f;x&&(f=_.AC(x));q&&f&&_.PW(q,f,K)}},P=function(K,r){var N=HVR(y(),K);
if(N){var h=_.u(N,bV8),x;if(x=r)x=D(),N=_.u(N,bV8),x=N!=null&&N.smartSkipMetadata?!(x==null?0:x.isSameMarkerTypeVisible((N==null?void 0:N.smartSkipMetadata.markerKey)||"")):!0;if(x){var q,X;(h==null?0:(q=h.smartSkipMetadata)==null?0:(X=q.loggingData)==null?0:X.isCounterfactual)||(v(!1,h),O(K))}else r||R()!==K||O(void 0)}};
_.wZ(function(){var K=y().timelyActions;if(K){K=_.J(K);for(var r=K.next();!r.done;r=K.next()){r=_.u(r.value,bV8);var N=void 0;(N=r)!=null&&N.cueRangeId&&F.timelyActionsMap.set(r.cueRangeId,P)}_.tI(function(){F.timelyActionsMap.clear()})}},"l2RtC");
return _.t("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.t(_.aP,{data:w},{timelyActionViewModel:function(K){return _.t(ukY,{data:K.data,maybeLogSmartSkipClientData:function(){v(!0,_.u(w(),bV8))}})}}))},"ik");var GuC=function(I){_.B5.call(this);this.JSC$21374_watchApi=I;I=_.J(_.$M({},void 0,"UN7k5e"));this.timelyActionsOverlay=I.next().value;this.setTimelyActionsOverlay=I.next().value;E2g(this)};
_.E(GuC,_.B5);var E2g=function(I){var y,D,F,R;_.S(function(O){if(O.nextAddress==1)return XIC(I),QEb(I),I.timelyActionsContainer=document.createElement("div"),O.yield(I.JSC$21374_watchApi.playerApi,2);y=O.yieldResult;(F=(D=y).insertTimelyActionUi)==null||F.call(D,I.timelyActionsContainer);R=_.R8(I.timelyActionsContainer,function(){return _.t(qSb,{data:I.timelyActionsOverlay,playerApi:y})},"jk");
I.addOnDisposeCallback(R);_.Cj(O)})},QEb=function(I){var y=I.JSC$21374_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XIC(I)});
I.addOnDisposeCallback(function(){I.JSC$21374_watchApi.unsubscribeByKey(y)})},XIC=function(I){var y=I.JSC$21374_watchApi.getWatchNextResponse();
if(y){var D,F;if(y=_.u((D=y.playerOverlays)==null?void 0:(F=D.playerOverlayRenderer)==null?void 0:F.timelyActionsOverlayViewModel,JkT)){var R;(R=I.setTimelyActionsOverlay)==null||R.call(I,y)}}};var fK8=function(I){_.B5.call(this);this.JSC$21378_watchApi=I;YSo(this)};
_.E(fK8,_.B5);var YSo=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21378_watchApi.playerApi,2);y=F.yieldResult;D=function(R){_.M4.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.u(R,ouy)},popupType:"TOAST"}})};
y.addEventListener("onYtShowToast",D);I.addOnDisposeCallback(function(){y.removeEventListener("onYtShowToast",D)});
_.Cj(F)})};var n2b=function(I){var y=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.n0;this.element.addEventListener("load",function(){y.loaded=!0;y.resolver.resolve(y.element)});
this.element.addEventListener("error",function(){y.failed=!0});
this.element.src=I};var pIy=function(I,y){this.image=I;this.frame=y};
pIy.prototype.drawToCanvas=function(I,y){var D=this.frame.width/this.frame.columns,F=this.frame.height/this.frame.rows,R=y.offsetX,O=y.offsetY;ebG(y)?(I.fillStyle=y.fullscreen?"#000":"#0f0f0f",I.fillRect(R,O,(y==null?void 0:y.width)||D,(y==null?void 0:y.height)||F)):I.drawImage(this.image,this.frame.column*D,this.frame.row*F,D,F,R,O,(y==null?void 0:y.width)||D,(y==null?void 0:y.height)||F)};
var m$1=function(I){this.color=I};
m$1.prototype.drawToCanvas=function(I,y){var D=y.offsetX,F=y.offsetY,R=y.width,O=y.height;I.fillStyle=ebG(y)?y.fullscreen?"#000":"#0f0f0f":this.color;I.fillRect(D,F,R,O)};var aM=function(I,y){kN.call(this);this.playerApi=y;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.ad(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();MN8(this,I);ziT(this);this.update()};
_.E(aM,kN);aM.prototype.addEventListeners=function(){var I=this,y=function(){I.update()},D=function(R){I.paused||(R.type==="newdata"&&(I.mosaics.clear(),kuR(I),cO(I)),ziT(I),I.update())},F=function(){I.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",y);this.playerApi.addEventListener("onVideoDataChange",D);this.playerApi.addEventListener("onStateChange",F);this.addOnDisposeCallback(function(){I.playerApi.removeEventListener("onVideoProgress",y);I.playerApi.removeEventListener("onVideoDataChange",D);I.playerApi.removeEventListener("onStateChange",F)})};
var MN8=function(I,y){I.cinematicContainerRenderer!==y&&(I.cinematicContainerRenderer=y,kuR(I),cO(I),I.colorStoreUpdateJobId=_.w2.addLowPriorityJob(function(){var D;if((D=I.cinematicContainerRenderer.colorStore)!=null&&D.sampledColors){D=Infinity;for(var F=_.J(I.cinematicContainerRenderer.colorStore.sampledColors),R=F.next();!R.done;R=F.next()){R=R.value;var O=Number(R.key);O!==0&&O<D&&(D=O);O=_.Z7(R.value);I.colorStore.set(R.key,O)}I.colorStoreTimeInterval=D}}))},kuR=function(I){I.colorStoreUpdateJobId&&
(_.w2.cancelJob(I.colorStoreUpdateJobId),I.colorStoreUpdateJobId=void 0);
I.colorStore.clear();I.currentStoryboardColor=void 0},d$1=function(I,y){var D;
return(D=I.getStoryboardFrame(y))==null?void 0:D.url};
aM.prototype.onPlayerStateChange=function(){this.update()};
aM.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var ziT=function(I){var y=I.getStoryboardFrame(0);y&&(y=new _.ad(y.width/y.columns,y.height/y.rows),E_g(I.currentStoryboardSize,y)||(I.currentStoryboardSize=y,I.publish("STORYBOARD_SIZE_CHANGED",I.currentStoryboardSize)))},aKg=function(I,y){I.currentStoryboardIndex=y;
I.pendingStoryboardIndex=NaN;y=I.getStoryboardFrame(I.currentStoryboardIndex);I.currentStoryboard=new pIy(I.mosaics.get(y.url).element,y);I.publish("STORYBOARD_CHANGED",I.currentStoryboard);I.lastUpdateTime=(0,_.m_)()};
aM.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var cO=function(I){I.currentStoryboardIndex=NaN;I.pendingStoryboardIndex=NaN;I.currentStoryboard&&(I.currentStoryboard=void 0,I.publish("STORYBOARD_CHANGED",void 0));I.lastUpdateTime=NaN};
aM.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)cO(this);else{var I=this.playerApi.getPlayerState(1);if(I===-1||I===5||I===0)cO(this);else if(isNaN(this.lastUpdateTime)||!((0,_.m_)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(I=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){I=""+Math.round(I*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var y=this.colorStore.get(I);y?y!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=y,this.currentStoryboard=new m$1(y),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.m_)()):(_.tq(new _.g6("Could not find color for timestamp: "+I,this.cinematicContainerRenderer)),cO(this))}else cO(this);else cJC(this,I)}};
var cJC=function(I,y){var D=I.getStoryboardFrameIndex(y);if(D!==I.currentStoryboardIndex&&D!==I.pendingStoryboardIndex){y=d$1(I,D);var F=I.mosaics.get(y);F?F.loaded&&aKg(I,D):(I.pendingStoryboardIndex=D,D=new n2b(y),I.mosaics.set(y,D),D.resolver.promise.then(function(){if(!I.isDisposed()&&!I.paused&&!isNaN(I.pendingStoryboardIndex)){var R=d$1(I,I.pendingStoryboardIndex);if(R){var O;(O=I.mosaics.get(R))!=null&&O.loaded&&aKg(I,I.pendingStoryboardIndex)}else cO(I)}}))}};
aM.prototype.getStoryboardFrameIndex=function(I){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(I,y)};
aM.prototype.getStoryboardFrame=function(I){var y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,D,F;return((F=(D=this.playerApi).getStoryboardFrame)==null?void 0:F.call(D,I,y))||null};
aM.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var CU=function(I,y,D,F){F=F===void 0?!1:F;_.B5.call(this);this.cinematicContainerRenderer=y;this.playerApi=D;this.theater=this.fullscreen=!1;var R;this.ambientLightThemeEnabled=!F&&!!(y==null?0:(R=y.config)==null?0:R.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=F)&&!0;this.container=document.createElement("div");I.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);WGe(this);this.backCanvas=
TvR();this.frontCanvas=TvR();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new aM(y,this.playerApi);_.pW(this,this.storyboardManager);this.addEventListeners();CvR(this)?Ba8(this,100+WO(this)*3*2,100+WO(this)*3*2):i7T(this);AJe(this,this.storyboardManager.currentStoryboard)};
_.E(CU,_.B5);
var WGe=function(I){var y=I.playerApi.getVideoAspectRatio();_.v2(I.container,{"aspect-ratio":""+y,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var D;var F;if((I.fullscreen||I.theater)&&((D=I.cinematicContainerRenderer.config)==null?0:(F=D.watchFullscreenConfig)==null?0:F.colorSourceWidthMultiplier))D=I.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var R;D=(R=
I.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?R:I.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var O,w;if((I.fullscreen||I.theater)&&((O=I.cinematicContainerRenderer.config)==null?0:(w=O.watchFullscreenConfig)==null?0:w.colorSourceHeightMultiplier))R=I.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var v;R=(v=I.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?v:I.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.v2(I.innerContainer,
{"aspect-ratio":""+y,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+D+", "+R+")"});skb()&&_.v2(I.innerContainer,"filter","blur("+_.kf("cinematic_watch_css_filter_blur_strength",40)+"px)")};
CU.prototype.setFullscreen=function(I,y){this.fullscreen=I;this.theater=!!y;WGe(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),I=this.storyboardManager.currentStoryboard,$$y(this),I&&b78(this,I)};
CU.prototype.addEventListeners=function(){var I=this,y=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(R){AJe(I,R)}),D=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){i7T(I)});
this.addOnDisposeCallback(function(){I.storyboardManager.unsubscribeByKey(y);I.storyboardManager.unsubscribeByKey(D)});
var F=function(){WGe(I)};
this.playerApi.addEventListener("onVideoDataChange",F);this.addOnDisposeCallback(function(){I.playerApi.removeEventListener("onVideoDataChange",F)})};
var i7T=function(I){if(!CvR(I)){var y=I.storyboardManager.currentStoryboardSize;isNaN(y.width)||isNaN(y.height)||Ba8(I,Number(y.width)+WO(I)*3*2,Number(y.height)+WO(I)*3*2)}},Ba8=function(I,y,D){I.backCanvas.element.width=y;
I.backCanvas.element.height=D;I.frontCanvas.element.width=y;I.frontCanvas.element.height=D},CvR=function(I){return I.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},AJe=function(I,y,D){D=D===void 0?!1:D;
var F=I.frontCanvas.element.getAnimations()[0];F?(F.pause(),I.backCanvas.context.globalAlpha=Number(getComputedStyle(I.frontCanvas.element).opacity),I.frontCanvas.element.style.opacity="0",F.finish()):I.backCanvas.context.globalAlpha=1;I.backCanvas.context.drawImage(I.frontCanvas.element,0,0,I.backCanvas.element.width,I.backCanvas.element.height);$$y(I);y&&b78(I,y);y=y?I.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.kf("cinematic_watch_fade_out_duration",500);F=_.kf("cinematic_watch_transition_frame_rate")/
1E3;var R={};F&&(R={easing:"steps("+Math.round(y*F)+")"});(D===void 0?0:D)||I.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:y,iterations:1},R));I.frontCanvas.element.style.opacity="1"},$$y=function(I){var y=I.ambientLightThemeEnabled||I.ambientTheaterModeEnabled,D=I.ambientLightThemeEnabled||I.ambientFullscreenEnabled;
I.frontCanvas.context.fillStyle=I.theater&&y||I.fullscreen&&D?"#000":"#0f0f0f";skb()||(I.frontCanvas.context.filter="blur(0)");I.frontCanvas.context.fillRect(0,0,I.frontCanvas.element.width,I.frontCanvas.element.height)},b78=function(I,y){skb()||(I.frontCanvas.context.filter="blur("+WO(I)+"px)");
I.frontCanvas.context.globalAlpha=I.fullscreen&&I.ambientFullscreenEnabled||I.theater&&I.ambientTheaterModeEnabled?_.kf("cinematic_watch_effect_letterbox_opacity",.4):_.kf("cinematic_watch_effect_opacity",.4);var D={offsetX:WO(I)*3,offsetY:WO(I)*3,theater:I.theater,fullscreen:I.fullscreen};CvR(I)&&(D.width=100,D.height=100);y.drawToCanvas(I.frontCanvas.context,D);I.frontCanvas.context.globalAlpha=1},WO=function(I){var y;
return(y=I.cinematicContainerRenderer.config.blurStrength)!=null?y:5};
CU.prototype.disposeInternal=function(){_.B5.prototype.disposeInternal.call(this);this.container.remove()};
CU.prototype.clear=function(){AJe(this,void 0,!0)};
CU.prototype.pause=function(){this.storyboardManager.pause()};var H7a=_.eq(function(){var I,y,D=!((y=(I=document.createElement("canvas")).getContext)==null||!y.call(I,"2d")),F;I=!((F=CSS)==null||!F.supports("filter: blur(0)"));F=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var R;return D&&I&&F&&!((R=CSS)==null||!R.supports("aspect-ratio: 1 / 1"))}),BO=function(I,y){kN.call(this);
this.container=I;this.playerApi=y;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=eia(this);this.update()};
_.E(BO,kN);var TaR=function(I){var y=document.documentElement.hasAttribute("dark");I.isDarkModeEnabled=y;I.update()},sEC=function(I,y){I.settingEnabled=y;
I.update()};
BO.prototype.setFullscreen=function(I,y){this.fullscreen=I;this.theater=!!y;this.update()};
var VNC=function(I,y){I.cinematicContainerRenderer=y;I.cinematicContainerRenderer&&(I.cinematicsVe=_.QM(I.isShorts()?227858:159022),_.aj(_.W4(),I.cinematicsVe),I.loggingClientData={watchCinematicContainerData:{presentationStyle:I.cinematicContainerRenderer.presentationStyle}});I.update()};
BO.prototype.isShorts=function(){var I,y;return((I=this.cinematicContainerRenderer)==null?void 0:(y=I.config)==null?void 0:y.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
BO.prototype.isAllowed=function(){var I;if(I=H7a()){var y,D,F;I=((D=this.cinematicContainerRenderer)==null?void 0:D.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((F=this.cinematicContainerRenderer)==null||!F.colorStore)||((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(I)if(_.l("web_cinematics_pausing")){var R,O;I=this.isDarkModeEnabled||!!((R=this.cinematicContainerRenderer)==
null?0:(O=R.config)==null?0:O.enableInLightTheme)}else{var w,v;R=!!((w=this.cinematicContainerRenderer)==null?0:(v=w.config)==null?0:v.enableInLightTheme)&&(_.Pi("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);I=this.isDarkModeEnabled||R}if(w=I){var P,K;w=!((K=(P=this.prefersReducedMotionQuery)==null?void 0:P.matches)!=null&&K)}return w};
var Z7g=function(I){var y;(y=I.currentCinematicEffect)==null||y.clear()},g2a=function(I){var y;
(y=I.currentCinematicEffect)==null||y.pause()},Iro=function(I){(I=I.currentCinematicEffect)!=null&&(I=I.storyboardManager,I.paused=!1,ziT(I),I.update())};
BO.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var eia=function(I){if(!_.l("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var y=window.matchMedia("(prefers-reduced-motion: reduce)"),D=function(){I.update()};
y.addListener(D);I.addOnDisposeCallback(function(){y.removeListener(D)});
return y}};
BO.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var I=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new CU(this.container,I,this.playerApi,this.isDarkModeEnabled),_.pW(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var y=this.currentCinematicEffect;y.cinematicContainerRenderer!==
I&&(y.cinematicContainerRenderer=I,MN8(y.storyboardManager,I),WGe(y));I=_.a1();_.cg(0,194,!0);I.save();I=_.VO();this.cinematicsVe&&I&&_.wH(I,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(I=_.VO(),this.cinematicsVe&&I&&_.vW(I,[this.cinematicsVe],!1,this.loggingClientData),_.rM(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.mD.Object.defineProperties(BO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var yQQ=!1,Ose=function(I){_.B5.call(this);this.JSC$21411_watchApi=I;this.fullscreen=this.theater=!1;Dba(this);F8g(this);RUe(this)};
_.E(Ose,_.B5);var RUe=function(I){var y,D,F;_.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$21411_watchApi.playerApi,2);y=R.yieldResult;if(I.isDisposed())return R.return();D=I.JSC$21411_watchApi.getElement("CINEMATICS");if(!D)return R.return();I.JSC$21411_cinematicController=new BO(D,y);_.pW(I,I.JSC$21411_cinematicController);TaR(I.JSC$21411_cinematicController);L8y(I,_.mfJ());F=I.JSC$21411_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(O){JQQ(I,O)});
I.addOnDisposeCallback(function(){I.JSC$21411_watchApi.unsubscribeByKey(F)});
wXZ(I);JQQ(I,I.JSC$21411_cinematicController.isAllowed());vtT(I);SQZ(I);_.Cj(R)})},vtT=function(I){I.fullscreen=_.Vz(_.oq().getState());
I.theater=_.sE(_.oq().getState());tsZ(I,I.fullscreen,I.theater);var y=_.TV(_.oq(),_.Vz,function(F){I.fullscreen=F;tsZ(I,I.fullscreen,I.theater)}),D=_.TV(_.oq(),_.sE,function(F){I.theater=F;
tsZ(I,I.fullscreen,I.theater)});
I.addOnDisposeCallback(y);I.addOnDisposeCallback(D)},Dba=function(I){var y=I.JSC$21411_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wXZ(I)});
I.addOnDisposeCallback(function(){I.JSC$21411_watchApi.unsubscribeByKey(y)})},F8g=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21411_watchApi.playerApi,2);y=F.yieldResult;D=function(R){L8y(I,R)};
y.addEventListener("cinematicSettingsToggleChange",D);I.addOnDisposeCallback(function(){y.removeEventListener("cinematicSettingsToggleChange",D)});
_.Cj(F)})},wXZ=function(I){var y=I.JSC$21411_watchApi.getWatchNextResponse(),D;
y=_.u(y==null?void 0:(D=y.pageVisualEffects)==null?void 0:D[0],E9);var F;(F=I.JSC$21411_cinematicController)==null||VNC(F,y)},L8y=function(I,y){var D;
(D=I.JSC$21411_cinematicController)==null||sEC(D,y);Pfy(I)},JQQ=function(I,y){var D;
_.S(function(F){if(F.nextAddress==1)return _.l("kevlar_watch_cinematics_invisible")&&(y=!1),F.yield(I.JSC$21411_watchApi.playerApi,2);D=F.yieldResult;D.updateCinematicSettings(y);Pfy(I);_.Cj(F)})},SQZ=function(I){var y=_.a1();
if(_.l("kevlar_measure_ambient_mode_idle")&&!y.getFlag(192)&&!yQQ){yQQ=!0;var D=_.y9(_.w2,function(){_.nR().resolve(_.rGy).start(1E4)},5E3);
I.addOnDisposeCallback(function(){_.w2.cancelJob(D);_.nR().resolve(_.rGy).stop()})}},tsZ=function(I,y,D){I.fullscreen=y;
I.theater=D;var F;(F=I.JSC$21411_cinematicController)==null||F.setFullscreen(I.fullscreen,I.theater);if(_.l("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(I.theater||I.fullscreen){var R;(R=I.JSC$21411_cinematicController)==null||Iro(R)}else{var O;(O=I.JSC$21411_cinematicController)==null||g2a(O)}},Pfy=function(I){var y;
I.JSC$21411_watchApi.getRoot().toggleCinematicsActive(!((y=I.JSC$21411_cinematicController)==null||!y.isEnabled()))};var jHe=function(I){_.B5.call(this);var y=this;this.JSC$21414_watchApi=I;this.commentsReady=!1;this.setCommentsJobId=0;I=_.TV(_.oq(),w9,function(){K8b(y)});
this.addOnDisposeCallback(I);var D=this.JSC$21414_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ub1(y)}),F=this.JSC$21414_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Ub1(y)});
this.addOnDisposeCallback(function(){y.JSC$21414_watchApi.unsubscribeByKey(D);y.JSC$21414_watchApi.unsubscribeByKey(F)});
var R=function(){_.l("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&rQg(y,"false")};
this.JSC$21414_watchApi.getRoot().addEventListener("yt-page-data-will-update",R);this.addOnDisposeCallback(function(){y.JSC$21414_watchApi.getRoot().removeEventListener("yt-page-data-will-update",R)});
Ub1(this)};
_.E(jHe,_.B5);var Ub1=function(I){I.commentsReady=!1;_.w2.cancelJob(I.setCommentsJobId);I.setCommentsJobId=_.y9(_.w2,function(){K8b(I)},1E3)},K8b=function(I){if(!I.commentsReady){_.V_("cmi");
_.w2.cancelJob(I.setCommentsJobId);var y,D,F,R,O=(y=I.JSC$21414_watchApi.getWatchNextResponse())==null?void 0:(D=y.contents)==null?void 0:(F=D.twoColumnWatchNextResults)==null?void 0:(R=F.results)==null?void 0:R.results.contents;y=void 0;if(O&&O.length)for(O=_.J(O),D=O.next();!D.done;D=O.next())if(D=D.value,R=F=void 0,((F=D)==null?void 0:(R=F.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section"){_.l("web_watch_provide_undefined_comments")?y=D.itemSectionRenderer:I.JSC$21414_watchApi.provideRenderingData("COMMENTS",
D.itemSectionRenderer);rQg(I,"true");break}_.l("web_watch_provide_undefined_comments")&&I.JSC$21414_watchApi.provideRenderingData("COMMENTS",y);I.commentsReady=!0;I.JSC$21414_watchApi.dispatchEvent("yt-watch-comments-ready")}},rQg=function(I,y){var D;
(D=I.JSC$21414_watchApi.getElement("COMMENTS"))==null||D.setAttribute("canScheduleJobs",y)};var ota=["engagement-panel-ads"],ung=function(I){_.B5.call(this);var y=this;this.JSC$21417_watchApi=I;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.l("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.l("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.l("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.kf("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)N3T(this);else{var D=this.JSC$21417_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hU8(y);ir(y)}),F=this.JSC$21417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A3(y);
ir(y)});
this.JSC$21417_watchApi.getRoot().is==="ytd-watch-grid"&&_.l("swatcheroo_pbs_load_grid")&&(xba(this),lry(this));this.addOnDisposeCallback(function(){y.JSC$21417_watchApi.unsubscribeByKey(D);y.JSC$21417_watchApi.unsubscribeByKey(F);_.w2.cancelJob(y.provideRichGridJobId)});
hU8(this);A3(this)}};
_.E(ung,_.B5);var N3T=function(I){var y=I.JSC$21417_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){I.providePlayerJobId=_.k1(_.w2,function(){hU8(I);ir(I)},I.provideAllDataDelayMs)}),D=I.JSC$21417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I.provideWatchNextJobId=_.k1(_.w2,function(){A3(I);
ir(I)},I.provideAllDataDelayMs)}),F=I.JSC$21417_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){I.provideWatchNextJobId=_.k1(_.w2,function(){A3(I);
ir(I)},I.provideAllDataDelayMs)});
I.JSC$21417_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.y9(_.w2,function(){hU8(I);A3(I);ir(I)},100)});
I.JSC$21417_watchApi.addPageDisposeJob(function(){_.w2.cancelJob(I.provideWatchNextJobId);_.w2.cancelJob(I.providePlayerJobId)});
I.addOnDisposeCallback(function(){I.JSC$21417_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");I.JSC$21417_watchApi.unsubscribeByKey(y);I.JSC$21417_watchApi.unsubscribeByKey(D);I.JSC$21417_watchApi.unsubscribeByKey(F);_.w2.cancelJob(I.providePlayerJobId);_.w2.cancelJob(I.provideWatchNextJobId)});
hU8(I);A3(I)},hU8=function(I){var y=I.JSC$21417_watchApi.getPlayerResponse(),D,F,R=(F=y==null?void 0:(D=y.playabilityStatus)==null?void 0:D.messageRenderers)!=null?F:[],O,w;
y=(w=y==null?void 0:(O=y.playabilityStatus)==null?void 0:O.messages)!=null?w:[];O=_.J(y);for(w=O.next();!w.done;w=O.next())R.push({alertRenderer:{text:_.Ug(w.value),type:"WARNING"}});I.JSC$21417_watchApi.provideRenderingData("ALERTS",R)},A3=function(I){var y=[],D,F,R,O=I.JSC$21417_watchApi.getWatchNextResponse(),w,v,P,K,r=O==null?void 0:(w=O.contents)==null?void 0:(v=w.twoColumnWatchNextResults)==null?void 0:(P=v.results)==null?void 0:(K=P.results)==null?void 0:K.contents;
if(r)for(w=_.J(r),v=w.next();!v.done;v=w.next())if(v=v.value,v.videoPrimaryInfoRenderer)var N=v;else if(v.videoSecondaryInfoRenderer){var h=v;K=P=void 0;v=Object.assign({},(P=v.videoSecondaryInfoRenderer)==null?void 0:(K=P.metadataRowContainer)==null?void 0:K.metadataRowContainerRenderer);if(v.rows&&v.collapsedItemCount!==void 0){v.rows=v.rows.slice(0,v.collapsedItemCount).filter(function(mM){return!!mM.richMetadataRowRenderer});
v.collapsedItemCount=v.rows.length;var x={metadataRowContainerRenderer:v}}}else if(v.merchandiseShelfRenderer)var q=v;else if(v.ticketShelfRenderer)var X=v;else if(v.expandableMetadataRenderer)var f=v;else if(v.itemSectionRenderer)if(P=v.itemSectionRenderer.contents,K=void 0,I.directlyProvideComments&&((K=v.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section")_.V_("cmi"),I.JSC$21417_watchApi.provideRenderingData("COMMENTS",v.itemSectionRenderer);else if(P)for(v=_.J(P),P=
v.next();!P.done;P=v.next())if(P=P.value,P.commentsEntryPointHeaderRenderer)var m=P;else if(P.clarificationRenderer||P.infoPanelContainerRenderer||P.infoPanelContentRenderer||P.emergencyOneboxRenderer){y.push(P);var z=z||!!h}else P.limitedStateMessageRenderer?F=P:P.videoMetadataCarouselViewModel&&(R=P);if(_.l("web_watch_merch_in_sd_when_ticket_shelf_present")&&q&&X){var B=q;q=void 0}if(I.provideWatchNextSecondaryResults){var C,H,e;I.JSC$21417_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
O==null?void 0:(C=O.contents)==null?void 0:(H=C.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:e.secondaryResults)}if(I.JSC$21417_watchApi.getRoot().is==="ytd-watch-grid"){var T,L5;I.JSC$21417_watchApi.provideRenderingData("LIVE_CHAT",O==null?void 0:(T=O.contents)==null?void 0:(L5=T.twoColumnWatchNextResults)==null?void 0:L5.conversationBar)}var vH,u_,jW,xA;(C=O==null?void 0:(vH=O.contents)==null?void 0:(u_=vH.twoColumnWatchNextResults)==null?void 0:(jW=u_.secondaryResults)==
null?void 0:(xA=jW.secondaryResults)==null?void 0:xA.offerModule)&&(C.donationShelfRenderer||C.donationUnavailableRenderer)&&I.JSC$21417_watchApi.getRoot().is!=="ytd-watch-grid"&&(D=C);vH=I.JSC$21417_watchApi.getPlayerResponse();if(!vH||!_.xt4(vH.playabilityStatus,O==null?void 0:O.playerOverlays)){var dq;if(O==null?0:(dq=O.contents)==null?0:dq.singleColumnWatchNextResults){var $A,BH;var jf=O==null?void 0:($A=O.contents.singleColumnWatchNextResults.results)==null?void 0:(BH=$A.results)==null?void 0:
BH.contents}else{var yg,eW,oe,xP;dq=!!(r==null?0:(yg=r[0])==null?0:(eW=yg.itemSectionRenderer)==null?0:(oe=eW.contents)==null?0:(xP=oe[0])==null?0:xP.backgroundPromoRenderer);var XW,zo;yg=!!(O==null?0:(XW=O.contents)==null?0:(zo=XW.twoColumnWatchNextResults)==null?0:zo.secondaryResults);dq&&!yg&&(jf=r)}}r=y[0];XW=y[1];z&&y.length===1&&(XW=r,r=void 0);I.JSC$21417_watchApi.provideRenderingData("PRIMARY_INFO",N);I.JSC$21417_watchApi.provideRenderingData("SECONDARY_INFO",h);I.JSC$21417_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
m);I.JSC$21417_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",R);I.JSC$21417_watchApi.provideRenderingData("CLARIFICATION",r);I.JSC$21417_watchApi.provideRenderingData("RICH_METADATA",x);I.JSC$21417_watchApi.provideRenderingData("MERCH_SHELF",q);_.l("web_watch_merch_in_sd_when_ticket_shelf_present")&&I.JSC$21417_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",B);I.JSC$21417_watchApi.provideRenderingData("TICKET_SHELF",X);I.JSC$21417_watchApi.provideRenderingData("LIMITED_STATE",F);I.JSC$21417_watchApi.getRoot().is!==
"ytd-watch-grid"&&I.JSC$21417_watchApi.provideRenderingData("DONATION_SHELF",D);I.JSC$21417_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",jf);I.JSC$21417_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",XW);I.JSC$21417_watchApi.provideRenderingData("EXPANDABLE_METADATA",f);if(I.swatcherooProvideAllDataOnScheduledJob){var Ub,rq,ao,rc,Ta,f_;N=O==null?void 0:(Ub=O.contents)==null?void 0:(rq=Ub.twoColumnWatchNextResults)==null?void 0:(ao=rq.secondaryResults)==null?void 0:(rc=ao.secondaryResults)==
null?void 0:(Ta=rc.results)==null?void 0:(f_=Ta[0])==null?void 0:f_.richGridRenderer;I.JSC$21417_watchApi.provideRenderingData("RICH_GRID_RENDERER",N)}};
ung.prototype.hasCompanionAds=function(I){var y,D;return(D=I==null?void 0:(y=I.adPlacements)==null?void 0:y.some(function(F){var R,O,w,v;return(F==null?void 0:(R=F.adPlacementRenderer)==null?void 0:(O=R.renderer)==null?void 0:O.actionCompanionAdRenderer)||(F==null?void 0:(w=F.adPlacementRenderer)==null?void 0:(v=w.renderer)==null?void 0:v.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?D:!1};
var ir=function(I){if(!_.l("swaterdoo_ps_wn_handle_ks")){I.swatcherooProvideAllDataOnScheduledJob||lry(I,3E3);var y=I.JSC$21417_watchApi.getPlayerResponse(),D,F,R,O,w,v=(D=I.JSC$21417_watchApi.getWatchNextResponse())==null?void 0:(F=D.contents)==null?void 0:(R=F.twoColumnWatchNextResults)==null?void 0:(O=R.secondaryResults)==null?void 0:(w=O.secondaryResults)==null?void 0:w.offerModule;y=I.hasCompanionAds(y);var P,K;D=(v==null?void 0:(P=v.tvfilmOfferModuleRenderer)==null?void 0:P.clientShouldSuppressIfCompanionAdDisplayed)||
(v==null?void 0:(K=v.unlimitedOfferModuleRenderer)==null?void 0:K.suppressIfCompanionAds);P=y&&D;I.JSC$21417_watchApi.getRoot().is==="ytd-watch-grid"&&I.JSC$21417_watchApi.provideRenderingData("OFFER_MODULE",P?void 0:v)}},lry=function(I,y){_.l("swatcheroo_pbs_load_grid")&&(I.provideRichGridJobId&&_.w2.cancelJob(I.provideRichGridJobId),I.provideRichGridJobId=_.k1(_.w2,function(){I.provideRichGridJobId=0;
var D,F,R,O,w,v,P,K=(D=I.JSC$21417_watchApi.getWatchNextResponse())==null?void 0:(F=D.contents)==null?void 0:(R=F.twoColumnWatchNextResults)==null?void 0:(O=R.secondaryResults)==null?void 0:(w=O.secondaryResults)==null?void 0:(v=w.results)==null?void 0:(P=v[0])==null?void 0:P.richGridRenderer;K&&I.JSC$21417_watchApi.provideRenderingData("RICH_GRID_RENDERER",K)},y))},xba=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21417_watchApi.playerApi,2);y=F.yieldResult;D=function(){I.onPlaybackStart()};
y.addEventListener("onPlaybackStartExternal",D);I.addOnDisposeCallback(function(){y.removeEventListener("onPlaybackStartExternal",D)});
_.Cj(F)})};
ung.prototype.onPlaybackStart=function(){lry(this)};var qQa=_.QM(115994),Eta=_.QM(115993),$U=function(I,y,D){var F=this;var R=D.dragDownAction;this.layer=0;this.JSC$21432_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.JSC$21432_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return F.dragDownAction()}}}};
this.fullscreen=!1;var O=_.W4();_.c0(O,qQa,this.layer);_.c0(O,Eta,this.layer);this.dragDownAction=function(){R();_.OP(O,{visualElement:F.fullscreen?qQa:Eta})};
this.gesture=new s9(I,y,this.getConfig(!1),"pandown");this.attach()};
$U.prototype.attach=function(){this.gesture.attach()};
$U.prototype.detach=function(){this.gesture.detach()};
$U.prototype.update=function(I){this.fullscreen=I;var y=this.gesture;I=this.getConfig(I);y.config=I};
$U.prototype.getConfig=function(I){return I?this.JSC$21432_watchFullScreenConfig:this.JSC$21432_watchConfig};var XXY=function(I){_.B5.call(this);var y=this;this.JSC$21435_watchApi=I;I.playerApi.then(function(D){y.player=D});
this.gestures=new $U(this.JSC$21435_watchApi.getRoot(),I.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(us1(_.oq().getState())&&w9(_.oq().getState())<=0)if(_.Vz(_.oq().getState())){var D;(D=y.player)==null||D.toggleFullscreen()}else _.uj(y.JSC$21435_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Gwg(this)};
_.E(XXY,_.B5);var Gwg=function(I){var y=_.TV(_.oq(),_.Vz,function(D){I.onFullscreenChanged(D)});
I.addOnDisposeCallback(y);y=_.TV(_.oq(),w9,function(D){I.gestures&&(D>0?I.gestures.detach():I.gestures.attach())});
I.addOnDisposeCallback(y)};
XXY.prototype.onFullscreenChanged=function(I){this.gestures&&this.gestures.update(I)};var QHY=["PLAYLIST"],frT=function(I){_.B5.call(this);var y=this;this.JSC$21438_watchApi=I;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(I.subscribeToActiveChanged(function(D){y.onActiveChanged(D)}));
YQa(this)};
_.E(frT,_.B5);var nty=function(I){I.pageDisposalDataTypes=Object.values(jig).filter(function(y){return!QHY.includes(y)})},YQa=function(I){if(_.l("swatcheroo_enable_ghost_cards")||_.l("web_watch_clear_data_on_page_dispose"))nty(I),I.JSC$21438_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.w2.cancelJob(I.clearDataJobId);
I.clearDataJobId=0}),I.runPageDisposeJob=function(){var y=_.nR().resolve(_.ja).getDestinationPageType()==="watch";
I.clearDataJobId=_.k1(_.w2,I.runClearDataJob,y?0:_.kf("web_watch_delay_page_dispose_ms",1E4))},I.runClearDataJob=function(){pXG(I)},I.runOnYtNavigateAwayFinish=function(){I.clearDataJobId&&(_.w2.cancelJob(I.clearDataJobId),I.clearDataJobId=0,pXG(I))},document.addEventListener("yt-navigate-finish",I.runOnYtNavigateAwayFinish),I.JSC$21438_watchApi.addPageDisposeJob(I.runPageDisposeJob),I.addOnDisposeCallback(function(){I.JSC$21438_watchApi.removePageDisposeJob(I.runPageDisposeJob);
I.JSC$21438_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",I.runOnYtNavigateAwayFinish)})},pXG=function(I){I.pageDisposalDataTypes.forEach(function(y){I.JSC$21438_watchApi.provideRenderingData(y,void 0)});
I.clearDataJobId=0};
frT.prototype.onActiveChanged=function(I){I&&((I=document.querySelector("#watch-page-skeleton"))&&_.dM(I),mbZ(this),document.body.removeAttribute("no-y-overflow"),_.KR("IS_SHELL_LOAD")&&bEQ())};
var mbZ=function(I){_.S(function(y){if(y.nextAddress==1)return y.yield(I.JSC$21438_watchApi.playerApi,2);_.Lx();_.Cj(y)})};var MsT=_.l("kevlar_watch_while_counterfactual")?0:.25,arR=function(I){_.B5.call(this);this.JSC$21441_watchApi=I;this.JSC$21441_watchWhileEnabled=_.l("kevlar_watch_while_v2");this.JSC$21441_watchPipEnabled=_.l("web_watch_pip");zUY(this);kwb(this);db1(this)};
_.E(arR,_.B5);var zUY=function(I){I.JSC$21441_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){cQY(I)});
I.addOnDisposeCallback(function(){I.JSC$21441_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},kwb=function(I){var y,D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21441_watchApi.playerApi,2);y=F.yieldResult;D=function(R){R&&I.JSC$21441_watchPipEnabled?W8G(I):cQY(I)};
y.addEventListener("onCollapseMiniplayer",D);I.addOnDisposeCallback(function(){y.removeEventListener("onCollapseMiniplayer",D)});
_.Cj(F)})},db1=function(I){var y=I.JSC$21441_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&y&&I.JSC$21441_watchWhileEnabled&&(I.playerIntersectionObserver=new IntersectionObserver(function(D){I.handleIntersect(D)},{threshold:[MsT]}),I.playerIntersectionObserver.observe(y),I.addOnDisposeCallback(function(){var D;
(D=I.playerIntersectionObserver)==null||D.disconnect()}))},cQY=function(I){var y,D,F;
_.S(function(R){if(R.nextAddress==1)return y=_.nR().resolve(_.ja),D=y.data,F=_.yy_(D.response,D.playerResponse),_.bW().miniplayerButtonActivation=!0,_.nR().resolve(_.OI).collapse(),R.yield(_.bW().navigationFinishPromise,2);if(R.nextAddress!=3)return _.bW().currentEndpoint=F.watchEndpoint||null,R.yield(_.nR().resolve(_.OI).activate(I.JSC$21441_watchApi.getElement("PLAYER"),F,D),3);_.bW().userActivation=!0;_.Cj(R)})},W8G=function(I){var y,D,F;
_.S(function(R){if(R.nextAddress==1)return _.nR().resolve(_.OI).pictureInPictureSupported()?R.jumpTo(2):R.yield(I.JSC$21441_watchApi.playerApi,3);if(R.nextAddress!=2)return y=R.yieldResult,(D=y)==null||D.togglePictureInPicture(),R.return();F=_.nR().resolve(_.ja);_.bW().watchPipActivation=!0;_.N21(_.nR().resolve(_.OI),F.data);_.Cj(R)})};
arR.prototype.handleIntersect=function(I){CfQ(this,I[I.length-1])};
var CfQ=function(I,y){I.watchWhileJobId&&_.w2.cancelJob(I.watchWhileJobId);I.watchWhileJobId=_.w2.addLowPriorityJob(function(){var D,F;return _.S(function(R){if(R.nextAddress==1)return I.watchWhileJobId=void 0,D=_.nR().resolve(_.OI),y.intersectionRatio>MsT?D.isMiniplayerActive()?R.yield(D.deactivate(),0):R.jumpTo(0):(F=!D.isMiniplayerActive())?R.yield(B3R(I),5):R.jumpTo(4);R.nextAddress!=4&&(F=R.yieldResult);if(!F)return R.jumpTo(0);_.bW().watchWhileActivation=!0;return R.yield(isC(I),0)})},100)},
B3R=function(I){return _.S(function(y){return y.nextAddress==1?_.l("kevlar_watch_while_paused")?y.return(!0):y.yield(I.isPlayerPlaying(),2):y.return(y.yieldResult)})};
arR.prototype.isPlayerPlaying=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21441_watchApi.playerApi,2);y=D.yieldResult;return D.return(y.getPlayerStateObject().isPlaying)})};
var isC=function(I){var y,D;return _.S(function(F){y=_.nR().resolve(_.ja).data;D=_.yy_(y.response,y.playerResponse);_.bW().currentEndpoint=D.watchEndpoint||null;return F.yield(_.nR().resolve(_.OI).activate(I.JSC$21441_watchApi.getElement("PLAYER"),D,y),0)})};var bsa=function(I){_.B5.call(this);this.JSC$21445_watchApi=I;AQe(this);$bC(this)};
_.E(bsa,_.B5);var $bC=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21445_watchApi.playerApi,2);y=F.yieldResult;D=function(R){var O;R.sessionData&&R.sessionData.itct&&(O=R.sessionData.itct);var w=R.watchEndpoint;if(w&&R.sessionData&&R.sessionData.autonav)w=_.x9B(w,O);else{var v;w=_.xK(R.videoId,(v=R.listId)!=null?v:void 0,O)}O={endpoint:w};R.sessionData&&(O.tempData=R.sessionData);I.JSC$21445_watchApi.dispatchEvent("yt-navigate",O)};
y.addEventListener("onPlayVideo",D);I.addOnDisposeCallback(function(){y.removeEventListener("onPlayVideo",D)});
_.Cj(F)})},AQe=function(I){var y=function(D){I.onYtNavigate(D)};
I.JSC$21445_watchApi.getRoot().addEventListener("yt-navigate",y);I.addOnDisposeCallback(function(){I.JSC$21445_watchApi.getRoot().removeEventListener("yt-navigate",y)})};
bsa.prototype.onYtNavigate=function(I){var y=this,D,F,R,O,w,v,P,K,r;return _.S(function(N){if(N.nextAddress==1){if(!((D=I.detail)==null?0:(F=D.endpoint)==null?0:F.watchEndpoint))return N.return();R=I.detail.endpoint.watchEndpoint;O=y.JSC$21445_watchApi.getWatchNextResponse();v=_.u((w=O)==null?void 0:w.currentVideoEndpoint,_.t9);if(!v)return N.return();if(R.videoId!==v.videoId||R.playlistId&&R.playlistId!==v.playlistId||typeof R.startTimeSeconds!=="number")return N.jumpTo(0);I.stopPropagation();(P=
_.l("kevlar_watch_while_v2")&&!_.l("kevlar_watch_while_counterfactual"))&&_.nR().resolve(_.OI).isMiniplayerActive()||y.JSC$21445_watchApi.scrollWatchTo(0,!0);return N.yield(y.JSC$21445_watchApi.playerApi,3)}K=N.yieldResult;r=R.startTimeSeconds;K.seekTo(r,void 0,void 0,void 0,84);K.wakeUpControls();r<K.getDuration()&&K.playVideo();_.Cj(N)})};var eUg=function(I){_.B5.call(this);var y=this;this.JSC$21448_watchApi=I;var D=this.JSC$21448_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){HsY(y)});
this.addOnDisposeCallback(function(){y.JSC$21448_watchApi.unsubscribeByKey(D)});
HsY(this);_.l("enable_ai_companion")&&(I=this.JSC$21448_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&cdR(I,"WATCH")};
_.E(eUg,_.B5);var HsY=function(I){var y=I.JSC$21448_watchApi.getWatchNextResponse();if(y){var D,F=[].concat(_.Td((D=y==null?void 0:y.engagementPanels)!=null?D:[]));_.l("web_watch_comments_visible_by_default")&&(D=F.find(function(R){var O;return((O=R.engagementPanelSectionListRenderer)==null?void 0:O.targetId)==="engagement-panel-comments-section"}),D==null?0:D.engagementPanelSectionListRenderer)&&(D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
F.unshift.apply(F,_.Td(T3Y(y)));I.JSC$21448_watchApi.provideRenderingData("ENGAGEMENT_PANELS",F)}},VsT=function(I){var y,D,F,R=(y=I.engagementPanels)==null?void 0:(D=y.find(function(x){var q;
return((q=x.engagementPanelSectionListRenderer)==null?void 0:q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(F=D.engagementPanelSectionListRenderer.content)==null?void 0:F.structuredDescriptionContentRenderer,O;
if(_.u(R==null?void 0:(O=R.items)==null?void 0:O.find(function(x){return!!_.u(x,JbR)}),JbR))return!0;
var w,v,P,K;if(I=(((w=I.contents)==null?void 0:(v=w.twoColumnWatchNextResults)==null?void 0:(P=v.results)==null?void 0:(K=P.results)==null?void 0:K.contents)||[]).find(function(x){return x.videoPrimaryInfoRenderer})){var r,N,h;
return(((r=I.videoPrimaryInfoRenderer)==null?void 0:(N=r.videoActions)==null?void 0:(h=N.menuRenderer)==null?void 0:h.flexibleItems)||[]).some(function(x){x=_.u(x,_.v3M);if(!x)return!1;var q,X;x=(q=x.topLevelButton)==null?void 0:(X=q.buttonViewModel)==null?void 0:X.onTap;if(!x)return!1;q=_.yz(x);if(!q)return!1;if(sHY(q))return!0;if(_.l("enable_creator_chatbot")){q=_.u(q,_.Q_);if(!q)return!1;var f;return(f=q.commands)==null?void 0:f.some(function(m){return sHY(m)})}return!1})}return!1},sHY=function(I){var y;
return((y=_.u(I,_.Z3))==null?void 0:y.panelIdentifier)==="PAyouchat"},T3Y=function(I){var y=[];
if(!_.l("web_watch_inject_placeholder_fantasy_panel_killswitch")){var D,F,R,O=(D=I.engagementPanels)==null?void 0:(F=D.find(function(v){var P;return((P=v.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=F.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,w;
_.u(O==null?void 0:(w=O.items)==null?void 0:w.find(function(v){return!!_.u(v,s_y)}),s_y)&&(D=_.Ivt("PAsports_fantasy"),D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(D))}VsT(I)&&(I=_.Ivt("PAyouchat"),I.engagementPanelSectionListRenderer.targetId="PAyouchat",I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y.push(I));
return y};var gta=function(I){_.B5.call(this);this.JSC$21451_watchApi=I;ZsG(this)};
_.E(gta,_.B5);var ZsG=function(I){I.JSC$21451_watchApi.registerActionHandler("yt-loop-command",function(y){I2C(I,y)});
I.JSC$21451_watchApi.registerActionHandler("yt-repeat-chapter-command",function(y){y3G(I,y)});
I.addOnDisposeCallback(function(){I.JSC$21451_watchApi.unregisterActionHandler("yt-loop-command");I.JSC$21451_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},I2C=function(I,y){var D;
_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21451_watchApi.playerApi,2);D=F.yieldResult;_.u(y,$cR).loop?(D.setLoopRange({startTimeMs:Number(_.u(y,$cR).startTimeMs),endTimeMs:Number(_.u(y,$cR).endTimeMs),postId:_.u(y,$cR).postId,type:"clips"}),D.playVideo()):D.setLoopRange(null);_.Cj(F)})},y3G=function(I,y){var D,F;
_.S(function(R){if(R.nextAddress==1)return R.yield(I.JSC$21451_watchApi.playerApi,2);D=R.yieldResult;F=_.u(y,XJe).repeat;F==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(D.setLoopRange({startTimeMs:Number(_.u(y,XJe).startTimeMs),endTimeMs:Number(_.u(y,XJe).endTimeMs),type:"repeatChapter"}),D.playVideo()):F==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&D.setLoopRange(null);_.Cj(R)})};var FyY=function(I){_.B5.call(this);this.JSC$21456_watchApi=I;Dpo(this)};
_.E(FyY,_.B5);var Dpo=function(I){I.JSC$21456_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(y){Rzb(I,y)});
I.addOnDisposeCallback(function(){I.JSC$21456_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Rzb=function(I,y){var D,F,R,O,w,v,P,K,r,N,h;
_.S(function(x){if(x.nextAddress==1)return x.yield(I.JSC$21456_watchApi.playerApi,2);D=x.yieldResult;if(O=(R=(F=_.u(y,QYZ))==null?void 0:F.highlightedMenuItemKey)!=null?R:"")(v=(w=D).highlightSettingsMenuItem)==null||v.call(w,O);if(r=(K=(P=_.u(y,QYZ))==null?void 0:P.openMenuItemKey)!=null?K:"")(h=(N=D).openSettingsMenuItem)==null||h.call(N,r);_.Cj(x)})};var OUY=_.fC("/youtube/app/watch/player_state","playerStateEntity");var br=function(I){_.B5.call(this);this.JSC$21459_watchApi=I;Lye(this)};
_.E(br,_.B5);var J3e=function(I){switch(I){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"}},Lye=function(I){var y,D,F,R,O;
_.S(function(w){if(w.nextAddress==1)return w.yield(I.JSC$21459_watchApi.playerApi,2);y=w.yieldResult;if(I.isDisposed())return w.return();D=function(v){I.onPlayerStateChange(v)};
F=function(v){I.onAdStateChange(v)};
R=function(){I.onAdSkip()};
O=function(v){I.onVideoDataChange(v)};
y.addEventListener("onStateChange",D);y.addEventListener("onAdStateChange",F);y.addEventListener("onAdSkip",R);y.addEventListener("onVideoDataChange",O);I.addOnDisposeCallback(function(){y.removeEventListener("onStateChange",D);y.removeEventListener("onAdStateChange",F);y.removeEventListener("onAdSkip",R);y.removeEventListener("onVideoDataChange",O)});
_.Cj(w)})},wOC=function(I){var y=_.Uv(),D=y.dispatch;
a:switch(I.adsState){case -1:case 0:var F="ADS_STATE_NONE";break a;case 1:case 2:case 3:F="ADS_STATE_PLAYING";break a;default:F="ADS_STATE_UNKNOWN"}D.call(y,_.WS("playerStateEntity",OUY,{key:OUY,playerState:J3e(I.playerState),adsState:F,videoId:I.videoId}))};
br.prototype.onPlayerStateChange=function(I){var y=this,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(y.JSC$21459_watchApi.playerApi,2);D=F.yieldResult;if(y.isDisposed())return F.return();y.playerState=I;y.videoId=D.getVideoData().video_id;wOC(y);_.Cj(F)})};
br.prototype.onAdStateChange=function(I){this.adsState=I;wOC(this)};
br.prototype.onAdSkip=function(){this.adsState=0;wOC(this)};
br.prototype.onVideoDataChange=function(I){I.type==="newdata"&&(this.adsState=-1,wOC(this))};var SzZ=function(I){_.B5.call(this);var y=this;this.JSC$21463_watchApi=I;this.enableExternalPlaylistPanelInPlayer=_.l("delhi_web_player_use_external_playlist_panel");_.nR().resolve(_.rE).setPlayer(this.JSC$21463_watchApi.getElement("PLAYER"));I=this.JSC$21463_watchApi.subscribeToActiveChanged(function(D){y.onActiveChanged(D)});
this.addOnDisposeCallback(I);vUQ(this)};
_.E(SzZ,_.B5);var vUQ=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return I.enableExternalPlaylistPanelInPlayer?F.yield(I.JSC$21463_watchApi.playerApi,2):F.return();y=F.yieldResult;D=function(){if(I.playlistPanelElement)I.playlistPanelElement.onToggleExpanded()};
y.addEventListener("onToggleExternalPlaylistPanel",D);I.addOnDisposeCallback(function(){y.removeEventListener("onToggleExternalPlaylistPanel",D)});
_.Cj(F)})};
SzZ.prototype.onActiveChanged=function(I){var y=this,D=_.nR().resolve(_.rE),F=function(){t_Y(y)};
I?(this.playlistPanelElement=this.JSC$21463_watchApi.getElement("PLAYLIST_PANEL"))?(D.setPlaylistComponent(this.playlistPanelElement),D.addEventListener("yt-playlist-data-updated",F),this.addOnDisposeCallback(function(){D.removeEventListener("yt-playlist-data-updated",F)}),t_Y(this)):_.o8(Error("Nl")):(D.removeEventListener("yt-playlist-data-updated",F),D.cancelVideoSkip())};
var t_Y=function(I){var y=_.nR().resolve(_.rE);I.JSC$21463_watchApi.provideRenderingData("PLAYLIST",y.getPlaylistData())};var HO=function(I){_.B5.call(this);var y=this;this.JSC$21466_watchApi=I;this.onPageScroll=function(){y.scrollThrottle.fire();y.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.n4(this.onThrottledScroll,200,this);_.pW(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.n4(this.onMastheadThrottledScroll,50,this);_.pW(this,this.mastheadScrollThrottle);this.animation=new _.xH(function(D){y.JSC$21466_watchApi.getRoot().setScrollTop(D)});
I=_.TV(_.oq(),_.Vz,function(){y.onFullscreenChanged()});
this.addOnDisposeCallback(I);Pre(this);KyG(this);this.onThrottledScroll()};
_.E(HO,_.B5);
HO.prototype.onFullscreenChanged=function(){var I=this,y=this.JSC$21466_watchApi.getRoot();!this.pageScrollElement&&y.pageScrollElement?(this.pageScrollElement=y.pageScrollElement,y.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){I.pageScrollElement&&I.pageScrollElement.removeEventListener("scroll",I.onPageScroll)})):this.pageScrollElement&&!y.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Pre=function(I){window.addEventListener("scroll",I.onPageScroll);I.addOnDisposeCallback(function(){window.removeEventListener("scroll",I.onPageScroll)})},KyG=function(I){I.JSC$21466_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(y){a:{var D;
if(D=I.JSC$21466_watchApi.getRoot().contains(y)&&!I.animation.isAnimating()){D=y.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var F,R,O=(y==null?void 0:(F=y.parentElement)==null?void 0:(R=F.parentElement)==null?void 0:R.id)==="fixed-secondary";D=!(D&&O)}if(D){if(_.l("kevlar_watch_scroll_manager_absolute_offset_killswitch"))F=y.offsetTop;else for(F=0,R=y;R!==null;)F+=R.offsetTop,F-=R.scrollTop,R=R.offsetParent;R=F;F=R-24;y=R+y.offsetHeight+24;R=I.JSC$21466_watchApi.getRoot().getPageScrollingElement();
D=I.JSC$21466_watchApi.getRoot().getScrollTop();O=D+R.clientHeight-56;if(F<D+56)y=F-56;else if(y>O)y-=R.clientHeight;else break a;I.scrollWatchTo(Math.max(0,y),!0)}}});
I.addOnDisposeCallback(function(){I.JSC$21466_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
HO.prototype.onThrottledScroll=function(){var I=_.oq(),y=I.dispatch,D=this.JSC$21466_watchApi.getRoot().getScrollTop();y.call(I,_.Ec({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:D}}))};
HO.prototype.onMastheadThrottledScroll=function(){this.JSC$21466_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21466_watchApi.getRoot().getScrollTop())};
HO.prototype.scrollWatchTo=function(I,y){(y===void 0?0:y)?this.animation.start(this.JSC$21466_watchApi.getRoot().getScrollTop(),Math.max(0,I),500):this.JSC$21466_watchApi.getRoot().setScrollTop(I)};var jMY=function(I){_.B5.call(this);var y=this;this.JSC$21469_watchApi=I;var D=this.JSC$21469_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){UpC(y)}),F=this.JSC$21469_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r3C(y)});
this.addOnDisposeCallback(function(){y.JSC$21469_watchApi.unsubscribeByKey(D);y.JSC$21469_watchApi.unsubscribeByKey(F)});
UpC(this);r3C(this)};
_.E(jMY,_.B5);
var UpC=function(I){var y,D,F,R=(F=(y=I.JSC$21469_watchApi.getPlayerResponse())==null?void 0:(D=y.videoDetails)==null?void 0:D.title)!=null?F:"";I.JSC$21469_watchApi.dispatchEvent("yt-update-title",R)},r3C=function(I){var y,D,F,R,O,w,v,P=(v=((w=(y=I.JSC$21469_watchApi.getWatchNextResponse())==null?void 0:(D=y.contents)==null?void 0:(F=D.twoColumnWatchNextResults)==null?void 0:(R=F.results)==null?void 0:(O=R.results)==null?void 0:O.contents)!=null?w:[]).find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?
void 0:v.videoPrimaryInfoRenderer;
(y=_.rY(P==null?void 0:P.title))&&I.JSC$21469_watchApi.dispatchEvent("yt-update-title",y)};var N01=function(I){_.B5.call(this);this.JSC$21472_watchApi=I;oUa(this)};
_.E(N01,_.B5);var oUa=function(I){var y,D;_.S(function(F){if(F.nextAddress==1)return F.yield(I.JSC$21472_watchApi.playerApi,2);y=F.yieldResult;D=function(){I.onYpcContentRequest()};
y.addEventListener("onYpcContentRequest",D);I.addOnDisposeCallback(function(){y.removeEventListener("onYpcContentRequest",D)});
_.Cj(F)})};
N01.prototype.onYpcContentRequest=function(){var I,y,D,F,R,O=(I=this.JSC$21472_watchApi.getWatchNextResponse())==null?void 0:(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.secondaryResults)==null?void 0:(R=F.secondaryResults)==null?void 0:R.offerModule,w,v,P,K;I=(K=(P=(v=(w=O==null?void 0:O.episodeOfferModuleRenderer)!=null?w:O==null?void 0:O.movieOfferModuleRenderer)!=null?v:O==null?void 0:O.unlimitedOfferModuleRenderer)!=null?P:O==null?void 0:O.liveOfferModuleRenderer)!=
null?K:O==null?void 0:O.tvfilmOfferModuleRenderer;var r,N,h;O=(h=O==null?void 0:(r=O.tvfilmOfferModuleRenderer)==null?void 0:(N=r.actionButtons)==null?void 0:N.length)!=null?h:0;N=Math.max(O-1,0);var x,q,X;r=(X=I==null?void 0:(x=I.offerButton)==null?void 0:x.buttonRenderer)!=null?X:I==null?void 0:(q=I.actionButtons)==null?void 0:q[N].buttonRenderer;var f,m;(x=(m=(f=r==null?void 0:r.navigationEndpoint)!=null?f:r==null?void 0:r.serviceEndpoint)!=null?m:r==null?void 0:r.command)&&_.M4.instance.resolveCommand(x)};var hza=function(I){kN.call(this);var y=this;this.rootElement=I;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){y.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.E(hza,kN);_.L=hza.prototype;_.L.getRoot=function(){return this.rootElement};
_.L.getElement=function(I){return this.rootElement.getElement(I)};
_.L.setPlayerResponse=function(I){this.playerResponse=I;this.publish("PLAYER_RESPONSE_UPDATED",I)};
_.L.getPlayerResponse=function(){return this.playerResponse};
_.L.setWatchNextResponse=function(I){this.watchNextResponse===I?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=I,this.publish("WATCH_NEXT_RESPONSE_UPDATED",I))};
_.L.getWatchNextResponse=function(){return this.watchNextResponse};
_.L.registerActionHandler=function(I,y){var D=this;if(_.l("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.qM(_.uK.getInstance(),(F[I]=y,F),this.getRoot())}else this.actionHandlers.has(I)||(this.actionHandlers.set(I,[]),F={},_.qM(_.uK.getInstance(),(F[I]=function(){var R=_.go.apply(0,arguments);return(D.actionHandlers.get(I)||[]).map(function(O){return O.apply(null,_.Td(R))})},F),this.getRoot())),this.actionHandlers.get(I).push(y)};
_.L.unregisterActionHandler=function(I){if(_.l("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.EN(_.uK.getInstance(),(y[I]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(I))?(y.pop(),y.length===0&&(y={},_.EN(_.uK.getInstance(),(y[I]=!0,y),this.getRoot()),this.actionHandlers.delete(I))):_.tq(new _.g6("Attempted to unregister an action handler which is not registered.",I))};
_.L.addPageDisposeJob=function(I){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.fCq(this.rootElement.pageDisposeJobs,I)};
_.L.removePageDisposeJob=function(I){this.rootElement.pageDisposeJobs&&_.WH(this.rootElement.pageDisposeJobs,I)};
_.L.dispatchEvent=function(I,y){_.lj(this.rootElement,I,y)};
_.L.provideRenderingData=function(I,y){this.rootElement.provideRenderingData(I,y)};
_.L.scrollWatchTo=function(I,y){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(I,y)};
_.L.focusOnPlayer=function(){var I=this.getElement("PLAYER");_.YC(I,function(){if(I&&I.firstElementChild){var y=I.querySelector(".html5-video-player");y&&(_.G$(_.nR().resolve(_.cU)),y.focus())}else _.tq(Error("Ol"))})};
var xpb=function(I){var y=!!I.rootElement.theater,D=!!I.rootElement.fullscreen,F;(F=I.watchCinematicManager)==null||tsZ(F,D,y)};
_.L=hza.prototype;_.L.subscribeToActiveChanged=function(I,y){y=y===void 0?!0:y;var D=_.TV(_.oq(),q$y,function(F){I(F)});
y&&I(q$y(_.oq().getState()));return D};
_.L.isActive=function(){return q$y(_.oq().getState())};
_.L.onAttached=function(){var I=_.l("external_fullscreen");_.l("use_unified_flag_accessor")&&(I=_.nR().resolve(_.sU1).retriever.getFlag(_.T1G));(I||_.KR("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.L.initPersistentModules=function(){if(_.l("kevlar_watch_flexy_theater_manager")){var I=new U$g(this);_.pW(this,I)}I=new frT(this);_.pW(this,I);I=new zk(this);_.pW(this,I);I=new ung(this);_.pW(this,I);I=new br(this);_.pW(this,I);I=new kU(this);_.pW(this,I);_.l("kevlar_watch_flexy_playlist_manager")&&(I=new SzZ(this),_.pW(this,I))};
_.L.initOrDisposeActiveModules=function(I){I?(this.watchScrollManager=new HO(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new bsa(this)),this.activeModules.push(new KLC(this)),this.activeModules.push(new jMY(this)),this.activeModules.push(new arR(this)),_.l("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new NAy(this)),this.activeModules.push(new gta(this)),_.l("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new N01(this)),_.l("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new fK8(this)),_.uI("kevlar_watch_cinematics")&&(this.watchCinematicManager=new Ose(this),this.activeModules.push(this.watchCinematicManager),xpb(this)),_.l("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new FyY(this)),_.l("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new XXY(this)),I=_.l("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.l("kevlar_watch_flexy_comments_manager")&&!I&&this.activeModules.push(new jHe(this)),
_.l("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new mqy(this)),this.activeModules.push(new lKG(this)),this.activeModules.push(new eUg(this)),_.l("web_enable_timely_actions")&&this.activeModules.push(new GuC(this)),_.l("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new eag(this)),_.l("web_watch_enable_multiview_manager")&&this.activeModules.push(new cjR(this)),_.l("web_fullscreen_components")&&this.activeModules.push(new qne(this)),_.l("web_player_rtr_ctrls")&&
this.activeModules.push(new siG(this))):(_.oD(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.L.disposeInternal=function(){kN.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mD.Object.defineProperties(hza.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.NK(_.d(function(I){var y=_.DF("script");_.wZ(function(){var D;if(D=JSON)D=gwg(I.data()),D=_.tW(JSON.stringify(D).replace(/</g,"\\u003C"));var F=I.data(),R=_.rY(F.title).trim().length===0,O=!F.publishDate||F.publishDate.trim().length===0,w,v,P,K,r=!((w=F.thumbnail)==null?0:(v=w.thumbnails)==null?0:v.length)||!((P=F.thumbnail)==null?0:P.thumbnails[0].url)||((K=F.thumbnail)==null?void 0:K.thumbnails[0].url.trim().length)===0;y.value&&D&&!(R||O||r)&&_.Kj(y.value,D)},"Vy9K7b");
return _.t("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.t("script",{el:y,type:"application/ld+json"}))},"lk"),"player-microformat-renderer",{props:{data:_.rV}});var l2a={},u7a=["learning-journey-engagement-panel","PAlearning_chat"];
l2a.YtdLearningJourneyWatchBehavior=[_.V.YtRendererBehavior,_.NG.YtPlayerListenerBehavior,_.XN.YtRendererstamperBehavior,_.cb.YtActionHandlerBehavior,oM.YtPageBehavior,_.am.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 _.KR("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.l("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 _.KR("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 _.l("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.l("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 _.kf("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.kf("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.uI("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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 _.l("web_watch_rounded_player_large")||_.l("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 _.l("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.l("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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 _.l("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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:xo(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:xo(["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 I=this;this.watchController=void 0;this.pageDisposeJobs=[function(){I.showMetadataPlaceholder_()},
function(){_.l("web_watch_dont_clear_comments")||I.clearComments_()},
function(){I.clearPlayerAds_()},
function(){I.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.l("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.l("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new coC(function(){return _.oP(I)},
this.hostElement);
this.pageDisposeJobs.push(function(){I.youThereManager_.reset()});
_.l("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){I.resetFullerscreenEduButtonForNewPlayback_()}));
_.l("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.VG;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;_.l("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.l("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));_.l("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.MX(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(I){I&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:I}),I.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(I){_.l("kevlar_watch_flexy_theater_manager")&&(this.theater=I,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.l("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(I){!_.l("kevlar_watch_while_v2")&&!_.l("web_watch_pip")||I||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(I){this.active!==void 0&&(this.fullscreen=I,_.l("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(I){this.active!==void 0&&(_.lj(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.l("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(I>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(I){this.initCsi_();this.updatePageData_(I)},
updatePageData_:function(I){var y=this;if(I)if(this.data===I){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=I;this.playlist&&_.ek({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.V_("nw");this.loading=!1;_.y9(_.w2,function(){y.initDclkstatus_();var F,R=((F=y.player)==null?void 0:F.getVideoData().cpn)||"";gCe(function(O,w){yRQ(O,w,R)})})},
onPageLoadWithSameData_:function(){_.l("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 I=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!I);this.set("loadingData.playlistLoading",I&&I!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),I=this.watchNextSkeletonEl_.firstElementChild;I;)I.classList.remove("hidden"),I=I.nextElementSibling;var y,D,F;I=(y=this.loadingData)==null?void 0:(D=y.endpoint)==null?void 0:(F=D.watchEndpoint)==null?void 0:F.videoId;var R;I&&(R="https://i.ytimg.com/vi/"+I+"/frame0.jpg");_.XB(this.hostElement).querySelector("#player").style.backgroundImage=R?"url("+R+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var I=_.XB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&I&&(I.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var y,D;(D=(y=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(y);var F,R;(R=(F=this.watchMetadata).resize)==null||R.call(F)}_.XB(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(I){var y=_.XB(this.hostElement).querySelector(I);y?_.h9(y,!1):_.tq(new _.g6("Overscroll monitor not found for component: ",I))},
removeSplitScrollMouseTrap:function(I){var y=_.XB(this.hostElement).querySelector(I);y?_.xI(y):_.tq(new _.g6("Disposal component for  overscroll monitoring not found: ",I))},
onLoadingChanged_:function(I){I?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(I){var y=this;I?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.w2.addLowPriorityJob(function(){y.onWindowResized_(_.cF(!0))})},
updateTheaterModeState_:function(I){if(!_.l("kevlar_watch_flexy_theater_manager")){I=I||this.fullWindowMode_;if(this.theater!==void 0||I)this.theater=I;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();I&&drZ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var I=this.theater;_.l("external_fullscreen")&&this.fullscreen&&(I=!0);I=I?_.XB(this.hostElement).querySelector("#player-full-bleed-container"):_.XB(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),D=_.l("kevlar_watch_while_v2")||_.l("web_watch_pip");y.parentElement!==I&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.oP(this).appendTo(I,y),I.appendChild(_.XB(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var I=this;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nR().resolve(_.OI).deactivate(),2);I.updatePlayerLocation();_.Cj(y)})},
updateCinematicsLocation:function(){var I=this.getElement("CINEMATICS");if(I){var y=this.getCinematicsLocationContainer();I.parentElement!==y&&y.appendChild(I);var D;(D=this.watchController)==null||xpb(D)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.XB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.XB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(I,y){var D=document.documentElement.hasAttribute("dark"),F=!D&&this.cinematicLightTheme;return I&&D||y&&D||(y||I)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data);_.l("kevlar_watch_flexy_comments_manager")||this.initComments_();_.l("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.nR().resolve(_.rE).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.l("web_watch_start_chat_in_theater_mode")){var y,
D,F;if((y=this.data)==null?0:(D=y.contents)==null?0:(F=D.twoColumnWatchNextResults)==null?0:F.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var R,O;((R=this.data)==null?0:(O=R.contents)==null?0:O.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(I){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);I&&I.playabilityStatus&&(y=this.isVideoPlayable_(I.playabilityStatus,this.getPlayerOverlays_(this.data)),I=this.isLiveStreamOffline_(I.playabilityStatus),y&&!I||_.YC(this,function(){_.V_("pbu")}));
this.setPlayerAds_();_.qr(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(I){_.oq().dispatch(_.Ec({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));I?this.activate_():this.deactivate_()},
attached:function(){var I=this;this.watchController=new hza(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.l("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.oP(this);_.l("kevlar_disable_prepare_player")||y.preparePlayer();_.l("kevlar_watch_flexy_playlist_manager")||_.nR().resolve(_.rE).setPlayer(y);this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":ZA()+
"px"};!_.kf("kv_pl_mx_sz_ks")&&_.kf("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=Tyb+"px");_.kf("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=VEy+"px");this.safeUpdateStyles(y);_.l("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new fSQ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return I.onPlayerTouchPanDown_()}}));
_.l("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.XB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var I=ZA(),y=g9+I,D=y;this.fixedPanels&&(y+=HQb);var F=657+I;I=1327+I;_.XB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.XB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(F+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(I+"px)");_.XB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(I+"px)");_.XB(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+D+"px)"},
calculateCurrentPlayerSize_:function(){var I=_.XB(this.hostElement).querySelector("#miniplayer-bar").firstChild;return I&&I.active||this.theater||_.l("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.ad(NaN,NaN):ZQa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return ZQa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.rM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var I=this;this.onWindowResized_(_.cF());_.l("browse_skeleton_removal_on_watch_killswitch")||_.KR("IS_SHELL_LOAD")&&bEQ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.oP(this);y.addEventListener("yt-player-updated",_.MX(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(D){I.playerApiReady_(D)});
_.l("kevlar_watch_flexy_playlist_manager")||(y=_.nR().resolve(_.rE),_.l("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.MX(this,this.onYtNavigate_)),y.setPlaylistComponent(_.XB(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.MX(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.w2.addLowPriorityJob(function(){_.lj(I.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oP(this).removeEventListener("yt-player-updated",_.MX(this,this.onPlayerUpdated_));if(!_.l("kevlar_watch_flexy_playlist_manager")){var I=_.nR().resolve(_.rE);_.l("kevlar_watch_observe_playlist_navigations_killswitch")&&I.removeEventListener("yt-navigate",_.MX(this,this.onYtNavigate_));I.cancelVideoSkip();I.removeEventListener("yt-playlist-data-updated",_.MX(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.l("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.lj(this.hostElement,"yt-autonav-pause-player",!1);I=_.o1();_.l("kevlar_exit_fullscreen_leaving_watch")&&I&&_.Nr(I)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(I){this.player&&this.player.updateVideoData({rvs:I.rvs})},
getPageContents:function(I){return I&&I.contents&&I.contents.twoColumnWatchNextResults&&I.contents.twoColumnWatchNextResults.results&&I.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(I){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",I)},
onRetrieveLocation_:function(I,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);I.stopPropagation()},
onSubscriptionChanged_:function(I,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){ktg("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.XB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.XB(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(I){this.player=I;this.setPlayerState(I.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.l("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.l("kevlar_unified_player")||_.l("kevlar_player_new_bootstrap_adoption"))&&_.Lx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(I,y){y=y===void 0?!0:y;_.o1()&&_.l("external_fullscreen")&&_.Nr(document.documentElement);this.theaterRequested_=I;y&&_.TP("wide",I?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.l("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.uj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.lj(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(I){_.Pu(I,typeof this.player),this.player&&_.Pu(I,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var I;((I=this.player)==null?0:I.isFullscreen())?this.player.toggleFullscreen():_.uj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(I,y){return this.loading?y:!!Object.keys(I).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(I){if(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next())y=y.value,y.youThereRenderer&&Bfy(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(I){return I||{}},
userEngagementConfigDataChanged_:function(I){if(I)if(I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.m$()<I.lowEngagementThresholdMs||bXa(y,!0)}else I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.uj(this.hostElement,"yt-autonav-pause-user-engagement",[I])},
isPlayerUnavailable_:function(I,y,D){return!!I&&!this.isVideoPlayable_(I,D)&&!y},
getPlayerOverlays_:function(I){return(I==null?void 0:I.playerOverlays)||null},
isVideoPlayable_:function(I,y){if(!I)return!1;var D=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",F=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",I)||this.get("errorScreen.ypcTrailerRenderer",I);I=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",I);var R;y=y==null?void 0:(R=y.playerOverlayRenderer)==null?void 0:R.gatedActionsOverlayRenderer;return!!D||!!F||!!I||!!y},
hasWatchNextResponseErrorRenderer:function(I){var y=this.getPageContents(I),D,F,R,O,w;return!(I==null?0:(D=I.contents)==null?0:(F=D.twoColumnWatchNextResults)==null?0:F.secondaryResults)&&!!((R=y[0])==null?0:(O=R.itemSectionRenderer)==null?0:(w=O.contents[0])==null?0:w.backgroundPromoRenderer)},
isLiveStreamOffline_:function(I){return I?I.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(I,y,D){var F=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),R=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];R=_.l("web_no_skip_video_on_verification_checks")?(I==null?void 0:I.status)&&R.includes(I.status):I&&I.status==="AGE_CHECK_REQUIRED";var O=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",I);O==void 0&&(O=!0);!D||this.isVideoPlayable_(I,this.getPlayerOverlays_(y))||
F||R||!O||_.nR().resolve(_.rE).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();POa()},
onPlayerFeedbackStartRequest_:function(I){_.uj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:I}])},
onPlayerFeedbackArticleRequest_:function(I){_.uj(this.hostElement,"yt-help-dialog-requested",[I])},
onPlayerYpcContentRequest_:function(){var I,y,D,F,R,O,w,v,P=((I=this.data)==null?NaN:(y=I.contents)==null?NaN:(D=y.twoColumnWatchNextResults)==null?NaN:(F=D.secondaryResults)==null?NaN:(R=F.secondaryResults)==null?NaN:(O=R.offerModule)==null?NaN:(w=O.tvfilmOfferModuleRenderer)==null?NaN:(v=w.actionButtons)==null?NaN:v.length)-1;I=[".offerButton.buttonRenderer.",".actionButtons."+(P>=0?P:0)+".buttonRenderer."];y=_.J(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=y.next();!D.done;D=y.next())for(D=D.value,F=_.J(I),R=F.next();!R.done;R=F.next())if(R="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+R.value,R=this.get(R+"navigationEndpoint",this.data)||this.get(R+"serviceEndpoint",this.data)||this.get(R+"command",this.data)){_.zv(R,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(I){_.lj(this.hostElement,"yt-autonav-pause-player",I)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(I){I()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.lj(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(I)},
setPlayerState:function(I){_.oq().dispatch(_.vaP(I))},
onPlayerSubscribe_:function(I){_.uj(this.hostElement,"yt-player-subscribe",[I])},
onPlayerUnsubscribe_:function(I){_.uj(this.hostElement,"yt-player-unsubscribe",[I])},
onPlayerAdYtShowToast_:function(I){_.uj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:I.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(I){if(I)return I},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(I){return!_.uI("web_watch_move_summary_to_sd")&&!!I},
computeWatchMetadataRefresh:function(){return _.l("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var I,y,D,F;this.watchNextSecondaryResults=(I=this.data)==null?void 0:(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.secondaryResults)==null?void 0:F.secondaryResults}},
setRichGridRendererData:function(I){this.richGridRendererData=I},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var I,y=(I=this.data)==null?void 0:I.engagementPanels;if(y==null?0:y.length){I=null;y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;if(((F=D.engagementPanelSectionListRenderer)==null?void 0:F.targetId)==="engagement-panel-structured-description"){I=D;break}}var R,O,w;I=(R=I)==null?void 0:(O=R.engagementPanelSectionListRenderer)==null?void 0:(w=O.content)==null?void 0:w.structuredDescriptionContentRenderer;if(I==null?0:I.items){R=
[];O=_.J(I.items);for(w=O.next();!w.done;w=O.next()){w=w.value;if(!_.l("sd_horizontal_list_show_nav_killswitch")){var v=F=D=y=I=void 0,P=void 0,K=(I=w.horizontalCardListRenderer)==null?void 0:(y=I.header)==null?void 0:(D=y.richListHeaderRenderer)==null?void 0:(F=D.navigationButton)==null?void 0:(v=F.buttonRenderer)==null?void 0:(P=v.command)==null?void 0:P.commandExecutorCommand;K&&K.commands&&(K.commands=K.commands.filter(function(r){return!_.u(r,hH1)}))}w.expandableVideoDescriptionBodyRenderer||
w.videoDescriptionHeaderRenderer||R.push(w)}return{items:R}}}},
constructWarning_:function(I){return{text:_.Ug(I),type:"WARNING"}},
isPlaShelfEnabled_:function(I){if((this.get("adPlacements",I)||[]).length)return!0;I=this.get("playerAds",I)||[];return!(!I.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",I[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var I=this;_.lj(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.l("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.oP(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(I.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.lj(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var I=this;this.commentsReady=!1;_.w2.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.y9(_.w2,function(){I.setComments_()},1E3)},
setComments_:function(){if(!_.l("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.V_("cmi");_.w2.cancelJob(this.setCommentsJobId_);var I=this.getPageContents(this.data);if(I&&I.length){I=_.J(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.lj(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.l("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.l("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.V_("cmc")},
doRemoveComments_:function(){this.comments={};_.l("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.w2.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.w2.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(I,y){var D=_.u(y.endpoint,_.t9);D&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==y.videoId||D.playlistId&&D.playlistId!==y.playlistId||D.index!==void 0&&D.index!==y.index||typeof D.startTimeSeconds!=="number"||(I.stopPropagation(),this.setScrollTop(0),_.oP(this).getPlayerPromise().then(function(F){var R=D.startTimeSeconds;F.seekTo(R);F.wakeUpControls();R<F.getDuration()&&F.playVideo()})))},
updatePlayerStartTime_:function(){var I=sfy();"t"in I&&(I=wUZ(I.t),this.player.seekTo(I,!0))},
updateTitleFromWatchNext:function(I){I=this.getPageContents(I);var y,D;(I=_.rY(I==null?void 0:(y=I[0])==null?void 0:(D=y.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.lj(this.hostElement,"yt-update-title",I)},
updateTitle_:function(I){I=this.get("videoDetails.title",I)||"";_.lj(this.hostElement,"yt-update-title",I)},
syncWithRemoteVideo_:function(I,y,D){if(this.active&&this.player){var F=this.player.getVideoData();if(F.video_id===D&&(D=F.list,_.l("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),F.video_id!==I||D!=y)){var R;_.l("kevlar_player_watch_endpoint_navigation")?R=_.x9B(fLZ(I,y)):R=this.buildWatchEndpoint_(I,y);_.lj(this.hostElement,"yt-navigate",{endpoint:R,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(I,y,D){return _.xK(I,y,D)},
initDclkstatus_:function(){Teo()},
attachWatchPageSkeleton_:function(){var I=document.querySelector("#watch-page-skeleton");if(I){var y=I.querySelector("#primary-info"),D=I.querySelector("#secondary-info"),F=I.querySelector("#related");y&&_.XB(this.hostElement).querySelector("#info-skeleton").appendChild(y);D&&_.XB(this.hostElement).querySelector("#meta-skeleton").appendChild(D);F&&(_.XB(this.hostElement).querySelector("#related-skeleton").appendChild(F),this.watchNextSkeletonEl_=F);_.dM(I)}},
handlePlayerUpdated_:function(){_.oP(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(I,y){if(this.watchNextSkeletonEl_&&typeof y!=="undefined"){var D=this.watchNextSkeletonEl_.children,F=I&&I.indexSplices.length?I.indexSplices[0].index:0;I=Math.min(this.watchNextShownItems.length,D.length);y||(F=0,I=D.length);for(y=F;y<I;y++)D[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(I){_.l("external_fullscreen")||_.uj(this.hostElement,"yt-player-fullscreen",[I.fullscreen])},
onFullscreenChange_:function(I){this.fullscreen=I;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.oP(this);y.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.o1())});
this.updateFullBleedElementLocations();I&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(I,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(I){return I},
computeShouldShowMerchShelf:function(I,y){return y&&!!I},
computeResponseHasComments:function(I){var y,D,F,R,O;return!!(I==null?0:(y=I.contents)==null?0:(D=y.twoColumnWatchNextResults)==null?0:(F=D.results)==null?0:(R=F.results)==null?0:(O=R.contents)==null?0:O.some(function(w){var v;return(w==null?void 0:(v=w.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(I,y){this.responseHasComments=this.computeResponseHasComments(this.data);return!!I&&!!Object.keys(I).length&&!y},
identity:_.mJ,onWindowResized_:function(I){this.windowSize_=I;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.l("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(I){var y=this;I&&I.type!=="dataloaded"&&I.type!=="dataupdated"||_.oP(this).getPlayerPromise().then(function(D){var F=D.getPlayerState();F!==5&&F!==0&&(D=1/D.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==D&&(y.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(I){var y=this,D=_.l("kevlar_watch_while_v2")||_.l("web_watch_pip"),F=function(){if(y.watchMetadata){var R,O;(O=(R=y.watchMetadata).resize)==null||O.call(R)}_.oP(y).getPlayerPromise().then(function(w){if(_.uI("kevlar_set_internal_player_size")){if(!D||!y.isMiniplayerActive()){var v=y.calculateCurrentPlayerSize_();w.setInternalSize(v.width,v.height)}}else w.setSize(NaN,NaN);_.l("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
I?F():_.k1(_.w2,F)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(I){this.set("data.survey",I.detail)},
onYtShowSurveyCommand_:function(I){this.set("data.survey",_.u(I,Iky).survey)},
onDownloadedVideoDeleted:function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1){if(!y.active||(D=y.playerData)==null||!D.offlineState||y.videoId!==I)return R.return();(F=y.player)==null||F.stopVideo();_.bW().navigatingAwayFromWatchDeletedVideo=!0;_.zv(_.XOe,y.hostElement);return R.yield(_.bW().navigationFinishPromise,2)}_.bW().navigatingAwayFromWatchDeletedVideo=!1;_.Cj(R)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var I;this.theater?I=_.IL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):I=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==I&&(this.watchWhileScrollThreshold_=I,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var I=_.XB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&I){var y=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!I.active&&y&&D>=this.watchWhileScrollThreshold_?(I.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):I.active&&(!y||D<this.watchWhileScrollThreshold_&&!_.o1())&&(I.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(I,y){if(I!==!0||y!==void 0){I=!_.l("live_chat_over_engagement_panels");y=_.XB(this.hostElement).querySelector("#chat-container");var D=_.XB(this.hostElement).querySelector("#plj-sidebar"),F=_.XB(this.hostElement).querySelector("#panels"),R=_.XB(this.hostElement).querySelector("#plj-panels"),O=_.XB(this.hostElement).querySelector("#plj-playlist"),w=_.XB(this.hostElement).querySelector("#alerts"),v=_.XB(this.hostElement).querySelector("#playlist"),P=_.XB(this.hostElement).querySelector("#related"),
K=_.XB(this.hostElement).querySelector("#donation-shelf"),r=_.XB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(w=_.XB(this.hostElement).querySelector("#secondary-inner"),w.appendChild(D),D.appendChild(O),O.appendChild(v),D.appendChild(R),I&&w.appendChild(F),_.l("web_watch_theater_chat")||w.appendChild(y),I||w.appendChild(F),w.appendChild(K),w.appendChild(P)):(I&&_.O5(F,w),_.O5(v,w),_.l("web_watch_theater_chat")||_.O5(y,w),I||_.O5(F,w),_.O5(K,w),r&&(R&&_.O5(R,r),_.O5(P,r)));_.l("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.l("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.l("web_watch_theater_chat")){var I=_.XB(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.l("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?_.l("web_watch_theater_chat_beside_player")?(y=_.XB(this.hostElement).querySelector("#panels-full-bleed-container"),(I==null?void 0:I.parentElement)!==y&&y.append(I),this.panelsBesidePlayer=!0):_.l("web_watch_theater_fixed_chat")&&
(y=_.XB(this.hostElement).querySelector("#columns"),(I==null?void 0:I.parentElement)!==y&&y.append(I),this.fixedPanels=!0):(_.l("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.l("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),y=_.XB(this.hostElement).querySelector("#playlist"),I&&y?_.LA(I,y):_.tq(new _.g6("Missing element when updating chat location",{"chatContainer defined":!!I,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(I,y){return _.l("sw_metadata_vis_toggle_ks")?!0:!!I||!!y},
computeForceDarkPanelTheme:function(I){return _.l("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&I:!1},
safeUpdateStyles:function(I){try{_.pg(this.hostElement,I)}catch(y){_.tq(y)}},
videoHeightToWidthRatioChanged_:function(I,y){y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.l("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(I){this.videoHeightToWidthRatio_=1/I},
computeIsVerticalVideo_:function(I){return I>=1},
computeIsFourThreeToSixteenNineVideo_:function(I){return I<=.7501&&I>=.5624},
computeIsExtraWideVideo_:function(I){return I<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oP(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oP(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){HXy(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(I){var y=_.bX(I)||0;_.$c(I,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var I=_.bX("yt-fullerscreen-edu-button-click-count")||0,y=_.bX("yt-fullerscreen-edu-button-shown-count")||0,D=_.kf("external_fullscreen_button_shown_threshold"),F=I>=_.kf("external_fullscreen_button_click_threshold")||y>=D;_.oP(this).getPlayerPromise().then(function(R){R.updateFullerscreenEduButtonSubtleModeState(F)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(I,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.nR().resolve(_.rE).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var I=this;this.panelMaxHeightUpdateJob_&&_.w2.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.w2.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;var y;!I.isTwoColumns_||I.theater||I.fullscreen?y=460:y=I.calculateNormalPlayerSize_().height;var D=y+"px";_.l("live_chat_taller_height")&&!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.l("live_chat_medium_height")&&
!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.l("live_chat_scaled_height")&&!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");I.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"px"})})},
onYtShowEngagementPanelScrimAction_:function(I){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",I)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.GC(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(I){var y=_.XB(this.hostElement).querySelector("#engagement-panel-scrim");I?y.addEventListener("tap",_.MX(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.MX(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(I){if(this.hostElement.contains(I)&&!this.scrollToAnimation_.isAnimating()){var y=I.offsetTop-24;I=I.offsetTop+I.offsetHeight+24;var D=this.getPageScrollingElement(),F=this.getScrollTop(),R=F+D.clientHeight-56;if(y<F+56)y-=56;else if(I>R)y=I-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var I=this.hostElement.querySelector("#comments");if(I&&!this.scrollToAnimation_.isAnimating()){I=I.offsetTop-56-24;if(_.l("kevlar_comment_teaser_scroll_to_midpoint")&&(I-=_.cB().height/3,I<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,I),500)}},
onYtEngagementPanelVisibleChanged:function(I,y,D){this.active&&this.trackEngagementPanelVisibility&&!ota.includes(D)&&(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(D),y!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(I){return I?"":"watch-active-metadata"},
computeNewMetadataClass:function(I){return I?"watch-active-metadata":""},
computeFullBleedPlayer:function(I,y){return I||y},
computeDefaultLayout:function(I){return!I},
computeDefaultTwoColumnLayout:function(I,y){return!I&&y},
computeWatchWhilePanelsActive:function(I,y){return I||y},
computeNoBorderOnChat:function(I){return _.l("web_watch_theater_chat_no_border")&&I},
computeLiveChatPresentAndExpanded:function(I,y){return I&&!y},
computePanelExpanded:function(I,y,D){return I||y||D},
onChangeMarkersVisibility:function(I){_.oP(this).getPlayerPromise().then(function(y){var D;(D=y.changeMarkerVisibility)==null||D.call(y,_.u(I,GX).isVisible||!1,_.u(I,GX).entityKeys||[],_.u(I,GX).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(I){this.liveChatCollapsed=I.detail;_.oq().dispatch(ZHo(I.detail))},
provideRenderingData:function(I,y){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.l("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.l("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=y;break;case "DONATION_SHELF":this.donation=y;break;
case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=y}},
toggleCinematicsActive:function(I){this.cinematicsActive=I},
isMiniplayerActive:function(){return _.nR().resolve(_.OI).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(I){return u7a.map(function(y){return I.find(function(D){var F;return(D==null?void 0:(F=D.engagementPanelSectionListRenderer)==null?void 0:F.targetId)===y})}).filter(function(y){return y!==void 0})},
getNonLearningJourneyEngagementPanels:function(I){return I.filter(function(y){var D;return!u7a.includes((y==null?void 0:(D=y.engagementPanelSectionListRenderer)==null?void 0:D.targetId)||"")})}}];var e_=function(){return _.Wp.apply(this,arguments)||this};
_.E(e_,_.Wp);_.L=e_.prototype;_.L.activeChanged=function(){if(this.active){var I=_.XB(this.hostElement).querySelector("#header");I&&_.lj(I,"iron-resize");window.addEventListener("scroll",_.MX(this,this.onScroll))}else window.removeEventListener("scroll",_.MX(this,this.onScroll)),_.lj(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.L.guideVisibleChanged=function(){var I=_.XB(this.hostElement).querySelector("#header");I&&_.lj(I,"iron-resize")};
_.L.onScroll=function(){var I=this;_.v4(this,"onScroll",function(){var y=_.XB(I.hostElement).querySelector("#header");y&&y.polymerController&&(y=y.polymerController.getScrollState().progress===1?"standard":"seamed",_.lj(I.hostElement,"yt-request-panel-mode-change",{mode:y}))},10)};
_.L.tabsChanged=function(){if(this.tabs){for(var I=null,y=0,D=this.tabs.length;y<D;++y){var F=this.tabs[y].tabRenderer;if(F&&F.selected){I=y;break}}this.selected=I}};
_.L.onTabsActivate=function(I){_.lj(this.hostElement,"yt-navigate",{endpoint:this.tabs[I.detail.selected].tabRenderer.endpoint})};
e_.prototype.tabsChanged=e_.prototype.tabsChanged;e_.prototype.guideVisibleChanged=e_.prototype.guideVisibleChanged;e_.prototype.activeChanged=e_.prototype.activeChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],e_.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(),_.A("design:type",Array)],e_.prototype,"tabs",void 0);
_.W([_.M(),_.A("design:type",Object)],e_.prototype,"selected",void 0);_.W([_.M(),_.A("design:type",Boolean)],e_.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],e_.prototype,"disableHeaderFluidWidth",void 0);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e_.prototype,"activeChanged",null);
_.W([_.ke("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e_.prototype,"guideVisibleChanged",null);_.W([_.ke("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e_.prototype,"tabsChanged",null);_.W([_.Cg()],e_);var qzY=[_.V.YtRendererBehavior,_.KN.YtdGuideStateAwareBehavior,e_.prototype];var Gk8=function(I){_.B5.call(this);var y=this;this.JSC$21504_watchApi=I;this.observer=null;var D=this.JSC$21504_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EU1(y)});
this.addOnDisposeCallback(function(){y.JSC$21504_watchApi.unsubscribeByKey(D);y.observer&&(y.observer.disconnect(),y.observer=null)});
EU1(this)};
_.E(Gk8,_.B5);var EU1=function(I){var y,D,F,R,O;_.S(function(w){if(w.nextAddress==1){I.observer&&(I.observer.disconnect(),I.observer=null);y=I.JSC$21504_watchApi.getWatchNextResponse();if(!y)return w.return();D=_.u(y,MDa);return((F=D)==null?0:F.enableCreatorChatbot)&&D.creatorChannelId?_.l("enable_creator_chatbot_link_out")?w.yield((0,_.kn)("NSzT5"),6):w.yield((0,_.kn)("NSzT5"),5):w.jumpTo(0)}if(w.nextAddress!=6)return R=_.XOo,R(D.creatorChannelId),w.jumpTo(0);O=_.QMg;O(D.creatorChannelId);_.Cj(w)})};var Tk=function(I){_.B5.call(this);this.JSC$21508_watchApi=I;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Yz8(this)};
_.E(Tk,_.B5);var Yz8=function(I){_.S(function(y){if(y.nextAddress==1)return y.yield(f2a(I),2);nUb(I);_.Cj(y)})},f2a=function(I){var y,D,F,R,O,w,v,P,K;
return _.S(function(r){if(r.nextAddress==1)return r.yield(I.JSC$21508_watchApi.playerApi,2);y=r.yieldResult;I.JSC$21508_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){pO8(I)});
I.JSC$21508_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){I.isShelfVisible?mpa(I):sz(I)});
D=_.oq().subscribe(function(){I.isTheaterMode=_.sE(_.oq().getState());I.isTheaterMode?sz(I):M_b(I)});
F=I.JSC$21508_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nUb(I)});
R=function(N){I.onCueRangeEnter(N)};
y.addEventListener("onCueRangeEnter",R);O=function(N){I.onCueRangeExit(N)};
y.addEventListener("onCueRangeExit",O);w=function(){I.isSeeking=!0};
y.addEventListener("SEEK_TO",w);v=function(){I.onSeekComplete()};
y.addEventListener("SEEK_COMPLETE",v);P=function(){I.onAdStart()};
y.addEventListener("onAdStart",P);K=function(){I.onAdComplete()};
y.addEventListener("onAdComplete",K);I.addOnDisposeCallback(function(){D();I.JSC$21508_watchApi.unsubscribeByKey(F);y.removeEventListener("onCueRangeEnter",R);y.removeEventListener("onCueRangeExit",O);y.removeEventListener("SEEK_TO",w);y.removeEventListener("SEEK_COMPLETE",v);y.removeEventListener("onAdStart",P);y.removeEventListener("onAdComplete",K)});
_.Cj(r)})},zze=function(I){var y,D,F,R,O,w,v,P,K;
return(O=(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.results)==null?void 0:(R=F.results)==null?void 0:R.contents)==null?void 0:(w=O.find(function(r){var N,h,x;return(N=r.itemSectionRenderer)==null?void 0:(h=N.contents)==null?void 0:(x=h[0])==null?void 0:x.shoppingTimelyShelfViewModel}))==null?void 0:(v=w.itemSectionRenderer)==null?void 0:(P=v.contents)==null?void 0:(K=P[0])==null?void 0:K.shoppingTimelyShelfViewModel},nUb=function(I){var y;
_.S(function(D){if(D.nextAddress==1)return(y=I.JSC$21508_watchApi.getWatchNextResponse())?D.yield(pO8(I),2):D.return();I.shoppingTimelyShelfViewModel=zze(y);kkb(I);dpa(I);_.Cj(D)})},kkb=function(I){var y,D=(y=I.shoppingTimelyShelfViewModel)==null?void 0:y.offerIdToVariants;
D&&(y=D.filter(function(F){return F.key&&F.value}).map(function(F){return[F.key,
F.value]}),I.variantsMap=new Map(y))},dpa=function(I){var y,D,F,R,O,w;
_.S(function(v){if(v.nextAddress==1)return(D=(y=I.shoppingTimelyShelfViewModel)==null?void 0:y.cueRanges)?v.yield(I.JSC$21508_watchApi.playerApi,2):v.return();F=v.yieldResult;I.cueRanges=D;R=_.J(D);for(O=R.next();!O.done;O=R.next())w=O.value,w.startTime!==void 0&&w.endTime!==void 0&&w.id!==void 0&&F.addCueRange("shopping_timely_shelf"+w.id,a2y(w.startTime),a2y(w.endTime));_.Cj(v)})},a2y=function(I){return Number(I.seconds||0)+(I.nanos||0)/1E9};
Tk.prototype.onCueRangeEnter=function(I){if(I.startsWith("shopping_timely_shelf")&&(this.activeCueId=I,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){I=I.substring(21);var y,D,F=(y=this.variantsMap)==null?void 0:(D=y.get(I))==null?void 0:D.shelf;F&&(this.JSC$21508_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",F),mpa(this))}};
Tk.prototype.onCueRangeExit=function(I){I.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||sz(this))};
Tk.prototype.onSeekComplete=function(){this.isSeeking=!1;M_b(this)};
var mpa=function(I){I.shoppingTimelyShelfViewModel&&(I.isShelfVisible=!0,_.uK.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},sz=function(I){I.shoppingTimelyShelfViewModel&&I.isShelfVisible&&(I.isShelfVisible=!1,_.uK.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},pO8=function(I){var y,D,F,R,O;
return _.S(function(w){if(w.nextAddress==1)return w.yield(I.JSC$21508_watchApi.playerApi,2);y=w.yieldResult;if(I.cueRanges)for(D=_.J(I.cueRanges),F=D.next();!F.done;F=D.next())R=F.value,R.id&&(O="shopping_timely_shelf"+R.id,y.removeCueRange(O));I.JSC$21508_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});sz(I);I.shoppingTimelyShelfViewModel=void 0;I.cueRanges=void 0;I.variantsMap=void 0;I.isSeeking=!1;I.activeCueId=void 0;_.Cj(w)})};
Tk.prototype.onAdStart=function(){this.isAdPlaying=!0;sz(this)};
Tk.prototype.onAdComplete=function(){this.isAdPlaying=!1;M_b(this)};
var M_b=function(I){if(I.activeCueId)I.onCueRangeEnter(I.activeCueId);else sz(I)};var iUa=function(I){_.B5.call(this);var y=this;this.JSC$21515_watchApi=I;I=_.TV(_.oq(),_.kYB,function(){c3Y(y)});
this.addOnDisposeCallback(I);I=_.TV(_.oq(),EIb,function(){c3Y(y)});
this.addOnDisposeCallback(I);Wya(this);Cro(this);B0a()};
_.E(iUa,_.B5);var Wya=function(I){var y=function(F){_.oq().dispatch(VVY(F.matches))},D=window.matchMedia("(max-width: "+(999+ZA())+"px)");
D.addListener(y);I.addOnDisposeCallback(function(){D.removeListener(y)});
y(D)},Cro=function(I){I.JSC$21515_watchApi.registerActionHandler("yt-window-resized",function(){B0a()});
I.addOnDisposeCallback(function(){I.JSC$21515_watchApi.unregisterActionHandler("yt-window-resized")})},B0a=function(){var I=_.cF();
_.oq().dispatch(_.Ec({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:I.width,height:I.height}}}))},c3Y=function(I){var y;
_.S(function(D){if(D.nextAddress==1)return D.yield(I.JSC$21515_watchApi.playerApi,2);y=D.yieldResult;y.setSize(NaN,NaN);_.Cj(D)})};var A3a=function(I){_.B5.call(this);var y=_.nR().resolve(_.et);LSQ(y,I.getElement("PLAYER_CONTAINER"),I.getElement("BELOW_THE_PLAYER"),I.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var D=I.getElement("PLAYER_CONTAINER"),F=I.getElement("BELOW_THE_PLAYER"),R=I.getElement("SECONDARY");y.isLockupToWatchTransitionEnabled&&(D&&_.y0(y.viewTransitionCoordinator,D),F&&_.y0(y.viewTransitionCoordinator,F),R&&_.y0(y.viewTransitionCoordinator,R))})};
_.E(A3a,_.B5);var VY=function(I){kN.call(this);var y=this;this.rootElement=I;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){y.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.E(VY,kN);_.L=VY.prototype;_.L.getRoot=function(){return this.rootElement};
_.L.getElement=function(I){return this.rootElement.getElement(I)};
_.L.setPlayerResponse=function(I){this.playerResponse=I;this.publish("PLAYER_RESPONSE_UPDATED",I)};
_.L.getPlayerResponse=function(){return this.playerResponse};
_.L.setWatchNextResponse=function(I){this.watchNextResponse===I?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=I,this.publish("WATCH_NEXT_RESPONSE_UPDATED",I))};
_.L.getWatchNextResponse=function(){return this.watchNextResponse};
_.L.registerActionHandler=function(I,y){var D=this;if(_.l("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.qM(_.uK.getInstance(),(F[I]=y,F),this.getRoot())}else this.actionHandlers.has(I)||(this.actionHandlers.set(I,[]),F={},_.qM(_.uK.getInstance(),(F[I]=function(){var R=_.go.apply(0,arguments);return(D.actionHandlers.get(I)||[]).map(function(O){return O.apply(null,_.Td(R))})},F),this.getRoot())),this.actionHandlers.get(I).push(y)};
_.L.unregisterActionHandler=function(I){if(_.l("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.EN(_.uK.getInstance(),(y[I]=!0,y),this.getRoot())}else(y=this.actionHandlers.get(I))?(y.pop(),y.length===0&&(y={},_.EN(_.uK.getInstance(),(y[I]=!0,y),this.getRoot()),this.actionHandlers.delete(I))):_.tq(new _.g6("Attempted to unregister an action handler which is not registered.",I))};
_.L.addPageDisposeJob=function(I){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.fCq(this.rootElement.pageDisposeJobs,I)};
_.L.removePageDisposeJob=function(I){this.rootElement.pageDisposeJobs&&_.WH(this.rootElement.pageDisposeJobs,I)};
_.L.dispatchEvent=function(I,y){_.lj(this.rootElement,I,y)};
_.L.provideRenderingData=function(I,y){this.rootElement.provideRenderingData(I,y)};
_.L.scrollWatchTo=function(I,y){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(I,y)};
_.L.focusOnPlayer=function(){var I=this.getElement("PLAYER");_.YC(I,function(){if(I&&I.firstElementChild){var y=I.querySelector(".html5-video-player");y&&(_.G$(_.nR().resolve(_.cU)),y.focus())}else _.tq(Error("Ol"))})};
_.L.subscribeToActiveChanged=function(I,y){y=y===void 0?!0:y;var D=_.TV(_.oq(),us1,function(F){I(F)});
y&&I(us1(_.oq().getState()));return D};
_.L.isActive=function(){return us1(_.oq().getState())};
_.L.onAttached=function(){var I=_.l("external_fullscreen");_.l("use_unified_flag_accessor")&&(I=_.nR().resolve(_.sU1).retriever.getFlag(_.T1G));(I||_.KR("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var $pR=function(I){return I.getRoot().is==="ytd-watch-flexy"||I.getRoot().is==="ytd-watch-grid"},Z2=function(I){return I.getRoot().is==="ytd-watch-fixie"};
VY.prototype.initPersistentModules=function(){if(Z2(this)||$pR(this)&&_.l("kevlar_watch_flexy_theater_manager")){var I=new U$g(this);_.pW(this,I)}I=new frT(this);_.pW(this,I);I=new zk(this);_.pW(this,I);I=new ung(this);_.pW(this,I);I=new br(this);_.pW(this,I);I=new kU(this);_.pW(this,I);if(Z2(this)||$pR(this)&&_.l("kevlar_watch_flexy_playlist_manager"))I=new SzZ(this),_.pW(this,I);_.l("web_thumbnail_to_watch_transition")&&(I=new A3a(this),_.pW(this,I))};
VY.prototype.initOrDisposeActiveModules=function(I){I?(this.watchScrollManager=new HO(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new bsa(this)),_.l("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Tk(this)),this.activeModules.push(new KLC(this)),Z2(this)&&this.activeModules.push(new iUa(this)),this.activeModules.push(new jMY(this)),this.activeModules.push(new arR(this)),(Z2(this)||_.l("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new NAy(this)),
this.activeModules.push(new gta(this)),(Z2(this)||_.l("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new N01(this)),(Z2(this)||_.l("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new fK8(this)),_.uI("kevlar_watch_cinematics")&&(this.watchCinematicManager=new Ose(this),this.activeModules.push(this.watchCinematicManager)),_.l("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new FyY(this)),_.l("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new XXY(this)),
I=_.l("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.l("kevlar_watch_flexy_comments_manager")&&!I&&this.activeModules.push(new jHe(this)),_.l("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new mqy(this)),this.activeModules.push(new lKG(this)),this.activeModules.push(new eUg(this)),_.l("web_enable_timely_actions")&&this.activeModules.push(new GuC(this)),_.l("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new eag(this)),_.l("web_watch_enable_multiview_manager")&&
this.activeModules.push(new cjR(this)),_.l("web_fullscreen_components")&&this.activeModules.push(new qne(this)),_.l("web_player_rtr_ctrls")&&this.activeModules.push(new siG(this)),(_.l("enable_creator_chatbot")||_.l("enable_creator_chatbot_link_out"))&&this.activeModules.push(new Gk8(this))):(_.oD(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
VY.prototype.disposeInternal=function(){kN.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mD.Object.defineProperties(VY.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.NK(_.d(function(I){var y=I.data;I=_.J(_.$M(!1,void 0,"VotqNe"));var D=I.next().value,F=I.next().value;_.LR(function(){_.uK.getInstance().triggerAction("yt-request-timely-shelf-state")});
var R=_.su(function(){var K,r,N=(K=_.u(y().rendererContext,_.CQ))==null?void 0:(r=K.loggingDirectives)==null?void 0:r.trackingParams;if(N)return _.AC(N)},void 0,"AvMXxb");
_.qM(_.uK.getInstance(),{"yt-hide-shopping-timely-shelf":function(){F(!1);var K=_.VO(),r=R();K&&r&&_.vW(K,[r])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){F(!0);var K=_.VO(),r=R();K&&r&&_.wH(K,[r])})}});
var O=function(){var K;return(K=y().image)==null?void 0:K.image},w=function(){var K,r;
return!!((K=O())==null?0:(r=K.sources)==null?0:r.some(function(N){var h;return!!(N==null?0:(h=N.clientResource)==null?0:h.imageName)}))},v=function(){var K;
return((K=y().image)==null?void 0:K.height)||40},P=function(){var K;
return(K=y().image)==null?void 0:K.backgroundColor};
I={};return _.t("yt-shopping-timely-shelf-content-view-model",{el:_.K4(_.VM(function(){return y().rendererContext})),
class:_.XH("ytShoppingTimelyShelfContentViewModelHost",(I.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(y().image||y().avatar||y().line1)&&D()},I)),
style:_.p4({"--shopping-timely-shelf-content-padding-top":function(){var K;return I3G((K=y().padding)==null?void 0:K.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var K;return I3G((K=y().padding)==null?void 0:K.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var K;return I3G((K=y().padding)==null?void 0:K.start)},
"--shopping-timely-shelf-content-padding-end":function(){var K;return I3G((K=y().padding)==null?void 0:K.end)},
"--yt-shopping-timely-shelf-background-color":function(){return y().backgroundColor!==void 0?_.Z7(y().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var K,r;return((r=(K=y().image)==null?void 0:K.cornerRadius)!=null?r:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return P()!==void 0?_.Z7(P()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var K;return(((K=y().image)==null?void 0:K.width)||40)+"px"}})},_.t(_.U,{cond:O,
then:function(K){var r={};return _.t(_.UE,{preserveHeight:!0,preserveWidth:!0,height:v,data:K,alt:"",className:_.XH("ytShoppingTimelyShelfContentViewModelImage",(r.ytShoppingTimelyShelfContentViewModelIcon=w,r))})}}),_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF}),_.t("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.t(_.aP,{data:function(){return y().line1}},{shoppingContentLineViewModel:function(K){return _.t(_.hH,{data:K.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.t(_.aP,{data:function(){return y().line2}},{shoppingContentLineViewModel:function(K){return _.t(_.hH,{data:K.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.t("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.t(_.aP,{data:function(){var K;
return(K=y().button)!=null?K:[]}},{buttonViewModel:function(K){var r=K.data;
return _.t(_.My,{data:r,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(N){r().onTap&&N.stopPropagation()}})}})))},"mk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.om}});var bUg={};
bUg.YtdWatchBehavior=[_.V.YtRendererBehavior,_.NG.YtPlayerListenerBehavior,_.XN.YtRendererstamperBehavior,_.cb.YtActionHandlerBehavior,oM.YtPageBehavior,_.am.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 _.KR("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.l("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 _.KR("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.l("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 _.kf("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.kf("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.l("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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 _.l("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.l("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.l("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.l("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("swatcheroo_enable_ghost_cards")||_.l("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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 _.l("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l("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 _.l("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.l("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(I,y,D){return I&&(y||!D)},
computeShowGhostRelated_:function(I,y,D){return I&&(y||!D)},
monitorScroll:!0,configureRendererStamper:function(){var I={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:xo(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:xo(["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"||_.l("swa_prov_panels_ks")?I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},I.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return I},
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 I=this;this.watchController=void 0;this.pageDisposeJobs=[function(){I.showMetadataPlaceholder_()},
function(){_.l("web_watch_dont_clear_comments")||I.clearComments_()},
function(){I.clearPlayerAds_()},
function(){I.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.l("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.l("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new coC(function(){return _.oP(I)},this.hostElement);
this.pageDisposeJobs.push(function(){I.youThereManager_.reset()});
_.l("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){I.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.VG;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;_.l("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));_.l("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.MX(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(I){I&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:I}),I.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(I){_.l("kevlar_watch_flexy_theater_manager")&&(this.theater=I,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(I){!_.l("kevlar_watch_while_v2")&&!_.l("web_watch_pip")||I||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(I){this.active!==void 0&&(this.fullscreen=I,_.l("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(I){this.active!==void 0&&(_.lj(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.l("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(I>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(I){this.initCsi_();this.updatePageData_(I)},
updatePageData_:function(I){var y=this;if(I)if(this.data===I){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=I;this.playlist&&_.ek({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.V_("nw");this.loading=!1;_.y9(_.w2,function(){y.initDclkstatus_();var F,R=((F=y.player)==null?void 0:F.getVideoData().cpn)||"";gCe(function(O,w){yRQ(O,w,R)})})},
onPageLoadWithSameData_:function(){_.l("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 I=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!I);this.set("loadingData.playlistLoading",I&&I!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),I=this.watchNextSkeletonEl_.firstElementChild;I;)I.classList.remove("hidden"),I=I.nextElementSibling;if(_.l("kevlar_watch_frame0_loading_state")){var y,D,F;I=(y=this.loadingData)==null?void 0:(D=y.endpoint)==null?void 0:(F=D.watchEndpoint)==null?void 0:F.videoId;var R;I&&(R="https://i.ytimg.com/vi/"+I+"/frame0.jpg");_.XB(this.hostElement).querySelector("#player").style.backgroundImage=R?"url("+R+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var I=_.XB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&I&&(I.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var y,D;(D=(y=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(y);var F,R;(R=(F=this.watchMetadata).resize)==null||R.call(F)}_.l("kevlar_watch_frame0_loading_state")&&(_.XB(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(I){var y=_.XB(this.hostElement).querySelector(I);y?_.h9(y,!1):_.tq(new _.g6("Overscroll monitor not found for component: ",I))},
removeSplitScrollMouseTrap:function(I){var y=_.XB(this.hostElement).querySelector(I);y?_.xI(y):_.tq(new _.g6("Disposal component for  overscroll monitoring not found: ",I))},
onLoadingChanged_:function(I){I?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.l("web_thumbnail_to_watch_transition")&&!_.r0y||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.l("web_thumbnail_to_watch_transition")&&!_.r0y||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(I){var y=this;I?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.w2.addLowPriorityJob(function(){y.onWindowResized_(_.cF(!0))})},
updateTheaterModeState_:function(I){if(!_.l("kevlar_watch_flexy_theater_manager")){I=I||this.fullWindowMode_;if(this.theater!==void 0||I)this.theater=I;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();I&&drZ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var I=this.fullBleedPlayer?_.XB(this.hostElement).querySelector("#player-full-bleed-container"):_.XB(this.hostElement).querySelector("#player-container-inner");var y=this.getPlayerContainer(),D=_.l("kevlar_watch_while_v2")||_.l("web_watch_pip");y.parentElement!==I&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.oP(this).appendTo(I,y))},
updateErrorScreenLocation:function(){var I=_.XB(this.hostElement).querySelector("#error-screen"),y=this.fullBleedPlayer?_.XB(this.hostElement).querySelector("#player-full-bleed-container"):_.XB(this.hostElement).querySelector("#player");I.parentElement!==y&&y.appendChild(I)},
deactivateMiniplayerAndResetPlayer:function(){var I=this;return _.S(function(y){if(y.nextAddress==1)return y.yield(_.nR().resolve(_.OI).deactivate(),2);I.updatePlayerLocation();_.Cj(y)})},
updateCinematicsLocation:function(){var I=this.getElement("CINEMATICS");if(I){var y=this.getCinematicsLocationContainer();I.parentElement!==y&&y.appendChild(I)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.XB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.XB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(I,y,D){var F=document.documentElement.hasAttribute("dark"),R=!F&&this.cinematicLightTheme;return D||I&&F||y&&F||(y||I)&&R},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var I=this,y;(y=this.watchController)==null||y.setWatchNextResponse(this.data);_.l("kevlar_watch_flexy_comments_manager")||this.initComments_();_.l("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.nR().resolve(_.rE).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.l("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.w2.addLowPriorityJob(function(){_.qr(I.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.l("web_watch_start_chat_in_theater_mode")){var D,F,R;if((D=this.data)==null?0:(F=D.contents)==null?0:(R=F.twoColumnWatchNextResults)==null?0:R.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var O,w;((O=this.data)==null?0:(w=O.contents)==null?0:w.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(I){var y;(y=this.watchController)==null||y.setPlayerResponse(this.playerData);I&&I.playabilityStatus&&(y=this.isVideoPlayable_(I.playabilityStatus,this.getPlayerOverlays_(this.data)),I=this.isLiveStreamOffline_(I.playabilityStatus),y&&!I||_.YC(this,function(){_.V_("pbu")}));
this.setPlayerAds_();_.qr(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(I,y){if((_.l("kevlar_watch_while_v2")||_.l("web_watch_pip"))&&this.playerData&&y)return this.playerData.videoDetails},
watchPageActiveChanged_:function(I){_.oq().dispatch(sca(this.active));I?this.activate_():this.deactivate_()},
attached:function(){var I=this;this.watchController=new VY(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);_.l("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var y=_.oP(this);_.l("kevlar_disable_prepare_player")||
y.preparePlayer();_.l("kevlar_watch_flexy_playlist_manager")||_.nR().resolve(_.rE).setPlayer(y);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();y={"--ytd-watch-flexy-scrollbar-width":ZA()+"px"};this.is==="ytd-watch-grid"&&(_.oq().dispatch(_.Ec({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),y["--ytd-watch-flexy-sidebar-width"]=HQb+"px",y["--ytd-watch-grid-horizontal-page-margins"]=I9+"px",y["--ytd-watch-grid-columns-top-margins"]=s6y+"px",
y["--ytd-watch-grid-min-player-height-medium"]="360px");!_.kf("kv_pl_mx_sz_ks")&&_.kf("kevlar_watch_max_player_width")&&(y["--ytd-watch-flexy-max-player-width-wide-screen"]=Tyb+"px");_.kf("kevlar_watch_flexy_metadata_height")&&(y["--ytd-watch-flexy-space-below-player"]=VEy+"px");this.safeUpdateStyles(y);_.l("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new $U(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return I.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.XB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var I=ZA(),y=g9+I,D=y;this.fixedPanels&&(y+=HQb);var F=657+I;I=1327+I;_.XB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+y+"px)";_.XB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(F+"px), (min-height: 630px) and (min-width: ")+(y+"px) and (max-width: ")+(I+"px)");_.XB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(I+"px)");_.XB(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+D+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var I=_.XB(this.hostElement).querySelector("#miniplayer-bar").firstChild,y=this.squeezeback&&!_.l("web_watch_squeezeback_player_size_killswitch");return I&&I.active||this.theater||_.l("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||y||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.ad(NaN,NaN):ZQa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return ZQa(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.rM(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var I=this;this.onWindowResized_(_.cF());_.l("browse_skeleton_removal_on_watch_killswitch")||_.KR("IS_SHELL_LOAD")&&bEQ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var y=_.oP(this);y.addEventListener("yt-player-updated",_.MX(this,this.onPlayerUpdated_));y.getPlayerPromise().then(function(D){I.playerApiReady_(D)});
_.l("kevlar_watch_flexy_playlist_manager")||(y=_.nR().resolve(_.rE),_.l("kevlar_watch_observe_playlist_navigations_killswitch")&&y.addEventListener("yt-navigate",_.MX(this,this.onYtNavigate_)),y.setPlaylistComponent(_.XB(this.hostElement).querySelector("#playlist")),y.addEventListener("yt-playlist-data-updated",_.MX(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.w2.addLowPriorityJob(function(){_.lj(I.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oP(this).removeEventListener("yt-player-updated",_.MX(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.l("kevlar_watch_flexy_playlist_manager")){var I=_.nR().resolve(_.rE);_.l("kevlar_watch_observe_playlist_navigations_killswitch")&&I.removeEventListener("yt-navigate",_.MX(this,this.onYtNavigate_));
I.cancelVideoSkip();I.removeEventListener("yt-playlist-data-updated",_.MX(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.lj(this.hostElement,"yt-autonav-pause-player",!1);I=_.o1();_.l("kevlar_exit_fullscreen_leaving_watch")&&I&&_.Nr(I)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(I){this.player&&this.player.updateVideoData({rvs:I.rvs})},
getPageContents:function(I){return I&&I.contents&&I.contents.twoColumnWatchNextResults&&I.contents.twoColumnWatchNextResults.results&&I.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(I){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",I)},
onRetrieveLocation_:function(I,y){y.hasComments?y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):y.locationRetrieved("/related_ajax",void 0);I.stopPropagation()},
onSubscriptionChanged_:function(I,y){this.player&&(y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){ktg("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.XB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.XB(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(I){this.player=I;this.setPlayerState(I.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.l("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.l("kevlar_unified_player")||_.l("kevlar_player_new_bootstrap_adoption"))&&_.Lx()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(I,y){y=y===void 0?!0:y;_.o1()&&_.l("external_fullscreen")&&_.Nr(document.documentElement);this.theaterRequested_=I;y&&_.TP("wide",I?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.uj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.lj(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(I){_.Pu(I,typeof this.player),this.player&&_.Pu(I,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var I;((I=this.player)==null?0:I.isFullscreen())?this.player.toggleFullscreen():_.uj(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(I,y){return this.loading?y:!!Object.keys(I).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(I){if(I){I=_.J(I);for(var y=I.next();!y.done;y=I.next())y=y.value,y.youThereRenderer&&Bfy(this.youThereManager_,y.youThereRenderer)}},
setPlaylistData_:function(I){return I||{}},
userEngagementConfigDataChanged_:function(I){if(I)if(I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var y=this.youThereManager_;_.m$()<I.lowEngagementThresholdMs||bXa(y,!0)}else I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.uj(this.hostElement,"yt-autonav-pause-user-engagement",[I])},
isPlayerUnavailable_:function(I,y,D){return!!I&&!this.isVideoPlayable_(I,D)&&!y},
getPlayerOverlays_:function(I){return(I==null?void 0:I.playerOverlays)||null},
isVideoPlayable_:function(I,y){if(!I)return!1;var D=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",F=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",I)||this.get("errorScreen.ypcTrailerRenderer",I);I=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",I);var R;y=y==null?void 0:(R=y.playerOverlayRenderer)==null?void 0:R.gatedActionsOverlayRenderer;return!!D||!!F||!!I||!!y},
hasWatchNextResponseErrorRenderer:function(I){var y=this.getPageContents(I),D,F,R,O,w;return!(I==null?0:(D=I.contents)==null?0:(F=D.twoColumnWatchNextResults)==null?0:F.secondaryResults)&&!!((R=y[0])==null?0:(O=R.itemSectionRenderer)==null?0:(w=O.contents[0])==null?0:w.backgroundPromoRenderer)},
isLiveStreamOffline_:function(I){return I?I.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(I,y,D){var F=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y),R=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];R=_.l("web_no_skip_video_on_verification_checks")?(I==null?void 0:I.status)&&R.includes(I.status):I&&I.status==="AGE_CHECK_REQUIRED";var O=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",I);O==void 0&&(O=!0);!D||this.isVideoPlayable_(I,this.getPlayerOverlays_(y))||
F||R||!O||_.nR().resolve(_.rE).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();POa()},
onPlayerFeedbackStartRequest_:function(I){_.uj(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:I}])},
onPlayerFeedbackArticleRequest_:function(I){_.uj(this.hostElement,"yt-help-dialog-requested",[I])},
onPlayerYpcContentRequest_:function(){var I,y,D,F,R,O,w,v,P=((I=this.data)==null?NaN:(y=I.contents)==null?NaN:(D=y.twoColumnWatchNextResults)==null?NaN:(F=D.secondaryResults)==null?NaN:(R=F.secondaryResults)==null?NaN:(O=R.offerModule)==null?NaN:(w=O.tvfilmOfferModuleRenderer)==null?NaN:(v=w.actionButtons)==null?NaN:v.length)-1;I=[".offerButton.buttonRenderer.",".actionButtons."+(P>=0?P:0)+".buttonRenderer."];y=_.J(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=y.next();!D.done;D=y.next())for(D=D.value,F=_.J(I),R=F.next();!R.done;R=F.next())if(R="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+R.value,R=this.get(R+"navigationEndpoint",this.data)||this.get(R+"serviceEndpoint",this.data)||this.get(R+"command",this.data)){_.zv(R,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(I){_.lj(this.hostElement,"yt-autonav-pause-player",I)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(I){I()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.lj(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(I)},
setPlayerState:function(I){_.oq().dispatch(_.vaP(I))},
onPlayerSubscribe_:function(I){_.uj(this.hostElement,"yt-player-subscribe",[I])},
onPlayerUnsubscribe_:function(I){_.uj(this.hostElement,"yt-player-unsubscribe",[I])},
onPlayerAdYtShowToast_:function(I){_.uj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:I.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(I){if(I)return I},
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(I){return!_.uI("web_watch_move_summary_to_sd")&&!!I},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.l("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var I,y,D,F;this.watchNextSecondaryResults=(I=this.data)==null?void 0:(y=I.contents)==null?void 0:(D=y.twoColumnWatchNextResults)==null?void 0:(F=D.secondaryResults)==null?void 0:F.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var I,y=(I=this.data)==null?void 0:I.engagementPanels;if(y==null?0:y.length){I=null;y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0;if(((F=D.engagementPanelSectionListRenderer)==null?void 0:F.targetId)==="engagement-panel-structured-description"){I=D;break}}var R,O,w;I=(R=I)==null?void 0:(O=R.engagementPanelSectionListRenderer)==null?void 0:(w=O.content)==null?void 0:w.structuredDescriptionContentRenderer;if(I==null?0:I.items){R=
[];O=_.J(I.items);for(w=O.next();!w.done;w=O.next()){w=w.value;if(!_.l("sd_horizontal_list_show_nav_killswitch")){var v=F=D=y=I=void 0,P=void 0,K=(I=w.horizontalCardListRenderer)==null?void 0:(y=I.header)==null?void 0:(D=y.richListHeaderRenderer)==null?void 0:(F=D.navigationButton)==null?void 0:(v=F.buttonRenderer)==null?void 0:(P=v.command)==null?void 0:P.commandExecutorCommand;K&&K.commands&&(K.commands=K.commands.filter(function(r){return!_.u(r,hH1)}))}(!w.expandableVideoDescriptionBodyRenderer&&
!w.videoDescriptionHeaderRenderer||_.l("web_delhi_colorful_sd"))&&R.push(w)}return{items:R}}}},
constructWarning_:function(I){return{text:_.Ug(I),type:"WARNING"}},
isPlaShelfEnabled_:function(I){if((this.get("adPlacements",I)||[]).length)return!0;I=this.get("playerAds",I)||[];return!(!I.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",I[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var I=this;_.lj(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var y=this.getScrollTop()>0;this.gestures_&&(y?this.gestures_.detach():this.gestures_.attach());y!==this.showFullerscreenEdu_&&_.l("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=y,_.oP(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(I.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.lj(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var I=this;this.commentsReady=!1;_.w2.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.y9(_.w2,function(){I.setComments_()},1E3)},
setComments_:function(){if(!_.l("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.V_("cmi");_.w2.cancelJob(this.setCommentsJobId_);var I=this.getPageContents(this.data);if(I&&I.length){I=_.J(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,this.get("itemSectionRenderer.sectionIdentifier",y)==="comment-item-section"){this.comments=y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.lj(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.l("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.l("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.V_("cmc")},
doRemoveComments_:function(){this.comments={};_.l("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.w2.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.w2.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(I,y){var D=_.u(y.endpoint,_.t9);D&&(!(y=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==y.videoId||D.playlistId&&D.playlistId!==y.playlistId||D.index!==void 0&&D.index!==y.index||typeof D.startTimeSeconds!=="number"||(I.stopPropagation(),this.setScrollTop(0),_.oP(this).getPlayerPromise().then(function(F){var R=D.startTimeSeconds;F.seekTo(R);F.wakeUpControls();R<F.getDuration()&&F.playVideo()})))},
updatePlayerStartTime_:function(){var I=sfy();"t"in I&&(I=wUZ(I.t),this.player.seekTo(I,!0))},
updateTitleFromWatchNext:function(I){I=this.getPageContents(I);var y,D;(I=_.rY(I==null?void 0:(y=I[0])==null?void 0:(D=y.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.lj(this.hostElement,"yt-update-title",I)},
updateTitle_:function(I){I=this.get("videoDetails.title",I)||"";_.lj(this.hostElement,"yt-update-title",I)},
syncWithRemoteVideo_:function(I,y,D){if(this.active&&this.player){var F=this.player.getVideoData();if(F.video_id===D&&(D=F.list,_.l("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),F.video_id!==I||D!=y)){var R;_.l("kevlar_player_watch_endpoint_navigation")?R=_.x9B(fLZ(I,y)):R=this.buildWatchEndpoint_(I,y);_.lj(this.hostElement,"yt-navigate",{endpoint:R,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(I,y,D){return _.xK(I,y,D)},
initDclkstatus_:function(){Teo()},
attachWatchPageSkeleton_:function(){var I=document.querySelector("#watch-page-skeleton");if(I){var y=I.querySelector("#primary-info"),D=I.querySelector("#secondary-info"),F=I.querySelector("#related");y&&_.XB(this.hostElement).querySelector("#info-skeleton").appendChild(y);D&&_.XB(this.hostElement).querySelector("#meta-skeleton").appendChild(D);F&&(_.XB(this.hostElement).querySelector("#related-skeleton").appendChild(F),this.watchNextSkeletonEl_=F);_.dM(I)}},
handlePlayerUpdated_:function(){_.oP(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(I,y){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof y!=="undefined"){var D=this.watchNextSkeletonEl_.children,F=I&&I.indexSplices.length?I.indexSplices[0].index:0;I=Math.min(this.watchNextShownItems.length,D.length);y||(F=0,I=D.length);if(!this.ghostCardsEnabled)for(y=F;y<I;y++)D[y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(I){_.l("external_fullscreen")||_.uj(this.hostElement,"yt-player-fullscreen",[I.fullscreen])},
onFullscreenChange_:function(I){this.fullscreen=I;this.gestures_&&this.gestures_.update(this.fullscreen);var y=_.oP(this);y.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.o1())});
this.updateFullBleedElementLocations();I&&(y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(I,y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!y},
computeIsDonationShelfCollapsed_:function(I){return I},
computeShouldShowMerchShelf:function(I,y){return y&&!!I},
computeResponseHasComments:function(I){var y,D,F,R,O;return!!(I==null?0:(y=I.contents)==null?0:(D=y.twoColumnWatchNextResults)==null?0:(F=D.results)==null?0:(R=F.results)==null?0:(O=R.contents)==null?0:O.some(function(w){var v;return(w==null?void 0:(v=w.itemSectionRenderer)==null?void 0:v.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(I,y,D,F){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&F?!1:!!I&&!!Object.keys(I).length&&!y},
identity:_.mJ,onWindowResized_:function(I){this.windowSize_=I;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.l("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(I){var y=this;I&&I.type!=="dataloaded"&&I.type!=="dataupdated"||_.oP(this).getPlayerPromise().then(function(D){var F=D.getPlayerState();F!==5&&F!==0&&(D=1/D.getVideoAspectRatio(),y.videoHeightToWidthRatio_!==D&&(y.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(I){var y=this,D=_.l("kevlar_watch_while_v2")||_.l("web_watch_pip"),F=function(){if(y.watchMetadata){var R,O;(O=(R=y.watchMetadata).resize)==null||O.call(R)}_.oP(y).getPlayerPromise().then(function(w){if(_.uI("kevlar_set_internal_player_size")){if(!D||!y.isMiniplayerActive()){var v=y.calculateCurrentPlayerSize_();w.setInternalSize(v.width,v.height)}}else w.setSize(NaN,NaN);_.l("kevlar_watch_while")&&y.updateWatchWhileScrollThreshold_()})};
I?F():_.k1(_.w2,F)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(I){this.set("data.survey",I.detail)},
onYtShowSurveyCommand_:function(I){this.set("data.survey",_.u(I,Iky).survey)},
onDownloadedVideoDeleted:function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1){if(!y.active||(D=y.playerData)==null||!D.offlineState||y.videoId!==I)return R.return();(F=y.player)==null||F.stopVideo();_.bW().navigatingAwayFromWatchDeletedVideo=!0;_.zv(_.XOe,y.hostElement);return R.yield(_.bW().navigationFinishPromise,2)}_.bW().navigatingAwayFromWatchDeletedVideo=!1;_.Cj(R)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var I;this.theater?I=_.IL(.5625*this.windowSize_.width,480,this.windowSize_.height-185):I=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==I&&(this.watchWhileScrollThreshold_=I,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var I=_.XB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&I){var y=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!I.active&&y&&D>=this.watchWhileScrollThreshold_?(I.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):I.active&&(!y||D<this.watchWhileScrollThreshold_&&!_.o1())&&(I.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var I=_.XB(this.hostElement).querySelector("#secondary-inner");if(I){var y=_.XB(this.hostElement).querySelector("#below"),D=_.XB(this.hostElement).querySelector("#secondary"),F=_.XB(this.hostElement).querySelector("#comments");F&&D&&y&&(this.defaultTwoColumnLayout?(I.appendChild(F),D.appendChild(I)):(y.appendChild(F),fw(y,I)))}}},
isTwoColumnsChanged_:function(I,y){if(I!==!0||y!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(I=_.XB(this.hostElement).querySelector("#secondary-inner"))){y=_.XB(this.hostElement).querySelector("#below");var D=_.XB(this.hostElement).querySelector("#secondary"),F=_.XB(this.hostElement).querySelector("#comments");F&&D&&y&&(this.isTwoColumns_?(I.appendChild(F),D.appendChild(I)):(y.appendChild(F),fw(y,I)))}}else{I=!_.l("web_watch_enable_fs_squeezeback_panels");
y=_.XB(this.hostElement).querySelector("#panels");var R=_.XB(this.hostElement).querySelector("#alerts"),O=_.XB(this.hostElement).querySelector("#shopping-timely-shelf");D=_.XB(this.hostElement).querySelector("#playlist");F=_.XB(this.hostElement).querySelector("#related");var w=_.XB(this.hostElement).querySelector("#donation-shelf"),v=_.XB(this.hostElement).querySelector("#comments"),P=_.XB(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(R=_.XB(this.hostElement).querySelector("#secondary-inner"),
I&&(R.appendChild(y),R.appendChild(D),this.aiCompanionEnabled&&P&&R.appendChild(P)),R.appendChild(w),R.appendChild(F)):(I&&(_.O5(y,R),_.O5(D,R),this.aiCompanionEnabled&&P&&_.O5(P,R),_.O5(O,D)),_.O5(w,R),v&&_.O5(F,v));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.l("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.l("web_watch_enable_fs_squeezeback_panels")&&_.l("web_watch_theater_chat")){var I=_.XB(this.hostElement).querySelector("#chat-container"),y=this.theater&&!this.fullscreen||_.l("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&y?(y=_.XB(this.hostElement).querySelector("#columns"),(I==null?void 0:I.parentElement)!==y&&y.append(I),this.fixedPanels=!0):(this.fixedPanels=
!1,y=_.XB(this.hostElement).querySelector("#playlist"),I&&y?_.LA(I,y):_.tq(new _.g6("Missing element when updating chat location",{"chatContainer defined":!!I,"playlist defined":!!y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(I,y){return _.l("sw_metadata_vis_toggle_ks")?!0:!!I||!!y},
computeForceDarkPanelTheme:function(I){return _.l("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&I:!1},
safeUpdateStyles:function(I){try{_.pg(this.hostElement,I)}catch(y){_.tq(y)}},
videoHeightToWidthRatioChanged_:function(I,y){y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(I){this.videoHeightToWidthRatio_=1/I},
computeIsVerticalVideo_:function(I){return I>=1},
computeIsFourThreeToSixteenNineVideo_:function(I){return I<=.7501&&I>=.5624},
computeIsExtraWideVideo_:function(I){return I<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oP(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oP(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){HXy(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(I){var y=_.bX(I)||0;_.$c(I,y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var I=_.bX("yt-fullerscreen-edu-button-click-count")||0,y=_.bX("yt-fullerscreen-edu-button-shown-count")||0,D=_.kf("external_fullscreen_button_shown_threshold"),F=I>=_.kf("external_fullscreen_button_click_threshold")||y>=D;_.oP(this).getPlayerPromise().then(function(R){R.updateFullerscreenEduButtonSubtleModeState(F)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(I,y){return y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.nR().resolve(_.rE).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var I=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.w2.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.w2.addLowPriorityJob(function(){I.fullHeightPanelPositionUpdateJobId=0;var y=_.XB(I.hostElement).querySelector("#secondary"),D=_.XB(I.hostElement).querySelector("#fixed-secondary");y=y.getBoundingClientRect();var F=y.width;I.swatcherooSqueezeback&&
(F+=I9);if(I.swatcherooSqueezeback){var R=_.XB(I.hostElement).querySelector("#squeezeback-constraining-container");R.style.width=F+"px";R.style.flex="0 0 "+F+"px"}D.style.width=F+"px";D.style.left=y.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var I=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.w2.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.w2.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;var y;!I.isTwoColumns_||I.theater||I.fullscreen?y=460:y=I.calculateNormalPlayerSize_().height;var D=y+"px";_.l("live_chat_taller_height")&&!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.l("live_chat_medium_height")&&!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.l("live_chat_scaled_height")&&!I.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");I.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":y+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":y+"px","--ytd-watch-flexy-comments-panel-max-height":y+"px","--ytd-comments-engagement-panel-content-height":y+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(I){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",I)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.GC(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(I){var y=_.XB(this.hostElement).querySelector("#engagement-panel-scrim");I?y.addEventListener("tap",_.MX(this,this.onEngagementPanelScrimClick_)):y.removeEventListener("tap",_.MX(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(I){if(this.hostElement.contains(I)&&!this.scrollToAnimation_.isAnimating()){var y=I.offsetTop-24;I=I.offsetTop+I.offsetHeight+24;var D=this.getPageScrollingElement(),F=this.getScrollTop(),R=F+D.clientHeight-56;if(y<F+56)y-=56;else if(I>R)y=I-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtSignalActionScrollToComments:function(){var I=this.hostElement.querySelector("#comments");if(I&&!this.scrollToAnimation_.isAnimating()){I=I.offsetTop-56-24;if(_.l("kevlar_comment_teaser_scroll_to_midpoint")&&(I-=_.cB().height/3,I<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,I),500)}},
onYtEngagementPanelVisibleChanged:function(I,y,D){if(this.active&&this.trackEngagementPanelVisibility&&!ota.includes(D)){if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.qr(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var F=_.nR().resolve(_.yR);this.visiblePanelIdentifiers_.forEach(function(R){R!==D&&F.hidePanel({identifier:R})})}this.visiblePanelIdentifiers_.add(D)}y!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(I){return I?"":"watch-active-metadata"},
computeNewMetadataClass:function(I){return I?"watch-active-metadata":""},
computeIsSingleColumn:function(I,y){return y&&!I},
computeFullBleedPlayer:function(I,y,D){return _.l("external_fullscreen")&&I||y||D},
computeDefaultLayout:function(I){return!I},
computeDefaultTwoColumnLayout:function(I,y){return!I&&y},
updatePanelsLocation:function(){if(_.l("web_watch_enable_fs_squeezeback_panels")){var I=_.XB(this.hostElement).querySelector("#below"),y=_.XB(this.hostElement).querySelector("#panels"),D=_.XB(this.hostElement).querySelector("#playlist"),F=_.XB(this.hostElement).querySelector("#chat-container"),R=_.XB(this.hostElement).querySelector("#panels-full-bleed-container"),O=_.XB(this.hostElement).querySelector("#secondary-inner"),w=_.XB(this.hostElement).querySelector("#shopping-timely-shelf"),v=_.XB(this.hostElement).querySelector("#persistent-panel-container");
if(I&&y&&D&&F&&R&&O&&w&&(this.aiCompanionEnabled?v:1)){var P=this.fullscreen||this.theater&&this.iMaxTheaterMode,K=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;K?(K=_.XB(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==K&&K.append(F),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):P?R.appendChild(F):this.isTwoColumns_?fw(O,F):fw(I,F);P?(R.appendChild(y),R.appendChild(D),
this.aiCompanionEnabled&&v&&R.appendChild(v)):(this.isTwoColumns_?(fw(O,y),fw(O,D),this.aiCompanionEnabled&&v&&fw(O,v)):(fw(I,y),fw(I,D),this.aiCompanionEnabled&&v&&fw(I,v)),fw(I,w))}}},
swatcherooUpdatePanelsLocation:function(I,y,D,F,R,O){if(this.is==="ytd-watch-grid"){y=I&&!y;this.swatcherooSplitScroll&&(y?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));D=_.XB(this.hostElement).querySelector("#panels");var w=_.XB(this.hostElement).querySelector("#playlist"),v=_.XB(this.hostElement).querySelector("#persistent-panel-container"),
P=_.XB(this.hostElement).querySelector("#fixed-secondary"),K=_.XB(this.hostElement).querySelector("#fixed-below"),r=_.XB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),N=_.XB(this.hostElement).querySelector("#chat-container");O&&(I?(P.appendChild(D),this.aiCompanionEnabled&&v&&P.appendChild(v)):(K.appendChild(D),this.aiCompanionEnabled&&v&&K.appendChild(v)));R?I?P.appendChild(N):K.appendChild(N):_.LA(N,r);F?I?P.appendChild(w):K.appendChild(w):_.LA(w,
r);this.swatcherooSplitScroll&&(I=_.XB(this.hostElement).querySelector("#secondary"),F=_.XB(this.hostElement).querySelector("#columns"),R=_.XB(this.hostElement).querySelector("#fixed-columns-secondary"),y?R.appendChild(I):F.appendChild(I))}},
computeMetadataSkinnyMode:function(I,y,D){return this.is!=="ytd-watch-grid"?!1:I?D:y},
computeWatchWhilePanelsActive:function(I,y){return I||y},
computeNoBorderOnChat:function(I){return _.l("web_watch_theater_chat_no_border")&&I},
computeLiveChatPresentAndExpanded:function(I,y){return I&&!y},
computePanelExpanded:function(I,y,D){return I||y||D},
computeSqueezeback:function(I,y,D,F){if(_.l("web_watch_enable_fs_squeezeback_panels")){var R=this.iMaxTheaterMode&&this.theater,O=this.theater&&!this.iMaxTheaterMode;return(I||y||D)&&(R||F)||y&&O}},
computeSwatcherooSqueezeback:function(I,y,D){return this.is!=="ytd-watch-grid"||_.l("ww_squeezeback_killswitch")?!1:I&&y&&D},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(I){_.oP(this).getPlayerPromise().then(function(y){var D;(D=y.changeMarkerVisibility)==null||D.call(y,_.u(I,GX).isVisible||!1,_.u(I,GX).entityKeys||[],_.u(I,GX).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(I){this.liveChatCollapsed=I.detail;_.oq().dispatch(ZHo(I.detail));if(!this.liveChatCollapsed&&this.squeezeback){var y=_.nR().resolve(_.yR);this.visiblePanelIdentifiers_.forEach(function(D){y.hidePanel({identifier:D})})}},
onSetPlaylistCollapsed:function(I){_.l("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!I)},
provideRenderingData:function(I,y){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=y;break;case "PRIMARY_INFO":_.l("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=y);this.videoPrimaryInfoRendererValue=y==null?void 0:y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.l("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=y);this.videoSecondaryInfoRendererValue=y==null?void 0:y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
y;break;case "CLARIFICATION":this.clarifyBoxValue=y;break;case "LIVE_CHAT":this.conversationBar=y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=y;break;case "PLAYLIST":this.externalPlaylistData_=y!=null?y:{};break;case "MERCH_SHELF":this.merchShelfValue=y==null?void 0:y.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=y;break;case "TICKET_SHELF":this.ticket=y;break;case "OFFER_MODULE":this.offerModule=y;break;case "LIMITED_STATE":this.limitedStateValue=
y;break;case "DONATION_SHELF":this.donation=y;break;case "ALERTS":this.alertsValue=y;break;case "COMMENTS":this.comments=y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
y;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=y;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=y}},
toggleCinematicsActive:function(I){this.cinematicsActive=I},
isMiniplayerActive:function(){return _.nR().resolve(_.OI).isMiniplayerActive()}}];var HUe=function(I,y){var D;return((D=I.prefixMapping)==null?0:D[y])?I.prefixMapping[y]:I.SHARED_RENDERERS_.hasOwnProperty(y)?"yt":I.prefix},g0={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}};g0.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.l("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
g0.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};g0.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};g0.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
g0.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)"}};
g0.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};
g0.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};
g0.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};
g0.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.l("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
g0.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"}};g0.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};g0.TOAST={component:null,properties:{}};var ezb=new function(I,y,D){this.supportedPopups=I;this.navigationEndpointPopupMap=y;this.popupTypeMap=D;this.supportedPopups=I;this.navigationEndpointPopupMap=y;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:_.l("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"}),T0g=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,unifiedSharePanelRenderer:!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$21533_popupConfig=g0;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 sMy=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.LN.getInstance()},IS=function(I,y){var D=I.pageNameToElement.get(y);
if(!D){switch(y){case "watch":var F=_.l("web_watch_force_learning_journey_for_testing")?_.qy("ytd-watch-learning-journey"):_.l("kevlar_watch_fixie")?_.qy("ytd-watch-fixie"):_.l("kevlar_watch_grid")?_.qy("ytd-watch-grid"):_.qy("ytd-watch-flexy");break;case "learning_journey_watch":F=_.qy("ytd-watch-learning-journey");break;case "shorts":F=_.qy("ytd-shorts");break;case "search":F=_.qy("ytd-search");break;case "channel":F=_.qy("ytd-browse");F.pageSubtype="channels";break;case "trending":F=_.qy("ytd-browse");
F.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":F=
_.qy("ytd-browse");F.pageSubtype=y;break;case "browse":F=_.qy("ytd-browse");break;default:_.tq(new _.g6("Error getting page element for type",y))}D=F;I.pageNameToElement.set(y,D)}return D};
sMy.prototype.preparePage=function(I,y,D){D&&(I=_.zF(D)||I);if(I!=="watch"&&I!=="learning_journey_watch"){var F=this.elementPoolPopulator,R=I;R!=F.targetPage_&&F.pendingPages_.indexOf(R)>-1&&(F.targetPage_&&(F.pendingPages_.unshift(F.targetPage_),F.abort()),D2C(F,R),_.Iue(F,R))}if((F=IS(this,I))||!_.u(D,_.lK)){F.isAttached||F===y||(F.hidden=!0);if(!F.data&&(I!=="watch"&&I!=="learning_journey_watch"||!_.l("swatcheroo_page_pool_dont_provide_filler_data"))){var O;if(I=(O=_.Pi("FILLER_DATA",{})[I])==
null?void 0:O.response)F.data=I}return F}};var V_y=function(I){this.JSC$33348_clientRoot=I;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Rpg,"yt-end-playlist-command":Oxo,"yt-recover-playlist-command":Jsa,"yt-refresh-playlist-command":SRa,"yt-playlist-remove-videos-action":ww1};_.qM(_.uK.getInstance(),this.playlistHandlerActionMap,this.JSC$33348_clientRoot);hdQ()},ZUG;var yw=function(I,y,D){this.apiKey=I;this.endpoint=y;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=y==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
y==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||y==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new V71};
_.L=yw.prototype;
_.L.start=function(I){if(this.state===0)if(this.isOnline()){I.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=I.supportsHttpHeadersOverwriteParam);I.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=I.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.s$("voice_assistant");_.ZL("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=I.languageCode||"en-US";this.supportsCrossDomainXhr=I.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=I.youtubeAssistantRequest||null;this.listeningHandler=I.listeningHandler||this.listeningHandler;this.audioDetectedHandler=I.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=I.stopHandler||this.stopHandler;this.completeHandler=I.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=I.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=I.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
I.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=I.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=I.accessToken;this.additionalHeaders=I.additionalHeaders||{};var y;this.prefetchResponseTimeoutMs=(y=I.prefetchResponseTimeoutMs)!=null?y:this.prefetchResponseTimeoutMs;gUG(this);this.startAudio();Ila(this)}else this.errorHandler("OFFLINE")};
_.L.stop=function(I){var y=I===void 0?{}:I;I=y.logCancel===void 0?!0:y.logCancel;var D=y.logMicClosed===void 0?!0:y.logMicClosed;var F=y.handleError===void 0?!0:y.handleError;y=y.handleStop===void 0?!0:y.handleStop;this.state!==0&&(I&&Dl("voz_cx"),FV(this,{logMicClosed:D,handleStop:y}),F&&this.errorHandler("ABORTED"))};
_.L.getState=function(){return this.state};
_.L.isSupported=function(){return!0};
_.L.stopAudio=function(I){(I===void 0||I)&&Dl("voz_mf")};
_.L.startAudio=function(){Dl("voz_vp");return _.Xs(null)};
var ynG=function(I,y){I.channelOpen&&(I.state!==2&&(I.state=2,Dl("voz_ss"),I.listeningHandler()),y=new Uint8Array(y),y='{ "audioIn": "'+_.VB(y)+'" }',I.channel.send(y))},FV=function(I,y){var D=y===void 0?{}:y;
y=D.logMicClosed===void 0?!0:D.logMicClosed;D=D.handleStop===void 0?!0:D.handleStop;I.vozEndOfDataTimeout>-1&&(clearTimeout(I.vozEndOfDataTimeout),I.vozEndOfDataTimeout=-1);DAQ(I);I.stopAudio(y);I.channel&&(I.channelOpen=!1,I.manuallyClosedChannel=!0,I.channel.close(),I.channel=void 0);I.transcribedSpeechResults=[];I.state=0;D&&I.stopHandler()},gUG=function(I){var y={httpHeadersOverwriteParam:I.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},I.additionalHeaders,I.accessToken&&I.isUsingVoz?{Authorization:"Bearer "+I.accessToken}:{"x-goog-api-key":I.apiKey}),supportsCrossDomainXhr:I.supportsCrossDomainXhr};I.channel=new jK(I.endpoint,y);I.channel.open();_.bV(I.channel,"w",function(){var D=I.channel,F=D.send,R=I.isUsingVoz?"PLACEHOLDER":"example";R={config:{dialogStateIn:{languageCode:I.languageCode},deviceConfig:{deviceId:R,deviceModelId:R},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!I.isUsingVoz)R.config.requestType=4;else if(I.isUsingVoz&&I.youtubeAssistantRequest){var O=JSON.stringify(I.youtubeAssistantRequest);R.config.internalIn={youtubeAssistantS3InputJson:O}}F.call(D,R);I.channelOpen=!0;I.manuallyClosedChannel=!1});
_.bV(I.channel,"x",function(){I.manuallyClosedChannel||(I.channelOpen=!1,I.channel=void 0,FV(I))});
_.bV(I.channel,"z",function(D){if(D.data){DAQ(I);for(var F=0;F<D.data.length;F++){var R=I,O=D.data[F],w=O.speechResults;if(w)a:{var v=[];O=[];var P=!1;w=_.J(w);for(var K=w.next();!K.done;K=w.next()){K=K.value;if(K.noSpeech){FV(R);R.errorHandler("NO_SPEECH");break a}K.transcript!==void 0&&K.stability!==void 0&&(K.stability<R.confidenceThreshold&&(P=!0),P?O.push(K.transcript):v.push(K.transcript))}if(v.length!==0||O.length!==0)v=v.join(" "),O=O.join(" "),R.receivedEndOfUtterance&&!R.isUsingVoz?R.isUsingVoz||
R.completeHandler([v,O]):(P=R,w=v,K=O,Dl("voz_sf"),P.transcriptionUpdateHandler(w,K),P.transcribedSpeechResults=[w,K]),R.receivedEndOfUtterance&&(Dl("voz_eou"),R.transcriptionCompleteHandler([v,O]),R.isUsingVoz&&(R.prefetchResponseTimeoutMs===0?FV(R,{logMicClosed:!1,handleStop:!0}):R.prefetchResponseTimeoutMs>0&&F3o(R)))}else R.isUsingVoz&&(O==null?0:O.internalOut)?(O=JSON.parse(O.internalOut.youtubeAssistantS3OutputJson),O.userHasOptedInToVaa||O.vaaConsent?R.vaaConsentUpdateHandler(!!O.userHasOptedInToVaa,
!!O.vaaConsent):(Rua(R),O&&(v=R.transcribedSpeechResults,Dl("voz_rqf"),R.completeHandler(v,O)))):O.eventType==="END_OF_UTTERANCE"?R.receivedEndOfUtterance=!0:(Dl("voz_err"),R.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.tq(Error("Pl")))}}});
_.bV(I.channel,"y",function(D){FV(I);switch(D.status){case 1:D="WEBCHANNEL_NETWORK_ERROR";break;case 2:D="WEBCHANNEL_SERVER_ERROR";break;default:D="WEBCHANNEL_UNKNOWN_ERROR"}I.errorHandler(D);I.logError(Error(D))})};
yw.prototype.logError=function(I){_.vu(I)};
yw.prototype.isOnline=function(){return!0};
var F3o=function(I){Rua(I);I.prefetchResponseSetTimeoutId=setTimeout(function(){FV(I,{logMicClosed:!1,handleStop:!0})},I.prefetchResponseTimeoutMs)},Rua=function(I){I.prefetchResponseSetTimeoutId>-1&&(clearTimeout(I.prefetchResponseSetTimeoutId),I.prefetchResponseSetTimeoutId=-1)},Ila=function(I){DAQ(I);
I.noResponseReceivedTimeout=window.setTimeout(function(){FV(I);I.errorHandler("NO_SPEECH")},11E3)},DAQ=function(I){I.noResponseReceivedTimeout>-1&&(window.clearTimeout(I.noResponseReceivedTimeout),I.noResponseReceivedTimeout=-1)},Dl=function(I){_.V_(I,void 0,"voice_assistant")};var RS=function(){yw.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.E(RS,yw);RS.prototype.isSupported=function(){return tza()};
RS.prototype.startAudio=function(){var I=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.eE(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(F){OyC(I,F)};
this.processor.connect(this.audioContext.destination);var y=function(F){I.stream=F;if(!I.audioContext)return _.Xs(null);F=I.audioContext.createMediaStreamSource(F);I.processor&&F.connect(I.processor);return _.Xs(null)},D={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?y(this.stream):(D=navigator.mediaDevices.getUserMedia(D))?D.then(y).catch(function(F){FV(I);F.name&&F.name==="NotAllowedError"?I.errorHandler("NO_MICROPHONE_PERMISSION"):(I.errorHandler("AUDIO_ERROR"),I.logError(F));return _.eE(null)}):(FV(this),this.errorHandler("AUDIO_ERROR"),_.tq(Error("Ql")));
return yw.prototype.startAudio.call(this)};
RS.prototype.stopAudio=function(I){I=I===void 0?!0:I;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(y){y.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;yw.prototype.stopAudio.call(this,I)};
RS.prototype.isOnline=function(){return navigator.onLine};
var OyC=function(I,y){if(I.audioContext)if(window.OfflineAudioContext){var D=I.audioContext.sampleRate,F=y.inputBuffer.getChannelData(0);y=new window.OfflineAudioContext(1,F.length,16E3);for(var R=y.createBuffer(1,F.length,D),O=R.getChannelData(0),w=0,v=0;v<F.length;v++)O[v]=F[v],w+=O[v]*O[v];!I.audioDetected&&Math.sqrt(w/F.length)>.01&&(I.audioDetected=!0,I.audioDetectedHandler());F=y.createBufferSource();F.buffer=R;F.connect(y.destination);F.start(0);y.oncomplete=function(P){P=P.renderedBuffer.getChannelData(0);
for(var K=Math.floor(16384E3/D),r=new Int16Array(K),N=0;N<K;++N)r[N]=Math.max(-1,Math.min(1,P[N]))*32767;ynG(I,r.buffer)};
y.startRendering()}else L3R(I,y)},L3R=function(I,y){var D=I.audioContext.sampleRate,F=y.inputBuffer.getChannelData(0),R=Math.floor((D+8E3)/16E3);
D=F.length/R;y=new Float32Array(D);for(var O=0;O<D;++O)y[O]=F[O*R];F=new Int16Array(D);for(R=0;R<D;++R)F[R]=Math.max(-1,Math.min(1,y[R]))*32767;ynG(I,F.buffer)};var Jn1={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var w8T=function(){this.JSC$21598_audioEnabled=!0;this.audioFeedbackHolder={}};
w8T.prototype.isPlaying=function(I){return I.currentTime>0&&!I.paused&&!I.ended&&I.readyState>2};
var vlG=function(I){for(var y=_.J(Object.values(Jn1)),D=y.next();!D.done;D=y.next())D=D.value,I.audioFeedbackHolder[D]=new Audio,I.audioFeedbackHolder[D].src="/s/search/audio/"+D+".mp3",I.audioFeedbackHolder[D].load()},OL=function(I,y){if(I.JSC$21598_audioEnabled!==!1&&y in I.audioFeedbackHolder){for(var D=_.J(Object.values(I.audioFeedbackHolder)),F=D.next();!F.done;F=D.next())F=F.value,I.isPlaying(F)&&F.pause();
I.audioFeedbackHolder[y].currentTime=0;I.audioFeedbackHolder[y].play().catch(function(){})}};var SLa=function(I,y){var D=this;this.store=I;this.service=y;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 w8T;var F;(F=this.audioPlayer)==null||vlG(F)};
_.L=SLa.prototype;_.L.getService=function(){return this.service};
_.L.isEnabled=function(){return!!this.service};
_.L.isSupported=function(){var I;return(I=this.service)==null?void 0:I.isSupported()};
_.L.start=function(){var I=this,y,D,F,R,O,w,v,P,K,r,N,h,x;return _.S(function(q){switch(q.nextAddress){case 1:I.store.dispatch(g_Y("",""));if(!navigator.onLine)return I.setState("offline"),q.return();window.addEventListener("offline",I.handleOfflineEvent);I.stream=null;if(!I.permissionsSupported){q.jumpTo(2);break}_.nj(q,3);return q.yield(tGa(I),5);case 5:y=q.yieldResult;if(!y)return(D=I.audioPlayer)==null||OL(D,"failure"),q.return();I.service.stream=I.stream;I.setState("listening");_.lZ(q,2);break;
case 3:_.dj(q),I.permissionsSupported=!1;case 2:F={context:_.i0e(_.zm())},F.youtubeAssistantParams={searchParams:{inlineSearchResponse:I.enableInlineSearchResponse}},R=function(X,f){I.store.dispatch(IB8("transcribing"));I.store.dispatch(g_Y(X,f))},O=function(){var X;
(X=I.audioPlayer)==null||OL(X,"open");I.setState("listening")},w=function(){I.setState("transcribing")},v=function(X){I.setErrorState(X)},P=function(X,f){var m;
(m=I.audioPlayer)==null||OL(m,"success");f&&(_.l("kevlar_voice_search_inline_search")&&(I.responseProcessor=_.nR().resolve(_.VyW),I.responseProcessor&&(m=f.navigationAction,X=f.prefetchedSearchResponse,m&&X&&(m=(new _.MTR).JSC$14452_getStoreKey(m),_.vn(I.responseProcessor,X,m)))),I.JSC$21616_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",f))},K=function(){window.removeEventListener("offline",I.handleOfflineEvent)},r=_.Z0q(!1),N=r.Authorization!=null,h=I.enableFirstPartyAuth||
I.enableFPAForSignedInUsers&&N?r:{"X-Goog-Visitor-Id":r["X-Goog-Visitor-Id"]},x={completeHandler:P,
errorHandler:v,listeningHandler:O,audioDetectedHandler:w,stopHandler:K,transcriptionUpdateHandler:R,youtubeAssistantRequest:F,languageCode:Pmg(),additionalHeaders:h,supportsCrossDomainXhr:I.enableFirstPartyAuth||I.enableFPAForSignedInUsers&&N,supportsHttpHeadersOverwriteParam:!I.disableHttpHeadersOverwrite},I.service.start(x),_.Cj(q)}})};
_.L.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.L.reset=function(){this.store.dispatch(_.Ec({type:"RESET_VOICE_SEARCH_STATE"}))};
_.L.setState=function(I){this.store.dispatch(IB8(I))};
_.L.setErrorState=function(I){switch(I){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var y;(y=this.audioPlayer)==null||OL(y,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)tGa(this);else{var D;(D=this.audioPlayer)==null||OL(D,"failure");this.setState("permission-denied")}break;case "ABORTED":var F;(F=this.audioPlayer)==null||OL(F,"no_input");break;default:var R;(R=this.audioPlayer)==
null||OL(R,"no_input");this.setState("timeout")}};
var tGa=function(I){var y,D;return _.S(function(F){switch(F.nextAddress){case 1:return F.yield(navigator.permissions.query({name:"microphone"}),2);case 2:y=F.yieldResult;if(y.state==="granted")return F.return(!0);if(y.state==="denied")return I.setState("permission-denied"),F.return(!1);I.setState("permission");D={audio:{sampleSize:16,channelCount:1},video:!1};_.nj(F,3);return F.yield(navigator.mediaDevices.getUserMedia(D),5);case 5:return I.stream=F.yieldResult,F.return(!0);case 3:return _.dj(F),
I.setState("permission-denied"),F.return(!1)}})},Pmg=function(){var I=_.Pi("INNERTUBE_CONTEXT_HL"),y=_.Pi("INNERTUBE_CONTEXT_GL");
return I.indexOf("-")>-1?I:I+"-"+y};var K3g=function(I,y,D){SLa.call(this,y,D);this.JSC$21616_actionRouter=I;this.enableInlineSearchResponse=_.l("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.l("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.l("kevlar_voice_search_enable_fpa_signedin_users")},UAY;
_.E(K3g,SLa);
var rnb=function(){if(!UAY){var I="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.l("kevlar_voice_search_auth_enabled")||_.l("kevlar_voice_search_use_yt_endpoint")?I="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.l("kevlar_voice_search_use_fp_endpoint")&&(I="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");UAY=
new K3g(_.uK.getInstance(),_.oq(),new RS(_.Pi("VOZ_API_KEY"),I,.5))}return UAY};var jSC=function(I){this.JSC$21620_clientRoot=I;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$21620_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));I=_.J(this.eventListeners);for(var y=I.next();!y.done;y=I.next()){var D=
_.J(y.value);y=D.next().value;D=D.next().value;D=_.J(D);for(var F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;y.addEventListener(F,R)}}_.qM(_.uK.getInstance(),this.autonavPauseActionMap,this.JSC$21620_clientRoot)},olb,NWY=function(I){return _.l("kevlar_autonav_popup_filtering")?(I=_.jv(I))?I.hasAttribute("prevent-autonav"):!0:!0};
_.L=jSC.prototype;_.L.onIronOverlayOpened=function(I){NWY(I)&&(this.autonavPauseReasons.overlayOpen=!0,Ly(this))};
_.L.onIronOverlayClosed=function(I){NWY(I)&&(this.autonavPauseReasons.overlayOpen=!1,Ly(this))};
_.L.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Ly(this)};
_.L.onYtAutonavPauseBlur=function(){var I=this;_.w2.addJob(function(){hub()||(I.autonavPauseReasons.inputBoxFocus=!1,Ly(I))},8,0)};
_.L.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Ly(this)};
_.L.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Ly(this)};
_.L.onYtAutonavPauseScroll=function(){var I=_.nR().resolve(_.ja);I.isOnWatch()&&(I=I.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=I.getBoundingClientRect().top<-200,Ly(this))};
_.L.onYtAutonavPauseUserEngagement=function(I){var y=this;if(_.l("user_engagement_enable_autoplay_pause_feature")){var D=Number(I.lowEngagementThresholdMs);isNaN(D)||D<=0||I.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.nR().resolve(_.cU),_.m$()<D?_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):O4T()?(this.userEngagementCsn=_.VO(),_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Ly(this)):yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Iyq(Error("Rl`"+JSON.stringify(I)))};
_.L.onYtAutonavPausePlayer=function(I){this.autonavPauseReasons.requestedByPlayer=!!I.detail;Ly(this)};
_.L.onYtAutonavVisibilityChanged=function(){var I=this,y,D,F;return _.S(function(R){if(R.nextAddress==1)return(y=_.NY())?R.yield(y.getPlayerPromise(),2):R.return();D=R.yieldResult;F=D.isMuted()||D.getVolume()===0;I.autonavPauseReasons.backgroundAndMute=hub()&&F;Ly(I);_.Cj(R)})};
_.L.onYtAutonavPausePlayerEnded=function(){_.nR().resolve(_.cU);var I=144E5;_.l("user_engagement_enable_autoplay_pause_feature")||_.l("is_part_of_any_user_engagement_experiment")||(I=45E5);this.autonavPauseReasons.longIdle=_.m$()>I;xAe(this);Ly(this)};
_.L.onYtUserActivity=function(){var I=this;this.autonavPauseReasons.userEngagement&&(_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",I.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Ly(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",I.userEngagementCsn);_.wI()}),this.autonavPauseReasons.youthereLactExperiment=!1,Ly(this));
this.autonavPauseReasons.longIdle&&!_.l("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Ly(this))};
var hub=function(){var I=window.document.visibilityState;return!(!I||I==="visible")},Ly=function(I){for(var y=!1,D=_.J(Object.values(I.autonavPauseReasons)),F=D.next();!F.done;F=D.next())F=F.value,y=y||F;
y?_.X4.getInstance().pause(I.autonavPauseReasons):(I=_.X4.getInstance(),I.autonavState_==3?(I.setState(2,!1,!1),I.autonavPauseReason_=void 0):I.autonavState_==1&&(I.disabledAutonavPauseReason_=void 0))},xAe=function(I){var y=!1;
if(_.l("enable_autoplay_pause_by_lact")){_.nR().resolve(_.cU);y=_.kf("autoplay_pause_by_lact_sec")*1E3;var D=_.kf("autoplay_pause_by_lact_sampling_fraction");(y=_.m$()>=y&&Math.random()<D)&&!O4T()&&(_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),y=!1)}y!==I.autonavPauseReasons.youthereLactExperiment&&(I.autonavPauseReasons.youthereLactExperiment=y)&&(I.userEngagementCsn=_.VO(),_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",I.userEngagementCsn)}));
I.autonavPauseReasons.userEngagement&&_.y9(_.w2,function(){yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",I.userEngagementCsn)})};
jSC.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(yN("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.wI(),this.autonavPauseReasons.youthereLactExperiment=!1,Ly(this));this.autonavPauseReasons.userEngagement&&(yN("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Ly(this))};
jSC.prototype.onYtEngagementPanelVisibleChanged=function(I){I.detail&&I.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=I.detail.visible,Ly(this))};
jSC.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var llG=_.LV.persistentPanelVisibleSelector,Jn=function(){var I=_.k.apply(this,arguments)||this;I.miniGuideVisible=!1;I.guideOpened=_.l("disable_initial_guide_state_fix")?!1:I.canFitPersistentGuide(I.initialBodyClientWidth);I.guideUserStateOpened=I.getInitialGuideUserStateOpened();I.isFullscreenShorts=!1;I.miniGuideWidthThreshold=_.kf("kevlar_mini_guide_width_threshold",791);I.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
I.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");I.persistentGuideBlockedPagePathRegex=new RegExp(I.persistentGuideBlockedPagesPatterns.join("|"));I.animationTransitionDuration=0;I.lateDataResolver=_.vS();I.initialGuideDataFetchFailed=!1;I.initialLoad=!0;I.guideRenderers=new Set;I.isMouseOverGuide=!1;I.sessionUserManuallyExpandedGuideState=
!1;I.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return I};
_.E(Jn,_.k);_.L=Jn.prototype;_.L.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.L.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.L.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.L.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.L.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.L.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.L.ready=function(){_.nR().addProvider({provide:_.Py,useValue:this.hostElement})};
_.L.attached=function(){var I=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.MX(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.MX(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.MX(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.MX(this,this.onYtGuideShow));_.YC(this,function(){I.animationTransitionDuration=200})};
_.L.detached=function(){document.removeEventListener("yt-navigate-finish",_.MX(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.MX(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.MX(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.MX(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.MX(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.MX(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.MX(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.L.getData=function(){return this.data};
_.L.load=function(){var I=this,y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=I.lateDataResolver.resolve.bind(I),O.return(I.lateDataResolver.promise);if(window.ytInitialGuideData)return y=_.vS(),y.resolve(window.ytInitialGuideData),O.return(y.promise);F=!1;_.nj(O,2);return O.yield(I.fetchGuideData(),4);case 4:D=O.yieldResult;_.lZ(O,3);break;case 2:R=_.dj(O),R.message==="Returned error"&&(F=
!0);case 3:if(D)return O.return(D);I.onYtGuideClose();F||(I.initialGuideDataFetchFailed=!0);return O.return(I.lateDataResolver.promise)}})};
_.L.fetchGuideData=function(){var I=this,y,D,F,R,O,w,v;return _.S(function(P){if(P.nextAddress==1)return y=_.nR(),I.guidePromise||(D=y.resolve(_.iX),I.guidePromise=_.wP(D,GIT)),P.yield(I.guidePromise,2);if(P.nextAddress!=3)return F=P.yieldResult,R=y.resolve(_.Ig),P.yield(R(),3);(O=P.yieldResult)&&((w=F)==null?void 0:(v=w.responseContext)==null?void 0:v.maxAgeSeconds)!==0&&O.put("service:guide:fallback",new _.cy({innertubeResponse:F}));return P.return(F)})};
_.L.initializeGuideDataIfEmpty=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1){if(!I.initialGuideDataFetchFailed||I.data)return F.return();_.nj(F,2);return F.yield(I.fetchGuideData(),4)}if(F.nextAddress!=2)return(y=F.yieldResult)&&I.lateDataResolver.resolve(y),_.lZ(F,0);D=_.dj(F);_.tq(D);_.Cj(F)})};
_.L.initializeGuideData=function(){var I=this,y,D;return _.S(function(F){switch(F.nextAddress){case 1:return _.mP(PgR(),{mainAppWeb:_.tt()}),_.nj(F,2),F.yield(I.load(),4);case 4:I.data=F.yieldResult;_.lZ(F,3);break;case 2:y=_.dj(F),_.Mv(PgR(),"FAILURE"),_.tq(new _.g6("Guide data not present",{errorMessage:y.message}));case 3:D=I.data&&I.data.items&&I.data.items.length>0?"SUCCESS":"FAILURE",D==="FAILURE"&&_.tq(new _.g6("Guide data.items empty")),_.Mv(PgR(),D),_.Cj(F)}})};
_.L.setGuideData=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1)return y.disabled?R.return():y.data?(I.data=y.data,y.guideRenderers.add(I),R.return()):R.yield(y.initializeGuideData(),2);y.graftGuideToPage();D=_.KR("IS_HOMEPAGE_COLD")?"eop":void 0;_.l("disable_element_pool_populator")?y.setGuideDataAfterInit(I):(F=new _.EY(1,D),_.G1(F,y.setGuideDataAfterInit.bind(y,I)));_.Cj(R)})};
_.L.setGuideDataAfterInit=function(I){I.data=this.data;I.markDirty();this.guideRenderers.add(I);_.wy(function(){_.V_("gle")});
_.YC(this,function(){_.V_("gpe")})};
_.L.graftGuideToPage=function(){if(this.data){var I=this.data&&this.data.trackingParams;I&&(I=_.AC(I),_.c0(_.W4(),I))}};
_.L.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.MX(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.L.onDrawerOpenedChanged=function(I,y){!y.value&&this.guideOpened&&(this.guideOpened=!1)};
_.L.onYtGuideToggle=function(I){var y=this.guideOpened;this.guideOpened=!y;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var D=_.a1();_.cg(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;D.save()}this.updateGuideDrawerElementState();if(this.guideElement){var F;this.guideOpened&&((F=I.detail)==null?0:F.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.MX(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.MX(this,this.onAppDrawerTransitioned))}y||this.initializeGuideDataIfEmpty()};
_.L.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.MX(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.E6(this.guideElement)};
_.L.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.MX(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(bHe(this.guideOpened))};
_.L.guidePersistentAndVisibleChanged=function(){_.qr(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.L.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.L.miniGuideVisibleChanged=function(){_.qr(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.L.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(bHe(this.guideOpened)),this.initialLoad=!1);_.qr(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.L.activeEndpointChanged=function(){_.qr(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.L.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.L.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()};
_.L.cachedClientWidthChanged=function(){this.updateGuideState()};
_.L.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.L.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var I=this.canFitPersistentGuide(this.cachedClientWidth);I?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=I}this.updateGuideDrawerElementState()};
_.L.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.L.getGuideOpened=function(){return this.guideOpened};
_.L.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.L.getActiveEndpoint=function(){return this.activeEndpoint};
_.L.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.L.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&&_.lj(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.L.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.l("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.L.handleGuideMouseLeave=function(){var I=this;!this.sessionUserManuallyExpandedGuideState&&_.l("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.v4(this,"handleGuideMouseLeave",function(){I.isMouseOverGuide||!I.guideOpened||I.miniGuideVisible||(I.guideOpened=!1,I.updateGuideDrawerElementState())},100))};
_.L.computeGuidePersistentAndVisible=function(){var I=this;_.v4(this,"computeGuidePersistentAndVisible",function(){I.guidePersistentAndVisible=I.guideOpened&&I.guidePersistent;I.guideIsVisibleButNotPersistent=!(!I.guideOpened||I.guidePersistent)})};
_.L.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.L.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.L.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.L.startLoadingWatch=function(){this.closeGuide()};
_.L.startLoadingShorts=function(){_.l("web_hide_guide_on_shorts")&&this.closeGuide()};
_.L.onYtNavigateFinish=function(I,y){if(!_.fz||y){this.activeEndpoint=y.endpoint;this.pageType=y.pageType;this.pageUrl=y.response.url;var D,F;I=(F=_.u((D=y.endpoint)==null?void 0:D.commandMetadata,_.nE))==null?void 0:F.url;!this.pageUrl&&I&&(this.pageUrl=I);_.l("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.L.getVisibleGuideRenderer=function(){for(var I=_.J(this.guideRenderers),y=I.next();!y.done;y=I.next())if(y=y.value,this.miniGuideVisible&&y.is==="ytd-mini-guide-renderer"||this.guideOpened&&y.is==="ytd-guide-renderer")return y;return null};
_.L.markGuideRendererDirty=function(I){if(I){typeof I.markDirty==="function"&&I.markDirty();I=_.J([].concat(_.Td(_.XB(I).children)));for(var y=I.next();!y.done;y=I.next())this.markGuideRendererDirty(y.value)}};
_.L.persistentGuideEnabled=function(I,y){if(!y||I==="watch"||I==="settings"||I==="shorts"&&this.isFullscreenShorts||_.l("reels_web_disable_persistent_guide_shorts")&&I==="shorts")return!1;var D=_.iP(y)||"";return _.l("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(F){return D===F}):!this.persistentGuideBlockedPagePathRegex.test(D)};
_.L.canFitPersistentGuide=function(I){var y=_.kf("kevlar_persistent_guide_width_threshold",1312);return y===-1||_.l("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:I>this.calculateGuideThreshold(y)};
_.L.calculateGuideThreshold=function(I){return _.l("enable_ai_companion")?I+(this.persistentPanelVisible?400:0):I};
_.L.canFitMiniGuide=function(I){return this.miniGuideWidthThreshold===-1?!1:I>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.L.onResize=function(){var I=this;_.v4(this,"calculateGuideState",function(){I.onResizeDebounced()})};
_.L.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.L.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.L.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.L.getInitialGuideUserStateOpened=function(){return _.l("web_force_mini_guide_default")?!1:!_.a1().getFlag(109)};
_.mD.Object.defineProperties(Jn.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Pi("initialBodyClientWidth")||window.innerWidth}}});
Jn.prototype.onResize=Jn.prototype.onResize;Jn.prototype.observeForMiniGuideVisible=Jn.prototype.observeForMiniGuideVisible;Jn.prototype.computeGuidePersistentAndVisible=Jn.prototype.computeGuidePersistentAndVisible;Jn.prototype.persistentPanelVisibleChanged=Jn.prototype.persistentPanelVisibleChanged;Jn.prototype.cachedClientWidthChanged=Jn.prototype.cachedClientWidthChanged;Jn.prototype.resetGuide=Jn.prototype.resetGuide;Jn.prototype.activeEndpointChanged=Jn.prototype.activeEndpointChanged;
Jn.prototype.guideOpenedChanged=Jn.prototype.guideOpenedChanged;Jn.prototype.miniGuideVisibleChanged=Jn.prototype.miniGuideVisibleChanged;Jn.prototype.guideIsVisibleButNotPersistentChanged=Jn.prototype.guideIsVisibleButNotPersistentChanged;Jn.prototype.guidePersistentAndVisibleChanged=Jn.prototype.guidePersistentAndVisibleChanged;Jn.prototype.onGuideElementChanged=Jn.prototype.onGuideElementChanged;Jn.prototype.onGuidePersistentChanged=Jn.prototype.onGuidePersistentChanged;
Jn.prototype.onRenderGuideChanged=Jn.prototype.onRenderGuideChanged;Jn.prototype.onActiveEndpointChanged=Jn.prototype.onActiveEndpointChanged;Jn.prototype.onMiniGuideVisibleChanged=Jn.prototype.onMiniGuideVisibleChanged;Jn.prototype.onGuideIsVisibleButNotPersistentChanged=Jn.prototype.onGuideIsVisibleButNotPersistentChanged;Jn.prototype.onGuidePersistendAndVisibleChanged=Jn.prototype.onGuidePersistendAndVisibleChanged;
_.W([_.Q(_.sD),_.A("design:type",Object)],Jn.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Jn.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"disabled",void 0);_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"guidePersistentAndVisible",void 0);_.W([_.ke("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onGuidePersistendAndVisibleChanged",null);_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.ke("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"miniGuideVisible",void 0);_.W([_.ke("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onMiniGuideVisibleChanged",null);_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"forceMiniGuideClose",void 0);
_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"activeEndpoint",void 0);_.W([_.ke("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onActiveEndpointChanged",null);_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"renderGuide",void 0);_.W([_.ke("renderGuide"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onRenderGuideChanged",null);
_.W([_.M({selector:llG}),_.A("design:type",Boolean)],Jn.prototype,"persistentPanelVisible",void 0);_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"guideOpened",void 0);_.W([_.M(),_.A("design:type",Boolean)],Jn.prototype,"guidePersistent",void 0);_.W([_.ke("guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onGuidePersistentChanged",null);_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"guideUserStateOpened",void 0);
_.W([_.M(),_.A("design:type",String)],Jn.prototype,"pageUrl",void 0);_.W([_.M(),_.A("design:type",String)],Jn.prototype,"pageType",void 0);_.W([_.M(),_.A("design:type",Number)],Jn.prototype,"cachedClientWidth",void 0);_.W([_.M(),_.A("design:type",Object)],Jn.prototype,"guideElement",void 0);_.W([_.M({selector:_.u9}),_.A("design:type",Object)],Jn.prototype,"isFullscreenShorts",void 0);
_.W([_.ke("guideElement"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onGuideElementChanged",null);_.W([_.ke("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"guidePersistentAndVisibleChanged",null);
_.W([_.Bp("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"guideIsVisibleButNotPersistentChanged",null);_.W([_.ke("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"miniGuideVisibleChanged",null);_.W([_.Bp("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"guideOpenedChanged",null);
_.W([_.ke("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"activeEndpointChanged",null);_.W([_.Bp("pageUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"resetGuide",null);_.W([_.Bp("cachedClientWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"cachedClientWidthChanged",null);
_.W([_.Bp("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"persistentPanelVisibleChanged",null);_.W([_.ke("guideOpened","guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"computeGuidePersistentAndVisible",null);
_.W([_.Bp("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"observeForMiniGuideVisible",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jn.prototype,"onResize",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-guide-manager"})],Jn);
var uVG=_.a(Jn,"yt-guide-manager",void 0,{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var Uvy=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],PM=new Map;PM.set(32,59972);PM.set(27,50765);PM.set(70,60102);PM.set(76,60221);PM.set(77,60222);PM.set(74,60223);PM.set(84,60224);PM.set(38,61941);PM.set(40,61942);PM.set(73,62521);PM.set(67,62522);PM.set(80,63390);PM.set(78,63397);PM.set(75,59972);PM.set(188,63385);PM.set(190,63384);PM.set(36,63387);PM.set(35,63386);PM.set(37,63388);
PM.set(39,63389);PM.set(79,63423);PM.set(87,63424);PM.set(107,63426);PM.set(109,63425);PM.set(65,63428);PM.set(83,63430);PM.set(68,63429);PM.set(221,63431);PM.set(219,63432);PM.set(97,63439);PM.set(98,63440);PM.set(99,63441);PM.set(100,63442);PM.set(101,63443);PM.set(102,63444);PM.set(103,63445);PM.set(104,63446);PM.set(105,63447);var tc=new Map;tc.set(80,63390);tc.set(78,63397);tc.set(188,63400);tc.set(190,63401);tc.set(191,60765);tc.set(13,247917);var KPb=new Map,P0a=new Map;var wW=function(){var I=_.k.apply(this,arguments)||this;I.JSC$21629_keyboardInUse=!1;I.boundHandleCapturedKeydownEvent=function(y){I.handleCapturedKeydownEvent(y)};
return I};
_.E(wW,_.k);_.L=wW.prototype;_.L.attached=function(){this.listenToDocument(document)};
_.L.listenToDocument=function(I){I.addEventListener("keydown",_.MX(this,this.onKeyDownEvent));I.addEventListener("keyup",_.MX(this,this.onKeyUpEvent));I.addEventListener("mousedown",_.MX(this,this.onMouseDownEvent));_.l("desktop_keyboard_capture_keydown_killswitch")||I.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);I.addEventListener("yt-page-data-updated",_.MX(this,this.onPageUpdate))};
_.L.detached=function(){this.unlistenFromDocument(document)};
_.L.unlistenFromDocument=function(I){I.removeEventListener("keydown",_.MX(this,this.onKeyDownEvent));I.removeEventListener("keyup",_.MX(this,this.onKeyUpEvent));I.removeEventListener("mousedown",_.MX(this,this.onMouseDownEvent));_.l("desktop_keyboard_capture_keydown_killswitch")||I.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);I.removeEventListener("yt-page-data-updated",_.MX(this,this.onPageUpdate))};
_.L.ready=function(){_.nR().addProvider({provide:_.Q3,useValue:this})};
_.L.isKeyBoardInUse=function(){return this.JSC$21629_keyboardInUse};
_.L.handleCapturedKeydownEvent=function(I){if(I.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(I)};
_.L.onMouseDownEvent=function(){this.JSC$21629_keyboardInUse=!1};
_.L.onPageUpdate=function(){if(_.l("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.l("web_shorts_keyboard_shortcut_usage_log")){KPb.clear();for(var I=_.J(PM),y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;D=_.QM(D);KPb.set(y,D);_.Oc(_.VO(),_.s_(),D)}P0a.clear();I=_.J(tc);for(y=I.next();!y.done;y=I.next())D=_.J(y.value),y=D.next().value,D=D.next().value,D=_.QM(D),P0a.set(y,D),_.Oc(_.VO(),_.s_(),D);_.LC(_.VO(),_.s_(),[].concat(_.Td(P0a.values()),_.Td(KPb.values())));
_.wH(_.VO(),[].concat(_.Td(P0a.values()),_.Td(KPb.values())))}};
_.L.onMiniplayerActiveChange=function(){var I;(I=_.nR().resolve(_.OI).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(I.document):this.unlistenFromDocument(I.document))};
_.L.ignoreKeyEvent=function(I){if(I.ctrlKey||I.altKey)if(_.l("kevlar_macro_markers_keyboard_shortcut")){if(I.keyCode!==37&&I.keyCode!==39)return!0}else return!0;var y=_.r4(I)||[];return rsb(y)?(_.l("web_button_or_anchor_list_item")&&jzC(y,I)&&(this.JSC$21629_keyboardInUse=!0),!0):I.defaultPrevented?(Kw(I.keyCode,I.shiftKey,this.isShortsPage),!0):I.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(I):!1};
_.L.isSpacebarClick=function(I){var y=I||window.event;var D;y.composedPath&&typeof y.composedPath==="function"?D=y.composedPath():D=y.path;D&&D.length?y=D[0]:(y=y||window.event,y=y.target||y.srcElement,y.nodeType==3&&(y=y.parentNode));return y&&I.keyCode===32&&(I=y.tagName==="BUTTON"||y.tagName==="A"||y.tagName==="INPUT",y=(y=y.getAttribute("role"))&&(y==="option"||y==="button"||y.indexOf("menuitem")===0),I||y)?!0:!1};
_.L.onKeyDownEvent=function(I){if(!this.ignoreKeyEvent(I)&&(I.keyCode===191&&(I.shiftKey||I.metaKey?I.repeat!=null&&I.repeat||(this.openHotkeyDialog(),Kw(I.keyCode,I.shiftKey,this.isShortsPage)):(this.focusSearchBox(),I.preventDefault())),!I.metaKey)){var y=_.nR().resolve(_.OI);switch(I.keyCode){case 9:this.JSC$21629_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(I);break;case 84:y.pipController.getWindow()&&window.focus();this.toggleTheaterMode(I.keyCode,I.shiftKey);break;case 73:y.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(I.keyCode,I.shiftKey);break;case 70:if(this.isShortsPage){Adg();break}this.isMiniplayerActive()?y.pipController.getWindow()&&(y.close(!0),window.focus()):this.passEventToPlayer(I);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(I.keyCode,I.shiftKey):this.closeMiniplayer(I.keyCode,I.shiftKey)||this.passEventToPlayer(I);break;case 13:I.shiftKey&&_.nR().resolve(_.uY).activate(I);break;default:this.passEventToPlayer(I)}}};
_.L.onKeyUpEvent=function(I){if(!this.ignoreKeyEvent(I))if(_.l("web_speedmaster_spacebar_control")&&I.keyCode===32)this.handlePlayerSpaceKey(I,!0);else{var y=this.getPlayerManager();y&&(y=y.getPlayer())&&y.handleGlobalKeyUp(I.keyCode,I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,I.key,I.code)}};
_.L.getPlayerManager=function(){var I=_.NY(),y=_.nR().resolve(_.fR(_.ja));return I&&y&&y.isOnWatch()?I:null};
_.L.passEventToPlayer=function(I,y){var D=this,F,R,O,w;return _.S(function(v){if(v.nextAddress==1){if(!_.l("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&D.isMiniplayerActive())F=_.nR().resolve(_.OI).getPlayerElement();else if(D.inlinePreviewIsActive){if(R=_.qr(D.hostElement,"yt-get-inline-preview-player-action"),(O=R)==null?0:O[0])F=R[0]}else F=_.NY();return F?v.yield(F.getPlayerPromise(),3):v.jumpTo(0)}w=v.yieldResult;y?w.handleGlobalKeyUp(I.keyCode,I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,
I.key,I.code):w.handleGlobalKeyDown(I.keyCode,I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,I.key,I.code,I.repeat);I.keyCode!==38&&I.keyCode!==40&&Kw(I.keyCode,I.shiftKey,D.isShortsPage);_.Cj(v)})};
_.L.focusSearchBox=function(){_.lj(this.hostElement,"yt-focus-searchbox")};
_.L.openHotkeyDialog=function(){_.lj(this.hostElement,"yt-open-hotkey-dialog")};
_.L.isMiniplayerActive=function(){return _.nR().resolve(_.OI).isMiniplayerActive()};
_.L.closeMiniplayer=function(I,y){return this.isMiniplayerActive()?(_.nR().resolve(_.OI).close(),Kw(I,y,this.isShortsPage),!0):!1};
_.L.toggleTheaterMode=function(I,y){var D=_.sE(_.oq().getState()),F=this.getPlayerManager(),R=_.l("disable_theater_mode_keyboard")||_.KR("START_IN_FULL_WINDOW_MODE");F&&!R&&(D=!D,_.o1()&&_.l("external_fullscreen")&&(D=!0),_.uj(this.hostElement,"yt-toggle-theater-mode",[D]),Kw(I,y,this.isShortsPage))};
_.L.toggleMiniplayer=function(I,y){var D=this.getPlayerManager();if(this.isMiniplayerActive()){var F;((F=_.nR().resolve(_.fR(_.ja)))==null?0:F.isOnWatch())?_.nR().resolve(_.OI).close(!0):_.M6(_.nR().resolve(_.OI));Kw(I,y,this.isShortsPage)}else D&&(_.uj(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Kw(I,y,this.isShortsPage))};
_.L.handlePlayerSpaceKey=function(I,y){var D=!!_.NY()||this.isMiniplayerActive();D=_.l("disable_space_scroll_fix")||D;_.l("global_spacebar_pause")&&!this.isKeyBoardInUse()&&D&&(I.preventDefault(),this.passEventToPlayer(I,y))};
_.L.isPresentingTheaterMode=function(){return _.l("web_watch_enable_tm_esc_key")?_.sE(_.oq().getState())&&!_.o1():!1};
wW.prototype.onMiniplayerActiveChange=wW.prototype.onMiniplayerActiveChange;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],wW.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],wW.prototype,"ytdReduxBehavior",void 0);_.W([_.M({selector:_.agA}),_.A("design:type",Boolean)],wW.prototype,"inlinePreviewIsActive",void 0);_.W([_.M({selector:_.unW}),_.A("design:type",Boolean)],wW.prototype,"isShortsPage",void 0);
_.W([_.M({selector:_.Iq}),_.A("design:type",Boolean)],wW.prototype,"miniplayerIsActive",void 0);_.W([_.ke("miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wW.prototype,"onMiniplayerActiveChange",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-hotkey-manager"})],wW);_.a(wW,"yt-hotkey-manager",void 0,{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var SG=function(){var I=_.k.apply(this,arguments)||this;I.loopStateEntityKey_=null;I.playlistLoopStateEntity_=null;I.isShuffleNextPlaylist=!1;I.PLAYER_EVENTS_=new Map;I.playerListenersSetup_=!1;I.videoSkipJob_=0;I.canAutoAdvance_=!1;I.playerManager_=null;I.TEST_ONLY={};return I};
_.E(SG,_.k);_.L=SG.prototype;_.L.ready=function(){_.nR().addProvider({provide:_.rE,useValue:this.hostElement})};
_.L.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_)};
_.L.attached=function(){document.addEventListener("yt-navigate-start",_.MX(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.MX(this,this.onYtNavigateFinish_))};
_.L.detached=function(){document.removeEventListener("yt-navigate-start",_.MX(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.MX(this,this.onYtNavigateFinish_))};
_.L.updatePlaylistEventListeners=function(I,y){y&&!this.playerListenersSetup_?(this.playerManager_=I,this.registerPlaylistEventListeners_(I)):!y&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(I))};
_.L.setPlayer=function(I){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=I};
_.L.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.L.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.L.registerPlaylistEventListeners_=function(I){var y=this;I.getPlayerPromise().then(function(D){y.playerListenersSetup_||(y.ytPlayerListenerBehavior.listenToPlayerEvents(D,y.PLAYER_EVENTS_),y.playerListenersSetup_=!0)})};
_.L.removePlaylistEventListeners_=function(I){var y=this;I.getPlayerPromise().then(function(D){y.playerListenersSetup_&&(y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D,y.PLAYER_EVENTS_),y.playerListenersSetup_=!1)})};
_.L.setPlaylistComponent=function(I){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.MX(this,this.onPlaylistYtNavigate_)),I&&(I.data&&this.playlistComponent.data&&I.data.playlistId==this.playlistComponent.data.playlistId?(I.loopOn=this.playlistComponent.loopOn,I.shuffleOn=this.playlistComponent.shuffleOn):(I.loopOn=!1,I.shuffleOn=!1),this.isShuffleNextPlaylist&&(I.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=I;this.playlistComponent.addEventListener("yt-navigate",
_.MX(this,this.onPlaylistYtNavigate_))};
_.L.setAutoplayRenderer=function(I){this.autoplayData=I};
_.L.setPlaylistData=function(I){this.currentPlaylistData_=I;_.lj(this.hostElement,"yt-playlist-data-updated");_.e$.isEmpty(I)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(I)};
_.L.setPlayerPlaybackControlData=function(I){this.playerManager_&&this.playerManager_.updatePlayerComponents(I.playlistPanelRenderer)};
_.L.getPlaylistData=function(){return this.currentPlaylistData_};
_.L.getTempData_=function(I,y){if(this.playlistComponent==null)return null;I={};this.playlistComponent.shuffleOn&&(I.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(I.loop_on=this.playlistComponent.loopOn);y&&(I.autonav="1",_.nR().resolve(_.cU),y=_.m$(),y>0&&(I.lact=y),this.playerManager_&&(y=this.playerManager_.getPlayer())&&y.shouldSendVisibilityState()&&(y=y.getVisibilityState(),y!=0&&(I.vis=y)));_.l("enable_unknown_lact_fix_on_html5")&&(_.nR().resolve(_.cU),I.lact=
_.m$());return I};
_.L.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.L.setLoopStateEntityKey_=function(I){var y;this.loopStateEntityKey_=((y=this.getPlaylistLoopData_(I))==null?void 0:y.playlistLoopStateEntityKey)||null};
_.L.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.L.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.L.skipVideo=function(){var I=this,y=_.l("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||y)y=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.ip(_.w2,function(){I.onPlaylistNext();I.videoSkipJob_=0},y)};
_.L.cancelVideoSkip=function(){this.videoSkipJob_&&(_.w2.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.L.isInBackground_=function(){var I=window.document.visibilityState;return!(!I||I=="visible")};
_.L.onPlaylistIndex_=function(I){this.playlistComponent&&(I=this.playlistComponent.data.contents[I].playlistPanelVideoRenderer.navigationEndpoint,_.lj(this.hostElement,"yt-navigate",{endpoint:I,tempData:this.getTempData_(I)}))};
_.L.onPlayerStateChange_=function(I){if(I=I==0&&this.playlistComponent&&this.canAutoAdvance_)I=_.X4.getInstance(),I=!(I.autonavState_===3?I.autonavPauseReason_&&I.autonavPauseReason_.inputBoxFocus===!0:I.autonavState_===1&&I.disabledAutonavPauseReason_&&I.disabledAutonavPauseReason_.inputBoxFocus===!0);I&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.L.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.L.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.L.navigateToAutoplayWatchEndpoint_=function(I,y,D){var F=this.playlistComponent.data.currentIndex,R=this.getNumPlayableVideos_();I=="NORMAL"&&y=="autoplayVideo"&&F+1>=R&&D||!(I=this.getVideoEndpoint_(I,y))||(D=this.getTempData_(I,D),_.lj(this.hostElement,"yt-navigate",{endpoint:I,tempData:D}))};
_.L.getNumPlayableVideos_=function(){for(var I=0,y=_.J(this.playlistComponent.data.contents||[]),D=y.next();!D.done;D=y.next())D.value.playlistPanelVideoRenderer&&(I+=1);return I};
_.L.getVideoEndpoint_=function(I,y){if(this.autoplayData&&this.autoplayData.sets)for(var D=0,F=this.autoplayData.sets.length;D<F;D++){var R=this.autoplayData.sets[D];if(R.mode==I){if(R[y])return R[y];break}}else I=new _.g6("AutoplayData is undefined in playlist manager","Mode: "+I+" endpoint: "+y),_.tq(I)};
_.L.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.L.onPlaylistYtNavigate_=function(I){if(I.detail.endpoint){I.stopPropagation();var y=I.detail;y.tempData=this.getTempData_(I.detail.endpoint);_.lj(this.hostElement,"yt-navigate",y)}};
_.L.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.L.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.L.playlistLoopStateEntityChanged_=function(I){var y=this,D,F,R;return _.S(function(O){if(O.nextAddress==1){if(!I)return O.return();D=I.state==="PLAYLIST_LOOP_STATE_ONE";return y.playerManager_?O.yield(y.playerManager_.getPlayerPromise(),3):O.jumpTo(2)}O.nextAddress!=2&&(F=O.yieldResult,F.setLoopVideo(D));R=I.state==="PLAYLIST_LOOP_STATE_ALL";y.playlistComponent&&(y.playlistComponent.loopOn=R);_.Cj(O)})};
_.L.getPlaylistLoopData_=function(I){var y,D;if(I=I==null?void 0:(y=I.playlistButtons)==null?void 0:(D=y.menuRenderer)==null?void 0:D.topLevelButtons)for(y=_.J(I),D=y.next();!D.done;D=y.next())if(D=D.value,D.playlistLoopButtonRenderer)return D.playlistLoopButtonRenderer};
_.L.getLoopStateCommand_=function(I){var y=this.getPlaylistData(),D;y=((D=this.getPlaylistLoopData_(y))==null?void 0:D.states)||[];var F;I=(F=_.u(y[I?1:2],_.XZu))==null?void 0:F.button;var R;return(R=_.u(I,_.S1))==null?void 0:R.command};
_.L.onPlayerLoopChange_=function(I){this.playlistLoopStateEntity_&&(I?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(I=this.getLoopStateCommand_(I))&&this.ytComponentBehavior.resolveCommand(I)};
_.L.onSleepTimerSettingsChanged_=function(I){this.canAutoAdvance_=I!=="End of video"};
SG.prototype.onPlaylistLoopStateEntityChanged=SG.prototype.onPlaylistLoopStateEntityChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],SG.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],SG.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],SG.prototype,"loopStateEntityKey_",void 0);
_.W([_.M({selectorArgs:["loopStateEntityKey_"],selector:_.It.playlistLoopStateEntitySelector}),_.A("design:type",Object)],SG.prototype,"playlistLoopStateEntity_",void 0);_.W([_.ke("playlistLoopStateEntity_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SG.prototype,"onPlaylistLoopStateEntityChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"yt-playlist-manager"})],SG);_.a(SG,"yt-playlist-manager",void 0,{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var qLb,Ele=function(){if(qLb!==void 0)return qLb;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return qLb=I};var tn=function(){var I=_.k.apply(this,arguments)||this;I.lastCallback=null;I.getAccountLinkPromises={};I.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);I.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return I};
_.E(tn,_.k);_.L=tn.prototype;_.L.getLocation=function(){return window.location.href};
_.L.getCompletionUrl=function(){return _.U$(this.getLocation())};
_.L.containsRedirectState=function(I){return(I=_.ez(_.ew5(I)))?(new URLSearchParams(I)).get("redirect_state")!==null:!1};
_.L.createGalConfig=function(I,y){var D=new pZb;I=D=y?this.getPopupOrRedirectSetting(D,_.Pi("LINK_API_KEY"),_.Pi("LINK_API_KEY_REDIRECT"),I):mLy(D,_.Pi("LINK_API_KEY"));I.authUser=_.Pi("SESSION_INDEX")||0;I.supportedFlows=new Set([4]);return I.build()};
_.L.getPopupOrRedirectSetting=function(I,y,D,F){this.isGalInteractionPopupMode(F)?(I.interactionMode=0,I=mLy(I,y)):(I.interactionMode=1,y=this.getCompletionUrl(),I.completionUrl=y,I=mLy(I,D));return I};
_.L.isGalInteractionPopupMode=function(I){if(this.redirectModeProviderAllowlist.has(I))switch(I){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.L.getStatusEntityKeyForProviderId=function(I){return _.fC(I+":all","accountLinkStatusEntity")};
_.L.findNestedPropValue=function(I,y){var D=!1,F=null;JSON.stringify(I,function(R,O){D||R!==y||(D=!0,F=O);return D?null:O});
return F};
_.L.findAccountLinkButtonViewModel=function(I,y){var D=null,F=!1;JSON.stringify(I,function(R,O){F||O.accountLinkStatusEntityKey!==y||O.accountLinkStatusSecondaryEntityKey||(F=!0,D=O);return F?null:O});
return D};
_.L.executeLinkingSuccessOrFailureCommands=function(I,y,D){var F=null,R;(y==null?0:(R=y.url)==null?0:R.includes("account_sharing"))?F=y==null?void 0:y.response:F=y==null?void 0:y.response;(y=this.findAccountLinkButtonViewModel(F,I))?(I=D?this.findNestedPropValue(y,"onSuccessCommand"):this.findNestedPropValue(y,"onFailureCommand"))?_.YI([I],this.hostElement):_.o8(Error("Sl")):_.o8(Error("Tl`"+I))};
_.L.handleInitializeRequest=function(I,y){var D=this,F=Sgy(this.createGalConfig(I,!0));this.containsRedirectState(this.getLocation())?O0e(I,F.config,F.galService).then(function(R){var O=D.getStatusEntityKeyForProviderId(I);if(R.statusCode===1)y&&D.executeLinkingSuccessOrFailureCommands(O,y,!0),R=D.getLocation().indexOf("#"),R!==-1&&window.history.pushState(null,"",D.getLocation().substring(0,R));else return y&&D.executeLinkingSuccessOrFailureCommands(O,y,!1),Promise.reject(Error(R.statusMessage))}).catch(function(R){_.tq(R);
_.Jq("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(R)}):this.getAccountLinkPromises[I]=F.startLinkingSession({serviceId:I})};
_.L.handleAccountLinkCommand=function(I){_.u(I,C$b)&&this.handleLinkRequest(_.u(I,C$b))};
_.L.handleLinkRequest=function(I){var y=this,D=I.thirdPartyId;if(D)if(this.isGalInteractionPopupMode(D)){var F=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",I.onFailureCommand)},R=function(){y.closeAndFire("ytd-gaming-account-link-setting-renderer",I.onSuccessCommand)};
this.lastCallback=R;this.getAccountLinkPromises[D].then(function(O){KgR(O).then(function(w){w.statusCode===1?R():F()})}).catch(function(){F()})}else this.getAccountLinkPromises[D].then(function(O){KgR(O).then(function(w){if(w.statusCode!==1)return Promise.reject(Error(w.statusMessage))})}).catch(function(O){_.tq(O);
_.Jq("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(O)})};
_.L.closeAndFire=function(I,y){_.uj(this.hostElement,"yt-close-popup-action",[I]);y&&_.YI([y],this.hostElement)};
_.L.handleAccountUnlinkCommand=function(I){_.u(I,BlQ)&&this.handleUnlinkRequest(_.u(I,BlQ))};
_.L.handleUnlinkRequest=function(I){var y=this,D=I.thirdPartyId;if(D){var F=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",I.onFailureCommand)},R=function(){y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",I.onSuccessCommand)};
this.lastCallback=R;var O=Sgy(this.createGalConfig(D,!1));this.unlinkUserGal(O,D).then(function(w){w.statusCode===1?R():F()}).catch(function(){F()})}};
_.L.unlinkUserGal=function(I,y){return I.deleteLink(y)};
_.L.handleLogAccountLinkingEventCommand=function(I){_.l("enable_gel_log_commands")&&_.u(I,AiG)&&(I=_.u(I,AiG).event)&&_.Jq("gamingAccountLinkStatusChanged",I)};
_.mD.Object.defineProperties(tn,{template:{configurable:!0,enumerable:!0,get:function(){return Ele()}}});
_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],tn.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],tn.prototype,"ytActionHandlerBehavior",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-third-party-manager"})],tn);_.a(tn,"ytd-third-party-manager",function(){return Ele()},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var GHa=2/3,X8y=_.QM(130749),QSR=function(I,y){var D=this;this.element=I;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:GHa,moveAction:function(F){D.moveAction(F)},
triggerAction:function(){D.element.isReloading=!0;_.OP(_.W4(),{visualElement:X8y});_.M4.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:D.element}})}}}};
_.c0(_.W4(),X8y,this.layer);this.gesture=new s9(I,y,this.refreshConfig,"pan-down");this.attach()};
_.L=QSR.prototype;_.L.attach=function(){this.gesture.attach()};
_.L.detach=function(){this.gesture.detach()};
_.L.reset=function(){this.element.close()};
_.L.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.L.moveAction=function(I){this.element.rotation=I*360};var YLa=_.QM(130750),nlQ=function(I,y,D,F,R){var O=this;this.element=I;this.parent=D;this.channelHeader=F;this.ytdReduxDispatch=R;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){O.tabsStartAtInPx=O.channelHeader.clientHeight-48;var w;(w=O.selectedTab)!=null&&w.title&&(w=_.nR().resolve(_.fR(_.ja)))&&(w=w.getCurrentPage(),O.lastVisitedTabScrollPosition=w.getScrollTop(),O.previousTab&&
((O.lastVisitedTabScrollPosition===void 0?0:O.lastVisitedTabScrollPosition<O.channelHeader.clientHeight-48)?O.scrollPositionForTabs.has(O.selectedTab.title)&&O.scrollPositionForTabs.delete(O.selectedTab.title):O.scrollPositionForTabs.set(O.selectedTab.title,w.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:fla(),triggerAction:function(){O.navigate(O.previousTab)},
moveAction:function(w,v){O.moveAction(w,v)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-fla(),triggerAction:function(){O.navigate(O.nextTab)},
moveAction:function(w,v){O.moveAction(w,v)}}}};
_.c0(_.W4(),YLa,this.layer);this.gesture=new s9(I,y,this.tabConfig);this.attach()};
_.L=nlQ.prototype;_.L.attach=function(){this.gesture.attach()};
_.L.detach=function(){this.gesture.detach()};
_.L.tabsChanged=function(I){if(I){var y=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;I=_.J(I);for(var D=I.next();!D.done;D=I.next()){D=D.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=D);var F=void 0;if((F=D)==null?0:F.selected)this.previousTab=y,this.selectedTab=D;y=D}y=this.gesture;I=this.getConfig();y.config=I;this.scrollPositionNeedsUpdate=!0}};
_.L.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.L.moveAction=function(I,y){if(!this.tabsElement){var D;this.tabsElement=(D=this.parent.header)==null?void 0:D.tabsElement;y==="right"&&this.previousTab?(D=this.previousTab.endpoint,_.xJo(_.nR().resolve(_.b0),D,{},"")):y==="left"&&this.nextTab&&(D=this.nextTab.endpoint,_.xJo(_.nR().resolve(_.b0),D,{},""));if(!this.tabsElement)return}D=this.tabsElement._pos;y==="right"&&(I*=-1);this.tabsElement._positionBar(D.width,D.left*1+D.width*I)};
var fla=function(){var I,y;return(y=(I=_.nR().resolve(_.ja).getCurrentPage())==null?void 0:I.clientWidth)!=null?y:0};
nlQ.prototype.navigate=function(I){this.element.data=void 0;if(I=I==null?void 0:I.endpoint)this.ytdReduxDispatch(eP8(!0)),_.OP(_.W4(),{visualElement:YLa}),_.M4.instance.resolveCommand({navigateAction:{endpoint:I}},{form:{element:this.element}})};var p8b;var mA1;var P8=function(){var I=_.k.apply(this,arguments)||this;I.rotation=0;I.isReloading=!1;return I};
_.E(P8,_.k);P8.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
P8.prototype.reset=function(){this.hostElement.style.opacity=""};
P8.prototype.close=function(){var I=this;return _.S(function(y){if(y.nextAddress==1)return y.yield(I.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.hostElement.style.opacity="0";_.Cj(y)})};
P8.prototype.rotationChanged=P8.prototype.rotationChanged;_.W([_.M(),_.A("design:type",Object)],P8.prototype,"rotation",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],P8.prototype,"isReloading",void 0);_.W([_.a0("#icon"),_.A("design:type",HTMLElement)],P8.prototype,"icon",void 0);_.W([_.ke("rotation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P8.prototype,"rotationChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-refresh"})],P8);
_.a(P8,"ytd-refresh",function(){if(mA1!==void 0)return mA1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mA1=I},{mode:1});var MG1;var Ky=function(){var I=_.k.apply(this,arguments)||this;I.useRaf=!_.l("web_use_raf_app_header_layout_killswitch");return I};
_.E(Ky,_.k);Ky.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
Ky.prototype.dataChanged=function(){if(this.data){var I=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var y=_.hf(this.data.banner.thumbnails,this.hostElement.clientWidth);y&&(y.indexOf("//")===0&&(y="https:"+y),this.hasBannerArt=!0,_.pg(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+y+")"}))}this.hasBannerArt!==I&&_.XB(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ky.prototype.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
Ky.prototype.dataChanged=Ky.prototype.dataChanged;_.W([_.Q(qzY),_.A("design:type",Object)],Ky.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.tl),_.A("design:type",Object)],Ky.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Ky.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ky.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ky.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],Ky.prototype,"selected",void 0);_.W([_.M(),_.A("design:type",Boolean)],Ky.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ky.prototype,"hasBannerArt",void 0);_.W([_.M(),_.A("design:type",Object)],Ky.prototype,"useRaf",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ky.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ky);
_.a(Ky,"ytd-interactive-tabbed-header-renderer",function(){if(MG1!==void 0)return MG1;var I=document.createElement("template");_.G(I,'\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 use-raf="[[useRaf]]" 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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return MG1=I},{mode:1});var zuR;var UL=function(){return _.k.apply(this,arguments)||this};
_.E(UL,_.k);UL.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
UL.prototype.computeActionsAlignment=function(I){return(I==null?void 0:I.actionsAlignment)||""};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UL.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.A("design:type",String)],UL.prototype,"actionsAlignment",void 0);
_.W([_.yd({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],UL);
_.a(UL,"ytd-page-footer-renderer",function(){if(zuR!==void 0)return zuR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return zuR=I},{mode:1});var kHG;var dAY;var rW=function(){var I=_.k.apply(this,arguments)||this;I.isEditing=!1;I.useSlot=!1;I.isMultiline=!1;return I};
_.E(rW,_.k);_.L=rW.prototype;_.L.onKeydown=function(I){if(I.keyCode===13&&!this.isMultiline)this.onSave();else if(I.keyCode===27)this.onCancel()};
_.L.computeComponentStyle=function(I){return(I==null?0:I.style)?I.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.L.computeisMultiline=function(I){if(this.multilineOverride!==void 0)return this.multilineOverride;var y,D;return!!(I==null?0:(y=I.formField)==null?0:(D=y.textInputFormFieldRenderer)==null?0:D.isMultiline)};
_.L.computeTextDisplayed=function(I,y){if(I)return I;if(y)return y};
_.L.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.L.onSave=function(){if(this.textForm.validate()){this.textForm.save();var I=this.textForm.value;if(I)this.set("data.textDisplayed",_.Ug(I));else{var y;((y=this.data)==null?0:y.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.hm("inline-form-changed",this.data));this.isEditing=!1}};
_.L.onCancel=function(){var I=_.rY(this.data.textDisplayed);I===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(I);this.isEditing=!1};
rW.prototype.onKeydown=rW.prototype.onKeydown;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],rW.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rW.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],rW.prototype,"isEditing",void 0);_.W([_.M(),_.A("design:type",Object)],rW.prototype,"useSlot",void 0);_.W([_.M(),_.A("design:type",Boolean)],rW.prototype,"multilineOverride",void 0);_.W([_.M(),_.A("design:type",Boolean)],rW.prototype,"enableOverlayTheme",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.A("design:type",String)],rW.prototype,"componentStyle",void 0);
_.W([_.M({computed:"computeisMultiline(data)"}),_.A("design:type",Object)],rW.prototype,"isMultiline",void 0);_.W([_.a0("#text-form"),_.A("design:type",Object)],rW.prototype,"textForm",void 0);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],rW.prototype,"onKeydown",null);_.W([_.yd({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],rW);
_.a(rW,"ytd-inline-form-renderer",function(){if(dAY!==void 0)return dAY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return dAY=I},{mode:1});var alR;var jG=function(){var I=_.k.apply(this,arguments)||this;I.previousSelectValue=void 0;I.selectedItemMessage=void 0;return I};
_.E(jG,_.k);jG.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
jG.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var I,y,D,F,R=(I=this.data)==null?void 0:(y=I.dropdown)==null?void 0:(D=y.dropdownRenderer)==null?void 0:(F=D.entries)==null?void 0:F.map(function(v){return v.privacyDropdownItemRenderer});
I=_.J(R!=null?R:[]);for(y=I.next();!y.done;y=I.next())if((y=y.value)&&y.int32Value===this.selectedValue){this.selectedItemMessage=y.itemMessage;break}}else this.selectedItemMessage=void 0;var O;(O=this.onValueChanged)==null||O.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var w;(w=this.data)!=null&&w.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
jG.prototype.onValueChangedForSelectedValue=function(I){this.selectedValue=I.detail.value};
jG.prototype.selectedValueChanged=jG.prototype.selectedValueChanged;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],jG.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],jG.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jG.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],jG.prototype,"theme",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Number)],jG.prototype,"selectedValue",void 0);_.W([_.M(),_.A("design:type",Function)],jG.prototype,"onValueChanged",void 0);
_.W([_.Bp("selectedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jG.prototype,"selectedValueChanged",null);_.W([_.yd({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],jG);
_.a(jG,"ytd-dropdown-form-field-renderer",function(){if(alR!==void 0)return alR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return alR=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var cny;var oS=function(){return _.k.apply(this,arguments)||this};
_.E(oS,_.k);_.mD.Object.defineProperties(oS.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var I=[],y=_.J(this.data||[]),D=y.next();!D.done;D=y.next())(D=_.u(D.value,fpe))&&I.push(D);return I}}});
_.W([_.M(),_.A("design:type",Array)],oS.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],oS.prototype,"byline",null);_.W([_.yd({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],oS);
_.a(oS,"ytd-playlist-byline-renderer",function(){if(cny!==void 0)return cny;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return cny=I},{mode:1});var W3C;var NA=function(){var I=_.k.apply(this,arguments)||this;I.rtlBullet=_.l("web_playlist_stats_rtl_bullet_icon_killswitch");I.modern=_.l("web_modern_buttons");I.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return I};
_.E(NA,_.k);_.L=NA.prototype;_.L.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"}}}}};
_.L.attached=function(){};
_.L.computeIsCustomThumbnail=function(I){return I?!!I.playlistCustomThumbnailRenderer:!1};
_.L.onYtNavigate=function(I,y){if(y&&y.actions&&y.actions.indexOf("shuffle")>-1){I=_.nR().resolve(_.rE);var D=y.tempData||{};D.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);y.tempData=D;I.isShuffleNextPlaylist=!0}};
_.L.onUpdatePlaylistAction=function(I){var y;I=(y=_.u(I,_.BhW))==null?void 0:y.updatedRenderer;if(y=_.u(I,$iR))this.data=y};
_.L.computeStyleType=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeThumbnailWidth=function(I){return I==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.L.computeHideThumbnailAria=function(I){if(I==null?0:I.thumbnailOverlays)for(var y=0;y<I.thumbnailOverlays.length;y++){var D=void 0;if((D=I.thumbnailOverlays[y])==null?0:D.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
NA.prototype.onYtNavigate=NA.prototype.onYtNavigate;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],NA.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],NA.prototype,"rtlBullet",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.A("design:type",String)],NA.prototype,"styleType",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],NA.prototype,"thumbnailWidth",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],NA.prototype,"modern",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.A("design:type",Boolean)],NA.prototype,"isCustomThumbnail",void 0);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],NA.prototype,"onYtNavigate",null);_.W([_.yd({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],NA);
_.a(NA,"ytd-playlist-sidebar-primary-info-renderer",function(){if(W3C!==void 0)return W3C;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return W3C=I},{mode:1});var Cm8;var hn=function(){return _.k.apply(this,arguments)||this};
_.E(hn,_.k);hn.prototype.computeOwnerVisibility=function(I){return!(!I.videoOwner&&!I.button)};
hn.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],hn.prototype,"data",void 0);_.W([_.yd({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],hn);
_.a(hn,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Cm8!==void 0)return Cm8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Cm8=I},{mode:1});var BWa;var xl=function(){var I=_.k.apply(this,arguments)||this;I.expanded=!1;I.isCompact=!1;return I};
_.E(xl,_.k);_.L=xl.prototype;_.L.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.L.dataChanged=function(){this.data&&_.rj(_.XB(this.text),_.uOP(_.G_c,_.rY(this.data.text||null)))};
_.L.computeAutoScrollEnabled=function(I,y){return I&&!y};
_.L.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.L.toggleOnTap=function(){this.expanded=!this.expanded};
xl.prototype.expandedChanged=xl.prototype.expandedChanged;xl.prototype.dataChanged=xl.prototype.dataChanged;_.W([_.Q(qpT),_.A("design:type",Object)],xl.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xl.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xl.prototype,"expanded",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],xl.prototype,"isCompact",void 0);_.W([_.M({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.A("design:type",Boolean)],xl.prototype,"autoScrollEnabled",void 0);_.W([_.a0("#text"),_.A("design:type",Object)],xl.prototype,"text",void 0);_.W([_.a0("#expander-icon"),_.A("design:type",Object)],xl.prototype,"expanderIcon",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xl.prototype,"dataChanged",null);_.W([_.ke("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xl.prototype,"expandedChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],xl);
_.a(xl,"ytd-channel-legal-info-renderer",function(){if(BWa!==void 0)return BWa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return BWa=I},{mode:1});var iy8;var Ana=_.zC("DOWNLOAD",{},"Download"),$Aa=_.zC("DOWNLOADING",{},"Downloading"),byC=_.zC("DOWNLOADED",{},"Downloaded"),lm=function(){var I=_.k.apply(this,arguments)||this;I.downloadProgress=0;I.isDownloadComplete=!1;I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.E(lm,_.k);_.L=lm.prototype;_.L.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.L.dataChanged=function(){var I;(I=this.data)!=null&&I.tooltip||(I=_.Rq(_.oq().getState(),this.playlistId),this.updateButtonState(I))};
_.L.computePlaylistId=function(I){return I};
_.L.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.L.updateButtonState=function(I){if(this.data&&(this.data.tooltip!==$Aa||!_.BW(I))){this.isDownloadComplete=!1;switch(I){case "TRANSFER_STATE_UNKNOWN":I=Ana;var y="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":I=byC;y="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":I=$Aa;y="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";
break;default:I=Ana,y="OFFLINE_DOWNLOAD",D="ACTION_ADD"}var F=Object.assign({},this.data);F.tooltip=I;F.accessibilityData={accessibilityData:{label:I}};F.icon={iconType:y};F.size="SIZE_DEFAULT";_.u(F.command,_.MY)&&(_.u(F.command,_.MY).action=D);this.set("data",F)}};
_.L.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var I="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?I="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?I="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?I="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?I="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?I="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(I="OFFLINE_PIN",this.isDownloadComplete=!0);var y;I!==((y=this.data.icon)==null?void 0:y.iconType)&&(y=Object.assign({},this.data),y.tooltip=$Aa,y.accessibilityData={accessibilityData:{label:$Aa}},y.icon={iconType:I},_.u(y.command,_.MY)&&(_.u(y.command,_.MY).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",y))}};
lm.prototype.updateProgress=lm.prototype.updateProgress;lm.prototype.onTransferStateChanged=lm.prototype.onTransferStateChanged;lm.prototype.dataChanged=lm.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],lm.prototype,"ytdReduxBehavior",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"forceIconButton",void 0);
_.W([_.M({value:!0}),_.A("design:type",Boolean)],lm.prototype,"forceIconOnly",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"overrides",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"buttonTooltipPosition",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"styleActionButton",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"disableTextTransform",void 0);
_.W([_.M({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.A("design:type",String)],lm.prototype,"playlistId",void 0);_.W([_.M(),_.A("design:type",Object)],lm.prototype,"data",void 0);_.W([_.M({selector:_.HY_,selectorArgs:["playlistId"]}),_.A("design:type",Object)],lm.prototype,"downloadProgress",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],lm.prototype,"isDownloadComplete",void 0);
_.W([_.M({selector:_.Rq,selectorArgs:["playlistId"]}),_.A("design:type",String)],lm.prototype,"transferState",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],lm.prototype,"showTooltips",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],lm.prototype,"sendCommandWhenDisabled",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],lm.prototype,"disabled",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lm.prototype,"dataChanged",null);_.W([_.Bp("transferState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lm.prototype,"onTransferStateChanged",null);_.W([_.Bp("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lm.prototype,"updateProgress",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],lm);
_.a(lm,"ytd-download-playlist-button-renderer",function(){if(iy8!==void 0)return iy8;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return iy8=I},{mode:1});var Hyg;_.NK(_.QHW,"thumbnail-overlay-button-view-model",{props:{data:_.om,lockupExperiments:_.om}});var um=function(){var I=_.k.apply(this,arguments)||this;I.isSquare=!1;I.isVertical=!1;return I};
_.E(um,_.k);um.prototype.computeIsSquare=function(I){return I!=null&&I.thumbnail?K9G(I.thumbnail)==="SQUARE":!1};
um.prototype.computeIsVertical=function(I){return I!=null&&I.thumbnail?K9G(I.thumbnail)==="VERTICAL":!1};
um.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.A("design:type",Object)],um.prototype,"isSquare",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.A("design:type",Object)],um.prototype,"isVertical",void 0);
_.W([_.M(),_.A("design:type",Object)],um.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],um);
_.a(um,"ytd-hero-playlist-thumbnail-renderer",function(){if(Hyg!==void 0)return Hyg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Hyg=I},{mode:1});var qA=function(){var I=_.k.apply(this,arguments)||this;I.isDarkTheme=!1;I.isUltraWide=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return I};
_.E(qA,_.k);_.L=qA.prototype;_.L.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.nR();var I;(I=_.nR().resolve(_.fR(_.sr)))!=null&&(I.headerElement=this.hostElement)};
_.L.detached=function(){var I;(I=_.nR().resolve(_.fR(_.sr)))!=null&&(I.headerElement=void 0)};
_.L.onUpdateHeader=function(I){(I=I.detail)&&this.set("data",I)};
_.L.computeTextDisplayed=function(I){if(I)return I.textDisplayed?I.textDisplayed:I.placeholder};
_.L.gradientColorToLinearGradientStop=function(I){var y=this.isDarkTheme?I.darkThemeColor:I.lightThemeColor;return y?_.Z7(y)+" "+((I==null?void 0:I.startLocation)||0)*100+"%":"transparent"};
_.L.onWindowResize=function(){var I;((I=this.data)==null?0:I.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.L.onIronResize=function(I){this.isUltraWide=!I.detail.value};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.onUpdatePlaylistName=function(I){var y=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},I.detail.value));_.YC(this,function(){var D;(D=y.editableTitle)==null||D.resize()})};
_.L.onUpdatePlaylistDescription=function(I){var y=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},I.detail.value));_.YC(this,function(){var D;(D=y.editableDescriptionInlineExpander)==null||D.resize()})};
_.L.getCinematicData=function(I){return _.u(I==null?void 0:I.cinematicContainer,E9)};
_.mD.Object.defineProperties(qA.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 I,y=(I=this.getCinematicData(this.data))==null?void 0:I.config;return(I=this.isDarkTheme?y==null?void 0:y.darkThemeBackgroundColor:y==null?void 0:y.lightThemeBackgroundColor)?"background-color:"+_.Vp(I)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var I;return _.u((I=this.data)==null?void 0:I.descriptionForm,BKT)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D,F;return"background:linear-gradient(to bottom, "+(((F=(y=this.getCinematicData(this.data))==null?void 0:(D=y.gradientColorConfig)==null?void 0:D.map(function(R){return I.gradientColorToLinearGradientStop(R)}))==null?void 0:F.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var I;return _.rY((I=this.data)==null?void 0:I.descriptionTapText)}}});
qA.prototype.onUpdateHeader=qA.prototype.onUpdateHeader;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],qA.prototype,"actionHandlerBehavior",void 0);_.W([_.a0("#description-inline-expander"),_.A("design:type",Object)],qA.prototype,"descriptionInlineExpander",void 0);
_.W([_.a0("#editable-description-inline-expander"),_.A("design:type",Object)],qA.prototype,"editableDescriptionInlineExpander",void 0);_.W([_.M(),_.A("design:type",Object)],qA.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],qA.prototype,"isUltraWide",void 0);_.W([_.a0("#editable-title-display"),_.A("design:type",Object)],qA.prototype,"editableTitle",void 0);_.W([_.Y("isUltraWide"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"maxDescriptionLines",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"noCinematicData",null);_.W([_.z4("yt-new-playlist-header"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qA.prototype,"onUpdateHeader",null);_.W([_.Y("data","isDarkTheme"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"backgroundStyle",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"descriptionFormData",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"getDropdownTheme",null);_.W([_.Y("data","isDarkTheme"),_.A("design:type",String),_.A("design:paramtypes",[])],qA.prototype,"gradientStyle",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qA.prototype,"descriptionTapText",null);
_.W([_.yd({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],qA);
_.a(qA,"ytd-playlist-header-renderer",function(){if(kHG!==void 0)return kHG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kHG=I},{mode:_.Qd("kevlar_poly_si_batch_j078")?1:2});var euy;var TWy;var EL=function(){return _.k.apply(this,arguments)||this};
_.E(EL,_.k);EL.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],EL.prototype,"data",void 0);_.W([_.yd({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],EL);
_.a(EL,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(TWy!==void 0)return TWy;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return TWy=I},{mode:1});var GH=function(){return _.k.apply(this,arguments)||this};
_.E(GH,_.k);
GH.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}}}}};
GH.prototype.computeUsePremiumShowStyle=function(I){if(!I||!I.items)return!1;for(var y=0;y<I.items.length;y++)if(_.u(I.items[y],$iR)){var D=void 0;return((D=_.u(I.items[y],$iR))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GH.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.A("design:type",Boolean)],GH.prototype,"usePremiumShowStyle",void 0);
_.W([_.yd({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],GH);
_.a(GH,"ytd-playlist-sidebar-renderer",function(){if(euy!==void 0)return euy;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return euy=I},{mode:1});var sSb;var VGY;var Zy1=function(I,y,D,F,R,O,w,v){this.minWidth=I;this.minHeight=y;this.recommendedWidth=D;this.recommendedHeight=F;this.JSC$21704_maxFileSize=R;this.title=O;this.bannerGalleryTitle=w;this.channelId=v;this.picker_=null;I=_.tw4("yt-banner");y=I.addView;D=(new MMG("youtubebanner")).addUploadMetadata("silo_id","19");D.opts.ytMaxFileSize=this.JSC$21704_maxFileSize;F=this.recommendedHeight;D.opts.ytRecWidth=this.recommendedWidth;D.opts.ytRecHeight=F;y.call(I,D);I.addView(new _.s7);y=I.addView;D=new _.s7;
D.opts.type="ytbanner";y.call(I,D.JSC$10350_setLabel(this.bannerGalleryTitle));y=I.setTitle(this.title).setSize(1E3);y.urlParamMap_.set("thumbs","orig");D=this.minWidth;F=this.minHeight;if(isNaN(D)||isNaN(F))throw Error("hb`"+D+"`"+F);y.urlParamMap_.set("minSize",D+"x"+F);y.urlParamMap_.set("cropMode","ytcb");this.builder_=I};
Zy1.prototype.open=function(){var I=this;return new _.AO(function(y,D){_.DQn(I.builder_,function(F){F.action=="picked"?y(F):F.action=="cancel"&&D(Error("Ul"))});
I.picker_&&I.picker_.dispose();I.picker_=I.builder_.build();I.picker_.setVisible(!0)})};
Zy1.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var glY=function(I){this.channelId=I};
glY.prototype.upload=function(I){var y="";I.viewToken&&(y=I.viewToken[2].type);var D=I.docs[0];I=D.crop;y={channel_id:this.channelId,fife_url:D.thumbnails[0].url,photo_id:D.id,is_gallery_image:y=="ytbanner"};I&&(y.crop_top=I.top,y.crop_right=I.right,y.crop_bottom=I.bottom,y.crop_left=I.left);return _.e1o("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:y})};var XV=function(){var I=_.k.apply(this,arguments)||this;I.ariaLabel=null;return I};
_.E(XV,_.k);_.L=XV.prototype;_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.L.detached=function(){this.picker&&this.picker.dispose()};
_.L.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.L.computeAriaLabel=function(I){return I};
_.L.onTap=function(){var I=this,y;if((y=this.data)==null||!y.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Zy1(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(F){I.handleBannerPicked(F)},function(){})}};
_.L.handleBannerPicked=function(I){var y=this;this.uploader||(this.uploader=new glY(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(I).then(function(D){y.handleBannerUploadSucceeded(D)},function(D){y.handleBannerUploadFailed(D)})};
_.L.handleBannerUploadSucceeded=function(I){I&&I.errors?this.handleBannerUploadFailed(I):(_.lj(this.hostElement,"yt-banner-updated",I),this.message=null)};
_.L.handleBannerUploadFailed=function(I){this.message=I&&I.errors&&I.errors.length?I.errors[0]:null};
XV.prototype.dataChanged=XV.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],XV.prototype,"componentBehavior",void 0);_.W([_.Q(_.ZU),_.A("design:type",Object)],XV.prototype,"ironButtonState",void 0);_.W([_.M(),_.A("design:type",Object)],XV.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.A("design:type",Object)],XV.prototype,"ariaLabel",void 0);
_.W([_.M(),_.A("design:type",Object)],XV.prototype,"message",void 0);_.W([_.M(),_.A("design:type",Object)],XV.prototype,"picker",void 0);_.W([_.M(),_.A("design:type",Object)],XV.prototype,"uploader",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XV.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],XV);
_.a(XV,"ytd-channel-banner-editor-renderer",function(){if(VGY!==void 0)return VGY;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return VGY=I},{mode:1});var IsG;var yBa=_.UI(["#"]),Qw=function(){return _.k.apply(this,arguments)||this};
_.E(Qw,_.k);Qw.prototype.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I,!0)||_.uyS(yBa)};
Qw.prototype.dataChanged=function(){var I=this.data;I&&I.targetId&&_.Ax(_.$D(),I.targetId,this.moreIcon)};
Qw.prototype.dataChanged=Qw.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Qw.prototype,"data",void 0);_.W([_.a0("#more-icon"),_.A("design:type",Object)],Qw.prototype,"moreIcon",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qw.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Qw);
_.a(Qw,"ytd-channel-tagline-renderer",function(){if(IsG!==void 0)return IsG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IsG=I},{mode:1});var Dx1;var Yl=function(){return _.k.apply(this,arguments)||this};
_.E(Yl,_.k);_.L=Yl.prototype;_.L.ready=function(){var I=this;_.XB(this.hostElement).querySelector("#form").addEventListener("submit",function(y){I.onSubmit(y)})};
_.L.onDataChanged=function(){var I;((I=this.data)==null?0:I.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.L.onIconButtonKeydown=function(I){I.keyCode===13&&this.iconButton.click()};
_.L.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.L.openOnClickHandler=function(){this.input.focus()};
_.L.onSubmit=function(I){I.preventDefault();return!1};
_.L.submitOnEnterKeyUp=function(I){var y;if(I.keyCode===13&&((y=this.data)==null?0:y.expandedText)){I=this.data.endpoint;y=_.e$.unsafeClone(I);var D;((D=_.u(y==null?void 0:y.commandMetadata,_.nE))==null?0:D.url)?(_.u(y.commandMetadata,_.nE).url=_.rI(_.u(y.commandMetadata,_.nE).url,"query",this.data.expandedText),_.u(y,_.kc)&&(_.u(y,_.kc).query=this.data.expandedText),_.lj(this.hostElement,"yt-navigate",{endpoint:y,tempData:{disableCache:!0}})):(D=new _.g6("Error: Trying to navigate to an endpoint without url",
I),_.vu(D))}};
_.L.updateDataExpandedTextFromBinding=function(I){this.set("data.expandedText",I.detail.value)};
_.mD.Object.defineProperties(Yl.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Yl.prototype.onDataChanged=Yl.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(Gsg),_.A("design:type",Object)],Yl.prototype,"ytdExpandableInputBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Yl.prototype,"data",void 0);_.W([_.a0("#input"),_.A("design:type",Object)],Yl.prototype,"input",void 0);_.W([_.a0("#icon-button"),_.A("design:type",HTMLElement)],Yl.prototype,"iconButton",void 0);
_.W([_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],Yl.prototype,"searchIcon",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yl.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Yl);
var o1a=_.Xf()(Yl,"ytd-expandable-tab-renderer",function(){if(Dx1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);Dx1=I}I=Dx1;return I},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var FUa;var fy=function(){var I=_.k.apply(this,arguments)||this;I.avatarSize=80;I.ariaLabel=_.zC("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return I};
_.E(fy,_.k);fy.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
fy.prototype.computeHref=function(I){var y;return((y=_.u(I,_.lK))==null?0:y.url)?this.componentBehavior.computeHref_(I):null};
fy.prototype.onTap=function(){var I,y;(I=this.data)==null||!I.editAvatarServiceEndpoint||((y=_.u(this.data.editAvatarServiceEndpoint,_.lK))==null?0:y.url)||_.nR().resolve(_.MC).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.W([_.Q(_.ZU),_.A("design:type",Object)],fy.prototype,"ironButtonState",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],fy.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fy.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],fy.prototype,"avatarSize",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],fy.prototype,"ariaLabel",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],fy);
_.a(fy,"ytd-channel-avatar-editor",function(){if(FUa!==void 0)return FUa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return FUa=I},{mode:1});var R1C=_.d(function(I){var y=I.data;var D=I.noPadding;var F=I.enableBanner;var R=I.cinematicContainerTopbarOffset;var O=I.allowCinematicContainerOverflow;var w=I.displayAsSidebar;I=I.className;_.wZ(function(){y().tagManagerId&&(_.V8(y().tagManagerId,_.Pi("GL")),S4T(y().tagManagerId))},"vUc8md");
var v=_.zj(hp1,function(){return y().pageHeaderEntityKey});
return _.t("yt-page-header-renderer",{class:_.XH("pageHeaderRendererHost",I)},_.t(_.aP,{data:function(){var P;return((P=v())==null?0:P.header)?v().header:(w==null?0:w())&&y().sidebarContent?y().sidebarContent:y().content}},{pageHeaderViewModel:function(P){return _.t(_.joe,{data:P.data,
noPadding:D,enableBanner:F,cinematicContainerTopbarOffset:R,allowCinematicContainerOverflow:O,displayAsSidebar:function(){return(w==null?void 0:w())&&y().enableSidebarView}})}}))},"ok");
R1C.idomCompat=!0;_.NK(R1C,"yt-page-header-renderer",{props:{data:_.om,noPadding:_.om,enableBanner:_.om,cinematicContainerTopbarOffset:_.om,allowCinematicContainerOverflow:_.om,displayAsSidebar:_.om,className:_.om}});_.NK(_.jc,"yt-image-banner-view-model",{props:{data:_.om,isPositionRelative:_.om}});_.NK(_.keR,"yt-tab-group-shape",{props:{shape:_.om}});var O$8=_.LV.persistentPanelVisibleSelector,ny=function(){var I=_.k.apply(this,arguments)||this;I.expandableCustomTabRenderable=function(y){return NTa(y,function(){return void I.onSearchNavigate()})};
I.isRichGrid=!1;I.isConstrainedList=!1;I.richGridMiniMode=!1;I.richGridStyle="RICH_GRID_STYLE_UNKNOWN";I.isRichGridShorts=!1;I.responsiveSizing="COMPACT";I.disableGridStateAware=!1;I.useRaf=!_.l("web_use_raf_app_header_layout_killswitch");I.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return I};
_.E(ny,_.k);_.L=ny.prototype;_.L.computeHeaderDisabled=function(I,y){return y||!I||this.tabsHidden};
_.L.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.L.computeIsRichGridShorts=function(I){return I==="RICH_GRID_STYLE_SHORTS_GRID"||I==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.L.computeImageBannerViewModel=function(){var I,y;return _.u((y=_.u((I=this.data)==null?void 0:I.content,_.lW_))==null?void 0:y.banner,_.UGe)};
_.L.computeHasCinematicContainer=function(){var I,y;return!((y=_.u((I=this.data)==null?void 0:I.content,_.lW_))==null||!y.background)};
_.L.handleHeaderResize=function(){var I=_.XB(this.hostElement).querySelector("#header");I&&_.lj(I,"iron-resize")};
_.L.handleInsertTabCommand=function(I){var y=_.u(I,apR);y&&(y.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(D){return D.tabRenderer&&D.tabRenderer.tabIdentifier===y.tabIdentifier})||this.splice("tabs",y.tabIndex||-1,0,y.tab))};
_.L.handleRefreshChannelTabAction=function(I){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===I&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.L.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.L.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.pg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.L.observerRichGridSlimItemsPerRow=function(){_.pg(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.L.updateCssVars=function(){this.richGridItemsPerRow&&_.pg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.kf("rich_grid_max_item_width",500))+16)-16+"px"})};
_.L.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.pg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.L.onDataChanged=function(){this.handleHeaderResize()};
_.L.onWindowResize=function(){this.handleHeaderResize()};
_.L.onFocusedChanged=function(I){(I=_.jv(I))&&I.is==="tp-yt-paper-tab"&&I.hasRipple()&&(I.getRipple().holdDown=!I.pointerDown&&I.focused)};
_.L.updateSelectedFromBinding=function(I){this.ytdTabbedHeaderBehavior.selected=I.detail.value};
_.L.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.mD.Object.defineProperties(ny.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:l3y(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.imageBannerViewModel)==null?void 0:I.style)==="IMAGE_BANNER_STYLE_INSET"}}});
ny.prototype.onDataChanged=ny.prototype.onDataChanged;ny.prototype.updateCssVarsForResponsiveGrid=ny.prototype.updateCssVarsForResponsiveGrid;ny.prototype.updateCssVars=ny.prototype.updateCssVars;ny.prototype.observerRichGridSlimItemsPerRow=ny.prototype.observerRichGridSlimItemsPerRow;ny.prototype.observerRichGridItemsPerRow=ny.prototype.observerRichGridItemsPerRow;ny.prototype.persistentPanelVisibleChanged=ny.prototype.persistentPanelVisibleChanged;
_.W([_.Q(_.tl),_.A("design:type",Object)],ny.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(qzY),_.A("design:type",Object)],ny.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],ny.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],ny.prototype,"ytdReduxBehavior",void 0);_.W([_.a0("#tabs"),_.A("design:type",Object)],ny.prototype,"tabsElement",void 0);_.W([_.M(),_.A("design:type",Array)],ny.prototype,"tabs",void 0);_.W([_.M(),_.A("design:type",Object)],ny.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.Y("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],ny.prototype,"tabGroupShape",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ny.prototype,"isRichGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ny.prototype,"isConstrainedList",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Object)],ny.prototype,"richGridMiniMode",void 0);_.W([_.M({selector:function(I){return I.ui.richGridStyle}}),
_.A("design:type",Object)],ny.prototype,"richGridStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.A("design:type",Object)],ny.prototype,"isRichGridShorts",void 0);_.W([_.M({selector:_.gH}),_.A("design:type",Number)],ny.prototype,"richGridItemsPerRow",void 0);_.W([_.M({selector:function(I){return I.ui.richGridContainerWidth}}),
_.A("design:type",Number)],ny.prototype,"richGridContainerWidth",void 0);_.W([_.M({selector:_.mTo}),_.A("design:type",Number)],ny.prototype,"richGridSlimItemsPerRow",void 0);_.W([_.M(),_.A("design:type",Object)],ny.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ny.prototype,"responsiveSizing",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ny.prototype,"disableGridStateAware",void 0);
_.W([_.M({computed:"computeImageBannerViewModel(data)"}),_.A("design:type",Object)],ny.prototype,"imageBannerViewModel",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.A("design:type",Boolean)],ny.prototype,"hasCinematicContainer",void 0);_.W([_.M({selector:cpa,reflectToAttribute:!0}),_.A("design:type",Boolean)],ny.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.M({selector:O$8}),_.A("design:type",Boolean)],ny.prototype,"persistentPanelVisible",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],ny.prototype,"hasBanner",null);_.W([_.M({reflectToAttribute:!0}),_.Y("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],ny.prototype,"hasInsetBanner",null);_.W([_.M(),_.A("design:type",Object)],ny.prototype,"useRaf",void 0);
_.W([_.M({computed:"computeTabsHidden(tabs)",value:!0}),_.A("design:type",Boolean)],ny.prototype,"tabsHidden",void 0);_.W([_.ke("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"persistentPanelVisibleChanged",null);_.W([_.ke("richGridItemsPerRow","isRichGrid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"observerRichGridItemsPerRow",null);
_.W([_.ke("richGridSlimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"observerRichGridSlimItemsPerRow",null);_.W([_.ke("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"updateCssVars",null);
_.W([_.ke("richGridContainerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"updateCssVarsForResponsiveGrid",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ny.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],ny);
_.a(ny,"ytd-tabbed-page-header",function(){if(sSb!==void 0)return sSb;var I=document.createElement("template");_.G(I,'\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 use-raf="[[useRaf]]" 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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return sSb=I},{mode:1});var LUG;var py=function(){return _.k.apply(this,arguments)||this};
_.E(py,_.k);py.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],py.prototype,"data",void 0);_.W([_.yd({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],py);
_.a(py,"ytd-labs-edit-renderer",function(){if(LUG!==void 0)return LUG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return LUG=I},{mode:1});var JBa;var m3=function(){var I=_.k.apply(this,arguments)||this;I.dark=!1;I.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";I.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(m3,_.k);m3.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
m3.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.setBackgroundImage(I);this.dark=I};
m3.prototype.onDarkModeToggledAction=function(I){this.setBackgroundImage(I);this.dark=I};
m3.prototype.setBackgroundImage=function(I){_.pg(this.hostElement,{"--yt-labs-header-background":"url("+(I?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],m3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],m3.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],m3.prototype,"dark",void 0);
_.W([_.yd({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],m3);
_.a(m3,"ytd-labs-header-renderer",function(){if(JBa!==void 0)return JBa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return JBa=I},{mode:1});var wKa;var MA=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return I};
_.E(MA,_.k);MA.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"}}}}}};
MA.prototype.onYtToggleButton=function(I){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",I.detail.toggled)};
MA.prototype.onManageLabsState=function(I){if(I=_.u(I,zHe))I.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?I.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&I.labsItemId===this.data.labsItemId&&(I.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.uj(this.hostElement,"yt-check-labs-opted-in-state").some(function(y){return y})&&this.data.confirmationDialogCommand?_.GC(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.nR().resolve(_.MC).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&I.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.nR().resolve(_.MC).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
MA.prototype.onCheckLabsOptedInState=function(){var I=this.get("data.primaryButton.toggleButtonRenderer");return I?I.isToggled:!1};
_.mD.Object.defineProperties(MA.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
MA.prototype.onYtToggleButton=MA.prototype.onYtToggleButton;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],MA.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],MA.prototype,"itemStyle",null);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],MA.prototype,"onYtToggleButton",null);_.W([_.yd({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],MA);
_.a(MA,"ytd-labs-item-renderer",function(){if(wKa!==void 0)return wKa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wKa=I},{mode:1});var v8C;var SwY;var tXg=function(){return _.k.apply(this,arguments)||this};
_.E(tXg,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tXg.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tXg.prototype,"data",void 0);_.W([_.yd({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],tXg);
_.a(tXg,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(SwY!==void 0)return SwY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SwY=I},{mode:1});var PcG;var zH=function(){return _.k.apply(this,arguments)||this};
_.E(zH,_.k);zH.prototype.observeSuperchatChip=function(){if(this.data){var I={"--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)};_.pg(this.hostElement,I)}};
zH.prototype.colorFromDecimal=function(I){return _.Z7(Number(I||0))};
zH.prototype.observeSuperchatChip=zH.prototype.observeSuperchatChip;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zH.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zH.prototype,"observeSuperchatChip",null);_.W([_.yd({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],zH);
_.a(zH,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(PcG!==void 0)return PcG;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PcG=I},{mode:1});var kl=function(){return _.k.apply(this,arguments)||this};
_.E(kl,_.k);kl.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"}}}};
_.mD.Object.defineProperties(kl.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],kl.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kl.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kl.prototype,"hideMessageBlock",null);
_.W([_.yd({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],kl);
_.a(kl,"ytd-live-chat-history-entry-renderer",function(){if(v8C!==void 0)return v8C;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return v8C=I},{mode:1});var KUT;var dW=function(){return _.k.apply(this,arguments)||this};
_.E(dW,_.k);dW.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.pg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.mD.Object.defineProperties(dW.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var I,y;return this.componentBehavior.computeIcon_(((y=_.u((I=this.data)==null?void 0:I.badge,_.EFa))==null?void 0:y.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.badge,_.EFa))==null?void 0:y.label}}});
dW.prototype.observerRichGridItemsPerRow=dW.prototype.observerRichGridItemsPerRow;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],dW.prototype,"componentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],dW.prototype,"ytdReduxBehavior",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Z5}),_.A("design:type",Boolean)],dW.prototype,"richGridMiniMode",void 0);
_.W([_.M({selector:_.gH}),_.A("design:type",Number)],dW.prototype,"richGridItemsPerRow",void 0);_.W([_.M(),_.A("design:type",Object)],dW.prototype,"data",void 0);_.W([_.ke("richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dW.prototype,"observerRichGridItemsPerRow",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],dW.prototype,"badgeIconName",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],dW.prototype,"badgeLabel",null);_.W([_.yd({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],dW);
_.a(dW,"ytd-member-hub-profile-renderer",function(){if(KUT!==void 0)return KUT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return KUT=I},{mode:1});var Uxa;var aS=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return I};
_.E(aS,_.k);
aS.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"}}}};
aS.prototype.handleUpdateTextCommand=function(I){(I=_.u(I,_.tQM))&&this.data&&this.data.id===I.id&&this.set("data",I)};
aS.prototype.handleUpdateConnectedAppRendererCommand=function(I){if(_.u(I,_.ULP)&&this.data){var y,D;if(I=(y=_.u(I,_.ULP))==null?void 0:(D=y.newConnectedAppRenderer)==null?void 0:D.connectedAppRenderer)this.data=I}};
aS.prototype.computeConnectedAppStyle=function(I){return I.style?I.style.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],aS.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aS.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.A("design:type",String)],aS.prototype,"connectedAppStyle",void 0);_.W([_.yd({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],aS);
_.a(aS,"ytd-connected-app-renderer",function(){if(Uxa!==void 0)return Uxa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Uxa=I},{mode:1});var rBG;var jA1=function(){return _.k.apply(this,arguments)||this};
_.E(jA1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jA1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jA1.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],jA1);
_.a(jA1,"ytd-channel-options-renderer",function(){if(rBG!==void 0)return rBG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rBG=I},{mode:1});var o8R;var c8=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return I};
_.E(c8,_.k);c8.prototype.onCheckboxChange=function(I){this.data&&(I=(this.checked=_.jv(I).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})};
c8.prototype.handleUpdateCheckboxCommand=function(I){(I=_.u(I,_.SDM))&&this.data&&this.data.id===I.id&&(this.set("data.disabled",I.disabled),this.set("data.title",I.title))};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],c8.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],c8.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],c8.prototype,"checked",void 0);_.W([_.yd({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],c8);
_.a(c8,"ytd-settings-checkbox-renderer",function(){if(o8R!==void 0)return o8R;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return o8R=I},{mode:1});var NLa;var W8=function(){return _.k.apply(this,arguments)||this};
_.E(W8,_.k);W8.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],W8.prototype,"data",void 0);_.W([_.yd({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],W8);
_.a(W8,"ytd-settings-email-item-renderer",function(){if(NLa!==void 0)return NLa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return NLa=I},{mode:1});var h1R;var Cy=function(){return _.k.apply(this,arguments)||this};
_.E(Cy,_.k);Cy.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"}}}};
Cy.prototype.getExpansionIcon=function(I){return I?"COLLAPSE":"EXPAND"};
Cy.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.mD.Object.defineProperties(Cy.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Cy.prototype,"data",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cy.prototype,"expanded",void 0);_.W([_.Y("expanded"),_.A("design:type",String),_.A("design:paramtypes",[])],Cy.prototype,"emailListExpanded",null);
_.W([_.a0("#options"),_.A("design:type",Object)],Cy.prototype,"options",void 0);_.W([_.yd({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Cy);
_.a(Cy,"ytd-settings-email-list-renderer",function(){if(h1R!==void 0)return h1R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return h1R=I},{mode:1});var xxa;var lsa;var u_a;var qwa;var E8o;var B8=function(){return _.k.apply(this,arguments)||this};
_.E(B8,_.k);_.L=B8.prototype;_.L.computePreselectedOption=function(I,y){return y===this.itemSelected_?I:void 0};
_.L.dataChanged_=function(){var I=this;this.preselectedSubreason=this.itemSelected_=-1;var y;(y=this.data)!=null&&y.key&&_.YC(this,function(){var D,F=Number((D=I.data)==null?void 0:D.key);!Number.isNaN(F)&&(I.itemSelected_=F,D=(D=(I.data.items||[])[F])&&D.optionSelectableItemRenderer&&D.optionSelectableItemRenderer.preselectedIndex)&&(I.preselectedSubreason=D)})};
_.L.isSubReasonHidden_=function(I,y){return I!=y};
_.L.onTopItemSelected_=function(I,y){for(var D=_.XB(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),F=0,R=D.length;F<R;F++)D[F].select(0);_.uj(this.hostElement,"yt-report-form-update",[y.item.value]);I.stopPropagation()};
_.L.onItemSelected_=function(I,y){_.uj(this.hostElement,"yt-report-form-update",[y.item.value]);I.stopPropagation()};
_.L.getItem_=function(I){return I.serviceItem?I.serviceItem:I.navigationItem?I.navigationItem:I.optionSelectableItemRenderer?I.optionSelectableItemRenderer:null};
_.L.computeText_=function(I){return(I=this.getItem_(I))?this.ytRendererBehavior.getSimpleString(I.text):null};
_.L.validate=function(){return this.itemSelected_!==-1};
_.L.computeAriaLabel_=function(I){var y=_.rY(I.text);(I=I.accessibility&&I.accessibility.accessibilityData&&I.accessibility.accessibilityData.label)&&(y+=". "+I);return y};
_.L.computeItemSelected_=function(I){return I};
_.L.preventSelection_=function(I){I.stopPropagation();this.tooltipTapped=!0};
_.L.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.L.updateItemSelectedFromBinding=function(I){this.itemSelected_=I.detail.value};
_.L.save=function(){var I;this.validate()&&(I=this.data)!=null&&I.items&&(I=this.data.items[this.itemSelected_],I!=null&&I.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(I.optionSelectableItemRenderer.submitEndpoint)||_.E$(this.hostElement,[I.optionSelectableItemRenderer.submitEndpoint])))};
B8.prototype.onPaperRippleTransitionEnd_=B8.prototype.onPaperRippleTransitionEnd_;B8.prototype.dataChanged_=B8.prototype.dataChanged_;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],B8.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],B8.prototype,"data",void 0);_.W([_.M({value:-1}),_.A("design:type",Number)],B8.prototype,"itemSelected_",void 0);
_.W([_.M({computed:"computeItemSelected_(itemSelected_)"}),_.A("design:type",Number)],B8.prototype,"value",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],B8.prototype,"restoreFocusOnClose",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],B8.prototype,"tooltipTapped",void 0);_.W([_.M({value:-1}),_.A("design:type",Number)],B8.prototype,"preselectedSubreason",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B8.prototype,"dataChanged_",null);_.W([_.z4("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],B8.prototype,"onPaperRippleTransitionEnd_",null);_.W([_.I6({is:"yt-options-renderer",disableElementRegistration:!0})],B8);
_.a(B8,"yt-options-renderer",function(){if(E8o===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;qwa===void 0&&(qwa=document.createElement("template"));var F=qwa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);E8o=I}I=E8o;return I},{mode:2});var GKa;var XKy;var QAg;var Yw8;var im=function(){return _.k.apply(this,arguments)||this};
_.E(im,_.k);im.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
im.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
im.prototype.onTap=function(I){if(this.hostElement.classList.contains("selected")||_.uj(this.hostElement,"yt-share-panel-can-select-contact-action")[0])I&&I.detail&&(I.detail.x||I.detail.y)&&_.XB(this.hostElement).querySelector("#target").blur(),(I=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),I={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:I?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.uj(this.hostElement,"yt-share-panel-select-contact-action",[I])};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.W([_.M({observer:"onDataChanged"}),_.A("design:type",Object)],im.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],im.prototype,"componentTitle",void 0);_.W([_.a0("#thumbnail"),_.A("design:type",Object)],im.prototype,"thumbnail",void 0);_.W([_.I6({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],im);
_.a(im,"yt-enrolled-contact-renderer",function(){if(Yw8===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;QAg===void 0&&(QAg=document.createElement("template"));var F=QAg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Yw8=I}I=Yw8;return I},{mode:2});var fsb;var n8y;var An=function(){return _.k.apply(this,arguments)||this};
_.E(An,_.k);An.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
An.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
An.prototype.onTap=function(I){if(this.hostElement.classList.contains("selected")||_.uj(this.hostElement,"yt-share-panel-can-select-contact-action")[0])I&&I.detail&&(I.detail.x||I.detail.y)&&_.XB(this.hostElement).querySelector("#target").blur(),(I=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),I={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:I?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.uj(this.hostElement,"yt-share-panel-select-contact-action",[I])};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.W([_.M({observer:"onDataChanged"}),_.A("design:type",Object)],An.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],An.prototype,"componentTitle",void 0);_.W([_.a0("#thumbnail"),_.A("design:type",Object)],An.prototype,"thumbnail",void 0);_.W([_.I6({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],An);
_.a(An,"yt-suggested-contact-renderer",function(){if(n8y===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;fsb===void 0&&(fsb=document.createElement("template"));var F=fsb;D.call(y,F.content.cloneNode(!0),I.content.firstChild);n8y=I}I=n8y;return I},{mode:2});var $l=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-share-panel-reset-action":"onReset"};return I};
_.E($l,_.k);$l.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"}}}}}};
$l.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.uj(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
$l.prototype.onReset=function(){for(var I=_.XB(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),y=I.length-1;y>=0;y--)I[y].classList.toggle("selected")};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],$l.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M({observer:"onDataChanged"}),_.A("design:type",Object)],$l.prototype,"data",void 0);
_.W([_.I6({is:"yt-contact-section-renderer",disableElementRegistration:!0})],$l);
_.a($l,"yt-contact-section-renderer",function(){if(XKy===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;GKa===void 0&&(GKa=document.createElement("template"));var F=GKa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);XKy=I}I=XKy;return I},{mode:2});var bm=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return I};
_.E(bm,_.k);_.L=bm.prototype;_.L.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"}}}};
_.L.onYtRefreshFormCommand=function(I){var y;(I=_.u((y=_.u(I,_.H3e))==null?void 0:y.formRenderer,CzC))&&this.set("data",I)};
_.L.reset=function(){var I=_.XB(this.hostElement).querySelector("#fields").children;I=_.J(I);for(var y=I.next();!y.done;y=I.next())y=y.value,y.reset&&y.reset()};
_.L.getForm=function(){var I={},y=_.XB(this.hostElement).querySelector("#fields").children;y=_.J(y);for(var D=y.next();!D.done;D=y.next()){D=D.value;if(!D.validate())return null;I[D.data.key]=D.value}return I};
_.L.submitFormFields=function(){if(this.fields)for(var I=_.J(this.fields),y=I.next();!y.done;y=I.next())y=y.value,y.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?y.save():y.nodeName==="YT-OPTIONS-RENDERER"&&y.save()};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],bm.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bm.prototype,"data",void 0);_.W([_.cp("#fields > *"),_.A("design:type",Array)],bm.prototype,"fields",void 0);
_.W([_.I6({is:"yt-form-renderer",disableElementRegistration:!0})],bm);
_.a(bm,"yt-form-renderer",function(){if(u_a===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;lsa===void 0&&(lsa=document.createElement("template"));var F=lsa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);u_a=I}I=u_a;return I},{mode:2});var H8=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return I};
_.E(H8,_.k);H8.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"}}}};
H8.prototype.handleSignalActionSubmitForm=function(){var I,y=(I=this.formRenderer)==null?void 0:I.getForm();y&&this.data.serviceEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},y,{element:this.hostElement})})};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],H8.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],H8.prototype,"data",void 0);_.W([_.a0("yt-form-renderer"),_.A("design:type",Object)],H8.prototype,"formRenderer",void 0);
_.W([_.yd({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],H8);
_.a(H8,"ytd-settings-gaia-link-renderer",function(){if(xxa!==void 0)return xxa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xxa=I},{mode:1});var pKG;var mxa;var eG=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return I};
_.E(eG,_.k);eG.prototype.dataChanged=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return I.radio.removeAttribute("checked"),!I.data||!I.data.id||I.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||yfa()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(y=I.data&&I.data.id)?D.yield(Fja(I.data.id),4):D.jumpTo(3):(I.set("data.hidden",!0),D.jumpTo(0));D.nextAddress!=3&&(y=D.yieldResult);y&&_.uj(I.hostElement,"yt-select-settings-radio-option",[I.data.id]);_.Cj(D)})};
eG.prototype.onButtonChanged=function(I){_.jv(I).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.uj(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
eG.prototype.onSelectOption=function(I){this.data&&this.data.id&&(this.data.id===I?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
eG.prototype.dataChanged=eG.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],eG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.a0("#radio"),_.A("design:type",Object)],eG.prototype,"radio",void 0);_.W([_.M(),_.A("design:type",Object)],eG.prototype,"data",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],eG.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],eG);
_.a(eG,"ytd-settings-radio-option-renderer",function(){if(mxa!==void 0)return mxa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mxa=I},{mode:1});_.NK(_.Sc,"basic-content-view-model",{props:{data:_.rV,className:_.rV}});var TH=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return I};
_.E(TH,_.k);TH.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&yfa()&&this.set("data.hidden",!1)};
TH.prototype.onSwitchReady=function(){var I=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.l("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){WQQ().then(function(y){y&&(Notification.permission==="default"?I.set("data.hidden",!1):Notification.permission==="granted"&&FQ("NotificationsDisabled").then(function(D){D||_.uj(I.hostElement,"yt-toggle-settings-switch",[I.data.id,!D]);I.set("data.hidden",!1)}).catch(function(){}))})})};
TH.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
TH.prototype.handleUpdateOptionsCommand=function(I){(I=_.u(I,_.P8O))&&this.data&&this.data.id===I.id&&(this.set("data.hidden",I.hidden),I.text!==void 0&&this.set("data.text",I.text),I.clearOptions&&this.set("data.options",[]))};
TH.prototype.onSwitchReady=TH.prototype.onSwitchReady;TH.prototype.dataChanged=TH.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],TH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TH.prototype,"data",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TH.prototype,"dataChanged",null);_.W([_.z4("yt-settings-switch-ready"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TH.prototype,"onSwitchReady",null);_.W([_.yd({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],TH);
_.a(TH,"ytd-settings-options-renderer",function(){if(pKG!==void 0)return pKG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return pKG=I},{mode:1});var MX1;var sL=function(){return _.k.apply(this,arguments)||this};
_.E(sL,_.k);sL.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sL.prototype,"data",void 0);_.W([_.yd({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],sL);
_.a(sL,"ytd-settings-sidebar-renderer",function(){if(MX1!==void 0)return MX1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return MX1=I},{mode:1});var z1a;var Vw=function(){return _.k.apply(this,arguments)||this};
_.E(Vw,_.k);Vw.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Vw.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Vw.prototype.onYtExpanderMoreTapped=Vw.prototype.onYtExpanderMoreTapped;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Vw.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Vw.prototype,"data",void 0);
_.W([_.z4("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vw.prototype,"onYtExpanderMoreTapped",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Vw);
_.a(Vw,"ytd-product-details-description-renderer",function(){if(z1a!==void 0)return z1a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return z1a=I},{mode:1});var kKR;var Zl=function(){var I=_.k.apply(this,arguments)||this;I.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";I.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";I.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";I.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return I};
_.E(Zl,_.k);Zl.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mD.Object.defineProperties(Zl.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:(y=I.offerData)==null?void 0:y.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?void 0:I.purchaseButtonRenderers)!==void 0&&((y=this.data)==null?void 0:y.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.formattedFromMerchantText)&&(!((y=this.data)==null||!y.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zl.prototype,"data",void 0);
_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],Zl.prototype,"shippingIcon",void 0);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],Zl.prototype,"shippingAddressIcon",void 0);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],Zl.prototype,"googleGuaranteeIcon",void 0);
_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],Zl.prototype,"returnPolicyIcon",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zl.prototype,"showAdditionalFees",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zl.prototype,"showMultiPurchaseButtons",null);
_.W([_.Y("data","showMultiPurchaseButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zl.prototype,"showPurchaseData",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Zl);
_.a(Zl,"ytd-product-details-hero-offer-renderer",function(){if(kKR!==void 0)return kKR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return kKR=I},{mode:1});var dx8;var asC;var gW=function(){return _.k.apply(this,arguments)||this};
_.E(gW,_.k);_.L=gW.prototype;_.L.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.L.onKeyDown=function(I){I=I.keyCode;I!==13&&I!==32||this.handleSelection()};
_.L.onMouseEnterImage=function(){var I;((I=this.data)==null?void 0:I.thumbnailDetails)!==void 0&&_.qr(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.L.onMouseLeaveImage=function(){_.qr(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.L.handleSelection=function(){this.data&&_.lj(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.mD.Object.defineProperties(gW.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isSelected)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gW.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gW.prototype,"isSelected",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],gW);
_.a(gW,"ytd-product-details-thumbnail-renderer",function(){if(asC!==void 0)return asC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return asC=I},{mode:1});var IA=function(){var I=_.k.apply(this,arguments)||this;var y={};I.actionMap=(y["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",y["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",y);I.selectedThumbnailIndex=0;I.selectItem=function(D){D.target.onKeyDown(D)};
return I};
_.E(IA,_.k);_.L=IA.prototype;_.L.handlePreviewImageSelect=function(I){this.hoverThumbnail=I};
_.L.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.L.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.L.onThumbnailSelected=function(I,y){this.selectedThumbnailIndex=y};
_.L.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.L.updateOffset=function(){var I=_.XB(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-I));this.ytdHorizontalListBehavior.reposition_()};
_.mD.Object.defineProperties(IA.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.imageRenderer){var y,D;return((y=this.data)==null?void 0:(D=y.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 I;if((I=this.data)==null?0:I.imageRenderer){var y;return(y=_.u(this.data.imageRenderer[this.selectedThumbnailIndex],ttb))==null?void 0:y.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D,F,R=(F=(y=this.data)==null?void 0:(D=y.imageRenderer)==null?void 0:D.map(function(O,w){return{productDetailsThumbnailRenderer:Object.assign({},_.u(O,ttb),{index:w,isSelected:w===I.selectedThumbnailIndex})}}))!=null?F:[];
return Object.assign({},this.data,{imageRenderer:R})}}});
IA.prototype.updateOffset=IA.prototype.updateOffset;IA.prototype.dataChanged=IA.prototype.dataChanged;IA.prototype.onThumbnailSelected=IA.prototype.onThumbnailSelected;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Yg.YtdHorizontalListBehavior),_.A("design:type",Object)],IA.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],IA.prototype,"componentBehavior",void 0);_.W([_.Q([_.cb.YtActionHandlerBehavior]),_.A("design:type",Object)],IA.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],IA.prototype,"data",void 0);_.W([_.M({value:"$.items.children"}),_.A("design:type",String)],IA.prototype,"itemsPath",void 0);_.W([_.M({value:3}),_.A("design:type",Number)],IA.prototype,"initialCount",void 0);
_.W([_.a0("#items"),_.A("design:type",Object)],IA.prototype,"items",void 0);_.W([_.M(),_.A("design:type",Object)],IA.prototype,"selectedThumbnailIndex",void 0);_.W([_.M(),_.A("design:type",Object)],IA.prototype,"hoverThumbnail",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],IA.prototype,"showThumbnails",null);
_.W([_.z4("ytd-product-details-thumbnail-renderer-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Number]),_.A("design:returntype")],IA.prototype,"onThumbnailSelected",null);_.W([_.Y("data","selectedThumbnailIndex","hoverThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],IA.prototype,"thumbnailDetails",null);_.W([_.Y("data","selectedThumbnailIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],IA.prototype,"populatedData",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IA.prototype,"dataChanged",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IA.prototype,"updateOffset",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],IA);
_.a(IA,"ytd-product-details-image-carousel-renderer",function(){if(dx8!==void 0)return dx8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return dx8=I},{mode:_.Qd("kevlar_poly_si_batch_j079")?1:2});var cB8;var ym=function(){return _.k.apply(this,arguments)||this};
_.E(ym,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ym.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ym.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],ym);
_.a(ym,"ytd-product-details-offer-renderer",function(){if(cB8!==void 0)return cB8;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return cB8=I},{mode:1});var WUC;var Ds=function(){var I=_.k.apply(this,arguments)||this;I.isOffersHidden=!0;return I};
_.E(Ds,_.k);Ds.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var I,y=_.u((I=this.data)==null?void 0:I.viewOffersButton,_.S1);y&&this.ytRendererBehavior.logExplicitClick(y)};
Ds.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.mD.Object.defineProperties(Ds.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return(D=_.u((I=this.data)==null?void 0:(y=I.offers)==null?void 0:y[0],rka))==null?void 0:(F=D.offerData)==null?void 0:F.vendorLogoUrl}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ds.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ds.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Ds.prototype,"isOffersHidden",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ds.prototype,"firstOfferVendorLogoUrl",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Ds);
_.a(Ds,"ytd-product-details-offers-container-renderer",function(){if(WUC!==void 0)return WUC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return WUC=I},{mode:1});var CcY;var BLC;var F_=function(){return _.k.apply(this,arguments)||this};
_.E(F_,_.k);F_.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
F_.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.qr(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
F_.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.qr(this,"ytd-product-details-variant-image-unselect")};
_.mD.Object.defineProperties(F_.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 I;return((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?void 0:I.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((y=this.data)==null?void 0:y.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 I;if(((I=this.data)==null?void 0:I.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var I,y;return this.isUnavailable?(I=this.data)==null?void 0:I.variantOptionUnavailableAccessibilityLabel:(y=this.data)==null?void 0:y.variantOptionAccessibilityLabel}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],F_.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],F_.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],F_.prototype,"displayType",void 0);
_.W([_.Y("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"isImageButton",null);_.W([_.Y("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"isPillButton",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"isActive",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"isUnavailable",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],F_.prototype,"thumbnailDetails",null);_.W([_.Y("isUnavailable","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],F_.prototype,"accessibilityLabel",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],F_);
_.a(F_,"ytd-product-details-variant-option-renderer",function(){if(BLC!==void 0)return BLC;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return BLC=I},{mode:1});var i$1;var RA=function(){var I=_.k.apply(this,arguments)||this;I.variantsExpanded=!1;I.hideShowMoreLessVariantButton=!0;I.initialized=!1;I.computeVariantsDebouncer=null;I.computeVariants=function(y){y=y===void 0?!1:y;I.variantsExpanded||I.showOptions()||!y||(I.variantsExpanded=!0);if(I.variantsExpanded){y=_.J(I.items.children);for(var D=y.next();!D.done;D=y.next())D.value.hidden=!1}I.initialized=!0};
return I};
_.E(RA,_.k);_.L=RA.prototype;_.L.ready=function(){var I=this;setTimeout(function(){I.computeVariants(!0)})};
_.L.showOptions=function(){for(var I=_.J(this.items.children),y=I.next();!y.done;y=I.next())y.value.hidden=!0;var D=this.container.getBoundingClientRect().width,F=0,R=I=0;y=!1;for(var O=_.J(this.items.children),w=O.next();!w.done;w=O.next()){w=w.value;w.hidden=!1;var v=w.getBoundingClientRect().width;if(F+v<D)F+=v;else if(++R<2)F=v;else break;I+=1;w.hasAttribute("is-active")&&(y=!0)}for(D=I;D<this.items.children.length;D++)this.items.children[D].hidden=!0;this.hideShowMoreLessVariantButton=I===this.items.children.length;
return y};
_.L.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.mz(this.computeVariantsDebouncer,_.x0.after(100),this.computeVariants)};
_.L.onShowMoreLessVariantsButtonClick=function(){var I;(I=this.data)!=null&&I.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.L.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.mD.Object.defineProperties(RA.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.variantOptionRenderers)==null?void 0:y.find(function(O){return _.u(O,KBZ).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),F,R;
return(R=(F=_.u(D,KBZ))==null?void 0:F.name)!=null?R:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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"}}}});
RA.prototype.debouncedComputeVariants=RA.prototype.debouncedComputeVariants;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],RA.prototype,"componentBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],RA.prototype,"ironResizableBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],RA.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],RA.prototype,"variantsExpanded",void 0);_.W([_.M(),_.A("design:type",Object)],RA.prototype,"hideShowMoreLessVariantButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],RA.prototype,"initialized",void 0);_.W([_.a0("#items"),_.A("design:type",HTMLDivElement)],RA.prototype,"items",void 0);_.W([_.a0("#container"),_.A("design:type",HTMLDivElement)],RA.prototype,"container",void 0);
_.W([_.a0("#more-variants-button"),_.A("design:type",HTMLElement)],RA.prototype,"moreVariantsButton",void 0);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],RA.prototype,"selectedOptionName",null);_.W([_.ke("data","variantsExpanded"),_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RA.prototype,"debouncedComputeVariants",null);
_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],RA.prototype,"displayType",null);_.W([_.Y("displayType"),_.A("design:type",Object),_.A("design:paramtypes",[])],RA.prototype,"variantItemsClassname",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],RA);
_.a(RA,"ytd-product-details-variant-renderer",function(){if(i$1!==void 0)return i$1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return i$1=I},{mode:1});var Ow=function(){return _.k.apply(this,arguments)||this};
_.E(Ow,_.k);
Ow.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"}}}};
_.mD.Object.defineProperties(Ow.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(y=_.u((I=this.data)==null?void 0:I.offersContainerRenderer,UkG))==null?void 0:y.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 I,y,D;return((D=(I=this.data)==null?void 0:(y=I.variants)==null?void 0:y.map(function(F){var R,O;F=(O=(R=_.u(F,PGR))==null?void 0:R.variantOptionRenderers)==null?void 0:O.find(function(v){var P;return((P=_.u(v,KBZ))==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var w;return(w=_.u(F,KBZ))==null?void 0:w.name}).filter(function(F){return typeof F==="string"}))!=null?D:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F=(y=_.u((I=this.data)==null?void 0:I.shoppingFlaggingRenderer,jYQ))==null?void 0:(D=y.reportButton)==null?void 0:D.buttonRenderer;if(F)return{text:F.text,command:F.command,icon:{iconType:"FLAG"},accessibilityData:F.accessibilityData,trackingParams:F.trackingParams,loggingDirectives:F.loggingDirectives}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ow.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ow.prototype,"data",void 0);_.W([_.a0("#image-carousel-renderer"),_.A("design:type",Object)],Ow.prototype,"imageCarouselRenderer",void 0);
_.W([_.a0("#hero-offer-renderer"),_.A("design:type",Object)],Ow.prototype,"productDetailsHeroOfferRenderer",void 0);_.W([_.a0("#variants"),_.A("design:type",Object)],Ow.prototype,"productDetailsVariantRenderer",void 0);_.W([_.a0("#offers"),_.A("design:type",Object)],Ow.prototype,"productDetailsOffersContainerRenderer",void 0);_.W([_.a0("#description-renderer"),_.A("design:type",Object)],Ow.prototype,"productDetailsDescriptionRenderer",void 0);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showPurchaseData",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showHeroOfferRenderer",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showBrandText",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showOffers",null);
_.W([_.Y("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showBuySeparator",null);_.W([_.Y("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ow.prototype,"showBuyCard",null);_.W([_.Y("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Ow.prototype,"selectedVariantsText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ow.prototype,"shoppingReportingButtonData",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Ow);
_.a(Ow,"ytd-product-details-renderer",function(){if(CcY!==void 0)return CcY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return CcY=I},{mode:1});var ABo;var $xY;var b$T;var L$=function(){return _.k.apply(this,arguments)||this};
_.E(L$,_.k);L$.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mD.Object.defineProperties(L$.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],L$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],L$.prototype,"formattedAmount",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],L$.prototype,"ariaLabel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],L$.prototype,"vcBalanceWidgetStyle",null);_.W([_.I6({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],L$);
_.a(L$,"yt-vc-balance-renderer",function(){if(b$T===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;$xY===void 0&&($xY=document.createElement("template"));var F=$xY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);b$T=I}I=b$T;return I},{mode:2});_.bO("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var JB=function(){return _.k.apply(this,arguments)||this};
_.E(JB,_.k);_.mD.Object.defineProperties(JB.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:""}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],JB.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],JB.prototype,"data",void 0);_.W([_.M({selectorArgs:["data.vcBalanceEntityKey"],selector:function(I,y){return _.nC(I.entities,"vcBalanceEntity",y)}}),
_.A("design:type",Object)],JB.prototype,"vcBalanceEntity",void 0);_.W([_.Y("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],JB.prototype,"formattedAmount",null);_.W([_.Y("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],JB.prototype,"vcBalanceAriaLabel",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],JB);
_.a(JB,"ytd-vc-balance-renderer",function(){if(ABo!==void 0)return ABo;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ABo=I},{mode:1});var H$Y;var wL=function(){var I=_.k.apply(this,arguments)||this;I.expandableCustomTabRenderable=function(y){return NTa(y,function(){return void I.onSearchNavigate()})};
return I};
_.E(wL,_.k);wL.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
wL.prototype.onSearchNavigate=function(){this.selected=void 0};
wL.prototype.onTabsChange=function(){var I,y=(I=this.tabs)==null?void 0:I.findIndex(function(D){var F;return D==null?void 0:(F=D.tabRenderer)==null?void 0:F.selected});
y!==void 0&&(this.selected=y)};
wL.prototype.onTabsActive=function(I){if(this.tabs!==void 0){var y,D;(I=(y=this.tabs[I.detail.selected])==null?void 0:(D=y.tabRenderer)==null?void 0:D.endpoint)&&_.lj(this.hostElement,"yt-navigate",{endpoint:I})}};
_.mD.Object.defineProperties(wL.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:l3y(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
wL.prototype.onTabsChange=wL.prototype.onTabsChange;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.tl),_.A("design:type",Object)],wL.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],wL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],wL.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],wL.prototype,"tabs",void 0);_.W([_.M(),_.A("design:type",Number)],wL.prototype,"selected",void 0);_.W([_.Y("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],wL.prototype,"tabGroupShape",null);_.W([_.M(),_.A("design:type",Object)],wL.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.Y("tabs"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],wL.prototype,"tabsEnabled",null);_.W([_.Bp("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wL.prototype,"onTabsChange",null);_.W([_.yd({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],wL);
_.a(wL,"ytd-topic-channel-details-renderer",function(){if(H$Y!==void 0)return H$Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H$Y=I},{mode:1});var e1T;var vK=function(){var I=_.k.apply(this,arguments)||this;I.disableGridStateAware=!1;return I};
_.E(vK,_.k);vK.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]]"}}}}}};
vK.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
vK.prototype.updateCssVars=function(){_.pg(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.kf("rich_grid_max_item_width",500))+16)-16+"px"})};
vK.prototype.updateCssVars=vK.prototype.updateCssVars;vK.prototype.activeChanged=vK.prototype.activeChanged;_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],vK.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vK.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],vK.prototype,"tabs",void 0);_.W([_.M(),_.A("design:type",Boolean)],vK.prototype,"active",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],vK.prototype,"disableGridStateAware",void 0);
_.W([_.M({selector:_.gH}),_.A("design:type",Number)],vK.prototype,"richGridItemsPerRow",void 0);_.W([_.M({selector:_.Z5}),_.A("design:type",Boolean)],vK.prototype,"richGridMiniMode",void 0);_.W([_.a0("ytd-carousel-item-renderer"),_.A("design:type",Object)],vK.prototype,"carousel",void 0);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vK.prototype,"activeChanged",null);
_.W([_.ke("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vK.prototype,"updateCssVars",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],vK);
_.a(vK,"ytd-carousel-header-renderer",function(){if(e1T!==void 0)return e1T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return e1T=I},{mode:1});var TLb;var sAQ=_.UI(["https://www.google-analytics.com/analytics.js"]),SX=function(){var I=_.k.apply(this,arguments)||this;I.scriptAnalyticsAdded=!1;return I};
_.E(SX,_.k);SX.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var I,y=(I=this.data)==null?void 0:I.tagManagerId;y&&(_.V8(y,_.Pi("GL")),S4T(y))};
SX.prototype.sendGoogleAnalyticsPageview=function(I){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var D=_.go.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(D)};
var y=window.ga;y("set","page",window.location.pathname);y.l=+new Date;y("set","forceSSL",!0);y("create",I,"'auto'");y("send","pageview")};
SX.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var I=_.kW("SCRIPT");I.name="ga-analytics";var y=_.Et(sAQ);_.Uk(I,y);I.async=!0;_.XB(this.hostElement).appendChild(I)};
SX.prototype.dataChanged=SX.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],SX.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SX.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],SX);
_.a(SX,"ytd-channel-metadata-renderer",function(){if(TLb!==void 0)return TLb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return TLb=I},{mode:1});var VXy;var Z$e;var g8g=function(){return _.k.apply(this,arguments)||this};
_.E(g8g,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],g8g.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],g8g.prototype,"data",void 0);_.W([_.yd({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],g8g);
_.a(g8g,"ytd-sub-feed-option-renderer",function(){if(Z$e!==void 0)return Z$e;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Z$e=I},{mode:1});var Izo;var tB=function(){return _.k.apply(this,arguments)||this};
_.E(tB,_.k);tB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],tB.prototype,"ytRendererStamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],tB.prototype,"data",void 0);_.W([_.yd({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],tB);
_.a(tB,"ytd-sub-feed-selector-renderer",function(){if(Izo!==void 0)return Izo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Izo=I},{mode:1});var PK=function(){return _.k.apply(this,arguments)||this};
_.E(PK,_.k);
PK.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}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PK.prototype,"data",void 0);_.W([_.yd({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],PK);
_.a(PK,"ytd-browse-feed-actions-renderer",function(){if(VXy!==void 0)return VXy;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return VXy=I},{mode:1});var yFC;var DIQ;var K$=function(){return _.k.apply(this,arguments)||this};
_.E(K$,_.k);K$.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],K$.prototype,"data",void 0);_.W([_.yd({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],K$);
_.a(K$,"ytd-mini-channel-renderer",function(){if(DIQ!==void 0)return DIQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return DIQ=I},{mode:1});var FaZ;var Uw=function(){return _.k.apply(this,arguments)||this};
_.E(Uw,_.k);Uw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Uw.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Uw);
_.a(Uw,"ytd-vertical-channel-section-renderer",function(){if(FaZ!==void 0)return FaZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return FaZ=I},{mode:1});var rL=function(){return _.k.apply(this,arguments)||this};
_.E(rL,_.k);rL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rL.prototype,"data",void 0);_.W([_.yd({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],rL);
_.a(rL,"ytd-browse-secondary-contents-renderer",function(){if(yFC!==void 0)return yFC;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return yFC=I},{mode:1});var R_Z;var jX=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};I.notActive=!1;I.isConstrainedList=!1;I.marginSettings=0;return I};
_.E(jX,_.k);_.L=jX.prototype;
_.L.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(I){var y;return(I==null?void 0:(y=I.webComponentHint)==null?void 0:y.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}}}}};
_.L.getPath=function(I,y){var D="data.tabs.#"+y+".";I.tabs[y].tabRenderer?D+="tabRenderer.":I.tabs[y].expandableTabRenderer&&(D+="expandableTabRenderer.");return D+"content.sectionListRenderer"};
_.L.computeDisplayedContent=function(I){this.unlinkPaths("content");if(I&&I.tabs)for(var y=I.tabs.length,D=0;D<y;D++){var F=I.tabs[D].tabRenderer||I.tabs[D].expandableTabRenderer;if(F.selected&&F.content)return this.linkPaths("content",this.getPath(I,D)),F.content}return null};
_.L.computeHasSecondaryColumnData=function(I){return!!I&&!!I.secondaryContents};
_.L.onRetrieveLocation=function(I,y){y.locationRetrieved(y.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);I.stopPropagation()};
_.L.onYtServiceRequestSent=function(I,y){_.l("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.L.onYtServiceRequestCompleted=function(I,y){_.l("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(y)};
_.L.onReplaceFeedContentAction=function(I){if(!_.l("replace_feed_content_action_killswitch")&&!this.notActive){var y;(I=(y=_.u(I,ggQ))==null?void 0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(I)}};
_.L.handleServiceRequestActions=function(I){if(I=I.actions){I=_.J(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var D=void 0;((D=_.u(y,ggQ))==null?0:D.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.u(y,ggQ).items)}}};
jX.prototype.onYtServiceRequestCompleted=jX.prototype.onYtServiceRequestCompleted;jX.prototype.onYtServiceRequestSent=jX.prototype.onYtServiceRequestSent;jX.prototype.onRetrieveLocation=jX.prototype.onRetrieveLocation;_.W([_.Q(_.tl),_.A("design:type",Object)],jX.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],jX.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jX.prototype,"data",void 0);_.W([_.M({computed:"computeDisplayedContent(data)"}),_.A("design:type",Object)],jX.prototype,"content",void 0);
_.W([_.M({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jX.prototype,"hasSecondaryColumnData",void 0);_.W([_.M({value:function(){return window.outerHeight>1024?3:2}}),
_.A("design:type",Number)],jX.prototype,"initialCount",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],jX.prototype,"pageSubtype",void 0);_.W([_.a0("ytd-section-list-renderer"),_.A("design:type",Object)],jX.prototype,"listRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],jX.prototype,"notActive",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],jX.prototype,"isConstrainedList",void 0);
_.W([_.M(),_.A("design:type",String)],jX.prototype,"responsiveSizing",void 0);_.W([_.M(),_.A("design:type",Number)],jX.prototype,"marginSettings",void 0);_.W([_.z4("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],jX.prototype,"onRetrieveLocation",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],jX.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],jX.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],jX);
_.a(jX,"ytd-two-column-browse-results-renderer",function(){if(R_Z!==void 0)return R_Z;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return R_Z=I},{mode:2});var Ona;var LaR;var oA=function(){var I=_.k.apply(this,arguments)||this;I.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"]);I.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"]);I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return I};
_.E(oA,_.k);_.L=oA.prototype;_.L.attached=function(){this.requestElementsPerRow()};
_.L.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_]]"}}}}}};
_.L.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
_.L.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.L.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.L.computeAlertStyle_=function(I){return I};
_.L.observerElementsPerRow=function(){this.elementsPerRow&&_.pg(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.L.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.L.requestElementsPerRow=function(){_.lj(this.hostElement,"yt-request-elements-per-row")};
oA.prototype.onIsVisibleChanged_=oA.prototype.onIsVisibleChanged_;oA.prototype.observerElementsPerRow=oA.prototype.observerElementsPerRow;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],oA.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],oA.prototype,"data",void 0);_.W([_.M({value:6,reflectToAttribute:!0}),_.A("design:type",Number)],oA.prototype,"elementsPerRow",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],oA.prototype,"wrapButtons",void 0);_.W([_.M({value:_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],oA.prototype,"isMusic",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.A("design:type",String)],oA.prototype,"alertStyle",void 0);_.W([_.M({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.A("design:type",Function)],oA.prototype,"dismissBoundButtonTap_",void 0);_.W([_.M({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.A("design:type",Function)],oA.prototype,"acceptBoundButtonTap_",void 0);_.W([_.ke("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oA.prototype,"observerElementsPerRow",null);_.W([_.ke("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oA.prototype,"onIsVisibleChanged_",null);_.W([_.I6({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],oA);
_.a(oA,"yt-alert-with-actions-renderer",function(){if(LaR===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Ona===void 0&&(Ona=document.createElement("template"));var F=Ona;D.call(y,F.content.cloneNode(!0),I.content.firstChild);LaR=I}I=LaR;return I},{mode:2});var JFC=_.d(function(I){var y={};return _.t(_.jr,{text:I.text,className:_.XH("ytPersonalGreetingViewModelHeadline",(y.ytPersonalGreetingViewModelHeadlineSmall=I.isSmallHeadline,y))})},"qk");_.NK(_.d(function(I){var y=_.VM(function(){var h;return(h=I.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0),D=function(){return I.data().canvasPromoData},F=function(){var h;
return(h=I.data().bannerHeight)!=null?h:56},R=_.J(_.c_({throttleMs:100})),O=R.next().value;
R=R.next().value;var w=_.J(_.c_({throttleMs:100})),v=w.next().value;w=w.next().value;var P=_.J(_.c_({throttleMs:100})),K=P.next().value;P=P.next().value;var r=function(){return v.width()-O.width()>1},N=function(){return F()===48};
return _.t("yt-personal-greeting-view-model",{el:_.K4(y,R),"aria-hidden":r,class:_.XH(I.className,"ytPersonalGreetingViewModelHost"),style:_.p4({height:(0,_.w_)(function(){return r()?0:F()})})},_.t(_.U,{cond:function(){return I.data().avatar&&!(K.width()+(I.data().avatar?48:0)-O.width()>1)},
then:function(){return _.t(_.aP,{data:function(){return I.data().avatar}},{decoratedAvatarViewModel:function(h){return _.t(_.Jh,{data:h.data,
className:_.XH("ytPersonalGreetingViewModelAvatar")})}})}}),_.t("h1",null,_.t(JFC,{text:function(){var h;
return(D==null?void 0:(h=D())==null?void 0:h.headline)||(K.width()+(I.data().avatar?48:0)-O.width()>1?I.data().shorterGreeting:I.data().greeting)},
isSmallHeadline:N})),_.t("span",{el:_.K4(P),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.t(JFC,{text:function(){return I.data().greeting},
isSmallHeadline:N})),_.t("span",{el:_.K4(w),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.t(JFC,{text:function(){return I.data().shorterGreeting},
isSmallHeadline:N})))},"pk"),"yt-personal-greeting-view-model",{props:{data:_.om,
className:_.om}});var Nx=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;I.isConstrainedList=!1;I.responsiveSizing="COMPACT";I.attachedPlayers=_.l("kevlar_channel_trailer_multi_attach")?[]:void 0;I.player=null;I.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return I};
_.E(Nx,_.k);_.L=Nx.prototype;
_.L.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}}}}};
_.L.created=function(){var I=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){I.disposeMastheadAd()}]};
_.L.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new QSR(this.refresh,this.contents))};
_.L.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.L.activeChanged=function(){var I=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=I)};
_.L.tabsChanged=function(){var I=this,y,D;if(this.pageSubtype==="channels"||_.l("kevlar_tab_gestures_for_tabbed_header_data")&&((y=this.data)==null?0:(D=y.header)==null?0:D.carouselHeaderRenderer))this.tabGestures=new nlQ(this.contents,this.contents,this.hostElement,this.header,function(w){I.ytdReduxBehavior.dispatch(w)});
var F,R,O;y=(F=this.data)==null?void 0:(R=F.contents)==null?void 0:(O=R.twoColumnBrowseResultsRenderer)==null?void 0:O.tabs;this.tabGestures&&this.tabGestures.tabsChanged(y)};
_.L.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.L.engagementPanelsChanged=function(){var I=_.nR().resolve(_.yR);if(I){if(this.engagementPanels)for(var y=_.J(this.engagementPanels),D=y.next();!D.done;D=y.next()){var F=void 0;(D=(F=D.value.identifier)==null?void 0:F.tag)&&I.panelMap.delete(D)}this.engagementPanels=[];var R;y=_.J(((R=this.data)==null?void 0:R.panels)||[]);for(R=y.next();!R.done;R=y.next()){R=_.u(R.value,OoT);var O=D=void 0,w=void 0,v=void 0;if(F=((D=R)==null?void 0:D.targetId)||((O=R)==null?void 0:O.panelIdentifier)||((w=R)==null?
void 0:(v=w.identifier)==null?void 0:v.tag))O=D=void 0,(O=(D=I).registerPanelContent)==null||O.call(D,F,{engagementPanelSectionListRenderer:R}),this.engagementPanels.push(R)}}};
_.L.onStampFinished=function(){var I=this;_.YC(this,function(){if(I.tabGestures){var y=I.tabGestures;if(y.scrollPositionNeedsUpdate){var D=_.nR().resolve(_.fR(_.ja)),F;if((F=y.selectedTab)!=null&&F.title&&D&&(F=D.getCurrentPage())){if(y.scrollPositionForTabs.has(y.selectedTab.title)){var R,O;D=(O=(R=D.getCurrentPage())==null?void 0:R.clientHeight)!=null?O:0;R=y.scrollPositionForTabs.get(y.selectedTab.title);F.setScrollTop(R);D>R+100&&(y.scrollPositionNeedsUpdate=!1)}else F.setScrollTop(Math.min(y.lastVisitedTabScrollPosition!==
void 0?y.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,y.tabsStartAtInPx)),y.scrollPositionNeedsUpdate=!1;y.ytdReduxDispatch(eP8(!1))}}}})};
_.L.loadPage_=function(I){this.initCsi();I&&(this.data=I);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.L.getTitle=function(I){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",I))return this.get("microformat.microformatDataRenderer.title",I);if(this.get("header.feedTabbedHeaderRenderer.title",I))return _.rY(this.get("header.feedTabbedHeaderRenderer.title",I));if(this.get("header.interactiveTabbedHeaderRenderer.title",I))return this.get("header.interactiveTabbedHeaderRenderer.title",I);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
I))return _.rY(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",I));var y,D;return(I==null?0:(y=I.header)==null?0:(D=y.pageHeaderRenderer)==null?0:D.pageTitle)?I.header.pageHeaderRenderer.pageTitle:""};
_.L.updateTitle=function(I){_.lj(this.hostElement,"yt-update-title",this.getTitle(I))};
_.L.initCsi=function(){ktg(this.pageSubtype||"browse",["ol","cpt"])};
_.L.getPlayer=function(){if(_.l("kevlar_channel_trailer_multi_attach")){for(var I=_.J(this.attachedPlayers),y=I.next();!y.done;y=I.next())if(y=y.value,y.isConnected||_.Uu(this.hostElement,y))return y;return null}return this.player};
_.L.getPlayerContainer=function(){return null};
_.L.onPlayerAttached=function(I,y){_.l("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(y):this.player=y};
_.L.onPlayerDetached=function(I,y){_.l("kevlar_channel_trailer_multi_attach")?(I=this.attachedPlayers.indexOf(y),I<0||this.attachedPlayers.splice(I,1)):this.player=null};
_.L.getServiceTrackingParams=function(){var I,y;return((I=this.data)==null?void 0:(y=I.responseContext)==null?void 0:y.serviceTrackingParams)||[]};
_.L.setMastheadAd=function(I){I&&I.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=I&&I.mastheadAd};
_.L.dataChanged=function(){var I=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||bEQ();_.YC(this,function(){_.qr(I.hostElement,"ytd-update-grid-state-action")})};
_.L.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.L.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var I=this.data.alerts;return I&&I.find(function(y){return!!y.alertWithActionsRenderer})}};
_.L.computeGreetingData=function(){if(this.data&&this.data.alerts){var I=this.data.alerts;return I&&I.find(function(y){return!!y.personalGreetingViewModel})}};
_.L.computeHasMemberHubProfileRenderer=function(I){var y;return!!(I==null?0:(y=I.header)==null?0:y.memberHubProfileRenderer)};
_.L.handleAlertCommand=function(I){this.get("alertCommand.alert.alertWithActionsRenderer",I)&&(I=_.u(I,oSY),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",I.alert))};
_.L.handleYtPlaylistDeletionRedirect=function(I){I=this.get("playlistDeletionRedirectCommand.redirectEndpoint",I);_.lj(this.hostElement,"yt-navigate",{endpoint:I})};
_.L.computeFluidWidth=function(I,y,D){if(y==="mini_app"||D)return!0;var F,R,O;I=I==null?void 0:(F=I.contents)==null?void 0:(R=F.twoColumnBrowseResultsRenderer)==null?void 0:(O=R.tabs)==null?void 0:O.find(function(P){var K;return P==null?void 0:(K=P.tabRenderer)==null?void 0:K.selected});
if(!I)return!1;var w,v;return!!((w=I.tabRenderer)==null?0:(v=w.content)==null?0:v.richGridRenderer)&&!["channel","channels","playables"].includes(y)};
_.L.computeHeaderFluidWidth=function(I){return I==="hashtag-landing-page"};
_.L.computeHasSidebar=function(I){var y;return!!(I.sidebar||((y=I.header)==null?0:y.playlistHeaderRenderer))};
_.L.computeHasPageHeaderSidebar=function(I){var y,D;return!!((y=I.header)==null?0:(D=y.pageHeaderRenderer)==null?0:D.enableSidebarView)};
_.L.computeUseUnifiedShowPageLayout=function(I){if(!I||this.pageSubtype!=="show"||!I.sidebar||!I.sidebar.playlistSidebarRenderer)return!1;I=I.sidebar.playlistSidebarRenderer;if(!I.items)return!1;for(var y=0;y<I.items.length;y++)if(_.u(I.items[y],$iR)){var D=void 0;return((D=_.u(I.items[y],$iR))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.L.computeIsConstrainedList=function(I){return I==="subscriptions-channels"};
_.L.computeResponsiveSizing=function(I){return I==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.mD.Object.defineProperties(Nx.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var I,y;return((I=this.data)==null?0:(y=I.header)==null?0:y.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var I,y;if(!((I=this.data)==null?0:(y=I.sidebar)==null?0:y.playlistSidebarRenderer))return!1;var D;return(D=this.data)!=null&&D.header?!1:!0}}});
_.mD.Object.defineProperties(Nx,{template:{configurable:!0,enumerable:!0,get:function(){if(p8b===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);p8b=I}I=p8b;return I}}});
Nx.prototype.dataChanged=Nx.prototype.dataChanged;Nx.prototype.onPlayerDetached=Nx.prototype.onPlayerDetached;Nx.prototype.onPlayerAttached=Nx.prototype.onPlayerAttached;Nx.prototype.onStampFinished=Nx.prototype.onStampFinished;Nx.prototype.engagementPanelsChanged=Nx.prototype.engagementPanelsChanged;Nx.prototype.scrollAtTopChanged=Nx.prototype.scrollAtTopChanged;Nx.prototype.tabsChanged=Nx.prototype.tabsChanged;Nx.prototype.activeChanged=Nx.prototype.activeChanged;
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Nx.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],Nx.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Nx.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(oM.YtPageBehavior),_.A("design:type",Object)],Nx.prototype,"ytPageBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Nx.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Nx.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nx.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Nx.prototype,"hidden",void 0);
_.W([_.M(),_.A("design:type",Object)],Nx.prototype,"mastheadAdData",void 0);_.W([_.M({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.A("design:type",Object)],Nx.prototype,"alertBannerData",void 0);_.W([_.M({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.A("design:type",Object)],Nx.prototype,"greetingData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Nx.prototype,"pageSubtype",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.A("design:type",Boolean)],Nx.prototype,"hasMemberHubProfileRenderer",void 0);_.W([_.M({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Nx.prototype,"hasSidebar",void 0);_.W([_.M({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Nx.prototype,"hasPageHeaderSidebar",void 0);
_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Nx.prototype,"roundedContainer",void 0);_.W([_.M({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Nx.prototype,"useUnifiedShowPageLayout",void 0);_.W([_.M({computed:"computeIsConstrainedList(pageSubtype)"}),_.A("design:type",Object)],Nx.prototype,"isConstrainedList",void 0);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Nx.prototype,"usePlaylistHeaderRenderer",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Nx.prototype,"useOldPlaylistSidebarRenderer",null);_.W([_.M({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.A("design:type",Boolean)],Nx.prototype,"fluidWidth",void 0);_.W([_.M({selector:WDT}),_.A("design:type",Boolean)],Nx.prototype,"scrollAtTop",void 0);
_.W([_.M({selector:Cga}),_.A("design:type",Boolean)],Nx.prototype,"tabGesturesIsActive",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.A("design:type",Boolean)],Nx.prototype,"disableHeaderFluidWidth",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.A("design:type",String)],Nx.prototype,"responsiveSizing",void 0);
_.W([_.a0("ytd-two-column-browse-results-renderer"),_.A("design:type",HTMLElement)],Nx.prototype,"contents",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],Nx.prototype,"header",void 0);_.W([_.a0("ytd-refresh"),_.A("design:type",Object)],Nx.prototype,"refresh",void 0);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"activeChanged",null);
_.W([_.ke("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"tabsChanged",null);_.W([_.ke("scrollAtTop"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"scrollAtTopChanged",null);_.W([_.M(),_.A("design:type",Object)],Nx.prototype,"engagementPanels",void 0);
_.W([_.ke("data.panels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"engagementPanelsChanged",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"onStampFinished",null);_.W([_.z4("yt-player-attached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],Nx.prototype,"onPlayerAttached",null);
_.W([_.z4("yt-player-detached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],Nx.prototype,"onPlayerDetached",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nx.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-browse"})],Nx);var w6a,vTC=function(){if(w6a!==void 0)return w6a;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return w6a=I};var hB=function(){var I=_.k.apply(this,arguments)||this;I.currentPage=void 0;I.renderLoadingStateJobId=0;I.updatePageDataJobId=0;I.pageDisposeJobsets=new WeakMap;I.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"};I.shouldApplyLockupToWatchTransition=_.l("web_thumbnail_to_watch_transition");I.shouldApplySlideTransition=_.d6("web_page_transition_type")==="slide"||_.l("enable_plj_landing_page");I.shouldApplyLearningJourneyTransition=_.l("enable_plj_landing_page");I.TEST_ONLY=void 0;return I};
_.E(hB,_.k);_.L=hB.prototype;_.L.ready=function(){var I=_.nR();I.addProvider({provide:_.ja,useValue:this});I.addProvider({provide:_.tZZ,useValue:this})};
_.L.created=function(){this.pagePool=new sMy;this.contextSwitcher=new roG};
_.L.attached=function(){_.lj(this.hostElement,"attached");var I=_.nR().resolve(_.fR(_.BF));I&&(this.contextSwitcher.JSC$20077_networkService_=I);this.viewTransitionManager=_.nR().resolve(_.et)};
_.L.getPageOffset=function(I){return I.getScrollTop()};
_.L.setPageOffset=function(I,y){try{I.setScrollTop(y)}catch(D){}};
_.L.setPageOffsetForNavigation=function(I,y){_.lj(this.hostElement,"yt-navigate-set-page-offset",{page:I,offset:y===void 0?0:y})};
_.L.pauseActiveContext=function(){var I=this.contextSwitcher;I.activeContext_&&I.activeContext_.pause()};
_.L.attachPage=function(I){var y,D=!_.l("pc_is_attached_ks")&&(I==null?void 0:(y=I.polymerController)==null?void 0:y.isAttached);if(!I.isAttached&&!D)try{_.XB(this.hostElement).appendChild(I)}catch(R){var F;_.tq(new _.g6("Error attaching page element for component",{origin:(F=this.currentPage)==null?void 0:F.is,component:I.is}))}};
_.L.setActivePage=function(I,y){var D=this,F=!1,R=function(){var O=D.isOnWatch(),w=D.currentPage;if(I)if(I!==D.currentPage){w&&(w.hidden=!0,w.active=!1,w.removeAttribute("role"));D.currentPage=I;var v,P=y!=null?y:_.zF((v=D.data)==null?void 0:v.endpoint);w&&_.lj(D.hostElement,"yt-page-type-changed",{oldPageType:w.is,newPageType:I.is,newPageSubtype:P});_.Uv().dispatch(_.Ec({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:I.is}));_.Uv().dispatch(_.Ec({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:P||""}));
I.hidden=!1;D.attachPage(I);I.active=!0;I.setAttribute("role","main");w&&D.setPageOffsetForNavigation(I,0);_.l("kevlar_remove_page_dom_on_switch")&&!O&&w&&_.XB(D.hostElement).removeChild(w)}else F=!0;else D.handleMissingDestinationPage(w)};
this.shouldRunBrowseTransition(this.currentPage,I)?Jrb(this.viewTransitionManager,R):this.shouldRunLearningJourneyTransition(this.currentPage,I)?SsC(this.viewTransitionManager,R):R();return F};
_.L.handleMissingDestinationPage=function(I){if(this.isColdLoadForUnknownPage(I))_.tq(new _.g6("Cold load for unknown page"));else{var y;I=new _.g6("Unable to set active page",I?I.is:"unknown origin",(y=this.data)==null?void 0:y.endpoint);_.vu(I)}};
_.L.isColdLoadForUnknownPage=function(I){return!I&&$O(this.data)==="unknown"};
_.L.shouldRunBrowseTransition=function(I,y){return this.shouldApplySlideTransition&&(I==null?void 0:I.is)==="ytd-browse"&&(y==null?void 0:y.is)==="ytd-browse"&&I!==y};
_.L.shouldRunLearningJourneyTransition=function(I,y){return this.shouldApplyLearningJourneyTransition&&(I==null?void 0:I.is)==="ytd-browse"&&((y==null?void 0:y.is)==="ytd-watch-learning-journey"||(y==null?void 0:y.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.L.shouldRunWatchNextLoadedTransition=function(I,y){return this.viewTransitionManager&&I.is==="ytd-watch-flexy"&&y};
_.L.updatePageData=function(I){var y=this,D=this.data;this.updatePageDataJobId&&_.w2.cancelJob(this.updatePageDataJobId);this.data=I;return new _.AO(function(F){var R=function(){I.filler?y.performDataUpdate(I,D):gRo(function(){y.performDataUpdate(I,D)});
var O=_.oJ();_.NF(O,"cr")||O.processSignal("cr");F()};
I&&I.page==="watch"?y.updatePageDataJobId=_.ip(_.w2,R):R()})};
_.L.isDownloadsPage=function(I){var y,D;return(I==null?void 0:(y=I.endpoint)==null?void 0:(D=y.browseEndpoint)==null?void 0:D.browseId)==="FEdownloads"};
_.L.setPlayerSyncInterval=function(I){var y;return _.S(function(D){if(D.nextAddress==1)return D.yield(_.nR().resolve(_.qY),2);y=D.yieldResult;y.setUpPositionSyncInterval(I);_.Cj(D)})};
_.L.performDataUpdate=function(I,y){_.l("kevlar_early_popup_close")||_.uj(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var D=!I.filler;D&&(_.V_("lps"),_.l("config_age_report_killswitch")||Xxa());var F=$O(I),R,O=!1;if(_.l("kevlar_remove_page_dom_on_switch")){var w=y&&$O(y);F===w&&(R=this.getCurrentPage())}R||(R=IS(this.pagePool,F));D&&FqZ(this.pagePool.elementPoolPopulator,F);D&&!this.renderLoadingStateJobId&&(O=this.setActivePage(R));if(R){w=F==="watch";var v=
F==="shorts",P=F==="learning_journey_watch";_.l("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(R);if(w||v||P)R.playerData=I.playerResponse;if(v){I.reelWatchSequenceResponse?R.reelWatchSequenceResponse=I.reelWatchSequenceResponse:R.cachedReelWatchSequenceResponse&&!R.reelWatchSequenceResponse&&(R.reelWatchSequenceResponse=R.cachedReelWatchSequenceResponse);I.reelWatchSequenceResponse&&(y==null?void 0:y.page)!=="shorts"&&(R.cachedReelWatchSequenceResponse=I.reelWatchSequenceResponse);
R.currentEndpoint=I.endpoint;var K;R.isPreviousPageShorts=!!(y==null?0:(K=y.endpoint)==null?0:K.reelWatchEndpoint)}K=this.isDownloadsPage(I);var r=this.isDownloadsPage(y);K&&!r?this.setPlayerSyncInterval(6E5):!K&&r&&this.setPlayerSyncInterval();_.l("block_all_player_prefetch_requests")||this.preparePrefetchRequest(I,R,D,w,v,P);tVZ(_.nR().resolve(_.OI),y,I);if(_.l("enable_ai_companion")){var N;(N=_.nR().resolve(_.fR(_.R_)))==null||_.ie8(N,this.getPersistentPanelSurface(F))}_.G$(_.nR().resolve(_.cU));
_.l("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(R);D?(D=typeof R.loadPage,D==="function"?(R.pageContext=jW1(this.contextSwitcher,R,R.data!==I.response),D=function(){R.loadPage(I.response)},this.shouldApplySlideTransition&&R.is==="ytd-browse"&&O&&(F==="learning"||this.isDifferentBrowseId(I==null?void 0:I.endpoint,y==null?void 0:y.endpoint))?Jrb(this.viewTransitionManager,D):this.shouldRunWatchNextLoadedTransition(R,O)?v_Q(this.viewTransitionManager,D):D()):_.Sb(new _.g6("b/38014653 ",
[F,
R.is,R.nodeName,D,R.isAttached,y&&$O(y),this.hostElement.children.length])),_.V_("pdl")):(R.hidden=!0,I.response.filler=!0,R.data=I.response,this.attachPage(R));_.lj(this.hostElement,"yt-page-data-updated",{pageType:F})}_.y9(_.w2,function(){_.l("logging_avoid_blocking_during_navigation")&&_.QPJ().transition("none");var h=pNa(),x=R;if(I){var q=gEb(I),X=Ioo(I),f;a:{if(I.playerResponse){var m=I.playerResponse,z;if((f=m.auxiliaryUi)==null?0:(z=f.messageRenderers)==null?0:z.upsellDialogRenderer){f=m.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(I.response&&(f=I.response,(m=f.overlay)==null?0:m.upsellDialogRenderer)){f=f.overlay.upsellDialogRenderer;break a}f=void 0}var B;var C;z=(B=I.playerResponse)==null?void 0:(C=B.auxiliaryUi)==null?void 0:C.messageRenderers;B=(z==null?void 0:z.enforcementMessageViewModel)||(z==null?void 0:z.bkaEnforcementMessageViewModel);B=(B==null?void 0:B.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?B:void 0;var H;a:{if(I.response&&(C=I.response,(H=C.overlay)==null?0:H.commandWrapperPromoRenderer)){H=
C.overlay.commandWrapperPromoRenderer;break a}H=void 0}nHR(h,q,X,f,B,H,x)}})};
_.L.preparePrefetchRequest=function(I,y,D,F,R,O){var w,v,P,K,r,N,h,x,q,X,f,m,z,B,C;return _.S(function(H){if(H.nextAddress==1)return!D||!(F||R||O)||_.l("kevlar_disable_background_prefetch")&&_.r6(xMg)()===0?H.return():(w=_.oP(y))?H.yield(w.getPlayerPromise(),2):H.return();v=H.yieldResult;P=_.nR().resolve(_.fR(_.BF));if(!P)return H.return();if(R)return K=_.l0(_.cf),orG(K,(r=I.endpoint)==null?void 0:r.reelWatchEndpoint,y.reelWatchSequenceResponse,v,P),H.return();x=(N=I.response)==null?void 0:(h=N.responseContext)==
null?void 0:h.webResponseContextExtensionData;if(!x)return H.return();z=(q=I.response)==null?void 0:(X=q.contents)==null?void 0:(f=X.twoColumnWatchNextResults)==null?void 0:(m=f.autoplay)==null?void 0:m.autoplay;B=_.nR().resolve(_.rE);C=_.l0(_.cf);Nne(C,x,v,P,B,z);_.Cj(H)})};
_.L.movePlayerToWatch=function(I){var y=this,D,F;return _.S(function(R){D=IS(y.pagePool,"watch");F=D.getPlayerContainer();I.appendTo(F);_.Cj(R)})};
_.L.movePlayerToShorts=function(I){var y=this,D,F,R;return _.S(function(O){D=IS(y.pagePool,"shorts");F=D.getPlayerContainer();(R=I)==null||R.appendTo(F,void 0,!0);_.Cj(O)})};
_.L.getPlayerFromWatch=function(){var I=IS(this.pagePool,"watch");return _.oP(I)};
_.L.getPlayerFromShorts=function(){var I=IS(this.pagePool,"shorts");return _.oP(I)};
_.L.startLoadingWatch=function(){var I=this,y=IS(this.pagePool,"watch");this.renderLoadingStateJobId?(_.w2.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.l("web_watch_transition_enable_start_loading_watch_callsite")?wRZ(this.viewTransitionManager,function(){I.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(y,"watch");
if(_.l("enable_ai_companion")){var D;(D=_.nR().resolve(_.fR(_.R_)))==null||_.ie8(D,this.getPersistentPanelSurface("watch"))}};
_.L.startLoadingShorts=function(){var I=IS(this.pagePool,"shorts");this.setActivePage(I,"shorts")};
_.L.startLoadingLearningJourney=function(){var I=IS(this.pagePool,"learning_journey_watch");this.setActivePage(I,"learning_journey_watch")};
_.L.getCurrentPage=function(){return this.currentPage};
_.L.getDestinationPageType=function(){return this.destinationPageType};
_.L.getCurrentData=function(){return this.data};
_.L.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.L.isOnShorts=function(){var I;return((I=this.currentPage)==null?void 0:I.is)==="ytd-shorts"};
_.L.isWatchPage=function(I){return!!I&&(I.is==="ytd-watch-flexy"||I.is==="ytd-watch-fixie"||I.is==="ytd-watch-grid")};
_.L.preparePage=function(I,y){var D=this,F=function(){var O=D.pagePool.preparePage(I,D.currentPage,y);O&&D.attachPage(O)},R=function(O){_.Pu(O,y);
_.tq(O)};
try{F()}catch(O){R(O)}};
_.L.lazyPrepareCriticalPages=function(I,y){I=_.zF(y)||I;this.maybePrepareWatchPage(I)};
_.L.maybePrepareWatchPage=function(I){I==="watch"||I==="learning_journey_watch"&&_.l("web_watch_learning_journey_disable_lazy_pages")||_.y9(_.w2,this.preparePage.bind(this,"watch"))};
_.L.renderPageLoadingState=function(I,y){this.preparePage(I,y);var D=IS(this.pagePool,I);D.loadingData&&(D.loadingData.endpoint=y);D.loading=!0;this.setActivePage(D,I);I!=="watch"&&I!=="learning_journey_watch"||_.lj(this.hostElement,"yt-guide-close")};
_.L.prepareForNavigation=function(I,y){var D=this;if(this.currentPage&&this.data){var F=_.zF(y)||I;this.destinationPageType=F;$O(this.data)==F&&_.lj(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((I==="watch"||I==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.w2.cancelJob(this.renderLoadingStateJobId);_.nR().resolve(_.OI).deactivate(y);_.k1(_.w2,function(){var O=D.viewTransitionManager,w=D.currentPage;
if(O.isLockupToWatchTransitionEnabled&&O.isLockupThumbnailRegistrationEnabled&&w)if(O.registeredLockupThumbnail)O.lockupThumbnailRegisteredFromWatchEndpoint&&_.tq(new _.g6("Lockup thumbnail already registered from watch endpoint."));else{a:{var v=_.u(y,_.t9);if(v==null?0:v.videoId){var P="yt-lockup-view-model ."+_.YSe(v.videoId)+" yt-thumbnail-view-model";w=w.querySelectorAll(P);if(w.length===1){v=w[0];break a}w.length>1?_.tq(new _.g6("Multiple LockupViewModel thumbnails found for videoId: "+v.videoId+
". Selector: "+P)):_.l("web_thumbnail_to_watch_transition_debug")&&_.tq(new _.g6("No LockupViewModel thumbnail found for videoId: "+v.videoId+". Selector: "+P))}v=void 0}v&&(O.registeredLockupThumbnail=v,O.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.lTa(O,v))}});
var R=this.data;this.renderLoadingStateJobId=_.k1(_.w2,function(){wRZ(D.viewTransitionManager,function(){if(D.data!=R){var O=IS(D.pagePool,I);D.setActivePage(O)}else D.renderPageLoadingState(I,y);D.renderLoadingStateJobId=0})},150)}};
_.L.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var I=new _.EY(1);this.currentPage.pageDisposeJobs.forEach(function(y){_.G1(I,y)});
this.pageDisposeJobsets.set(this.currentPage,I)}};
_.L.flushPageDisposeJobset=function(I){var y=this.pageDisposeJobsets.get(I);y&&(y.flushJobs(),this.pageDisposeJobsets.delete(I))};
_.L.onYtStopOldPlayer=function(I,y){y=y===void 0?!1:y;var D,F=_.a8("kevlar_new_stop_old_player_logic_pages");if(_.l("kevlar_check_current_page_on_stop_old_player")&&(F.length===0||this.currentPage&&F.includes(this.currentPage.is)))if(this.data&&(D=$O(this.data)),$O(I)===D&&this.currentPage&&$O(this.currentPage.data)!==D)var R=_.oP(this.currentPage);else D=$O(this.data),R=IS(this.pagePool,D),R=_.oP(R);else this.data&&(D=$O(this.data),R=IS(this.pagePool,D),R=_.oP(R));if(R){F=$O(I);var O=IS(this.pagePool,
F);O=_.oP(O);if(R==O)y&&!_.l("kevlar_disable_preemptive_player_reset")&&R.resetForNewPlayback();else if(y=D==="watch"&&F!=="watch",!y||F==="shorts"||_.wJu()&&!pua(this.data,I))I=_.nR().resolve(_.OI),y&&I.isMiniplayerActive()&&I.pipController.getWindow()||R.stop()}};
_.L.isDifferentBrowseId=function(I,y){I=_.u(I,_.kc);y=_.u(y,_.kc);return(I==null?void 0:I.browseId)!==(y==null?void 0:y.browseId)};
_.L.getPersistentPanelSurface=function(I){switch(I){case "watch":return"WATCH";default:return"APP"}};
_.mD.Object.defineProperties(hB,{template:{configurable:!0,enumerable:!0,get:function(){return vTC()}}});
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],hB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-page-manager"})],hB);_.a(hB,"ytd-page-manager",function(){return vTC()},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var SeQ;var ti1;var x8=function(){var I=_.k.apply(this,arguments)||this;I.hasChipBar=!1;return I};
_.E(x8,_.k);x8.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}}};
x8.prototype.computeHasChipBar=function(I){return!(I==null||!I.chipBar)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],x8.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.A("design:type",Object)],x8.prototype,"hasChipBar",void 0);_.W([_.yd({is:"ytd-search-header-renderer",disableElementRegistration:!0})],x8);
_.a(x8,"ytd-search-header-renderer",function(){if(ti1!==void 0)return ti1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ti1=I},{mode:1});var P61;var lc=function(){return _.k.apply(this,arguments)||this};
_.E(lc,_.k);lc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
lc.prototype.computeBlueBottomLink=function(I){return I};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lc.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.bottomIcon)"}),_.A("design:type",String)],lc.prototype,"bottomIcon",void 0);
_.W([_.M({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.A("design:type",Boolean)],lc.prototype,"enableBlueBottomLink",void 0);_.W([_.yd({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],lc);
_.a(lc,"ytd-web-answer-renderer",function(){if(P61!==void 0)return P61;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return P61=I},{mode:_.Qd("kevlar_poly_si_batch_j035")?1:2});var Kay;var uc=function(){return _.k.apply(this,arguments)||this};
_.E(uc,_.k);uc.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uc.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-page-continuation"})],uc);
_.a(uc,"ytd-page-continuation",function(){if(Kay!==void 0)return Kay;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Kay=I},{mode:1});var UIC;var rFa;var jvZ;var oTa=function(){return _.k.apply(this,arguments)||this};
_.E(oTa,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oTa.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oTa.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],oTa);
_.a(oTa,"ytd-watch-card-one-vs-one-event",function(){if(jvZ!==void 0)return jvZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return jvZ=I},{mode:1});var Nso=function(){return _.k.apply(this,arguments)||this};
_.E(Nso,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nso.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nso.prototype,"data",void 0);_.W([_.yd({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Nso);
_.a(Nso,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(rFa!==void 0)return rFa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return rFa=I},{mode:1});var h_R;var xIC=function(){return _.k.apply(this,arguments)||this};
_.E(xIC,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xIC.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xIC.prototype,"data",void 0);_.W([_.yd({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],xIC);
_.a(xIC,"ytd-banner-and-box-hero-image-renderer",function(){if(h_R!==void 0)return h_R;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return h_R=I},{mode:1});var lzo;var qx=function(){var I=_.k.apply(this,arguments)||this;I.modern=_.l("web_modern_buttons");return I};
_.E(qx,_.k);qx.prototype.computeIcon=function(){var I,y,D=(I=this.data)==null?void 0:(y=I.icon)==null?void 0:y.iconType;if(D)return _.pQ(D)};
qx.prototype.computeButtonShape=function(){var I;return{buttonText:_.rY((I=this.data)==null?void 0:I.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.mD.Object.defineProperties(qx.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"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qx.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],qx.prototype,"modern",void 0);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],qx.prototype,"buttonColor",null);
_.W([_.yd({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],qx);
_.a(qx,"ytd-call-to-action-button-renderer",function(){if(lzo!==void 0)return lzo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lzo=I},{mode:1});var uU8;var Ew=function(){return _.k.apply(this,arguments)||this};
_.E(Ew,_.k);Ew.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.XB(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.hf(this.data.leftThumbnail.thumbnails,216)+")")};
Ew.prototype.onLeftThumbnailChanged=Ew.prototype.onLeftThumbnailChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ew.prototype,"data",void 0);_.W([_.ke("data.leftThumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ew.prototype,"onLeftThumbnailChanged",null);_.W([_.yd({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Ew);
_.a(Ew,"ytd-collage-hero-image-renderer",function(){if(uU8!==void 0)return uU8;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return uU8=I},{mode:1});var qe8;var GK=function(){return _.k.apply(this,arguments)||this};
_.E(GK,_.k);GK.prototype.computeStyle=function(I){return I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GK.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],GK.prototype,"componentStyle",void 0);_.W([_.yd({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],GK);
_.a(GK,"ytd-single-hero-image-renderer",function(){if(qe8!==void 0)return qe8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qe8=I},{mode:1});var ETa;var X_=function(){return _.k.apply(this,arguments)||this};
_.E(X_,_.k);_.L=X_.prototype;
_.L.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:_.l("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.L.computeSubtitle=function(I){if(this.data){var y;if(this.data.upcomingEventData){I=_.rY(I.subtitle);var D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(y=_.Ug(_.AZ(I,D)))}else y=I.subtitle;return y}};
_.L.onHeroTap=function(I){I.preventDefault();var y=this.data&&this.data.navigationEndpoint;!y||!_.UP(_.r4(I),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.UP(_.r4(I),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.l("kevlar_watchcard_hero_video_renderer_killswitch")?_.lj(this.hostElement,"yt-navigate",{navigationEndpoint:y}):this.ytComponentBehavior.resolveCommand(y))};
_.L.computeHeroTabIndex=function(I){return I&&I.simpleText?-1:0};
_.L.computeHeroRole=function(I){return I&&I.simpleText?"":"link"};
_.L.computeIsReminderButtonPresent=function(I){return!(!I||!I.reminderButton)};
_.L.computeHideBottomItems=function(I){return!(this.computeIsReminderButtonPresent(I)||I.subtitle)};
_.L.dataChanged=function(){var I=this.get("data.buttons.buttonRenderer.serviceEndpoint"),y;((y=_.u(I==null?void 0:I.commandMetadata,_.eJ))==null?0:y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(I)};
X_.prototype.dataChanged=X_.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],X_.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],X_.prototype,"data",void 0);
_.W([_.M({computed:"computeSubtitle(data)"}),_.A("design:type",String)],X_.prototype,"subtitle",void 0);_.W([_.M({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],X_.prototype,"isReminderButtonPresent",void 0);_.W([_.M({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],X_.prototype,"hideBottomItems",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],X_.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],X_);
_.a(X_,"ytd-watch-card-hero-video-renderer",function(){if(ETa!==void 0)return ETa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ETa=I},{mode:1});var GA1;var Qm=function(){return _.k.apply(this,arguments)||this};
_.E(Qm,_.k);_.L=Qm.prototype;_.L.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"}}}};
_.L.computeTitleBadges=function(I){return I?[I]:[]};
_.L.computeHeaderStyle=function(I){return I?I.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.L.computeAvatarAriaLabel=function(I){if(I){var y,D,F,R;return(R=(y=I.avatar)==null?void 0:(D=y.accessibility)==null?void 0:(F=D.accessibilityData)==null?void 0:F.label)!=null?R:_.rY(I==null?void 0:I.title)}};
_.L.computeAvatarHeight=function(I){return I==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.L.computeBadgeRowClass=function(I){return(I==null?0:I[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Qm.prototype,"data",void 0);_.W([_.M({computed:"computeTitleBadges(data.titleBadge)"}),_.A("design:type",Array)],Qm.prototype,"titleBadges",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.A("design:type",String)],Qm.prototype,"headerStyle",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.A("design:type",String)],Qm.prototype,"badgeRowClass",void 0);_.W([_.yd({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Qm);
_.a(Qm,"ytd-watch-card-rich-header-renderer",function(){if(GA1!==void 0)return GA1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return GA1=I},{mode:1});var X6Z;var Qve;var Y8=function(){return _.k.apply(this,arguments)||this};
_.E(Y8,_.k);Y8.prototype.onMetadataTap=function(I){var y=this.data&&this.data.navigationEndpoint;y&&!_.UP(_.r4(I),this.hostElement,["A".toString()])&&_.lj(this.hostElement,"yt-navigate",{endpoint:y})};
_.mD.Object.defineProperties(Y8.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 I;if(this.data.upcomingEventData){var y=_.rY(this.data.subtitle),D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(I=_.Ug(_.AZ(y,D)))}else I=this.data.subtitle;return I}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Y8.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.style"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Y8.prototype,"isCondensed",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Y8.prototype,"subtitle",null);
_.W([_.yd({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Y8);
_.a(Y8,"ytd-watch-card-compact-video-renderer",function(){if(Qve!==void 0)return Qve;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Qve=I},{mode:1});var Yee;var fzT=function(){return _.k.apply(this,arguments)||this};
_.E(fzT,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fzT.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fzT.prototype,"data",void 0);_.W([_.yd({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],fzT);
_.a(fzT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Yee!==void 0)return Yee;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Yee=I},{mode:1});var f$=function(){return _.k.apply(this,arguments)||this};
_.E(f$,_.k);f$.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}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],f$.prototype,"ytRendererStamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],f$.prototype,"data",void 0);_.W([_.yd({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],f$);
_.a(f$,"ytd-vertical-watch-card-list-renderer",function(){if(X6Z!==void 0)return X6Z;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return X6Z=I},{mode:1});var nTb;var n$=function(){var I=_.k.apply(this,arguments)||this;I.ariaExpanded="false";return I};
_.E(n$,_.k);_.L=n$.prototype;_.L.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.L.dataChanged=function(){var I;this.currentSeasonIndex=((I=this.data)==null?void 0:I.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.L.computeEpisodesInfo=function(I,y,D){if(I!==void 0&&y.length===I.length)return I[D]};
_.L.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.L.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.L.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.L.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.L.getUppercaseSimpleString=function(I){return this.ytRendererBehavior.getSimpleString(I).toUpperCase()};
_.L.updateCurrentSeasonIndexFromBinding=function(I){this.currentSeasonIndex=I.detail.value};
n$.prototype.onIronOverlayClosed=n$.prototype.onIronOverlayClosed;n$.prototype.currentSeasonIndexChanged=n$.prototype.currentSeasonIndexChanged;n$.prototype.dataChanged=n$.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],n$.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",String)],n$.prototype,"label",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],n$.prototype,"currentSeasonIndex",void 0);_.W([_.M({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.A("design:type",Object)],n$.prototype,"episodesInfo",void 0);_.W([_.M({value:"false"}),_.A("design:type",Object)],n$.prototype,"ariaExpanded",void 0);_.W([_.a0("#lists"),_.A("design:type",Object)],n$.prototype,"lists",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n$.prototype,"dataChanged",null);_.W([_.Bp("currentSeasonIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n$.prototype,"currentSeasonIndexChanged",null);_.W([_.z4("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],n$.prototype,"onIronOverlayClosed",null);
_.W([_.yd({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],n$);
_.a(n$,"ytd-watch-card-section-dropdown-renderer",function(){if(nTb!==void 0)return nTb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return nTb=I},{mode:1});var p6Z;var p$=function(){var I=_.k.apply(this,arguments)||this;I.isSearch=!1;return I};
_.E(p$,_.k);p$.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}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],p$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],p$.prototype,"isSearch",void 0);_.W([_.yd({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],p$);
_.a(p$,"ytd-watch-card-section-sequence-renderer",function(){if(p6Z!==void 0)return p6Z;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return p6Z=I},{mode:1});var mIo=_.d(function(I){return _.t("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.t(_.aP,{data:function(){return I.data().ctaButton}},{buttonViewModel:_.My}),_.t(_.jr,{text:function(){return I.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"rk");
mIo.idomCompat=!0;_.NK(mIo,"ytd-button-banner-view-model",{props:{data:_.om}});var mU=function(){var I=_.k.apply(this,arguments)||this;I.isSearch=!1;return I};
_.E(mU,_.k);
mU.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"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mU.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],mU.prototype,"rounded",void 0);_.W([_.M(),_.A("design:type",Object)],mU.prototype,"isSearch",void 0);
_.W([_.yd({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],mU);
_.a(mU,"ytd-universal-watch-card-renderer",function(){if(UIC!==void 0)return UIC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return UIC=I},{mode:1});var Mi8;_.NK(_.d(function(I){var y=I.data;var D;I=!((D=_.nR().resolve(_.fR(_.cS)))==null||!D());D={};return _.t("overview-message-view-model",{class:_.XH("ytwOverviewMessageViewModelHost",(D.ytwOverviewMessageViewModelDarkBackground=I,D.ytwOverviewMessageViewModelLightBackground=!I,D))},_.t(_.U,{cond:function(){return y().primaryImage},
then:function(F){return _.t(_.UE,{data:F,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.t(_.U,{cond:function(){return y().primaryText},
then:function(){return _.t("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.t(_.jr,{text:function(){return y().primaryText}}))}}),_.t(_.U,{cond:function(){return y().secondaryText},
then:function(){return _.t("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.t(_.jr,{text:function(){return y().secondaryText}}))}}))},"sk"),"overview-message-view-model",{props:{data:_.om}});_.NK(_.uty,"ytd-overview-answer-view-model",{props:{data:_.om}});var Mx=function(){return _.k.apply(this,arguments)||this};
_.E(Mx,_.k);Mx.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"}}}};
Mx.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],Mx.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Mx.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Mx.prototype,"isSearch",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Mx);
_.a(Mx,"ytd-secondary-search-container-renderer",function(){if(Mi8!==void 0)return Mi8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return Mi8=I},{mode:1});var z_a;var zK=function(){var I=_.k.apply(this,arguments)||this;I.renderSecondarySearchContainer=!1;I.isSearch=!1;return I};
_.E(zK,_.k);_.L=zK.prototype;_.L.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"}}}};
_.L.created=function(){var I=this;this.boundStampSecondarySearchContainerIfFits=function(){I.stampSecondarySearchContainerIfFits()};
_.tG("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.L.computeIsSearchFrictionPage=function(I){var y,D,F,R,O;I=I==null?void 0:(y=I.primaryContents)==null?void 0:(D=y.sectionListRenderer)==null?void 0:(F=D.contents)==null?void 0:(R=F[0])==null?void 0:(O=R.itemSectionRenderer)==null?void 0:O.contents;if(!I)return!1;y=_.J(I);for(D=y.next();!D.done;D=y.next())if(F=void 0,(F=D.value)==null?0:F.searchFrictionViewModel)return!0;return!1};
_.L.computeShowSecondaryColumn=function(I,y){return!!(y&&y.secondaryContents&&I)};
_.L.activeChanged=function(){var I=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.MX(this,this.debounceStampSecondarySearchContainerIfFits)),_.wy(function(){I.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.MX(this,this.debounceStampSecondarySearchContainerIfFits))};
_.L.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.L.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.L.debounceStampSecondarySearchContainerIfFits=function(){_.v4(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.L.onRetrieveLocation=function(I,y){y.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);I.stopPropagation()};
_.L.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
zK.prototype.dataChanged=zK.prototype.dataChanged;zK.prototype.onRetrieveLocation=zK.prototype.onRetrieveLocation;zK.prototype.persistentGuideChanged=zK.prototype.persistentGuideChanged;zK.prototype.activeChanged=zK.prototype.activeChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],zK.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],zK.prototype,"ironResizableBehavior",void 0);_.W([_.M(),_.A("design:type",Boolean)],zK.prototype,"active",void 0);_.W([_.M(),_.A("design:type",Object)],zK.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.l("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],zK.prototype,"useBiggerThumbs",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.d6("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],zK.prototype,"biggerThumbsStyle",void 0);_.W([_.M(),_.A("design:type",Object)],zK.prototype,"renderSecondarySearchContainer",void 0);_.W([_.M({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.A("design:type",Boolean)],zK.prototype,"showSecondaryColumn",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.A("design:type",Boolean)],zK.prototype,"isSearchFrictionPage",void 0);
_.W([_.M(),_.A("design:type",Object)],zK.prototype,"isSearch",void 0);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zK.prototype,"activeChanged",null);_.W([_.ke("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zK.prototype,"persistentGuideChanged",null);
_.W([_.z4("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],zK.prototype,"onRetrieveLocation",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zK.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],zK);
_.a(zK,"ytd-two-column-search-results-renderer",function(){if(z_a!==void 0)return z_a;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return z_a=I},{mode:1});var k8=function(){var I=_.k.apply(this,arguments)||this;I.hasSearchHeader=!1;I.hasSecondaryContent=!1;I.hasBiggerThumbs=_.l("enable_desktop_search_bigger_thumbs");I.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return I};
_.E(k8,_.k);_.L=k8.prototype;_.L.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:xo(["aa","eocs"])}}};
_.L.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.L.loadPage_=function(I){this.initCsi();I&&(this.data=I,_.tG("REFINEMENTS_TUPLE",["FromSearchResponse",I.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.E6(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.L.initCsi=function(){ktg("results",["ol","cpt"])};
_.L.updateTitle=function(){var I=_.rR(window.location.href,"q");I||(I=_.rR(window.location.href,"search_query"));_.lj(this.hostElement,"yt-update-title",I||"")};
_.L.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.L.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.l("web_srp_data_changed_terminate_imp_killswitch")||_.uj(this.hostElement,"yt-terminate-video-preview-action")};
_.L.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.L.computeHasSearchHeader=function(I){var y;I=I==null?void 0:(y=I.header)==null?void 0:y.searchHeaderRenderer;return!!I&&(!!I.searchFilterButton||!!I.chipBar)};
_.L.computeHasSecondaryContent=function(I){var y,D;return!!(I==null?0:(y=I.contents)==null?0:(D=y.twoColumnSearchResultsRenderer)==null?0:D.secondaryContents)};
_.mD.Object.defineProperties(k8,{template:{configurable:!0,enumerable:!0,get:function(){if(SeQ===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);SeQ=I}I=SeQ;return I}}});
k8.prototype.onReloadContinuationFinish=k8.prototype.onReloadContinuationFinish;k8.prototype.dataChanged=k8.prototype.dataChanged;_.W([_.Q(oM.YtPageBehavior),_.A("design:type",Object)],k8.prototype,"ytPageBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],k8.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],k8.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],k8.prototype,"data",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],k8.prototype,"monitorScroll",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k8.prototype,"hasSearchHeader",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k8.prototype,"hasSecondaryContent",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],k8.prototype,"hasBiggerThumbs",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k8.prototype,"dataChanged",null);
_.W([_.z4("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k8.prototype,"onReloadContinuationFinish",null);_.W([_.yd({is:"ytd-search"})],k8);var kAG;var dIR;var azT;var dL=function(){var I=_.k.apply(this,arguments)||this;I.ctaVisualElement=null;I.currentCsn=null;return I};
_.E(dL,_.k);_.L=dL.prototype;_.L.onDataChanged=function(){this.maybeLogShows()};
_.L.computeButtonShape=function(){var I=this;if(this.data)return{buttonText:_.rY(this.data.text),state:"active",onTap:function(){I.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.L.maybeCreateCtaVe=function(){var I;if((I=this.data)!=null&&I.badgeInteractionLogging){var y;if(I=(y=this.data.badgeInteractionLogging)==null?void 0:y.trackingParams)this.ctaVisualElement=_.AC(I)}};
_.L.maybeLogClicks=function(){this.currentCsn=_.VO(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.SI(this.currentCsn,this.ctaVisualElement)};
_.L.maybeLogShows=function(){this.currentCsn=_.VO(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.wH(this.currentCsn,[this.ctaVisualElement])};
_.L.onTap=function(){var I;if((I=this.data)!=null&&I.onClickCommand){var y;this.ytComponentBehavior.resolveCommand((y=this.data)==null?void 0:y.onClickCommand);this.maybeLogClicks()}};
dL.prototype.onDataChanged=dL.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],dL.prototype,"ytComponentBehavior",void 0);_.W([_.M({}),_.A("design:type",Object)],dL.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dL.prototype,"onDataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],dL);
_.a(dL,"ytd-shopping-overlay-badge-renderer",function(){if(azT!==void 0)return azT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return azT=I},{mode:1});var cFC;var aA=function(){return _.k.apply(this,arguments)||this};
_.E(aA,_.k);aA.prototype.computeShouldButtonBeVertical=function(I,y){return I||y};
aA.prototype.onYtServiceRequestSent=function(I,y){(I=_.u(y.endpoint,_.gb))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.WS("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:I.status})):this.handleLikeEndpoint(I))};
aA.prototype.computelikeStatusEntityKey=function(I){return I==null?void 0:I.likeStatusEntityKey};
aA.prototype.handleLikeEndpoint=function(I){I.status==="LIKE"?this.JSC$21987_ytdDislikeToggleButtonRenderer.toggle(!1):I.status==="DISLIKE"?this.JSC$21987_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$21987_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$21987_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.mD.Object.defineProperties(aA.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var I;return E1a(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(I=this.likeStatusEntity)==null?void 0:I.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var I;if(this.data&&((I=this.data)==null||!I.hideDislikeButton)){var y;return E1a(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}}}});
aA.prototype.onYtServiceRequestSent=aA.prototype.onYtServiceRequestSent;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],aA.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aA.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],aA.prototype,"vertical",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],aA.prototype,"textTransform",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],aA.prototype,"useShortsIcon",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],aA.prototype,"underIconLabel",void 0);_.W([_.M({value:"left"}),_.A("design:type",String)],aA.prototype,"buttonTooltipPosition",void 0);_.W([_.M(),_.A("design:type",Object)],aA.prototype,"overrides",void 0);
_.W([_.a0("#like-button"),_.A("design:type",Object)],aA.prototype,"JSC$21987_ytdLikeToggleButtonRenderer",void 0);_.W([_.a0("#dislike-button"),_.A("design:type",Object)],aA.prototype,"JSC$21987_ytdDislikeToggleButtonRenderer",void 0);_.W([_.Y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],aA.prototype,"likeButton",null);
_.W([_.Y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],aA.prototype,"dislikeButton",null);_.W([_.M({computed:"computelikeStatusEntityKey(data)"}),_.A("design:type",String)],aA.prototype,"likeStatusEntityKey",void 0);_.W([_.M({selectorArgs:["likeStatusEntityKey"],selector:_.gV}),_.A("design:type",Object)],aA.prototype,"likeStatusEntity",void 0);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],aA.prototype,"onYtServiceRequestSent",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],aA);
_.Xf()(aA,"ytd-like-button-renderer",function(){if(cFC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);cFC=I}I=cFC;return I},{mode:1});_.NK(_.x3o,"reel-sound-metadata-view-model",{props:{data:_.rV,overlayDensity:_.rV}});_.NK(_.Sx8,"player-disclosure-view-model",{props:{data:_.om,extractOverlay:_.om}});_.NK(_.DxM,"pivot-button-view-model",{props:{data:_.rV,className:_.rV}});_.NK(_.FUg,"reel-action-bar-view-model",{props:{data:_.om,buttonShapeOverrideables:_.om}});_.NK(_.rOY,"yt-reel-metapanel-view-model",{props:{data:_.om,overlayDensity:_.om,extractOverlay:_.om}});var Wab=_.d(function(I){var y=I.children;var D=I.region;I=_.J(_.$M(void 0,void 0,"flxBBc"));var F=I.next().value,R=I.next().value;I=_.J(_.$M("0px",void 0,"IAR7k"));var O=I.next().value,w=I.next().value;I=_.J(_.$M("0px",void 0,"QV4iWb"));var v=I.next().value,P=I.next().value;I=_.J(_.$M(0,void 0,"Q2oK6b"));var K=I.next().value,r=I.next().value;I=_.J(_.$M(0,void 0,"hYKowe"));var N=I.next().value,h=I.next().value,x=function(){var B=F();if(B){var C;if(((C=_.ft())==null?void 0:C.getPlayerState())!==-1){B.style.display=
"inherit";var H;(H=_.ft())==null||H.removeEventListener("onStateChange",x)}else B.style.display="none";X()}},q=function(){var B;
return(B=_.NY())==null?void 0:B.querySelector("video")},X=function(){var B=q();
if(B){r(B.getBoundingClientRect().width);h(B.getBoundingClientRect().height);var C;w((B==null?void 0:(C=B.style)==null?void 0:C.left)||"0px");var H;P((B==null?void 0:(H=B.style)==null?void 0:H.top)||"0px")}};
_.wZ(function(){var B=F();if(B){var C,H,e;if(((C=_.ft())==null?void 0:C.getPlayerState())===-1&&Math.round(((e=(H=_.ft())==null?void 0:H.getVideoAspectRatio())!=null?e:0)*100)!==Math.round(K()/N()*100)){B.style.display="none";var T,L5;h(K()/((L5=(T=_.ft())==null?void 0:T.getVideoAspectRatio())!=null?L5:1))}}},"N29KDe");
var f=function(){X()},m;
_.OJ(function(){X();var B;if(!(D==null?0:(B=D())==null?0:B.transformationMatrix))throw Error("Yl");var C;(C=_.ft())==null||C.addEventListener("onStateChange",x);if(window.ResizeObserver){if(B=q())m=new ResizeObserver(f),m.observe(B)}else window.addEventListener("resize",X);_.tI(function(){var H;(H=_.ft())==null||H.removeEventListener("onStateChange",x);m?m.disconnect():window.removeEventListener("resize",X)})});
var z=function(){var B,C,H=(C=D==null?void 0:(B=D())==null?void 0:B.transformationMatrix)!=null?C:[];B=K();C=N();for(var e=[],T=0,L5=-1;T<H.length;T++)T%3===0&&(L5++,e[L5]=[]),e[L5].push(H[T]);H=new q9(e);e=new q9([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);e=H.multiply(e);H=new q9([[0,0],[0,0],[0,0],[0,0]]);for(T=0;T<e.getSize().width;T++){L5=o3(e,0,T);var vH=o3(e,1,T);if(L5===null||vH===null)throw Error("Xl`"+(T+1).toString());rmZ(H,T,0,L5*B);rmZ(H,T,1,vH*C)}B=o3(H,0,0);T=o3(H,1,0);C=o3(H,0,1);L5=o3(H,1,1);
if(B===null||T===null||C===null||L5===null)throw Error("Vl");e=GrQ(B,T,C,L5);vH=o3(H,3,0);H=o3(H,3,1);if(vH===null||H===null)throw Error("Wl");H=GrQ(B,vH,C,H);L5=(Number((L5*-1).toFixed(2))-Number((C*-1).toFixed(2)))/(Number(T.toFixed(2))-Number(B.toFixed(2)));vH=Math.atan(L5)*180/Math.PI;T=L5===Number.POSITIVE_INFINITY?-90:L5===Number.NEGATIVE_INFINITY?90:Object.is(L5,-0)?180:L5===0?0:L5>0?vH*-1:B<T?vH*-1:Math.abs(vH)+180;return"left:calc("+B+"px + "+O()+"); top:calc("+(C+"px + "+v()+"); width:")+
(e+"px; height:")+(H+"px; transform:rotate(")+(T+"deg);\n        --sticker-width:"+e+";")};
return _.t(_.pgo,{root:"#sticker-layer"},function(){return _.t("yt-overlay-sticker",{el:_.K4(R),style:z,class:"ytOverlayStickerHost"},y)})},"vk");var C6g=_.d(function(I){function y(){var x,q,X,f,m=(q=_.u((x=P())==null?void 0:x.command,_.G9O))==null?void 0:(X=q.item)==null?void 0:(f=X.notificationTextRenderer)==null?void 0:f.successResponseText;if(m)x=_.hS(m),_.uj(F.value,"yt-open-popup-action",[x,F.value]);else if(K())QzQ(K(),F.value);else{var z;QzQ((z=P())==null?void 0:z.command,F.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var D=I.data;var F=_.DF("svg"),R=_.J(_.$M(!1,void 0,"e9onLe"));I=R.next().value;var O=R.next().value,w=_.J(_.$M(!1,void 0,"ptnIQd"));R=w.next().value;var v=w.next().value,P=function(){var x;return _.u((x=D())==null?void 0:x.popUp,guT)},K=function(){var x;
return(x=D())==null?void 0:x.command},r=function(){return _.u(K(),_.Ct)!==void 0};
w=_.YY(function(){y();return!1});
var N={},h={};return _.t("svg",{"on:mouseover":_.YY(function(){r()&&O(!0);v(!0);return!1}),
"on:mouseout":_.YY(function(){O(!1);v(!1);return!1}),
"on:keydown":_.YY(function(x){x.key==="Enter"&&y();return!1}),
"on:focus":_.YY(function(){r()&&O(!0);return!1}),
"on:blur":_.YY(function(){r()&&O(!1);return!1}),
el:F,tabindex:0,"aria-label":function(){var x;return(x=D())==null?void 0:x.a11yString},
id:"player-overlay-video-interaction-svg",class:_.XH("ytPlayerOverlayInteractionInteractionsSvg",(N.ytPlayerOverlayInteractionInteractionsSvgHover=I,N),(h.ytPlayerOverlayInteractionInteractionsSvgHideOutline=R,h)),role:"button","on:click":w})},"yk");_.NK(_.d(function(I){var y=I.data;_.OJ(function(){var D;if((D=y())==null?0:D.trackingParams){var F;_.W4().graftServerVe((F=y().trackingParams)!=null?F:"")}});
return _.t("yt-player-overlay-interaction",null,_.t(Wab,{region:function(){var D,F;return(D=y())==null?void 0:(F=D.regions)==null?void 0:F[0]}},_.t(C6g,Object.assign({},I))))},"xk"),"yt-player-overlay-interaction",{props:{data:_.om}});var Bsa=_.d(function(I){var y=I.data;var D=I.index;var F=I.selectedChoice;var R=function(){var O;return _.u((O=y())==null?void 0:O.renderer,jpe)};
I={};return _.t("yt-overlay-poll-sticker-choice",{class:_.XH("ytOverlayPollStickerChoiceHost"),style:_.p4({"--displayed-percentage":function(){var O,w,v,P;return""+Math.ceil(Number((F==null?void 0:F())===D()?(O=R())==null?void 0:(w=O.selected)==null?void 0:w.progressBarWidth:(v=R())==null?void 0:(P=v.unselected)==null?void 0:P.progressBarWidth)*100)}})},_.t("div",{class:_.XH("ytOverlayPollStickerChoicePollChoice",(I.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(F==null?void 0:F())!==
void 0},I.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(F==null?void 0:F())===D()},I))},_.t("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var O;
return((O=R())==null?void 0:O.text)||""}),_.t("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(F==null?void 0:F())==="undefined")var O="";
else{var w,v,P,K;O=(F==null?void 0:F())===D()?(w=R())==null?void 0:(v=w.selected)==null?void 0:v.votePercentage:(P=R())==null?void 0:(K=P.unselected)==null?void 0:K.votePercentage}return O})))},"zk");var inb=_.d(function(I){var y=I.data;var D=I.enableDebuggingFeatures;var F=_.dV(function(O){var w,v=((w=y())==null?void 0:w.postPollStateEntityKey)||"";O=_.nC(O.entities,"postPollStateEntity",v);var P;return((P=y())==null?0:P.viewerIsOwner)?Object.assign({},O,{selectedOptionId:-1,voted:!0}):O}),R=_.nR().resolve(_.MC);
I={};return _.t("yt-overlay-poll-sticker",null,_.t(Wab,{region:function(){var O,w;return(O=y())==null?void 0:(w=O.region)==null?void 0:w.interactionRegion}},_.t("div",{class:_.XH("ytOverlayPollStickerHost",(I.ytOverlayPollStickerDebugStyle=function(){return D==null?void 0:D()},I)),
style:_.p4({"--original-height":function(){var O;return""+(((O=y())==null?void 0:O.mainBodyHeight)||1)},
"--original-width":function(){var O;return""+(((O=y())==null?void 0:O.mainBodyWidth)||1)},
"--scaled-width":function(){var O;return""+(((O=y())==null?void 0:O.mainBodyWidth)||1)},
"--primary-surface":function(){var O,w;return Xwg(((O=y())==null?void 0:(w=O.theme)==null?void 0:w.primarySurface)||0)},
"--raised-surface":function(){var O,w;return Xwg(((O=y())==null?void 0:(w=O.theme)==null?void 0:w.raisedSurface)||0)},
"--secondary-surface":function(){var O,w;return Xwg(((O=y())==null?void 0:(w=O.theme)==null?void 0:w.secondarySurface)||0)},
"--primary-text":function(){var O,w;return Xwg(((O=y())==null?void 0:(w=O.theme)==null?void 0:w.primaryText)||0)},
"--secondary-text":function(){var O,w;return Xwg(((O=y())==null?void 0:(w=O.theme)==null?void 0:w.secondaryText)||0)}})},_.t("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return y().questionText}," "),_.t(_.gZ,{each:function(){return y().pollChoiceConfigs||[]}},function(O,w){return _.t("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.YY(function(){var v=w(),P;if((P=y())==null||!P.viewerIsOwner){var K,r;P=(K=y())==null?void 0:(r=K.pollChoiceConfigs)==null?void 0:r[v];if(r=(P==null?0:P.renderer)?_.u(P.renderer,jpe):void 0){var N;K=((N=F())==null?void 0:N.selectedOptionId)!==v;var h;if(N=(h=K?r.selectedPollCommand:r.deselectedPollCommand)==null?void 0:h.innertubeCommand){R.resolveCommand(N);var x,q;_.Uv().dispatch(_.WS("postPollStateEntity",((x=F())==null?void 0:x.key)||"",{key:((q=F())==null?void 0:q.key)||"",selectedOptionId:K?
v:-1,voted:K}))}}}})},_.t(Bsa,{data:O,
index:w,selectedChoice:function(){var v,P;return((v=F())==null?0:v.voted)?(P=F())==null?void 0:P.selectedOptionId:void 0}}))}),_.t("div",{class:"ytOverlayPollStickerVoteCount"},function(){var O,w;
return((O=F())==null?0:O.voted)&&((w=F())==null?void 0:w.selectedOptionId)!==-1?y().postVoteCountText:y().preVoteCountText}))))},"Ak");_.NK(_.d(function(I){var y=I.data;I=_.su(function(){var D;return _.l("enable_shorts_poll_stickers_web")?(((D=y())==null?void 0:D.stickers)||[]).filter(function(F){return F.pollSticker}):[]},void 0,"Cflxwb");
return _.t("yt-stickers-layer",null,_.t(_.gZ,{each:I},function(D){return _.t(inb,{data:D.pollSticker,enableDebuggingFeatures:function(){var F;return(F=y())==null?void 0:F.enableDebuggingFeatures}})}))},"Bk"),"yt-stickers-layer",{props:{data:_.om}});var cK=function(){var I=_.k.apply(this,arguments)||this;I.showScrubber=!1;I.isWatchWhileMode=!1;I.enableAnchoredPanel=_.l("desktop_shorts_v2_anchored_panel");I.enablePollStickers=_.l("enable_shorts_poll_stickers_web");I.enableShortsModernControls=_.l("web_shorts_modern_controls");I.anchoredPanelActive=!1;I.enableLivingroomLayout=_.l("reels_enable_livingroom_layout");I.enablePlayerMetadataContainer=_.l("reels_web_enable_metadata_container");I.enableSqueezebackPanels=_.l("web_shorts_enable_squeezeback_panels");
I.useAspectRatio=_.l("web_use_aspect_ratio");I.isSqueezebackActive=!1;I.smallScreenSqueezeback=!1;I.isPlayerStarted=!1;I.overlayDensity=0;I.extractOverlay=!1;I.extractActionBar=!1;I.isOverlay=!1;I.isImmersive=!1;I.isImmersiveHorizontal=!1;I.isFullscreen=!1;I.onWindowResized=function(){var y;I.set("isImmersive",((y=window.getComputedStyle(I.hostElement))==null?void 0:y.getPropertyValue("--immersive-mode-on"))==="1");I.set("isImmersiveHorizontal",I.isImmersive&&I.enableLivingroomLayout&&!I.isWatchWhileMode)};
return I};
_.E(cK,_.k);_.L=cK.prototype;_.L.updateIsOverlay=function(I){this.isOverlay=I.detail.value};
_.L.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.L.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.L.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.L.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.L.onOverlayDensityChange=function(){var I=_.XB(this.hostElement).querySelector("ytd-info-panel-container-renderer");I&&(I.set("extractOverlay",this.extractOverlay),I.set("roundedContainer",this.extractOverlay))};
_.L.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.L.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.L.ready=function(){(_.l("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"))&&(!_.l("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.d6("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.d6("reels_action_justified_content")||"flex-start")};
_.L.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0},"data.disclosure":{id:"disclosure",
mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0}}};
_.L.setFakeLoadingButtons=function(){_.l("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.zC("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.zC("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.zC("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.zC("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.zC("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()};
_.L.setEmptyOverlayMetadata=function(){_.l("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}))};
_.mD.Object.defineProperties(cK.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.infoPanel)}}});
cK.prototype.onOverlayDensityChange=cK.prototype.onOverlayDensityChange;cK.prototype.onIsActiveChanged=cK.prototype.onIsActiveChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],cK.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],cK.prototype,"ytdReduxBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],cK.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],cK.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],cK.prototype,"isActive",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],cK.prototype,"hidden",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],cK.prototype,"useShortsIcon",void 0);
_.W([_.M({value:"left"}),_.A("design:type",String)],cK.prototype,"buttonTooltipPosition",void 0);_.W([_.M({value:_.l("reels_enable_livingroom_layout")?"top":"left"}),_.A("design:type",String)],cK.prototype,"likeButtonTooltipPosition",void 0);_.W([_.M({value:"none"}),_.A("design:type",String)],cK.prototype,"textTransform",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"showScrubber",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"isWatchWhileMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.infoPanel"),_.A("design:type",Object),_.A("design:paramtypes",[])],cK.prototype,"hasInfoPanel",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"enableAnchoredPanel",void 0);_.W([_.M(),_.A("design:type",Object)],cK.prototype,"enablePollStickers",void 0);
_.W([_.M(),_.A("design:type",Object)],cK.prototype,"enableShortsModernControls",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"anchoredPanelActive",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"enableLivingroomLayout",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],cK.prototype,"enablePlayerMetadataContainer",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"enableSqueezebackPanels",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"useAspectRatio",void 0);_.W([_.M({selector:_.qQB,reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"isSqueezebackActive",void 0);_.W([_.M({selector:iET,reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"smallScreenSqueezeback",void 0);
_.W([_.M({selector:A91}),_.A("design:type",Object)],cK.prototype,"isPlayerStarted",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"overlayDensity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"extractOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"extractActionBar",void 0);_.W([_.M(),_.A("design:type",Object)],cK.prototype,"isOverlay",void 0);
_.W([_.M(),_.A("design:type",Object)],cK.prototype,"isImmersive",void 0);_.W([_.M(),_.A("design:type",Object)],cK.prototype,"isImmersiveHorizontal",void 0);_.W([_.M({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.A("design:type",Boolean)],cK.prototype,"isShortsImmersive",void 0);_.W([_.M({computed:"computeButtonOverride(extractActionBar)"}),_.A("design:type",Object)],cK.prototype,"buttonOverride",void 0);
_.W([_.M({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.A("design:type",Object)],cK.prototype,"actionBarButtonOverride",void 0);_.W([_.M({selector:_.u9,reflectToAttribute:!0}),_.A("design:type",Object)],cK.prototype,"isFullscreen",void 0);_.W([_.ke("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cK.prototype,"onIsActiveChanged",null);
_.W([_.ke("extractOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cK.prototype,"onOverlayDensityChange",null);_.W([_.yd({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],cK);
_.a(cK,"ytd-reel-player-overlay-renderer",function(){if(dIR!==void 0)return dIR;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return dIR=I},{mode:1});var AFC;var WK=function(){var I=_.k.apply(this,arguments)||this;I.videoDuration=0;I.playedTime=0;I.isActive=!1;I.JSC$22012_playerEvents=new Map;return I};
_.E(WK,_.k);_.L=WK.prototype;_.L.created=function(){this.JSC$22012_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22012_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.L.attached=function(){this.getPlayerAndInitializeListeners()};
_.L.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22012_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.MX(this,this.onPageChanged))};
_.L.getPlayerAndInitializeListeners=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return y=_.NY(),y?D.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.MX(I,I.onPageChanged)),D.jumpTo(0));I.player=D.yieldResult;I.initializePlayerListeners();_.Cj(D)})};
_.L.onPageChanged=function(I){var y=this;return _.S(function(D){if(D.nextAddress==1)return I.detail.newPageType!=="ytd-shorts"?D.return():D.yield(_.hZ().getPlayerPromise(),2);y.player=D.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.MX(y,y.onPageChanged));_.Cj(D)})};
_.L.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22012_playerEvents)};
_.L.onVideoDataChange=function(I){var y=this;return _.S(function(D){if(!y.player||I.type!=="newdata")return D.return();y.videoDuration=_.l("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(I.playertype).seekableEnd:y.player.getDuration(I.playertype);y.playedTime=0;_.Cj(D)})};
_.L.onVideoProgress=function(I){var y=this,D,F;return _.S(function(R){if(!y.player)return R.return();D=y.player.getPresentingPlayerType();F=y.player.getPlayerState();y.videoDuration=_.l("web_shorts_use_progress_state_for_gapless")?y.player.getProgressState(D).seekableEnd:y.player.getDuration(D);y.playedTime=F===0?y.videoDuration:I;_.Cj(R)})};
_.L.getPercentPlayed=function(I,y){return I?_.IL(y/I,0,1):0};
_.mD.Object.defineProperties(WK.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 I="";return I=this.videoDuration&&this.playedTime?I+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):I+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],WK.prototype,"componentBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],WK.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],WK.prototype,"player",void 0);_.W([_.M(),_.A("design:type",Object)],WK.prototype,"videoDuration",void 0);_.W([_.M(),_.A("design:type",Object)],WK.prototype,"playedTime",void 0);_.W([_.M(),_.A("design:type",Object)],WK.prototype,"isActive",void 0);
_.W([_.Y("videoDuration","playedTime"),_.A("design:type",Number),_.A("design:paramtypes",[])],WK.prototype,"percentPlayed",null);_.W([_.Y("videoDuration","playedTime"),_.A("design:type",Object),_.A("design:paramtypes",[])],WK.prototype,"percentPlayedStyle",null);_.W([_.Y("videoDuration","isActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WK.prototype,"hideProgressBar",null);
_.a(WK,"ytd-progress-bar-line",function(){if(AFC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);AFC=I}I=AFC;return I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var $IZ;_.NK(psG,"ytm-closed-captioning-button",{props:{captionIconType:_.om,onClick:_.rV,ariaLabel:_.om,ariaPressed:_.om,isOverlay:_.rV,isModern:_.rV}});_.NK(_.S6g,"desktop-shorts-volume-controls",{props:{orientation:_.om}});var C$=function(){var I=_.k.apply(this,arguments)||this;I.playerState=null;I.isMuted=!1;I.shortsModernControlsEnabled=_.l("web_shorts_modern_controls");I.volumeControlsOrientationState="horizontal_right";I.isOverlay=!0;I.isAdsOverlay=!1;I.captionIconType=-1;I.ariaLabel="";I.overlayDensity=0;I.JSC$22015_playerEvents=new Map;I.onClosedCaptionsButtonClick=function(){I.player&&s1G(I.player)&&(I.player.toggleSubtitles(),I.updateCaptionIconType())};
return I};
_.E(C$,_.k);_.L=C$.prototype;_.L.created=function(){this.JSC$22015_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22015_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22015_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.L.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.QM(28662);this.playPauseButtonClientVE=_.QM(36842);this.fullscreenButtonToggleOffClientVE=_.QM(222256);this.fullscreenButtonToggleOnClientVE=_.QM(222257);var I=_.VO(),y=_.s_();I&&y&&(_.l("combine_ve_grafts")?(_.aj(_.W4(),this.muteButtonClientVE,y),_.aj(_.W4(),this.playPauseButtonClientVE,y)):_.LC(I,y,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.L.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22015_playerEvents),this.player=null)};
_.L.updateCaptionIconType=function(){var I=-1,y=void 0,D=_.zC("CLOSED_CAPTIONS_DISABLED");this.player&&s1G(this.player)&&(Vkb(this.player)?(y=!0,D=_.zC("CLOSED_CAPTIONS_ON"),I=1):(y=!1,D=_.zC("CLOSED_CAPTIONS_OFF"),I=0));this.captionIconType=I;this.ariaPressedState=y;this.ariaLabel=D};
_.L.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.L.getPlayerAndInitializeListeners=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return y=_.NY(),y?D.yield(y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.MX(I,I.onPageChanged)),D.jumpTo(0));I.player=D.yieldResult;I.initializePlayerListeners();_.Cj(D)})};
_.L.onPageChanged=function(I){var y=this;return _.S(function(D){if(D.nextAddress==1)return I.detail.newPageType!=="ytd-shorts"?D.return():D.yield(_.hZ().getPlayerPromise(),2);y.player=D.yieldResult;y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.MX(y,y.onPageChanged));_.Cj(D)})};
_.L.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22015_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.L.onPlayerStateChange=function(I){this.playerState=I};
_.L.onPlayerVolumeChange=function(I){this.isMuted=I.muted};
_.L.onPlayPauseButtonClick=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.hZ().getPlayerPromise(),2);y=F.yieldResult;(D=_.VO())&&I.playPauseButtonClientVE&&_.SI(D,I.playPauseButtonClientVE);y.getPlayerState()!==1?y.playVideo():y.pauseVideo();_.Cj(F)})};
_.L.computePlayPauseIcon=function(I){return I===2||I===-1||I===5?_.l("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.l("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.l("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.L.computeFullscreenLabel=function(I){return I?_.zC("FULLSCREEN_EXIT_LABEL"):_.zC("FULLSCREEN_ENTER_LABEL")};
_.L.computePlayPauseLabel=function(I){return I===1||I===3?_.zC("PLAYER_LABEL_PAUSE"):_.zC("PLAYER_LABEL_PLAY")};
_.L.onMuteButtonClick=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(_.hZ().getPlayerPromise(),2);y=F.yieldResult;(D=_.VO())&&I.muteButtonClientVE&&_.SI(D,I.muteButtonClientVE);y.isMuted()?y.unMute(!0):y.mute(!0);_.Cj(F)})};
_.L.computeMuteIcon=function(I){return I?"miniplayer:volume-off":"miniplayer:volume-up"};
_.L.computeMuteLabel=function(I){return I?_.zC("PLAYER_LABEL_UNMUTE"):_.zC("PLAYER_LABEL_MUTE")};
_.L.onFullscreenButtonClick=function(){var I=_.VO();I&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.SI(I,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.SI(I,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();Adg()};
_.mD.Object.defineProperties(C$.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var I=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(){I.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.l("web_shorts_modern_controls")?"player_full_exit_alt":_.l("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.l("web_shorts_modern_controls")?"player_full_enter_alt":_.l("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],C$.prototype,"componentBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],C$.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],C$.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"player",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"playerState",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"isMuted",void 0);
_.W([_.M({computed:"computePlayPauseIcon(playerState)"}),_.A("design:type",String)],C$.prototype,"playPauseIcon",void 0);_.W([_.M({computed:"computeMuteIcon(isMuted)"}),_.A("design:type",String)],C$.prototype,"muteIcon",void 0);_.W([_.M({selector:_.u9}),_.A("design:type",Boolean)],C$.prototype,"isFullscreen",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],C$.prototype,"shortsModernControlsEnabled",void 0);
_.W([_.M(),_.A("design:type",Object)],C$.prototype,"volumeControlsOrientationState",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"isOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],C$.prototype,"isAdsOverlay",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"captionIconType",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"ariaLabel",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"ariaPressedState",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],C$.prototype,"overlayDensity",void 0);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"data",void 0);_.W([_.M({computed:"computeActionBarButtonOverride()"}),_.A("design:type",Object)],C$.prototype,"actionBarButtonOverride",void 0);_.W([_.Y("playerState"),_.A("design:type",Object),_.A("design:paramtypes",[])],C$.prototype,"playPauseButtonData",null);
_.W([_.Y("isFullscreen"),_.A("design:type",Object),_.A("design:paramtypes",[])],C$.prototype,"fullscreenButtonData",null);_.W([_.M(),_.A("design:type",Object)],C$.prototype,"onClosedCaptionsButtonClick",void 0);_.W([_.Y("isFullscreen"),_.A("design:type",String),_.A("design:paramtypes",[])],C$.prototype,"fullscreenIcon",null);
_.a(C$,"ytd-shorts-player-controls",function(){if($IZ===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);$IZ=I}I=$IZ;return I},{mode:1});var bny;_.NK(_.yWZ,"yt-interstitial-view-model",{props:{data:_.om}});var HnG=_.d(function(I){var y=I.data;return _.t("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.t("h1",{class:"reelWatchBreakViewModelHostTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t("h2",{class:"reelWatchBreakViewModelHostBody"},_.t(_.jr,{text:function(){return y().body},
isOverlay:!0})),_.t(_.aP,{data:function(){return y().buttons}},{buttonViewModel:function(D,F){return _.t("div",{class:function(){return F()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.t(_.My,{data:D.data}))}}))},"Ck");
HnG.idomCompat=!0;_.NK(HnG,"reel-watch-break-view-model",{props:{data:_.om}});var BK=function(){return _.k.apply(this,arguments)||this};
_.E(BK,_.k);BK.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}}};
_.mD.Object.defineProperties(BK.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.u((I=this.data)==null?void 0:I.renderer,VDZ)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.u((I=this.data)==null?void 0:I.renderer,Z1a)}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BK.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BK.prototype,"isSurvey",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BK.prototype,"isInterstitialViewModel",null);_.W([_.yd({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],BK);
_.a(BK,"ytd-reel-non-video-content-renderer",function(){if(bny!==void 0)return bny;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return bny=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var e_b;_.NK(_.v7g,"desktop-shorts-player-controls",{});var ic=function(){var I=_.k.apply(this,arguments)||this;I.isPlayerPaused=!1;I.isPlayerStarted=!1;I.showPlayerControls=!1;I.showScrubber=!1;I.autoHideJobId=0;I.overlayType=_.d6("web_shorts_expanded_overlay_type");I.panelData=void 0;I.isWatchWhileMode=!1;I.hasError=!1;I.panelShowDelayMs=1;I.scrubberComponent={};I.isFullscreen=!1;I.shouldHideOverlay=!1;I.enableAnchoredPanel=_.l("desktop_shorts_v2_anchored_panel");I.enablePersistentAnchoredPanel=_.l("desktop_shorts_v2_persistent_anchored_panel");I.hideWatchWhilePanel=
_.l("web_shorts_hide_watch_while_panel");I.useAspectRatio=_.l("web_use_aspect_ratio");I.enableShortsModernControls=_.l("web_shorts_modern_controls");I.isPersistentPanelActive=!1;I.anchoredPanelActive=!1;I.isShortsPipActive=!1;I.smallScreenSqueezeback=!1;I.enableFlexibleOverlay=_.l("web_enable_flexible_overlay");I.overlayDensity=0;I.extractOverlay=!1;I.extractActionBar=!1;I.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
I.onWindowResized=function(){_.v4(I,"calculateOverlayDensity",function(){I.calculateOverlayDensity()},100)};
return I};
_.E(ic,_.k);_.L=ic.prototype;_.L.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.L.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.L.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var I=_.nR().resolve(_.yR);this.isWatchWhileMode&&_.w2.addJob(function(){I.showPanel({identifier:"shorts-comments-panel",target:null})},_.l("web_enable_shorts_no_idle_job")?1:0)}}else this.panelData=void 0};
_.L.handleShowReelsCommentsOverlayCommand=function(I){I=_.u(I,mkY);this.isActive&&(I==null?0:I.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))};
_.L.updateEngagementPanelVisibility=function(I,y){I&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:y?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:I}})};
_.L.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.L.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.nR().resolve(_.WY).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.L.handleWatchWhilePanelScrimClick=function(){var I=_.nR().resolve(_.yR);this.activeWatchWhilePanel&&(I.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.L.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.L.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:_.l("web_enable_shorts_no_idle_job")?8:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",
isWatchWhileMode:"[[watchWhileOrPersistentActive]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0}}};
_.L.handlePlayerClick=function(I){var y=this,D,F;if((F=(D=window).matchMedia)!=null&&F.call(D,"(any-pointer: coarse)").matches||!I)this.showPlayerControls=!0,_.w2.cancelJob(this.autoHideJobId),this.autoHideJobId=_.w2.addJob(function(){y.showPlayerControls=!1},_.l("web_enable_shorts_no_idle_job")?1:0,4E3)};
_.L.isFirstReel=function(){return this.index===0};
_.L.handleMouseenter=function(){_.w2.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.L.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.L.handleScrubberEnter=function(){this.showScrubber=!0};
_.L.handleScrubberLeave=function(){this.showScrubber=!1};
_.L.maybeLogNonDefaultAspectRatio=function(){var I;(I=this.data)!=null&&I.thumbnail&&this.isActive&&.5625!==Urb(this.data.thumbnail)&&_.JjA("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.L.calculateOverlayDensity=function(){var I=document.querySelector("#shorts-container");if(I){var y=!1,D,F=this.playerContainer.offsetWidth,R=this.playerContainer.offsetHeight;I=I.offsetWidth/2-F/2;I>=368?(I=1,y=D=!0):I>=72?(I=0,D=!0):(I=2,D=!1);F>=600&&R>=840?I=1:window.innerWidth<=599&&(I=2,D=y=!1);this.isPersistentPanelActive&&(I=0,y=!1);this.extractActionBar=D;_.l("web_enable_flexible_overlay")&&(this.overlayDensity=I,this.extractOverlay=y);var O;(O=this.onOverlayDensityChanged)==null||O.call(this,
this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}};
_.L.onOverlayDensityChange=function(){var I;(I=this.onOverlayDensityChanged)==null||I.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(I=_.XB(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))I.set("overlayDensity",this.overlayDensity),I.set("extractOverlay",this.extractOverlay),I.set("extractActionBar",this.extractActionBar);if(I=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))I.overlayDensity=this.overlayDensity,I.extractOverlay=
this.extractOverlay,I.extractActionBar=this.extractActionBar};
_.L.isVideoContent=function(I){_.nR().resolve(_.WY);return!!_.u(I,_.WF)};
_.L.isNonVideoContent=function(I){_.nR().resolve(_.WY);return!!_.u(I,_.Jz)};
_.L.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.mD.Object.defineProperties(ic.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.l("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var I;return!this.isActive||!this.isPlayerStarted||(I=this.data)!=null&&I.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.data)==null?0:I.command)&&this.isVideoContent(this.data.command)){var y,D;if(((y=this.data)==null?0:y.adsOverlay)&&Object.keys((D=this.data)==null?void 0:D.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var F,R;if(((F=this.data)==null?0:F.reelPlayerOverlayRenderer)&&Object.keys((R=this.data)==null?void 0:R.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ic.prototype.onOverlayDensityChange=ic.prototype.onOverlayDensityChange;ic.prototype.calculateOverlayDensity=ic.prototype.calculateOverlayDensity;ic.prototype.maybeLogNonDefaultAspectRatio=ic.prototype.maybeLogNonDefaultAspectRatio;ic.prototype.onEngagementPanelsChanged=ic.prototype.onEngagementPanelsChanged;ic.prototype.onScrubberDataChange=ic.prototype.onScrubberDataChange;ic.prototype.updateShouldHideOverlay=ic.prototype.updateShouldHideOverlay;
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],ic.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],ic.prototype,"index",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ic.prototype,"isActive",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ic.prototype,"isHiddenInDom",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"isPlayerPaused",void 0);_.W([_.M({selector:A91}),_.A("design:type",Object)],ic.prototype,"isPlayerStarted",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"showPlayerControls",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"showScrubber",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"autoHideJobId",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"overlayType",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],ic.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],ic.prototype,"watchWhileEngagementPanels",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"panelData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"isWatchWhileMode",void 0);_.W([_.M(),_.A("design:type",String)],ic.prototype,"activeWatchWhilePanel",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"hasError",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"panelShowDelayMs",void 0);
_.W([_.M(),_.A("design:type",Object)],ic.prototype,"scrubberComponent",void 0);_.W([_.M({selector:_.u9,reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"isFullscreen",void 0);_.W([_.M(),_.A("design:type",Object)],ic.prototype,"shouldHideOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"enableAnchoredPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"enablePersistentAnchoredPanel",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"hideWatchWhilePanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"useAspectRatio",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"enableShortsModernControls",void 0);_.W([_.M({selector:_.qQB,reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"isPersistentPanelActive",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"anchoredPanelActive",void 0);_.W([_.M({selector:_.q5,reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"isShortsPipActive",void 0);_.W([_.M({selector:iET,reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"smallScreenSqueezeback",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data.adsOverlay"),_.A("design:type",Object),_.A("design:paramtypes",[])],ic.prototype,"isAdsOverlay",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"enableFlexibleOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"overlayDensity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"extractOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ic.prototype,"extractActionBar",void 0);_.W([_.M(),_.A("design:type",Function)],ic.prototype,"onOverlayDensityChanged",void 0);
_.W([_.M(),_.Y("isActive","hasError","isPlayerStarted"),_.A("design:type",Object),_.A("design:paramtypes",[])],ic.prototype,"shouldRenderPlayerElements",null);_.W([_.M(),_.Y("isActive","isWatchWhileMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],ic.prototype,"watchWhileOrPersistentActive",null);_.W([_.ke("isActive","hasError","showingExpandedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"updateShouldHideOverlay",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("isActive","isPlayerStarted","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ic.prototype,"shouldRenderScrubber",null);_.W([_.ke("shouldRenderScrubber"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"onScrubberDataChange",null);_.W([_.Y("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],ic.prototype,"overlayComponent",null);
_.W([_.ke("watchWhileEngagementPanels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"onEngagementPanelsChanged",null);_.W([_.a0("#player-container"),_.A("design:type",HTMLElement)],ic.prototype,"playerContainer",void 0);_.W([_.a0("#cinematic-container"),_.A("design:type",HTMLElement)],ic.prototype,"cinematicContainer",void 0);
_.W([_.ke("isPersistentPanelActive","data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"maybeLogNonDefaultAspectRatio",null);_.W([_.ke("isPersistentPanelActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"calculateOverlayDensity",null);
_.W([_.ke("overlayDensity","extractOverlay","extractActionBar"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ic.prototype,"onOverlayDensityChange",null);_.W([_.yd({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ic);
_.a(ic,"ytd-reel-video-renderer",function(){if(e_b!==void 0)return e_b;var I=document.createElement("template");_.G(I,'\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 id="video-filtering-overlay-container" class="style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return e_b=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var AB=function(){var I=_.k.apply(this,arguments)||this;I.isPreviousPageShorts=!1;I.index=0;I.delayedActiveIndex=0;I.playablePreviousIndex=null;I.isPlayerPaused=!1;I.isPlayerStarted=!1;I.intersectionObserverThreshold=.6;I.fitToVisibleBounds=!1;I.pageSubtype="shorts";I.enablePreviousContinuation=_.l("shorts_in_playlists_web");I.shortsPipEnabled=_.l("web_shorts_pip");I.isDark=document.documentElement.hasAttribute("dark");I.shortsViewTransitions=_.l("web_shorts_view_transitions");I.isFullscreen=!1;I.isShortsPipActive=
!1;I.buttonOverride={iconPosition:"icon-only",size:"XL"};I.anchoredPanelActive=!1;I.isActive=!1;I.smallScreenPersistentPanel=!1;I.isPersistentPanelActive=!1;I.smallScreenSqueezeBack=!1;I.enableScrollIntoViewCenter=_.l("web_scroll_into_view_center");I.enableFlexibleOverlay=_.l("web_enable_flexible_overlay");I.extractOverlay=!1;I.useAspectRatio=_.l("web_use_aspect_ratio");I.enableShortsSequenceRefactorUnify=_.l("web_enable_shorts_sequence_refactor_unify");I.continuationRequestPending=!1;I.carouselContainers=
[];I.isShortsInitialized=!1;I.shortsContentList=[];I.hasDataUpdated=!1;I.playerInPosition=!1;I.hidePreviousButtonImmediately=!1;I.showPreviousButtonImmediately=!1;I.endOfNextContinuation=!1;I.currentPlayerIndex=0;I.nextReelVe=_.QM(56921);I.prevReelVe=_.QM(56922);I.loopToggleOffVe=_.QM(198013);I.loopToggleOnVe=_.QM(198014);I.ambientModeToggleVe=_.QM(227860);I.reelPlayerPausedStateRendererVe=_.QM(141313);I.storedPlaybackSpeed=null;I.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"};I.onOverlayDensityChanged=function(y,D,F,R){y=I.getActiveReelVideo(y);I.extractOverlay=!!F;y==null||y.setAttribute("overlay-density",String(D));F===void 0||y!=null&&y.toggleAttribute("extract-overlay",F);R===void 0||y!=null&&y.toggleAttribute("extract-action-bar",R)};
return I};
_.E(AB,_.k);_.L=AB.prototype;_.L.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.L.setShortsContentList=function(){var I=this;if(this.enableShortsSequenceRefactorUnify){var y=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.Td(this.shortsContentList)):[],D=this.firstShortsData;if(D){var F=this.reelWatchSequenceResponse;(D=this.shortsController==null?void 0:i9R(y,D,F!=null?F:null))&&D.newContentList&&(D=D.newContentList,D.length!==y.length&&(this.shortsContentList=D,_.YC(this,function(){I.observeShorts()})))}}};
_.L.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.L.onResize=function(){var I=_.oq(),y=I.dispatch,D=this.calculateIsSmallWidth();y.call(I,_.Ec({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:D}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.L.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:_.l("web_enable_shorts_no_idle_job")?8:0}}};
_.L.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var I=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,y=I,D=0;I<250&&(y=I+this.shortsInnerContainer.clientWidth,D=24);_.pg(this.hostElement,{"--ytd-shorts-header-width":y+"px","--ytd-shorts-top-spacing":D+"px"})}};
_.L.isFirstShorts=function(I){return I&&!this.enableShortsSequenceRefactorUnify?this.index===-I.length:this.index===0};
_.L.isActiveReel=function(I,y,D){D&&(y=this.calculatePrevIndex(y,D));return I===y};
_.L.onFullscreenChange=function(){_.l("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.nR().resolve(_.OI).close(!0))};
_.L.engagementPanelsChanged=function(){var I;this.watchWhileEngagementPanels=(I=this.data)==null?void 0:I.engagementPanels};
_.L.unregisterPanels=function(){var I=_.nR().resolve(_.yR);if(this.watchWhileEngagementPanels)for(var y=_.J(this.watchWhileEngagementPanels),D=y.next();!D.done;D=y.next()){var F=D.value,R=void 0,O=void 0;D=(R=F.engagementPanelSectionListRenderer)==null?void 0:(O=R.identifier)==null?void 0:O.tag;F=this.getPanelIdentifier(F.engagementPanelSectionListRenderer);I&&(D&&I.panelMap.delete(D),F&&_.l("web_shorts_panel_caching_bugfix")&&(R=D=void 0,(R=(D=I).unregisterPanelContent)==null||R.call(D,F)))}};
_.L.isVideoContent=function(I){return this.isVideoContentCommand(I==null?void 0:I.command)};
_.L.getActiveReelVideo=function(I){return _.XB(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+I+'"]')};
_.L.calculatePrevIndex=function(I,y){return y?I-((y==null?void 0:y.length)||0):-1};
_.L.onKeydown=function(I){var y=_.r4(I)||[];if(!rsb(y))if(I.code==="ArrowUp")I.preventDefault(),this.handlePrevButtonClick();else if(I.code==="ArrowDown")I.preventDefault(),this.handleNextButtonClick();else if(I.code==="KeyM")this.toggleMuteUnmuteVideo();else if(I.code==="KeyK"||I.code==="Space")this.togglePlayPauseVideo();else if((I.code==="KeyA"||I.code==="ArrowLeft")&&_.l("web_shorts_keyboard_enable_seek_shortcuts")){var D;(D=this.player)==null||D.seekBy(-5)}else if((I.code==="KeyD"||I.code===
"ArrowRight")&&_.l("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var F;(F=this.player)==null||F.seekBy(5)}};
_.L.onServiceRequestCompleted=function(I,y){I=y.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,I.continuationEndpoint||I.prevContinuationEndpoint)this.reelWatchSequenceResponse=I}else I.continuationEndpoint&&I.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:I.entries,continuationEndpoint:I.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=I):I.prevContinuationEndpoint&&
I.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:I.prevEntries,prevContinuationEndpoint:I.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.L.handleEngagementPanelVisibilityChanged=function(I,y){var D=_.nR().resolve(_.yR);if(I&&D){var F=this.getPanelIdentifier(I);if(y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==F){D.hidePanel({identifier:this.activePanel});var R;this.activePanel=((R=I.identifier)==null?void 0:R.tag)||I.panelIdentifier}else this.isPersistentPanelActive=!0,_.oq().dispatch(BXa(!0)),this.anchoredPanelActive=!0,this.activePanel=F;else y==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===F&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.oq().dispatch(BXa(!1)))}};
_.L.handlePanelScrimClick=function(){var I=_.nR().resolve(_.yR);this.activePanel&&(I.hidePanel({identifier:this.activePanel}),_.oq().dispatch(BXa(!1)))};
_.L.getShortsLoopSetting=function(){var I,y,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return _.l("kevlar_shorts_auto_advance")?O.yield(_.DI.getInstance(),2):O.return(!0);case 2:return(I=O.yieldResult)?O.yield(I.get("sfvles"),3):O.return(!0);case 3:return D=(y=O.yieldResult)!=null?y:!1,O.yield(I.get("sfvle"),4);case 4:return R=(F=O.yieldResult)!=null?F:!0,D?O.return(R):O.return(!0)}})};
_.L.handleSignalActionToggleLoopShortsOff=function(){var I=this,y,D,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!I.player)return R.return();I.player.setLoopVideo(!1);y=_.W4();_.W0(y,I.loopToggleOffVe);return R.yield(_.DI.getInstance(),2);case 2:return(D=R.yieldResult)?R.yield(D.set("sfvle",!1),3):R.return();case 3:return R.yield(D.set("sfvles",!0),4);case 4:F=_.a1(),_.cg(0,203,!1),_.cg(0,204,!0),F.save(),_.Cj(R)}})};
_.L.handleSignalActionToggleLoopShortsOn=function(){var I=this,y,D,F;return _.S(function(R){switch(R.nextAddress){case 1:if(!I.player)return R.return();I.player.setLoopVideo(!0);y=_.W4();_.W0(y,I.loopToggleOnVe);return R.yield(_.DI.getInstance(),2);case 2:return(D=R.yieldResult)?R.yield(D.set("sfvle",!0),3):R.return();case 3:return R.yield(D.set("sfvles",!0),4);case 4:F=_.a1(),_.cg(0,203,!0),_.cg(0,204,!0),F.save(),_.Cj(R)}})};
_.L.handleSignalActionToggleCinematicShortsOn=function(){Dlg(!0);var I;(I=this.JSC$22040_cinematicController)==null||sEC(I,!0);_.W0(_.W4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.L.handleSignalActionToggleCinematicShortsOff=function(){Dlg(!1);var I;(I=this.JSC$22040_cinematicController)==null||sEC(I,!1);_.W0(_.W4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.L.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.L.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.L.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var I=this.overlayContainer.querySelector("#experiment-overlay");I&&_.w2.addLowPriorityJob(function(){I.style.display="unset"},100)}else if(this.overlayContainer){var y;
((y=this.playerElement.getPlayer())==null?void 0:y.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.L.getCurrentShort=function(){if(this.currentEndpoint){var I=this.currentEndpoint;if(this.isNonVideoContentCommand(I)){var y=_.u(I,_.Jz);return{reelNonVideoContentRenderer:_.u(y==null?void 0:y.renderer,_.v0),command:I}}if(this.data){var D;y=(D=_.u(this.currentEndpoint,_.WF))==null?void 0:D.thumbnail;var F;D=(F=this.data.overlay)==null?void 0:F.reelPlayerOverlayRenderer;_.nR().resolve(_.WY);I=this.data;var R,O;F=(R=I.overlay)==null?void 0:(O=R.shortsAdsRenderer)==null?void 0:O.adSlots;if(F!==void 0)F.length===
0?(_.wv("Shorts ads returned no ad slots."),I=void 0):(F.length>1&&_.wv("Shorts ads has more than one ad slots."),I=_.u(F[0],_.zPf));else{var w,v;I=_.u((w=I.overlay)==null?void 0:(v=w.shortsAdsRenderer)==null?void 0:v.overlay,_.zPf)}w=I;I=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.u(this.currentEndpoint,_.WF),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var P;return{reelPlayerOverlayRenderer:D,thumbnail:y,command:I,adsOverlay:w,
videoId:(P=_.u(this.currentEndpoint,_.WF))==null?void 0:P.videoId}}}};
_.L.created=function(){var I=this;this.scrollToVideoThrottle=new _.n4(function(y,D){D=D===void 0?"smooth":D;var F;(F=I.getActiveReelVideo(y))==null||F.scrollIntoView({behavior:D,block:"nearest",inline:I.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.nR().resolve(_.WY);this.maybeCreateIntersectionObserver()};
_.L.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.L.attached=function(){var I=this;_.nR().resolve(_.WY).registerRootElement(this);this.pageScrollElement=_.XB(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.MX(this,this.processResetAction));_.l("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){I.maybeCreateIntersectionObserver();I.scrollToVideoThrottle.fire(I.activeIndex,"instant");I.shortsContainer.style.overflowY=
"scroll"}))};
_.L.calculateSqueezebackPanelSize=function(){var I=this,y=window.innerWidth-456-(window.innerHeight-106)*.5625;_.w2.addLowPriorityJob(function(){y<360?(I.hostElement.style.setProperty("--anchored-panel-width","480px"),_.oq().dispatch(iHe(!0))):(I.hostElement.style.setProperty("--anchored-panel-width",Math.min(y,480)+"px"),_.oq().dispatch(iHe(!1)))})};
_.L.detached=function(){var I=_.nR().resolve(_.WY);I.rootElement=void 0;var y;(y=I.unsubscribeFromStore)==null||y.call(I);I.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.MX(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.L.onResizeFinished=function(I,y){var D=this,F=new ResizeObserver(function(){D.shortsContainer.style.overflowY="hidden";_.w2.addLowPriorityJob(function(){y()},100)});
F.observe(I);return F};
_.L.resetDocumentScrollTop=function(){var I,y;if((I=document)==null?0:(y=I.scrollingElement)==null?0:y.scrollTop)document.scrollingElement.scrollTop=0};
_.L.loadPage_=function(I){var y=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),I){var D;if((D=_.u(this.currentEndpoint,_.WF))==null?0:D.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=I;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){y.isPlayerStarted&&
(y.handleOnPlaybackCommand(),y.afterPlayerStarted=function(){})};
this.registerPanel(I)}};
_.L.afterPlayerStarted=function(){};
_.L.handleOnPlaybackCommand=function(){if(_.l("web_shorts_comment_stickers")&&this.isPlayerStarted){var I,y=(I=_.u(this.currentEndpoint,_.WF))==null?void 0:I.onPlaybackCommand;y&&this.ytComponentBehavior.resolveCommand(y)}};
_.L.maybeCreateIntersectionObserver=function(){var I=this,y=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==y){this.intersectionObserverThreshold=y;var D={rootMargin:"0px",threshold:y},F;(F=this.intersectionObserver)==null||F.disconnect();this.intersectionObserver=new IntersectionObserver(function(R){R=_.J(R);for(var O=R.next();!O.done;O=R.next())if(O=O.value,O.intersectionRatio>y){O=Number(O.target.id);if(isNaN(O))break;if(O===I.index)break;
_.V1W();I.loadVideo(O);_.ge("r_vtc")}},D);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.L.observeShorts=function(){var I,y,D,F=this.enableShortsSequenceRefactorUnify?((I=this.shortsContentList)==null?void 0:I.length)||0:(((y=this.shortsProcessedPrevSequence)==null?void 0:y.length)||0)+(((D=this.shortsProcessedSequence)==null?void 0:D.length)||0);if(this.carouselContainers.length<F&&(this.carouselContainers=[].concat(_.Td(_.XB(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(I=_.J(this.carouselContainers),y=I.next();!y.done;y=
I.next())y=y.value,D=void 0,(D=this.intersectionObserver)==null||D.observe(y);if(!this.enableShortsSequenceRefactorUnify)for(I=_.J(this.carouselContainers),y=I.next();!y.done;y=I.next())y=y.value,D=void 0,(D=this.intersectionObserver)==null||D.observe(y)};
_.L.initCsi=function(){ktg("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var I={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"}},y,D;if((y=this.playerData)==null?0:(D=y.cacheMetadata)==null?0:D.isCacheHit)I.isCacheHit=!0;var F;if(y=(F=_.u(this.currentEndpoint,_.WF))==null?void 0:
F.prefetchTaskId)I.prefetchInfo={taskId:y};_.ek(I)};
_.L.isAd=function(){var I,y;return!!((I=_.u(this.currentEndpoint,_.WF))==null?0:(y=I.adClientParams)==null?0:y.isAd)};
_.L.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.L.getPlayerContainer=function(){var I;return(I=_.XB(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:I.playerContainer};
_.L.onPlayerStateChange=function(I){var y=this;this.isPlayerPaused=I===2;I!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?I===1&&this.index===0&&(this.isPlayerStarted||_.oq().dispatch(Aro(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.oq().dispatch(Aro(!0)));this.player&&!this.player.getLoopVideo()&&_.w2.addLowPriorityJob(function(){y.getShortsLoopSetting().then(function(D){var F;(F=y.player)==null||F.setLoopVideo(D)})});
this.isPlayerPaused&&_.l("web_shorts_paused_state_logging")&&_.wH(_.VO(),[this.reelPlayerPausedStateRendererVe])};
_.L.isShortPlayable=function(){if(_.l("kevlar_playable_short_killswitch"))return!0;var I;return(I=this.playerData)!=null&&I.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.L.setNormalPlaybackSpeed=function(){var I=this,y,D;return _.S(function(F){if(F.nextAddress==1)return F.yield(I.getPlayer().getPlayerPromise(),2);y=F.yieldResult;D=y.getPlaybackRate();D!==1&&(I.storedPlaybackSpeed=D,y.setPlaybackRate(1));_.Cj(F)})};
_.L.restorePlaybackSpeed=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1)return I.storedPlaybackSpeed===null?D.jumpTo(0):D.yield(I.getPlayer().getPlayerPromise(),3);y=D.yieldResult;y.setPlaybackRate(I.storedPlaybackSpeed);I.storedPlaybackSpeed=null;_.Cj(D)})};
_.L.playerDataChanged=function(){var I=this,y,D,F,R,O,w,v,P,K;return _.S(function(r){if(r.nextAddress==1){y=I.getPlayer();I.enableShortsSequenceRefactorUnify||(D=I.intersectionObserver)==null||D.disconnect();if(I.playerData){if(((F=I.playerData.videoDetails)==null?void 0:F.videoId)!==((R=y.getPlayer())==null?void 0:R.getVideoData().video_id)){O={};if(w=_.u(I.currentEndpoint,_.WF))O.watch_endpoint=w,w.endTimeSeconds&&(O.end=w.endTimeSeconds);y.loadVideoWithPlayerResponse(I.playerData,O)}}else return r.return();
return I.player?r.jumpTo(2):r.yield(y.getPlayerPromise(),3)}r.nextAddress!=2&&(I.player=r.yieldResult,I.JSC$22040_playerStateChangeListener=I.onPlayerStateChange.bind(I),I.player.addEventListener("onStateChange",I.JSC$22040_playerStateChangeListener),_.l("kevlar_client_enable_shorts_player_bootstrap")&&_.Lx(),I.scrollToVideoThrottle.fire(I.index),I.movePlayerToVideo(I.index),_.w2.addLowPriorityJob(function(){I.getShortsLoopSetting().then(function(N){var h;(h=I.player)==null||h.setLoopVideo(N)})}),
_.ZfO.resolve(I.player),I.player.syncVolume(),I.getPlayer().focusOnPlayer());
_.w2.addLowPriorityJob(function(){I.observeShorts()},100);
v=I.player.getPlayerState(I.player.getPresentingPlayerType());v!==1||I.isPlayerStarted||_.oq().dispatch(Aro(!0));I.updateBackNavContainerWidth();P=_.u(I.currentEndpoint,_.WF);((K=P)==null?0:K.startTimeSeconds)&&I.player.seekTo(P.startTimeSeconds);if(I.JSC$22040_cinematicController||I.cinematicsInitializeJobId)return r.return();I.cinematicsInitializeJobId=_.w2.addLowPriorityJob(function(){I.initCinematicController();I.cinematicsInitializeJobId=void 0});
_.Cj(r)})};
_.L.onShortUndoDismiss=function(){var I=this,y=Cda().pop();y!==void 0&&(_.YC(this,function(){I.showCardWithIndex(y)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.L.onShortsDismiss=function(I){if(I=I.detail.reelDismissalActionRenderer)(I=_.u(I.onDismissalCompletionRenderer,ouy))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:I}}}),this.scrollAndDismissCard()};
_.L.processReelNonVideoContentDismissalCommand=function(I){var y=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);I=_.u(I,pJo);this.activeDimissalTimeout=setTimeout(function(){y.scrollAndDismissCard()},Number(I==null?void 0:I.delayMs))};
_.L.scrollAndDismissCard=function(){var I=this,y=this.index;Cda().push(y);_.YC(this,function(){var D=I.getPlayableNextIndex();D!==null&&(I.hideCardWithIndex(y),I.scrollToVideoThrottle.fire(D))})};
_.L.hideCardWithIndex=function(I){if(I=this.getActiveReelVideo(I))I.hidden=!0};
_.L.showCardWithIndex=function(I){if(I=this.getActiveReelVideo(I))I.hidden=!1};
_.L.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.L.activeChanged=function(I){_.oq().dispatch(_.Ec({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:I}}));if(I)document.addEventListener("keydown",_.MX(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var y;(y=this.player)==null||y.sendAbandonmentPing()}var D;(D=this.player)==null||D.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.MX(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.L.graftClientVisualElements=function(){if(this.data){var I=_.W4();_.TlM(I,_.Xs({response:this.reelWatchSequenceResponse}));_.aj(I,this.nextReelVe);_.aj(I,this.prevReelVe);_.l("kevlar_shorts_auto_advance")&&(_.aj(I,this.loopToggleOffVe),_.aj(I,this.loopToggleOnVe));_.aj(I,this.ambientModeToggleVe);_.wH(_.VO(),[this.nextReelVe,this.prevReelVe]);_.l("web_shorts_paused_state_logging")&&_.aj(I,this.reelPlayerPausedStateRendererVe)}};
_.L.graftNvcRenderer=function(){var I,y,D,F,R,O,w=this.enableShortsSequenceRefactorUnify?(I=this.shortsContentList)==null?void 0:(y=I[this.index])==null?void 0:y.command:this.index<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(F=D[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:F.command:(R=this.shortsProcessedSequence)==null?void 0:(O=R[this.index])==null?void 0:O.command;if(w&&this.isNonVideoContentCommand(w)){I=_.u(w,_.Jz);var v,P;(I=(v=_.u(I==null?void 0:I.renderer,_.v0))==
null?void 0:(P=v.loggingDirectives)==null?void 0:P.trackingParams)&&_.W4().graftServerVe(I)}};
_.L.setActiveIndex=function(){_.nR().resolve(_.WY).setActiveIndex(this.index)};
_.L.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.L.lazyUpdateMiniplayerData=function(){var I=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.w2.addLowPriorityJob(function(){I.updateMiniplayerData();I.updateMiniplayerDataJobId=void 0}))};
_.L.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.w2.cancelJob(this.updateMiniplayerDataJobId)};
_.L.updateMiniplayerData=function(){var I,y,D,F=_.nR().resolve(_.OI),R={shortsData:this.getCurrentShort(),previousButtonDisabled:!((I=this.prevButtonData)==null||!I.isDisabled),nextButtonDisabled:!((y=this.nextButtonData)==null||!y.isDisabled),playabilityStatus:(D=this.playerData)==null?void 0:D.playabilityStatus};_.ag(F,R)};
_.L.resetPlayerLocation=function(){var I=this.getPlayer();this.initialPlayerContainer&&I.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.L.movePlayerToVideo=function(I,y){var D=this;y=y===void 0?!0:y;var F=this.getActiveReelVideo(I),R=this.getPlayer();if(F){this.overlayContainer?F.appendChild(this.overlayContainer):(this.overlayContainer=_.XB(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,F.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||R.appendTo(this.overlayContainer.playerContainer,void 0,!0));var O;(O=this.player)==null||O.setSize(NaN,NaN);this.isActive||_.w2.addJob(function(){D.isActive=
!0},_.l("web_enable_shorts_no_idle_job")?1:0);
R.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.l("reels_web_disable_rtr_tick")||_.l("reels_web_use_pbs_first_shorts")&&I===0||_.V_("r_tr");this.currentPlayerIndex=I;F.appendChild(this.errorScreenContainer);var w;(w=this.JSC$22040_cinematicController)==null||Iro(w)}else y?_.w2.addLowPriorityJob(function(){D.movePlayerToVideo(D.index,!1)}):Math.random()<=_.kf("web_shorts_error_logging_threshold")&&_.Sb(new _.g6("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:y,
index:I}))};
_.L.getAspectRatio=function(I){return(I==null?0:I.thumbnail)&&Urb(I.thumbnail)?"--ytd-shorts-player-ratio: "+Urb(I.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.L.getBackgroundImage=function(I){if(I!=null&&I.thumbnail)return(I=_.xY(I.thumbnail.thumbnails))?'background-image:url("'+I+'");':"background-color:black;"};
_.L.onPersistentPanelActiveChanged=function(){var I=this.getCurrentShort();if(I&&(I==null?0:I.thumbnail)&&Urb(I.thumbnail)!==.5625){var y;(y=this.player)==null||y.setSize(NaN,NaN)}};
_.L.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.L.moveCinematicsToVideo=function(){var I=_.XB(this.hostElement).querySelector("ytd-reel-video-renderer");(I==null?0:I.cinematicContainer)&&I.cinematicContainer!==this.shortsCinematicContainer.parentElement&&I.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.L.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.L.updatePrevButtonData=function(){var I=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);I?this.prevButtonData=I=Object.assign({},I,{accessibility:{label:_.zC("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.zC("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=I=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.L.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.L.updateNextButtonData=function(){var I=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);I&&(this.nextButtonData=I=Object.assign({},I,{accessibility:{label:_.zC("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.zC("NEXT_VIDEO_LABEL")||""}))};
_.L.getPlayablePreviousIndex=function(){for(var I,y=this.index-1;y>=-(((I=this.prevShortsSequence)==null?void 0:I.length)||0);y--)if(!Cda().includes(y))return y;return null};
_.L.getIndexInSequence=function(I,y){return I.findIndex(function(D){var F;return((F=_.u(D.command,_.WF))==null?void 0:F.videoId)===y})};
_.L.handlePrevButtonClick=function(I){var y=this,D,F;return _.S(function(R){D=y.getPlayablePreviousIndex();if(D===null)return R.return();y.gestureType=((F=I)==null?void 0:F.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";D===0&&(y.hidePreviousButtonImmediately=!0);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.scrollToVideoThrottle.fire(D,"auto")}),R.return();
y.scrollToVideoThrottle.fire(D);_.Cj(R)})};
_.L.getPlayableNextIndex=function(){for(var I,y,D=this.index+1;D<(this.enableShortsSequenceRefactorUnify?(I=this.shortsContentList)==null?void 0:I.length:((y=this.shortsProcessedSequence)==null?void 0:y.length)||0);D++)if(!Cda().includes(D))return D;return null};
_.L.handleNextButtonClick=function(I,y){var D=this,F,R;return _.S(function(O){F=D.getPlayableNextIndex();if(F===null)return O.return();F===1&&(D.showPreviousButtonImmediately=!0);D.gestureType=((R=I)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y&&(D.gestureType=y);if(D.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){D.scrollToVideoThrottle.fire(F,"auto")}),O.return();
D.scrollToVideoThrottle.fire(F);_.Cj(O)})};
_.L.handleReelNavigateCommand=function(I,y,D){(I=_.u(I,nuQ))&&y&&I.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(D)};
_.L.loadVideo=function(I,y){var D=this;y=y===void 0?!1:y;if(I!==this.currentPlayerIndex){_.oq().dispatch(Aro(!1));if(this.isAd()&&!y){var F;(F=this.player)==null||F.notifyShortsAdSwipeEvent()}var R;(R=this.JSC$22040_cinematicController)==null||g2a(R);var O;(O=this.JSC$22040_cinematicController)==null||Z7g(O);F=I>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(F));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var w,v,P,K,r,N;y=this.enableShortsSequenceRefactorUnify?(w=this.shortsContentList)==null?void 0:(v=w[I])==null?void 0:v.command:I<0?(P=this.shortsProcessedPrevSequence)==null?void 0:(K=P[this.shortsProcessedPrevSequence.length+I])==null?void 0:K.command:(r=this.shortsProcessedSequence)==null?void 0:(N=r[I])==null?void 0:N.command;this.index=I;this.gestureType||(this.gestureType=F?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");y&&this.isVideoContentCommand(y)&&(this.ytComponentBehavior.resolveCommand(y,{form:{createScreenConfig:{clickedVisualElement:F?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(y&&this.isNonVideoContentCommand(y)){this.currentEndpoint=y;this.data=void 0;w=_.W4();v=_.u(y,_.Jz);var h,x;(v=(h=_.u(v==null?void 0:v.renderer,_.v0))==null?void 0:(x=h.screenLoggingData)==null?void 0:x.screenVeType)&&_.d7(w,v);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(h=this.getActiveReelVideo(I))&&h.appendChild(this.overlayContainer)}var q,X;h=this.enableShortsSequenceRefactorUnify?((q=this.shortsContentList)==null?NaN:q.length)-4<=I:((X=this.reelWatchSequenceResponse)==null?void 0:X.entries)&&I===this.reelWatchSequenceResponse.entries.length-1;var f;if(((f=this.reelWatchSequenceResponse)==null?0:f.continuationEndpoint)&&h){var m,z,B={contentPlaybackContext:_.X9({},(z=_.u((m=
this.currentEndpoint)==null?void 0:m.commandMetadata,_.nE))==null?void 0:z.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.k1(_.w2,function(){D.ytComponentBehavior.resolveCommand(D.reelWatchSequenceResponse.continuationEndpoint,{form:B})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:B})}var C,H;
I=this.enableShortsSequenceRefactorUnify?!1:I===-(((C=this.reelWatchSequenceResponse)==null?void 0:(H=C.prevEntries)==null?void 0:H.length)||0);var e,T;((e=this.reelWatchSequenceResponse)==null?0:e.prevContinuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.prevEntries)&&I&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.L.setMiniplayerPreview=function(I){I=(I===void 0?0:I)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var y,D,F,R,O=_.nR().resolve(_.OI),w={shortsData:void 0,shortsPreviewThumbnail:I?this.enableShortsSequenceRefactorUnify?(y=this.shortsContentList)==null?void 0:(D=y[I])==null?void 0:D.thumbnail:(F=this.shortsProcessedSequence)==null?void 0:(R=F[I])==null?void 0:R.thumbnail:void 0};_.ag(O,w)};
_.L.updateTitle=function(I){var y,D;I=(I==null?0:I.adSlots)?"":(D=I==null?void 0:(y=I.videoDetails)==null?void 0:y.title)!=null?D:"";_.lj(this.hostElement,"yt-update-title",I)};
_.L.registerPanel=function(I){var y=_.nR().resolve(_.yR);if(y){I=_.J(I.engagementPanels||[]);for(var D=I.next();!D.done;D=I.next()){D=D.value;var F=this.getPanelIdentifier(D.engagementPanelSectionListRenderer),R=void 0,O=void 0;(O=(R=y).registerPanelContent)==null||O.call(R,F,D)}}};
_.L.getPanelIdentifier=function(I){var y;return(I==null?void 0:(y=I.identifier)==null?void 0:y.tag)||(I==null?void 0:I.panelIdentifier)||(I==null?void 0:I.targetId)};
_.L.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.oq().dispatch(Aro(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.oq().dispatch(BXa(!1));var I;(I=this.shortsController)!=null&&(I.dismissedIndices=[]);var y;(y=this.shortsController)!=null&&y.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.nR().resolve(_.OI).close(!0)};
_.L.processAppendReelWatchSequenceContinuationEntriesAction=function(I){var y=this,D;(D=this.intersectionObserver)==null||D.disconnect();I=I.appendReelWatchSequenceContinuationEntriesAction;if(I==null?0:I.entries){var F;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Td(((F=this.reelWatchSequenceResponse)==null?void 0:F.entries)||[]),_.Td(I.entries)),continuationEndpoint:I.continuationEndpoint})}else if(I==null?0:I.prevEntries){var R;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Td(((R=this.reelWatchSequenceResponse)==null?void 0:R.prevEntries)||[]),_.Td(I.prevEntries)),prevContinuationEndpoint:I.prevContinuationEndpoint});_.w2.addLowPriorityJob(function(){y.movePlayerToVideo(y.index);y.scrollToVideoThrottle.fire(y.index,"instant")})}else return;
_.w2.addLowPriorityJob(function(){y.observeShorts()},100)};
_.L.processWatchSequence=function(I){var y=this;return I.map(function(D){D=D.command;if(y.isVideoContentCommand(D)){var F=_.u(D,_.WF);return{reelPlayerOverlayRenderer:_.u(F==null?void 0:F.overlay,_.DTP),thumbnail:F.thumbnail,command:D}}return y.isNonVideoContentCommand(D)?(F=_.u(D,_.Jz),{reelNonVideoContentRenderer:_.u(F==null?void 0:F.renderer,_.v0),command:D}):{command:D}})};
_.L.calculateIntersectionObserverThreshold=function(){var I=_.XB(this.hostElement).querySelector("ytd-reel-video-renderer"),y=1;(I==null?0:I.offsetHeight)&&(I==null?0:I.offsetWidth)&&(y=Math.min(I.offsetHeight,this.shortsContainer.offsetHeight)/I.offsetHeight*(Math.min(I.offsetWidth,this.shortsContainer.offsetWidth)/I.offsetWidth));return Math.round(y*.6*10)/10};
_.L.isVideoContentCommand=function(I){_.nR().resolve(_.WY);return!!_.u(I,_.WF)};
_.L.isNonVideoContentCommand=function(I){_.nR().resolve(_.WY);return!!_.u(I,_.Jz)};
_.L.initCinematicController=function(){var I=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22040_cinematicController=new BO(this.shortsCinematicContainer,this.player);var y,D=_.u((y=this.data)==null?void 0:y.background,E9);VNC(this.JSC$22040_cinematicController,D);sEC(this.JSC$22040_cinematicController,y_G(D));TaR(this.JSC$22040_cinematicController);_.w2.addLowPriorityJob(function(){I.moveCinematicsToVideo()})}};
_.L.handleMiniplayerNavigateShorts=function(I){I==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():I==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.L.handleSignalActionToggleShortsPictureInPicture=function(){if(_.nR().resolve(_.OI).pictureInPictureSupported()){var I=_.nR().resolve(_.WY);if(_.l("web_shorts_pip")){var y=_.nR().resolve(_.OI);I.isShortsPipActive()?y.deactivate():y.isMiniplayerActive()||(_.bW().shortsPipActivation=!0,_.hfT(y))}}else(I=this.player)==null||I.togglePictureInPicture()};
_.mD.Object.defineProperties(AB.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.reelWatchSequenceResponse)!=null&&I.prevEntries)return this.processWatchSequence([].concat(_.Td(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.Td(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.reelWatchSequenceResponse)!=null&&I.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var I=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var y;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((y=this.shortsProcessedSequence)==null?void 0:y.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var D;y=_.u((D=this.firstShortsData)==null?void 0:D.command,_.WF);if(y==null||!y.videoId)return this.shortsProcessedSequence;D=this.getIndexInSequence(this.shortsSequence,
y.videoId);if(D!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=D,_.w2.addLowPriorityJob(function(){I.scrollToVideoThrottle.fire(I.index,"auto");I.movePlayerToVideo(I.index)}));
return[].concat(_.Td(this.shortsSequence))}this.shortsProcessedPrevSequence||_.k1(_.w2,function(){I.observeShorts()},100);
return[this.firstShortsData].concat(_.Td(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var I=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;I&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(I)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var I;return this.index===((I=this.shortsContentList)==null?NaN:I.length)-1}if(this.endOfNextContinuation){var y,D;return this.index===((y=this.reelWatchSequenceResponse)==null?void 0:(D=y.entries)==null?void 0:D.length)}var F;return!((F=this.reelWatchSequenceResponse)==null?0:F.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var I;(I=this.delayedActiveIndexUpdateDebouncer)==null||I.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return this.isShortPlayable()||((y=_.u((I=this.data)==null?void 0:I.watchStatus,_.txg))==null?void 0:(D=y.style)==null?void 0:D.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var I=this,y=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),D;if((this.data||y)&&(((D=this.data)==null?0:D.engagementPanels)||this.isAd()||y)){y=!1;this.activePanel="shorts-comments-panel";var F;D=_.J(((F=this.data)==null?void 0:F.engagementPanels)||[]);for(F=D.next();!F.done;F=D.next())if(this.getPanelIdentifier(F.value.engagementPanelSectionListRenderer)===this.activePanel){y=!0;break}if(this.isPersistentPanelActive){var R=
_.nR().resolve(_.yR);_.w2.addJob(function(){R.showPanel({identifier:I.activePanel,target:null})},_.l("web_enable_shorts_no_idle_job")?1:0,100)}var O;
F=[].concat(_.Td(Object.values(((O=this.data)==null?void 0:O.engagementPanels)||{})));O=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);D=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return O===void 0&&D===void 0||(O==null?0:O.isDisabled)||(D==null?void 0:D.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!y?(y=F==null?void 0:F.findIndex(function(w){var v,P;return((v=w.engagementPanelSectionListRenderer)==null?void 0:(P=v.identifier)==null?void 0:P.tag)==="shorts-comments-panel"}),y===-1||y===void 0||F!=null&&F.splice(y,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.zC("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.zC("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:_.zC("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.zC("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(_.Td(Object.values(F||
{})))):F}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D,F;if((y=this.playerData)==null?0:(D=y.playabilityStatus)==null?0:(F=D.errorScreen)==null?0:F.playerInterstitialRenderer)return _.w2.addLowPriorityJob(function(){I.movePlayerToVideo(I.index)}),this.playerData.playabilityStatus.errorScreen;
var R,O;return((R=this.data)==null?void 0:R.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((O=this.data)==null?0:O.watchStatus)&&_.u(this.data.watchStatus,_.fjW)?(_.w2.addLowPriorityJob(function(){I.movePlayerToVideo(I.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.mD.Object.defineProperties(AB,{template:{configurable:!0,enumerable:!0,get:function(){if(kAG===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);kAG=I}I=kAG;return I}}});
AB.prototype.onNextButtonDataChange=AB.prototype.onNextButtonDataChange;AB.prototype.onPrevButtonDataChange=AB.prototype.onPrevButtonDataChange;AB.prototype.onPersistentPanelActiveChanged=AB.prototype.onPersistentPanelActiveChanged;AB.prototype.lazyUpdateMiniplayerData=AB.prototype.lazyUpdateMiniplayerData;AB.prototype.onShortsPipActiveChanged=AB.prototype.onShortsPipActiveChanged;AB.prototype.setActiveIndex=AB.prototype.setActiveIndex;AB.prototype.graftNvcRenderer=AB.prototype.graftNvcRenderer;
AB.prototype.graftClientVisualElements=AB.prototype.graftClientVisualElements;AB.prototype.onActiveChanged=AB.prototype.onActiveChanged;AB.prototype.onShortsDismiss=AB.prototype.onShortsDismiss;AB.prototype.onShortUndoDismiss=AB.prototype.onShortUndoDismiss;AB.prototype.playerDataChanged=AB.prototype.playerDataChanged;AB.prototype.afterPlayerStarted=AB.prototype.afterPlayerStarted;AB.prototype.unhideCurrentOverlay=AB.prototype.unhideCurrentOverlay;AB.prototype.onServiceRequestCompleted=AB.prototype.onServiceRequestCompleted;
AB.prototype.engagementPanelsChanged=AB.prototype.engagementPanelsChanged;AB.prototype.onFullscreenChange=AB.prototype.onFullscreenChange;AB.prototype.onResize=AB.prototype.onResize;AB.prototype.setShortsContentList=AB.prototype.setShortsContentList;AB.prototype.setFirstShortsData=AB.prototype.setFirstShortsData;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],AB.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(oM.YtPageBehavior),_.A("design:type",Object)],AB.prototype,"ytPageBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],AB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],AB.prototype,"ironResizableBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vy),_.A("design:type",Object)],AB.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],AB.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],AB.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"playerData",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"reelWatchSequenceResponse",void 0);
_.W([_.M(),_.A("design:type",Object)],AB.prototype,"cachedReelWatchSequenceResponse",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"currentEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"nextButtonData",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"prevButtonData",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"isPreviousPageShorts",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"index",void 0);
_.W([_.M(),_.A("design:type",Object)],AB.prototype,"delayedActiveIndex",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"playablePreviousIndex",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"player",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"isPlayerPaused",void 0);_.W([_.M({selector:A91}),_.A("design:type",Object)],AB.prototype,"isPlayerStarted",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"intersectionObserver",void 0);
_.W([_.M(),_.A("design:type",Number)],AB.prototype,"cinematicsInitializeJobId",void 0);_.W([_.M(),_.A("design:type",Number)],AB.prototype,"updateMiniplayerDataJobId",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"fitToVisibleBounds",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"pageSubtype",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],AB.prototype,"enablePreviousContinuation",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"shortsPipEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"isDark",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"shortsViewTransitions",void 0);_.W([_.M({selector:_.u9,reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"isFullscreen",void 0);
_.W([_.M({selector:_.q5,reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"isShortsPipActive",void 0);_.W([_.a0("#shorts-inner-container"),_.A("design:type",HTMLElement)],AB.prototype,"shortsInnerContainer",void 0);_.W([_.a0("#back-nav-button ytd-button-renderer"),_.A("design:type",_.QJ)],AB.prototype,"backNavButton",void 0);_.W([_.a0("#shorts-container"),_.A("design:type",HTMLElement)],AB.prototype,"shortsContainer",void 0);
_.W([JE("error-screen"),_.A("design:type",HTMLElement)],AB.prototype,"errorScreenContainer",void 0);_.W([JE("player"),_.A("design:type",Object)],AB.prototype,"playerElement",void 0);_.W([JE("shorts-cinematic-container"),_.A("design:type",HTMLElement)],AB.prototype,"shortsCinematicContainer",void 0);_.W([JE("initial-player-container"),_.A("design:type",HTMLElement)],AB.prototype,"initialPlayerContainer",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"buttonOverride",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"anchoredPanelActive",void 0);_.W([_.M(),_.A("design:type",String)],AB.prototype,"activePanel",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"isActive",void 0);_.W([_.M({selector:iET,reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"smallScreenPersistentPanel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"isPersistentPanelActive",void 0);
_.W([_.M(),_.A("design:type",Object)],AB.prototype,"smallScreenSqueezeBack",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"enableScrollIntoViewCenter",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"enableFlexibleOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"extractOverlay",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"useAspectRatio",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],AB.prototype,"enableShortsSequenceRefactorUnify",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"continuationRequestPending",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"shortsController",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"panelContainer",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"overlayContainer",void 0);
_.W([_.M(),_.A("design:type",Array)],AB.prototype,"carouselContainers",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"isShortsInitialized",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"firstShortsData",void 0);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"firstShortsDataModel",void 0);_.W([_.M(),_.A("design:type",Array)],AB.prototype,"shortsContentList",void 0);
_.W([_.Y("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"prevShortsSequence",null);_.W([_.Y("data","prevShortsSequence"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"shortsProcessedPrevSequence",null);_.W([_.Y("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"shortsSequence",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"setFirstShortsData",null);_.W([_.ke("reelWatchSequenceResponse","firstShortsData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"setShortsContentList",null);_.W([_.Y("data","shortsSequence","firstShortsData"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"shortsProcessedSequence",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AB.prototype,"isUpArrowHidden",null);_.W([_.M({reflectToAttribute:!0}),_.Y("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AB.prototype,"isDownArrowHidden",null);
_.W([_.M(),_.Y("index"),_.A("design:type",Number),_.A("design:paramtypes",[])],AB.prototype,"activeIndex",null);_.W([_.Y("isShortPlayable","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AB.prototype,"shouldRenderOfflineContent",null);_.W([_.z4("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onResize",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"anchoredEngagementPanels",null);
_.W([_.M(),_.A("design:type",Object)],AB.prototype,"watchWhileEngagementPanels",void 0);_.W([_.ke("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onFullscreenChange",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"engagementPanelsChanged",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],AB.prototype,"onServiceRequestCompleted",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"unhideCurrentOverlay",null);_.W([_.ke("isPlayerStarted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"afterPlayerStarted",null);
_.W([_.Y("playerData","reelWatchSequenceResponse","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],AB.prototype,"errorScreen",null);_.W([_.Y("errorScreen"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AB.prototype,"hasError",null);_.W([_.ke("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],AB.prototype,"playerDataChanged",null);
_.W([_.z4("yt-dismissible-item-undo-feedback"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onShortUndoDismiss",null);_.W([_.z4("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],AB.prototype,"onShortsDismiss",null);_.W([_.Bp("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onActiveChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"graftClientVisualElements",null);_.W([_.ke("currentPlayerIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"graftNvcRenderer",null);_.W([_.ke("index"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"setActiveIndex",null);
_.W([_.ke("isShortsPipActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onShortsPipActiveChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"lazyUpdateMiniplayerData",null);_.W([_.M(),_.A("design:type",Object)],AB.prototype,"onOverlayDensityChanged",void 0);
_.W([_.ke("isPersistentPanelActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onPersistentPanelActiveChanged",null);_.W([_.ke("index","data","isUpArrowHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onPrevButtonDataChange",null);_.W([_.ke("index","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AB.prototype,"onNextButtonDataChange",null);
_.W([_.yd({is:"ytd-shorts"})],AB);var Tsa;var svy;var Vio;var $8=function(){return _.k.apply(this,arguments)||this};
_.E($8,_.k);$8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$8.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],$8);
_.a($8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Vio!==void 0)return Vio;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Vio=I},{mode:1});var Zn8;var gTT;var IvY;var bc=function(){return _.k.apply(this,arguments)||this};
_.E(bc,_.k);bc.prototype.ready=function(){this.initializeDefs()};
bc.prototype.initializeDefs=function(){var I=this.meta.byKey("yt-icons"),y=_.XB(I).querySelector("#star"),D=_.XB(I).querySelector("#star_half");I=_.XB(I).querySelector("#star_border");y&&this.defs.appendChild(y.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0))};
bc.prototype.percentChanged=function(){for(var I=this.rating;I.firstChild;)I.removeChild(I.firstChild);var y=Math.round(this.percent/10);I=Math.floor(y/2);y%=2;var D=5-I-y;this.appendStars("star",I,0);this.appendStars("star_half",y,I);this.appendStars("star_border",D,I+y)};
bc.prototype.appendStars=function(I,y,D){for(var F=0;F<y;F++){var R=(18+this.spacing)*(F+D),O=document.createElementNS("http://www.w3.org/2000/svg","use");CKg(O,"#"+I);O.setAttribute("x",""+R);O.setAttribute("y","0");this.rating.appendChild(O)}};
bc.prototype.percentChanged=bc.prototype.percentChanged;_.W([_.a0("#defs"),_.A("design:type",HTMLElement)],bc.prototype,"defs",void 0);_.W([_.a0("#rating"),_.A("design:type",HTMLElement)],bc.prototype,"rating",void 0);_.W([_.M(),_.A("design:type",Number)],bc.prototype,"percent",void 0);_.W([_.M({value:6}),_.A("design:type",Number)],bc.prototype,"spacing",void 0);_.W([_.M({value:_.el.create("iron-meta",{type:"iconset"})}),_.A("design:type",_.b8)],bc.prototype,"meta",void 0);
_.W([_.ke("percent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bc.prototype,"percentChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-ratings"})],bc);
_.a(bc,"ytd-ratings",function(){if(IvY!==void 0)return IvY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IvY=I},{mode:1});var y6C=function(){return _.k.apply(this,arguments)||this};
_.E(y6C,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],y6C.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],y6C.prototype,"data",void 0);_.W([_.yd({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],y6C);
_.a(y6C,"ytd-offer-review-renderer",function(){if(gTT!==void 0)return gTT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return gTT=I},{mode:1});var HK=function(){var I=_.k.apply(this,arguments)||this;I.badges=[{textBadge:{label:_.Ug("CC")}}];return I};
_.E(HK,_.k);_.L=HK.prototype;_.L.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.L.dataChanged=function(){var I=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(I&&I.commandMetadata&&_.u(I.commandMetadata,_.eJ)&&_.u(I.commandMetadata,_.eJ).fireAutomatically)_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}});else{var y;I&&((y=_.u(I,_.eJ))==null?0:y.fireAutomatically)&&_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})}};
_.L.isEmptyContent=function(I){return this.isStorefrontEntryPointEmpty(I)&&this.shouldHideOfferModule(I)};
_.L.isStorefrontEntryPointEmpty=function(I){return!I||!I.storefrontEntryPoint};
_.L.shouldHideOfferModule=function(I){return!!I.hideVideoDetails};
_.L.isOfferModuleNavigationInactive=function(I){return!I.navigationEndpoint&&!I.serviceEndpoint};
_.L.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
HK.prototype.dataChanged=HK.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],HK.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.A("design:type",Boolean)],HK.prototype,"hidden",void 0);
_.W([_.M(),_.A("design:type",Object)],HK.prototype,"badges",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HK.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],HK);
_.a(HK,"ytd-movie-offer-module-renderer",function(){if(Zn8!==void 0)return Zn8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Zn8=I},{mode:1});var Df1;var FR8=function(){return _.k.apply(this,arguments)||this};
_.E(FR8,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FR8.prototype,"componentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FR8.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],FR8);
_.a(FR8,"ytd-media-masthead-renderer",function(){if(Df1!==void 0)return Df1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Df1=I},{mode:1});var ROQ;_.NK(_.P_e,"course-metadata-view-model",{props:{data:_.rV,isOverlay:_.rV}});var eX=function(){var I=_.k.apply(this,arguments)||this;I.isMetadataVisible=!1;I.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return I};
_.E(eX,_.k);_.L=eX.prototype;
_.L.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"}}}}};
_.L.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.L.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.L.expanderChanged=function(){var I;if((I=this.data)==null?0:I.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.L.isExpandButtonToggled=function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.expandMetadataButton,_.r7))==null?void 0:y.isToggled};
_.L.onVisibilityButtonClick=function(){var I;if((I=this.data)==null?0:I.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.L.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
eX.prototype.expanderChanged=eX.prototype.expanderChanged;eX.prototype.dataChanged=eX.prototype.dataChanged;eX.prototype.descriptionChanged=eX.prototype.descriptionChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q([_.cb.YtActionHandlerBehavior]),_.A("design:type",Object)],eX.prototype,"actionHandlerBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],eX.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],eX.prototype,"isMetadataVisible",void 0);_.W([_.a0("#expander"),_.A("design:type",Object)],eX.prototype,"expander",void 0);_.W([_.ke("data.description"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eX.prototype,"descriptionChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eX.prototype,"dataChanged",null);_.W([_.ke("isMetadataVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eX.prototype,"expanderChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],eX);
_.a(eX,"ytd-tvfilm-offer-module-renderer",function(){if(ROQ!==void 0)return ROQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ROQ=I},{mode:2});var OBZ;var TK=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return I};
_.E(TK,_.k);TK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
TK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
TK.prototype.onThumbnailTap=function(I){this.data&&this.data.serviceEndpoint&&(_.nR().resolve(_.MC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),I.stopPropagation())};
TK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
TK.prototype.dataChanged=TK.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TK.prototype,"rendererBehaviors",void 0);_.W([_.Q([_.cb.YtActionHandlerBehavior]),_.A("design:type",Object)],TK.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TK.prototype,"data",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TK.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],TK);
_.a(TK,"ytd-unlimited-offer-module-renderer",function(){if(OBZ!==void 0)return OBZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return OBZ=I},{mode:1});var LRy;var J6G;var sw=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return I};
_.E(sw,_.k);sw.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
sw.prototype.handleRelatedChipCommand=function(I){I=_.u(I,Fbo);var y=I.contents;y?_.qr(this.hostElement,"yt-item-section-replace-action",[y,I.targetSectionIdentifier]):_.qr(this.hostElement,"yt-item-section-continuation-action",[I.continuationData,I.targetSectionIdentifier])};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],sw.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sw.prototype,"data",void 0);_.W([_.I6({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],sw);
_.a(sw,"yt-related-chip-cloud-renderer",function(){if(J6G===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;LRy===void 0&&(LRy=document.createElement("template"));var F=LRy;D.call(y,F.content.cloneNode(!0),I.content.firstChild);J6G=I}I=J6G;return I},{mode:2});var Vm=function(){var I=_.k.apply(this,arguments)||this;I.isTwoColumns=!0;I.watchFeedBigThumbs=_.l("kevlar_watch_feed_big_thumbs");I.watchFeedBigThumbsOnLockup=_.l("web_watch_next_big_thumbs");I.watchFeedBigThumbsCompactLayout=_.l("web_watch_next_big_thumbs")&&_.l("web_watch_next_big_thumbs_compact_layout");I.watchFeedBigThumbsExpandedLayout=_.l("web_watch_next_big_thumbs")&&_.l("web_watch_next_big_thumbs_expanded_layout");I.watchNextGridHideChips=_.l("kevlar_watch_grid_hide_chips");I.eligibleToSwitchToGrid=
!0;I.disableShortsShelfHeightOverride=_.l("web_shorts_wn_shelf_ratio_tuning");I.isWatchNextGrid=!1;I.reuseComponents=!_.l("kevlar_watch_grid");I.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return I};
_.E(Vm,_.k);_.L=Vm.prototype;
_.L.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:!_.l("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}}};
_.L.getItemsPath=function(){return"data.results"};
_.L.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.L.created=function(){this.ytLazyListBehavior.initialCount=1};
_.L.ready=function(){_.pg(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.L.resultsChanged=function(){if(this.data&&this.data.results){for(var I=this.data.results,y=null,D=null,F=0;F<I.length;F++)I[F].relatedChipCloudRenderer?y=I[F].relatedChipCloudRenderer:I[F].itemSectionRenderer&&(D=I[F].itemSectionRenderer);if(y&&D)for(this.set("data.continuations",[]),I=_.u(y.content,_.PqW).chips,y=0;y<I.length;y++)if(F=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",I[y]),F.loadCached||!F.contents){F.contents=D.contents;break}}};
_.L.dataChanged=function(){var I=this,y;if((y=this.data)!=null&&y.results&&this.hasAllowedInstreamAd(this.playerData)){if(y=this.data.results.filter(function(v){return!!v.promotedSparklesWebRenderer})){for(var D=0;D<y.length;D++){var F=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",y[D]);
if(F)for(var R=0;R<F.length;R++)F[R]&&F[R].baseUrl&&_.Nw(F[R].baseUrl)}this.set("data.results",this.data.results.filter(function(v){return!v.promotedSparklesWebRenderer}))}if(y=this.data.results.filter(function(v){return!!I.getSparklesAd(v)})){y=_.J(y);
for(R=y.next();!R.done;R=y.next())if(F=D=void 0,R=(D=this.getSparklesAd(R.value))==null?void 0:(F=D.errorCommand)==null?void 0:F.loggingUrls)for(D=_.J(R),F=D.next();!F.done;F=D.next())(F=F.value)&&F.baseUrl&&_.Nw(F.baseUrl);var O,w;this.set("data.results",(O=this.data)==null?void 0:(w=O.results)==null?void 0:w.filter(function(v){return!v.adSlotRenderer}))}}};
_.L.getSparklesAd=function(I){var y,D;I=_.u((y=I.adSlotRenderer)==null?void 0:(D=y.fulfillmentContent)==null?void 0:D.fulfilledLayout,_.mj_);return _.u(I==null?void 0:I.renderingContent,FnC)};
_.L.hasAllowedInstreamAd=function(I){I=this.get("adPlacements",I)||[];for(var y=0;y<I.length;y++){var D=this.get("adPlacementRenderer.config.adPlacementConfig",I[y]);if(D&&D.suppressDisplayAd)return!0}return!1};
_.L.computeHideUnlimitedOfferModule=function(I,y){return I&&I.offerModule&&y&&I.offerModule.unlimitedOfferModuleRenderer&&I.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(y)?!0:!1};
_.L.hideUnlimitedOfferModuleChanged=function(){var I=_.XB(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");I&&(I.hidden=this.hideUnlimitedOfferModule)};
_.L.updateLockupContainerTypes=function(I){if(this.eligibleToSwitchToGrid){var y;(y=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||y.forEach(function(D){D.containerType=I})}};
_.L.computeHideTvfilmOfferModule=function(I,y){var D,F;return!!((I==null?0:(D=I.offerModule)==null?0:(F=D.tvfilmOfferModuleRenderer)==null?0:F.clientShouldSuppressIfCompanionAdDisplayed)&&y&&this.hasCompanionAds(y))};
_.L.hideTvfilmOfferModuleChanged=function(){var I=_.XB(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");I&&(I.hidden=this.hideTvfilmOfferModule)};
_.L.hasCompanionAds=function(I){I=this.get("adPlacements",I)||[];for(var y=0;y<I.length;y++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",I[y]))return!0;var D=void 0,F=void 0,R=void 0;if(!_.l("web_watch_top_banner_companion_check_killswitch")&&((D=I[y])==null?0:(F=D.adPlacementRenderer)==null?0:(R=F.renderer)==null?0:R.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.L.hasSuppressedResults=function(I){return I==null?!0:I.filter(function(y){return!y.continuationItemRenderer&&!y.compactPromotedVideoRenderer&&!y.promotedSparklesWebRenderer}).length===0};
_.L.computeShowButton=function(I,y){return this.isWatchNextGrid?I:I||this.hasSuppressedResults(y)};
_.L.showButtonChanged=function(){if(this.isWatchNextGrid){var I=_.XB(this.hostElement).querySelector("ytd-rich-grid-renderer");I&&this.showButton!==null&&(I.continuationShowButton=this.showButton)}else{I=_.XB(this.hostElement).querySelector("yt-next-continuation");var y=_.XB(this.hostElement).querySelector("ytd-continuation-item-renderer"),D=_.XB(this.hostElement).querySelector("ytd-item-section-renderer");I&&(I.showButton=this.showButton);y&&(y.showButton=this.showButton);D&&(D.continuationShowButton=
this.showButton)}};
_.L.continuationTap=function(I){var y;if(((y=this.data)==null?void 0:y.continuations)!=null&&I.target.tagName==="TP-YT-PAPER-BUTTON")for(I=this.data.continuations,y=0;y<I.length;y++)I[y].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(I[y].nextContinuationData||{})};
_.L.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("shown-items-changed",this.shownItems))};
_.mD.Object.defineProperties(Vm.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 I;return!((I=this.shownItems)==null||!I.some(function(y){return!!y.lockupViewModel||y.compactVideoRenderer}))}}});
Vm.prototype.shownItemsChangedForBinding=Vm.prototype.shownItemsChangedForBinding;Vm.prototype.showButtonChanged=Vm.prototype.showButtonChanged;Vm.prototype.hideTvfilmOfferModuleChanged=Vm.prototype.hideTvfilmOfferModuleChanged;Vm.prototype.updateLockupContainerTypes=Vm.prototype.updateLockupContainerTypes;Vm.prototype.hideUnlimitedOfferModuleChanged=Vm.prototype.hideUnlimitedOfferModuleChanged;Vm.prototype.dataChanged=Vm.prototype.dataChanged;Vm.prototype.resultsChanged=Vm.prototype.resultsChanged;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],Vm.prototype,"ytLazyListBehavior",void 0);_.W([_.Q(_.xx.YtNextContinuationBehavior),_.A("design:type",Object)],Vm.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Q(_.ha),_.A("design:type",Object)],Vm.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Vm.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Vm.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Vm.prototype,"playerData",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],Vm.prototype,"autoFill",void 0);_.W([_.M({value:60}),_.A("design:type",Number)],Vm.prototype,"targetFramerate",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"isTwoColumns",void 0);_.W([_.M(),_.A("design:type",Object)],Vm.prototype,"shownItems",void 0);_.W([_.M({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.A("design:type",Boolean)],Vm.prototype,"hideUnlimitedOfferModule",void 0);_.W([_.M({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.A("design:type",Boolean)],Vm.prototype,"hideTvfilmOfferModule",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"watchFeedBigThumbs",void 0);_.W([_.M(),_.A("design:type",Object)],Vm.prototype,"watchFeedBigThumbsOnLockup",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"watchFeedBigThumbsCompactLayout",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"watchFeedBigThumbsExpandedLayout",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"watchNextGridHideChips",void 0);_.W([_.M(),_.A("design:type",Object)],Vm.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"disableShortsShelfHeightOverride",void 0);_.W([_.M({selector:_.Zo,reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"isGridViewEnabled",void 0);
_.W([_.M({selector:_.zKe,reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"isSwatcherooActive",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Vm.prototype,"showMoreButton",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Vm.prototype,"isWatchNextGrid",void 0);_.W([_.M({computed:"computeShowButton(showMoreButton, data.results)"}),_.A("design:type",Boolean)],Vm.prototype,"showButton",void 0);
_.W([_.Bp("data.results.*"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"resultsChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"dataChanged",null);_.W([_.ke("hideUnlimitedOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"hideUnlimitedOfferModuleChanged",null);
_.W([_.Y("isGridViewEnabled","containsLockups","data"),_.M({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],Vm.prototype,"lockupContainerType",null);_.W([_.ke("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],Vm.prototype,"updateLockupContainerTypes",null);
_.W([_.ke("hideTvfilmOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"hideTvfilmOfferModuleChanged",null);_.W([_.ke("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"showButtonChanged",null);_.W([_.ke("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"shownItemsChangedForBinding",null);
_.W([_.Y("shownItems"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vm.prototype,"containsLockups",null);
_.a(Vm,"ytd-watch-next-secondary-results-renderer",function(){if(svy===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);svy=I}I=svy;return I},{mode:1});var wEZ;var Zs=function(){var I=_.k.apply(this,arguments)||this;I.currentPageUrl="";I.baseUrl="";I.isHiddenByUser=null;I.hidden=!1;I.showAboveScrim=!1;I.watchNextGrid=_.l("kevlar_watch_grid");I.modernButtons=_.l("web_modern_buttons");I.roundedContainer=!0;I.noBorder=!1;I.roundBackground=!_.l("live_chat_round_background_killswitch");I.overflowHideChat=_.l("live_chat_overflow_hide_chat");I.forceDarkTheme=!1;I.theaterWatchWhile=!1;I.isListeningForPlayerProgress=!1;I.JSC$22093_playerEvents=new Map;I.isFrameReady=
!1;I.player=null;I.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 I};
_.E(Zs,_.k);_.L=Zs.prototype;_.L.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.qr(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.L.created=function(){var I=this;this.handleIframeEventListener=function(y){I.handleIframeEvent(y)};
this.handleKeyboardEventListener=function(y){I.handleKeyboardEvent(y)};
this.JSC$22093_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22093_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22093_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22093_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22093_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.L.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()};
_.L.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};
_.L.computeBaseUrl=function(I){var y="/live_chat";this.isChatReplay()&&(y="/live_chat_replay");return _.f9(_.Yr(_.QL(_.ob(I),y),null),"").toString()};
_.L.dataChanged=function(){_.l("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.L.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var I=this.url;if(this.isChatReplay()&&this.player){var y=Math.floor(this.player.getProgressState().current*1E3);I=_.hu(_.ob(I),"playerOffsetMs",y.toString()).toString()}y=this.chatframe;try{var D=I==="about:blank"?_.oQP:_.VA(I),F=y.contentDocument.location,R=_.IB(D);R!==void 0&&F.replace(R)}catch(O){y.src=I}}};
_.L.collapsedChanged=function(){_.lj(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.L.handleIframeEvent=function(I){if(I&&this.baseUrl.startsWith(I.origin)&&I.source===this.chatframe.contentWindow&&_.b_(I.data))if(I.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(I);else if(I.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(I.data["yt-show-feedback-dialog"]){var y=_.nR().resolve(_.fR(_.eCg));if(y){var D=I.ports,F;D&&D.length&&(F=function(){D[0].postMessage({})});
I=I.data["yt-show-feedback-dialog"];y.showFeedbackDialog(I.customProductData,I.feedbackContent,F,I.bucket)}}else if(I.data["yt-show-survey"])_.lj(this.hostElement,"yt-show-survey",I.data["yt-show-survey"]);else if(I.data["yt-purchase-membership"])_.nR().resolve(_.MC).resolveCommand(I.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(I.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(I.data["yt-tunnel-out-live-service-request"]);else if(I.data["yt-user-activity"])_.pu();
else if(I.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(I.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(I.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(I.data["yt-open-popup"]);else if(I.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(I.data["yt-log-flow-logging-event-command"]);else if(I.data["yt-hide-live-chat"])this.onShowHideChat();else I.data["yt-report-moderation-state-log"]&&
this.player&&(y={cpn:this.player.getVideoData().cpn},_.Jq("liveChatBeingModerated",y))};
_.L.attachLiveChatResponseVeTrackingParams=function(I){I=_.AC(I);var y=_.VO(),D=_.jF("liveChatRenderer.trackingParams",this.data);y&&D&&_.Oc(y,_.AC(D),I)};
_.L.handleBuyflowMessages=function(I){var y=I.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,D=I.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,F=I.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.NDJ(_.l0(_.UM),y.replace(/-/g,"+").replace(/_/g,"/"),function(R){I.ports[0].postMessage({success:!0,buyFlowResponse:R})},void 0,function(R){I.ports[0].postMessage({success:!1,
error:R&&R.message||"Buyflow rejected without error."})},_.a1().get("hl"),void 0,function(){I.ports[0].postMessage({closed:!0})},D,F)};
_.L.setupPlayerProgressRelay=function(){var I=this;if(!this.isListeningForPlayerProgress){var y=_.hZ();y!=null&&y.getPlayerPromise&&(y.getPlayerPromise().then(function(D){I.playerApiReady(D)}),this.isListeningForPlayerProgress=!0)}};
_.L.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.L.playerApiReady=function(I){this.setPlayer(I)};
_.L.playerProgressHandler=function(){if(this.player){var I=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":I.current})}};
_.L.playerAdStartHandler=function(I){this.postToContentWindow({"yt-player-ad-start":I})};
_.L.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.L.playerStateChangeHandler=function(I){this.postToContentWindow({"yt-player-state-change":I})};
_.L.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22093_playerEvents);I&&(this.player=I,this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$22093_playerEvents),_.lj(this.hostElement,"player-api-ready"))};
_.L.liveChatPageUrl=function(I,y,D,F){return!D||y?"about:blank":D.liveChatRenderer?(y=_.ob(this.currentPageUrl).JSC$10308_queryData_,KWg(y),I=_.ob(I),y.add("continuation",D.liveChatRenderer.continuations[0].reloadContinuationData.continuation),D=_.Jt()==="USER_INTERFACE_THEME_DARK",(F||D)&&y.add("dark_theme","true"),_.Yr(I,y),F=_.ob(I.toString()),D=F.JSC$10308_queryData_,"SESSION_INDEX"in _.SF&&(D.add("authuser",_.Pi("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.SF&&D.add("pageId",_.Pi("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.SF&&D.add("sdc",_.Pi("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),F.toString()):""};
_.L.isCollapsed=function(I,y){return y!==null?y:this.isChatReplay()||I&&I.conversationBarRenderer&&I.conversationBarRenderer.availabilityMessage?!0:I?I.liveChatRenderer?I.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.l("live_chat_hide_premiere_replay_message")||I.conversationBarRenderer&&I.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.L.isHidden=function(I,y,D){var F=y&&y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage,R=y&&y.liveChatRenderer&&y.liveChatRenderer.showHideButton,O=y&&y.liveChatRenderer&&y.liveChatRenderer.showButton;return D&&I&&!F&&!O||!D&&I&&!F&&!R?!0:y&&y.liveChatRenderer&&y.liveChatRenderer.initialDisplayState?y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.L.computeButtonOverride=function(I,y){if(I&&y)return{type:"outline"}};
_.L.setCollapsedState=function(I){_.u(I,_.khM)&&((this.isHiddenByUser=!!_.u(I,_.khM).collapsed)||_.uj(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.L.forwardReduxActionToIframe=function(I){this.postToContentWindow({"yt-live-chat-forward-redux-action":I})};
_.L.onLoopRangeChange=function(I){this.showAboveScrim=!(I==null||!I.postId)};
_.L.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.L.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.L.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.L.sendDarkThemePostMessage=function(I){this.postToContentWindow({"yt-live-chat-set-dark-theme":I})};
_.L.onLiveChatBuyFlowCallback=function(I){this.postToContentWindow({"yt-live-chat-buy-flow-callback":I})};
_.L.handleKeyboardEvent=function(I){(0,_.e$.containsValue)(eIa,I.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:I.type,keyCode:I.keyCode}})};
_.L.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.L.postToContentWindow=function(I){if(this.isFrameReady)try{var y=window.location.protocol+"//"+window.location.host,D;(D=this.chatframe)!=null&&D.contentWindow?this.chatframe.contentWindow.postMessage(I,y):_.tq(new _.g6("Tried posting a message to an iframe with no content window",I))}catch(F){_.vu(F)}};
_.L.shouldHideChatFrame=function(I){return I&&_.l("hide_live_chat_button_when_collapsed")};
_.mD.Object.defineProperties(Zs.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.l("live_chat_overflow_hide_chat")||_.l("web_watch_chat_hide_button_killswitch"))return _.l("live_chat_overflow_hide_chat");var I,y,D,F;return!!((I=this.data)==null?0:(y=I.liveChatRenderer)==null?0:(D=y.header)==null?0:(F=D.liveChatHeaderRenderer)==null?0:F.collapseButton)}}});
Zs.prototype.collapsedChanged=Zs.prototype.collapsedChanged;Zs.prototype.urlChanged=Zs.prototype.urlChanged;Zs.prototype.dataChanged=Zs.prototype.dataChanged;Zs.prototype.onShowHideChat=Zs.prototype.onShowHideChat;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Zs.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zs.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.NG.YtPlayerListenerBehavior),_.A("design:type",_.hl)],Zs.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],Zs.prototype,"ytOpenPopupBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zs.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Zs.prototype,"currentPageUrl",void 0);
_.W([_.M({computed:"computeBaseUrl(currentPageUrl,data)"}),_.A("design:type",Object)],Zs.prototype,"baseUrl",void 0);_.W([_.M({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.A("design:type",String)],Zs.prototype,"url",void 0);_.W([_.M(),_.A("design:type",Object)],Zs.prototype,"isHiddenByUser",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.A("design:type",Object)],Zs.prototype,"hidden",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.A("design:type",Boolean)],Zs.prototype,"collapsed",void 0);_.W([_.M({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.A("design:type",Boolean)],Zs.prototype,"hideChatFrame",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"showAboveScrim",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"watchNextGrid",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zs.prototype,"modernButtons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"roundedContainer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"noBorder",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zs.prototype,"roundBackground",void 0);
_.W([_.M({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.A("design:type",Object)],Zs.prototype,"toggleButtonOverride",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Zs.prototype,"overflowHideChat",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"forceDarkTheme",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zs.prototype,"enableShowWithoutHideChatButton",null);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Zs.prototype,"theaterWatchWhile",void 0);_.W([_.a0("#chatframe"),_.A("design:type",HTMLIFrameElement)],Zs.prototype,"chatframe",void 0);_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"onShowHideChat",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"dataChanged",null);
_.W([_.ke("url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"urlChanged",null);_.W([_.ke("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zs.prototype,"collapsedChanged",null);_.W([_.yd({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Zs);
_.a(Zs,"ytd-live-chat-frame",function(){if(wEZ!==void 0)return wEZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return wEZ=I},{mode:1});var vL1;var gL=function(){var I=_.k.apply(this,arguments)||this;I.lastRenderedPanelIds=new Set;I.visiblePanels=[];I.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return I};
_.E(gL,_.k);_.L=gL.prototype;_.L.dataChanged=function(){if(this.data){for(var I=[],y=_.J(this.data),D=y.next();!D.done;D=y.next()){D=D.value;var F=void 0,R=void 0,O=(F=D)==null?void 0:(R=F.engagementPanelSectionListRenderer)==null?void 0:R.visibility;R=F=void 0;((F=D)==null?0:(R=F.engagementPanelSectionListRenderer)==null?0:R.targetId)&&O!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&I.push(D)}this.visiblePanels=I}else this.visiblePanels=[]};
_.L.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}}};
_.L.withoutVisiblePanelById=function(I){return this.visiblePanels.filter(function(y){var D;return((D=y.engagementPanelSectionListRenderer)==null?void 0:D.targetId)!==I})};
_.L.onYtChangeEngagementPanelVisibilityAction=function(I){var y=this,D=_.u(I,_.dnM);if(this.data&&(D==null?0:D.targetId)&&(D==null?0:D.visibility)){var F,R=(F=this.data.find(function(w){var v;return((v=w.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===D.targetId}))==null?void 0:F.engagementPanelSectionListRenderer;
if(R){var O=this.withoutVisiblePanelById(D.targetId);D.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(I=this.data.find(function(w){var v;return((v=w.engagementPanelSectionListRenderer)==null?void 0:v.targetId)===D.targetId}))&&(O=[I].concat(_.Td(O)));
this.hideDelayMs&&D.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&O.length===0?_.w2.addJob(function(){R.visibility=D.visibility;y.visiblePanels=O},10,this.hideDelayMs):(R.visibility=D.visibility,this.visiblePanels=O);
_.qr(this.hostElement,"yt-engagement-panels-visible-changed",[O])}}};
_.L.onRendererstamperFinished=function(){var I=new Set(this.visiblePanels.map(function(y){var D;return(D=y.engagementPanelSectionListRenderer)==null?void 0:D.targetId}));
this.handlePanelVisibilityChange(I,this.lastRenderedPanelIds);this.lastRenderedPanelIds=I};
_.L.handlePanelVisibilityChange=function(I,y){I=I===void 0?new Set:I;y=y===void 0?new Set:y;if(this.data)for(var D=_.J(this.data),F=D.next();!F.done;F=D.next()){F=F.value;var R=void 0,O=void 0,w=(R=F)==null?void 0:(O=R.engagementPanelSectionListRenderer)==null?void 0:O.targetId;if(w&&(R=y.has(w),O=I.has(w),w=void 0,!R&&O?(O=R=void 0,w=(R=F)==null?void 0:(O=R.engagementPanelSectionListRenderer)==null?void 0:O.onShowCommands):R&&!O&&(O=R=void 0,w=(R=F)==null?void 0:(O=R.engagementPanelSectionListRenderer)==
null?void 0:O.onHideCommands),w))for(F=_.J(w),w=F.next();!w.done;w=F.next())this.ytComponentBehavior.resolveCommand(w.value)}};
gL.prototype.onRendererstamperFinished=gL.prototype.onRendererstamperFinished;gL.prototype.dataChanged=gL.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],gL.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],gL.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gL.prototype,"lastRenderedPanelIds",void 0);_.W([_.M(),_.A("design:type",Number)],gL.prototype,"hideDelayMs",void 0);_.W([_.M(),_.A("design:type",Array)],gL.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],gL.prototype,"visiblePanels",void 0);_.W([_.M(),_.A("design:type",Boolean)],gL.prototype,"isWatchWhilePanel",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gL.prototype,"dataChanged",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gL.prototype,"onRendererstamperFinished",null);_.W([_.yd({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],gL);
_.a(gL,"ytd-watch-engagement-panels",function(){if(vL1!==void 0)return vL1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return vL1=I},{mode:1});var SiY;var thZ;var Px1=function(){return _.k.apply(this,arguments)||this};
_.E(Px1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Px1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Px1.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Px1);
_.a(Px1,"ytd-comments-entry-point-message-renderer",function(){if(thZ!==void 0)return thZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return thZ=I},{mode:1});var KRT;var Iv=function(){return _.k.apply(this,arguments)||this};
_.E(Iv,_.k);_.mD.Object.defineProperties(Iv.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.teaserAvatar)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Iv.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Iv.prototype,"hasAvatar",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Iv);
_.a(Iv,"ytd-comments-entry-point-teaser-renderer",function(){if(KRT!==void 0)return KRT;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return KRT=I},{mode:1});var UfC;var r6b=function(){return _.k.apply(this,arguments)||this};
_.E(r6b,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],r6b.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],r6b.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],r6b);
_.a(r6b,"ytd-comments-simplebox-renderer",function(){if(UfC!==void 0)return UfC;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return UfC=I},{mode:1});var yT=function(){var I=_.k.apply(this,arguments)||this;I.fullHeight=!_.l("comment_teaser_full_height_kill_switch")&&_.l("kevlar_watch_grid");return I};
_.E(yT,_.k);yT.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"}}}};
yT.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
yT.prototype.onTap=function(){var I=this.tapCommand;I&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(I))};
yT.prototype.onKeyUp=function(I){if(I.keyCode===13)this.onTap()};
_.mD.Object.defineProperties(yT.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.onTap)return this.data.onTap;var y,D;if(((y=this.data)==null?0:y.teaserContent)||((D=this.data)==null?0:D.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)!=null&&I.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
yT.prototype.onKeyUp=yT.prototype.onKeyUp;yT.prototype.onTap=yT.prototype.onTap;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yT.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yT.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],yT.prototype,"fullHeight",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"tapCommand",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"simpleboxPlaceholder",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yT.prototype,"hasSimpleboxPlaceholder",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"simpleboxAvatar",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"teaserContent",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yT.prototype,"hasTeaserContent",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"teaserAvatar",null);
_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yT.prototype,"hasTeaserAvatar",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"messageText",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yT.prototype,"contentRenderer",null);_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yT.prototype,"hasContents",null);
_.W([_.Y("data"),_.M({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yT.prototype,"hasContentRenderer",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yT.prototype,"onTap",null);_.W([_.z4("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[_.ee]),_.A("design:returntype")],yT.prototype,"onKeyUp",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],yT);
_.a(yT,"ytd-comments-entry-point-header-renderer",function(){if(SiY!==void 0)return SiY;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return SiY=I},{mode:1});var j4C;_.NK(_.HOc,"yt-animated-rolling-number",{props:{numberText:_.om,numberValue:_.om,heightPx:_.om,fontSizeMultiplier:_.om,shouldAnimate:_.om,forceRollUp:_.om}});var oLT=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ND1={numberText:"",heightPx:2*oLT,shouldAnimate:!1},Dz=function(){var I=_.k.apply(this,arguments)||this;I.usingAnimatedComponents=!0;I.wasDetailed=!1;I.JSC$22123_browserSupportsAnimation=_.l("web_supports_animations_api");I.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};I.detailed=!1;I.shouldAnimate=!1;I.viewCountProps=ND1;I.dateTextProps=
ND1;I.metadataBadgesInDescription=_.l("web_metadata_badges_in_description");return I};
_.E(Dz,_.k);_.L=Dz.prototype;_.L.attached=function(){var I=this;_.nR().resolve(_.pO).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(y){I.set("videoPrimaryInfoRenderer.subtitle",y)})};
_.L.detached=function(){_.nR().resolve(_.pO).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.L.resetAnimationState=function(){this.shouldAnimate=!1};
_.L.updateDynamicMetadata=function(){if(this.JSC$22123_browserSupportsAnimation){if(!this.detailed){var I,y,D,F;var R=(I=this.videoPrimaryInfoRenderer)==null?void 0:(y=I.viewCount)==null?void 0:(D=y.videoViewCountRenderer)==null?void 0:(F=D.extraShortViewCount)==null?void 0:F.simpleText;var O,w,v,P;var K=(O=this.videoPrimaryInfoRenderer)==null?void 0:(w=O.viewCount)==null?void 0:(v=w.videoViewCountRenderer)==null?void 0:(P=v.shortViewCount)==null?void 0:P.simpleText}if(!K){var r,N,h,x;R=(r=this.videoPrimaryInfoRenderer)==
null?void 0:(N=r.viewCount)==null?void 0:(h=N.videoViewCountRenderer)==null?void 0:(x=h.unlabeledViewCountValue)==null?void 0:x.simpleText;var q,X,f,m;K=(q=this.videoPrimaryInfoRenderer)==null?void 0:(X=q.viewCount)==null?void 0:(f=X.videoViewCountRenderer)==null?void 0:(m=f.viewCount)==null?void 0:m.simpleText}var z,B,C;I=Number((z=this.videoPrimaryInfoRenderer)==null?void 0:(B=z.viewCount)==null?void 0:(C=B.videoViewCountRenderer)==null?void 0:C.originalViewCount);var H,e;z=(H=this.videoPrimaryInfoRenderer)==
null?void 0:(e=H.relativeDateText)==null?void 0:e.simpleText;var T;H=!((T=this.videoPrimaryInfoRenderer)==null||!T.relativeDateText);if(R&&K&&I&&(z||!H)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;T=K.split(new RegExp("("+R+")"));R=_.Ug(T[0]);var L5;K={numberText:(L5=T[1])!=null?L5:"",numberValue:I,heightPx:2*oLT,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var vH;L5=((vH=T[2])!=null?vH:"")+"  ";this.setViewCount(K,R,_.Ug(L5));if(!this.detailed&&
H){R=z.split(/(\d+)/);vH=_.Ug(R[0]);var u_;L5={numberText:(u_=R[1])!=null?u_:"",heightPx:2*oLT,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var jW;u_=((jW=R[2])!=null?jW:"")+"  ";this.setDateText(L5,vH,_.Ug(u_))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.L.setViewCount=function(I,y,D){_.rY(y)!==_.rY(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=y);this.viewCountProps.numberText!==(I==null?void 0:I.numberText)&&(this.viewCountProps=I||ND1);_.rY(D)!==_.rY(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=D)};
_.L.setDateText=function(I,y,D){_.rY(y)!==_.rY(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=y);this.dateTextProps.numberText!==(I==null?void 0:I.numberText)&&(this.dateTextProps=I||ND1);_.rY(D)!==_.rY(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=D)};
_.L.onYtUpdateViewershipAction=function(I){this.videoPrimaryInfoRenderer&&(_.u(I,DZT).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.u(I,DZT).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.u(I,DZT).viewCount)))};
_.L.onYtUpdateDateTextAction=function(I){if(this.videoPrimaryInfoRenderer){I=_.u(I,Ixy).dateText;this.shouldAnimate=!0;var y;((y=this.videoPrimaryInfoRenderer)==null?0:y.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",I):this.set("videoPrimaryInfoRenderer.dateText",I)}};
_.mD.Object.defineProperties(Dz.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return mva(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.rY(mva(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.rY(this.viewCountPreNumberText),this.viewCountProps.numberText,_.rY(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.rY(this.dateTextPreNumberText),this.dateTextProps.numberText,_.rY(this.dateTextPostNumberText)].join("")}}});
Dz.prototype.updateDynamicMetadata=Dz.prototype.updateDynamicMetadata;Dz.prototype.resetAnimationState=Dz.prototype.resetAnimationState;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dz.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"detailed",void 0);_.W([_.M(),_.A("design:type",Object)],Dz.prototype,"shouldAnimate",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"viewCountPreNumberText",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"viewCountProps",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"viewCountPostNumberText",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"dateTextPreNumberText",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"dateTextProps",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"dateTextPostNumberText",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Dz.prototype,"metadataBadgesInDescription",void 0);_.W([_.Y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dz.prototype,"infoText",null);
_.W([_.Y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.A("design:type",String),_.A("design:paramtypes",[])],Dz.prototype,"descriptionInfoTooltipText",null);_.W([_.Y("detailed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Dz.prototype,"showDescriptionInfoTooltip",null);
_.W([_.Y("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],Dz.prototype,"animatedViewCountAccessibilityLabel",null);_.W([_.Y("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],Dz.prototype,"animatedDateTextAccessibilityLabel",null);
_.W([_.ke("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dz.prototype,"resetAnimationState",null);_.W([_.ke("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dz.prototype,"updateDynamicMetadata",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Dz);
_.a(Dz,"ytd-watch-info-text",function(){if(j4C!==void 0)return j4C;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return j4C=I},{mode:1});var hOa;var xf1="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var lvb=_.d(function(I){var y=I.data;var D=I.setTapCommand;_.wZ(function(){var F=_.yz(y().onTap);D(F)},"CLm0Xe");
return _.t("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF}),_.t("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.t("span",null,function(){return y().simpleboxText})))},"Ek");var uvZ=_.d(function(I){return _.t("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.t(_.U,{cond:function(){return _.u(I.data().avatar,_.gP)},
then:function(y){return _.t(_.LF,{data:y,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.t("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.t(_.jr,{text:function(){return I.data().teaserText}})))},"Fk");var qiR=_.d(function(I){var y=I.data;var D=I.setTapCommand;_.wZ(function(){var F=_.yz(y().onTap);D(F)},"qxjCCd");
return _.t("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.t(_.aP,{data:function(){return y().teasers}},{commentsEntryPointTeaserViewModel:uvZ}))},"Hk");var ELY=_.d(function(I){var y=I.data;var D=I.setTapCommand;_.wZ(function(){var F=_.yz(y().onTap);D(F)},"CRZByf");
return _.t("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.t(_.jr,{text:function(){return y().messageText}}))},"Jk");var GDo=_.d(function(I){var y=I.data;var D=I.setTapCommand;var F=I.isDisabled;_.wZ(function(){var R=(F==null?0:F())?void 0:_.yz(y().onTap);D(R)},"GZxRqd");
return _.t("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.t(_.mj,{icon:function(){return y().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.t(_.U,{cond:function(){return y().image},
then:function(R){return _.t(_.UE,{data:R,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.t(_.jr,{text:function(){return y().text},
className:function(){return y().image||y().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.t(_.aP,{data:function(){return y().button}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:F==null?void 0:F()}}})}}))},"Lk");var XEo=_.d(function(I){var y=I.data;var D=I.itemIndex;var F=I.selectedIndex;var R=I.indexUpdatedCallback;var O=I.observer;I=I.title;var w=_.DF("yt-carousel-item-view-model",function(N){O&&O().observe(N)}),v=function(N){D()===F()&&R(N)},P=_.dV(XgY),K=_.dV(_.a9q),r=function(){var N,h,x,q,X;
return((N=y())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!P()||((h=y())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((x=K())==null?void 0:x.includes("PAposts_by_host"))||((q=y())==null?void 0:q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((X=K())==null?void 0:X.includes("PAyouchat"))};
return _.t("yt-carousel-item-view-model",{el:w,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":I},_.t(_.aP,{data:function(){var N,h;return(h=(N=_.u(y().carouselItem,Pz1))==null?void 0:N.textCarousel)!=null?h:y().carouselItem}},{textCarouselItemViewModel:function(N){return _.t(GDo,{data:N.data,
setTapCommand:v,isDisabled:r})},
commentTeaserCarouselItemViewModel:function(N){return _.t(qiR,{data:N.data,setTapCommand:v})},
commentInputBoxCarouselItemViewModel:function(N){return _.t(lvb,{data:N.data,setTapCommand:v})},
commentsEntryPointMessageViewModel:function(N){return _.t(ELY,{data:N.data,setTapCommand:v})}}))},"Mk");var Q4G=_.d(function(I){var y=I.numDots;var D=I.activeIndex;return _.t("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.t(_.gZ,{each:function(){return Array.from({length:y()})},
keyBy:"INDEX"},function(F,R){return _.t("div",{class:function(){var O={};return _.bp("ytCarouselDotsShapeDot",(O.ytCarouselDotsShapeDotActive=R===D(),O))}})}))},"Nk");var Yia=_.d(function(I){var y=I.data;var D=I.handleCarouselNavigation;var F=I.numItems;var R=I.selectedIndex;var O=function(){return{disabled:R()===0}},w=function(){return{disabled:R()===F()-1}};
return _.t("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.t("div",null,_.t("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return y().title}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(v){return _.t("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return y().subtitleAccessibilityText}},v)}})),_.t(_.U,{cond:function(){return F()>1},
then:function(){return _.t("div",{class:"ytCarouselTitleViewModelNavigation"},_.t(Q4G,{numDots:F,activeIndex:R}),_.t(_.U,{cond:function(){return y().previousButton},
then:function(v){return _.t(_.aP,{data:v},{buttonViewModel:function(P){return _.t(_.My,{data:P.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(-1)},
buttonOverrides:O})}})}}),_.t(_.U,{cond:function(){return y().nextButton},
then:function(v){return _.t(_.aP,{data:v},{buttonViewModel:function(P){return _.t(_.My,{data:P.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(1)},
buttonOverrides:w})}})}}))}}))},"Ok");_.NK(_.d(function(I){var y=I.data;var D,F=_.DF("yt-video-metadata-carousel-view-model"),R=_.DF("div",function(H){var e=function(){var T=H.offsetWidth*X(),L5=24*(X()-1);h(T+L5)};
e();window.ResizeObserver&&(D=new ResizeObserver(e),D.observe(H))}),O=_.Pi("HTML_DIR")==="rtl",w=!1,v=0,P=0;
I=_.J(_.$M(0,void 0,"M49TDf"));var K=I.next().value,r=I.next().value;I=_.J(_.$M(0,void 0,"zLIok"));var N=I.next().value,h=I.next().value;I=_.J(_.$M(!1,void 0,"bhelhc"));var x=I.next().value,q=I.next().value,X=function(){var H,e,T;return(T=(H=y())==null?void 0:(e=H.carouselTitles)==null?void 0:e.length)!=null?T:0},f=function(){R.value&&R.value.scrollLeft!==v&&r((O?R.value.scrollLeft<v:R.value.scrollLeft>v)?Math.min(K()+1,X()-1):Math.max(K()-1,0))},m;
window.IntersectionObserver&&(m=new IntersectionObserver(function(H){H=_.J(H);for(var e=H.next();!e.done;e=H.next())if(e.value.isIntersecting){if(w){w=!1;break}f()}else r(P)},{threshold:.2}));
_.wZ(function(){if(R.value){var H=(O?-1:1)*(N()/X()+12)*(x()&&m?P:K());typeof R.value.scrollTo==="function"?R.value.scrollTo({left:H,behavior:"smooth"}):R.value.scrollLeft=H;v=H;P=x()&&m?P:K()}},"s9rbgc");
var z,B=function(H){z=H};
_.tI(function(){var H;(H=D)==null||H.disconnect();var e;(e=m)==null||e.disconnect()});
var C=function(H){H=K()+H;H>=0&&H<X()&&(w=!0,r(H))};
return _.t("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:F,"on:click":_.YY(function(H){if(_.ea(_.HS(H),F.value,["BUTTON".toString()])||!z)return!1;_.nR().resolve(_.MC).resolveCommand(z,{forceClickLogging:!0});return!1}),
"on:touchstart":_.YY(function(){q(!0);return!1}),
"on:touchend":_.YY(function(){m||f();q(!1);return!1}),
hidden:function(){var H,e;return!((H=y())==null?0:(e=H.carouselItems)==null?0:e.length)}},_.t("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.t(_.U,{cond:function(){return y().carouselTitles},
then:function(H){return _.t(_.aP,{data:function(){return H()[x()&&m?P:K()]}},{carouselTitleViewModel:function(e){return _.t(Yia,{data:e.data,
handleCarouselNavigation:C,numItems:X,selectedIndex:K})}})}})),_.t("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:R},_.t("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+N()+"px;"}},_.t(_.U,{cond:function(){return y().carouselItems},
then:function(H){return _.t(_.gZ,{each:H},function(e,T){return _.t(_.aP,{data:function(){return e}},{carouselItemViewModel:function(L5){return _.t(XEo,{data:L5.data,
itemIndex:T,selectedIndex:K,indexUpdatedCallback:B,observer:m,title:function(){a:{var vH=T();var u_,jW=(u_=y())==null?void 0:u_.carouselTitles;if(jW&&(vH=jW[vH])){var xA;vH=(xA=_.u(vH,tDZ))==null?void 0:xA.title;break a}vH=void 0}return vH}})}})})}}))))},"Qk"),"yt-video-metadata-carousel-view-model",{props:{data:_.om}});var fve=_.l("web_action_buttons_update_owner_width")?32:12,FU=function(){var I=_.k.apply(this,arguments)||this;I.isHovering=!1;I.enableColorSampling=_.l("web_delhi_colorful_sd");I.metadataBadgesInDescription=_.l("web_metadata_badges_in_description");I.descriptionCollapsed=!0;I.useFadedScrimDescription=_.l("kevlar_enable_faded_scrim_on_description");I.skinnyMode=!1;I.playlist=!1;I.isDark=document.documentElement.hasAttribute("dark");I.disableVideoOwnerOnTap=_.l("swatchie_video_owner_on_tap_ks");I.swatcherooDelayLoad=
_.l("swatcheroo_enable_ghost_cards");I.primaryMenuWidth=0;I.videoId="";I.titleHeadlineXs=_.l("web_watch_typography_title_headline_xs");I.titleHeadlineS=_.l("web_watch_typography_title_headline_s");I.titleHeadlineM=_.l("web_watch_typography_title_headline_m");I.titleHashtagBlackLinkified=_.l("web_title_hashtag_black_linkified");I.titleHashtagGreyLinkified=_.l("web_title_hashtag_grey_linkified");I.actionButtonsUpdateOwnerWidth=_.l("web_action_buttons_update_owner_width");I.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};I.isFullscreen=!1;I.isTheaterMode=!1;return I};
_.E(FU,_.k);_.L=FU.prototype;_.L.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.L.updateOwnerAndDescriptionPosition=function(){_.l("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),fw(this.bottomRowElement,this.ownerElement)):(fw(this.bottomRowElement,this.descriptionElement),fw(this.topRowElement,this.ownerElement)))};
_.L.titleOnTap=function(I){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||this.handleExpandDescriptionCommands()}};
_.L.videoOwnerOnTap=function(I){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.L.detached=function(){var I=this,y;return _.S(function(D){(y=I.resizeObserver)==null||y.disconnect();_.Cj(D)})};
_.L.maybeAttachResizeObserver=function(){var I=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.n4(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){I.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.L.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var I=this.hostElement.clientWidth,y=Math.max(this.largerItemWrap?400:350,I/2-fve);_.l("web_action_buttons_update_owner_width")&&(y=this.ownerElement.clientWidth+fve);this.actionsOnSeparateLine=this.primaryMenuWidth>I-y?!0:!1}};
_.L.stripAttributedDescription=function(I){return{content:I.content.replace(/[\r\n]{2,}/g,"\n")}};
_.L.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.l("web_modern_buttons"),forceIconButton:!_.l("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:!0,forceIconOnly:!0}},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"}}}};
_.L.videoPrimaryInfoRendererChanged=function(){var I;if((I=this.videoPrimaryInfoRenderer)==null?0:I.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.L.videoSecondaryInfoRendererChanged=function(){var I,y;(I=this.descriptionInlineExpander)==null||(y=I.collapse)==null||y.call(I);this.descriptionExpandClientVe=_.QM(110509);this.descriptionCollapseClientVe=_.QM(110510);I=_.VO();y=_.s_();I&&y&&(_.l("combine_ve_grafts")?(_.aj(_.W4(),this.descriptionExpandClientVe,y),_.aj(_.W4(),this.descriptionCollapseClientVe,y)):_.LC(I,y,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.L.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.L.updateTopLevelIconsOnly=function(){var I=this;_.l("top_level_update_killswitch")||this.menu&&_.w2.addLowPriorityJob(function(){I.menu.topLevelIconsOnly=I.skinnyMode},_.kf("swathceroo_delay_flexible_menu_update",100))};
_.L.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.L.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.L.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.L.onYtTextInlineExpanderExpandedChanged=function(){if(!_.l("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var I,y;(y=(I=this.structuredDescriptionContentRendererElement).resize)==null||y.call(I)}};
_.L.onRenderStamperFinished=function(I){(I==null?void 0:I.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.L.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.L.onYtExpanderLessTapped=function(){var I,y=(I=this.videoSecondaryInfoRenderer)==null?void 0:I.showLessCommand;y&&this.ytComponentBehavior.resolveCommand(y)};
_.L.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.L.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.L.onDescriptionClick=function(I){if(!_.UP(_.r4(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var y;((y=window.getSelection())==null?0:y.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.l("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.L.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.L.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.L.logCollapseClick=function(){var I=_.VO();I&&this.descriptionCollapseClientVe&&_.SI(I,this.descriptionCollapseClientVe)};
_.L.logExpandClick=function(){var I=_.VO();I&&this.descriptionExpandClientVe&&_.SI(I,this.descriptionExpandClientVe)};
_.L.collapseDescription=function(){this.descriptionCollapsed=!0};
_.L.scrollToTopOfContainer=function(){_.uj(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.L.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.L.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.L.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.L.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var I,y;(y=(I=this.descriptionInlineExpander).resize)==null||y.call(I)}else _.tq(new _.g6("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()}};
_.L.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var I,y,D,F,R=_.l("web_action_buttons_update_owner_width")?(D=(I=_.XB(this.menu).querySelector("#button-shape"))==null?void 0:I.clientWidth)!=null?D:0:(F=(y=_.XB(this.menu).querySelector("#button"))==null?void 0:y.clientWidth)!=null?F:0,O,w;I=((w=(O=_.XB(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:O.clientWidth)!=null?w:0)+8+R;var v,P;R=(P=(v=_.XB(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:v.children.length)!=null?P:2;I<=8*R||(this.primaryMenuWidth=I)}};
_.L.onYtUpdateTitleAction=function(I){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.u(I,ybb).title)};
_.L.onYtUpdateDescriptionAction=function(I){if(I=_.u(I,_.clg)){var y,D=!((y=this.videoSecondaryInfoRenderer)==null||!y.attributedDescription);I.isEmpty||!I.description&&!I.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):I.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",I.attributedDescription):I.description&&(D?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Vd(I.description)):this.set("videoSecondaryInfoRenderer.description",I.description))}};
_.L.onYtDarkModeToggledAction=function(I){this.isDark=I};
_.L.registerPanel=function(){if(!_.l("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var I=_.l("web_watch_imax_theater_mode")&&this.isTheaterMode;I=_.l("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||I;var y=_.nR().resolve(_.yR);y&&!I&&y.registerPanel("engagement-panel-structured-description",this)}};
_.L.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.L.parseColorSamplingData=function(){var I;if(_.l("web_delhi_colorful_sd")&&((I=this.structuredDescriptionContentRenderer)==null?0:I.items)&&(I=this.structuredDescriptionContentRenderer.items.find(function(R){return!!_.u(R,Xe)}))){var y,D;
this.hoverColor={lightTheme:(y=_.u(I,Xe))==null?void 0:y.lightThemeColorPalette,darkTheme:(D=_.u(I,Xe))==null?void 0:D.darkThemeColorPalette};var F;this.hoverText=(F=_.u(I,Xe))==null?void 0:F.colorSampledDescriptionBodyText}};
_.L.updateHoverColor=function(){if(_.l("web_delhi_colorful_sd")){var I=this.hoverColor,y={},D;I=(D=this.isDark?I==null?void 0:I.darkTheme:I==null?void 0:I.lightTheme)!=null?D:{};D=_.J(xf1);for(var F=D.next();!F.done;F=D.next()){F=F.value;var R=I[F];y["--yt-saturated-"+_.mQ(F)]=R?_.Z7(R):"initial"}_.pg(this.hostElement,y)}};
_.L.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.L.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.L.showPanel=function(I){this.expandDescription();var y=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;y.resize();var D,F=I==null?void 0:(D=I.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;F?_.w2.addJob(function(){y==null||y.scrollToSection(F)},8):this.scrollToTopOfContainer()};
_.L.isVisible=function(){return!this.descriptionCollapsed};
_.L.getReloadContinuation=function(){};
_.L.hidePanel=function(){};
_.L.updatePanel=function(){};
_.mD.Object.defineProperties(FU.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var I;return _.l("web_delhi_colorful_sd")&&(I=this.structuredDescriptionContentRenderer)!=null&&I.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(y){return!_.u(y,Xe)&&!_.u(y,Lbb)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.structuredDescriptionContentRendererComputed)!=null&&I.items){var y;I=_.J((y=this.structuredDescriptionContentRendererComputed)==null?void 0:y.items);for(y=I.next();!y.done;y=I.next())if(y=_.u(y.value,_.nDg))return y}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoPrimaryInfoRenderer)==null?0:I.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!!((I=this.videoSecondaryInfoRenderer)==null?0:(y=I.owner)==null?0:(D=y.videoOwnerRenderer)==null?0:D.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var I,y;if((I=this.videoSecondaryInfoRenderer)==null?0:(y=I.attributedDescription)==null?0:y.content){var D,F;return(F=this.stripAttributedDescription((D=this.videoSecondaryInfoRenderer)==null?void 0:D.attributedDescription))!=null?F:{runs:[]}}}if(_.l("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var R,O,w,v;return(v=(w=(R=this.videoSecondaryInfoRenderer)==
null?void 0:R.description)!=null?w:(O=this.videoSecondaryInfoRenderer)==null?void 0:O.attributedDescription)!=null?v:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.videoSecondaryInfoRenderer)==null?void 0:I.headerRuns)!=null?y:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.commentsEntryPointHeaderRenderer)==null||!I.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoMetadataCarousel)==null||!I.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.kf("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var I,y,D=Object.assign({},(I=this.videoSecondaryInfoRenderer)==null?void 0:(y=I.metadataRowContainer)==null?void 0:y.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 I,y,D=Object.assign({},(I=this.videoSecondaryInfoRenderer)==null?void 0:(y=I.metadataRowContainer)==null?void 0:y.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 I,y;return!!((I=this.structuredDescriptionContentRendererComputed)==null?0:(y=I.items)==null?0:y.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 I;return(I=this.videoSecondaryInfoRenderer)==null?void 0:I.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.videoSecondaryInfoRenderer)==null?0:(y=I.owner)==null?0:(D=y.videoOwnerRenderer)==null?0:D.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var I,y,D,F;return!!((I=this.videoPrimaryInfoRenderer)==null?0:(y=I.videoActions)==null?0:(D=y.menuRenderer)==null?0:(F=D.flexibleItems)==null?0:F.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Sp(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Sp(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var I=this;if(_.l("web_title_hashtag_grey_delinkified")){var y,D=_.e$.unsafeClone((y=this.videoPrimaryInfoRenderer)==null?void 0:y.title);(y=D==null?void 0:D.runs)&&y.forEach(function(F){if(F==null?0:F.navigationEndpoint)F.textColor=4284506208,I.isDark&&(F.textColor=4289374890)});
return D}return(D=this.videoPrimaryInfoRenderer)==null?void 0:D.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.l("web_title_hashtag_black_delinkified")||_.l("web_title_hashtag_grey_delinkified")}}});
FU.prototype.updateHoverColor=FU.prototype.updateHoverColor;FU.prototype.parseColorSamplingData=FU.prototype.parseColorSamplingData;FU.prototype.resetDescriptionState=FU.prototype.resetDescriptionState;FU.prototype.registerPanel=FU.prototype.registerPanel;FU.prototype.onYtExpanderLessTapped=FU.prototype.onYtExpanderLessTapped;FU.prototype.onYtExpanderMoreTapped=FU.prototype.onYtExpanderMoreTapped;FU.prototype.onRenderStamperFinished=FU.prototype.onRenderStamperFinished;
FU.prototype.onYtTextInlineExpanderExpandedChanged=FU.prototype.onYtTextInlineExpanderExpandedChanged;FU.prototype.onYtTextInlineExpanderCollapseClicked=FU.prototype.onYtTextInlineExpanderCollapseClicked;FU.prototype.onYtTextInlineExpanderExpandClicked=FU.prototype.onYtTextInlineExpanderExpandClicked;FU.prototype.moveActionsElement=FU.prototype.moveActionsElement;FU.prototype.updateTopLevelIconsOnly=FU.prototype.updateTopLevelIconsOnly;FU.prototype.structuredDescriptionContentRendererChanged=FU.prototype.structuredDescriptionContentRendererChanged;
FU.prototype.videoSecondaryInfoRendererChanged=FU.prototype.videoSecondaryInfoRendererChanged;FU.prototype.videoPrimaryInfoRendererChanged=FU.prototype.videoPrimaryInfoRendererChanged;FU.prototype.maybeUpdateActionsOnSeparateLine=FU.prototype.maybeUpdateActionsOnSeparateLine;FU.prototype.updateOwnerAndDescriptionPosition=FU.prototype.updateOwnerAndDescriptionPosition;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],FU.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],FU.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],FU.prototype,"ytdReduxBehavior",void 0);
_.W([_.a0("#above-the-fold"),_.A("design:type",HTMLElement)],FU.prototype,"aboveTheFoldContainer",void 0);_.W([_.a0("#menu ytd-menu-renderer"),_.A("design:type",Object)],FU.prototype,"menu",void 0);_.W([_.a0("#description-inline-expander"),_.A("design:type",Object)],FU.prototype,"descriptionInlineExpander",void 0);_.W([_.a0("#faded-structured-description"),_.A("design:type",Object)],FU.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.W([_.a0("#structured-description"),_.A("design:type",Object)],FU.prototype,"structuredDescriptionContentRendererElement",void 0);_.W([_.a0("#title"),_.A("design:type",HTMLElement)],FU.prototype,"titleElement",void 0);_.W([_.a0("#description"),_.A("design:type",HTMLElement)],FU.prototype,"descriptionElement",void 0);_.W([_.a0("#description-interaction"),_.A("design:type",Object)],FU.prototype,"descriptionInteraction",void 0);
_.W([_.a0("#owner"),_.A("design:type",HTMLElement)],FU.prototype,"ownerElement",void 0);_.W([_.a0("#top-row"),_.A("design:type",HTMLElement)],FU.prototype,"topRowElement",void 0);_.W([_.a0("#bottom-row"),_.A("design:type",HTMLElement)],FU.prototype,"bottomRowElement",void 0);_.W([_.a0("#actions"),_.A("design:type",HTMLElement)],FU.prototype,"actionsElement",void 0);_.W([_.a0("#bottom-actions"),_.A("design:type",HTMLElement)],FU.prototype,"bottomActionsElement",void 0);
_.W([_.a0("#ytd-watch-info-text"),_.A("design:type",Object)],FU.prototype,"watchInfoTextElement",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"videoSecondaryInfoRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.W([_.M(),_.A("design:type",Object)],FU.prototype,"videoMetadataCarousel",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.Y("structuredDescriptionContentRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"structuredDescriptionContentRendererComputed",null);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"videoSummary",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"merchShelf",void 0);
_.W([_.M(),_.A("design:type",Object)],FU.prototype,"infoPanelBelowMetadata",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"hoverColor",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"hoverText",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"isHovering",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"enableColorSampling",void 0);
_.W([_.Y("structuredDescriptionContentRendererComputed"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"productShelf",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"metadataBadgesInDescription",void 0);_.W([_.Y("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"shouldHideBadges",null);
_.W([_.Y("productShelf","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"shouldShowProductShelf",null);_.W([_.M(),_.A("design:type",Boolean)],FU.prototype,"isWatchFlexy",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"descriptionCollapsed",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],FU.prototype,"useFadedScrimDescription",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"skinnyMode",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"largerItemWrap",null);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"playlist",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"clarifyBox",void 0);_.W([_.M(),_.A("design:type",Object)],FU.prototype,"playerAds",void 0);
_.W([_.M(),_.A("design:type",Boolean)],FU.prototype,"isDark",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],FU.prototype,"actionsOnSeparateLine",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"disableVideoOwnerOnTap",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"swatcherooDelayLoad",void 0);_.W([_.M(),_.A("design:type",Boolean)],FU.prototype,"suppressTopLevelMetadataRows",void 0);
_.W([_.M(),_.A("design:type",Object)],FU.prototype,"primaryMenuWidth",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"videoId",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"titleHeadlineXs",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"titleHeadlineS",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"titleHeadlineM",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"titleHashtagBlackLinkified",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"titleHashtagGreyLinkified",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.W([_.Bp("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"updateOwnerAndDescriptionPosition",null);
_.W([_.Bp("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"maybeUpdateActionsOnSeparateLine",null);_.W([_.Y("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"descriptionText",null);
_.W([_.Y("videoSecondaryInfoRenderer.headerRuns"),_.A("design:type",Array),_.A("design:paramtypes",[])],FU.prototype,"headerRuns",null);_.W([_.M({value:!1}),_.Y("commentsEntryPointHeaderRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"hasTeaser",null);_.W([_.M({value:!1,reflectToAttribute:!0}),_.Y("videoMetadataCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"hasTeaserCarousel",null);
_.W([_.M({value:3}),_.Y("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"descriptionMaxLines",null);_.W([_.Y("videoSecondaryInfoRenderer.metadataRowContainer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"collapsibleMetadataRows",null);
_.W([_.Y("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"alwaysVisibleMetadataRows",null);_.W([_.Y("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"hasInlineStructuredDescription",null);
_.W([_.Y("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"showInlineStructuredDescription",null);_.W([_.Y("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"descriptionExpandCommand",null);
_.W([_.Y("videoSecondaryInfoRenderer.owner"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"videoOwnerCommand",null);_.W([_.M({reflectToAttribute:!0}),_.Y("videoPrimaryInfoRenderer.videoActions"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"flexMenuEnabled",null);_.W([_.M({selector:_.Vz,reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"isFullscreen",void 0);
_.W([_.M({selector:_.sE,reflectToAttribute:!0}),_.A("design:type",Object)],FU.prototype,"isTheaterMode",void 0);_.W([_.Y("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"showAttributedStringDescription",null);_.W([_.Y("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"showFormattedStringDescription",null);
_.W([_.Y("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],FU.prototype,"showFadedStructuredDescription",null);_.W([_.Bp("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"videoPrimaryInfoRendererChanged",null);_.W([_.Y("videoPrimaryInfoRenderer.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"videoTitle",null);
_.W([_.Y("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],FU.prototype,"noEndpoints",null);_.W([_.Bp("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"videoSecondaryInfoRendererChanged",null);
_.W([_.ke("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"structuredDescriptionContentRendererChanged",null);_.W([_.ke("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"updateTopLevelIconsOnly",null);
_.W([_.ke("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"moveActionsElement",null);_.W([_.z4("yt-text-inline-expander-expand-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.W([_.z4("yt-text-inline-expander-collapse-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.W([_.z4("yt-text-inline-expander-expanded-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],FU.prototype,"onRenderStamperFinished",null);_.W([_.z4("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"onYtExpanderMoreTapped",null);_.W([_.z4("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"onYtExpanderLessTapped",null);
_.W([_.ke("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"registerPanel",null);_.W([_.ke("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"resetDescriptionState",null);
_.W([_.ke("structuredDescriptionContentRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"parseColorSamplingData",null);_.W([_.ke("hoverColor","isDark"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FU.prototype,"updateHoverColor",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-watch-metadata"})],FU);
_.a(FU,"ytd-watch-metadata",function(){if(hOa!==void 0)return hOa;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return hOa=I},{mode:2});var Rv=function(){var I=_.k.apply(this,arguments)||this;I.hidden=!1;I.errorScreen=null;I.playlistData={};return I};
_.E(Rv,_.k);_.L=Rv.prototype;_.L.getPlayer=function(){return this.ytdPlayer};
_.L.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:xo(["aa","eocs"])}}};
_.L.onActiveChanged=function(){_.oq().dispatch(sca(this.ytPageBehavior.active))};
_.L.playerDataChanged=function(){var I;(I=this.watchController)==null||I.setPlayerResponse(this.playerData)};
_.L.dataChanged=function(){var I;(I=this.watchController)==null||I.setWatchNextResponse(this.data)};
_.L.sizeChanged=function(){var I,y;(y=(I=this.metadata).resize)==null||y.call(I)};
_.L.attached=function(){this.watchController=new VY(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.L.detached=function(){_.rM(this.watchController);this.watchController=void 0};
_.L.getPlayerContainer=function(){return this.playerContainer};
_.L.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.L.provideRenderingData=function(I,y){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=y;break;case "ERROR_SCREEN":this.errorScreen=y!=null?y:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=y;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=y;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=y;break;case "RICH_METADATA":this.richMetadataRowContainer=y;break;case "CLARIFICATION":this.clarificationData=y;break;case "PLAYLIST":this.playlistData=
y!=null?y:{};break;case "MERCH_SHELF":this.merchShelf=y;break;case "TICKET_SHELF":this.ticketShelf=y;break;case "LIMITED_STATE":this.limitedState=y;break;case "DONATION_SHELF":this.donationShelf=y;break;case "ALERTS":this.alerts=y}};
_.mD.Object.defineProperties(Rv.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return!this.hidden&&!!((I=this.data)==null?0:(y=I.contents)==null?0:(D=y.twoColumnWatchNextResults)==null?0:D.conversationBar)}}});
Rv.prototype.sizeChanged=Rv.prototype.sizeChanged;Rv.prototype.dataChanged=Rv.prototype.dataChanged;Rv.prototype.playerDataChanged=Rv.prototype.playerDataChanged;Rv.prototype.onActiveChanged=Rv.prototype.onActiveChanged;_.W([_.Q(oM.YtPageBehavior),_.A("design:type",Object)],Rv.prototype,"ytPageBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Rv.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"playerData",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Rv.prototype,"hidden",void 0);_.W([_.a0("#ytd-player"),_.A("design:type",HTMLElement)],Rv.prototype,"ytdPlayer",void 0);_.W([_.a0("#player-container"),_.A("design:type",HTMLElement)],Rv.prototype,"playerContainer",void 0);_.W([_.a0("#metadata"),_.A("design:type",Object)],Rv.prototype,"metadata",void 0);_.W([_.a0("#playlist"),_.A("design:type",HTMLElement)],Rv.prototype,"playlistPanel",void 0);
_.W([_.M({selector:GCy,reflectToAttribute:!0}),_.A("design:type",Object)],Rv.prototype,"fixie",void 0);_.W([_.M({selector:_.d6q,reflectToAttribute:!0}),_.A("design:type",Object)],Rv.prototype,"singleColumn",void 0);_.W([_.M({selector:function(I){return _.sE(I)&&!_.Vz(I)},
reflectToAttribute:!0}),_.A("design:type",Object)],Rv.prototype,"theater",void 0);_.W([_.M({selector:_.Vz,reflectToAttribute:!0}),_.A("design:type",Object)],Rv.prototype,"fullscreen",void 0);_.W([_.M({selector:EIb}),_.A("design:type",Object)],Rv.prototype,"windowSize",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"singleColumnContents",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"errorScreen",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"playlistData",void 0);
_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"videoSecondaryInfoRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"richMetadataRowContainer",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"clarificationData",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"ticketShelf",void 0);
_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"merchShelf",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"donationShelf",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"limitedState",void 0);_.W([_.M(),_.A("design:type",Object)],Rv.prototype,"alerts",void 0);_.W([_.Y("playlistData"),_.A("design:type",Object),_.A("design:paramtypes",[])],Rv.prototype,"hasPlaylistData",null);
_.W([_.Y("data","hidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Rv.prototype,"hasChat",null);_.W([_.ke("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rv.prototype,"onActiveChanged",null);_.W([_.ke("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rv.prototype,"playerDataChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rv.prototype,"dataChanged",null);_.W([_.ke("windowSize","singleColumn"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rv.prototype,"sizeChanged",null);
_.a(Rv,"ytd-watch-fixie",function(){if(Tsa===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);Tsa=I}I=Tsa;return I},{mode:1});var nLe;var Oe=function(){var I=_.k.apply(this,arguments)||this;I.viewTransitionEnabled=_.l("enable_player_resize_transition");I.smallerChatMinHeight=_.l("live_chat_smaller_min_height");I.isDarkTheme=document.documentElement.hasAttribute("dark");I.defaultCollapsePlaylist=_.l("web_watch_default_collapse_playlist");I.respectAspectRatio=_.l("web_enable_aspect_ratio_fix");I.retroModeReduxValue=!1;I.persistentPanelVisibleValue=!1;return I};
_.E(Oe,_.k);_.L=Oe.prototype;_.L.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.L.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.L.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.L.updateRetroModeReduxValue=function(){_.l("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.L.updatePersistentPanelVisibleValue=function(){_.l("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.L.ready=function(){var I=this,y=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.L.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.L.updateIsTwoColumnsFromBinding=function(I){_.l("web_watch_update_narrow_width_killswitch")||_.oq().dispatch(VVY(!I.detail.value));this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.L.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.L.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.L.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.L.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.L.updateShownItemsFromBinding=function(I){I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value};
_.L.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22146_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22146_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.mD.Object.defineProperties(Oe.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(I=_.u(this.data.pageVisualEffects[y],E9))return y=void 0,(y=I.config)==null?void 0:y.enableInLightTheme;return!1}}});
_.mD.Object.defineProperties(Oe,{template:{configurable:!0,enumerable:!0,get:function(){if(nLe===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);nLe=I}I=nLe;return I}}});
Oe.prototype.updatePersistentPanelVisibleValue=Oe.prototype.updatePersistentPanelVisibleValue;Oe.prototype.updateRetroModeReduxValue=Oe.prototype.updateRetroModeReduxValue;Oe.prototype.updateScrollTopValue=Oe.prototype.updateScrollTopValue;Oe.prototype.updateFullscreenValue=Oe.prototype.updateFullscreenValue;Oe.prototype.updateTheaterValue=Oe.prototype.updateTheaterValue;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);_.W([_.Q(bUg.YtdWatchBehavior),_.A("design:type",Object)],Oe.prototype,"ytdWatchBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Oe.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Oe.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Oe.prototype,"playerData",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Oe.prototype,"viewTransitionEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Oe.prototype,"smallerChatMinHeight",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Oe.prototype,"isDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],Oe.prototype,"defaultCollapsePlaylist",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Oe.prototype,"respectAspectRatio",void 0);
_.W([_.M({selector:_.sE}),_.A("design:type",Object)],Oe.prototype,"theaterValue",void 0);_.W([_.M({selector:_.Vz}),_.A("design:type",Object)],Oe.prototype,"fullscreenValue",void 0);_.W([_.M({selector:w9}),_.A("design:type",Object)],Oe.prototype,"scrollTopValue",void 0);_.W([_.M({selector:_.Iq}),_.A("design:type",Object)],Oe.prototype,"miniplayerIsActive",void 0);_.W([_.M({selector:function(I){return I.watch.isWatchRetroMode}}),
_.A("design:type",Object)],Oe.prototype,"retroModeReduxValue",void 0);_.W([_.M({selector:_.LV.persistentPanelVisibleSelector}),_.A("design:type",Object)],Oe.prototype,"persistentPanelVisibleValue",void 0);_.W([JE("ytd-player"),_.A("design:type",HTMLElement)],Oe.prototype,"ytdPlayer",void 0);_.W([_.a0("#playlist"),_.A("design:type",HTMLElement)],Oe.prototype,"JSC$22146_ytdPlaylistPanelRenderer",void 0);_.W([JE("ytd-comments"),_.A("design:type",HTMLElement)],Oe.prototype,"ytdComments",void 0);
_.W([_.a0("#primary"),_.A("design:type",HTMLElement)],Oe.prototype,"primary",void 0);_.W([_.a0("#secondary"),_.A("design:type",HTMLElement)],Oe.prototype,"secondary",void 0);_.W([_.a0("#player-container"),_.A("design:type",HTMLElement)],Oe.prototype,"playerContainer",void 0);_.W([_.a0("#below"),_.A("design:type",HTMLElement)],Oe.prototype,"below",void 0);_.W([_.a0("#cinematics"),_.A("design:type",HTMLElement)],Oe.prototype,"JSC$22146_cinematics",void 0);
_.W([_.a0("#persistent-panel-container"),_.A("design:type",HTMLElement)],Oe.prototype,"persistentPanelContainer",void 0);_.W([_.ke("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oe.prototype,"updateTheaterValue",null);_.W([_.ke("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oe.prototype,"updateFullscreenValue",null);
_.W([_.ke("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oe.prototype,"updateScrollTopValue",null);_.W([_.ke("retroModeReduxValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oe.prototype,"updateRetroModeReduxValue",null);_.W([_.ke("persistentPanelVisibleValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oe.prototype,"updatePersistentPanelVisibleValue",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Oe.prototype,"cinematicLightTheme",null);_.W([_.yd({is:"ytd-watch-flexy"})],Oe);var pET;var mf1;var MhT=function(){return _.k.apply(this,arguments)||this};
_.E(MhT,_.k);_.W([_.yd({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],MhT);
_.a(MhT,"ytd-ghost-comments-renderer",function(){if(mf1===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);mf1=I}I=mf1;return I},{mode:1});var zOb;var kD8=function(){return _.k.apply(this,arguments)||this};
_.E(kD8,_.k);_.W([_.yd({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],kD8);
_.a(kD8,"ytd-ghost-watch-metadata-renderer",function(){if(zOb===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);zOb=I}I=zOb;return I},{mode:1});var Ln=function(){var I=_.k.apply(this,arguments)||this;I.ghostGridRenderer={rows:6};I.smallerChatMinHeight=_.l("live_chat_smaller_min_height");I.darkerPanels=_.l("web_watch_darker_panels");I.isDarkTheme=document.documentElement.hasAttribute("dark");return I};
_.E(Ln,_.k);_.L=Ln.prototype;_.L.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.L.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.L.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.L.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.L.ready=function(){var I=this,y=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.L.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.L.updateIsTwoColumnsFromBinding=function(I){this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.L.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.L.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.L.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.L.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.L.updateShownItemsFromBinding=function(I){_.l("swatcheroo_direct_use_rich_grid")||(I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value)};
_.L.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22151_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22151_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mD.Object.defineProperties(Ln.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(I=_.u(this.data.pageVisualEffects[y],E9))return y=void 0,(y=I.config)==null?void 0:y.enableInLightTheme;return!1}}});
Ln.prototype.updateMiniplayerIsActiveValue=Ln.prototype.updateMiniplayerIsActiveValue;Ln.prototype.updateScrollTopValue=Ln.prototype.updateScrollTopValue;Ln.prototype.updateFullscreenValue=Ln.prototype.updateFullscreenValue;Ln.prototype.updateTheaterValue=Ln.prototype.updateTheaterValue;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(bUg.YtdWatchBehavior),_.A("design:type",Object)],Ln.prototype,"ytdWatchBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Ln.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ln.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Ln.prototype,"ghostGridRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],Ln.prototype,"playerData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"smallerChatMinHeight",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"darkerPanels",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"isDarkTheme",void 0);_.W([_.M({selector:_.sE}),_.A("design:type",Object)],Ln.prototype,"theaterValue",void 0);_.W([_.M({selector:_.Vz}),_.A("design:type",Object)],Ln.prototype,"fullscreenValue",void 0);_.W([_.M({selector:w9}),_.A("design:type",Object)],Ln.prototype,"scrollTopValue",void 0);
_.W([_.M({selector:_.Iq}),_.A("design:type",Object)],Ln.prototype,"miniplayerIsActiveValue",void 0);_.W([_.a0("#ytd-player"),_.A("design:type",HTMLElement)],Ln.prototype,"ytdPlayer",void 0);_.W([_.a0("#playlist"),_.A("design:type",HTMLElement)],Ln.prototype,"JSC$22151_ytdPlaylistPanelRenderer",void 0);_.W([_.a0("#ytd-comments"),_.A("design:type",HTMLElement)],Ln.prototype,"ytdComments",void 0);_.W([_.a0("#primary"),_.A("design:type",HTMLElement)],Ln.prototype,"primary",void 0);
_.W([_.a0("#secondary"),_.A("design:type",HTMLElement)],Ln.prototype,"secondary",void 0);_.W([_.a0("#player-container"),_.A("design:type",HTMLElement)],Ln.prototype,"playerContainer",void 0);_.W([_.a0("#cinematics"),_.A("design:type",HTMLElement)],Ln.prototype,"JSC$22151_cinematics",void 0);_.W([_.ke("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ln.prototype,"updateTheaterValue",null);
_.W([_.ke("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ln.prototype,"updateFullscreenValue",null);_.W([_.ke("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ln.prototype,"updateScrollTopValue",null);_.W([_.ke("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ln.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ln.prototype,"cinematicLightTheme",null);
_.a(Ln,"ytd-watch-grid",function(){if(pET===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);pET=I}I=pET;return I},{mode:2});var dfy;var JF=function(){var I=_.k.apply(this,arguments)||this;I.flexy=!0;I.learningJourney=!0;I.viewTransitionEnabled=_.l("enable_player_resize_transition");I.smallerChatMinHeight=_.l("live_chat_smaller_min_height");I.isDarkTheme=document.documentElement.hasAttribute("dark");I.theaterLargerPlayer=_.l("web_watch_theater_larger_player");I.defaultCollapsePlaylist=_.l("web_watch_default_collapse_playlist");I.enableCanvasLayout=_.l("web_enable_canvas_on_learning_journey");return I};
_.E(JF,_.k);_.L=JF.prototype;_.L.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.L.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.L.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.L.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.L.ready=function(){var I=this,y=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",y);this.secondary.addEventListener("scroll",y)};
_.L.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.L.updateIsTwoColumnsFromBinding=function(I){_.l("web_watch_update_narrow_width_killswitch")||_.oq().dispatch(VVY(!I.detail.value));this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.L.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.L.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.L.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.L.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.L.updateShownItemsFromBinding=function(I){I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value};
_.L.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22154_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22154_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mD.Object.defineProperties(JF.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 I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var y=0;y<this.data.pageVisualEffects.length;y++)if(I=_.u(this.data.pageVisualEffects[y],E9))return y=void 0,(y=I.config)==null?void 0:y.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.learningJourneyEngagementPanels)==null?void 0:I.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.learningJourneyEngagementPanels)==null?void 0:I.find(function(h){var x;return(h==null?void 0:(x=h.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="learning-journey-engagement-panel"});
if(y){var D,F,R,O,w,v,P,K,r;if(I=(K=((P=(w=((O=y==null?void 0:(D=y.engagementPanelSectionListRenderer)==null?void 0:(F=D.content)==null?void 0:(R=F.sectionListRenderer)==null?void 0:R.contents)!=null?O:[])[0])==null?void 0:(v=w.itemSectionRenderer)==null?void 0:v.contents)!=null?P:[])[0])==null?void 0:(r=K.accordionViewModel)==null?void 0:r.onTitleTap){var N=_.yz(I);if(N)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.M4.instance.resolveCommand(N)}}}}}}});
_.mD.Object.defineProperties(JF,{template:{configurable:!0,enumerable:!0,get:function(){if(dfy===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);dfy=I}I=dfy;return I}}});
JF.prototype.updateMiniplayerIsActiveValue=JF.prototype.updateMiniplayerIsActiveValue;JF.prototype.updateScrollTopValue=JF.prototype.updateScrollTopValue;JF.prototype.updateFullscreenValue=JF.prototype.updateFullscreenValue;JF.prototype.updateTheaterValue=JF.prototype.updateTheaterValue;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(l2a.YtdLearningJourneyWatchBehavior),_.A("design:type",Object)],JF.prototype,"ytdWatchBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],JF.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],JF.prototype,"playerData",void 0);_.W([_.M(),_.A("design:type",Object)],JF.prototype,"browseData",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"flexy",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"learningJourney",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"viewTransitionEnabled",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"smallerChatMinHeight",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"isDarkTheme",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],JF.prototype,"theaterLargerPlayer",void 0);_.W([_.M(),_.A("design:type",Object)],JF.prototype,"defaultCollapsePlaylist",void 0);_.W([_.M(),_.A("design:type",Object)],JF.prototype,"enableCanvasLayout",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("playerData","browseData","enableCanvasLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],JF.prototype,"showBrowseResponse",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("playerData","enableCanvasLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],JF.prototype,"showWatchResponse",null);_.W([_.M({selector:_.sE}),_.A("design:type",Object)],JF.prototype,"theaterValue",void 0);_.W([_.M({selector:_.Vz}),_.A("design:type",Object)],JF.prototype,"fullscreenValue",void 0);_.W([_.M({selector:w9}),_.A("design:type",Object)],JF.prototype,"scrollTopValue",void 0);
_.W([_.M({selector:_.Iq}),_.A("design:type",Object)],JF.prototype,"miniplayerIsActiveValue",void 0);_.W([_.a0("#ytd-plj-player"),_.A("design:type",HTMLElement)],JF.prototype,"ytdPlayer",void 0);_.W([_.a0("#playlist"),_.A("design:type",HTMLElement)],JF.prototype,"JSC$22154_ytdPlaylistPanelRenderer",void 0);_.W([JE("ytd-comments"),_.A("design:type",HTMLElement)],JF.prototype,"ytdComments",void 0);_.W([_.a0("#primary"),_.A("design:type",HTMLElement)],JF.prototype,"primary",void 0);
_.W([_.a0("#secondary"),_.A("design:type",HTMLElement)],JF.prototype,"secondary",void 0);_.W([_.a0("#player-container"),_.A("design:type",HTMLElement)],JF.prototype,"playerContainer",void 0);_.W([_.a0("#cinematics"),_.A("design:type",HTMLElement)],JF.prototype,"JSC$22154_cinematics",void 0);_.W([_.ke("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JF.prototype,"updateTheaterValue",null);
_.W([_.ke("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JF.prototype,"updateFullscreenValue",null);_.W([_.ke("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JF.prototype,"updateScrollTopValue",null);_.W([_.ke("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JF.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JF.prototype,"cinematicLightTheme",null);_.W([_.M({reflectToAttribute:!0}),_.Y("learningJourneyEngagementPanels"),_.A("design:type",Object),_.A("design:paramtypes",[])],JF.prototype,"hasLearningJourneyPanels",null);_.W([_.Y("learningJourneyEngagementPanels"),_.A("design:type",Object),_.A("design:paramtypes",[])],JF.prototype,"backButtonData",null);_.W([_.yd({is:"ytd-watch-learning-journey"})],JF);var avC;var ws=function(){var I=_.k.apply(this,arguments)||this;I.useListItemStyles=_.l("web_list_item_style_for_menu_items");I.systemIcons=_.l("kevlar_system_icons");return I};
_.E(ws,_.k);_.L=ws.prototype;_.L.ready=function(){this.hostElement.addEventListener("tap",_.MX(this,this.onEndpointTapExtra))};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.L.onFocus=function(){var I;(I=_.XB(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.L.onEndpointTapExtra=function(I){_.lj(this.hostElement,"iron-activate");var y=this.data.navigationEndpoint;y&&_.u(y,_.RKq)&&(I.stopPropagation(),_.GC(this.hostElement,[y],this.hostElement))};
_.L.computeIcon=function(I){return I&&I.iconType?_.pQ(I.iconType):""};
_.L.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.L.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.L.forceUpdateStylesOnLegacyBrowsers=function(){_.l("kevlar_legacy_browsers")&&_.pg(this.hostElement)};
ws.prototype.forceUpdateStylesOnLegacyBrowsers=ws.prototype.forceUpdateStylesOnLegacyBrowsers;ws.prototype.onFocus=ws.prototype.onFocus;_.W([_.Q(_.G2),_.A("design:type",Object)],ws.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.dgb.YtConditionalRendererBehavior),_.A("design:type",Object)],ws.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],ws.prototype,"ytEndpointBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],ws.prototype,"data",void 0);_.W([_.M({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],ws.prototype,"icon",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ws.prototype,"useIcons",void 0);_.W([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],ws.prototype,"hasSeparator",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ws.prototype,"useListItemStyles",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],ws.prototype,"systemIcons",void 0);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ws.prototype,"onFocus",null);_.W([_.ke("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ws.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(ws,"ytd-menu-navigation-item-renderer",function(){if(avC===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);avC=I}I=avC;return I},{mode:1});var c6C;var WRR=_.Ug(_.zC("DOWNLOAD",{},"Download")),CxZ=_.Ug(_.zC("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),BDa=_.Ug(_.zC("RETRY",{},"Retry")),iB1=_.Ug(_.zC("PAUSE_DOWNLOADING",{},"Pause downloading")),A6a=_.Ug(_.zC("RESUME_DOWNLOAD",{},"Resume download")),v6=function(){var I=_.k.apply(this,arguments)||this;I.primaryText=WRR;I.primaryIconType="OFFLINE_DOWNLOAD";I.hasSecondaryContent=!1;I.hasSeparator=!1;I.transferState="TRANSFER_STATE_UNKNOWN";I.isVideoDeletedByUser=!1;I.isHidden=!1;I.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return I};
_.E(v6,_.k);_.L=v6.prototype;_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.L.onFocus=function(){this.primaryEntry.focus()};
_.L.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.L.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.L.getRemoveAction=function(){return"ACTION_REMOVE"};
_.L.sendOfflineAction=function(I){var y=this.data.serviceEndpoint;if(y){var D=_.u(y,_.mC);D&&I&&(D.action=I);this.ytComponentBehavior.resolveCommand(y)}};
_.L.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=WRR,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=WRR;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=BDa;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=CxZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=A6a;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=CxZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
iB1;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=CxZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=CxZ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=WRR,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.L.showHideButton=function(){var I;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((I=this.playerStateEntity)==null?void 0:I.adsState)==="ADS_STATE_PLAYING"};
_.L.isSecondaryEntryHidden=function(I,y){return I?!0:!y};
_.L.computeHasSeparator=function(){var I;return!((I=this.data)==null||!I.hasSeparator)};
_.L.computePlayerStateEntityKey=function(I){return I};
v6.prototype.showHideButton=v6.prototype.showHideButton;v6.prototype.onTransferStateChange=v6.prototype.onTransferStateChange;v6.prototype.onFocus=v6.prototype.onFocus;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],v6.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],v6.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],v6.prototype,"primaryText",void 0);_.W([_.M(),_.A("design:type",String)],v6.prototype,"primaryIconType",void 0);_.W([_.M(),_.A("design:type",String)],v6.prototype,"primaryAction",void 0);_.W([_.M(),_.A("design:type",Object)],v6.prototype,"secondaryText",void 0);_.W([_.M(),_.A("design:type",String)],v6.prototype,"secondaryIconType",void 0);
_.W([_.M(),_.A("design:type",String)],v6.prototype,"secondaryAction",void 0);_.W([_.M(),_.A("design:type",Object)],v6.prototype,"hasSecondaryContent",void 0);_.W([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Object)],v6.prototype,"hasSeparator",void 0);_.W([_.M({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.A("design:type",String)],v6.prototype,"playerStateEntityKey",void 0);
_.W([_.M({selector:_.Qz,selectorArgs:["playerStateEntityKey"]}),_.A("design:type",Object)],v6.prototype,"playerStateEntity",void 0);_.W([_.M({selector:_.FM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",String)],v6.prototype,"transferState",void 0);_.W([_.M({selector:_.DGJ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],v6.prototype,"isVideoDeletedByUser",void 0);
_.W([_.M(),_.A("design:type",Object)],v6.prototype,"isHidden",void 0);_.W([_.M({selector:_.TQ4,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],v6.prototype,"offlineabilityState",void 0);_.W([_.a0("#primary-entry"),_.A("design:type",Object)],v6.prototype,"primaryEntry",void 0);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v6.prototype,"onFocus",null);
_.W([_.Bp("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v6.prototype,"onTransferStateChange",null);_.W([_.Bp("offlineabilityState","playerStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],v6.prototype,"showHideButton",null);
_.a(v6,"ytd-menu-service-item-download-renderer",function(){if(c6C===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);c6C=I}I=c6C;return I},{mode:1});var $fe;var Si=function(){var I=_.k.apply(this,arguments)||this;I.useIcons=!1;I.systemIcons=_.l("kevlar_system_icons");I.useListItemStyles=_.l("web_list_item_style_for_menu_items");return I};
_.E(Si,_.k);_.L=Si.prototype;_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.L.onFocus=function(){var I;(I=_.XB(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.L.onTap=function(){_.qr(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var I=this.data.serviceEndpoint,y=this.data.command;if(I){var D,F=(D=this.data)==null?void 0:D.trackingParams;D=!!_.u(I,_.Kee);F&&D&&_.oq().dispatch(_.Ec({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:F}}));this.ytComponentBehavior.resolveCommand(I)||_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}})}y&&(this.ytComponentBehavior.resolveCommand(y)||_.GC(this.hostElement,
[y],this.hostElement))};
_.L.computeIcon=function(I){return I&&I.iconType?_.pQ(I.iconType):""};
_.L.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.L.computeHasSeparator=function(){var I;return!((I=this.data)==null||!I.hasSeparator)};
_.L.forceUpdateStylesOnLegacyBrowsers=function(){_.l("kevlar_legacy_browsers")&&_.pg(this.hostElement)};
_.L.computeIsSelected=function(){var I;return!((I=this.data)==null||!I.isSelected)};
Si.prototype.forceUpdateStylesOnLegacyBrowsers=Si.prototype.forceUpdateStylesOnLegacyBrowsers;Si.prototype.onTap=Si.prototype.onTap;Si.prototype.onFocus=Si.prototype.onFocus;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],Si.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.dgb.YtConditionalRendererBehavior),_.A("design:type",Object)],Si.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Si.prototype,"data",void 0);_.W([_.M({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],Si.prototype,"icon",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Si.prototype,"useIcons",void 0);
_.W([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Si.prototype,"hasSeparator",void 0);_.W([_.M({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Si.prototype,"isSelected",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Si.prototype,"systemIcons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Si.prototype,"useListItemStyles",void 0);
_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Si.prototype,"onFocus",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Si.prototype,"onTap",null);_.W([_.ke("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Si.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(Si,"ytd-menu-service-item-renderer",function(){if($fe===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);$fe=I}I=$fe;return I},{mode:2});var bBR;var QT=function(){return _.k.apply(this,arguments)||this};
_.E(QT,_.k);_.L=QT.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.onDataChanged=function(){var I=this;_.YC(this,function(){I.postbox.openDialog();I.focus();_.lj(I.hostElement,"yt-refit")})};
_.L.focus=function(){this.postbox.focus()};
_.L.closePopup=function(){_.uj(this.hostElement,"yt-close-popup-action")};
_.L.onYtCommentboxDismiss=function(){this.closePopup()};
QT.prototype.onYtCommentboxDismiss=QT.prototype.onYtCommentboxDismiss;QT.prototype.onDataChanged=QT.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QT.prototype,"data",void 0);_.W([_.M({value:function(){return _.zC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],QT.prototype,"closeButtonAriaLabel",void 0);_.W([_.a0("#postbox"),_.A("design:type",Object)],QT.prototype,"postbox",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QT.prototype,"onDataChanged",null);_.W([_.z4("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QT.prototype,"onYtCommentboxDismiss",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],QT);
_.a(QT,"ytd-backstage-post-dialog-popup-renderer",function(){if(bBR!==void 0)return bBR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return bBR=I},{mode:1});var HBb;var fn=function(){var I=_.k.apply(this,arguments)||this;I.modernModal=!0;return I};
_.E(fn,_.k);fn.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
fn.prototype.computeShouldHideOldButtons=function(){var I;return!((I=this.data)==null?0:I.button)};
_.mD.Object.defineProperties(fn.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var I,y;return(I=this.data)==null?void 0:(y=I.button)==null?void 0:y.buttonRenderer}}});
_.W([_.M(),_.A("design:type",Object)],fn.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],fn.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],fn.prototype,"modernModal",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],fn.prototype,"buttonRendererData",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],fn);
_.a(fn,"ytd-modal-with-title-and-button-renderer",function(){if(HBb!==void 0)return HBb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return HBb=I},{mode:1});var eOG;var nn=function(){return _.k.apply(this,arguments)||this};
_.E(nn,_.k);nn.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("page-changed",this.page))};
nn.prototype.pageChangedForBinding=nn.prototype.pageChangedForBinding;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nn.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],nn.prototype,"page",void 0);_.W([_.ke("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nn.prototype,"pageChangedForBinding",null);
_.W([_.yd({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],nn);
_.a(nn,"ytd-account-item-section-header-renderer",function(){if(eOG!==void 0)return eOG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return eOG=I},{mode:1});var TDQ;var pn=function(){return _.k.apply(this,arguments)||this};
_.E(pn,_.k);pn.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"}}}};
pn.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],pn.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pn.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Function)],pn.prototype,"onAccountItemTap",void 0);
_.W([_.yd({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],pn);
_.a(pn,"ytd-account-item-section-renderer",function(){if(TDQ!==void 0)return TDQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return TDQ=I},{mode:1});var s4a;var Vhg;var ZBa=function(){return _.k.apply(this,arguments)||this};
_.E(ZBa,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ZBa.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ZBa.prototype,"data",void 0);_.W([_.yd({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],ZBa);
_.a(ZBa,"ytd-accounts-dialog-header-renderer",function(){if(Vhg!==void 0)return Vhg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Vhg=I},{mode:1});var gLC;var ma=function(){return _.k.apply(this,arguments)||this};
_.E(ma,_.k);ma.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ma.prototype,"data",void 0);_.W([_.yd({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],ma);
_.a(ma,"ytd-google-account-header-renderer",function(){if(gLC!==void 0)return gLC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return gLC=I},{mode:1});var MI=function(){return _.k.apply(this,arguments)||this};
_.E(MI,_.k);MI.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"}}}};
MI.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("page-changed",this.page))};
MI.prototype.pageChangedForBinding=MI.prototype.pageChangedForBinding;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],MI.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],MI.prototype,"page",void 0);
_.W([_.ke("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MI.prototype,"pageChangedForBinding",null);_.W([_.yd({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],MI);
_.Xf()(MI,"ytd-account-section-list-renderer",function(){if(s4a===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);s4a=I}I=s4a;return I},{allowedProps:["data"],
mode:1});var Iio;var zA=function(){var I=_.k.apply(this,arguments)||this;I.enableHandlesAccountMenuSwitcher=_.l("enable_handles_account_menu_switcher");return I};
_.E(zA,_.k);zA.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
zA.prototype.dataChanged=zA.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zA.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],zA.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.W([_.a0("#avatar"),_.A("design:type",Object)],zA.prototype,"avatar",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zA.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],zA);
_.Xf()(zA,"ytd-active-account-header-renderer",function(){if(Iio===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);Iio=I}I=Iio;return I},{allowedProps:["data"],
mode:1});var y$a;var DtT;var kT=function(){return _.k.apply(this,arguments)||this};
_.E(kT,_.k);kT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kT.prototype.onBackTap=function(){_.lj(this.hostElement,"yt-menu-back-tapped")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kT.prototype,"data",void 0);_.W([_.yd({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],kT);
_.Xf()(kT,"ytd-simple-menu-header-renderer",function(){if(DtT===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);DtT=I}I=DtT;return I},{allowedProps:["data"],
mode:2});var FtY;var RWG=function(){return _.k.apply(this,arguments)||this};
_.E(RWG,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],RWG.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RWG.prototype,"data",void 0);_.W([_.yd({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],RWG);
_.a(RWG,"ytd-comment-video-thumbnail-header-renderer",function(){if(FtY!==void 0)return FtY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return FtY=I},{mode:1});var O6R;var Ltb=function(){return _.k.apply(this,arguments)||this};
_.E(Ltb,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ltb.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ltb.prototype,"data",void 0);_.W([_.yd({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Ltb);
_.a(Ltb,"ytd-abuse-type-selector-renderer",function(){if(O6R!==void 0)return O6R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return O6R=I},{mode:1});var J$g;var wa1=(0,_.WRu)(_.c6G.reportChannelAbuse,{isVideoIdSelectedSelector:function(I,y){return y in I.selectedVideoIds},
additionalContextSelector:function(I){return I.additionalContext},
impersonatedChannelUrlSelector:function(I){return I.impersonatedChannelUrl},
reportChannelAbuseSelector:function(I){return I}});var ds=function(){return _.k.apply(this,arguments)||this};
_.E(ds,_.k);ds.prototype.attached=function(){var I=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){I.additionalContextInput.focusTextInput()})};
ds.prototype.handleAdditionalContextChanged=function(){var I=this;_.v4(this,"ytd-report-channel-additional-context-update",function(){I.ytdReduxBehavior.dispatch(_.Ec({type:"ADDITIONAL_CONTEXT_UPDATED",payload:I.additionalContext}))},300)};
ds.prototype.updateAdditionalContextFromBinding=function(I){this.additionalContext=I.detail.value};
ds.prototype.handleAdditionalContextChanged=ds.prototype.handleAdditionalContextChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],ds.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",String)],ds.prototype,"additionalContext",void 0);_.W([_.M({selector:wa1.additionalContextSelector}),_.A("design:type",String)],ds.prototype,"additionalContextRedux",void 0);_.W([_.M(),_.A("design:type",Object)],ds.prototype,"data",void 0);
_.W([_.a0("yt-text-input-form-field-renderer"),_.A("design:type",Object)],ds.prototype,"additionalContextInput",void 0);_.W([_.ke("additionalContext"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ds.prototype,"handleAdditionalContextChanged",null);_.W([_.yd({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],ds);
_.a(ds,"ytd-report-channel-modal-additional-context-renderer",function(){if(J$g!==void 0)return J$g;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return J$g=I},{mode:1});var v$Y;var av=function(){var I=_.k.apply(this,arguments)||this;I.nextButtonDisabled=null;I.submitEndpoint=null;I.navigationEndpoint=null;I.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return I};
_.E(av,_.k);_.L=av.prototype;_.L.computeNextButtonData=function(I,y,D){var F={};y&&(F.navigationEndpoint=y);D&&(F.serviceEndpoint=D);I&&I.buttonRenderer&&_.e$.extend(F,I.buttonRenderer);return F};
_.L.handleReportChannelModalDisableNextButtonAction=function(I){this.setNextButtonIsDisabled(I)};
_.L.handleReportFormEndpointUpdateAction=function(I){this.setNextButtonIsDisabled(!!I.disableSubmitButton);this.resetEndpointData();I.submitEndpoint?this.submitEndpoint=I.submitEndpoint:I.submitNavigationEndpoint&&(this.navigationEndpoint=I.submitNavigationEndpoint)};
_.L.handleSignalActionSubmitForm=function(){var I,y=Object.keys(((I=this.reportChannelAbuseForm)==null?void 0:I.selectedVideoIds)||{}),D;I=((D=this.reportChannelAbuseForm)==null?void 0:D.additionalContext)||"";var F;D=((F=this.reportChannelAbuseForm)==null?void 0:F.impersonatedChannelUrl)||"";var R;if((R=this.data)==null?0:R.submitEndpoint){y={impersonated_channel_url:D,text:I,video_ids:y};var O;_.nR().resolve(_.MC).resolveCommand((O=this.data)==null?void 0:O.submitEndpoint,{form:Object.assign({},
y,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.L.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.L.onYtServiceRequestError=function(I){this.setNextButtonIsDisabled(!1);_.v_(this.hostElement,I.detail.error.message)};
_.L.setNextButtonIsDisabled=function(I){this.set("data.nextButton.buttonRenderer.isDisabled",I)};
_.L.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
av.prototype.onYtServiceRequestError=av.prototype.onYtServiceRequestError;av.prototype.onYtServiceRequestCompleted=av.prototype.onYtServiceRequestCompleted;_.W([_.M(),_.A("design:type",Object)],av.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],av.prototype,"nextButtonDisabled",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],av.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],av.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],av.prototype,"submitEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],av.prototype,"navigationEndpoint",void 0);_.W([_.M({selector:wa1.reportChannelAbuseSelector}),_.A("design:type",Object)],av.prototype,"reportChannelAbuseForm",void 0);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],av.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],av.prototype,"onYtServiceRequestError",null);_.W([_.yd({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],av);
_.a(av,"ytd-report-channel-modal-footer-renderer",function(){if(v$Y!==void 0)return v$Y;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return v$Y=I},{mode:1});var SUT;var c6=function(){var I=_.k.apply(this,arguments)||this;I.boundOnTapDismissButton=function(){I.closePopup()};
return I};
_.E(c6,_.k);c6.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
c6.prototype.handleDataChanged=function(){_.qw(this.hostElement)};
c6.prototype.closePopup=function(){_.uj(this.hostElement,"yt-close-popup-action")};
c6.prototype.handleDataChanged=c6.prototype.handleDataChanged;_.W([_.M(),_.A("design:type",Object)],c6.prototype,"boundOnTapDismissButton",void 0);_.W([_.M(),_.A("design:type",Object)],c6.prototype,"data",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c6.prototype,"handleDataChanged",null);_.W([_.yd({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],c6);
_.a(c6,"ytd-report-channel-modal-header-renderer",function(){if(SUT!==void 0)return SUT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SUT=I},{mode:1});var t2Y;var W6=function(){var I=_.k.apply(this,arguments)||this;I.autoValidate=!1;I.invalid=!1;I.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return I};
_.E(W6,_.k);_.L=W6.prototype;_.L.attached=function(){var I=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){I.channelUrlInput.focusTextInput()})};
_.L.disableNextButton=function(I){_.uj(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[I])};
_.L.handleImpersonatedChannelUrlChanged=function(){var I=this;this.disableNextButton(!0);this.invalid=!1;_.v4(this,"ytd-report-channel-impersonated-channel-update",function(){var y=I.impersonatedChannelUrl.trim();I.ytdReduxBehavior.dispatch(_.Ec({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:y}));var D;((D=I.data)==null?0:D.submitEndpoint)&&y&&_.nR().resolve(_.MC).resolveCommand(I.data.submitEndpoint,{form:{impersonated_channel_url:y,element:I.hostElement}})},500)};
_.L.handleModifyReportFormCommand=function(I){this.invalid=this.get("modifyReportFormCommand.action",I)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.L.updateInvalidFromBinding=function(I){this.invalid=I.detail.value};
_.L.updateImpersonatedChannelUrlFromBinding=function(I){this.impersonatedChannelUrl=I.detail.value};
W6.prototype.handleImpersonatedChannelUrlChanged=W6.prototype.handleImpersonatedChannelUrlChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],W6.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],W6.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],W6.prototype,"autoValidate",void 0);_.W([_.M(),_.A("design:type",Object)],W6.prototype,"invalid",void 0);
_.W([_.M(),_.A("design:type",String)],W6.prototype,"impersonatedChannelUrl",void 0);_.W([_.M({selector:wa1.impersonatedChannelUrlSelector}),_.A("design:type",String)],W6.prototype,"impersonatedChannelUrlRedux",void 0);_.W([_.M(),_.A("design:type",Object)],W6.prototype,"data",void 0);_.W([_.a0("#text-input"),_.A("design:type",Object)],W6.prototype,"channelUrlInput",void 0);
_.W([_.ke("impersonatedChannelUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"handleImpersonatedChannelUrlChanged",null);_.W([_.yd({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],W6);
_.a(W6,"ytd-report-channel-modal-impersonation-renderer",function(){if(t2Y!==void 0)return t2Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return t2Y=I},{mode:1});var PnQ;var KtR;var Cn=function(){return _.k.apply(this,arguments)||this};
_.E(Cn,_.k);Cn.prototype.onCheckboxToggled=function(I){var y,D,F=(D=_.u((y=this.data)==null?void 0:y.video,_.hJ_))==null?void 0:D.videoId;F&&this.ytdReduxBehavior.dispatch(I.target.checked?_.Ec({type:"VIDEO_SELECTED",payload:F}):_.Ec({type:"VIDEO_UNSELECTED",payload:F}))};
Cn.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.mD.Object.defineProperties(Cn.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var I,y=(I=this.data)==null?void 0:I.video;if(!y)return{};var D;I=(D=_.u(y,_.hJ_))==null?void 0:D.navigationEndpoint;if(!I)return y;_.u(I==null?void 0:I.commandMetadata,_.nE)&&(_.u(I.commandMetadata,_.nE).ignoreNavigation=!0);return y}}});
_.W([_.M({reflectToAttribute:!0,selector:wa1.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.A("design:type",Boolean)],Cn.prototype,"checked",void 0);_.W([_.M(),_.A("design:type",Object)],Cn.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Cn.prototype,"video",null);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Cn.prototype,"ytdReduxBehavior",void 0);_.W([_.yd({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Cn);
_.a(Cn,"ytd-selectable-video-renderer",function(){if(KtR!==void 0)return KtR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return KtR=I},{mode:1});var B6=function(){var I=_.k.apply(this,arguments)||this;I.monitorScroll=!0;return I};
_.E(B6,_.k);B6.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],B6.prototype,"data",void 0);_.W([_.yd({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],B6);
_.a(B6,"ytd-selectable-video-list-renderer",function(){if(PnQ!==void 0)return PnQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return PnQ=I},{mode:1});var UtZ;_.bO("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var i6=function(){return _.k.apply(this,arguments)||this};
_.E(i6,_.k);i6.prototype.onChange=function(I){if(I=_.jv(I).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.l("kevlar_command_handler_migration_killswitch"))_.GC(this.hostElement,I,this.hostElement);else{I=_.J(I);for(var y=I.next();!y.done;y=I.next())this.ytComponentBehavior.resolveCommand(y.value)}};
i6.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
i6.prototype.updateDataToggledFromBinding=function(I){this.set("data.toggled",I.detail.value)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],i6.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],i6.prototype,"data",void 0);_.W([_.M({computed:"isEnabled(data)"}),_.A("design:type",Boolean)],i6.prototype,"enabled",void 0);_.W([_.yd({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],i6);
_.a(i6,"ytd-toggle-item-renderer",function(){if(UtZ!==void 0)return UtZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return UtZ=I},{mode:1});var r$R;var jIa;var o$g;var AF=function(){var I=_.k.apply(this,arguments)||this;I.setVisible=!1;I.boundOnSubmitButtonClick=function(){I.onSubmitButtonClick()};
I.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return I};
_.E(AF,_.k);AF.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}}}}}};
AF.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
AF.prototype.onSubmitButtonClick=function(){var I;((I=this.data)==null?0:I.submitEndpoint)&&!_.l("enable_ytc_refunds_submit_form_signal_action")&&_.E$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
AF.prototype.handleSignalActionSubmitForm=function(){var I;((I=this.data)==null?0:I.submitEndpoint)&&_.E$(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.mD.Object.defineProperties(AF.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.hiddenByDefault)&&!this.setVisible}}});
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],AF.prototype,"setVisible",void 0);_.W([_.M(),_.A("design:type",Object)],AF.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],AF.prototype,"surveyFeedbackData",void 0);_.W([_.M(),_.A("design:type",Object)],AF.prototype,"boundOnSubmitButtonClick",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data","setVisible"),_.A("design:type",Object),_.A("design:paramtypes",[])],AF.prototype,"visibilityHidden",null);_.W([_.I6({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],AF);
_.a(AF,"yt-flow-footer-renderer",function(){if(o$g===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;jIa===void 0&&(jIa=document.createElement("template"));var F=jIa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);o$g=I}I=o$g;return I},{mode:2});var NzG=(0,_.WRu)(_.c6G.ypc,{surveyFeedbackDataSelector:function(I){return I.surveyFeedbackData}});var $T=function(){return _.k.apply(this,arguments)||this};
_.E($T,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],$T.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$T.prototype,"data",void 0);_.W([_.M({selector:NzG.surveyFeedbackDataSelector}),_.A("design:type",Object)],$T.prototype,"surveyFeedbackData",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],$T);
_.a($T,"ytd-flow-footer-renderer",function(){if(r$R!==void 0)return r$R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return r$R=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var hWo;var xtZ;var b6=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return I};
_.E(b6,_.k);_.L=b6.prototype;_.L.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.HU("multiPageMenuSectionItems")}}};
_.L.handleHideEnclosingAction_=function(I){if(this.data&&this.data.items)for(var y=0;y<this.data.items.length;y++){var D=this.data.items[y].notificationRenderer;if(D&&D.notificationId==I.hideEnclosingAction.notificationId){this.splice("data.items",y,1);_.uj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.L.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.fg(this.hostElement,"hidden",!0)};
_.L.updateMenu_=function(I){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&I&&!I.doNotRefreshInbox){I=this.data.continuations;for(var y=0;y<I.length;y++)if(I[y].invalidationContinuationData){var D=void 0;var F=(D=I[y].invalidationContinuationData)==null?void 0:D.continuation;break}I=_.e$.clone(this.data.continuationUpdateEndpoint||null);I.continuation=F;I.click_tracking_params=this.data.trackingParams;_.E$(this.hostElement,[I])}};
_.L.onServiceRequestCompleted_=function(I,y){if(this.data&&(I=y.actions)){y=0;for(var D=I.length;y<D;y++){var F=_.u(I[y],_.k0g);if(!F)break;if((F.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||F.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&F.continuationItems&&this.data.items){var R=this.data.items.length-1;this.data.items[R].continuationItemRenderer&&(F=["data.items",R,1].concat(F.continuationItems),this.splice.apply(this,F))}}}};
b6.prototype.onServiceRequestCompleted_=b6.prototype.onServiceRequestCompleted_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],b6.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],b6.prototype,"data",void 0);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],b6.prototype,"onServiceRequestCompleted_",null);_.W([_.I6({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],b6);
_.Xf()(b6,"yt-multi-page-menu-section-renderer",function(){if(xtZ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;hWo===void 0&&(hWo=document.createElement("template"));var F=hWo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);xtZ=I}I=xtZ;return I},{allowedProps:["data"],
mode:2});var liC;var uRG;var H6=function(){return _.k.apply(this,arguments)||this};
_.E(H6,_.k);H6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.mD.Object.defineProperties(H6.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.progress)==null?0:this.data.progress*100}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],H6.prototype,"data",void 0);_.W([_.Y("data.progress"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],H6.prototype,"showProgressBar",null);
_.W([_.Y("data.progress"),_.A("design:type",Number),_.A("design:paramtypes",[])],H6.prototype,"progress",null);_.W([_.I6({is:"yt-flow-header-renderer",disableElementRegistration:!0})],H6);
_.a(H6,"yt-flow-header-renderer",function(){if(uRG===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;liC===void 0&&(liC=document.createElement("template"));var F=liC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);uRG=I}I=uRG;return I},{mode:2});var qUR;var E$Z;var ei=function(){return _.k.apply(this,arguments)||this};
_.E(ei,_.k);ei.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ei.prototype,"data",void 0);_.W([_.I6({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],ei);
_.a(ei,"yt-post-confirmation-flow-step-renderer",function(){if(E$Z===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;qUR===void 0&&(qUR=document.createElement("template"));var F=qUR;D.call(y,F.content.cloneNode(!0),I.content.firstChild);E$Z=I}I=E$Z;return I},{mode:2});var GNY;var Xa1;var TA=function(){return _.k.apply(this,arguments)||this};
_.E(TA,_.k);
TA.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TA.prototype,"data",void 0);_.W([_.I6({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],TA);
_.a(TA,"yt-refund-confirmation-flow-step-renderer",function(){if(Xa1===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;GNY===void 0&&(GNY=document.createElement("template"));var F=GNY;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Xa1=I}I=Xa1;return I},{mode:2});var QI1=_.d(function(I){var y=I.data;return _.t("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.t("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.t(_.UE,{data:function(){return{thumbnails:[{url:y().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.t("div",{class:"profileBadgeViewModelContent"},_.t("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return y().badgeDesc}),_.t(_.U,{cond:function(){return y().badgeSubtitle},
then:function(){return _.t("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return y().badgeSubtitle})}})))},"Rk");
QI1.idomCompat=!0;var YUa=_.d(function(I){var y=I.data;return _.t("yt-comment-interaction-view-model",{el:_.K4(_.VM(function(){return y().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.t("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return y().onTapA11yLabel},
"on:keydown":_.xqL(),tabindex:0},_.t("div",{class:"ytCommentInteractionViewModelHeader"},_.t("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return y().headerPrefix},' "',function(){return y().videoTitle}),_.t("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.t("div",{class:"ytCommentInteractionViewModelContent"},_.t("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return y().commentContent}),_.t("div",{class:"ytCommentInteractionViewModelChevron"},
_.t(_.UE,{data:function(){return{thumbnails:[{url:y().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Sk");
YUa.idomCompat=!0;var fiR=_.d(function(I){var y=I.data;return _.t("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF}),_.t("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return y().channelName}))},"Tk");
fiR.idomCompat=!0;var zWQ=_.d(function(I){var y=I.data;I={};return _.t("yt-profile-info-view-model",{class:_.XH("ytProfileInfoViewModelHost",(I.ytProfileInfoViewModelWithVideoShelf=function(){return y().videosHorizontalShelf},I))},_.t(n$Z,{profileInfo:y}),_.t(_.aP,{data:function(){return y().videosHorizontalShelf}},{horizontalShelfViewModel:function(D){return _.t("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.t(_.r_,{data:D.data}))}}),_.t(_.U,{cond:function(){return y().comments},
then:function(){return _.t(paZ,{profileInfo:y})}}),_.t(_.U,{cond:function(){return y().sharedSubscriptionsTitle},
then:function(){return _.t(_.U,{cond:function(){return y().subscriptionsAccessButtonCommand},
then:function(){return _.t(mtR,{profileInfo:y})},
else:function(){return _.t(M21,{profileInfo:y})}})}}))},"Uk");
zWQ.idomCompat=!0;var paZ=_.d(function(I){var y=I.profileInfo;return _.t("div",{class:"ytProfileInfoViewModelActivity"},_.t("div",{class:"ytProfileInfoViewModelHeader"},_.t("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return y().commentsInteractionTitle})),_.t(_.aP,{data:function(){return y().comments}},{commentInteractionViewModel:function(D){return _.t("div",{class:"ytProfileInfoViewModelActivity"},_.t(YUa,{data:D.data}))}}))},"Vk"),mtR=_.d(function(I){var y=I.profileInfo;
return _.t("div",{class:"ytProfileInfoViewModelSubSection"},_.t("div",{class:"ytProfileInfoViewModelSubHeader"},_.t(_.Yp,{command:function(){return y().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.t("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return y().sharedSubscriptionsTitle}),_.t("div",null,_.t(_.aP,{data:function(){return y().subscriptionsAccessButton}},{buttonViewModel:_.My})))),_.t(kNa,{sharedSubscriptions:function(){var D;
return((D=y().sharedSubscriptions)==null?void 0:D.slice(0,5))||[]}}))},"Wk"),M21=_.d(function(I){var y=I.profileInfo;
return _.t("div",{class:"ytProfileInfoViewModelSubSection"},_.t("div",{class:"ytProfileInfoViewModelSubHeader"},_.t("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return y().sharedSubscriptionsTitle})),_.t(kNa,{sharedSubscriptions:function(){var D;
return((D=y().sharedSubscriptions)==null?void 0:D.slice(0,5))||[]}}))},"Xk"),kNa=_.d(function(I){return _.t("div",{class:"ytProfileInfoViewModelSubs"},_.t(_.aP,{data:I.sharedSubscriptions},{sharedSubscriptionViewModel:function(y){return _.t("div",{class:"ytProfileInfoViewModelSub"},_.t(fiR,{data:y.data}))}}))},"Yk"),n$Z=_.d(function(I){var y=I.profileInfo;
return _.t("div",{class:"ytProfileInfoViewModelActivity"},_.t(_.gZ,{each:function(){return[y().profileBadgeInfoYtWide,y().profileBadgeInfoChannelWide].filter(function(D){return!!D})},
keyBy:"INDEX"},function(D){return _.t(_.ni,null,_.t("div",{class:"ytProfileInfoViewModelHeader"},_.t("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return D().profileSectionTitle}),_.t("div",{class:"ytProfileInfoViewModelSectionDesc"},_.t("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var F;
return(F=D().commentBadge)==null?void 0:F.commentDesc}),_.t(_.U,{cond:function(){var F;
return(F=D().commentBadge)==null?void 0:F.blackHeartDesc},
then:function(){return _.t("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.t("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.t(_.UE,{data:function(){var F;
return{thumbnails:[{url:(F=D().commentBadge)==null?void 0:F.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.t("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var F;return(F=D().commentBadge)==null?void 0:F.blackHeartDesc}))),_.t("div",{class:"ytProfileInfoViewModelBadge"},_.t(_.gZ,{each:function(){return D().badges||[]}},function(F){return _.t(QI1,{data:F})})))}))},"Zk");var dtQ=_.d(function(I){var y=I.data;var D=function(){return y().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.t("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.t(_.aP,{data:function(){return y().profileIdentityInfo}},{profileIdentityInfoViewModel:function(F){return _.t(DWo,{data:F.data,
hideDivider:D,isChannelInfoCard:D})},
profileInfoViewModel:zWQ}),_.t(_.aP,{data:function(){return y().profileInfo}},{profileIdentityInfoViewModel:DWo,
profileInfoViewModel:zWQ}))},"$k");
dtQ.idomCompat=!0;_.NK(dtQ,"yt-profile-card-view-model",{props:{data:_.om}});var se=function(){var I=_.k.apply(this,arguments)||this;I.enableFocusFix=_.l("music_web_enable_focus_on_setting_menu_fix")&&_.KR("IS_MOBILE_WEB",!1);I.covered=!1;I.hideMenu=!1;I.isCommentNotificationOnProfileCard=!1;I.scrolledByTouch=!1;I.disableBackdropFilter=_.l("web_disable_backdrop_filter");I.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return I};
_.E(se,_.k);_.L=se.prototype;
_.L.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"}}}};
_.L.ready=function(){var I=this;this.JSC$22261_containerElement.addEventListener("scroll",function(){I.ytRendererBehavior.markDirty()})};
_.L.attributeChanged=function(I,y){I==="menu-style"&&_.uj(this.hostElement,"yt-multi-page-menu-closed-action",[y])};
_.L.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.MX(this,this.focusOnStampFinished))};
_.L.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.MX(this,this.focusOnStampFinished))};
_.L.reset=function(){this.closeJobId&&(_.w2.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.L.focusOnStampFinished=function(I){I.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.MX(this,this.focusOnStampFinished)),this.doFocus())};
_.L.doFocus=function(){var I=_.kQO(this.sectionsElement);I.length&&I[0].focus()};
_.L.computeMenuStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.L.computeIsCommentNotificationOnProfileCard=function(I){return _.l("enable_profile_cards_on_comments")&&I.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.L.computeHideMenu=function(I,y){return I||!(!y||!y.showLoadingSpinner)};
_.L.onPopupClosed=function(){this.isPopUpOpen=!1;_.uj(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.L.onPopupOpened=function(I,y){this.isPopUpOpen=!0;y.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.lj(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Ec({type:"CHANNEL_REPORT_RESET"})))};
_.L.onYtNavigate=function(I,y){this.shouldCloseOnNavigateEvent(y.endpoint)&&_.uj(this.hostElement,"yt-close-all-popups-action")};
_.L.handleEndpoint=function(I){I=_.u(I,_.OZ);!this.isCommentNotificationOnProfileCard&&I&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22261_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.L.handleActions=function(I){for(var y=0,D=I.length;y<D;y++){var F=_.u(I[y],xiZ);F&&this.handleGetMultiPageMenuAction(F);(F=_.u(I[y],_.k0g))&&this.handleAppendContinuationItemsAction(F)}};
_.L.onServiceRequestSentOrCompleted=function(I,y){I.detail&&I.detail.endpoint&&this.handleEndpoint(I.detail.endpoint);y.actions&&this.handleActions(y.actions)};
_.L.handleGetMultiPageMenuAction=function(I){var y=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.XB(this.submenuElement).appendChild(y);(I=I.menu.multiPageMenuRenderer)&&this.logSubmenu(I);y.data=I;y.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.L.handleAppendContinuationItemsAction=function(I){if(this.data&&I.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&I.continuationItems&&this.data.sections){var y=this.data.sections.length-1;this.data.sections[y].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),y--);if(this.data.sections[y].multiPageMenuNotificationSectionRenderer&&I.continuationItems){I=_.J(I==null?void 0:I.continuationItems);for(var D=I.next();!D.done;D=I.next())if(D=D.value,_.u(D,N5T)){var F=
void 0,R=void 0,O=void 0,w=void 0,v=void 0;((F=this)==null?0:(R=F.data)==null?0:(O=R.sections)==null?0:(w=O[y])==null?0:(v=w.multiPageMenuNotificationSectionRenderer)==null?0:v.items)&&this.push("data.sections."+y+".multiPageMenuNotificationSectionRenderer.items",D)}else if(_.u(D,_.G5W)||_.u(D,_.hs))this.push("data.sections",D),y++}}};
_.L.logSubmenu=function(I){if(!_.l("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var y=this.ytRendererBehavior.getScreenLayer(),D=_.VO(y),F=_.s_(y);if((I=I.trackingParams)&&D&&F){var R=_.AC(I);_.l("combine_ve_grafts")?_.W4().graftServerVe(I,F,y):_.Oc(D,F,R)}}};
_.L.emptySubmenuContainer=function(){for(var I=_.XB(this.submenuElement);I.firstChild;)I.removeChild(I.firstChild)};
_.L.onMenuBackTap=function(I){_.lj(this.hostElement,"yt-submenu-closed");I.stopPropagation()};
_.L.onSubmenuClosed=function(I){_.jv(I)!==this.hostElement&&(this.covered=!1,_.lj(this.hostElement,"yt-refit"),I.stopPropagation())};
_.L.onRetrieveLocation=function(I,y){y.hasComments&&(y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),I.stopPropagation())};
_.L.shouldCloseOnNavigateEvent=function(I){if(!I)return!0;if(_.u(I,_.Lef)||_.u(I,_.J2O)||_.u(I,_.OMg)||_.u(I,_.lK))return!1;var y;return((y=_.u(I==null?void 0:I.commandMetadata,_.nE))==null?0:y.ignoreNavigation)?!1:!0};
_.L.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.L.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.L.refitAfterRender=function(){var I=this;_.YC(this,function(){_.lj(I.hostElement,"yt-refit")})};
se.prototype.refitAfterRender=se.prototype.refitAfterRender;se.prototype.onRetrieveLocation=se.prototype.onRetrieveLocation;se.prototype.onSubmenuClosed=se.prototype.onSubmenuClosed;se.prototype.onMenuBackTap=se.prototype.onMenuBackTap;se.prototype.onServiceRequestSentOrCompleted=se.prototype.onServiceRequestSentOrCompleted;se.prototype.onYtNavigate=se.prototype.onYtNavigate;se.prototype.onPopupOpened=se.prototype.onPopupOpened;se.prototype.onPopupClosed=se.prototype.onPopupClosed;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],se.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],se.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],se.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],se.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],se.prototype,"enableFocusFix",void 0);_.W([_.M(),_.A("design:type",Object)],se.prototype,"covered",void 0);_.W([_.M({computed:"computeHideMenu(covered, data)"}),_.A("design:type",Object)],se.prototype,"hideMenu",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.A("design:type",String)],se.prototype,"menuStyle",void 0);
_.W([_.M({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.A("design:type",Object)],se.prototype,"isCommentNotificationOnProfileCard",void 0);_.W([_.M(),_.A("design:type",Boolean)],se.prototype,"isPopUpOpen",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],se.prototype,"scrolledByTouch",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],se.prototype,"disableBackdropFilter",void 0);
_.W([_.a0("#sections"),_.A("design:type",HTMLElement)],se.prototype,"sectionsElement",void 0);_.W([_.a0("#spinner"),_.A("design:type",HTMLElement)],se.prototype,"spinnerElement",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],se.prototype,"headerElement",void 0);_.W([_.a0("#container"),_.A("design:type",HTMLElement)],se.prototype,"JSC$22261_containerElement",void 0);_.W([_.a0("#submenu"),_.A("design:type",HTMLElement)],se.prototype,"submenuElement",void 0);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],se.prototype,"onPopupClosed",null);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],se.prototype,"onPopupOpened",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],se.prototype,"onYtNavigate",null);
_.W([_.z4("yt-service-request-completed"),_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],se.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.z4("yt-menu-back-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],se.prototype,"onMenuBackTap",null);
_.W([_.z4("yt-submenu-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],se.prototype,"onSubmenuClosed",null);_.W([_.z4("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],se.prototype,"onRetrieveLocation",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],se.prototype,"refitAfterRender",null);
_.W([_.yd({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],se);
_.a(se,"ytd-multi-page-menu-renderer",function(){if(y$a!==void 0)return y$a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return y$a=I},{mode:1});var aiZ;var VT=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return I};
_.E(VT,_.k);_.L=VT.prototype;_.L.created=function(){this.showTooltips=!0};
_.L.computeAccessibility_=function(I){return this.get("accessibility.accessibilityData",I)||null};
_.L.onTap=function(){var I=_.qr(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(I&&I.length===1&&I[0])_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var y;if((y=this.data)==null?0:y.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var D;((D=this.data)==null?0:D.menuRequest)&&_.E$(this.hostElement,[this.data.menuRequest])}}};
_.L.handleTopbarMenuClosedAction=function(I){var y,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(I)===((y=this.data)==null?void 0:(D=y.icon)==null?void 0:D.iconType)&&this.toggleIconState(!1)};
_.L.toggleIconState=function(I){_.l("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=I)};
_.L.handleUpdateTopbarAvatarAction=function(I){var y;I=(y=_.u(I,Ln8))==null?void 0:y.avatarUrl;var D,F;y=(D=this.data)==null?void 0:(F=D.avatar)==null?void 0:F.thumbnails;I&&y&&(D={thumbnails:[Object.assign({},y[0],{url:I})]},this.set("data.avatar",D))};
_.mD.Object.defineProperties(VT.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.XB(this.hostElement).querySelector("#button")}}});
VT.prototype.onTap=VT.prototype.onTap;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],VT.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.fEM.YtButtonBehavior),_.A("design:type",Object)],VT.prototype,"ytButtonBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],VT.prototype,"data",void 0);
_.W([_.a0("yt-icon-button#button"),_.A("design:type",Object)],VT.prototype,"iconButton",void 0);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VT.prototype,"onTap",null);_.W([_.yd({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],VT);
_.Xf()(VT,"ytd-topbar-menu-button-renderer",function(){if(aiZ===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);aiZ=I}I=aiZ;return I},{allowedProps:["data"],
mode:1});var c$a;var Zz=function(){return _.k.apply(this,arguments)||this};
_.E(Zz,_.k);Zz.prototype.getSelected=function(){return this.reasons.selected};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zz.prototype,"data",void 0);_.W([_.a0("#reasons"),_.A("design:type",Object)],Zz.prototype,"reasons",void 0);_.W([_.yd({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Zz);
_.a(Zz,"ytd-ad-feedback-content",function(){if(c$a!==void 0)return c$a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return c$a=I},{mode:1});var WtG;var gs=function(){return _.k.apply(this,arguments)||this};
_.E(gs,_.k);_.L=gs.prototype;_.L.onPopupOpened=function(){_.uj(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.L.computeConfirmButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.confirmLabel}};
_.L.computeCancelButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.cancelLabel}};
_.L.onConfirmTap=function(){var I=this.content.getSelected();I!==void 0&&(I=this.data.reasons[I].endpoint)&&(_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}}),_.uj(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.L.sendFeedbackSubmitToastAction=function(){var I;(I=this.data)!=null&&I.completionMessage&&(I=_.hS(this.data.completionMessage),_.uj(this.hostElement,"yt-open-popup-action",[I,this]))};
_.L.onCancelTap=function(){_.uj(this.hostElement,"yt-close-popup-action")};
gs.prototype.onPopupOpened=gs.prototype.onPopupOpened;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gs.prototype,"data",void 0);_.W([_.a0("#content"),_.A("design:type",Object)],gs.prototype,"content",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],gs.prototype,"onPopupOpened",null);
_.W([_.yd({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],gs);
_.a(gs,"ytd-ad-feedback-renderer",function(){if(WtG!==void 0)return WtG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return WtG=I},{mode:1});var Cn8;var Bze=function(){return _.k.apply(this,arguments)||this};
_.E(Bze,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Bze.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Bze.prototype,"data",void 0);_.W([_.yd({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Bze);
_.a(Bze,"ytd-ad-info-dialog-content",function(){if(Cn8!==void 0)return Cn8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Cn8=I},{mode:1});var i6Y;var I4=function(){return _.k.apply(this,arguments)||this};
_.E(I4,_.k);I4.prototype.computeConfirmButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.confirmLabel}};
I4.prototype.onConfirmTap=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
I4.prototype.computeShouldShowTitle=function(){var I;return!((I=this.data)==null||!I.title)};
I4.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
I4.prototype.onPopupClosed=I4.prototype.onPopupClosed;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],I4.prototype,"data",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],I4.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],I4);
_.a(I4,"ytd-ad-info-dialog-renderer",function(){if(i6Y!==void 0)return i6Y;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return i6Y=I},{mode:1});var A$8;var yc=function(){var I=_.k.apply(this,arguments)||this;I.actionButtonClass="action-button";I.dismissButtonId="dismiss-button";I.dialogDismiss=!0;return I};
_.E(yc,_.k);_.L=yc.prototype;_.L.computeInPlayer=function(I){return(I==null?void 0:I.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.L.computedLogo=function(){var I,y;return this.isDarkTheme()?(I=this.data)==null?void 0:I.logoDark:(y=this.data)==null?void 0:y.logo};
_.L.computedHeaderImage=function(){var I,y;return this.isDarkTheme()?(I=this.data)==null?void 0:I.headerImageDark:(y=this.data)==null?void 0:y.headerImage};
_.L.computeLogoIconId=function(){var I,y,D,F=(I=this.computedLogo())==null?void 0:(y=I.sources)==null?void 0:(D=y[0])==null?void 0:D.height;return F&&F%31===0?"logo-icon-with-padding":"logo-icon"};
_.L.computeLogoIconHeight=function(){var I,y,D,F=(I=this.computedLogo())==null?void 0:(y=I.sources)==null?void 0:(D=y[0])==null?void 0:D.height;return F&&F%31===0?"31":"24"};
_.L.onPopupClosed=function(){_.nR().resolve(_.gf).dispose()};
_.L.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.L.onShow=function(){this.inPlayer&&_.MP(6);this.titleElement.focus()};
_.L.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var I=0;I<this.data.impressionEndpoints.length;I++){var y=_.u(this.data.impressionEndpoints[I],_.Iu);y&&this.ytComponentBehavior.resolveCommand(y)}};
_.L.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.uj(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.mD.Object.defineProperties(yc.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var I,y;return!((I=this.data)==null||!I.headerImageDark)&&!((y=this.data)==null||!y.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.secondaryButton)}}});
yc.prototype.onPopupClosed=yc.prototype.onPopupClosed;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yc.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Pb.YtVisibilityBehavior),_.A("design:type",Object)],yc.prototype,"ytVisibilityBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yc.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],yc.prototype,"actionButtonClass",void 0);_.W([_.M(),_.A("design:type",Object)],yc.prototype,"dismissButtonId",void 0);_.W([_.M(),_.A("design:type",Object)],yc.prototype,"dialogDismiss",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yc.prototype,"hasHeaderImage",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yc.prototype,"hasPremiumButton",null);
_.W([_.M({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.A("design:type",Boolean)],yc.prototype,"inPlayer",void 0);_.W([_.a0("#dismiss-button"),_.A("design:type",HTMLElement)],yc.prototype,"dismissButton",void 0);_.W([_.a0("#title"),_.A("design:type",HTMLElement)],yc.prototype,"titleElement",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yc.prototype,"onPopupClosed",null);
_.W([_.yd({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],yc);
_.a(yc,"ytd-enforcement-message-view-model",function(){if(A$8!==void 0)return A$8;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return A$8=I},{mode:1});var $tZ;var b6C;var Dv=function(){var I=_.k.apply(this,arguments)||this;I.TEST_ONLY={immediateValidation:function(){I.immediateValidation()},
onValidationResponse:function(y){I.onValidationResponse(y)},
onGenerateHandleFromNameResponse:function(y){I.onGenerateHandleFromNameResponse(y)}};
return I};
_.E(Dv,_.k);_.L=Dv.prototype;_.L.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.L.validate=function(){this.immediateValidation()};
_.L.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.L.setHandleInputValue=function(I){this.handleDir=this.getHandleDir(I);this.handleInput.value=I;this.validationState={status:"PENDING"};this.immediateValidation()};
_.L.getHandleDir=function(I){var y=I===""&&!1;return(y=_.vIa.test.call(_.vIa,I))?"rtl":"ltr"};
_.L.onDataChanged=function(){var I,y;this.handleDir=this.getHandleDir((y=(I=this.data)==null?void 0:I.handle)!=null?y:"");var D;this.validationState=((D=this.data)==null?0:D.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var F;((F=this.data)==null?0:F.validateOnInit)&&this.immediateValidation()};
_.L.stopPropagation=function(I){I.stopPropagation()};
_.L.onInput=function(){var I;this.handleDir=this.getHandleDir((I=this.handleInput.value)!=null?I:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.L.onFocusout=function(I){this.handleInput.contains(I.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.L.delayedValidation=function(){var I,y;this.debouncedValidation((y=(I=this.data)==null?void 0:I.validationDelayMs)!=null?y:1E3)};
_.L.immediateValidation=function(){this.debouncedValidation(0)};
_.L.debouncedValidation=function(I){var y=this;_.v4(this,"debouncedValidation",function(){var D,F=y.staticValidation((D=y.handleInput.value)!=null?D:"");if(F!==void 0)y.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:F};else{var R;if((R=y.data)!=null&&R.validateChannelHandleCommand){y.validationState={status:"LOADING"};var O;y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{handle:(O=y.handleInput.value)!=null?O:""},commandController:{onSuccess:function(w,
v){y.onValidationResponse(v)},
onServerError:function(w,v){y.onValidationServerError(v)}}})}else y.handleUnexpectedValidationError(new _.g6("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",y.data))}},I)};
_.L.staticValidation=function(I){var y;if(((y=this.data)==null?void 0:y.channelHandleStaticValidationParams)!==void 0){y=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(I)&&y.validValueRegexpErrorMessage!==void 0)return y.validValueRegexpErrorMessage;if(y.minLength!==void 0&&I.length<y.minLength&&y.minLengthErrorMessage!==void 0)return y.minLengthErrorMessage;if(y.maxLength!==void 0&&I.length>y.maxLength&&y.maxLengthErrorMessage!==void 0)return y.maxLengthErrorMessage}};
_.L.onValidationResponse=function(I){var y=_.u(I.result,J5o);y===void 0?this.handleUnexpectedValidationError(new _.g6("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",I)):this.handleValidationResultRenderer(y)};
_.L.onValidationServerError=function(I){this.handleUnexpectedValidationError(new _.g6("ValidateChannelHandle request failed.",I))};
_.L.handleValidationResultRenderer=function(I){if(I.handle===void 0)this.handleUnexpectedValidationError(new _.g6("ChannelHandleValidationResultRenderer does not contain handle.",I));else if(I.handle===this.handleInput.value)switch(I.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:I.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:I.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.g6("Unrecognized ChannelHandleValidationResult",I));break;default:_.ya(I.result)}};
_.L.handleUnexpectedValidationError=function(I){var y;this.validationState={status:"UNKNOWN",handle:(y=this.handleInput.value)!=null?y:""};_.tq(I)};
_.L.stopEventPropagation=function(I){I.stopPropagation()};
_.L.updateHandleOnChannelNameInputChange=function(I){if(!this.wasEdited){var y,D;this.debouncedGenerateHandleFromName(I,(D=(y=this.data)==null?void 0:y.validationDelayMs)!=null?D:1E3)}};
_.L.debouncedGenerateHandleFromName=function(I,y){var D=this;_.v4(this,"debouncedGenerateHandleFromName",function(){var F;(F=D.data)!=null&&F.validateChannelHandleCommand?D.ytComponentBehavior.resolveCommand(D.data.validateChannelHandleCommand,{form:{name:I},commandController:{onSuccess:function(R,O){D.onGenerateHandleFromNameResponse(O)},
onServerError:function(R,O){_.tq(new _.g6("Error calling GenerateHandleFromName",O))}}}):_.tq(new _.g6("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",D.data))},y)};
_.L.onGenerateHandleFromNameResponse=function(I){this.wasEdited||((I=_.u(I.result,wQG))?this.setHandleInputValue(I.handle):_.tq(new _.g6("Invalid results when generate handle from name")))};
_.mD.Object.defineProperties(Dv.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var I;if(I=this.validationState)I=this.validationState,I=I.status==="OK"||I.status==="UNKNOWN";if(I)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.validationState)==null?void 0:I.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 I,y=(I=this.channelHandleEntity)==null?void 0:I.handleEdit;this.handleDir=this.getHandleDir(y!=null?y:"");return y}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var I,y;if(((I=this.data)==null?void 0:(y=I.channelHandleStaticValidationParams)==null?void 0:y.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Dv.prototype.stopEventPropagation=Dv.prototype.stopEventPropagation;Dv.prototype.onDataChanged=Dv.prototype.onDataChanged;Dv.prototype.applyHandleEdit=Dv.prototype.applyHandleEdit;Dv.prototype.onValueChanged=Dv.prototype.onValueChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Dv.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Dv.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Dv.prototype,"wasEdited",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],Dv.prototype,"handleDir",void 0);_.W([_.a0("#handle-input"),_.A("design:type",Object)],Dv.prototype,"handleInput",void 0);_.W([_.M(),_.Y("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dv.prototype,"value",null);
_.W([_.ke("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dv.prototype,"onValueChanged",null);_.W([_.Y("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dv.prototype,"errorIndicator",null);_.W([_.M({reflectToAttribute:!0}),_.Y("errorIndicator"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Dv.prototype,"borderErrorIndicator",null);
_.W([_.M({selectorArgs:["data.channelHandleEntityKey"],selector:function(I,y){return _.nC(I.entities,"channelHandle",y)}}),
_.A("design:type",Object)],Dv.prototype,"channelHandleEntity",void 0);_.W([_.Y("channelHandleEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dv.prototype,"handleEdit",null);_.W([_.ke("handleEdit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dv.prototype,"applyHandleEdit",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dv.prototype,"onDataChanged",null);
_.W([_.Y("data.channelHandleStaticValidationParams.validValueRegexp"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dv.prototype,"validValueRegexp",null);_.W([_.z4("yt-service-request-sent"),_.z4("yt-service-request-completed"),_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Dv.prototype,"stopEventPropagation",null);_.W([_.yd({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Dv);
_.a(Dv,"ytd-channel-handle-input-renderer",function(){if(b6C!==void 0)return b6C;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return b6C=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var Fv=function(){var I=_.k.apply(this,arguments)||this;I.data=null;I.errorMessage=null;I.isLoading=!0;I.hideContainer=!1;I.enableNewChannelCreationOnIdForAll=_.l("enable_new_channel_creation_for_id4all");I.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"};I.testOnly={setErrorMessage:function(y){I.resetErrorState();
I.setErrorState(y)}};
return I};
_.E(Fv,_.k);_.L=Fv.prototype;_.L.created=function(){this.logScreenVe()};
_.L.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")};
_.L.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var I;((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.set("errorMessage",_.Ug(this.zeroStepErrorMessageEntity.value))};
_.L.onCreateTap=function(){var I=this;if(this.data&&this.data.channelCreationEndpoint){var y,D;if(!((y=this.data.createChannelButton)==null?0:(D=y.buttonRenderer)==null?0:D.isDisabled)){var F;if((F=this.nameInput)!=null&&F.value){this.setLoadingState();var R,O;y=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(R=this.handleInput)==null?void 0:R.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((O=this.handleInput)==null?void 0:O.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:y,commandController:{onSuccess:function(w,v){I.onChannelCreationEndpointSuccess(v);I.obakeImageSource&&_.Jq("channelCreatedWithObakeImage",{imageSourceType:I.obakeImageSource})},
onServerError:function(){I.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.L.endpointRequiresServiceRequestAction=function(I){return!!_.u(I,_.Z3)||!!_.u(I,Ln8)};
_.L.isNavigateAction=function(I){var y;return!!_.u(I,ZNg)||!!_.u((y=_.u(I,Kna))==null?void 0:y.command,ZNg)};
_.L.isPlaylistAction=function(I){return!!_.u(I,_.Lb)||!!_.u(I,_.P0)};
_.L.onChannelCreationEndpointSuccess=function(I){if(I.createChannelError){var y;this.setErrorState((y=I.createChannelError)==null?void 0:y.errorMessage);this.handleInput&&this.handleInput.validate()}else{I.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(I.navigationEndpoint);if(I.actions){y=_.J(I.actions);for(var D=y.next();!D.done;D=y.next())if(D=D.value,this.endpointRequiresServiceRequestAction(D)&&this.ytComponentBehavior.resolveCommand(D),this.isNavigateAction(D)){var F=void 0;D=_.u((F=
_.u(D,Kna))==null?void 0:F.command,ZNg);F=void 0;this.isPlaylistAction((F=D)==null?void 0:F.endpoint)&&(_.uj(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),F=void 0,this.ytComponentBehavior.resolveCommand((F=D)==null?void 0:F.endpoint))}}I.actions&&I.actions.some(function(R){var O;return _.u(R,ZNg)||_.u((O=_.u(R,Kna))==null?void 0:O.command,ZNg)})||_.uj(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.L.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.L.onCancelTap=function(){var I,y,D;if(!((I=this.data)==null?0:(y=I.cancelButton)==null?0:(D=y.buttonRenderer)==null?0:D.isDisabled)){var F,R,O;I=(F=this.data)==null?void 0:(R=F.cancelButton)==null?void 0:(O=R.buttonRenderer)==null?void 0:O.command;if(!I||!_.u(I,_.Fv_)){var w;this.nameInput&&((w=this.data)==null?0:w.name)&&(this.nameInput.value=this.data.name);var v;this.handleInput&&((v=this.data)==null?0:v.channelHandleInput)&&(this.handleInput.data=_.u(this.data.channelHandleInput,vSa));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.L.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.L.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.L.onClearProfilePhotoTap=function(){var I,y,D;((I=this.data)==null?0:(y=I.clearProfilePhotoButton)==null?0:(D=y.buttonRenderer)==null?0:D.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.L.onEditAvatarTap=function(){var I,y,D;((I=this.data)==null?0:(y=I.editAvatarButton)==null?0:(D=y.buttonRenderer)==null?0:D.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.L.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)};
_.L.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var I;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((I=this.data)==null?0:I.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.L.setErrorState=function(I){this.resetErrorState();if(I)this.set("errorMessage",I);else{var y;if((y=this.zeroStepErrorMessageEntity)==null?0:y.value)this.set("errorMessage",_.Ug(this.zeroStepErrorMessageEntity.value));else{var D;((D=this.data)==null?0:D.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.L.fetchImageBlobWithAlr=function(I,y){y=y===void 0?5:y;var D=this,F,R,O,w,v;return _.S(function(P){switch(P.nextAddress){case 1:return P.yield(fetch(I,{method:"GET",mode:"cors"}),2);case 2:F=P.yieldResult;if(F.ok){P.jumpTo(3);break}if(y===0)throw Error();R=D.addJitter(Math.pow(2,5-y));return P.yield(new Promise(function(K){setTimeout(K,R*1E3)}),4);
case 4:return P.return(D.fetchImageBlobWithAlr(I,y-1));case 3:if(!F.headers.get("content-type").split(";").some(function(K){return K.trim()==="text/plain"})){P.jumpTo(5);
break}O=D;w=O.fetchImageBlobWithAlr;return P.yield(F.text(),6);case 6:return P.return(w.call(O,P.yieldResult,y-1));case 5:return P.yield(F.blob(),7);case 7:return v=P.yieldResult,P.return(v)}})};
_.L.addJitter=function(I){var y=I*.3*Math.random();Math.random()>.5&&(y*=-1);return I+y};
_.L.openProfilePicturePicker=function(){var I=this,y,D,F,R,O,w;return _.S(function(v){if(v.nextAddress==1){y=I.data.scottyUploadUrl;if(!y)return v.return();D=document.documentElement.hasAttribute("dark");F=document.body.style.colorScheme;D&&(document.body.style.colorScheme="dark");R=vDQ(S3Q(wfy(yxY(D?"dark":"light")),function(P){var K,r,N,h,x;return _.S(function(q){if(q.nextAddress==1)return K=_.rC(QJb(new QqZ(P.photoUrl,!1)).build(),"alr","yes"),I.obakeImageSource=I.pictureChangeSourceToObakeImageSourceType(P.photoSource),
_.nj(q,2),I.setLoadingState(),q.yield(I.fetchImageBlobWithAlr(K),4);if(q.nextAddress!=2)return r=q.yieldResult,N=new FileReader,N.addEventListener("load",function(){var X,f,m,z,B,C;return _.S(function(H){if(H.nextAddress==1){if(r.size>15728640)return I.setErrorState((X=I.data)==null?void 0:X.imageSizeErrorMessage),_.tq(Error("bm")),H.return();if(!N.result)return I.setErrorState((f=I.data)==null?void 0:f.genericImageLoadErrorMessage),_.tq(Error("cm")),H.return();m=N.result;_.nj(H,2);return H.yield(Mze(r,
y),4)}if(H.nextAddress!=2)return z=H.yieldResult,I.handleImageUpdatedAction(m,z),I.resetErrorState(),_.lZ(H,0);B=_.dj(H);I.setErrorState((C=I.data)==null?void 0:C.uploadErrorMessage);if(B instanceof Error)_.vu(B);else{var e=new _.g6(JSON.stringify(B));_.vu(e)}_.Cj(H)})}),N.readAsDataURL(r),_.lZ(q,0);
h=_.dj(q);I.setErrorState((x=I.data)==null?void 0:x.genericImageLoadErrorMessage);h instanceof Error?_.vu(h):_.Sb(new _.g6(JSON.stringify(h)));_.Cj(q)})}),function(){I.hideContainer=!1;
document.body.style.colorScheme=F});
_.nj(v,2);return((O=I.data)==null?0:O.shouldViewChannelCreationFormForSupex)?v.yield(R.openPicker("profile-picture/art-selection"),5):v.yield(R.openPicker(),5)}if(v.nextAddress!=2)return _.lZ(v,0);_.dj(v);I.setErrorState((w=I.data)==null?void 0:w.selectImageErrorMessage);_.Cj(v)})};
_.L.pictureChangeSourceToObakeImageSourceType=function(I){switch(I){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.L.logScreenVe=function(){_.d7(_.W4(),124448)};
_.L.graftServerVe=function(){var I=_.s_(),y,D,F=(y=this.data)==null?void 0:(D=y.loggingDirectives)==null?void 0:D.trackingParams;F&&I&&(this.channelCreationFormVe=_.W4().graftServerVe(F,I),I={visualElement:this.channelCreationFormVe},_.a6().reportShown(I))};
_.L.isNameChanged=function(I){var y;return((y=this.data)==null?void 0:y.name)!==I};
_.L.isHandleChanged=function(I){var y,D=_.u((y=this.data)==null?void 0:y.channelHandleInput,vSa);return D&&I?D.handle!==I:!1};
_.L.handleImageUpdatedAction=function(I,y){this.hideContainer=!1;this.previewDataUrl=I;this.encryptedBlobId=y};
_.L.handleImageSelectionErrorAction=function(I){this.hideContainer=!1;this.setErrorState(I)};
_.L.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.L.showContainer=function(){this.hideContainer=!1};
_.L.maybeWipeZeroStepErrorMessage=function(){var I,y=(I=this.data)==null?void 0:I.zeroStepErrorMessageEntityKey,D;y&&((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.ytdReduxBehavior.dispatch(_.WS("stringEntity",y,{key:y,value:""}))};
_.mD.Object.defineProperties(Fv.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 I;return((I=this.photoThumbnail)==null?0:I.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 I;return!((I=this.data)==null||!I.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.descriptionInfo}}});
Fv.prototype.dataChanged=Fv.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Fv.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Fv.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Fv.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Fv.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Fv.prototype,"errorMessage",void 0);
_.W([_.M(),_.A("design:type",Object)],Fv.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",String)],Fv.prototype,"previewDataUrl",void 0);_.W([_.M(),_.A("design:type",Number)],Fv.prototype,"obakeImageSource",void 0);_.W([_.M(),_.A("design:type",Object)],Fv.prototype,"hideContainer",void 0);_.W([_.a0("#title-input"),_.A("design:type",Object)],Fv.prototype,"nameInput",void 0);_.W([_.a0("#handle-input"),_.A("design:type",Object)],Fv.prototype,"handleInput",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Fv.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.W([_.M({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Wp_}),_.A("design:type",Object)],Fv.prototype,"zeroStepErrorMessageEntity",void 0);_.W([_.Y("data","data.isDefaultProfilePhoto","previewDataUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fv.prototype,"photoThumbnail",null);
_.W([_.Y("data","data.isDefaultProfilePhoto","photoThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fv.prototype,"userSetPhotoThumbnailUrl",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Fv.prototype,"hideProfilePhotoButtonLayer",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Fv.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.W([_.Bp("data","zeroStepErrorMessageEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fv.prototype,"dataChanged",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.descriptionInfo","zeroStepErrorMessageEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Fv.prototype,"description",null);_.W([_.yd({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Fv);
_.a(Fv,"ytd-channel-creation-dialog-renderer",function(){if($tZ!==void 0)return $tZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return $tZ=I},{mode:1});var H6a;var R4=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;I.isDisabled=!1;return I};
_.E(R4,_.k);R4.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
R4.prototype.updateDisabled=function(){var I;this.isDisabled=this.isLoading||((I=this.handleInput)==null?void 0:I.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
R4.prototype.onSaveClick=function(){var I=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var y;((y=this.data)==null?void 0:y.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=I.data)==null?0:D.nextEndpoint){var F;I.ytComponentBehavior.resolveCommand((F=I.data)==null?void 0:F.nextEndpoint)}else I.isLoading=
!1,I.closeDialog()},
onServerError:function(){I.isLoading=!1;I.handleInput.validate();var D;I.errorMessage=(D=I.data)==null?void 0:D.errorMessage}}}))}};
R4.prototype.closeDialog=function(){_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
R4.prototype.updateDisabled=R4.prototype.updateDisabled;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],R4.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],R4.prototype,"data",void 0);_.W([_.a0("#handle-input"),_.A("design:type",Object)],R4.prototype,"handleInput",void 0);_.W([_.ke("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],R4.prototype,"updateDisabled",null);
_.W([_.yd({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],R4);
_.a(R4,"ytd-channel-handle-edit-dialog-renderer",function(){if(H6a!==void 0)return H6a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return H6a=I},{mode:1});var eWb;var Oi=function(){return _.k.apply(this,arguments)||this};
_.E(Oi,_.k);Oi.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Oi.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Oi);
_.a(Oi,"ytd-channel-switcher-footer-renderer",function(){if(eWb!==void 0)return eWb;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return eWb=I},{mode:1});var TzG;var sIZ;var LB=function(){return _.k.apply(this,arguments)||this};
_.E(LB,_.k);LB.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
LB.prototype.onIronChange=LB.prototype.onIronChange;_.W([_.M(),_.A("design:type",Object)],LB.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Function)],LB.prototype,"onDontAskAgainChanged",void 0);_.W([_.a0("#checkbox"),_.A("design:type",Object)],LB.prototype,"checkbox",void 0);_.W([_.z4("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LB.prototype,"onIronChange",null);
_.W([_.yd({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],LB);
_.a(LB,"ytd-identity-prompt-footer-renderer",function(){if(sIZ!==void 0)return sIZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return sIZ=I},{mode:1});var J6=function(){var I=_.k.apply(this,arguments)||this;I.dontAskAgain=!1;I.showPopup=!1;I.boundDontAskAgainChanged=function(y){I.dontAskAgainChanged(y)};
I.boundOnAccountItemTap=function(y){I.onAccountItemTap(y)};
return I};
_.E(J6,_.k);_.L=J6.prototype;
_.L.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]]"}}}}}};
_.L.ready=function(){var I=this;_.XB(this.hostElement).querySelector("#container").addEventListener("scroll",function(){I.ytRendererBehavior.markDirty()})};
_.L.dontAskAgainChanged=function(I){this.dontAskAgain=I};
_.L.onAccountItemTap=function(I){if(I){var y={};this.dontAskAgain&&(y={dont_ask_again:this.dontAskAgain});_.FB(I,y)}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.L.redirectOnlyAccount=function(I){I.sections&&I.sections.length>0&&(I=_.u(I.sections[0],_.xjg),(I==null?0:I.contents)&&(I==null?void 0:I.contents.length)<=1?(I=_.lP(window.location.href),(I==null?0:I.next)&&_.s1q(I.next)?_.FB(I.next):_.FB("/")):this.showPopup=!0)};
J6.prototype.dataChanged=J6.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],J6.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Object)],J6.prototype,"dontAskAgain",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J6.prototype,"showPopup",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Object)],J6.prototype,"boundDontAskAgainChanged",void 0);_.W([_.M({reflectToAttribute:!1}),_.A("design:type",Object)],J6.prototype,"boundOnAccountItemTap",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J6.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],J6);
_.a(J6,"ytd-channel-switcher-renderer",function(){if(TzG!==void 0)return TzG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return TzG=I},{mode:1});var V2R;var wD=function(){return _.k.apply(this,arguments)||this};
_.E(wD,_.k);_.mD.Object.defineProperties(wD.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.W([_.M(),_.A("design:type",Object)],wD.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],wD.prototype,"steps",null);_.W([_.yd({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],wD);
_.a(wD,"ytd-channel-transfer-stepper-renderer",function(){if(V2R!==void 0)return V2R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return V2R=I},{mode:1});var Z6a;var vE=function(){var I=_.k.apply(this,arguments)||this;I.data=null;I.isError=!1;I.isLoading=!1;return I};
_.E(vE,_.k);_.L=vE.prototype;_.L.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"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.L.computeProfileName=function(I){return I?I.givenNameValue+" "+I.familyNameValue:""};
_.L.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)};
_.L.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)};
vE.prototype.onYtServiceRequestError=vE.prototype.onYtServiceRequestError;vE.prototype.onYtServiceRequestSent=vE.prototype.onYtServiceRequestSent;vE.prototype.dataChanged=vE.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],vE.prototype,"data",void 0);
_.W([_.M({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.A("design:type",String)],vE.prototype,"profileName",void 0);_.W([_.M(),_.A("design:type",Object)],vE.prototype,"isError",void 0);_.W([_.M(),_.A("design:type",Object)],vE.prototype,"isLoading",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vE.prototype,"dataChanged",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],vE.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],vE.prototype,"onYtServiceRequestError",null);_.W([_.yd({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],vE);
_.a(vE,"ytd-channel-warm-welcome-cont-renderer",function(){if(Z6a!==void 0)return Z6a;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Z6a=I},{mode:1});var g$1;var Sh=function(){var I=_.k.apply(this,arguments)||this;I.data=null;return I};
_.E(Sh,_.k);Sh.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Sh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Sh.prototype,"data",void 0);_.W([_.yd({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Sh);
_.a(Sh,"ytd-channel-warm-welcome-renderer",function(){if(g$1!==void 0)return g$1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return g$1=I},{mode:1});var IGb;var t6=function(){return _.k.apply(this,arguments)||this};
_.E(t6,_.k);_.mD.Object.defineProperties(t6.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.authorThumbnail)||{}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],t6.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],t6.prototype,"thumbnailDetails",null);_.W([_.yd({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],t6);
_.a(t6,"ytd-comment-preview-renderer",function(){if(IGb!==void 0)return IGb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IGb=I},{mode:1});var y1Y;var PE=function(){return _.k.apply(this,arguments)||this};
_.E(PE,_.k);PE.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mD.Object.defineProperties(PE.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.submitButton}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],PE.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],PE.prototype,"submitButton",null);_.W([_.yd({is:"ytd-notice-renderer",disableElementRegistration:!0})],PE);
_.a(PE,"ytd-notice-renderer",function(){if(y1Y!==void 0)return y1Y;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return y1Y=I},{mode:1});var DB8;var KB=function(){return _.k.apply(this,arguments)||this};
_.E(KB,_.k);KB.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],KB.prototype,"data",void 0);_.W([_.yd({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],KB);
_.a(KB,"ytd-preview-comment-dialog-content",function(){if(DB8!==void 0)return DB8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return DB8=I},{mode:1});var FIQ;var Ui=function(){return _.k.apply(this,arguments)||this};
_.E(Ui,_.k);Ui.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Ui.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ui.prototype,"data",void 0);_.W([_.yd({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Ui);
_.a(Ui,"ytd-preview-comment-dialog-renderer",function(){if(FIQ!==void 0)return FIQ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return FIQ=I},{mode:1});var R$T;var OlZ=_.l("web_button_rework")&&_.KR("BUTTON_REWORK")||_.l("web_button_rework_with_live"),rD=function(){var I=_.k.apply(this,arguments)||this;I.closeLabel=_.zC("CLOSE");I.selectedAmountIndex=1;I.privacyCheckboxValue=!1;I.useAmsterdamStyle=OlZ;I.amountPlaceholderIndex=-1;return I};
_.E(rD,_.k);_.L=rD.prototype;_.L.onAmountClick=function(I){this.selectedAmountIndex=_.XB(this.hostElement).querySelector("#amounts").indexForElement(I.currentTarget)};
_.L.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.uj(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.L.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.uj(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.uj(this.hostElement,"yt-close-popup-action",[this.is]);var I;(I=_.NY())==null||I.getPlayerPromise().then(function(y){y.pauseVideo()})}};
_.L.donationCallback=function(I){I.success?(this.hostElement.hasAttribute("live-chat")&&I.response&&I.response.data&&I.response.data.actions&&_.uj(this.hostElement,"yt-live-chat-open-popup",[I.response.data.actions[0]]),_.uj(this.hostElement,"yt-close-popup-action",[this.is]),_.uj(this.hostElement,"yt-live-chat-close-buy-flow")):I.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(I.errorMessageRenderer)};
_.L.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.XB(this.hostElement).querySelector("#custom-amount-input").focus()};
_.L.updateConfirmationDialogTextWithAmount=function(I){var y=this.getConfirmDialogRuns();y&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(y),"text"],this.getFormattedAmount(I))};
_.L.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.L.getAmountPlaceholderIndex=function(I){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=I.findIndex(function(y){return y.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.L.getFormattedAmount=function(I){var y;return(new _.vF(4,((y=this.data)==null?void 0:y.currencyCode)||"")).format(I)};
_.L.isAmountValid=function(I){if(I==="")return!1;I=Number(I)*1E6;var y=this.get("minAmountMicros",this.data),D=this.get("maxAmountMicros",this.data);return y&&I<y||D&&I>D?!1:!0};
_.L.setInputError=function(){this.shouldShowValidationError?_.XB(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.XB(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.L.setInitialCheckboxValue=function(){var I;this.privacyCheckboxValue=!((I=this.data)==null||!I.privacyCheckboxInitialState)};
_.L.updateCustomAmountInputFromBinding=function(I){this.customAmountInput=I.detail.value};
_.L.updatePrivacyCheckboxValueFromBinding=function(I){this.privacyCheckboxValue=I.detail.value};
_.mD.Object.defineProperties(rD.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var I=this,y,D;return((y=this.data)==null?void 0:(D=y.suggestedAmounts)==null?void 0:D.map(function(F,R){return{buttonRenderer:{style:I.selectedAmountIndex===R?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:F.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 I;return!((I=this.data)==null||!I.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 I=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(I&&this.amountMicros!==null)return Object.assign({},I,{ypcGetCartEndpoint:Object.assign({},I.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 I=this.get("confirmLargeAmount",this.data);if(I&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),I}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I=this.get("donateButton.buttonRenderer",this.data);if(I)return Object.assign({},I,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
rD.prototype.setInitialCheckboxValue=rD.prototype.setInitialCheckboxValue;rD.prototype.setInputError=rD.prototype.setInputError;rD.prototype.setFocusOnCustomAmountInput=rD.prototype.setFocusOnCustomAmountInput;_.W([_.Q(TfT),_.A("design:type",Object)],rD.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rD.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],rD.prototype,"closeLabel",void 0);_.W([_.M(),_.A("design:type",Object)],rD.prototype,"selectedAmountIndex",void 0);_.W([_.M(),_.A("design:type",String)],rD.prototype,"customAmountInput",void 0);_.W([_.M(),_.A("design:type",Object)],rD.prototype,"privacyCheckboxValue",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],rD.prototype,"useAmsterdamStyle",void 0);_.W([_.ke("customAmount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rD.prototype,"setFocusOnCustomAmountInput",null);_.W([_.Y("data","selectedAmountIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],rD.prototype,"suggestedAmountButtons",null);
_.W([_.Y("data","selectedAmountIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rD.prototype,"isCustomAmountSelected",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rD.prototype,"showPrivacyCheckbox",null);_.W([_.Y("data","selectedAmountIndex","customAmount"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"amountMicros",null);
_.W([_.Y("isCustomAmountSelected","customAmountInput"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"customAmount",null);_.W([_.Y("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rD.prototype,"shouldShowValidationError",null);_.W([_.Y("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rD.prototype,"isDonateButtonEnabled",null);
_.W([_.Y("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"donateCommand",null);_.W([_.Y("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"donateCommandWithConfirmation",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"largeDonationThreshold",null);
_.W([_.Y("customAmount","donateCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"confirmLargeAmountCommand",null);_.W([_.Y("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.A("design:type",Object),_.A("design:paramtypes",[])],rD.prototype,"donateButtonRenderer",null);_.W([_.ke("shouldShowValidationError"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rD.prototype,"setInputError",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rD.prototype,"setInitialCheckboxValue",null);_.W([_.yd({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],rD);
_.a(rD,"ytd-donation-amount-picker-renderer",function(){if(R$T!==void 0)return R$T;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return R$T=I},{mode:1});var LIT;var J1C=function(){return _.k.apply(this,arguments)||this};
_.E(J1C,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],J1C.prototype,"ytComponentBehavior",void 0);_.W([_.M({}),_.A("design:type",Object)],J1C.prototype,"data",void 0);_.W([_.yd({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],J1C);
_.a(J1C,"ytd-donation-post-transaction-content",function(){if(LIT!==void 0)return LIT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return LIT=I},{mode:1});var weg;var jh=function(){return _.k.apply(this,arguments)||this};
_.E(jh,_.k);jh.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.W([_.M({}),_.A("design:type",Object)],jh.prototype,"data",void 0);_.W([_.yd({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],jh);
_.a(jh,"ytd-donation-post-transaction-renderer",function(){if(weg!==void 0)return weg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return weg=I},{mode:1});var vdo;var SaZ;var o4=function(){return _.k.apply(this,arguments)||this};
_.E(o4,_.k);o4.prototype.computeIsStreamingProvider=function(I){return!!I.isStreamingShelf};
o4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],o4.prototype,"data",void 0);_.W([_.M({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],o4.prototype,"isStreamingProvider",void 0);
_.W([_.yd({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],o4);
_.a(o4,"ytd-media-provider-renderer",function(){if(SaZ!==void 0)return SaZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SaZ=I},{mode:1});var tOC;var Nf=function(){return _.k.apply(this,arguments)||this};
_.E(Nf,_.k);Nf.prototype.observeLightsourcePalette=function(){var I,y=(I=this.data)==null?void 0:I.vibrantsourceColorPaletteData;y&&_.Af(this.hostElement,y)};
Nf.prototype.observeLightsourcePalette=Nf.prototype.observeLightsourcePalette;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Nf.prototype,"data",void 0);
_.W([_.ke("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nf.prototype,"observeLightsourcePalette",null);_.W([_.yd({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Nf);
_.a(Nf,"ytd-streaming-pop-up-dialog",function(){if(tOC!==void 0)return tOC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return tOC=I},{mode:1});var h6=function(){return _.k.apply(this,arguments)||this};
_.E(h6,_.k);h6.prototype.onPopupOpened_=function(){var I;((I=this.data)==null?0:I.serviceEndpoint)&&_.nR().resolve(_.MC).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
h6.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
h6.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"}}}}};
h6.prototype.onPopupOpened_=h6.prototype.onPopupOpened_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.ha),_.A("design:type",Object)],h6.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],h6.prototype,"data",void 0);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h6.prototype,"onPopupOpened_",null);_.W([_.yd({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],h6);
_.a(h6,"ytd-brandconnect-popup-renderer",function(){if(vdo!==void 0)return vdo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vdo=I},{mode:1});var PJZ;var xL=function(){return _.k.apply(this,arguments)||this};
_.E(xL,_.k);_.L=xL.prototype;_.L.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.dataChanged=function(){for(var I=0;I<this.getOptionRenderers().length;I++)this.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+I+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.L.updateSubmitButton=function(I){this.set("data.submitButton.buttonRenderer.isDisabled",!I)};
_.L.computeAlt=function(I){return _.rY(I)};
_.L.onDismissTap=function(){_.uj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.L.getOptionRenderers=function(I){return(I=I||this.data)&&I.options?I.options.reduce(function(y,D){D.checkboxSurveyOptionRenderer&&y.push(D.checkboxSurveyOptionRenderer);return y},[]):[]};
_.L.onOptionChange=function(I){var y=this,D=!1;if(I.detail.checked)for(var F=this.getOptionRenderers().find(function(v){return v.value===I.detail.value}),R=this.getOptionRenderers(),O=0;O<R.length;O++){var w=R[O];
this.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked");w.checked&&((F==null?0:F.isExclusiveOption)?!w.isExclusiveOption:w.isExclusiveOption)?this.set("data.options."+O+".checkboxSurveyOptionRenderer.checked",!1):w.checked&&(D=!0)}else D=this.getOptionRenderers().some(function(v,P){y.notifyPath("data.options."+P+".checkboxSurveyOptionRenderer.checked");return v.checked});
this.updateSubmitButton(D)};
_.L.onSubmitTap=function(){var I=this.getOptionRenderers().filter(function(O){return O.checked});
if(I.length!==0){var y=I.map(function(O){return O.responseEndpoint});
I=[];for(var D=1;D<y.length;D++){var F=void 0,R=(F=_.u(y[D],_.gT))==null?void 0:F.feedbackToken;R&&I.push(R)}y=[y[0]];I.length&&y.push({extra_feedback_tokens:I});_.E$(this.hostElement,y);_.uj(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);I=this.data&&this.data.submitActions||[];if(_.l("kevlar_command_handler_migration_killswitch"))_.GC(this.hostElement,I,this.hostElement);else for(I=_.J(I),y=I.next();!y.done;y=I.next())this.ytComponentBehavior.resolveCommand(y.value)}};
xL.prototype.onOptionChange=xL.prototype.onOptionChange;xL.prototype.dataChanged=xL.prototype.dataChanged;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],xL.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(XYY),_.A("design:type",Object)],xL.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],xL.prototype,"data",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xL.prototype,"dataChanged",null);
_.W([_.z4("ytd-checkbox-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],xL.prototype,"onOptionChange",null);_.W([_.yd({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],xL);
_.a(xL,"ytd-checkbox-survey-renderer",function(){if(PJZ!==void 0)return PJZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PJZ=I},{mode:1});var KIQ;var UBo;var lx=function(){return _.k.apply(this,arguments)||this};
_.E(lx,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(E5g),_.A("design:type",Object)],lx.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lx.prototype,"data",void 0);_.W([_.yd({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],lx);
_.a(lx,"ytd-dismissal-reason-text-renderer",function(){if(UBo!==void 0)return UBo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return UBo=I},{mode:1});var r1G;var ux=function(){return _.k.apply(this,arguments)||this};
_.E(ux,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.W([_.Q(E5g),_.A("design:type",Object)],ux.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ux.prototype,"data",void 0);_.W([_.yd({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ux);
_.a(ux,"ytd-dismissal-reason-video-renderer",function(){if(r1G!==void 0)return r1G;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return r1G=I},{mode:1});var qf=function(){return _.k.apply(this,arguments)||this};
_.E(qf,_.k);_.L=qf.prototype;_.L.created=function(){this.selectedFeedbackTokens=new XQ};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.L.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.L.onDismissalReasonSelected=function(I,y){_.lj(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(y);this.hasReasonsSelected=!0};
_.L.onDismissalReasonDeselected=function(I,y){_.lj(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(y);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.L.onCancelTap=function(){_.uj(this.hostElement,"yt-close-popup-action")};
_.L.onSubmitTap=function(){var I=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(I={feedback_tokens:I},_.nR().resolve(_.MC).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},I,{element:this.hostElement})}));_.uj(this.hostElement,"yt-close-popup-action")};
qf.prototype.onDismissalReasonDeselected=qf.prototype.onDismissalReasonDeselected;qf.prototype.onDismissalReasonSelected=qf.prototype.onDismissalReasonSelected;qf.prototype.dataChanged=qf.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qf.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],qf.prototype,"hasReasonsSelected",void 0);_.W([_.M(),_.A("design:type",XQ)],qf.prototype,"selectedFeedbackTokens",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qf.prototype,"dataChanged",null);_.W([_.z4("yt-dismissal-reason-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],qf.prototype,"onDismissalReasonSelected",null);
_.W([_.z4("yt-dismissal-reason-deselected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],qf.prototype,"onDismissalReasonDeselected",null);_.W([_.yd({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],qf);
_.a(qf,"ytd-dismissal-follow-up-renderer",function(){if(KIQ!==void 0)return KIQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return KIQ=I},{mode:1});var jNa;var Ei=function(){return _.k.apply(this,arguments)||this};
_.E(Ei,_.k);_.L=Ei.prototype;_.L.onCheckedChange=function(){this.multiselect||_.lj(this.hostElement,"yt-feedback-single-select-changed");_.XB(this.hostElement).querySelector("#freeform").focus();_.lj(this.hostElement,"yt-refit")};
_.L.showTextBox=function(I,y){return I&&y};
_.L.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))};
_.L.updateDataCheckedFromBinding=function(I){this.set("data.checked",I.detail.value)};
_.L.updateDataResultTextFromBinding=function(I){this.set("data.resultText",I.detail.value)};
Ei.prototype.dataChanged=Ei.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ei.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Ei.prototype,"multiselect",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ei.prototype,"dataChanged",null);
_.W([_.yd({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Ei);
_.a(Ei,"ytd-feedback-option-renderer",function(){if(jNa!==void 0)return jNa;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return jNa=I},{mode:1});var odC;var GD=function(){return _.k.apply(this,arguments)||this};
_.E(GD,_.k);GD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
GD.prototype.onSingleSelectCheckedChanged=function(I){I=_.jv(I);for(var y=0;y<this.data.options.length;y++)if(I.data!==_.u(this.data.options[y],WBa)){var D="data.options."+y+".feedbackOptionRenderer.checked";this.notifyPath(D);this.set(D,!1)}};
GD.prototype.onSingleSelectCheckedChanged=GD.prototype.onSingleSelectCheckedChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GD.prototype,"data",void 0);
_.W([_.z4("yt-feedback-single-select-changed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],GD.prototype,"onSingleSelectCheckedChanged",null);_.W([_.yd({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],GD);
_.a(GD,"ytd-feedback-question-renderer",function(){if(odC!==void 0)return odC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return odC=I},{mode:1});var N$b;var Xv=function(){return _.k.apply(this,arguments)||this};
_.E(Xv,_.k);Xv.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Xv.prototype.getSelectedFeedbackResults=function(){for(var I={},y=0;y<this.data.questions.length;y++)for(var D=_.u(this.data.questions[y],cka),F=0;F<D.options.length;F++){var R=_.u(D.options[F],WBa);R&&R.checked&&(I[R.optionKey]=R.resultText)}return I};
Xv.prototype.onKeyUp=function(){var I=this;_.qK(_.w2,function(){_.lj(I.hostElement,"yt-refit")});
_.w2.start()};
Xv.prototype.submitSurvey=function(){var I=this.getSelectedFeedbackResults();Object.keys(I).length>0&&this.data.submitFeedbackEndpoint&&(I={survey_results:I,is_feedback_token_unencrypted:!0},_.nR().resolve(_.MC).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},I,{element:this.hostElement})}))};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Xv.prototype,"data",void 0);_.W([_.yd({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Xv);
_.a(Xv,"ytd-feedback-survey-renderer",function(){if(N$b!==void 0)return N$b;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return N$b=I},{mode:1});var h$1;var xBY;var Qc=function(){return _.k.apply(this,arguments)||this};
_.E(Qc,_.k);Qc.prototype.computeAlt=function(I){return _.rY(I)};
Qc.prototype.submitResponse=function(){var I,y;(I=this.data)!=null&&I.feedbackToken&&((y=this.data)==null?void 0:y.nextStageIndex)!==void 0&&(_.qr(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.qr(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Qc.prototype.onClick=function(){this.submitResponse()};
Qc.prototype.onClick=Qc.prototype.onClick;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Qc.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Qc.prototype,"vertical",void 0);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qc.prototype,"onClick",null);
_.W([_.yd({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Qc);
_.a(Qc,"ytd-single-select-answer-option-renderer",function(){if(xBY!==void 0)return xBY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xBY=I},{mode:1});var lGb;var YL=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return I};
_.E(YL,_.k);YL.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
YL.prototype.dataChanged=function(){var I,y;this.vertical=((y=(I=this.data)==null?void 0:I.answerOrientation)!=null?y:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
YL.prototype.submitFeedback=function(I){var y;((y=this.data)==null?0:y.responseEndpoint)&&I&&_.E$(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[I]}])};
YL.prototype.dataChanged=YL.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],YL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],YL.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],YL.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],YL.prototype,"vertical",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YL.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],YL);
_.a(YL,"ytd-single-select-question-renderer",function(){if(lGb!==void 0)return lGb;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return lGb=I},{mode:1});var fB=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return I};
_.E(fB,_.k);_.L=fB.prototype;_.L.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"}}}};
_.L.dataChanged=function(){this.jumpToStage(0)};
_.L.jumpToStage=function(I){var y,D;if((y=this.data)==null?0:(D=y.stages)==null?0:D[I])this.currentStage=this.data.stages[I],this.refitAfterRender()};
_.L.computeAlt=function(I){return _.rY(I)};
_.L.computeSimpleMessage=function(I){var y;return(y=_.u(I,ifT))==null?void 0:y.messageText};
_.L.computeHideDismiss=function(I){var y;return(y=_.u(I,Wnb))==null?void 0:y.hideParentDismissButton};
_.L.onDismissTap=function(){_.uj(this.hostElement,"yt-close-popup-action");_.u(this.currentStage,ifT)||this.data.dismissalEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.L.refitAfterRender=function(){var I=this;_.YC(this,function(){_.lj(I.hostElement,"yt-refit")})};
fB.prototype.dataChanged=fB.prototype.dataChanged;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],fB.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q(XYY),_.A("design:type",Object)],fB.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fB.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],fB.prototype,"currentStage",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fB.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],fB);
_.a(fB,"ytd-multi-stage-survey-renderer",function(){if(h$1!==void 0)return h$1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return h$1=I},{mode:1});var ucT;var nB=function(){return _.k.apply(this,arguments)||this};
_.E(nB,_.k);nB.prototype.computeAlt=function(I){return _.rY(I)};
nB.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.nR().resolve(_.MC).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.uj(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(HHo(!1)))};
nB.prototype.onTap=function(){this.vertical&&this.submitResponse()};
nB.prototype.onTap=nB.prototype.onTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nB.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],nB.prototype,"vertical",void 0);
_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nB.prototype,"onTap",null);_.W([_.yd({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],nB);
_.a(nB,"ytd-single-option-survey-option-renderer",function(){if(ucT!==void 0)return ucT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ucT=I},{mode:1});var qag;var pB=function(){return _.k.apply(this,arguments)||this};
_.E(pB,_.k);_.L=pB.prototype;_.L.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.dataChanged=function(){var I,y;this.vertical=(((I=this.data)==null?void 0:(y=I.surveyOrientation)==null?void 0:y.type)||"HORIZONTAL")==="VERTICAL"};
_.L.computeAlt=function(I){return _.rY(I)};
_.L.onDismissTap=function(){_.uj(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.nR().resolve(_.MC).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(HHo(!1))};
pB.prototype.dataChanged=pB.prototype.dataChanged;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],pB.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(XYY),_.A("design:type",Object)],pB.prototype,"ytdHatsSurveyBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],pB.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pB.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],pB.prototype,"vertical",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pB.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],pB);
_.a(pB,"ytd-single-option-survey-renderer",function(){if(qag!==void 0)return qag;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return qag=I},{mode:1});var Ede;var mR=function(){return _.k.apply(this,arguments)||this};
_.E(mR,_.k);mR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mR.prototype.onDismissTap=function(){_.uj(this.hostElement,"yt-close-popup-action")};
mR.prototype.onNavigate=function(){_.uj(this.hostElement,"yt-close-popup-action")};
mR.prototype.onNavigate=mR.prototype.onNavigate;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],mR.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mR.prototype,"data",void 0);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mR.prototype,"onNavigate",null);
_.W([_.yd({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],mR);
_.a(mR,"ytd-survey-follow-up-renderer",function(){if(Ede!==void 0)return Ede;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Ede=I},{mode:1});var Gya;var Xea;var QNT;var Mf=function(){var I=_.k.apply(this,arguments)||this;I.polymer2="Element"in Polymer;return I};
_.E(Mf,_.k);_.L=Mf.prototype;_.L.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.L.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.L.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.L.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("minutes-changed",this.minutes))};
_.L.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("seconds-changed",this.seconds))};
_.L.updateMinutesFromBinding=function(I){this.minutes=I.detail.value};
_.L.updateSecondsFromBinding=function(I){this.seconds=I.detail.value};
Mf.prototype.secondsChangedForBinding=Mf.prototype.secondsChangedForBinding;Mf.prototype.minutesChangedForBinding=Mf.prototype.minutesChangedForBinding;Mf.prototype.secondsChanged=Mf.prototype.secondsChanged;_.W([_.M(),_.A("design:type",String)],Mf.prototype,"minutes",void 0);_.W([_.M(),_.A("design:type",String)],Mf.prototype,"seconds",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],Mf.prototype,"polymer2",void 0);
_.W([_.a0("#seconds"),_.A("design:type",Object)],Mf.prototype,"secondsEl",void 0);_.W([_.ke("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mf.prototype,"secondsChanged",null);_.W([_.ke("minutes"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mf.prototype,"minutesChangedForBinding",null);
_.W([_.ke("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mf.prototype,"secondsChangedForBinding",null);_.W([_.I6({is:"yt-timestamp-input",disableElementRegistration:!0})],Mf);
_.a(Mf,"yt-timestamp-input",function(){if(QNT===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Xea===void 0&&(Xea=document.createElement("template"));var F=Xea;D.call(y,F.content.cloneNode(!0),I.content.firstChild);QNT=I}I=QNT;return I},{mode:2});var zD=function(){return _.k.apply(this,arguments)||this};
_.E(zD,_.k);_.L=zD.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22433_scroller.dialogElement=this.hostElement.parentNode};
_.L.dataChanged=function(){var I=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.hZ().getPlayerPromise().then(function(y){y=y.getCurrentTime();I.minutes=Math.floor(y/60).toString();I.seconds=(Math.floor(y)%60).toString()})};
_.L.onTapSubmit=function(I){I.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(I={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(I.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(I.minutes=this.minutes,I.seconds=this.seconds),_.nR().resolve(_.MC).resolveCommand(this.serviceEndpoint,{form:Object.assign({},I,{element:this.hostElement})}))};
_.L.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.L.onYtServiceRequestCompleted=function(I,y){y=y.actions;if(Array.isArray(y))for(var D=0,F=y.length;D<F;D++)_.u(y[D],_.Hc)&&(I.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(y[D]))};
_.L.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.L.toggleSubmitButton=function(I){this.set("submitButton.isDisabled",!I)};
_.L.handleInput=function(){var I=this.issueType,y=this.affiliation,D=this.minutes,F=this.seconds;D=!this.showTimestamp||!!D&&!!F;this.toggleSubmitButton(!!this.descriptionText&&!!I&&!!y&&D)};
_.L.computeServiceEndpoint=function(I){return this.get("submitButton.buttonRenderer.serviceEndpoint",I)};
_.L.computeSubmitButton=function(I){(I=this.get("submitButton.buttonRenderer",I))&&(I=Object.assign({},I,{serviceEndpoint:void 0}));return I};
_.L.computeShowTimestamp=function(I){return!!I};
_.L.onValueChangedForIssueType=function(I){this.issueType=I.detail.value};
_.L.onValueChangedForAffiliation=function(I){this.affiliation=I.detail.value};
_.L.updateDescriptionTextFromBinding=function(I){this.descriptionText=I.detail.value};
_.L.updateFullNameTextFromBinding=function(I){this.fullNameText=I.detail.value};
_.L.updateMinutesFromBinding=function(I){this.minutes=I.detail.value};
_.L.updateSecondsFromBinding=function(I){this.seconds=I.detail.value};
zD.prototype.handleInput=zD.prototype.handleInput;zD.prototype.onYtServiceRequestError=zD.prototype.onYtServiceRequestError;zD.prototype.onYtServiceRequestCompleted=zD.prototype.onYtServiceRequestCompleted;zD.prototype.onYtServiceRequestSent=zD.prototype.onYtServiceRequestSent;zD.prototype.dataChanged=zD.prototype.dataChanged;_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],zD.prototype,"ytOpenPopupBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],zD.prototype,"JSC$22433_scroller",void 0);_.W([_.a0("#description"),_.A("design:type",HTMLInputElement)],zD.prototype,"description",void 0);_.W([_.a0("#full-name"),_.A("design:type",Object)],zD.prototype,"fullName",void 0);_.W([_.M(),_.A("design:type",Object)],zD.prototype,"data",void 0);
_.W([_.M({computed:"computeShowTimestamp(data.timestampLabel)"}),_.A("design:type",Boolean)],zD.prototype,"showTimestamp",void 0);_.W([_.M({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.A("design:type",Object)],zD.prototype,"serviceEndpoint",void 0);_.W([_.M({computed:"computeSubmitButton(data)"}),_.A("design:type",Object)],zD.prototype,"submitButton",void 0);_.W([_.M(),_.A("design:type",String)],zD.prototype,"descriptionText",void 0);
_.W([_.M(),_.A("design:type",Number)],zD.prototype,"issueType",void 0);_.W([_.M(),_.A("design:type",Number)],zD.prototype,"affiliation",void 0);_.W([_.M(),_.A("design:type",String)],zD.prototype,"fullNameText",void 0);_.W([_.M(),_.A("design:type",String)],zD.prototype,"minutes",void 0);_.W([_.M(),_.A("design:type",String)],zD.prototype,"seconds",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zD.prototype,"dataChanged",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],zD.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],zD.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],zD.prototype,"onYtServiceRequestError",null);_.W([_.ke("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zD.prototype,"handleInput",null);_.W([_.yd({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],zD);
_.a(zD,"ytd-legal-report-details-form-renderer",function(){if(Gya!==void 0)return Gya;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Gya=I},{mode:1});var Yag;var kL=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return I};
_.E(kL,_.k);kL.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
kL.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var I=this.formRenderer.getForm();I&&this.data.submitEndpoint&&(_.nR().resolve(_.MC).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},I,{element:this.hostElement})}),_.uj(this.hostElement,"yt-close-popup-action"))}};
kL.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.uj(this.hostElement,"yt-close-popup-action"))};
kL.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
kL.prototype.onPopupClosed=kL.prototype.onPopupClosed;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],kL.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],kL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);
_.W([_.a0("yt-form-renderer"),_.A("design:type",Object)],kL.prototype,"formRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],kL.prototype,"data",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kL.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-form-popup-content",disableElementRegistration:!0})],kL);
_.a(kL,"ytd-form-popup-content",function(){if(Yag!==void 0)return Yag;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Yag=I},{mode:1});var fG1;var dD=function(){return _.k.apply(this,arguments)||this};
_.E(dD,_.k);dD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dD.prototype.onPopupOpened=function(){_.lj(this.hostElement,"yt-invalidate-popup-tabbables")};
dD.prototype.onYtServiceRequestCompleted=function(I,y){y.data&&y.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.lj(this.hostElement,"yt-invalidate-popup-tabbables"))};
dD.prototype.onYtServiceRequestCompleted=dD.prototype.onYtServiceRequestCompleted;dD.prototype.onPopupOpened=dD.prototype.onPopupOpened;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],dD.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],dD.prototype,"data",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dD.prototype,"onPopupOpened",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],dD.prototype,"onYtServiceRequestCompleted",null);_.W([_.yd({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],dD);
_.a(dD,"ytd-form-popup-renderer",function(){if(fG1!==void 0)return fG1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return fG1=I},{mode:1});var ndZ;var a4=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;return I};
_.E(a4,_.k);_.L=a4.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Q5G(this.hostElement)};
_.L.onYtServiceRequestSent=function(){this.isLoading=!0};
_.L.onYtServiceRequestCompleted=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.L.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.GC(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.L.closePopupHandler=function(){this.fireOnCloseActions()};
_.L.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var I=this.get("data.headerImage.thumbnails");I&&(I=_.hf(I,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+I+")")}};
_.L.onYtNavigate=function(I){(I=_.jv(I))&&I.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
a4.prototype.onYtNavigate=a4.prototype.onYtNavigate;a4.prototype.onHeaderImageChanged=a4.prototype.onHeaderImageChanged;a4.prototype.closePopupHandler=a4.prototype.closePopupHandler;a4.prototype.onYtServiceRequestCompleted=a4.prototype.onYtServiceRequestCompleted;a4.prototype.onYtServiceRequestSent=a4.prototype.onYtServiceRequestSent;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],a4.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],a4.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],a4.prototype,"isLoading",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLDivElement)],a4.prototype,"header",void 0);_.W([_.a0("#confirm-button"),_.A("design:type",_.sY)],a4.prototype,"confirmButton",void 0);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],a4.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],a4.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],a4.prototype,"closePopupHandler",null);_.W([_.ke("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],a4.prototype,"onHeaderImageChanged",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],a4.prototype,"onYtNavigate",null);
_.W([_.yd({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],a4);
_.a(a4,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(ndZ!==void 0)return ndZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return ndZ=I},{mode:1});var peg;var cE=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;return I};
_.E(cE,_.k);_.L=cE.prototype;_.L.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"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Q5G(this.hostElement)};
_.L.onYtServiceRequestCompleted=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.L.onYtServiceRequestError=function(I){_.v_(this.hostElement,I.detail.error.message)};
_.L.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.L.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.uj(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.L.onDataChanged=function(){this.isLoading=!1;var I=this.get("data.headerImage.thumbnails");I&&(I=_.hf(I,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+I+")");I=_.VO();var y=_.s_(),D=this.get("data.trackingParams");D&&y&&I&&_.Oc(I,y,_.AC(D))};
_.mD.Object.defineProperties(cE.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
cE.prototype.onDataChanged=cE.prototype.onDataChanged;cE.prototype.onDomChange=cE.prototype.onDomChange;cE.prototype.onYtServiceRequestError=cE.prototype.onYtServiceRequestError;cE.prototype.onYtServiceRequestCompleted=cE.prototype.onYtServiceRequestCompleted;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],cE.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],cE.prototype,"isLoading",void 0);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cE.prototype,"hasDescription",null);_.W([_.a0("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],cE.prototype,"scrollable",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLElement)],cE.prototype,"header",void 0);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],cE.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],cE.prototype,"onYtServiceRequestError",null);
_.W([_.z4("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],cE.prototype,"onDomChange",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cE.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],cE);
_.a(cE,"ytd-gaming-account-link-setting-renderer",function(){if(peg!==void 0)return peg;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return peg=I},{mode:1});var mBo;var MO8;var WE=function(){var I=_.k.apply(this,arguments)||this;I.isHeader=!1;I.getEndpointForm=function(){return WPT(I.data)};
return I};
_.E(WE,_.k);_.L=WE.prototype;_.L.triggerHintActions=function(){var I=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var y=_.qr(I.hostElement,"yt-get-opened-popups-action");!(y&&y.length===1?y[0]:[]).some(function(D){D=D.openPopupAction.popupType;return D==="SURVEY"||D==="MEALBAR"||D==="HINT"})&&I.data.hintActions&&I.guideOpened&&(_.GC(I.hostElement,I.data.hintActions,I.hostElement),I.data.hintActions=void 0)})};
_.L.getBadgeIconType=function(I){return I&&I.liveBroadcasting?"live":null};
_.L.onDown=function(){this.interaction.triggerDown()};
_.L.onUp=function(){this.interaction.triggerUp()};
_.L.onTap=function(I){if(this.data.serviceEndpoint){var y;_.l("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.u(this.data.serviceEndpoint,_.WF))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):csG(this.data.serviceEndpoint,this);I.preventDefault()}else this.data.navigationEndpoint&&!_.UP(_.r4(I),this.hostElement,["A".toString()])&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.L.computeActive=function(I,y){if(!I)return!1;var D=I.navigationEndpoint;I=I.serviceEndpoint;if(!D&&!I||!y)return!1;if(D){I=(I=_.zF(y))&&["subscriptions","filteredsubscriptions"].includes(I);if(_.u(D,_.kc)&&_.u(y,_.kc)&&!I){var F=_.u(D,_.kc).browseId;y=_.u(y,_.kc).browseId;return F!==void 0&&y!==void 0&&(F===y||F==="VLWL"&&y==="FEwatch_later"||F==="FEwatch_later"&&y==="VLWL")}var R;D=(R=_.u(D.commandMetadata,_.nE))==null?void 0:R.url;y=(F=_.u(y.commandMetadata,_.nE))==null?void 0:F.url;return!(!D||
!y||D!==y&&D!==_.iP(y))}return this.isActiveShortsTab(I,y)};
_.L.isActiveShortsTab=function(I,y){y=!!_.u(y,_.WF)||!!_.u(y,_.Jz);return(!!_.u(I,_.WF)||!!_.u(I,_.Jz))&&y};
_.L.computeIsPrimary=function(I){return!!I};
_.mD.Object.defineProperties(WE.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 I=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&I)return I}}});
WE.prototype.onTap=WE.prototype.onTap;WE.prototype.onUp=WE.prototype.onUp;WE.prototype.onDown=WE.prototype.onDown;WE.prototype.triggerHintActions=WE.prototype.triggerHintActions;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],WE.prototype,"componentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],WE.prototype,"rendererBehavior",void 0);_.W([_.Q(_.uC.YtTaskEmitterBehavior),_.A("design:type",Object)],WE.prototype,"taskEmitterBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],WE.prototype,"activeEndpoint",void 0);_.W([_.M(),_.A("design:type",Object)],WE.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],WE.prototype,"guideOpened",void 0);_.W([_.M(),_.A("design:type",String)],WE.prototype,"type",void 0);_.W([_.a0("yt-interaction"),_.A("design:type",Object)],WE.prototype,"interaction",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],WE.prototype,"isHeader",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data","activeEndpoint"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WE.prototype,"active",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WE.prototype,"isPrimary",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.count","data.presentationStyle","data.badges.*"),_.A("design:type",String),_.A("design:paramtypes",[])],WE.prototype,"lineEndStyle",null);
_.W([_.Y("lineEndStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],WE.prototype,"ariaLabel",null);_.W([_.ke("data.hintActions","guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WE.prototype,"triggerHintActions",null);_.W([_.z4("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WE.prototype,"onDown",null);
_.W([_.z4("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WE.prototype,"onUp",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WE.prototype,"onTap",null);_.W([_.yd({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],WE);
_.a(WE,"ytd-guide-entry-renderer",function(){if(MO8!==void 0)return MO8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return MO8=I},{mode:1});var CB=function(){var I=_.k.apply(this,arguments)||this;I.userToggled=!1;return I};
_.E(CB,_.k);_.L=CB.prototype;_.L.getItemsPath=function(){return"data.expandableItems"};
_.L.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.L.onExpanderItemTapped=function(I){var y=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.l("kevlar_guide_expandable_items_killswitch")&&_.YC(this,function(){_.E6(y.expandableItems)});
I.preventDefault()};
_.L.onCollapserItemTapped=function(I){var y=this;this._setExpanded(!1);this.userToggled=!0;I.preventDefault();this.expandableItems&&!_.l("kevlar_guide_collapsible_items_killswitch")&&_.YC(this,function(){_.qw(y.hostElement)})};
_.L.observeActiveEndpoint=function(){for(var I=this.activeEndpoint,y=this.data,D=this.expandableItems.children,F=0,R=D.length;F<R;F++)D[F].activeEndpoint=I;y&&y.autoExpandCommand&&I&&!this.userToggled&&(D=this.data.autoExpandCommand,y=!(!_.u(D,_.kc)||!_.u(I,_.kc)||_.u(D,_.kc).browseId!==_.u(I,_.kc).browseId),I=this.get("commandMetadata.webCommandMetadata.url",I),D=this.get("commandMetadata.webCommandMetadata.url",D),y=y||!!(I&&D&&I.includes(D)),this._setExpanded(y),y&&this.ytLazyListBehavior.fillRemainingListItems())};
CB.prototype.observeActiveEndpoint=CB.prototype.observeActiveEndpoint;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],CB.prototype,"ytLazyListBehavior",void 0);_.W([_.a0("#expandable-items"),_.A("design:type",HTMLElement)],CB.prototype,"expandableItems",void 0);
_.W([_.M(),_.A("design:type",Object)],CB.prototype,"data",void 0);_.W([_.M({readOnly:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],CB.prototype,"expanded",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],CB.prototype,"initialCount",void 0);_.W([_.M(),_.A("design:type",Object)],CB.prototype,"activeEndpoint",void 0);_.W([_.ke("data","activeEndpoint","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],CB.prototype,"observeActiveEndpoint",null);
_.W([_.yd({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],CB);
_.a(CB,"ytd-guide-collapsible-entry-renderer",function(){if(mBo!==void 0)return mBo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return mBo=I},{mode:_.Qd("kevlar_poly_si_batch_j079")?1:2});var z$1;var kyg;var BE=function(){var I=_.k.apply(this,arguments)||this;I.allVideosCount=0;I.renderGuideEntry=!1;return I};
_.E(BE,_.k);BE.prototype.observeRenderEntry=function(){var I;this.renderGuideEntry=!((I=this.data)==null||!I.alwaysShow)||!!this.allVideosCount};
BE.prototype.observeRenderEntry=BE.prototype.observeRenderEntry;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],BE.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],BE.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],BE.prototype,"activeEndpoint",void 0);_.W([_.M({selector:_.Am5}),_.A("design:type",Object)],BE.prototype,"allVideosCount",void 0);
_.W([_.M(),_.A("design:type",Object)],BE.prototype,"renderGuideEntry",void 0);_.W([_.Bp("allVideosCount","data.alwaysShow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BE.prototype,"observeRenderEntry",null);_.W([_.yd({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],BE);
_.a(BE,"ytd-guide-downloads-entry-renderer",function(){if(kyg===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);kyg=I}I=kyg;return I},{mode:1});var ix=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return I};
_.E(ix,_.k);_.L=ix.prototype;_.L.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]]"}}}}}};
_.L.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var I=this.sectionItems.children,y=0,D=I.length;y<D;y++)I[y].activeEndpoint=this.activeEndpoint}};
_.L.handleAddToGuideSectionAction=function(I){var y=_.u(I,lPT);if(y&&this.data&&(I=y.items,y=y.handlerData,I&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1)){y=0;for(var D=I.length;y<D;y++)I[y].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,I[y])}};
_.L.handleRemoveFromGuideSectionAction=function(I){var y=_.u(I,uuo);y&&this.data&&(I=y.guideEntryId,y=y.handlerData,I&&y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(y)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(I,this.data.sectionItems),this.removeFromCollapsedSection(I,this.data.sectionItems)))};
_.L.removeFromExpandedSection=function(I,y){I=this.getEntryIndexMatchingId(I,y);I!==-1&&this.splice("data.sectionItems",I,1)};
_.L.removeFromCollapsedSection=function(I,y){var D=y.findIndex(function(F){return!!_.u(F,BTa)});
D&&D!==-1&&y[D]&&_.u(y[D],BTa)&&(y=_.u(y[D],BTa).expandableItems)&&(I=this.getEntryIndexMatchingId(I,y),I!==-1&&this.splice("data.sectionItems."+D+".guideCollapsibleEntryRenderer.expandableItems",I,1))};
_.L.getEntryIndexMatchingId=function(I,y){var D=this;return y.findIndex(function(F){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===I})};
ix.prototype.activeEndpointChanged=ix.prototype.activeEndpointChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ix.prototype,"actionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#section-items"),_.A("design:type",HTMLDivElement)],ix.prototype,"sectionItems",void 0);
_.W([_.a0("#header-entry"),_.A("design:type",Object)],ix.prototype,"headerEntry",void 0);_.W([_.M(),_.A("design:type",Object)],ix.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],ix.prototype,"activeEndpoint",void 0);_.W([_.ke("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ix.prototype,"activeEndpointChanged",null);_.W([_.yd({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],ix);
_.a(ix,"ytd-guide-collapsible-section-entry-renderer",function(){if(z$1===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);z$1=I}I=z$1;return I},{mode:1});var dBY;var aGQ;var A6=function(){var I=_.k.apply(this,arguments)||this;I.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 I};
_.E(A6,_.k);_.L=A6.prototype;
_.L.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}}}}};
_.L.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var I=_.qr(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);I&&I.length===1&&I[0]&&_.qr(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.L.handleResetChannelUnreadCountCommand=function(I){var y;(I=(y=_.u(I,GiZ))==null?void 0:y.channelId)&&this.data&&this.data.items&&(y=this.getPathToEntryMatchingId(I))&&(this.set(y+".guideEntryRenderer.count",0),this.set(y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.L.handleResetSubscriptionsUnreadDotCommand=function(I){var y,D=(y=_.u(I,XQR))==null?void 0:y.targetId,F;D&&(F=this.data)!=null&&F.items&&(I=this.data.items.findIndex(function(R){var O;return((O=R.guideEntryRenderer)==null?void 0:O.targetId)===D}),I<0||this.set("data.items."+I+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.L.getPathToEntryMatchingId=function(I){if(this.data&&this.data.items){var y=this.getEntryIndexMatchingId(I,this.data.items);if(y>-1)return"data.items."+y;for(var D=0;D<this.data.items.length;D++)if(y=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[D]))if(y=this.getEntryIndexMatchingId(I,y),y>-1)return"data.items."+D+".guideCollapsibleEntryRenderer.expandableItems."+y}};
_.L.handleAddToGuideSectionAction=function(I){var y=this;if(_.u(I,lPT)){var D=_.u(I,lPT).items;I=_.u(I,lPT).handlerData;var F,R;if(D&&I&&((F=this.data)==null?void 0:(R=F.handlerDatas)==null?void 0:R.indexOf(I))>-1){D=D.filter(function(w){return(w=y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w))&&!y.isGuideItemPresent(w)});
var O;if(I==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((O=this.data)==null?0:O.items)&&(F=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),F>-1)){this.splice.apply(this,["data.items",F+1,0].concat(_.Td(D)));return}this.unshift.apply(this,["data.items"].concat(_.Td(D)))}}};
_.L.isGuideItemPresent=function(I){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(I,this.data.items)!==-1)return!0;var y=this.data.items.find(function(D){return!!D.guideCollapsibleEntryRenderer});
if((y==null?0:y.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(I,y.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.L.getEntryIndexMatchingId=function(I,y){var D=this;return y.findIndex(function(F){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===I})};
_.L.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(I,y){var D=this;return y.findIndex(function(F){return D.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",F)===I})};
_.L.handleRemoveFromGuideSectionAction=function(I){if(_.u(I,uuo)){var y=_.u(I,uuo).guideEntryId;I=_.u(I,uuo).handlerData;var D,F;y&&I&&((D=this.data)==null?void 0:(F=D.handlerDatas)==null?void 0:F.indexOf(I))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(y,this.data.items),this.removeFromCollapsedSection(y,this.data.items))}};
_.L.removeFromExpandedSection=function(I,y){I=this.getEntryIndexMatchingId(I,y);I!==-1&&this.splice("data.items",I,1)};
_.L.removeFromCollapsedSection=function(I,y){var D=y.findIndex(function(F){return!!F.guideCollapsibleEntryRenderer});
D!==-1&&(y=y[D].guideCollapsibleEntryRenderer.expandableItems)&&(I=this.getEntryIndexMatchingId(I,y),I!==-1&&this.splice("data.items."+D+".guideCollapsibleEntryRenderer.expandableItems",I,1))};
_.L.activeEndpointChanged=function(){for(var I=_.XB(this.hostElement).querySelector("#items").children,y=0,D=I.length;y<D;y++)I[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.L.guideOpenedChanged=function(){for(var I=_.XB(this.hostElement).querySelector("#items").children,y=0,D=I.length;y<D;y++)I[y].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
A6.prototype.guideOpenedChanged=A6.prototype.guideOpenedChanged;A6.prototype.activeEndpointChanged=A6.prototype.activeEndpointChanged;A6.prototype.persistentGuideChanged=A6.prototype.persistentGuideChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],A6.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],A6.prototype,"ytLazyListBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],A6.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],A6.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],A6.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",String)],A6.prototype,"type",void 0);_.W([_.M({value:20}),_.A("design:type",Number)],A6.prototype,"initialCount",void 0);_.W([_.M({value:10}),_.A("design:type",Number)],A6.prototype,"targetFramerate",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],A6.prototype,"autoFill",void 0);_.W([_.M({value:50}),_.A("design:type",Number)],A6.prototype,"renderDelay",void 0);
_.W([_.ke("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A6.prototype,"persistentGuideChanged",null);_.W([_.Bp("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A6.prototype,"activeEndpointChanged",null);_.W([_.Bp("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A6.prototype,"guideOpenedChanged",null);
_.W([_.yd({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],A6);
_.a(A6,"ytd-guide-section-renderer",function(){if(aGQ!==void 0)return aGQ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return aGQ=I},{mode:_.Qd("kevlar_poly_si_batch_j073")?1:2});var c1T;var $L=function(){return _.k.apply(this,arguments)||this};
_.E($L,_.k);_.mD.Object.defineProperties($L.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$L.prototype,"rendererBehaviors",void 0);_.W([_.M(),_.A("design:type",Object)],$L.prototype,"data",void 0);_.W([_.M(),_.Y("data.signInButton.buttonRenderer.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],$L.prototype,"alignByText",null);_.W([_.yd({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],$L);
_.a($L,"ytd-guide-signin-promo-renderer",function(){if(c1T===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);c1T=I}I=c1T;return I},{mode:1});var bx=function(){var I=_.k.apply(this,arguments)||this;I.showFooter=!1;return I};
_.E(bx,_.k);bx.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}}}}};
bx.prototype.attached=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1){y=_.nR().resolve(_.fR(_.Py));if(!y)return D.jumpTo(0);y.setGuideData(I.hostElement);return D.yield(0,3)}I.ytLazyListBehavior.initialCount=2;return D.return()})};
bx.prototype.onMouseExit=function(){_.l("web_guide_hover_expansion")&&_.qr(this.hostElement,"yt-guide-mouseleaved",[])};
bx.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
bx.prototype.dataChanged=bx.prototype.dataChanged;bx.prototype.onMouseExit=bx.prototype.onMouseExit;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Q5.YtLazyListBehavior),_.A("design:type",Object)],bx.prototype,"ytLazyListBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],bx.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],bx.prototype,"showFooter",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],bx.prototype,"autoFill",void 0);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bx.prototype,"onMouseExit",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bx.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-guide-renderer",disableElementRegistration:!0})],bx);
_.a(bx,"ytd-guide-renderer",function(){if(dBY!==void 0)return dBY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return dBY=I},{mode:_.Qd("kevlar_poly_si_batch_j073")?1:2});var WIZ;var HE=function(){var I=_.k.apply(this,arguments)||this;I.systemIcons=_.l("kevlar_system_icons");I.frostedGlass=_.l("web_frosted_glass");I.onAllyMenuButtonClick=function(){var y=I.getShowSheetCommand();y&&I.ytComponentBehavior.resolveCommand(y)};
I.getEndpointForm=function(){return WPT(I.data)};
return I};
_.E(HE,_.k);_.L=HE.prototype;_.L.attached=function(){this.JSC$22486_sheetController=_.nR().resolve(_.DP)};
_.L.onDown=function(){this.interaction.triggerDown()};
_.L.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var I;(I=this.JSC$22486_sheetController)==null||WqR(I,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.L.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.L.isSeedlessReelCommand=function(I){var y;return!!I&&((y=_.u(I,_.WF))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.L.isShowSheetCommand=function(I){return!!I&&!!_.u(I,_.Ct)};
_.L.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.L.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.L.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.L.onUp=function(){this.interaction.triggerUp()};
_.L.onTap=function(I){if(this.data.serviceEndpoint){if(_.l("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var y;(y=this.JSC$22486_sheetController)==null||WqR(y,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));I.preventDefault();
return}csG(this.data.serviceEndpoint,this)}I.preventDefault()}else{var D;((D=this.data)==null?0:D.navigationEndpoint)&&!_.UP(_.r4(I),this.hostElement,["A".toString()])&&_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.L.computeActive=function(I,y){if(!I)return!1;var D=I.navigationEndpoint;I=I.serviceEndpoint;if(!D&&!I||!y)return!1;if(D){I=_.u(D,_.kc);var F=_.u(y,_.kc);if(I&&F)return I.browseId===F.browseId&&I.params===F.params;var R;D=(R=_.u(D.commandMetadata,_.nE))==null?void 0:R.url;var O;y=(O=_.u(y.commandMetadata,_.nE))==null?void 0:O.url;return!(!D||!y||D!==y&&D!==_.iP(y))}return this.isActiveShortsTab(I,y)};
_.L.isActiveShortsTab=function(I,y){y=!!_.u(y,_.WF)||!!_.u(y,_.Jz);return(!!_.u(I,_.WF)||!!_.u(I,_.Jz))&&y};
_.L.computeTitle=function(I,y){return y?"":_.rY(I)};
_.L.computeEndpoint=function(I){return this.isSeedlessReelCommand(I.serviceEndpoint)?I.serviceEndpoint:I.navigationEndpoint};
_.L.computeAriaLabelTitle=function(I){return _.rY(I)};
_.L.computeAllyShowMenuOnTap=function(I){return this.isShowSheetCommand(I.mouseEnterEndpoint)||this.isShowSheetCommand(I.serviceEndpoint)};
_.mD.Object.defineProperties(HE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
HE.prototype.onMouseLeave=HE.prototype.onMouseLeave;HE.prototype.onMouseEnter=HE.prototype.onMouseEnter;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],HE.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.ZU),_.A("design:type",Object)],HE.prototype,"ironButtonState",void 0);_.W([_.M(),_.A("design:type",Object)],HE.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],HE.prototype,"activeEndpoint",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],HE.prototype,"noLabels",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.A("design:type",Boolean)],HE.prototype,"isActive",void 0);_.W([_.M({computed:"computeEndpoint(data)"}),_.A("design:type",Object)],HE.prototype,"computedEndpoint",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],HE.prototype,"systemIcons",void 0);_.W([_.a0("yt-interaction"),_.A("design:type",Object)],HE.prototype,"interaction",void 0);_.W([_.Y("isActive"),_.A("design:type",Object),_.A("design:paramtypes",[])],HE.prototype,"ariaSelected",null);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],HE.prototype,"frostedGlass",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.A("design:type",Boolean)],HE.prototype,"allyShowMenuOnTap",void 0);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],HE.prototype,"onMouseEnter",null);_.W([_.z4("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],HE.prototype,"onMouseLeave",null);
_.W([_.yd({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],HE);
_.a(HE,"ytd-mini-guide-entry-renderer",function(){if(WIZ!==void 0)return WIZ;var I=document.createElement("template");_.G(I,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return WIZ=I},{mode:_.Qd("kevlar_poly_si_batch_j063")?1:2});var CJe;var eh=function(){var I=_.k.apply(this,arguments)||this;I.allVideosCount=0;I.noLabels=_.l("kevlar_mini_guide_no_labels");I.frostedGlass=_.l("web_frosted_glass");return I};
_.E(eh,_.k);_.L=eh.prototype;_.L.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.L.onMouseEnter=function(){_.l("web_guide_hover_expansion")&&_.qr(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.L.visibleChanged=function(){if(this.visible&&!this.data){var I=_.nR().resolve(_.fR(_.Py));I&&I.setGuideData(this.hostElement);_.aj(_.W4(),this.miniGuideVe);(I=_.VO())&&this.miniGuideVe&&_.J_(I,this.miniGuideVe)}};
_.L.dataChanged=function(){var I=_.l("kevlar_guide_menu_on_hover")&&_.l("kevlar_modern_mini_guide"),y=_.l("kevlar_guide_menu_on_click")&&_.l("kevlar_modern_mini_guide"),D;var F=(D=this.data)==null?void 0:D.items;D=this.allVideosCount;var R=[];I=I?0:y?1:void 0;y=I!==void 0;if(F){for(var O=[],w=_.J(F),v=w.next();!v.done;v=w.next())if(v=v.value,v.guideSubscriptionsSectionRenderer){var P=void 0;O=((P=v.guideSubscriptionsSectionRenderer)==null?void 0:P.items)||[]}F=_.J(F);for(w=F.next();!w.done;w=F.next())if(w=
w.value,v=void 0,(v=w.guideSectionRenderer)==null?0:v.items)for(v=void 0,w=_.J((v=w.guideSectionRenderer)==null?void 0:v.items),v=w.next();!v.done;v=w.next()){v=v.value;var K=void 0,r=void 0;P=v.guideEntryRenderer||_.u((K=v)==null?void 0:(r=K.guideCollapsibleSectionEntryRenderer)==null?void 0:r.headerEntry,C0R);K=[];r=[];var N=void 0;if(((N=P)==null?void 0:N.targetId)==="subscriptions-guide-item")K=O;else{var h=N=void 0;if((N=v)==null?0:(h=N.guideCollapsibleSectionEntryRenderer)==null?0:h.sectionItems)r=
K=v.guideCollapsibleSectionEntryRenderer.sectionItems}Asg(R,P,y?K:[],I);if(r.length>0)for(v=_.J(r),P=v.next();!P.done;P=v.next())P=P.value,r=_.u(P,b1o),K=void 0,r=r&&(r.alwaysShow||D)?_.u((K=r)==null?void 0:K.entryRenderer,C0R):_.u(P,C0R),Asg(R,r,[])}}this.miniGuideItems=R};
_.L.activeEndpointChanged=function(){for(var I=this.items.children,y=0;y<I.length;y++)I[y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.L.registerWithViewTransitionManager=function(){var I=this;_.y9(_.w2,function(){var y=_.nR().resolve(_.fR(_.et));if(y&&y.isAnyTransitionEnabled){var D={};y.viewTransitionCoordinator.registerElement(I.hostElement,(D.slide="mini-guide-page-transition",D))}})};
eh.prototype.activeEndpointChanged=eh.prototype.activeEndpointChanged;eh.prototype.dataChanged=eh.prototype.dataChanged;eh.prototype.visibleChanged=eh.prototype.visibleChanged;eh.prototype.onMouseEnter=eh.prototype.onMouseEnter;_.W([_.Q(_.Jl),_.A("design:type",Object)],eh.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],eh.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],eh.prototype,"ytComponentBehavior",void 0);_.W([_.a0("#items"),_.A("design:type",Object)],eh.prototype,"items",void 0);_.W([_.M(),_.A("design:type",Object)],eh.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Boolean)],eh.prototype,"visible",void 0);_.W([_.M(),_.A("design:type",Object)],eh.prototype,"miniGuideItems",void 0);_.W([_.M({selector:_.Am5}),_.A("design:type",Object)],eh.prototype,"allVideosCount",void 0);_.W([_.M({value:_.QM(283834)}),_.A("design:type",_.TG)],eh.prototype,"miniGuideVe",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],eh.prototype,"noLabels",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],eh.prototype,"frostedGlass",void 0);_.W([_.z4("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eh.prototype,"onMouseEnter",null);_.W([_.Bp("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eh.prototype,"visibleChanged",null);
_.W([_.Bp("data","allVideosCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eh.prototype,"dataChanged",null);_.W([_.Bp("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eh.prototype,"activeEndpointChanged",null);_.W([_.yd({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],eh);
_.a(eh,"ytd-mini-guide-renderer",function(){if(CJe===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);CJe=I}I=CJe;return I},{mode:1});var B$R;var ile=/^[\x00-\x7F]+$/,TD=function(){return _.k.apply(this,arguments)||this};
_.E(TD,_.k);_.mD.Object.defineProperties(TD.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var I,y=_.rY((I=this.data)==null?void 0:I.handle);if(y)return _.Ug("@"+y)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var I=_.rY(this.displayHandle),y,D=_.rY((y=this.data)==null?void 0:y.handleUrl);if(I&&D)return _.Ug(D+I)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var I=_.rY(this.displayHandle);if(I&&!ile.test(I)){var y;return(y=this.data)==null?void 0:y.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var I=_.rY(this.displayHandleUrl),y,D=_.rY((y=this.data)==null?void 0:y.urlInfoText);if(I&&D)return _.Ug(D+" "+I)}}});
_.W([_.M(),_.A("design:type",Object)],TD.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],TD.prototype,"displayHandle",null);_.W([_.Y("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],TD.prototype,"displayHandleUrl",null);_.W([_.Y("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],TD.prototype,"warningText",null);
_.W([_.Y("displayHandleUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],TD.prototype,"urlInfoTextWithUrl",null);_.W([_.yd({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],TD);
_.a(TD,"ytd-handles-claiming-confirm-dialog-content",function(){if(B$R!==void 0)return B$R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return B$R=I},{mode:1});var A1Q;var si=function(){var I=_.k.apply(this,arguments)||this;I.okButtonOverride={style:"mono",type:"outline",size:"M"};return I};
_.E(si,_.k);si.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
si.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],si.prototype,"okButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],si.prototype,"data",void 0);_.W([_.yd({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],si);
_.a(si,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(A1Q!==void 0)return A1Q;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return A1Q=I},{mode:1});var $Be;var blC=/^[\x00-\x7F]+$/,Vc=function(){var I=_.k.apply(this,arguments)||this;I.isLoading=!1;return I};
_.E(Vc,_.k);Vc.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var I;this.selectedHandle=(I=this.handleInput)==null?void 0:I.value;this.onSelectedHandleChanged(this.selectedHandle);_.qr(this.hostElement,"yt-refit-popups-action")}};
_.mD.Object.defineProperties(Vc.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ug("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ug(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!blC.test(this.selectedHandle)){var I;return(I=this.data)==null?void 0:I.warningText}}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Vc.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],Vc.prototype,"selectedHandle",void 0);_.W([_.M(),_.A("design:type",Object)],Vc.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Function)],Vc.prototype,"onSelectedHandleChanged",void 0);_.W([_.a0("#channel-handle-input"),_.A("design:type",Object)],Vc.prototype,"handleInput",void 0);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vc.prototype,"handleUrlPrefix",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vc.prototype,"displayHandle",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vc.prototype,"displayHandleUrl",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vc.prototype,"warningText",null);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.W([_.yd({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Vc);
_.a(Vc,"ytd-handles-claiming-edit-dialog-content",function(){if($Be!==void 0)return $Be;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $Be=I},{mode:1});var HlT;var Zv=function(){var I=_.k.apply(this,arguments)||this;I.actionButtonOverride={style:"mono",type:"filled",size:"M"};I.cancelButtonOverride={style:"mono",type:"text",size:"M"};I.selectButtonDisabled=!1;I.isLoading=!1;I.hasSelectedHandleEventListener=!1;I.selectedHandleChanged=function(y){I.selectedHandle=y};
return I};
_.E(Zv,_.k);_.L=Zv.prototype;_.L.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.L.onDataChanged=function(){var I,y;this.selectedHandle=(y=_.u((I=this.data)==null?void 0:I.inputField,vSa))==null?void 0:y.handle};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.onCancel=function(){this.selectedHandle="";_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
_.L.onSelectHandle=function(){var I=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,F){if(F.newHandleUpdateStatus!==void 0&&F.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&F.newHandleUpdateStatus.errorMessage)_.v_(I.hostElement,_.rY(F.newHandleUpdateStatus.errorMessage)),
I.isLoading=!1;else{var R;if((R=I.data)==null?0:R.onChannelUpdateSuccess){D=I.data.onChannelUpdateSuccess;var O,w;if(F=(O=_.u(D,_.Hc))==null?void 0:(w=O.popup)==null?void 0:w.handlesClaimingConfirmDialogRenderer)F.handle=_.Ug(I.selectedHandle);I.ytComponentBehavior.resolveCommand(D);_.uj(I.hostElement,"yt-close-popup-action",[I.is])}else I.isLoading=!1}},
onServerError:function(){var D;I.content&&((D=I.content)==null?0:D.handleInput)&&I.content.handleInput.validate();I.isLoading=!1;_.v_(I.hostElement,_.zC("TRY_AGAIN_LATER"))}}}))}};
_.L.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Zv.prototype.onDataChanged=Zv.prototype.onDataChanged;Zv.prototype.onSelectedHandleChanged=Zv.prototype.onSelectedHandleChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"actionButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"cancelButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",String)],Zv.prototype,"selectedHandle",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"selectButtonDisabled",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"hasSelectedHandleEventListener",void 0);_.W([_.M(),_.A("design:type",Object)],Zv.prototype,"handleInput",void 0);
_.W([_.ke("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zv.prototype,"onSelectedHandleChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zv.prototype,"onDataChanged",null);_.W([_.a0("ytd-handles-claiming-edit-dialog-content"),_.A("design:type",Object)],Zv.prototype,"content",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.yd({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Zv);
_.a(Zv,"ytd-handles-claiming-edit-dialog-renderer",function(){if(HlT!==void 0)return HlT;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return HlT=I},{mode:1});var e$R;var gD=function(){return _.k.apply(this,arguments)||this};
_.E(gD,_.k);_.mD.Object.defineProperties(gD.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.handle){var y;return _.Ug("@"+_.rY((y=this.data)==null?void 0:y.handle))}}}});
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gD.prototype,"formattedHandle",null);_.W([_.M(),_.A("design:type",Object)],gD.prototype,"data",void 0);_.W([_.yd({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],gD);
_.a(gD,"ytd-handles-claiming-radio-option-renderer",function(){if(e$R!==void 0)return e$R;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return e$R=I},{mode:1});var T$o;var sNC=/^[\x00-\x7F]+$/,II=function(){var I=_.k.apply(this,arguments)||this;I.initialRadioIndex="-1";I.isLoading=!1;I.maybeSubmitFeedback=function(){I.feedbackSurveyRenderer.submitSurvey()};
return I};
_.E(II,_.k);II.prototype.updateSelectedHandleIndexFromBinding=function(I){this.selectedRadioIndex=+I.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(I)};
II.prototype.selectedHandleChanged=function(I){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var y;this.selectedHandle=(y=this.handleInput)==null?void 0:y.value;this.onSelectedHandleChanged(I)}};
_.mD.Object.defineProperties(II.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var I;return this.ytRendererBehavior.getSimpleString((I=this.data)==null?void 0:I.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ug("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ug(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!sNC.test(this.selectedHandle)){var I;return(I=this.data)==null?void 0:I.warningText}}}});
_.W([_.M(),_.A("design:type",Object)],II.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],II.prototype,"initialRadioIndex",void 0);_.W([_.M(),_.A("design:type",Number)],II.prototype,"selectedRadioIndex",void 0);_.W([_.M(),_.A("design:type",String)],II.prototype,"selectedHandle",void 0);_.W([_.M(),_.A("design:type",Object)],II.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Function)],II.prototype,"onSelectedHandleChanged",void 0);
_.W([_.M(),_.A("design:type",Function)],II.prototype,"onSelectedRadioIndexChanged",void 0);_.W([_.a0("#channel-handle-input"),_.A("design:type",Object)],II.prototype,"handleInput",void 0);_.W([_.a0("ytd-feedback-survey-renderer"),_.A("design:type",Object)],II.prototype,"feedbackSurveyRenderer",void 0);_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],II.prototype,"radioButtonLength",null);
_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],II.prototype,"handleUrlPrefix",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],II.prototype,"displayHandle",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],II.prototype,"displayHandleUrl",null);_.W([_.Y("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],II.prototype,"warningText",null);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.W([_.yd({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],II);
_.a(II,"ytd-handles-claiming-select-dialog-content",function(){if(T$o!==void 0)return T$o;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return T$o=I},{mode:1});var VOG;var yh=function(){var I=_.k.apply(this,arguments)||this;I.actionButtonOverride={style:"mono",type:"filled",size:"M"};I.cancelButtonOverride={style:"mono",type:"text",size:"M"};I.initialRadioIndex="-1";I.selectButtonDisabled=!1;I.isLoading=!1;I.selectedRadioIndexChanged=function(y){I.selectedRadioIndex=Number(y.detail.value)};
I.selectedHandleChanged=function(y){I.selectedHandle=y.detail.value};
return I};
_.E(yh,_.k);_.L=yh.prototype;_.L.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.L.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.L.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.qr(this.hostElement,"yt-refit-popups-action")};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
_.L.onSelectHandle=function(){var I=this;if(this.selectedHandle!==void 0){var y;((y=this.data)==null?void 0:y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,F){if(F.newHandleUpdateStatus!==void 0&&F.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&F.newHandleUpdateStatus.errorMessage)_.v_(I.hostElement,_.rY(F.newHandleUpdateStatus.errorMessage)),
I.isLoading=!1;else{var R;if((R=I.data)==null?0:R.onChannelUpdateSuccess){D=I.data.onChannelUpdateSuccess;F=_.u(D,_.Hc);var O;if(F==null?0:(O=F.popup)==null?0:O.handlesClaimingConfirmDialogRenderer)F.popup.handlesClaimingConfirmDialogRenderer.handle=_.Ug(I.selectedHandle);I.ytComponentBehavior.resolveCommand(D);_.uj(I.hostElement,"yt-close-popup-action",[I.is])}else I.isLoading=!1}},
onServerError:function(){if(I.selectedRadioIndex===I.radioButtonLength){var D;I.content&&((D=I.content)==null?0:D.handleInput)&&I.content.handleInput.validate()}I.isLoading=!1;_.v_(I.hostElement,_.zC("TRY_AGAIN_LATER"))}}}))}};
_.L.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var I,y;this.selectedHandle=(I=this.content)==null?void 0:(y=I.handleInput)==null?void 0:y.value}else this.selectedRadioIndex>=0&&((I=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(I==null?void 0:I.handle):this.selectedHandle=void 0)};
_.L.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.L.getRadioItem=function(I){if(this.radioButtonLength>I&&I>=0)return _.u(this.data.radioButton[I],icG)};
_.mD.Object.defineProperties(yh.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.radioButton)||[]).length}}});
yh.prototype.onSelectedHandleChanged=yh.prototype.onSelectedHandleChanged;yh.prototype.onSelectedHandleIndexChanged=yh.prototype.onSelectedHandleIndexChanged;yh.prototype.onDataChanged=yh.prototype.onDataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],yh.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],yh.prototype,"actionButtonOverride",void 0);_.W([_.M(),_.A("design:type",Object)],yh.prototype,"cancelButtonOverride",void 0);
_.W([_.M(),_.A("design:type",Object)],yh.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],yh.prototype,"initialRadioIndex",void 0);_.W([_.M(),_.A("design:type",Number)],yh.prototype,"selectedRadioIndex",void 0);_.W([_.M(),_.A("design:type",String)],yh.prototype,"selectedHandle",void 0);_.W([_.M(),_.A("design:type",Object)],yh.prototype,"selectButtonDisabled",void 0);_.W([_.M(),_.A("design:type",Object)],yh.prototype,"isLoading",void 0);
_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],yh.prototype,"radioButtonLength",null);_.W([_.a0("ytd-handles-claiming-select-dialog-content"),_.A("design:type",Object)],yh.prototype,"content",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"onDataChanged",null);
_.W([_.ke("selectedRadioIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"onSelectedHandleIndexChanged",null);_.W([_.ke("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yh.prototype,"onSelectedHandleChanged",null);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.yd({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],yh);
_.a(yh,"ytd-handles-claiming-select-dialog-renderer",function(){if(VOG!==void 0)return VOG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return VOG=I},{mode:1});var Zle;var gda;var Di=function(){return _.k.apply(this,arguments)||this};
_.E(Di,_.k);Di.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Di.prototype,"data",void 0);_.W([_.yd({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Di);
_.a(Di,"ytd-hotkey-dialog-section-option-renderer",function(){if(gda!==void 0)return gda;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return gda=I},{mode:1});var IYe;var FR=function(){return _.k.apply(this,arguments)||this};
_.E(FR,_.k);FR.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],FR.prototype,"data",void 0);_.W([_.yd({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],FR);
_.a(FR,"ytd-hotkey-dialog-section-renderer",function(){if(IYe!==void 0)return IYe;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return IYe=I},{mode:1});var RI=function(){return _.k.apply(this,arguments)||this};
_.E(RI,_.k);RI.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],RI.prototype,"data",void 0);_.W([_.yd({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],RI);
_.a(RI,"ytd-hotkey-dialog-content",function(){if(Zle!==void 0)return Zle;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Zle=I},{mode:1});var yyR;var OU=function(){return _.k.apply(this,arguments)||this};
_.E(OU,_.k);OU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var I=document.querySelector("ytd-hotkey-dialog-content #scrollable");I&&(I.dialogElement=this.hostElement.parentElement)};
OU.prototype.onCloseTap=function(){_.uj(this.hostElement,"yt-close-popup-action")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],OU.prototype,"data",void 0);_.W([_.yd({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],OU);
_.a(OU,"ytd-hotkey-dialog-renderer",function(){if(yyR!==void 0)return yyR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return yyR=I},{mode:1});var Deo;var L6=function(){return _.k.apply(this,arguments)||this};
_.E(L6,_.k);L6.prototype.onYtServiceRequestError=function(){if(this.blocked){var I;var y=(I=this.data)==null?void 0:I.defaultServiceEndpoint}else{var D;y=(D=this.data)==null?void 0:D.toggledServiceEndpoint}var F;(y=(F=_.u(y,_.pcc))==null?void 0:F.onFailureAction)&&this.ytComponentBehavior.resolveCommand(y);this.updateBlockState(!this.blocked)};
L6.prototype.onYtToggleButton=function(I){this.updateBlockState(I.detail.toggled)};
L6.prototype.updateBlockState=function(I){if(I!==this.blocked){var y=this.blockedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.WS("blockStateEntity",y,{key:y,blocked:I}));this.set("data.isToggled",I)}};
_.mD.Object.defineProperties(L6.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)}}});
L6.prototype.onYtToggleButton=L6.prototype.onYtToggleButton;L6.prototype.onYtServiceRequestError=L6.prototype.onYtServiceRequestError;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],L6.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],L6.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],L6.prototype,"blockedEntityKey",void 0);
_.W([_.M({selectorArgs:["blockedEntityKey"],selector:function(I,y){return _.nC(I.entities,"blockStateEntity",y)}}),
_.A("design:type",Object)],L6.prototype,"blockStateEntity",void 0);_.W([_.Y("data","blockStateEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],L6.prototype,"blocked",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],L6.prototype,"onYtServiceRequestError",null);
_.W([_.z4("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],L6.prototype,"onYtToggleButton",null);_.W([_.yd({is:"ytd-block-button",disableElementRegistration:!0})],L6);
_.a(L6,"ytd-block-button",function(){if(Deo!==void 0)return Deo;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Deo=I},
{mode:1});var FlR;var R8T;var J$=function(){return _.k.apply(this,arguments)||this};
_.E(J$,_.k);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],J$.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],J$.prototype,"data",void 0);_.W([_.yd({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],J$);
_.a(J$,"ytd-kids-blocklist-picker-item-renderer",function(){if(R8T!==void 0)return R8T;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return R8T=I},{mode:1});var wz=function(){return _.k.apply(this,arguments)||this};
_.E(wz,_.k);wz.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],wz.prototype,"data",void 0);_.W([_.yd({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],wz);
_.a(wz,"ytd-kids-blocklist-picker-content",function(){if(FlR!==void 0)return FlR;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return FlR=
I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var Omy;var va=function(){var I=_.k.apply(this,arguments)||this;I.hasAnyRequestSucceeded=!1;I.hasAnyRequestFailed=!1;I.numPendingRequests=0;return I};
_.E(va,_.k);_.L=va.prototype;_.L.attached=function(){this.hostElement.setAttribute("dialog","")};
_.L.onDoneButtonTap=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.L.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.L.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.L.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.L.onPopupClosed=function(I){var y,D;if(((y=I.detail)==null?void 0:(D=y.popup)==null?void 0:D.is)==="tp-yt-paper-dialog"){var F;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((F=this.data)==null?0:F.successfulToastActionMessage)&&(I=_.hS(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(I));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
va.prototype.onPopupClosed=va.prototype.onPopupClosed;va.prototype.onYtServiceRequestError=va.prototype.onYtServiceRequestError;va.prototype.onYtServiceRequestCompleted=va.prototype.onYtServiceRequestCompleted;va.prototype.onYtServiceRequestSent=va.prototype.onYtServiceRequestSent;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],va.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],va.prototype,"data",void 0);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],va.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],va.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],va.prototype,"onYtServiceRequestError",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],va.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],va);
_.a(va,"ytd-kids-blocklist-picker-renderer",function(){if(Omy!==void 0)return Omy;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Omy=I},{mode:1});var Lly;var Jy8;var S2=function(){return _.k.apply(this,arguments)||this};
_.E(S2,_.k);S2.prototype.setTip=function(I){var y=this;this.data&&(this.tip=UdT(PB1.getInstance(),I,this.data),_.YC(this,function(){_.lj(y.hostElement,"yt-refit")}))};
S2.prototype.clearTip=function(){this.tip=void 0};
S2.prototype.computeHidden=function(I){return!I};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],S2.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.A("design:type",Boolean)],S2.prototype,"hidden",void 0);_.W([_.M(),_.A("design:type",Object)],S2.prototype,"tip",void 0);_.W([_.yd({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],S2);
_.a(S2,"ytd-menu-popup-tip-renderer",function(){if(Jy8!==void 0)return Jy8;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);
return Jy8=I},{mode:1});var whg;var t$=function(){var I=_.k.apply(this,arguments)||this;I.useIcons=!1;I.role="menuitem";I.systemIcons=_.l("kevlar_system_icons");return I};
_.E(t$,_.k);_.L=t$.prototype;_.L.onFocus=function(){var I;(I=_.XB(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.L.onTap=function(){var I=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(I&&_.u(I,_.Q_))this.componentBehavior.resolveCommand(I),this.updateToggledStateInEntity();else if(I){this.componentBehavior.resolveCommand(I)||_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}});var y;((y=_.u(I,_.fE))==null?void 0:y.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.L.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.L.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.L.updateToggledStateInEntity=function(){var I=this.data.toggleMenuServiceItemEntityKey,y=!this.data.isToggled;I&&this.ytdReduxBehavior.dispatch(_.WS("toggleMenuServiceItemEntity",I,{key:I,isToggled:y}))};
_.L.computeIcon=function(I,y,D){return(I=I?D:y)&&I.iconType?_.pQ(I.iconType):""};
_.L.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.L.isIconActive=function(I){return!_.l("toggle_menu_active_icon_killswitch")&&I};
_.mD.Object.defineProperties(t$.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?0:I.isToggled)?(y=this.data)==null?void 0:y.toggledText:(D=this.data)==null?void 0:D.defaultText}}});
t$.prototype.toggledStateEntityChanged=t$.prototype.toggledStateEntityChanged;t$.prototype.onYtServiceRequestCompleted=t$.prototype.onYtServiceRequestCompleted;t$.prototype.onTap=t$.prototype.onTap;t$.prototype.onFocus=t$.prototype.onFocus;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],t$.prototype,"componentBehavior",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],t$.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],t$.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t$.prototype,"useIcons",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t$.prototype,"role",void 0);_.W([_.M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],t$.prototype,"icon",void 0);
_.W([_.M({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.It.toggleMenuServiceItemEntitySelector}),_.A("design:type",Object)],t$.prototype,"toggleMenuServiceItemEntity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],t$.prototype,"systemIcons",void 0);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t$.prototype,"onFocus",null);
_.W([_.Y("data.isToggled"),_.A("design:type",Object),_.A("design:paramtypes",[])],t$.prototype,"toggleButtonText",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t$.prototype,"onTap",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t$.prototype,"onYtServiceRequestCompleted",null);
_.W([_.ke("toggleMenuServiceItemEntity.isToggled","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t$.prototype,"toggledStateEntityChanged",null);_.W([_.yd({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],t$);
_.a(t$,"ytd-toggle-menu-service-item-renderer",function(){if(whg!==void 0)return whg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return whg=I},{mode:1});var vGg;var Pa=function(){return _.k.apply(this,arguments)||this};
_.E(Pa,_.k);Pa.prototype.onFocus=function(){var I;(I=_.XB(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.mD.Object.defineProperties(Pa.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.VA(this.data.iconUrl)}}});
Pa.prototype.onFocus=Pa.prototype.onFocus;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Pa.prototype,"rendererBehavior",void 0);_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],Pa.prototype,"ytEndpointBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Pa.prototype,"data",void 0);_.W([_.z4("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pa.prototype,"onFocus",null);
_.W([_.Y("data.iconUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pa.prototype,"imageSource",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Pa);
_.a(Pa,"ytd-menu-custom-icon-item-renderer",function(){if(vGg!==void 0)return vGg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return vGg=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});_.NK(_.P3,"yt-list-item-view-model",{props:{data:_.om,isMenuItem:_.om,isCompact:_.om,onTap:_.rV,trailingAccessory:_.rV,hideSelectionTextChevron:_.om,disabled:_.om,inPopup:_.om,disableHorizontalPadding:_.om,isOverlay:_.om,isToggled:_.om,ariaLabel:_.om,ariaPressed:_.om,shouldNotFillIcon:_.om}});var K6=function(){var I=_.k.apply(this,arguments)||this;I.disableBackdropFilter=_.l("web_disable_backdrop_filter");return I};
_.E(K6,_.k);_.L=K6.prototype;
_.L.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"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.L.computeAriaLabel=function(I){return I};
_.L.onPopupOpened=function(){this.items.selected=0;for(var I=_.J(_.XB(this.items).children),y=I.next();!y.done;y=I.next())y.value.popupPositionTarget=this.positionTarget;if(I=this.popupTip||void 0)I.setTip(this.source||""),this.source=void 0;this.veData&&(I=_.VO())&&_.wH(I,[this.veData])};
_.L.onPopupClosed=function(){var I=this.popupTip||void 0;I&&I.clearTip()};
_.L.onIronActivate=function(I){this.shouldPersist(I)||_.uj(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(I=_.VO())&&_.SI(I,this.veData)};
_.L.shouldPersist=function(I){var y,D;if(((y=I.detail)==null?void 0:y.selected)===void 0||(D=this.data)==null||!D.items)return!1;var F,R;return!((R=(F=this.data.items[I.detail.selected])==null?void 0:F.toggleMenuServiceItemRenderer)==null||!R.persistentOnMenuPopup)};
_.L.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(I){return I.menuNavigationItemRenderer?!!I.menuNavigationItemRenderer.icon:I.menuServiceItemRenderer?!!I.menuServiceItemRenderer.icon:I.menuConditionalServiceItemRenderer?!!I.menuConditionalServiceItemRenderer.icon:I.menuConditionalNavigationItemRenderer?!!I.menuConditionalNavigationItemRenderer.icon:I.toggleMenuServiceItemRenderer?!!I.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
K6.prototype.onPopupClosed=K6.prototype.onPopupClosed;K6.prototype.onPopupOpened=K6.prototype.onPopupOpened;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],K6.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],K6.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],K6.prototype,"veData",void 0);_.W([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.A("design:type",String)],K6.prototype,"ariaLabel",void 0);_.W([_.M({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],K6.prototype,"useIcons",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],K6.prototype,"disableBackdropFilter",void 0);_.W([_.a0("#items"),_.A("design:type",Object)],K6.prototype,"items",void 0);_.W([_.a0("ytd-menu-popup-tip-renderer"),_.A("design:type",Object)],K6.prototype,"popupTip",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],K6.prototype,"onPopupOpened",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],K6.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],K6);
_.a(K6,"ytd-menu-popup-renderer",function(){if(Lly!==void 0)return Lly;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Lly=I},{mode:1});var SXb;var tyy=_.d(function(I){I=_.o6(I,{icon:void 0});var y=I.data;I=I.icon;var D=function(){return y().iconBadgeText},F={},R=_.XH("yt-spec-icon-badge-shape",function(){a:switch(y().iconBadgeType){case "notification":var O="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":O="yt-spec-icon-badge-shape--type-cart";break a;default:O=""}return O},function(){a:switch(y().iconBadgeStyle){case "overlay":var O="yt-spec-icon-badge-shape--style-overlay";
break a;default:O=""}return O},(F["yt-spec-icon-badge-shape--text-size-small"]=function(){var O=D();
return!!((O==null?0:O.length)&&O.length>2)},F));
return _.t("yt-icon-badge-shape",null,_.t(_.U,{cond:I,then:function(O){return _.t("div",{class:R},_.t("div",{class:"yt-spec-icon-badge-shape__icon"},_.t(_.mj,{icon:O})),_.t(_.U,{cond:D,then:function(w){return _.t("div",{class:"yt-spec-icon-badge-shape__badge"},w)}}))}}))},"al");
tyy.idomCompat=!0;_.NK(tyy,"yt-icon-badge-shape",{props:{data:_.om,icon:_.om}});var UU=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};I.unseenCount=0;I.isOverlay=!1;return I};
_.E(UU,_.k);_.L=UU.prototype;_.L.attached=function(){var I=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(y){I.onServiceWorkerMessage(y)})};
_.L.onDataChanged=function(){this.isAttached&&!this.JSC$22573_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22573_lastData=this.data};
_.L.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.L.computeIcon=function(){var I,y;return(I=this.data)==null?void 0:(y=I.icon)==null?void 0:y.iconType};
_.L.onServiceWorkerMessage=function(I){I.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.L.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.u(this.data.updateUnseenCountEndpoint,_.fE)&&_.u(this.data.updateUnseenCountEndpoint,_.fE).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.L.handleUpdateNotificationsUnseenCountAction=function(I){var y=this;I=_.u(I,ESa);I!=null&&I.unseenCount&&I.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(I.unseenCount),_.w2.addLowPriorityJob(function(){y.data.updateUnseenCountEndpoint&&y.ytComponentBehavior.resolveCommand(y.data.updateUnseenCountEndpoint)},I.timeoutMs))};
_.L.onClick=function(){_.lj(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var I=_.qr(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),y=this.data.menuRequest;I&&I.length===1&&I[0]?_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):y&&this.ytComponentBehavior.resolveCommand(y)};
_.L.handleTopbarMenuClosedAction=function(I){I==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.L.toggleIconState=function(I){this.iconButton&&(this.iconButton.pressed=I)};
_.L.sendUnseenCountRequest=function(I){var y=this;_.y9(_.w2,function(){y.ytComponentBehavior.resolveCommand(I)})};
_.L.updateCountUI=function(I){this.set("unseenCount",I<9?I:"9+")};
_.mD.Object.defineProperties(UU.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
UU.prototype.handleUpdateNotificationsUnseenCountAction=UU.prototype.handleUpdateNotificationsUnseenCountAction;UU.prototype.onDataChanged=UU.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],UU.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.G2),_.A("design:type",Object)],UU.prototype,"ytdOpenPopupBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],UU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],UU.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],UU.prototype,"unseenCount",void 0);_.W([_.M(),_.A("design:type",Object)],UU.prototype,"isOverlay",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],UU.prototype,"showTooltips",void 0);_.W([_.a0("yt-icon-button"),_.A("design:type",Object)],UU.prototype,"iconButton",void 0);
_.W([_.Y("unseenCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],UU.prototype,"showNotificationCount",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UU.prototype,"onDataChanged",null);_.W([_.z4("yt-update-notifications-unseen-count-action"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],UU.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.W([_.yd({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],UU);
_.a(UU,"ytd-notification-topbar-button-renderer",function(){if(SXb!==void 0)return SXb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return SXb=I},{mode:_.Qd("kevlar_poly_si_batch_j025")?1:2});var PUe;var rz=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return I};
_.E(rz,_.k);rz.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}}}}}};
rz.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
rz.prototype.onDarkModeToggled=function(I){this.dark=I};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],rz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],rz.prototype,"data",void 0);_.W([_.M({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],rz.prototype,"dark",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],rz);
_.a(rz,"yt-pdg-buy-flow-header-renderer",function(){if(PUe!==void 0)return PUe;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return PUe=I},{mode:1});var Kle;var Uea;var j2=function(){var I=_.k.apply(this,arguments)||this;I.immediateValue=0;I.isDarkTheme=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E(j2,_.k);_.L=j2.prototype;_.L.created=function(){_.Jw.requestAvailability()};
_.L.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.L.dataChanged=function(){var I=_.XB(this.hostElement).querySelector("#color-slider");I.immediateValue&&this.updateSliderKnobAndGradientStyles(I.immediateValue);this.data.notches[0].knobColorArgb&&_.pg(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Z7(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Pi("HTML_DIR")==="rtl"&&_.XB(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.L.onSliderImmediateChange=function(){var I=_.XB(this.hostElement).querySelector("#color-slider");I.dragging&&(I.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(I.immediateValue),this.updateSliderKnobAndGradientStyles(I.immediateValue)),this.updateSliderAria())};
_.L.onSliderChange=function(){var I=_.XB(this.hostElement).querySelector("#color-slider");I.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(I.immediateValue),this.updateSliderKnobAndGradientStyles(I.immediateValue));this.updateSliderAria()};
_.L.updateSliderAria=function(){var I=_.XB(this.hostElement).querySelector("#color-slider"),y=_.XB(this.hostElement).querySelector("#color-slider");y=_.rY(this.data.notches[y.immediateValue].tierValue);_.Nqo()&&_.lj(this.hostElement,"iron-announce",{text:y});I.setAttribute("aria-valuetext",y)};
_.L.updateSuperThanksSelectedTierEntity=function(I){if(I!==this.immediateValue){var y,D,F=this==null?void 0:(y=this.data)==null?void 0:(D=y.superThanksSelectedTierEntity)==null?void 0:D.key;F&&F.length>0&&this.ytdReduxBehavior.dispatch(_.WS("superThanksSelectedTierEntity",F,{key:F,index:I}))}};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.updateSliderKnobAndGradientStyles=function(I){this.immediateValue=I;I=this.data.notches[I];if(I==null?0:I.knobColorArgb)var y={"--ytd-pdg-color-slider-knob-color":_.Z7(I.knobColorArgb)};(I==null?0:I.linearGradientCssStyle)&&y!==null&&(y=Object.assign({},y,{"--ytd-pdg-color-slider-active-color":I==null?void 0:I.linearGradientCssStyle}));y!==null&&_.pg(this.hostElement,y)};
j2.prototype.onSliderChange=j2.prototype.onSliderChange;j2.prototype.onSliderImmediateChange=j2.prototype.onSliderImmediateChange;j2.prototype.dataChanged=j2.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],j2.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],j2.prototype,"immediateValue",void 0);_.W([_.M(),_.A("design:type",Number)],j2.prototype,"maxMarkers",void 0);
_.W([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z3a}),_.A("design:type",Object)],j2.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],j2.prototype,"isDarkTheme",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],j2.prototype,"ytdReduxBehavior",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j2.prototype,"dataChanged",null);
_.W([_.z4("immediate-value-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j2.prototype,"onSliderImmediateChange",null);_.W([_.z4("change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j2.prototype,"onSliderChange",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],j2);
_.a(j2,"ytd-pdg-color-slider-renderer",function(){if(Uea!==void 0)return Uea;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Uea=I},{mode:1});var ryT;var jsC;var oI=null;
_.T4({is:"ytd-comment-input",_template:function(){if(jsC!==void 0)return jsC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return jsC=I},
behaviors:[_.guo.YtHostElementBehavior,_.CP,_.vb.YtComponentBehavior,_.XN.YtRendererstamperBehavior,_.Sjf.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 _.rQ}},
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",_.MX(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;_.aZ();this.focus()},
detached:function(){document.removeEventListener("tap",_.MX(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(I){I=I.detail;I=I.isCustomEmoji?I.shortcuts[0]:I.emojiId;var y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(y,I);this.maybeUpdateTextDirection_();_.lj(this.hostElement,"input")},
getInputRange_:function(){var I=_.Br();if(I){I=I.getBrowserRangeObject();for(var y=I.commonAncestorContainer;y;){if(y===this.getEditableTextArea_())return I;y=y.parentNode}}I=this.getEditableTextArea_();I=_.$C(I,I.childNodes.length);I.select();return I.getBrowserRangeObject()},
insertTextWithEmojis_:function(I,y,D){(y=this.emojiManager.createDocumentFragment(y,!0,!1,D===void 0?!0:D))&&y.childNodes.length!==0&&(I.collapsed||I.deleteContents(),D=y.lastChild,I.insertNode(y),_.NVR(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var I=_.Br();if(I){var y=I.JSC$11621_getStartNode(),D=I.JSC$11621_getEndNode();if($vQ(y)&&$vQ(D)){var F=I.JSC$11621_getStartOffset(),R;if(_.pz&&y.nodeType===Node.ELEMENT_NODE&&(R=_.dRg(y)))_.$C(R,0).select();else{R=Uj(y)?y:_.gB(y,Uj);var O=Uj(D)?D:_.gB(D,Uj);if(R||O)if(I.isCollapsed()){if(y.nodeType===Node.TEXT_NODE){I=!0;F===y.length&&(I=!1);if(oI==="end"||oI==="right")I=!1;y=y.parentNode;I=[].concat(_.Td(y.parentNode.childNodes)).indexOf(y)+(I?0:1);_.$C(y.parentNode,
I).select()}}else R?R.previousSibling&&R.previousSibling.length>0?_.bg(D,I.JSC$11621_getEndOffset(),R.previousSibling,R.previousSibling.length-1).select():(y=document.createTextNode("\u200b"),R.parentNode.insertBefore(y,R),_.bg(D,I.JSC$11621_getEndOffset(),y,0).select()):O&&(O.nextSibling&&O.nextSibling.length>0?_.bg(y,I.JSC$11621_getStartOffset(),O.nextSibling,1).select():(D=document.createTextNode("\u200b"),O.parentNode.insertBefore(D,O.nextSibling),_.bg(y,I.JSC$11621_getStartOffset(),D,D.length).select()));
oI=null}}else oI=null}else oI=null},
leftKeyPressed_:function(){oI="left"},
rightKeyPressed_:function(){oI="right"},
endKeyPressed_:function(){oI="end"},
maybeDeleteChip_:function(){var I=Zxa(!0);if(I){var y=_.Br(),D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();_.Ap(D,y,I,I.childNodes.length).select()}},
maybeBackspaceChip_:function(){var I=Zxa(!1);if(I){var y=_.Br(),D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();_.Ap(D,y,I,0).select()}},
maybeBackspaceChipWordMode_:function(I){var y=_.Br();if(y.isCollapsed()){var D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();var F=g1Q(D,y,!0);F&&(_.Ap(D,y,F,0).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(I){var y=_.Br();if(y.isCollapsed()){var D=y.JSC$11621_getStartNode();y=y.JSC$11621_getStartOffset();var F=g1Q(D,y,!1);F&&(_.Ap(D,y,F,F.childNodes.length).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
onContentClick:function(I){I.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(I){I.defaultPrevented||I.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Uj(I.target)&&I.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.XB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.XB(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(I,y){I=HxG(I,this.emojiManager,y).cloneNode(!0);for(y=I.firstChild;y;)if(y.nodeType!==1)y=y.nextSibling;else switch(y.tagName){case "BR":var D=_.Dw();_.$RM(D,y);y=D.nextSibling;break;case "DIV":(D=y.lastChild)&&y.nextSibling&&_.LA(_.Dw(),D);y.previousSibling&&(y.previousSibling.nodeType===1||y.previousSibling.nodeType===3&&!y.previousSibling.textContent.endsWith("\n"))&&_.O5(_.Dw(),y);D&&D.nodeName==="BR"&&_.dM(D);D=y;y.hasChildNodes()?(y=y.firstChild,
_.bGe(D)):(y=y.nextSibling,_.dM(D));break;default:y=y.nextSibling}return I$b(I)},
setTextAreaValue:function(I){I||(I="");var y=this.getEditableFormattedString_();y.text="";this.getEditableTextArea_().innerText="";typeof I==="string"&&(I={runs:[{text:I}]});y.text=I},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();oI=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var I=this.getEditableTextArea_();I&&(_.$C(I,I.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Pi("HTML_DIR")==="rtl"){var I=this.getEditableTextArea_(),y=this.getTextAreaValue()!==""?"auto":"rtl";I.setAttribute("dir",y)}},
handleInputEvent_:function(){var I=null;if(this.isEmojiButtonDisplayed){var y=this.getInputRange_();y&&(I=this.emojiInput.retrieveTextBeforeRange(y))}this.insertText_(I,!0);this.updateCharCount_();I=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=I.scrollHeight>I.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var I=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:I})},
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(I){this.isEmojiButtonDisplayed&&(I.preventDefault(),I.stopImmediatePropagation(),I=I.clipboardData.getData("text/plain"),this.insertText_(I,!1,!1),_.lj(this.hostElement,"input"))},
insertText_:function(I,y,D){y=y===void 0?!1:y;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&I){var F=this.getInputRange_().cloneRange();this.emojiManager&&F&&(y&&this.emojiInput.offsetStartOfRangeBy(F,I.length),this.insertTextWithEmojis_(F,I,D),bx1(this.getEditableTextArea_().lastChild)||(F=this.getInputRange_().cloneRange()),F&&(this.emojiInput.updateSuggestions(F,I),this.updateSuggestionOffset_(F)))}},
getSimpleString:_.rY,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(I){return I?"focused":"not-focused"},
computePlaceholderText_:function(I){return this.getSimpleString(I)},
computeEditableText_:function(I){return this.getSimpleString(I)},
onPrefilledContentDismissed_:function(I){I.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(I,y){I?this.fire("yt-autonav-pause-focus"):y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(I){var y=this.getEditableTextArea_();[].concat(_.Td(I.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(F){y.appendChild(document.createTextNode(F))})});
I.preventDefault()},
preventDefault_:function(I){I.preventDefault()},
onSuggestionInsert_:function(I){this.insertTextWithEmojis_(I.detail.range,I.detail.text)},
onEmojiSuggestionClick_:function(I){this.emojiInput.insertSuggestion(I.detail)},
updateSuggestionOffset_:function(I){if(this.emojiInput&&_.XB(this.emojiInput).querySelector("#dropdown")){var y=this.getEditableTextArea_().getBoundingClientRect().bottom,D=I.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(y-D)+5;y=this.getEditableTextArea_().getBoundingClientRect().left;I=I.getBoundingClientRect().left-y;_.XB(this.emojiInput).querySelector("#dropdown").style.marginLeft=I+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ku("yt-post"));return this.localStorage}});var Nt=function(){var I=_.k.apply(this,arguments)||this;I.currentCommentOptionIndex=0;I.isEmojiPickerDisplayed=!1;I.emojiManager=_.rQ;I.isUgcEmpty=!1;I.userGeneratedCommentChangedHandler=function(){_.lj(I.hostElement,"ytd-pdg-user-generated-comment-changed");I.isEmojiYtdCommentInputEnabled&&(I.isUgcEmpty=!I.ytdCommentInputEl.getTextAreaValue())};
I.pasteHandler=function(y){y.preventDefault();y.stopImmediatePropagation();var D;if(y=(D=y.clipboardData)==null?void 0:D.getData("text/plain"))D=document.getSelection().getRangeAt(0),D.collapsed||D.deleteContents(),y=document.createTextNode(y),D.insertNode(y),D.selectNodeContents(y),D.collapse(!1),y=window.getSelection(),y.removeAllRanges(),y.addRange(D)};
I.onDocumentClick=function(y){if(I.isEmojiPickerDisplayed){var D,F,R;!(y.target instanceof Node)||(D=y.composedPath())!=null&&D.includes(I.editableTextEl)||(F=y.composedPath())!=null&&F.includes(I.emojiButtonEl)||(R=y.composedPath())!=null&&R.includes(I.emojiPickerEl)||(I.isEmojiPickerDisplayed=!1)}};
return I};
_.E(Nt,_.k);_.L=Nt.prototype;_.L.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.L.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.L.detached=function(){var I;(I=this.contentEl)==null||I.removeEventListener("input",this.userGeneratedCommentChangedHandler);var y;(y=this.contentEl)==null||y.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.L.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.L.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var I;this.contentEl.textContent=this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.L.reloadEmojis=function(){this.emojiPickerEl&&_.u(this.emojiPicker,_.PWR)&&this.emojiPickerEl.updateEmojiCategories()};
_.L.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.pg(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.L.handleBackgroundColorStyling=function(){var I;if((I=this.currentCommentOption)==null?0:I.commentBackgroundColorArgb){var y;_.pg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Z7((y=this.currentCommentOption)==null?void 0:y.commentBackgroundColorArgb)})}else _.pg(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.L.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var I;(I=this.contentEl)==null||I.focus()}};
_.L.onEditButtonClick=function(I){var y=document.getSelection();y&&this.contentEl&&(I.stopPropagation(),I.preventDefault(),y.selectAllChildren(this.contentEl),y.collapseToEnd())};
_.L.onContentDrop=function(I){var y=this;if(I.dataTransfer){I=_.J(I.dataTransfer.items);for(var D=I.next();!D.done;D=I.next())D=D.value,D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(F){var R;(R=y.contentEl)==null||R.appendChild(document.createTextNode(F))})}};
_.L.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.L.getUserGeneratedCommentText=function(){var I,y=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(I=this.contentEl)==null?void 0:I.textContent;return y?y.trim():""};
_.L.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.L.onEmojiSelect=function(I){this.ytdCommentInputEl.onEmojiSelect(I)};
_.mD.Object.defineProperties(Nt.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.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 I;return!((I=this.currentCommentOption)==null||!I.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if(_.u((I=this.currentCommentOption)==null?void 0:I.chipRenderer,_.k1M)){var y;return _.u((y=this.currentCommentOption)==null?void 0:y.chipRenderer,_.k1M)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var I,y;return((I=this.data)==null?0:I.commentOptionRenderers)?_.u((y=this.data)==null?void 0:y.commentOptionRenderers[this.superThanksSelectedTierEntity.index],lpy):void 0}var D,F;return((D=this.data)==null?0:D.commentOptionRenderers)?_.u((F=this.data)==null?void 0:F.commentOptionRenderers[this.currentCommentOptionIndex],lpy):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var I;return this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var I;return this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.commentDialog,_.Y4e))==null?void 0:y.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.commentDialog,_.Y4e))==null?void 0:y.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=_.u((I=this.data)==null?void 0:I.commentDialog,_.Y4e))==null?void 0:y.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(y=_.u((I=this.data)==null?void 0:I.commentDialog,_.Y4e))==null?void 0:y.emojiPicker;if(!_.u(D,_.PWR)||!_.u(D,_.PWR).categories)return!1;I=function(O){return O.emojiPickerCategoryRenderer?O.emojiPickerCategoryRenderer.emojiIds&&O.emojiPickerCategoryRenderer.emojiIds.length>0:O.emojiPickerUpsellCategoryRenderer?O.emojiPickerUpsellCategoryRenderer.emojis&&O.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var F,R;return((F=_.u(D,_.PWR))==null?0:(R=F.categories)==null?0:R.find(I))?!0:!1}}});
Nt.prototype.onEmojiSelect=Nt.prototype.onEmojiSelect;Nt.prototype.dataChanged=Nt.prototype.dataChanged;Nt.prototype.currentCommentOptionChanged=Nt.prototype.currentCommentOptionChanged;_.W([_.Q(_.Jl),_.A("design:type",Object)],Nt.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Nt.prototype,"rendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.a0("#content-dom-if"),_.A("design:type",_.VU)],Nt.prototype,"contentDomIfEl",void 0);_.W([_.a0("#content-no-emojis"),_.A("design:type",HTMLElement)],Nt.prototype,"contentEl",void 0);_.W([_.a0("#container"),_.A("design:type",HTMLElement)],Nt.prototype,"containerEl",void 0);_.W([_.a0("#comment-chip-container"),_.A("design:type",HTMLElement)],Nt.prototype,"paidCommentChipContainerEl",void 0);_.W([_.a0("#text-input"),_.A("design:type",HTMLElement)],Nt.prototype,"editableTextEl",void 0);
_.W([_.a0("#emoji-button"),_.A("design:type",HTMLElement)],Nt.prototype,"emojiButtonEl",void 0);_.W([_.a0("#emoji-picker > yt-emoji-picker-renderer"),_.A("design:type",Object)],Nt.prototype,"emojiPickerEl",void 0);_.W([_.a0("#text-input > ytd-comment-input"),_.A("design:type",Object)],Nt.prototype,"ytdCommentInputEl",void 0);_.W([_.M(),_.A("design:type",Object)],Nt.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Nt.prototype,"currentCommentOptionIndex",void 0);
_.W([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z3a}),_.A("design:type",Object)],Nt.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.M(),_.A("design:type",Object)],Nt.prototype,"isEmojiPickerDisplayed",void 0);_.W([_.M(),_.A("design:type",Object)],Nt.prototype,"emojiManager",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Nt.prototype,"isUgcEmpty",void 0);
_.W([_.ke("currentCommentOption"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nt.prototype,"currentCommentOptionChanged",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nt.prototype,"dataChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Nt.prototype,"isEmojiYtdCommentInputEnabled",null);
_.W([_.Y("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"title",null);_.W([_.Y("data.authorText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"channelName",null);_.W([_.Y("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Nt.prototype,"shouldShowPaidCommentChipRenderer",null);
_.W([_.Y("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"paidCommentChipRenderer",null);_.W([_.Y("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"currentCommentOption",null);
_.W([_.Y("data.defaultCommentText","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"commentText",null);_.W([_.Y("data.placeholderText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"placeholderText",null);_.W([_.Y("data.commentDialog.commentDialogRenderer.editableText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"editableText",null);
_.W([_.Y("data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"emojiButton",null);_.W([_.Y("data.commentDialog.commentDialogRenderer.emojiPicker"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nt.prototype,"emojiPicker",null);
_.W([_.Y("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Nt.prototype,"isEmojiButtonDisplayed",null);_.W([_.z4("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Nt.prototype,"onEmojiSelect",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Nt);
_.a(Nt,"ytd-pdg-comment-preview-renderer",function(){if(ryT!==void 0)return ryT;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return ryT=I},{mode:2});var oGb;var h$=function(){var I=_.k.apply(this,arguments)||this;I.selected=!1;return I};
_.E(h$,_.k);_.L=h$.prototype;_.L.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.L.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.L.dataChanged=function(){this.data&&(_.QU(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.pg(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Z7(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Z7(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.L.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.L.onClick=function(){this.logClick()};
_.L.onKeyboardSelect=function(){_.lj(this.hostElement,"tap");this.onClick()};
_.L.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
h$.prototype.onClick=h$.prototype.onClick;h$.prototype.selectedChanged=h$.prototype.selectedChanged;h$.prototype.dataChanged=h$.prototype.dataChanged;_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],h$.prototype,"componentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.CP),_.A("design:type",Object)],h$.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.Q(_.tC),_.A("design:type",Object)],h$.prototype,"ironSelectableBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],h$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],h$.prototype,"shownThumbnail",void 0);_.W([_.M(),_.A("design:type",Object)],h$.prototype,"basePriceText",void 0);_.W([_.M(),_.A("design:type",Object)],h$.prototype,"purchaseCommand",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],h$.prototype,"selected",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h$.prototype,"dataChanged",null);_.W([_.ke("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h$.prototype,"selectedChanged",null);_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h$.prototype,"onClick",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],h$);
_.a(h$,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(oGb!==void 0)return oGb;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return oGb=I},{mode:1});var x$=function(){var I=_.k.apply(this,arguments)||this;I.selectedItemIndex=0;I.buyButtonDisabled=!1;return I};
_.E(x$,_.k);_.L=x$.prototype;
_.L.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]]"}}}}}};
_.L.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var I;var y=(I=_.u(this.data.colorSlider,xka))==null?void 0:I.notches[this.selectedItemIndex].purchaseCommand}else{var D;y=(D=_.u(this.data.selectableItemButtons[this.selectedItemIndex],q0o))==null?void 0:D.purchaseCommand}if(y){I=_.u(y,_.uLP);I.productData||(I.productData={});var F;I.productData={pdgData:{commentMessageText:(F=this.commentPreviewRenderer)==null?void 0:F.getUserGeneratedCommentText()}};
_.lj(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(y)}}};
_.L.dataChanged=function(){if(this.data){_.rQ.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.CTO(_.rQ,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.rQ.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var I;this.buyButtonDisabled=!((I=_.u(this.data.commentPreview,uKe))==null||!I.placeholderText);this.updatePriceSelectorStatus();var y;if((y=this.data)==null?0:y.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;I=[];this.data.preloadImages&&(I=this.data.preloadImages);
I=I.map(function(D){return _.hf(D.thumbnails,1920)});
I=_.J(I);for(y=I.next();!y.done;y=I.next())(y=y.value)&&_.U9J(y).thenCatch(function(){_.tq(Error("dm"))})}};
_.L.superThanksSelectedTierEntityChanged=function(){var I;(this==null?void 0:(I=this.superThanksSelectedTierEntity)==null?void 0:I.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.L.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.L.updatePriceSelectorStatus=function(){this.isColorSlider?(_.XB(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.XB(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.XB(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.XB(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.L.closeBuyFlow=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.L.onUserGeneratedContentChanged=function(){var I;this.buyButtonDisabled=!((I=this.commentPreviewRenderer)==null?0:I.getUserGeneratedCommentText())};
_.L.updateSelectedItemIndexFromBinding=function(I){this.selectedItemIndex=I.detail.value};
_.mD.Object.defineProperties(x$.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.disclaimerText)}}});
x$.prototype.onUserGeneratedContentChanged=x$.prototype.onUserGeneratedContentChanged;x$.prototype.closeBuyFlow=x$.prototype.closeBuyFlow;x$.prototype.selectedItemIndexChanged=x$.prototype.selectedItemIndexChanged;x$.prototype.superThanksSelectedTierEntityChanged=x$.prototype.superThanksSelectedTierEntityChanged;x$.prototype.dataChanged=x$.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],x$.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],x$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],x$.prototype,"selectedItemIndex",void 0);_.W([_.M(),_.A("design:type",Boolean)],x$.prototype,"isColorSlider",void 0);
_.W([_.M(),_.A("design:type",Object)],x$.prototype,"buyButtonDisabled",void 0);_.W([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:z3a}),_.A("design:type",Object)],x$.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.a0("ytd-pdg-comment-preview-renderer"),_.A("design:type",Object)],x$.prototype,"commentPreviewRenderer",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],x$.prototype,"ytdReduxBehavior",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"dataChanged",null);_.W([_.ke("superThanksSelectedTierEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"superThanksSelectedTierEntityChanged",null);_.W([_.ke("selectedItemIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"selectedItemIndexChanged",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"closeBuyFlow",null);_.W([_.z4("ytd-pdg-user-generated-comment-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x$.prototype,"onUserGeneratedContentChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],x$.prototype,"isDisclaimerTextShown",null);
_.W([_.yd({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],x$);
_.a(x$,"yt-super-vod-buy-flow-content-renderer",function(){if(Kle!==void 0)return Kle;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Kle=I},{mode:1});var N8C;var ln=function(){var I=_.k.apply(this,arguments)||this;I.lottieAnimationRef={};return I};
_.E(ln,_.k);_.L=ln.prototype;_.L.created=function(){_.Jw.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.MX(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.L.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.lj(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.L.detached=function(){this.autoCloseJobId&&_.w2.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.MX(this,this.onPopupIronOverlayOpened))};
_.L.dataChanged=function(){var I=this;this.data&&this.data.autoCloseDelay&&(_.uj(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.qK(_.w2,function(){I.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.pg(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.L.onDOMLoadedLottie=function(){var I=this,y,D,F=Number((y=this.data)==null?void 0:(D=y.autoCloseDelay)==null?void 0:D.seconds)||0;this.fadeOutJobId=_.qK(_.w2,function(){I.lottiePlayerEl.classList.add("fadeout")},(F-.25)*1E3);
this.autoCloseJobId=_.qK(_.w2,function(){I.closePopup()},F*1E3)};
_.L.openPopup=function(){this.ironOverlayBehavior.open()};
_.L.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.uj(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.GC(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.nR().resolve(_.MC).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.w2.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.w2.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.L.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var I,y;(I=this.lottieAnimationRef)==null||(y=I.lottieEl)==null||y.destroy();I=this.data.lottie;var D,F;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:I.url+"_"+Math.random(),path:I.url,autoplay:!0,loop:(F=(D=I.settings)==null?void 0:D.loop)!=null?F:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.mD.Object.defineProperties(ln.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var I,y;return!!((I=this.data)==null?0:(y=I.lottie)==null?0:y.url)}}});
ln.prototype.maybeInitializeLottie=ln.prototype.maybeInitializeLottie;ln.prototype.dataChanged=ln.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ln.prototype,"rendererBehavior",void 0);_.W([_.Q(_.Pc),_.A("design:type",Object)],ln.prototype,"ironOverlayBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ln.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],ln.prototype,"lottiePlayerProps",void 0);
_.W([_.M(),_.A("design:type",Object)],ln.prototype,"lottieAnimationRef",void 0);_.W([_.a0("ytd-lottie-player"),_.A("design:type",HTMLElement)],ln.prototype,"lottiePlayerEl",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ln.prototype,"dataChanged",null);_.W([_.Y("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ln.prototype,"hasLottieAnimation",null);
_.W([_.ke("data.lottie.url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ln.prototype,"maybeInitializeLottie",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],ln);
_.a(ln,"ytd-desktop-image-overlay-renderer",function(){if(N8C!==void 0)return N8C;var I=document.createElement("template");_.G(I,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return N8C=I},{mode:1});var h8Z;var un=function(){return _.k.apply(this,arguments)||this};
_.E(un,_.k);_.L=un.prototype;_.L.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"}}}}};
_.L.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",_.MX(this,this.closePopup))};
_.L.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.MX(this,this.closePopup))};
_.L.dataChanged=function(){_.qr(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.u(this.data.header,hsb)&&(this.hasBackgroundBanner=!!_.u(this.data.header,hsb).backgroundBanner)};
_.L.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.MX(this,this.closePopup))};
_.L.closePopup=function(){this.data&&this.data.onCloseCommand&&_.E$(this.hostElement,[this.data.onCloseCommand])};
un.prototype.handleBuyflowSelectionSubmitted=un.prototype.handleBuyflowSelectionSubmitted;un.prototype.dataChanged=un.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],un.prototype,"data",void 0);
_.W([_.M({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],un.prototype,"hasBackgroundBanner",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],un.prototype,"dataChanged",null);_.W([_.z4("yt-pdg-buy-flow-selection-submitted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],un.prototype,"handleBuyflowSelectionSubmitted",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],un);
_.a(un,"ytd-pdg-buy-flow-renderer",function(){if(h8Z!==void 0)return h8Z;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return h8Z=I},{mode:1});var xeG;var qt=function(){var I=_.k.apply(this,arguments)||this;I.isOpen=!1;I.isPlaylistCreated=!1;return I};
_.E(qt,_.k);_.L=qt.prototype;_.L.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.L.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.lj(this.hostElement,"yt-refit")};
_.L.onCreateTap=function(){var I=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.E$(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(y,D){if(!_.l("killswitch_ep_in_create_playlist_response")&&(D==null?0:D.actions))for(y=_.J(D.actions),D=y.next();!D.done;D=y.next())D=D.value,_.u(D,_.Z3)&&I.ytComponentBehavior.resolveCommand(D)}}]),this.isPlaylistCreated=!0)};
_.L.onKeydown=function(I){if(I.keyCode===13)this.onCreateTap()};
_.L.onServiceRequestCompleted=function(I){I.stopPropagation();_.uj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.L.computePrivacyBadge=function(I){return I?[{metadataBadgeRenderer:I}]:[]};
qt.prototype.onServiceRequestCompleted=qt.prototype.onServiceRequestCompleted;qt.prototype.onKeydown=qt.prototype.onKeydown;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],qt.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qt.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],qt.prototype,"isOpen",void 0);
_.W([_.M(),_.A("design:type",Object)],qt.prototype,"isPlaylistCreated",void 0);_.W([_.M({value:{REQUIRED_LABEL:_.zC("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zC("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],qt.prototype,"addToStrings",void 0);_.W([_.M({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.A("design:type",Array)],qt.prototype,"privacyBadge",void 0);
_.W([_.a0("#privacy-input"),_.A("design:type",Object)],qt.prototype,"privacyInput",void 0);_.W([_.a0("#name-input"),_.A("design:type",Object)],qt.prototype,"nameInput",void 0);_.W([_.z4("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],qt.prototype,"onKeydown",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],qt.prototype,"onServiceRequestCompleted",null);
_.W([_.yd({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],qt);
_.a(qt,"ytd-add-to-playlist-create-renderer",function(){if(xeG!==void 0)return xeG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return xeG=I},{mode:1});var lYY;var u0a;var EU=function(){var I=_.k.apply(this,arguments)||this;I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.E(EU,_.k);EU.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
EU.prototype.onCheckboxChange=function(I){var y=this;this.data&&_.v4(this,"yt-playlist-checkbox-changed",function(){var D=_.jv(I).checked?y.data.addToPlaylistServiceEndpoint:y.data.removeFromPlaylistServiceEndpoint;D&&_.nR().resolve(_.MC).resolveCommand(D,{form:{element:y.hostElement}});_.l("dl_playlist_killswitch")||y.transferState!=="TRANSFER_STATE_UNKNOWN"&&y.transferState!=="TRANSFER_STATE_FAILED"&&y.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:y.data.playlistId,action:"ACTION_SYNC"}})},
100)};
EU.prototype.computeIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
EU.prototype.dataChanged=EU.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],EU.prototype,"data",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],EU.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.W([_.a0("#checkbox"),_.A("design:type",HTMLInputElement)],EU.prototype,"checkbox",void 0);
_.W([_.M({selector:_.Rq,selectorArgs:["data.playlistId"]}),_.A("design:type",String)],EU.prototype,"transferState",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EU.prototype,"dataChanged",null);_.W([_.yd({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],EU);
_.a(EU,"ytd-playlist-add-to-option-renderer",function(){if(u0a!==void 0)return u0a;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return u0a=I},{mode:1});var qX1=_.d(function(I){var y=I.data;return _.t("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.t("div",null,_.t(_.jr,{text:function(){return y().title}})),_.t(_.U,{cond:function(){return y().subtitle},
then:function(D){return _.t("div",{class:"ytdMenuTitleRendererSubtitle"},_.t(_.jr,{text:D}))}}))},"bl");
qX1.idomCompat=!0;_.NK(qX1,"ytd-menu-title-renderer",{props:{data:_.om}});var GN=function(){var I=_.k.apply(this,arguments)||this;I.addToStrings={ADD_TO_DROPDOWN_LABEL:_.zC("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};I.closeButtonAriaLabel=_.zC("SBOX_INAPPROPRIATE_CANCEL");I.dialog=_.l("desktop_add_to_playlist_renderer_dialog_popup");return I};
_.E(GN,_.k);_.L=GN.prototype;_.L.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"}}}};
_.L.onPopupOpened=function(){_.Ye(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.L.onPopupClosed=function(){_.Ye(this.playlists,"scrollable",!1)};
_.L.computeAriaLabel=function(){var I;if(this==null?0:(I=this.data)==null?0:I.actions){I=_.J(this.data.actions);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.menuTitleRenderer)return _.rY(y.menuTitleRenderer.title)}};
_.L.onTapClose=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.mD.Object.defineProperties(GN.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if(this==null?0:(I=this.data)==null?0:I.actions){I=_.J(this.data.actions);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.menuTitleRenderer)return y.menuTitleRenderer}return!1}}});
GN.prototype.onPopupClosed=GN.prototype.onPopupClosed;GN.prototype.onPopupOpened=GN.prototype.onPopupOpened;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],GN.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],GN.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],GN.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],GN.prototype,"addToStrings",void 0);_.W([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.A("design:type",String)],GN.prototype,"ariaLabel",void 0);_.W([_.M(),_.A("design:type",String)],GN.prototype,"closeButtonAriaLabel",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],GN.prototype,"dialog",void 0);
_.W([_.a0("#playlists"),_.A("design:type",HTMLElement)],GN.prototype,"playlists",void 0);_.W([_.a0("ytd-add-to-playlist-create-renderer"),_.A("design:type",Object)],GN.prototype,"createRenderer",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],GN.prototype,"menuTitleRenderer",null);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GN.prototype,"onPopupOpened",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GN.prototype,"onPopupClosed",null);_.W([_.yd({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],GN);
_.a(GN,"ytd-add-to-playlist-renderer",function(){if(lYY!==void 0)return lYY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lYY=I},{mode:1});var EGT;var Qh=function(){var I=_.k.apply(this,arguments)||this;I.isPlaylistEditComplete=!1;I.isCollabEngagementDisabled=!1;I.closeButtonAriaLabel=_.zC("SBOX_INAPPROPRIATE_CANCEL");I.saveButton={title:_.zC("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"};I.onValueChanged=function(){I.updateSaveButtonState();I.computeCollabEngagementDisabled()};
return I};
_.E(Qh,_.k);_.L=Qh.prototype;_.L.attached=function(){this.JSC$22627_scroller&&(this.JSC$22627_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22627_scroller.attached&&typeof this.JSC$22627_scroller.attached==="function"&&this.JSC$22627_scroller.attached())};
_.L.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.L.onPopupClosed=function(){this.reset()};
_.L.close=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.L.onClickSave=function(){var I=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var y=[];this.nameInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&y.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var D=Number(this.privacyInput.value);isNaN(D)||y.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:D})}this.votingInput.value!==null&&(D=this.votingInput.value)&&y.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:D});if(y.length>0){var F;_.u((F=this.data)==null?void 0:F.updateSettingsEndpoint,_.Lb).actions=y;var R;if((R=this.data)==null?0:R.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){I.close()}}}),this.isPlaylistEditComplete=!0}}};
_.L.computePrivacyBadge=function(I){return I?[{metadataBadgeRenderer:I}]:[]};
_.L.computeEditorData=function(I){var y,D;return I==null?void 0:(y=I.sections)==null?void 0:(D=y[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer};
_.L.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.L.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}}}}}};
_.L.computeAriaLabel=function(){var I,y,D,F=(I=this.data)==null?void 0:(y=I.sections)==null?void 0:(D=y[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer;return _.rY(F==null?void 0:F.title)};
_.L.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"}))};
_.L.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.L.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.L.isNameChanged=function(){var I,y,D;return(((I=this.editorData)==null?void 0:(y=I.name)==null?void 0:(D=y.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.nameInput.value||"")};
_.L.isDescriptionChanged=function(){var I,y,D;return(((I=this.editorData)==null?void 0:(y=I.description)==null?void 0:(D=y.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.descriptionInput.value||"")};
_.L.isPrivacyChanged=function(){var I,y,D,F,R,O,w,v;return((w=(I=this.editorData)==null?void 0:(y=I.privacy)==null?void 0:(D=y.dropdownFormFieldRenderer)==null?void 0:(F=D.dropdown)==null?void 0:(R=F.dropdownRenderer)==null?void 0:(O=R.entries)==null?void 0:O.find(function(P){var K;return P==null?void 0:(K=P.privacyDropdownItemRenderer)==null?void 0:K.isSelected}))==null?void 0:(v=w.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.privacyInput.value};
_.L.isVotingChanged=function(){var I,y,D,F,R,O,w,v;return((w=(I=this.editorData)==null?void 0:(y=I.voting)==null?void 0:(D=y.dropdownFormFieldRenderer)==null?void 0:(F=D.dropdown)==null?void 0:(R=F.dropdownRenderer)==null?void 0:(O=R.entries)==null?void 0:O.find(function(P){var K;return P==null?void 0:(K=P.privacyDropdownItemRenderer)==null?void 0:K.isSelected}))==null?void 0:(v=w.privacyDropdownItemRenderer)==null?void 0:v.int32Value)!==this.votingInput.value};
Qh.prototype.onPopupClosed=Qh.prototype.onPopupClosed;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Qh.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],Qh.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Qh.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Qh.prototype,"data",void 0);_.W([_.M({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.A("design:type",Array)],Qh.prototype,"privacyBadge",void 0);_.W([_.M({computed:"computeEditorData(data)"}),_.A("design:type",Object)],Qh.prototype,"editorData",void 0);_.W([_.M(),_.A("design:type",Object)],Qh.prototype,"isPlaylistEditComplete",void 0);_.W([_.M(),_.A("design:type",Object)],Qh.prototype,"isCollabEngagementDisabled",void 0);
_.W([_.M({value:{REQUIRED_LABEL:_.zC("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zC("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],Qh.prototype,"addToStrings",void 0);_.W([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.A("design:type",String)],Qh.prototype,"ariaLabel",void 0);_.W([_.M(),_.A("design:type",String)],Qh.prototype,"closeButtonAriaLabel",void 0);
_.W([_.M(),_.A("design:type",Object)],Qh.prototype,"saveButton",void 0);_.W([_.a0("#name-input"),_.A("design:type",Object)],Qh.prototype,"nameInput",void 0);_.W([_.a0("#description-input"),_.A("design:type",Object)],Qh.prototype,"descriptionInput",void 0);_.W([_.a0("#privacy-input"),_.A("design:type",Object)],Qh.prototype,"privacyInput",void 0);_.W([_.a0("#voting-input"),_.A("design:type",Object)],Qh.prototype,"votingInput",void 0);
_.W([_.a0("#scroller"),_.A("design:type",Object)],Qh.prototype,"JSC$22627_scroller",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qh.prototype,"onPopupClosed",null);_.W([_.M(),_.A("design:type",Object)],Qh.prototype,"onValueChanged",void 0);_.W([_.yd({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Qh);
_.a(Qh,"ytd-playlist-settings-editor-renderer",function(){if(EGT===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);EGT=I}I=EGT;return I},{mode:1});var GT1;_.bO("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Y$=function(){return _.k.apply(this,arguments)||this};
_.E(Y$,_.k);_.L=Y$.prototype;_.L.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}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.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 I=this.get("data.nextButton.buttonRenderer.navigationEndpoint");I&&(this.nextNavigationEndpoint=I,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.L.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 I={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",I)}}};
_.L.onPopupOpened=function(I){I.detail!==this&&I.detail!==this.hostElement||!_.l("enable_premium_voluntary_pause")||_.uj(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.L.onNextButtonTap=function(){var I=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);I&&this.ytdOpenPopupBehavior.openPopup(I)};
_.L.updateSelectedResponseIndexFromBinding=function(I){this.selectedResponseIndex=I.detail.value};
Y$.prototype.onPopupOpened=Y$.prototype.onPopupOpened;Y$.prototype.onSelectedResponseIndexChange=Y$.prototype.onSelectedResponseIndexChange;Y$.prototype.dataChanged=Y$.prototype.dataChanged;_.W([_.Q(_.G2),_.A("design:type",Object)],Y$.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Y$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],Y$.prototype,"selectedResponseIndex",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y$.prototype,"dataChanged",null);_.W([_.ke("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y$.prototype,"onSelectedResponseIndexChange",null);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Y$.prototype,"onPopupOpened",null);_.W([_.yd({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Y$);
_.a(Y$,"ytd-red-cancel-survey-renderer",function(){if(GT1!==void 0)return GT1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return GT1=I},{mode:1});var Xh1;var f6=function(){var I=_.k.apply(this,arguments)||this;I.closeButtonAriaLabel=_.zC("SBOX_INAPPROPRIATE_CANCEL");return I};
_.E(f6,_.k);f6.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
f6.prototype.onClickClose=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],f6.prototype,"rendererStamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],f6.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],f6.prototype,"closeButtonAriaLabel",void 0);_.W([_.yd({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],f6);
_.a(f6,"ytd-search-filter-options-dialog-renderer",function(){if(Xh1!==void 0)return Xh1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Xh1=I},{mode:1});var Qs1;var FrZ=function(){return function(I){I=I.availabilityType;return I===void 0||I==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||I==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var n6=function(){var I=_.k.apply(this,arguments)||this;I.qualityOptions=[];I.upsellOptions=[];I.showUpsellSection=!1;I.rememberSettingsChecked=!1;return I};
_.E(n6,_.k);_.L=n6.prototype;_.L.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}}}}};
_.L.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.L.updateQualityOptions=function(){if(this.formats===void 0)_.uj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var I=[],y=[];this.showUpsellSection=!1;for(var D=_.J(this.formats),F=D.next();!F.done;F=D.next())(F=F.value)&&(F.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?y.push(F):I.push(F));I.length&&(this.qualityOptions=D0G(I));y.length&&(this.showUpsellSection=!0,this.upsellOptions=D0G(y))}};
_.L.updateRememberString=function(){if(this.downloadQualityPickerEntity)var I=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var y;I=(y=this.data)==null?void 0:y.premiumRememberSettingString}else{var D;I=(D=this.data)==null?void 0:D.rememberSettingString}I=I===void 0?_.zC("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):I;this.rememberSettingsCheckboxRenderer={title:_.lo(I),disabled:!1}};
_.L.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.mD.Object.defineProperties(n6.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var I;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(I=this.data)==null?void 0:I.qualityFormats}}});
n6.prototype.updateRememberString=n6.prototype.updateRememberString;n6.prototype.updateQualityOptions=n6.prototype.updateQualityOptions;n6.prototype.dataChanged=n6.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],n6.prototype,"data",void 0);
_.W([_.Q(_.Jl),_.A("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Boolean)],n6.prototype,"selectedUpsellQuality",void 0);_.W([_.M({computed:"computeIcon_(data.premiumIcon)",value:""}),_.A("design:type",String)],n6.prototype,"premiumIcon",void 0);_.W([_.M({selector:iZR,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],n6.prototype,"downloadQualityPickerEntity",void 0);
_.W([_.M(),_.A("design:type",Array)],n6.prototype,"qualityOptions",void 0);_.W([_.M(),_.A("design:type",Array)],n6.prototype,"upsellOptions",void 0);_.W([_.M(),_.A("design:type",Object)],n6.prototype,"showUpsellSection",void 0);_.W([_.M(),_.A("design:type",Object)],n6.prototype,"rememberSettingsCheckboxRenderer",void 0);_.W([_.a0("#remember-settings"),_.A("design:type",HTMLInputElement)],n6.prototype,"rememberSettingsCheckbox",void 0);
_.W([_.M(),_.A("design:type",Object)],n6.prototype,"rememberSettingsChecked",void 0);_.W([_.M(),_.A("design:type",Function)],n6.prototype,"onRememberSettingsCheckedChanged",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n6.prototype,"dataChanged",null);_.W([_.ke("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n6.prototype,"updateQualityOptions",null);
_.W([_.ke("selectedUpsellQuality"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],n6.prototype,"updateRememberString",null);_.W([_.yd({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],n6);
_.a(n6,"ytd-download-quality-selector-content",function(){if(Qs1!==void 0)return Qs1;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return Qs1=I},{mode:1});var YXZ;var p6=function(){var I=_.k.apply(this,arguments)||this;I.selectedUpsellQuality=!1;I.qualityOptions=[];I.useUpsellDismissAlternate=_.l("use_not_now_dl_upsell_dismiss_cta");I.shouldShowAlternateUpsellDimiss=!1;I.rememberSettings=!1;I.rememberSettingsChecked=!1;I.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};I.rememberSettingsCheckedChanged=function(y){I.rememberSettingsChecked=y};
return I};
_.E(p6,_.k);_.L=p6.prototype;
_.L.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lo(_.zC("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.L.updateQualityOptions=function(){this.formats===void 0?_.uj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=D0G(this.formats)};
_.L.onQualityOptionsSelect=function(I){if(this.qualityOptions&&I){I!==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 y=_.J(this.qualityOptions.entries()),D=y.next();!D.done;D=
y.next()){D=_.J(D.value);var F=D.next().value;D=D.next().value;var R=void 0,O=void 0;if(((R=D)==null?void 0:(O=R.settingsRadioOptionRenderer)==null?void 0:O.id)===I){this.selectedQualityIndex=F;I=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((I=this.formats[F])==null?void 0:I.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.L.onClickSubmit=function(){var I;if((I=this.downloadButtonRenderer)==null||!I.isDisabled){var y,D;I=(D=(y=this.data)==null?void 0:y.onSubmitEndpoint)!=null?D:{};var F,R;if(this.formats&&(((F=_.u(I,_.mC))==null?0:F.videoId)||((R=_.u(I,_.MY))==null?0:R.playlistId))){var O,w,v,P,K,r;y={formatType:(P=(O=this.formats)==null?void 0:(w=O[(v=this.selectedQualityIndex)!=null?v:0])==null?void 0:w.format)!=null?P:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(K=this.getOfflineEndpoint(I))==null?void 0:(r=K.actionParams)==null?void 0:r.settingsAction)};this.getOfflineEndpoint(I).actionParams=y;this.ytComponentBehavior.resolveCommand(I)}_.uj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.L.onClickUpsell=function(){var I;if((I=this.upsellButtonRenderer)==null||!I.isDisabled){var y,D;I=(D=(y=this.data)==null?void 0:y.upsellEndpoint)!=null?D:{};this.ytComponentBehavior.resolveCommand(I);_.uj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);y="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var F,R,O,w;y=(w=(F=this.formats)==null?void 0:(R=F[(O=this.selectedQualityIndex)!=null?O:0])==null?void 0:R.format)!=null?w:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:y}})}};
_.L.onClickClose=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.L.getOfflineSettingsAction=function(I,y){return I?y===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":y:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.L.getOfflineEndpoint=function(I){return _.u(I,_.mC)?_.u(I,_.mC):_.u(I,_.MY)};
_.mD.Object.defineProperties(p6.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.lo(_.zC("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var I;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(I=this.data)==null?void 0:I.qualityFormats}}});
p6.prototype.updateQualityOptions=p6.prototype.updateQualityOptions;p6.prototype.dataChanged=p6.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],p6.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],p6.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Number)],p6.prototype,"selectedQualityIndex",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"selectedUpsellQuality",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],p6.prototype,"ytdReduxBehavior",void 0);
_.W([_.M({selector:iZR,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],p6.prototype,"downloadQualityPickerEntity",void 0);_.W([_.M(),_.A("design:type",Array)],p6.prototype,"qualityOptions",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],p6.prototype,"useUpsellDismissAlternate",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.W([_.M(),_.A("design:type",Object)],p6.prototype,"downloadButtonRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"upsellButtonRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"cancelButtonRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"upsellCancelButtonRenderer",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"rememberSettings",void 0);_.W([_.M(),_.A("design:type",Object)],p6.prototype,"rememberSettingsChecked",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p6.prototype,"dataChanged",null);_.W([_.ke("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],p6.prototype,"updateQualityOptions",null);_.W([_.yd({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],p6);
_.a(p6,"ytd-download-quality-selector-renderer",function(){if(YXZ!==void 0)return YXZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return YXZ=I},{mode:1});var fYY;var mt=function(){return _.k.apply(this,arguments)||this};
_.E(mt,_.k);mt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mt.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mt.prototype,"data",void 0);_.W([_.M({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],mt.prototype,"infoIcon",void 0);
_.W([_.M({computed:"computeIcon_(data.warningIcon)"}),_.A("design:type",Object)],mt.prototype,"warningIcon",void 0);_.W([_.yd({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],mt);
_.a(mt,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(fYY!==void 0)return fYY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return fYY=I},{mode:1});var nG1;var Mt=function(){return _.k.apply(this,arguments)||this};
_.E(Mt,_.k);Mt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mt.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"}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Mt.prototype,"data",void 0);_.W([_.yd({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Mt);
_.a(Mt,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(nG1!==void 0)return nG1;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return nG1=I},{mode:1});var pha;var zN=function(){return _.k.apply(this,arguments)||this};
_.E(zN,_.k);zN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zN.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"}}}}};
zN.prototype.onServiceRequestSentOrCompleted=function(I,y){y&&y.actions&&y.actions.length>0&&_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
zN.prototype.onServiceRequestSentOrCompleted=zN.prototype.onServiceRequestSentOrCompleted;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zN.prototype,"data",void 0);
_.W([_.z4("yt-service-request-completed"),_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],zN.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.yd({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],zN);
_.a(zN,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(pha!==void 0)return pha;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return pha=I},{mode:1});var meg;var k$=function(){var I=_.k.apply(this,arguments)||this;I.submitButtonDisabled=!0;return I};
_.E(k$,_.k);_.L=k$.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.L.onDataChanged=function(){var I,y,D;if(((I=this.data)==null?void 0:(y=I.confirmButton)==null?void 0:(D=y.buttonRenderer)==null?void 0:D.isDisabled)!==void 0){var F,R,O;this.submitButtonDisabled=(F=this.data)==null?void 0:(R=F.confirmButton)==null?void 0:(O=R.buttonRenderer)==null?void 0:O.isDisabled}};
_.L.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.L.updateSubmitButtonDisabledFromBinding=function(I){this.submitButtonDisabled=I.detail.value};
_.L.updateSubmitButtonDisabledFromConfirmCheckbox=function(I){this.submitButtonDisabled=!I.detail.value};
k$.prototype.onDataChanged=k$.prototype.onDataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],k$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],k$.prototype,"submitButtonDisabled",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k$.prototype,"onDataChanged",null);_.W([_.yd({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],k$);
_.a(k$,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(meg!==void 0)return meg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return meg=I},{mode:1});var MyR;var dz=function(){return _.k.apply(this,arguments)||this};
_.E(dz,_.k);_.mD.Object.defineProperties(dz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var I,y,D;return((I=this.data)==null?void 0:I.title)+" "+((y=this.data)==null?void 0:y.metadataPrimary)+" "+((D=this.data)==null?void 0:D.metadataSecondary)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],dz.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],dz.prototype,"data",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],dz.prototype,"ariaLabel",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],dz);
_.a(dz,"ytd-compact-product-list-item-renderer",function(){if(MyR!==void 0)return MyR;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return MyR=I},{mode:1});var z8y;var aI=function(){return _.k.apply(this,arguments)||this};
_.E(aI,_.k);aI.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]]"}}}}}};
_.mD.Object.defineProperties(aI.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],aI.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aI.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],aI);
_.a(aI,"ytd-compact-product-list-renderer",function(){if(z8y!==void 0)return z8y;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return z8y=I},{mode:1});var kTo;var ca=function(){return _.k.apply(this,arguments)||this};
_.E(ca,_.k);_.L=ca.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.L.getBackgroundUrl=function(){var I=this.get("data.headerImage.thumbnails");return I?"url("+_.hf(I,this.hostElement.clientWidth)+")":""};
_.L.onDataChanged=function(){var I=this.getBackgroundUrl();I&&(this.header.style.backgroundImage=I);I=_.VO();var y=_.s_(),D=this.get("data.trackingParams");D&&y&&I&&_.Oc(I,y,_.AC(D));I=_.J(this.hostElement.querySelectorAll("yt-img-shadow"));for(y=I.next();!y.done;y=I.next())y.value.onShow()};
_.L.onPopupClosed=function(I){_.jv(I).localName==="ytd-membership-post-cancel-renderer"&&_.uj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ca.prototype.onPopupClosed=ca.prototype.onPopupClosed;ca.prototype.onDataChanged=ca.prototype.onDataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],ca.prototype,"data",void 0);_.W([_.a0("#header"),_.A("design:type",HTMLDivElement)],ca.prototype,"header",void 0);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ca.prototype,"onDataChanged",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ca.prototype,"onPopupClosed",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ca);
_.a(ca,"ytd-membership-post-cancel-renderer",function(){if(kTo!==void 0)return kTo;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return kTo=I},{mode:1});var deR;var Wa=function(){return _.k.apply(this,arguments)||this};
_.E(Wa,_.k);Wa.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Wa.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Wa.prototype,"data",void 0);_.W([_.a0("ytd-feedback-survey-renderer"),_.A("design:type",Object)],Wa.prototype,"feedbackSurveyRenderer",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Wa);
_.a(Wa,"ytd-sponsorship-confirm-cancel-content",function(){if(deR!==void 0)return deR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return deR=I},{mode:1});var aYR;var C6=function(){var I=_.k.apply(this,arguments)||this;I.maybeSubmitFeedback=function(){I.content&&I.content.maybeSubmitFeedback()};
return I};
_.E(C6,_.k);_.L=C6.prototype;_.L.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.L.onYtPopupOpened=function(I,y){y===this&&this.data&&this.data.onOpenCommands&&_.GC(this.hostElement,this.data.onOpenCommands,this.hostElement);_.uj(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.L.onYtPopupClosed=function(I,y){(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.GC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.L.onYtServiceRequestCompleted=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.L.onYtServiceRequestError=function(I){_.v_(this.hostElement,I.detail.error.message)};
_.L.onDataChanged=function(){if(this.isAttached){var I=this.backgroundUrl;I&&(_.XB(this.hostElement).querySelector("#header").style.backgroundImage=I)}};
_.mD.Object.defineProperties(C6.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return I?"url("+_.hf(I,this.hostElement.clientWidth)+")":""}}});
C6.prototype.onDataChanged=C6.prototype.onDataChanged;C6.prototype.onYtServiceRequestError=C6.prototype.onYtServiceRequestError;C6.prototype.onYtServiceRequestCompleted=C6.prototype.onYtServiceRequestCompleted;C6.prototype.onYtPopupClosed=C6.prototype.onYtPopupClosed;C6.prototype.onYtPopupOpened=C6.prototype.onYtPopupOpened;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],C6.prototype,"data",void 0);_.W([_.M({value:function(){return _.zC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],C6.prototype,"closeButtonAriaLabel",void 0);_.W([_.a0("#scrollable"),_.A("design:type",Object)],C6.prototype,"scrollable",void 0);_.W([_.a0("ytd-sponsorship-confirm-cancel-content"),_.A("design:type",Object)],C6.prototype,"content",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],C6.prototype,"onYtPopupOpened",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],C6.prototype,"onYtPopupClosed",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C6.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],C6.prototype,"onYtServiceRequestError",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C6.prototype,"onDataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],C6);
_.a(C6,"ytd-sponsorship-confirm-cancel-renderer",function(){if(aYR!==void 0)return aYR;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return aYR=I},{mode:_.Qd("kevlar_poly_si_batch_j081")?1:2});var cyC;var Ba=function(){return _.k.apply(this,arguments)||this};
_.E(Ba,_.k);Ba.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ba.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Ba);
_.a(Ba,"ytd-sponsorships-celebration-content",function(){if(cyC!==void 0)return cyC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return cyC=
I},{mode:1});var Wla;var CUy=_.UI(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),A$=function(){var I=_.k.apply(this,arguments)||this;I.scriptsAppended=!1;I.useFullWidthPrimaryButton=!1;I.buttonOverrides={type:"tonal",style:"overlay-dark"};return I};
_.E(A$,_.k);_.L=A$.prototype;_.L.dataChanged=function(){var I;this.useFullWidthPrimaryButton=!((I=this.data)==null||!I.useFullWidthPrimaryButton)};
_.L.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:_.l("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.onDataChanged=function(){var I;(I=this.header)==null||I.style.setProperty("background-color",this.backgroundColor);if(I=this.headerImageUrl){var y;(y=this.header)==null||y.style.setProperty("background-image",I)}y=_.VO(4);I=_.s_(4);var D=this.get("data.trackingParams");if(D&&I&&y){var F=_.AC(D);_.Oc(y,I,F);_.l("combine_ve_grafts")?_.W4().graftServerVe(D,I,4):_.Oc(y,I,F)}y=_.J(this.hostElement.querySelectorAll("yt-img-shadow"));for(I=y.next();!I.done;I=y.next())I.value.onShow();if(y=this.get("data.gtmId"))_.V8(y,
_.Pi("GL","")),this.setupConversionTracking()};
_.L.setupConversionTracking=function(){if(!this.scriptsAppended){var I=document.createElement("script");_.Kj(I,_.tW(CUy.join("")));document.head.appendChild(I);I=document.createElement("noscript");I.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(I);this.scriptsAppended=!0}};
_.L.onPopupClosed=function(I){if(_.jv(I).localName==="ytd-sponsorships-celebration-renderer"){_.uj(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var y;this.data&&((y=this.data)==null?0:y.dismissCommand)&&_.M4.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.mD.Object.defineProperties(A$.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Z7(I)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return I?"url("+_.hf(I,this.hostElement.getBoundingClientRect().width)+")":""}}});
A$.prototype.onPopupClosed=A$.prototype.onPopupClosed;A$.prototype.onDataChanged=A$.prototype.onDataChanged;A$.prototype.dataChanged=A$.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],A$.prototype,"data",void 0);
_.W([_.a0("#header"),_.A("design:type",HTMLElement)],A$.prototype,"header",void 0);_.W([_.M(),_.A("design:type",Object)],A$.prototype,"scriptsAppended",void 0);_.W([_.M({type:Boolean,reflectToAttribute:!0}),_.A("design:type",Object)],A$.prototype,"useFullWidthPrimaryButton",void 0);_.W([_.M(),_.A("design:type",Object)],A$.prototype,"buttonOverrides",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A$.prototype,"dataChanged",null);
_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A$.prototype,"onDataChanged",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],A$.prototype,"onPopupClosed",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],A$);
_.a(A$,"ytd-sponsorships-celebration-renderer",function(){if(Wla!==void 0)return Wla;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Wla=I},{mode:1});var B88;var $$=function(){return _.k.apply(this,arguments)||this};
_.E($$,_.k);_.L=$$.prototype;_.L.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"}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.detached=function(){this.playerElement.stop()};
_.L.onYtServiceRequestCompleted=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.L.onYtServiceRequestError=function(I){_.v_(this.hostElement,I.detail.error.message)};
_.L.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.L.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.L.getTier=function(I,y){return!I||!I.tiers||y<0?null:_.u(I.tiers[y],CGo)};
_.L.moreThanOne=function(I){return!!(I&&I.length>1)};
_.L.tierOverviewTap=function(I){var y=this;this.selectedTier=I.model.index;_.YC(this,function(){_.lj(y.hostElement,"yt-refit")})};
_.L.computeSelectedClass=function(I,y){return this.isSelected(I,y)?"selected":""};
_.L.computeButtonAriaPressed=function(I,y){return this.isSelected(I,y)?"true":"false"};
_.L.isSelected=function(I,y){return I===y};
_.L.onDataChanged=function(){_.XB(this.hostElement).querySelector("#header-overlay").style.visibility="";_.XB(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 I=_.J(this.hostElement.querySelectorAll("yt-img-shadow")),
y=I.next();!y.done;y=I.next())y.value.onShow();var D;this.set("selectedTier",(D=this.get("data.targetTierIndex"))!=null?D:0);var F;(I=(F=this.data)==null?void 0:F.onVisible)&&this.ytComponentBehavior.resolveCommand(I)};
_.L.initializeVe=function(I){var y=_.VO(),D=_.s_(),F=this.get("data.trackingParams");D&&y&&(this.screenLayer=4,y=_.r6(_.vDC)(void 0,69877,{clientScreenNonce:y,visualElement:D},void 0,void 0,void 0),_.gU(y,69877,4),D=_.s_(4),F&&D&&(F=_.AC(F),_.Oc(y,D,F),I&&(this.offerVideoVe=_.QM(74659),_.Oc(y,F,this.offerVideoVe))))};
_.L.setHeaderBackground=function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.XB(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Z7(I);if(I=this.getHeaderImage())I=_.hf(I,screen.width),_.XB(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+I+")"};
_.L.getHeaderImage=function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&I?I:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.L.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L.setupVideoPlayer=function(I){var y=this,D,F,R,O;return _.S(function(w){if(w.nextAddress==1)return D=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),F=y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.l("kevlar_player_update_killswitch")?y.playerElement.update({args:{autoplay:D,video_id:I,player_params:F}}):y.playerElement.loadVideoWithPlayerVars({autoplay:D,video_id:I,player_params:F}),
w.yield(y.playerElement.getPlayerPromise(),2);R=w.yieldResult;R.addEventListener("onStateChange",function(v){y.onPlayerStateChange(v)});
R.setScreenLayer(y.screenLayer);(O=_.VO(4))&&y.offerVideoVe&&_.J_(O,y.offerVideoVe);D&&(y.pauseOtherPlayers(),y.playerElement.focusOnPlayer(),y.playerElement.getPlayer().hideControls(),_.y9(_.w2,function(){y.fadeOutHeaderOverlay()},4E3));
_.Cj(w)})};
_.L.onPlayerStateChange=function(I){I===1?this.backgroundPlayerElement&&(I=this.backgroundPlayerElement.player_.getPlayerState(),I!==1&&I!==3||this.backgroundPlayerElement.pause()):I===0&&(_.XB(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.XB(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.L.fadeOutHeaderOverlay=function(){_.XB(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.L.onHeaderTap=function(){if(this.offerVideo){_.XB(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var I;((I=this.playerElement.player_)==null?void 0:I.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(I=_.VO(4))&&this.offerVideoVe&&_.SI(I,this.offerVideoVe)}};
_.L.getBackgroundImageLayerClass=function(I){return I?"background-image-layer-with-video":""};
_.L.getHeaderClass=function(I){return I?"header-with-video":""};
_.L.getHeaderOverlayClass=function(I){return I?"header-overlay-with-video":""};
_.L.getTitleContainerClass=function(I,y){return I?"title-container-with-video":y?"title-container-without-video-flexible":"title-container-without-video"};
_.L.tierTitleDisplayStatus=function(I){return this.moreThanOne(I)?"hide":"show"};
_.L.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.nR().resolve(_.OI).getPlayerElement():this.backgroundPlayerElement=_.NY();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var I=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=I===1||I===3;this.backgroundPlayerElement.pause()}};
_.L.isMiniplayerActive=function(){return _.nR().resolve(_.OI).isMiniplayerActive()};
_.L.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("selected-tier-changed",this.selectedTier))};
$$.prototype.selectedTierChangedForBinding=$$.prototype.selectedTierChangedForBinding;$$.prototype.onDataChanged=$$.prototype.onDataChanged;$$.prototype.onYtPopupClosed=$$.prototype.onYtPopupClosed;$$.prototype.onYtPopupOpened=$$.prototype.onYtPopupOpened;$$.prototype.onYtServiceRequestError=$$.prototype.onYtServiceRequestError;$$.prototype.onYtServiceRequestCompleted=$$.prototype.onYtServiceRequestCompleted;
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],$$.prototype,"data",void 0);_.W([_.M({value:0}),_.A("design:type",Number)],$$.prototype,"selectedTier",void 0);
_.W([_.M({value:""}),_.A("design:type",String)],$$.prototype,"offerVideo",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],$$.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.W([_.M({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.HH(this)}}),
_.A("design:type",String)],$$.prototype,"playerId",void 0);_.W([_.a0("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],$$.prototype,"scrollable",void 0);_.W([_.a0("ytd-sponsorships-tier-renderer"),_.A("design:type",Object)],$$.prototype,"tierRenderer",void 0);_.W([_.a0("#player"),_.A("design:type",Object)],$$.prototype,"playerElement",void 0);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$$.prototype,"onYtServiceRequestCompleted",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$$.prototype,"onYtServiceRequestError",null);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$$.prototype,"onYtPopupOpened",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$$.prototype,"onYtPopupClosed",null);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$$.prototype,"onDataChanged",null);
_.W([_.ke("selectedTier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$$.prototype,"selectedTierChangedForBinding",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],$$);
_.a($$,"ytd-sponsorships-offer-renderer",function(){if(B88!==void 0)return B88;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return B88=I},{mode:_.Qd("kevlar_poly_si_batch_j077")?1:2});var imG;var bn=function(){var I=_.k.apply(this,arguments)||this;I.buttonOverrides={type:"filled",style:"mono"};return I};
_.E(bn,_.k);bn.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}}}}}};
bn.prototype.backgroundColorChanged=function(){var I,y,D,F=(y=_.u((I=this.data)==null?void 0:I.content,B51))==null?void 0:(D=y.backgroundColor)==null?void 0:D.backgroundColor;F&&(I=_.Vp(F),_.XB(this.hostElement).querySelector("#banner").style.backgroundColor=I,_.XB(this.hostElement).querySelector("#abstract-art").style.backgroundColor=I)};
bn.prototype.attached=function(){this.JSC$22705_scroller&&(this.JSC$22705_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22705_scroller.attached&&typeof this.JSC$22705_scroller.attached==="function"&&this.JSC$22705_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bn.prototype.backgroundColorChanged=bn.prototype.backgroundColorChanged;_.W([_.M(),_.A("design:type",Object)],bn.prototype,"data",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],bn.prototype,"JSC$22705_scroller",void 0);_.W([_.M(),_.A("design:type",Object)],bn.prototype,"buttonOverrides",void 0);
_.W([_.ke("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bn.prototype,"backgroundColorChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],bn);
_.a(bn,"ytd-sponsorships-promotion-celebration-renderer",function(){if(imG!==void 0)return imG;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return imG=I},{mode:_.Qd("kevlar_poly_si_batch_j077")?1:2});var AyC;var $eg;var Ha=function(){return _.k.apply(this,arguments)||this};
_.E(Ha,_.k);Ha.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Ha.prototype.computeIsInitiallyChecked=function(I){return I===1};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ha.prototype,"data",void 0);_.W([_.a0("#checkbox"),_.A("design:type",Object)],Ha.prototype,"checkbox",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Ha);
_.a(Ha,"ytd-subscription-toggle-option-renderer",function(){if($eg!==void 0)return $eg;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return $eg=I},{mode:1});var e2=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return I};
_.E(e2,_.k);e2.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"}}}};
e2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
e2.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var I=_.XB(this.hostElement).querySelector("#options").selected;I=this.data.options[I].subscriptionRadioOptionRenderer.serviceEndpoint;var y=_.XB(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");y&&I&&I.modifyChannelNotificationPreferenceEndpoint&&(y=y.getValue())&&(I.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[y]);_.nR().resolve(_.MC).resolveCommand(I,{form:{element:this.hostElement}});
_.uj(this.hostElement,"yt-close-popup-action")};
_.mD.Object.defineProperties(e2.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var I=this.data.options,y=0;y<I.length;y++){var D=I[y].subscriptionRadioOptionRenderer;if(D&&D.selected)return y}return null}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],e2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],e2.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],e2.prototype,"data",void 0);_.W([_.Y("data.options"),_.A("design:type",Object),_.A("design:paramtypes",[])],e2.prototype,"initialIndex",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],e2);
_.a(e2,"ytd-subscription-notification-options-renderer",function(){if(AyC!==void 0)return AyC;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return AyC=I},{mode:1});var bmY;var Hm1=function(){return _.k.apply(this,arguments)||this};
_.E(Hm1,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Hm1.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Hm1.prototype,"data",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Hm1);
_.a(Hm1,"ytd-tvfilm-offer-groups-renderer",function(){if(bmY!==void 0)return bmY;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return bmY=I},{mode:1});var e8b;var TN=function(){return _.k.apply(this,arguments)||this};
_.E(TN,_.k);_.L=TN.prototype;_.L.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"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.L.computeThumbnailClass=function(I){return I.thumbnailOverlays?I.isShow?"thumbnail-show":"thumbnail-movie":I.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.L.computeCommerceSectionClass=function(I){return I.offers&&I.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.L.computeTitleClass=function(I){return I.offers&&I.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.L.onDataChanged=function(){[].concat(_.Td(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(I){I.onShow()})};
TN.prototype.onDataChanged=TN.prototype.onDataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],TN.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TN.prototype,"onDataChanged",null);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],TN);
_.a(TN,"ytd-ypc-offers-overlay-renderer",function(){if(e8b!==void 0)return e8b;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return e8b=I},{mode:_.Qd("kevlar_poly_si_batch_j028")?1:2});var T8Y;var ssT=function(){this.usedMethods=new Set};
ssT.prototype.add=function(I){this.usedMethods.add(I)};
ssT.prototype.reset=function(){this.usedMethods.clear()};var Vyg,ZmY;
_.gGG=function(I,y){this.query=I;this.previousSearchQuery=y;this.id=Vyg++;if(!ZmY){y=_.Pi("SBOX_SETTINGS");I="https://"+((y==null?void 0:y.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var D=y==null?void 0:y.REQUEST_LANGUAGE;D&&(I+="&hl="+D);(D=y==null?void 0:y.REQUEST_DOMAIN)&&(I+="&gl="+D);I+="&client=youtube&gs_ri=youtube";(D=y==null?void 0:y.SUGG_EXP_ID)&&(I+="&sugexp="+encodeURIComponent(D));(D=y==null?void 0:y.PSUGGEST_TOKEN)&&(I+="&tok="+D);(y=y==
null?void 0:y.SESSION_INDEX)&&(I+="&authuser="+y);_.l("desktop_enable_visual_suggest")&&(I+="&h=180&w=320&ytvs=1");ZmY=I}};
_.ICj=function(I){var y="q="+encodeURIComponent(I.query);I.previousSearchQuery&&(y+="&pq="+encodeURIComponent(I.previousSearchQuery));return y};
_.yL0=function(){var I=_.Pi("SBOX_SETTINGS"),y={};if(I==null?0:I.SEND_VISITOR_DATA)y["X-Goog-Visitor-Id"]=I==null?void 0:I.VISITOR_DATA;return y};
_.DSg=function(I){var y=ZmY;y+="&gs_id="+I.id.toString(36);y+="&q="+encodeURIComponent(I.query);y+="&cp="+I.query.length;I.previousSearchQuery&&(y+="&pq="+encodeURIComponent(I.previousSearchQuery));(I=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(y+="&video_id="+I);return y};
Vyg=0;ZmY="";var FJx=d3.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,R4g=d3.SEARCH_ENTITY_SUGGESTION_MOVIE,O5S=d3.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,LJC=d3.SEARCH_ENTITY_SUGGESTION_TV_SHOW,JLx=function(I,y){this.text=I;this.bold=y},wHn=function(I,y,D){this.input=y;
this.index=D;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=I[0];this.type=I[1];this.subtypes=I[2];var F;this.displayText=Oze((F=I[3])==null?void 0:F.b);var R;this.ignoredPrefix=Oze((R=I[3])==null?void 0:R.a);var O,w;this.hasNewVideo=((O=I[3])==null?void 0:(w=O.zam)==null?void 0:w.toString())==="true"?!0:!1;var v;this.visualSuggestUrl=(v=I[3])==null?void 0:v.zai;var P;this.entityType=Oze((P=I[3])==null?void 0:P.zap);var K;this.entityName=Oze((K=I[3])==null?void 0:K.zao);var r;y=
Oze((r=I[3])==null?void 0:r.zaf);var N;this.entityMid=(N=I[3])==null?void 0:N.zae;r=LrQ(this.subtypes,this.entityMid);if(y&&r){if(y){N="";switch(r){case "YOUTUBE_ENTITY_TYPE_SONG":N=O5S;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":N=FJx;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":N=LJC;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":N=R4g}r=r==="YOUTUBE_ENTITY_TYPE_SONG"||r==="YOUTUBE_ENTITY_TYPE_ALBUM"?N+" \u2022  \u2022 "+y:y}else r="";this.entitySubtitle=r}var h;this.externalChannelId=(h=I[3])==null?void 0:h.zav;
var x;this.entityThumbnailAttributionUrl=(x=I[3])==null?void 0:x.zaq},SqC=function(I,y){var D=[],F,R=(F=I.displayText)!=null?F:I.text;
(y==null?0:y.useEntityName)&&vAA(I)&&I.entityName&&(R=I.entityName);if(I.type===33)return D.push(new JLx(R,!1)),D;if(R.length>=I.input.length&&R.substring(0,I.input.length)===I.input)D.push(new JLx(I.input,!1)),D.push(new JLx(R.substring(I.input.length),!0));else{var O=new Set(I.input.split(/\s/)),w=R.split(/\s/);D=w.map(function(v,P){return new JLx(v.trim()+(P===w.length-1?"":" "),!O.has(v))})}return D},vAA=function(I){var y=!!LrQ(I.subtypes);
I=!!I.entityMid;return y||I};_.tWx=function(I){this.rawResponse=["",[],{}];this.suggestions=[];try{var y=JSON.parse(JTR(I));if(typeof y==="object"&&y!==null)this.rawResponse=y;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(F){console.log("Suggest: Failed to parse SuggestResponse!");return}var D=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(F,R){return new wHn(F,D,R)})};var P_V=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ssT;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22742_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},KJa,USj=function(){KJa||(KJa=new P_V);
return KJa};
P_V.prototype.updateSuggestions=function(I){var y=this;this.availableSuggestions.forEach(function(D){y.previousSuggestions[D]=!0});
this.availableSuggestions=I.map(function(D){var F=D.type.toString();D.subtypes.length>0&&(F+="i"+D.subtypes.join("i"),F+="k"+D.suggestionSources.COMPLETE_SERVER.toString());return F})};
var rLx=function(I,y){var D=Date.now();I.firstEditTime<0&&(I.firstEditTime=D);y&&(I.lastQueryBuildTime=D);I.lastEditTime=D};
P_V.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22742_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var joV=function(I){var y="";I.availableSuggestions.forEach(function(R){delete I.previousSuggestions[R]});
for(var D=_.J(Object.keys(I.previousSuggestions)),F=D.next();!F.done;F=D.next())F=F.value,I.previousSuggestions[F]&&(y+=(y?"j":"")+F);return y},oAS=function(I,y){var D=[];
y&&(D[1]=y.toString());D[0]="youtube";D[7]=Date.now()-I.startTime;D[6]=I.sessionNumber;I.zeroPrefixSuggestionCount>=0&&(D[33]=I.zeroPrefixSuggestionCount);D[13]=I.outOfSyncResponseCount;if(I.availableSuggestions.length>0){for(var F=y="",R=0,O=_.J(I.availableSuggestions),w=O.next();!w.done;w=O.next())w=w.value,w!==F&&(R>1&&(y+="l"+R),y+=(F?"j":"")+w,R=0,F=w),R+=1;R>1&&(y+="l"+R);D[3]=y}D[35]=joV(I);I.selectedSuggestionIndex>=0&&(D[2]=I.selectedSuggestionIndex);var v;if(y=(v=_.Pi("SBOX_SETTINGS"))==
null?void 0:v.SUGG_EXP_ID)D[19]=I.normalize(y),v=0,I.experimentTriggeredBeforeFinal&&(v|=1),I.experimentTriggeredFinal&&(v|=2),D[20]=v;D[26]=Array.from(I.inputMethodsTracker.usedMethods).join("j");if(I.JSC$22742_totalRoundTripTime>0){D[15]=I.JSC$22742_totalRoundTripTime;D[14]=I.maxRoundTripTime;v=[];for(R=y=0;R<10;R++)F=I.roundTripTimeHistogram[R],F===0?y++:(y>1?v.push(R+"-"+F):y===1?v.push("0j"+F):v.push(F.toString()),y=0);v=v.join("j");D[16]=v}I.zeroPrefixRoundTripTime>0&&(D[36]=I.zeroPrefixRoundTripTime);
I.lastQueryBuildTime>0&&(D[18]=I.lastQueryBuildTime-I.startTime);I.firstEditTime>0&&(D[4]=I.firstEditTime-I.startTime);I.lastEditTime>0&&(D[5]=I.lastEditTime-I.startTime);return D.join(".")};
P_V.prototype.normalize=function(I){return I.replaceAll(".","-")};
var Nqn=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var sU=function(){var I=_.k.apply(this,arguments)||this;I.microphoneSpinnerActive=!1;I.noAnimations=!1;I.boundExitClick=function(){I.onExitButtonClick()};
I.speechOverlayClassName="";I.isLevelAnimating=!1;I.playCloseDialogAudioFeedback=!0;I.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return I};
_.E(sU,_.k);_.L=sU.prototype;_.L.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.L.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=rnb()};
_.L.dataChanged=function(){this.logDialog()};
_.L.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var I;(I=this.manager.audioPlayer)!=null&&(I.JSC$21598_audioEnabled=!1)}this.manager.stop();(I=this.manager.audioPlayer)!=null&&(I.JSC$21598_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.L.handleSpeechQueryCompleteAction=function(I){var y=I.navigationAction;y&&(I.trackingParams&&_.W4().graftServerVe(I.trackingParams,this.dialogVe,5),_.lj(this.hostElement,"yt-navigate",{endpoint:y,tempData:this.getNavigationParams(y),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.L.onExitButtonClick=function(){this.closeDialog()};
_.L.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var I;if((I=this.manager)!=null){var y;(y=I.audioPlayer)==null||OL(y,"failure");I.setState("microphone-off");I.stop()}}else(I=this.manager)==null||I.start()};
_.L.transcriptionChanged=function(){var I,y;(((I=this.transcription)==null?0:I.low)||((y=this.transcription)==null?0:y.high))&&this.setState("transcribing",this.transcription)};
_.L.stateChanged=function(){this.setState(this.state,this.transcription)};
_.L.logDialog=function(){var I;(I=this.data)!=null&&I.trackingParams&&(I=_.W4(),_.d7(I,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=I.graftServerVe(this.data.trackingParams,void 0,5))};
_.L.getNavigationParams=function(I){var y={};if(_.l("web_yt_searchbox")){var D=USj();D.inputMethodsTracker.add(6);D=oAS(D,15);y.gs_l=D;var F;y.oq=((F=_.u(I,_.dY))==null?void 0:F.query)||""}else if(I=window.ytvoicesearchloggingparams){if(I=I())y.oq=I.oq,y.gs_l=I.gs_l}else _.o8(Error("em"));return y};
_.L.closeDialog=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.L.setState=function(I,y){if(this.data){var D=this.data,F={};switch(I){case "listening":F={headerText:D.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "timeout":F={headerText:D.promptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,microphoneAriaLabel:D.promptMicrophoneLabel};break;case "microphone-off":F={headerText:D.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,
microphoneAriaLabel:D.promptMicrophoneLabel};break;case "transcribing":(y==null?0:y.low)||(y==null?0:y.high)?F={transcriptionLow:y==null?void 0:y.low,transcriptionHigh:y==null?void 0:y.high,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel}:F={headerText:D.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "processing":F={headerText:D.loadingHeader,microphoneState:"processing",microphoneAriaLabel:D.microphoneButtonAriaLabel};
break;case "offline":F={headerText:D.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:D.connectionErrorMicrophoneLabel,microphoneAriaLabel:D.connectionErrorMicrophoneLabel};break;case "permission":F={headerText:D.permissionsHeader,bodyLine1:D.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:D.permissionsSubtext};break;case "permission-denied":F={headerText:D.disabledHeader,bodyLine1:D.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:D.disabledSubtext}}F.className=
I;this.speechOverlayState=F;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.L.setMicrophoneState=function(I){var y=this.isLevelAnimating;this.isLevelAnimating=I==="speaking";!y&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=I==="processing"&&!this.noAnimations};
_.L.setClass=function(I){this.speechOverlayClassName&&_.Ye(this.hostElement,this.speechOverlayClassName,!1);I&&(this.speechOverlayClassName=I,_.Ye(this.hostElement,I,!0))};
_.L.runLevelAnimation=function(){var I=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var y=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("+y+")");_.w2.addJob(function(){I.runLevelAnimation()},3,D)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
sU.prototype.stateChanged=sU.prototype.stateChanged;sU.prototype.transcriptionChanged=sU.prototype.transcriptionChanged;sU.prototype.onPopupClosed=sU.prototype.onPopupClosed;sU.prototype.dataChanged=sU.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],sU.prototype,"rendererStamperBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],sU.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],sU.prototype,"eventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],sU.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],sU.prototype,"speechOverlayState",void 0);
_.W([_.M(),_.A("design:type",Object)],sU.prototype,"microphoneSpinnerActive",void 0);_.W([_.M({type:_.l("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.A("design:type",Object)],sU.prototype,"noAnimations",void 0);_.W([_.M({selector:function(I){var y;return(y=I.voiceSearch)==null?void 0:y.transcription}}),
_.A("design:type",Object)],sU.prototype,"transcription",void 0);_.W([_.M({selector:function(I){var y;return(y=I.voiceSearch)==null?void 0:y.overlay}}),
_.A("design:type",String)],sU.prototype,"state",void 0);_.W([_.M(),_.A("design:type",Object)],sU.prototype,"boundExitClick",void 0);_.W([_.a0("#microphone-levels"),_.A("design:type",HTMLElement)],sU.prototype,"level",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sU.prototype,"dataChanged",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sU.prototype,"onPopupClosed",null);
_.W([_.Bp("transcription"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sU.prototype,"transcriptionChanged",null);_.W([_.Bp("state"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sU.prototype,"stateChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],sU);
_.a(sU,"ytd-voice-search-dialog-renderer",function(){if(T8Y!==void 0)return T8Y;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return T8Y=I},{mode:1});var h4A;var Vh=function(){var I=_.k.apply(this,arguments)||this;I.isOverlay=!1;I.hidden=!1;return I};
_.E(Vh,_.k);_.L=Vh.prototype;_.L.onPopupClosed=function(){this.toggleIconState(!1)};
_.L.computeIcon=function(){var I,y,D;return(y=_.u((I=this.data)==null?void 0:I.icon,UZT))==null?void 0:(D=y.icon)==null?void 0:D.iconType};
_.L.computeIconBadgeShape=function(){var I;return{iconBadgeType:"cart",iconBadgeText:(I=this.iconBadgeEntity)==null?void 0:I.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.L.onClick=function(){var I;(I=this.data)!=null&&I.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.L.computeHidden=function(I){return!I};
_.L.toggleIconState=function(I){this.iconButton&&(this.iconButton.pressed=I)};
Vh.prototype.onPopupClosed=Vh.prototype.onPopupClosed;_.W([_.Q(_.Jl),_.A("design:type",Object)],Vh.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Vh.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Vh.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Vh.prototype,"isOverlay",void 0);
_.W([_.M({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.A("design:type",Object)],Vh.prototype,"hidden",void 0);_.W([_.M({selectorArgs:["data.iconBadgeEntityKey"],selector:function(I,y){return _.nC(I.entities,"iconBadgeEntity",y)}}),
_.A("design:type",Object)],Vh.prototype,"iconBadgeEntity",void 0);_.W([_.a0("yt-icon-button"),_.A("design:type",HTMLButtonElement)],Vh.prototype,"iconButton",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vh.prototype,"onPopupClosed",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Vh);
_.a(Vh,"ytd-icon-badge-topbar-button-renderer",function(){if(h4A!==void 0)return h4A;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return h4A=I},{mode:1});var xSZ;var Zi=function(){var I=_.k.apply(this,arguments)||this;I.premiumOptions=[];return I};
_.E(Zi,_.k);Zi.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.mD.Object.defineProperties(Zi.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Zi.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Array)],Zi.prototype,"premiumOptions",void 0);_.W([_.Y("premiumOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],Zi.prototype,"hasPremiumOptions",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Zi);
_.a(Zi,"ytd-offline-promo-content",function(){if(xSZ!==void 0)return xSZ;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return xSZ=I},{mode:1});var lCZ;var gz=function(){var I=_.k.apply(this,arguments)||this;I.premiumOptions=[];return I};
_.E(gz,_.k);gz.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var I;this.premiumOptions=RMo((I=this.data)==null?void 0:I.formats)};
gz.prototype.onClickSubmit=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var I;(I=_.NY())==null||I.pause()};
gz.prototype.attached=function(){this.JSC$22762_scroller&&(this.JSC$22762_scroller.dialogElement=this.hostElement.parentNode)};
_.mD.Object.defineProperties(gz.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
gz.prototype.dataChanged=gz.prototype.dataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],gz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],gz.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],gz.prototype,"data",void 0);
_.W([_.M({computed:"computeIcon_(data.headersIcon)",value:""}),_.A("design:type",String)],gz.prototype,"headersIcon",void 0);_.W([_.M(),_.A("design:type",Array)],gz.prototype,"premiumOptions",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],gz.prototype,"JSC$22762_scroller",void 0);_.W([_.Y("headersIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],gz.prototype,"showIcon",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gz.prototype,"dataChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],gz);
_.a(gz,"ytd-offline-promo-renderer",function(){if(lCZ!==void 0)return lCZ;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return lCZ=I},{mode:1});var uts;var IN=function(){var I=_.k.apply(this,arguments)||this;I.playbackPauseInterval=NaN;I.isLoading=!1;I.hasError=!1;I.dialogClass="";I.youtubeLabel=_.zC("LOGO_ALT_LABEL",{},"YouTube Home");I.logoName="yt-logos-ext:yt-logo-updated";I.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return I};
_.E(IN,_.k);_.L=IN.prototype;_.L.onDataChange=function(){var I;if(this.showEOMV1Text=!((I=this.data)==null||!I.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.L.attached=function(){this.pausePlayer()};
_.L.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.L.handleLangSelect=function(I){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[I.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.L.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.L.handleSaveConsent=function(I){var y=this;this.showLoadingSpinner();this.showLoadingSpinner();oCy(_.u(I,Vo1)).catch(function(D){_.tq(new _.g6("Something went wrong when save consent "+(D.message?D.message:D)+"."));y.hideLoadingSpinner();y.showErrorMessage()})};
_.L.handleDisablePersonalization=function(I){var y=this;this.showLoadingSpinner();NNb(_.u(I,sKe)).then(function(){y.dialog.close();y.resumePlayer()}).catch(function(D){_.tq(new _.g6("Something went wrong when disable personalization "+(D.message?D.message:D)+"."));
y.hideLoadingSpinner();y.showErrorMessage()})};
_.L.showLoadingSpinner=function(){var I=this;this.showSpinnerJobId=_.w2.addLowPriorityJob(function(){I.isLoading=!0},500)};
_.L.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.w2.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.L.showErrorMessage=function(){var I=this;this.hasError=!0;_.w2.addLowPriorityJob(function(){I.hasError=!1},2E3)};
_.L.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.CR(function(){try{var I=_.NY();I&&I.pause()}catch(y){}},100))};
_.L.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var I=_.NY();I&&I.play()}catch(y){}};
_.mD.Object.defineProperties(IN.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.eomV1Text)return[];I=[];for(var y=["SHIELD","WARNING","BAR_CHART"],D=this.data.eomV1Text.essentialCookieMsg.items,F=0;F<y.length&&F<D.length;F++)I.push({icon:y[F],text:D[F]});return I}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.eomV1Text)return[];I=[];for(var y=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],D=this.data.eomV1Text.nonEssentialCookieMsg.items,F=0;F<y.length&&F<D.length;F++)I.push({icon:y[F],text:D[F]});return I}}});
IN.prototype.onDataChange=IN.prototype.onDataChange;_.W([_.M(),_.A("design:type",Object)],IN.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],IN.prototype,"showEOMV1Text",void 0);_.W([_.M(),_.A("design:type",Object)],IN.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Object)],IN.prototype,"hasError",void 0);_.W([_.M(),_.A("design:type",Number)],IN.prototype,"showSpinnerJobId",void 0);_.W([_.M(),_.A("design:type",Object)],IN.prototype,"dialogClass",void 0);
_.W([_.a0("#dialog"),_.A("design:type",Object)],IN.prototype,"dialog",void 0);_.W([_.a0("#cb-header"),_.A("design:type",HTMLElement)],IN.prototype,"header",void 0);_.W([_.a0("#lang-select"),_.A("design:type",HTMLElement)],IN.prototype,"langSelect",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],IN.prototype,"ytComponentBehavior",void 0);
_.W([_.M(),_.A("design:type",String)],IN.prototype,"youtubeLabel",void 0);_.W([_.M(),_.A("design:type",Object)],IN.prototype,"logoName",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IN.prototype,"onDataChange",null);_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],IN.prototype,"eomEssentialCookieMsgItems",null);
_.W([_.Y("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],IN.prototype,"eomNonEssentialCookieMsgItems",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],IN);
_.a(IN,"ytd-consent-bump-v2-lightbox",function(){if(uts!==void 0)return uts;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return uts=I},{mode:1});var qq$;var yK=function(){return _.k.apply(this,arguments)||this};
_.E(yK,_.k);yK.prototype.ready=function(){if(!_.sJ()||WST)var I=!0;else WST=!0,I=!1;I||(I=document.querySelector("ytd-app"),I||(I=document.body),this.internalLightBox=_.XB(I).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.W([_.M(),_.A("design:type",Object)],yK.prototype,"data",void 0);_.W([_.a0("#lightbox"),_.A("design:type",Object)],yK.prototype,"lightBox",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],yK);
_.a(yK,"ytd-consent-bump-v2-renderer",function(){if(qq$!==void 0)return qq$;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return qq$=I},{mode:1});var EAn;var Ges;var XHx;var DG=function(){return _.k.apply(this,arguments)||this};
_.E(DG,_.k);_.L=DG.prototype;_.L.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&$2e(this.toastManager,this.toastType)};
_.L.open=function(I){this.toast&&(this.ephemeralAction&&_.nR().resolve(_.uY).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=I!=null?I:0,this.toastManager.enqueue(this.toast,I)):this.toast.open())};
_.L.close=function(I){var y;(y=this.toast)==null||y.close();this.toastManager&&I===1&&$2e(this.toastManager,I)};
_.L.refit=function(){var I;(I=this.toast)==null||I.refit()};
_.L.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var I;(I=this.toast)==null||I.close()}};
_.L.setVerticalOffset=function(I){this.toast&&(this.toast.verticalOffset=I,this.toast.fit())};
_.L.computeButtonClass_=function(I){return I?"toast-button":""};
_.L.computeText_=function(I){return _.rY(I)};
_.L.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.hm("toast-opened-changed",this.toastOpened))};
_.L.updateToastOpenedFromBinding=function(I){this.toastOpened=I.detail.value};
_.mD.Object.defineProperties(DG.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var I,y,D=(I=this.data)==null?void 0:(y=I.actionButton)==null?void 0:y.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 I=[],y;((y=this.data)==null?0:y.responseText)&&I.push(_.rY(this.data.responseText));var D;((D=this.data)==null?0:D.subText)&&I.push(_.rY(this.data.subText));var F,R;if((F=this.data)==null?0:(R=F.actionButton)==null?0:R.buttonRenderer){var O,w;I.push(((O=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(w=O.accessibilityData)==null?void 0:w.label)||_.rY(this.data.actionButton.buttonRenderer.text))}return I.filter(function(v){return v}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var I,y;return(y=(I=this.toast)==null?void 0:I.opened)!=null?y:!1}}});
DG.prototype.toastOpenedChangedForBinding=DG.prototype.toastOpenedChangedForBinding;DG.prototype.toastOpenedChanged=DG.prototype.toastOpenedChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],DG.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],DG.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],DG.prototype,"duration",void 0);
_.W([_.M(),_.A("design:type",Number)],DG.prototype,"toastType",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],DG.prototype,"useCloseButton",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],DG.prototype,"closeToastOnActionButtonClick",void 0);_.W([_.M({value:function(){return _.zC("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],DG.prototype,"closeButtonAriaLabel",void 0);_.W([_.M(),_.A("design:type",Boolean)],DG.prototype,"toastOpened",void 0);_.W([_.M(),_.A("design:type",Boolean)],DG.prototype,"hasOpened",void 0);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],DG.prototype,"command",null);_.W([_.Y("labelText","command","duration"),_.A("design:type",Object),_.A("design:paramtypes",[])],DG.prototype,"ephemeralAction",null);
_.W([_.Y("ephemeralAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],DG.prototype,"hasEphemeralAction",null);_.W([_.a0("#toast"),_.A("design:type",Object)],DG.prototype,"toast",void 0);_.W([_.M({value:function(){return{style:"call-to-action-inverse"}}}),
_.A("design:type",Object)],DG.prototype,"buttonOverrides",void 0);_.W([_.M({value:{style:"mono-inverse"}}),_.A("design:type",Object)],DG.prototype,"closeButtonOverrides",void 0);_.W([_.M({value:function(){return _.nR().resolve(_.fR(_.og))}}),
_.A("design:type",Object)],DG.prototype,"toastManager",void 0);_.W([_.Y("data.responseText","data.subText","data.actionButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],DG.prototype,"labelText",null);_.W([_.ke("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DG.prototype,"toastOpenedChanged",null);
_.W([_.ke("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DG.prototype,"toastOpenedChangedForBinding",null);_.W([_.I6({is:"yt-notification-action-renderer",disableElementRegistration:!0})],DG);
_.a(DG,"yt-notification-action-renderer",function(){if(XHx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Ges===void 0&&(Ges=document.createElement("template"));var F=Ges;D.call(y,F.content.cloneNode(!0),I.content.firstChild);XHx=I}I=XHx;return I},{mode:2});var Fc=function(){var I=_.k.apply(this,arguments)||this;I.duration=4E3;I.downloadingCount=0;I.downloadedCount=0;I.downloadingOnlySmartDownloads=!1;I.sessionTotalDownloads=0;I.sessionDownloaded=0;I.previousSessionsDownloaded=0;I.totalDownloadPercentage=0;I.currentDownloadProgress=0;I.currentDownloadPercentage=0;I.isLeaderTab=!0;I.isFullScreen=!1;I.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};I.boundBeforeUnload=function(y){I.isLeaderTab&&I.downloadingCount>0&&(y.preventDefault(),
y.returnValue=!0)};
return I};
_.E(Fc,_.k);_.L=Fc.prototype;
_.L.open=function(){this.updateDownloadState();if(this.data){var I=this.sessionDownloaded+1,y=this.sessionTotalDownloads>1?_.zC("VIDEOS_DOWNLOADING_RATIO",{downloaded:I.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+I+"/"+this.sessionTotalDownloads):_.zC("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(y=this.sessionTotalDownloads>1?_.zC("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:I.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
I+"/"+this.sessionTotalDownloads):_.zC("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));I=this.isLeaderTab?_.zC("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.rY(this.data.responseText)!==y||_.rY(this.data.subText)!==I)this.set("data.responseText",_.Ug(y)),this.set("data.subText",_.Ug(I)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.L.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.L.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.L.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.L.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var I=this.downloadedCount-this.previousSessionsDownloaded;I<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-I);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.L.handleFullscreenChange=function(I){(this.isFullScreen=I)||this.updatePopup()};
Fc.prototype.updateCurrentDownloadProgress=Fc.prototype.updateCurrentDownloadProgress;Fc.prototype.updatePopup=Fc.prototype.updatePopup;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Fc.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],Fc.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Fc.prototype,"actionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"duration",void 0);_.W([_.M({selector:function(I){return _.iM_(I.entities).length}}),
_.A("design:type",Object)],Fc.prototype,"downloadingCount",void 0);_.W([_.M({selector:BNo}),_.A("design:type",Object)],Fc.prototype,"downloadedCount",void 0);_.W([_.M({selector:function(I){var y=_.iM_(I.entities);return a6b(I.entities,y)}}),
_.A("design:type",Object)],Fc.prototype,"downloadingOnlySmartDownloads",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"sessionTotalDownloads",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"sessionDownloaded",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"previousSessionsDownloaded",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"totalDownloadPercentage",void 0);
_.W([_.M({selector:function(I){var y;I=(y=_.iM_(I.entities))!=null?y:[];return I.length>0?_.pb4(I.slice(-1)):0}}),
_.A("design:type",Object)],Fc.prototype,"currentDownloadProgress",void 0);_.W([_.M(),_.A("design:type",Object)],Fc.prototype,"currentDownloadPercentage",void 0);_.W([_.M({selector:_.eJt}),_.A("design:type",Object)],Fc.prototype,"isLeaderTab",void 0);_.W([_.a0("yt-notification-action-renderer"),_.A("design:type",Object)],Fc.prototype,"notificationActionRenderer",void 0);
_.W([_.Bp("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fc.prototype,"updatePopup",null);_.W([_.Bp("currentDownloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fc.prototype,"updateCurrentDownloadProgress",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Fc);
_.a(Fc,"ytd-video-download-toast-renderer",function(){if(EAn!==void 0)return EAn;var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return EAn=I},{mode:1});var QoC;var YqA;var RN=function(){return _.k.apply(this,arguments)||this};
_.E(RN,_.k);RN.prototype.computeIsRedLogo=function(I,y){!I&&y&&(I=y);return I==="YOUTUBE_RED_LOGO"||I==="YOUTUBE_PREMIUM_LOGO"};
RN.prototype.computeLogoName=function(I){I=this.componentBehavior.computeIcon_(I);return I===""?"yt-logos-ext:yt-logo-updated":I};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],RN.prototype,"componentBehavior",void 0);_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.A("design:type",Boolean)],RN.prototype,"isRedLogo",void 0);_.W([_.M({computed:"computeLogoName(data)"}),_.A("design:type",String)],RN.prototype,"logoName",void 0);_.W([_.M({value:{}}),_.A("design:type",Object)],RN.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],RN.prototype,"logoType",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-logo"})],RN);
_.a(RN,"ytd-logo",function(){if(YqA!==void 0)return YqA;var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return YqA=I},{mode:_.Qd("kevlar_poly_si_batch_j074")?1:2});var Oa=function(){var I=_.k.apply(this,arguments)||this;I.animationRef={};return I};
_.E(Oa,_.k);_.L=Oa.prototype;_.L.attached=function(){document.addEventListener("yt-navigate-finish",_.MX(this,this.logYoodle))};
_.L.detached=function(){document.removeEventListener("yt-navigate-finish",_.MX(this,this.logYoodle))};
_.L.logYoodle=function(){var I,y;if((I=this.data)==null?0:(y=I.loggingDirectives)==null?0:y.trackingParams)this.ytRendererBehavior.markDirty(),_.W4().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.L.computeHideImg=function(I,y){return!!I||!!y};
_.L.computeHideYtdLogo=function(I,y){return!I||!!y};
_.L.computeHideLottie=function(I){return!I};
_.L.computeIsRedLogo=function(I){return I==="YOUTUBE_RED_LOGO"||I==="YOUTUBE_PREMIUM_LOGO"};
_.L.renderLogoEntity=function(){var I=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),D=this.getLogoTitleText(this.data),F=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==I&&(this.url=I);this.animatedUrl!==y&&(this.animatedUrl=y);this.logoTitleText!==D&&(this.logoTitleText=D);this.lottieUrl!==F&&(this.lottieUrl=F,this.lottiePlayerProps=this.computeLottiePlayerProps(F))};
_.L.getSanitizedThumbnail=function(I){return I&&I.thumbnails?_.q8o(I.thumbnails,122)||"":""};
_.L.getThumbnailUrl=function(I,y){if(!y)return"";var D,F;I=I?(D=y.darkThemeLogo)==null?void 0:D.thumbnail:(F=y.lightThemeLogo)==null?void 0:F.thumbnail;return this.getSanitizedThumbnail(I)};
_.L.getAnimatedThumbnailUrl=function(I,y){return y?this.getSanitizedThumbnail(I?y.darkThemeAnimatedLogo:y.lightThemeAnimatedLogo):""};
_.L.getLogoTitleText=function(I){if(I)return _.rY(I.tooltipText)};
_.L.computeLogoIcon=function(I,y){if(y){var D,F;return I?(D=y.darkThemeLogo)==null?void 0:D.icon:(F=y.lightThemeLogo)==null?void 0:F.icon}};
_.L.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.L.getLottieUrl=function(I,y){var D,F,R,O;return I?y==null?void 0:(D=y.darkThemeLogo)==null?void 0:(F=D.lottieAnimation)==null?void 0:F.url:y==null?void 0:(R=y.lightThemeLogo)==null?void 0:(O=R.lottieAnimation)==null?void 0:O.url};
_.L.computeLottiePlayerProps=function(I){if(I){var y;if((y=this.animationRef)==null?0:y.lottieEl){var D;(D=this.animationRef)==null||D.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:I,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.L.onLottieError=function(){this.data&&this.lottieUrl&&_.lj(this.hostElement,"yoodle-error")};
_.L.onImgError=function(){this.data&&!this.lottieUrl&&_.lj(this.hostElement,"yoodle-error")};
Oa.prototype.playAnimation=Oa.prototype.playAnimation;Oa.prototype.renderLogoEntity=Oa.prototype.renderLogoEntity;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Oa.prototype,"data",void 0);_.W([_.M({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],Oa.prototype,"hideImg",void 0);
_.W([_.M({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],Oa.prototype,"hideYtdLogo",void 0);_.W([_.M({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.A("design:type",Boolean)],Oa.prototype,"hideLottie",void 0);_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.A("design:type",Boolean)],Oa.prototype,"isRedLogo",void 0);
_.W([_.M(),_.A("design:type",Boolean)],Oa.prototype,"useDarkThemeYoodle",void 0);_.W([_.M(),_.A("design:type",String)],Oa.prototype,"url",void 0);_.W([_.M(),_.A("design:type",String)],Oa.prototype,"animatedUrl",void 0);_.W([_.M(),_.A("design:type",String)],Oa.prototype,"logoTitleText",void 0);_.W([_.M({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.A("design:type",Object)],Oa.prototype,"logoIcon",void 0);_.W([_.M(),_.A("design:type",Object)],Oa.prototype,"logoType",void 0);
_.W([_.M(),_.A("design:type",String)],Oa.prototype,"lottieUrl",void 0);_.W([_.M(),_.A("design:type",Object)],Oa.prototype,"lottiePlayerProps",void 0);_.W([_.M(),_.A("design:type",Object)],Oa.prototype,"animationRef",void 0);_.W([_.ke("data"),_.ke("useDarkThemeYoodle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oa.prototype,"renderLogoEntity",null);
_.W([_.z4("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Oa.prototype,"playAnimation",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Oa);
_.a(Oa,"ytd-yoodle-renderer",function(){if(QoC!==void 0)return QoC;var I=document.createElement("template");_.G(I,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return QoC=I},{mode:_.Qd("kevlar_poly_si_batch_j074")?1:2});var fCx;var nAa;var pHo=_.LV.currentPageTypeSelector,mSg=_.LV.currentPageSubTypeSelector,Ll=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return I};
_.E(Ll,_.k);_.L=Ll.prototype;_.L.onYoodleError=function(){_.l("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.L.computeLogoName=function(I){I=this.componentBehavior.computeIcon_(I);return I===""?"yt-logos-ext:yt-logo-updated":I};
_.L.computeTitle=function(I,y,D){return D&&(y==null?0:y.tooltipText)?_.rY(y.tooltipText):_.rY(I)};
_.L.computeAriaLabel=function(I,y,D){return D&&(y==null?0:y.tooltipText)?_.rY(I):""};
_.L.computeShowYoodle=function(I,y,D){return!I||!y&&!!D&&!_.e$.isEmpty(D)};
_.L.onNavigateHomeAction=function(){if(_.l("kevlar_miniplayer_navigate_home_from_app_killswitch")){var I;(I=_.XB(this.hostElement).querySelector(".yt-simple-endpoint"))==null||I.click()}};
_.L.computeLogoHref=function(I,y,D){var F;(D==null?0:D.onTapCommand)?F=this.componentBehavior.computeHref_(D.onTapCommand):I&&(F=this.componentBehavior.computeHref_(I));return F?F:y};
_.L.computeCommand=function(I,y){return(y==null?void 0:y.onTapCommand)||I};
_.L.getEndpointForm=function(){if(_.l("kevlar_topbar_disable_cache_only_home")){var I=_.nR().resolve(_.LM),y=pHo(I.getState())||"";I=mSg(I.getState())||"";return{disableCache:y==="ytd-browse"&&I==="home"}}return{disableCache:!0}};
Ll.prototype.onYoodleError=Ll.prototype.onYoodleError;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ll.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ll.prototype,"componentBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],Ll.prototype,"ytdReduxBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],Ll.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],Ll.prototype,"countryCode",void 0);_.W([_.M({selectorArgs:["data.overrideEntityKey"],selector:function(I,y){return _.nC(I.entities,"logoEntity",y)}}),
_.A("design:type",Object)],Ll.prototype,"logoEntity",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.A("design:type",Boolean)],Ll.prototype,"showYoodle",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Ll.prototype,"yoodleError",void 0);_.W([_.M({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],Ll.prototype,"titleText",void 0);
_.W([_.M({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],Ll.prototype,"ariaLabelText",void 0);_.W([_.M({value:"/"}),_.A("design:type",String)],Ll.prototype,"defaultEndpointUrl",void 0);_.W([_.M({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.A("design:type",String)],Ll.prototype,"endpointUrl",void 0);
_.W([_.M({computed:"computeCommand(data.endpoint, logoEntity)"}),_.A("design:type",String)],Ll.prototype,"command",void 0);_.W([_.M(),_.A("design:type",Object)],Ll.prototype,"logoType",void 0);_.W([_.M({}),_.A("design:type",Boolean)],Ll.prototype,"useDarkThemeYoodle",void 0);_.W([_.z4("yoodle-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ll.prototype,"onYoodleError",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Ll);
_.a(Ll,"ytd-topbar-logo-renderer",function(){if(nAa!==void 0)return nAa;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return nAa=I},{mode:_.Qd("kevlar_poly_si_batch_j027")?1:2});var MWx=0;var z4x=d3.SEARCH_APPEND_LABEL,kea=d3.SUGGESTION_NEW_VIDEOS_TEXT,dSS=d3.SUGGESTION_THUMBNAIL_LABEL,aCA=d3.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,cLg=_.d(function(I){function y(HG){var cG,vC;return _.S(function(AV){if(AV.nextAddress==1)return cG=new Request(HG),_.nj(AV,2),AV.yield(fetch(cG,{credentials:"include"}),4);if(AV.nextAddress!=2)return rq(!0),_.lZ(AV,0);vC=_.dj(AV);_.tq(vC);_.Cj(AV)})}
var D=I.isHighlighted;var F=I.suggestion;var R=I.onClickCallback;var O=I.onHoverUpdateCallback;var w=I.labels;var v=I.queryBuilderFunction;var P=I.onRemoveCallback;var K=I.suggestionIndex;var r=I.generateUniqueId;var N=I.highlightedId;var h=I.useScrollMargin;var x=I.isKeyboardMode;var q=null,X=null,f=null,m=_.DF("div"),z=_.DF("span");I=_.J(_.$M(!1,void 0,"LafNkf"));var B=I.next().value,C=I.next().value,H=_.Fh("a",function(HG){HG&&_.H_(237477,HG,X,function(cG){X=cG})}),e=_.Fh("button",function(HG){HG&&
_.H_(237477,HG,X,function(cG){X=cG})}),T=_.Fh("div",function(HG){HG&&_.H_(281939,HG,f,function(cG){f=cG})}),L5=_.YY(function(HG){if((HG==null?void 0:HG.button)===2)return HG.preventDefault(),!1;
var cG=_.VO();cG&&q&&_.t_(cG,q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var vC;R(HG,F().text,F().index,F().entityMid,HG==null?void 0:(vC=HG.detail)==null?void 0:vC.wasSelectedByKeyboard);return!1}),vH=function(){return F().type===35},u_=function(){return _.l("desktop_enable_single_suggestion_highlight")},jW=function(){return _.kf("desktop_suggestions_panel_row_height")||0},xA=function(){var HG;
return _.l("desktop_enable_new_video_metadata")&&((HG=F())==null?void 0:HG.hasNewVideo)===!0},dq=function(){return _.l("desktop_enable_visual_suggest")},$A=function(){return _.l("desktop_enable_entity_suggest")&&vAA(F())},BH=function(){return F().entitySubtitle},jf=function(){return u_()?(D==null?void 0:D())||Ta()&&!(x==null?0:x()):(D==null?void 0:D())||Ta()},yg=function(){var HG=_.Pi("SBOX_SETTINGS");
return vH()&&!(HG==null?0:HG.HIDE_REMOVE_LINK)},eW=function(){return SqC(F(),{useEntityName:$A()})},oe,xP=!((oe=_.nR().resolve(_.fR(_.cS)))==null||!oe()),XW=function(){return vH()?_.l("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},zo=function(){return w==null?void 0:w().SUGGESTION_DISMISS_LABEL},Ub=function(){return w==null?void 0:w().SUGGESTION_DISMISSED_LABEL};
I=_.J(_.$M(!1,void 0,"JyfUlf"));oe=I.next().value;var rq=I.next().value;I=_.J(_.$M(!1,void 0,"QKfAGe"));var ao=I.next().value,rc=I.next().value,Ta=ao,f_=_.YY(function(){v(z.value.innerText);return!1}),mM=_.YY(function(HG){HG.preventDefault();
return!1}),M_=_.YY(function(HG){var cG=F().text,vC=_.Pi("SBOX_SETTINGS"),AV="https://"+(vC.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
AV+="&delq="+encodeURIComponent(cG);(cG=vC==null?void 0:vC.PSUGGEST_TOKEN)&&(AV+="&tok="+cG);(vC=vC==null?void 0:vC.SESSION_INDEX)&&(AV+="&authuser="+vC);y(AV);HG.preventDefault();(HG=_.VO())&&X&&_.t_(HG,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");P(K==null?void 0:K());return!1}),ZR=_.YY(function(){if(u_()&&(x==null?0:x()))return!1;
rc(!0);O(!0);return!1}),rG=_.YY(function(){rc(!1);
O(!1);return!1}),$P=_.YY(function(){C(!0);
return!1}),HC=_.YY(function(){C(!1);
return!1}),vG=_.YY(function(HG){HG.preventDefault();
if(F().entityThumbnailAttributionUrl){f&&_.W0(_.W4(),f);var cG=F().entityThumbnailAttributionUrl;HG=F().entityName;var vC={dismissDialogEndpoint:{}};cG={commandExecutorCommand:{commands:[vC,{urlEndpoint:{url:cG,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:cG}}}]}};vC={buttonViewModel:{title:_.zC("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:vC}}};cG={buttonViewModel:{title:_.zC("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:cG}}};HG={dialogHeaderViewModel:{headline:{content:HG!=null?HG:_.zC("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var AV={basicContentViewModel:{paragraphs:[{text:{content:_.zC("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};HG={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:HG,footer:{panelFooterViewModel:{primaryButton:cG,
secondaryButton:vC,shouldHideDivider:!0}},content:AV}}}}};_.nR().resolve(_.MC).resolveCommand(HG)}return!1});
I=_.J(_.$M("",void 0,"MvIBn"));var jg=I.next().value,UO=I.next().value;_.OJ(function(){yg()&&UO(r==null?void 0:r(K==null?void 0:K()));m.value&&_.H_(12453,m.value,q,function(HG){q=HG})});
return _.t(_.U,{cond:oe,then:function(){var HG={};return _.t("div",{class:_.XH("ytSuggestionComponentRemovedText",(HG.ytSuggestionComponentLargerRemovedText=function(){return dq()},HG)),
style:function(){return jW()>0?"height: "+jW()+"px;":""},
role:"button"},Ub)},
else:function(){var HG={},cG={};return _.t("div",{class:_.XH("ytSuggestionComponentSuggestion",(HG.ytSuggestionComponentSuggestionHover=function(){return!u_()},HG.ytSuggestionComponentHighlighted=jf,HG.ytSuggestionComponentPersonalizedSuggestion=vH,HG.ytSuggestionComponentMweb=!1,HG.ytSuggestionComponentLargerSuggestion=function(){return xA()||dq()},HG.ytSuggestionComponentThumbnailSuggestion=function(){return dq()},HG.ytSuggestionComponentRoundedSuggestion=function(){return _.l("desktop_enable_scrollable_suggestions_panel")&&
_.l("desktop_enable_suggestions_panel_padding")},HG.ytSuggestionComponentThumbnailPadding=function(){return dq()&&!vH()},HG)),
style:function(){return jW()>0?"height: "+jW()+"px;":""},
role:"presentation","on:mousedown":L5,"on:mouseover":ZR,"on:mouseout":rG,el:m},_.t("div",{class:_.XH("ytSuggestionComponentText",(cG.ytSuggestionComponentScrollMargin=h,cG)),"aria-label":function(){return xA()?F().text+" "+kea:F().text},
id:function(){return r==null?void 0:r(K==null?void 0:K())},
"on:mousedown":L5,role:"option"},_.t(_.U,{cond:function(){return F().type!==33},
then:function(){return _.t(_.mj,{icon:XW,className:"ytSuggestionComponentIcon"})}}),_.t("div",{class:"ytSuggestionComponentLeftContainer"},_.t("span",{el:z,
role:"button",tabindex:0},_.t(_.gZ,{each:eW},function(vC){return vC.bold?_.t("span",{class:"ytSuggestionComponentBold"},vC.text):_.t("span",null,vC.text)})),_.t(_.U,{cond:function(){return $A()&&!!F().entitySubtitle||xA()},
then:function(){return _.t("div",{class:"ytSuggestionComponentMetadataContainer"},_.t(_.U,{cond:function(){return $A()&&!!F().entitySubtitle},
then:function(){return _.t("div",{class:"ytSuggestionComponentEntitySubtitle"},BH)}}),_.t(_.U,{cond:function(){return xA()},
then:function(){return _.t("div",{class:"ytSuggestionComponentNewVideoContainer"},_.t("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.t("div",{class:"ytSuggestionComponentNewVideoText"},kea))}}))}}))),_.t("div",{class:"ytSuggestionComponentRightContainer"},_.t(_.U,{cond:function(){return dq()&&F().visualSuggestUrl!==void 0},
then:function(){var vC={};return _.t("div",{class:"ytSuggestionComponentThumbnailContainer"},_.t("img",{"aria-label":dSS,class:_.XH("ytSuggestionComponentVisualSuggestThumbnail",(vC.ytSuggestionComponentCircularFrame=function(){return $A()&&F().subtypes.includes(790)},vC.ytSuggestionComponentEntitySuggestThumbnail=function(){return $A()},vC)),
src:function(){return F().visualSuggestUrl}}),_.t(_.U,{cond:function(){return $A()&&!!F().entityThumbnailAttributionUrl},
then:function(){var AV={};return _.t("span",{title:aCA,role:"tooltip"},_.t("div",{el:T,"on:mouseover":$P,"on:mouseout":HC,"on:mousedown":vG,class:_.XH("ytSuggestionComponentThumbnailOverlay",(AV.ytSuggestionComponentThumbnailOverlayHidden=function(){return!B()},AV))},_.t(_.mj,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.t(_.I8,null,_.t(_.Vj,{when:function(){return dq()&&yg()}},function(){var vC={};
return _.t("button",{class:_.XH("ytSuggestionComponentRemoveLinkClearButton",(vC.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return jg()&&jg()===(N==null?void 0:N())},vC.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!jf()},vC)),
el:e,"on:mousedown":M_,"aria-label":zo,id:function(){return jg()}},_.t(_.mj,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.t(_.Vj,{when:function(){return!(dq()&&F().visualSuggestUrl!==void 0)&&yg()}},function(){var vC={};
return _.t("a",{class:_.XH("ytSuggestionComponentRemoveLink",(vC.ytSuggestionComponentRemoveLinkDark=xP,vC.ytSuggestionComponentRemoveLinkSelected=function(){return jg()&&jg()===(N==null?void 0:N())},vC)),
el:H,"on:mousedown":M_,"aria-label":zo,tabindex:0,role:"button",id:function(){return jg()}},zo)}),_.t(_.Vj,{when:function(){return!1}},function(){return _.t("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":f_,"on:mousedown":mM,role:"button","aria-label":z4x},_.t(_.mj,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"dl");var WJH=_.UI(["//www.google.com/textinputassistant/","/","_tia.js"]),C_0=_.d(function(){return _.t("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.t("button",{class:"ytdTextInputAssistantButton","on:click":_.YY(function(){USj().inputMethodsTracker.add(3);var I,y=(I=_.Pi("SBOX_SETTINGS"))==null?void 0:I.REQUEST_LANGUAGE;if(y)return _.R1(_.Et(WJH,14,y)),!1})},_.t("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"el");var i5j;_.Bqo=function(){this.cache=new Map};
i5j=function(I){for(var y=_.J(I.cache.entries()),D=y.next();!D.done;D=y.next()){var F=_.J(D.value);D=F.next().value;F=F.next().value;F.suggestions.some(function(R){return R.type===35})&&I.cache.delete(D)}};var ALn=d3.SEARCH,$Sn=d3.SEARCH_CLEAR_LABEL,b5S=new _.uk("FAKE_SUGGEST_RESPONSE"),H5a=_.d(function(I){function y(){ZR||(ZR=setTimeout(function(){$P()},1E3))}
function D(Ga,qz,iR){if(Ga.trim()){M_=Ga;_.tG("REFINEMENTS_TUPLE",void 0);f_=!0;var JV;qz=oAS(Ub,qz);var Nz=(JV=I.searchEndpoint)==null?void 0:JV.call(I);_.vme(Ga,qz,Nz,oe.value.value,iR);$P();oe.value.value=Ga;oe.value.blur();Ub.reset()}}
function F(Ga){return _.S(function(qz){return qz.return(new Promise(function(iR){var JV=new XMLHttpRequest;JV.open("GET",_.DSg(Ga),!0);JV.withCredentials=!0;var Nz=_.Pi("SBOX_SETTINGS");(Nz==null?0:Nz.SEND_VISITOR_DATA)&&JV.setRequestHeader("X-Goog-Visitor-Id",Nz==null?void 0:Nz.VISITOR_DATA);JV.onload=function(){iR(JV.responseText)};
JV.onerror=function(){_.tq(Error("gm"));iR(null)};
setTimeout(function(){JV.abort()},1E4);
JV.send(null)}))})}
function R(Ga){var qz,iR,JV,Nz;return _.S(function(z_){switch(z_.nextAddress){case 1:return qz={credentials:"include",headers:_.yL0()},window.AbortController&&(iR=new AbortController,setTimeout(function(){iR.abort("ytsbox-suggest-timeout")},1E4),qz.signal=iR.signal),_.nj(z_,2),z_.yield(fetch(_.DSg(Ga),qz),4);
case 4:JV=z_.yieldResult.text();_.lZ(z_,3);break;case 2:return Nz=_.dj(z_),Nz!=="ytsbox-abort-last"&&Nz!=="ytsbox-suggest-timeout"&&_.tq(Nz),z_.return(null);case 3:return z_.return(JV)}})}
function O(Ga){var qz,iR,JV;return _.S(function(Nz){switch(Nz.nextAddress){case 1:if(qz=_.nR().resolve(_.fR(b5S)))return Nz.return(qz);iR=Date.now();y();return _.l("yt_searchbox_xhr")?Nz.yield(F(Ga),5):Nz.yield(R(Ga),4);case 4:JV=Nz.yieldResult;Nz.jumpTo(3);break;case 5:JV=Nz.yieldResult;case 3:if(JV){ZR&&(clearTimeout(ZR),ZR=null);var z_=Ub,gM=iR,$s=Ga.query.length===0;gM=Date.now()-gM;$s?z_.zeroPrefixRoundTripTime=gM:(z_.JSC$22742_totalRoundTripTime+=gM,z_.maxRoundTripTime=Math.max(z_.maxRoundTripTime,
gM),$s=Math.floor(gM/100),$s>=Nqn.length?++z_.roundTripTimeHistogram[9]:++z_.roundTripTimeHistogram[Nqn[$s]])}return Nz.return(JV)}})}
function w(Ga){var qz,iR,JV;return _.S(function(Nz){if(Nz.nextAddress==1)return(qz=zo.cache.get(_.ICj(Ga)))?Nz.return(qz):Nz.yield(O(Ga),2);iR=Nz.yieldResult;if(iR===null)return Nz.return(null);JV=new _.tWx(iR);Ga.query.length===0&&JV.suggestions.length===0||zo.cache.set(_.ICj(Ga),JV);return Nz.return(JV)})}
function v(Ga){var qz,iR;return _.S(function(JV){if(JV.nextAddress==1){mM=!1;var Nz=M_;Nz=_.KV()==="search"?(_.rR(location.href,"search_query")||_.rR(location.href,"q"))===Nz:!1;qz=new _.gGG(Ga,Nz?M_:null);return JV.yield(w(qz),2)}iR=JV.yieldResult;if(iR===null)return JV.return();qz.query.length===0&&(Ub.zeroPrefixSuggestionCount=iR.suggestions.length);if(qz.id<=rG)return Ub.outOfSyncResponseCount++,JV.return();if(document.activeElement!==oe.value)return JV.return();rG=qz.id;var z_=Ub,gM=iR.rawResponse[2]||
{};z_.experimentTriggeredBeforeFinal||(z_.experimentTriggeredBeforeFinal=z_.experimentTriggeredFinal);z_.experimentTriggeredFinal=!!gM.e;Ub.updateSuggestions(iR.suggestions);f(-1);BH([]);iR.suggestions!==x()&&Eu(iR.suggestions.length);q(iR.suggestions);L5(iR.suggestions.length>0&&iR.suggestions[0].type===33);XW&&(XW.hidden=iR.suggestions.length===0,T()?(XW.style.minWidth="",z_=XW.style,gM=(Nz=x()[0])==null?void 0:Nz.ignoredPrefix,z_.marginLeft=(gM?Math.min(gM.length*6,xP.value.offsetWidth):0).toString()+
"px"):(XW.style.minWidth=xP.value.offsetWidth+"px",XW.style.marginLeft="0"),cd());_.Cj(JV)})}
function P(){if(!f_)return!1;var Ga=_.Pi("REFINEMENTS_TUPLE"),qz;return Ga&&((qz=Ga[1])==null?0:qz.length)?(Ga=Ga[1].map(function(iR,JV){return new wHn([iR,0,[71]],oe.value.value,JV)}),x()!==Ga&&Eu(Ga.length),BH([]),q(Ga),Ub.updateSuggestions(Ga),f_=!1,XW.hidden=Ga.length===0,mM=Ga.length>0,!0):!1}
function K(){var Ga=oe.value.value;(typeof Ga==="string"||Ga instanceof String)&&Ga!==""?C(!0):C(!1)}
function r(){if(_.KV()==="search"){var Ga=window.location.href;try{var qz=_.rR(Ga,"search_query")||_.rR(Ga,"q")||""}catch(iR){qz=""}qz&&(oe.value.value=qz,C(!0))}}
var N=_.J(_.$M([],void 0,"OC8EPc")),h=N.next().value;N=N.next().value;var x=h,q=N;h=_.J(_.$M(-1,void 0,"t2tVQb"));var X=h.next().value,f=h.next().value;h=_.J(_.$M(-1,void 0,"v0RZCe"));var m=h.next().value,z=h.next().value;h=_.J(_.$M(!1,void 0,"rjAnI"));var B=h.next().value,C=h.next().value;h=_.J(_.$M(!1,void 0,"SyGLvb"));var H=h.next().value,e=h.next().value;N=_.J(_.$M(!1,void 0,"tL09Cb"));h=N.next().value;N=N.next().value;var T=h,L5=N;N=_.J(_.$M(!1,void 0,"FlH7mc"));h=N.next().value;var vH=N.next().value;
N=_.J(_.$M(!1,void 0,"ea3fwe"));var u_=N.next().value,jW=N.next().value;N=_.J(_.$M(1,void 0,"vSK1xe"));var xA=N.next().value,dq=N.next().value;N=_.J(_.$M([],void 0,"ijlw4b"));var $A=N.next().value,BH=N.next().value;N=_.J(_.$M(!1,void 0,"HcRey"));var jf=N.next().value,yg=N.next().value;N=_.l("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var eW=_.DF("yt-searchbox"),oe=_.DF("input"),xP=_.DF("div"),XW,zo=
new _.Bqo,Ub=USj(),rq=_.nR().resolve(_.fR(_.cS)),ao=function(){var Ga;return((Ga=I.forceDarkMode)==null?void 0:Ga.call(I))||!(rq==null||!rq())},rc=function(){return _.l("desktop_enable_scrollable_suggestions_panel")},Ta="i"+MWx++,f_=!1,mM=!1,M_="",ZR=null,rG=-1,$P=function(){BH([]);
q([]);L5(!1);XW&&(XW.hidden=!0);ZR&&(clearTimeout(ZR),ZR=null);f(-1)},HC=function(Ga,qz){Ga.preventDefault();
yg(!0);XW&&(XW.hidden=!1);var iR=X();Ga=x();var JV=$A();qz=SIC(qz);iR+=qz;for(iR>=Ga.length?iR=-1:iR<-1&&(iR=Ga.length-1);iR!==-1&&(JV.includes(iR)||iR>=Ga.length||iR<0);)iR+=qz,iR>=Ga.length&&(iR=-1);f(iR);X()>=0&&(oe.value.value=x()[X()].text,z(0),K(),Ga=X(),JV=m(),(JV=document.getElementById(aB[Ga][JV]))&&rc()&&(Ga===x().length-1?XW.scrollTop=XW.scrollHeight:JV.scrollIntoView({block:"nearest",inline:"start"})))},vG=_.YY(function(Ga){if(!(Ga.relatedTarget instanceof Element&&Ga.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){e(!0);
var qz;(qz=I.focusCallback)==null||qz.call(I,!0);P()||(mM?XW.hidden=!1:(_.lj(eW.value,"yt-autonav-pause-focus",{}),v(Ga.target.value)))}}),jg=_.YY(function(Ga){if(!(Ga.relatedTarget instanceof Element&&Ga.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){e(!1);
var qz;(qz=I.focusCallback)==null||qz.call(I,!1);XW.scrollTop=0;XW.hidden=!0;_.lj(eW.value,"yt-autonav-pause-blur",{})}}),UO=function(Ga){Ga=SIC(Ga);
var qz;((qz=aB[X()])==null?0:qz[m()+Ga])&&z(m()+Ga)},HG=_.YY(function(Ga){var qz=Ga.keyCode,iR=Ga.target;
yg(!0);switch(qz){case 13:Ga.preventDefault();var JV;if((JV=aB[X()])==null?0:JV[m()]){var Nz;(Nz=document.getElementById(aB[X()][m()]))==null||Nz.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Ga=Ga.shiftKey?4:3;qz=Ub;JV=X();qz.selectedSuggestionIndex=JV;D(iR.value,Ga);break;case 27:XW&&(XW.hidden=!0);break;case 40:HC(Ga,40);break;case 38:HC(Ga,38);break;case 39:UO(39);break;case 37:UO(37);break;case 229:Ub.inputMethodsTracker.add(4);break;default:Ub.inputMethodsTracker.add(1),
rLx(Ub)}return!1}),cG=_.YY(function(Ga){v(Ga.target.value);
K();rc()&&XW&&(XW.scrollTop=0);return!1}),vC=_.YY(function(){Ub.inputMethodsTracker.add(2);
rLx(Ub);return!1});
_.OJ(function(){if(XW){Ub.reset();if(window.ResizeObserver){var Ga=new ResizeObserver(function(){T()||(XW.style.minWidth=xP.value.offsetWidth+"px")});
Ga.observe(xP.value);(new ResizeObserver(function(){cd()})).observe(XW);
_.tI(function(){Ga.disconnect()})}r();
window.addEventListener("yt-navigate-finish",r);window.addEventListener("yt-focus-searchbox",function(){oe.value.focus()});
var qz;vH((qz=_.Pi("SBOX_SETTINGS"))==null?void 0:qz.HAS_ON_SCREEN_KEYBOARD)}else _.vu(new _.g6("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var AV=_.YY(function(Ga){Ga.preventDefault();D(oe.value.value,12);return!1}),AM=_.YY(function(Ga){Ga.preventDefault();
var qz,iR;(qz=oe)==null||(iR=qz.value)==null||iR.focus();var JV,Nz;((JV=oe)==null?void 0:(Nz=JV.value)==null?void 0:Nz.value)!==""&&(oe.value.value="",oe.value.dispatchEvent(new Event("input")));return!1}),oT=_.YY(function(){var Ga=I5y(oe.value.value,x().filter(function(qz){return qz.type!==35}).map(function(qz){return{label:qz.text}}));
_.uj(eW.value,"yt-open-popup-action",[{openPopupAction:Ga},document.body]);return!1}),ZQ=_.YY(function(){oe.value.focus();
return!1}),Ox=function(Ga,qz,iR,JV,Nz){Ub.selectedSuggestionIndex=iR;
D(qz,Nz?3:1,JV)},qa=function(Ga){oe.value.value=Ga;
oe.value.dispatchEvent(new Event("input"));Ub.inputMethodsTracker.add(5);rLx(Ub,!0)},aB=[[]],mE=function(Ga){var qz="searchbox-suggestion"+_.Fi(_.JH);
aB[Ga].push(qz);return qz},Eu=function(Ga){if(x()){aB=[[]];
for(var qz=0;qz<Ga;qz++)aB.push([])}},cd=function(){if(rc()){var Ga=XW,qz=Ga.scrollTop;
Ga=Ga.scrollHeight-Ga.clientHeight;jW(qz>=Ga);qz=Math.abs(Ga-qz);qz<=40?dq(1-(40-qz)/40):dq(1)}},G8=function(){return"opacity: "+xA()*100+"%"},YA=_.YY(function(){cd();
return!1}),cH=_.YY(function(){yg(!1);
return!1}),Te,lu={},uR={},QA={},Yy={};
return _.t("yt-searchbox",{class:_.XH("ytSearchboxComponentHost",(lu.ytSearchboxComponentMweb=!1,lu.ytSearchboxComponentDesktop=!0,lu["yt-searchbox-filled-query"]=function(){return B()},lu["ytd-masthead"]=function(){return!H()},lu.ytSearchboxComponentHostDark=ao,lu)),
role:"search",el:eW,"client-ve-type":10349},_.t("div",{el:xP,"on:click":ZQ,class:_.XH("ytSearchboxComponentInputBox",(uR.ytSearchboxComponentInputBoxDark=ao,uR.ytSearchboxComponentInputBoxHasFocus=H,uR))},_.t("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":AV},_.t(_.U,{cond:H,then:function(){return _.t("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.t(_.mj,{icon:"SEARCH"}))}}),_.t("input",{el:oe,
class:_.XH("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ta,"aria-expanded":!((Te=XW)==null?0:Te.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":jg,"on:focus":vG,"on:input":cG,"on:keydown":HG,"on:paste":vC,placeholder:I.placeholderText,"aria-activedescendant":function(){var Ga;return(Ga=aB[X()])==null?void 0:Ga[m()]},
"aria-autocomplete":"list",role:"combobox"})),_.t(_.U,{cond:h,then:function(){return _.t("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.t(C_0,null))}}),_.t(_.U,{cond:B,
then:function(){return _.t("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.t("button",{class:"ytSearchboxComponentClearButton","on:click":AM,"aria-label":I.clearButtonAriaLabel||$Sn},_.t(_.mj,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.t(_.fM,{model:{}})))}})),_.t("button",{class:_.XH("ytSearchboxComponentSearchButton",(QA.ytSearchboxComponentSearchButtonDark=ao,QA)),
"on:click":AV,"aria-label":ALn,title:I.placeholderText},_.t(_.mj,{icon:"SEARCH"})),_.t(_.U,{cond:function(){if(tza()&&_.l("mweb_voice_search")&&I.voiceSearchButton)return I.voiceSearchButton()},
then:function(Ga){var qz={};return _.t("div",{class:_.XH("ytSearchboxComponentVoiceSearchWrapper",(qz.ytSearchboxComponentHideVoiceSearchButton=function(){return B()},qz))},_.t(_.aP,{data:Ga},{buttonRenderer:function(iR){return _.t(_.u1,{data:iR.data,
onButtonClickCallback:function(){}})}}))}}),_.t("div",{el:_.K4(function(Ga){return void(XW=Ga)}),
id:Ta,class:_.XH("ytSearchboxComponentSuggestionsContainer",(Yy.ytSearchboxComponentSuggestionsContainerDark=ao,Yy["yt-searchbox-suggestions-container"]=!1,Yy.ytSearchboxComponentSuggestionsContainerScrollable=rc(),Yy.ytSearchboxComponentSuggestionsContainerAnimated=N,Yy)),"on:scroll":YA,"on:mousemove":cH,role:"listbox",hidden:!0},_.t(_.gZ,{each:x},function(Ga,qz){return _.t(cLg,{suggestion:Ga,isHighlighted:function(){return qz()===X()},
onClickCallback:Ox,onHoverUpdateCallback:function(iR){if(_.l("desktop_enable_single_suggestion_highlight")){var JV=qz();iR&&(z(0),f(JV))}},
onRemoveCallback:function(iR){i5j(zo);iR===void 0||iR<0||$A().includes(iR)||BH([].concat(_.Td($A()),[iR]))},
labels:I.labels,queryBuilderFunction:qa,suggestionIndex:qz,generateUniqueId:mE,highlightedId:function(){var iR;return(iR=aB[X()])==null?void 0:iR[m()]},
useScrollMargin:rc(),isKeyboardMode:jf})}),_.t(_.U,{cond:function(){return!T()&&x().find(function(Ga){return Ga.type!==35})&&_.l("searchbox_reporting")},
then:function(){return _.t("button",{class:"ytSearchboxComponentReportButton","on:mousedown":oT},_.zC("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.t(_.U,{cond:function(){return!u_()&&rc()},
then:function(){return _.t("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.t("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:G8}))}})))},"gl");
H5a.idomCompat={callbacks:{focusCallback:!0}};_.NK(H5a,"yt-searchbox",{props:{searchEndpoint:_.om,placeholderText:_.om,labels:_.om,voiceSearchButton:_.om,focusCallback:_.rV,clearButtonAriaLabel:_.om,forceDarkMode:_.om}});var J1=function(){var I=_.k.apply(this,arguments)||this;I.menuButtonTargetId="topbar-guide-menu";I.narrow=!1;I.menuStrings={BACK_ALT_LABEL:_.zC("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.zC("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.zC("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.zC("SBOX_PLACEHOLDER",void 0,"Search")};I.pageDarkTheme=document.documentElement.hasAttribute("dark");I.watchPageScrollTop=0;I.theater=!1;I.fullscreen=!1;I.disableFrostedGlassDuringViewTransition=
!1;I.desktopUnifiedSearchPanelMode=_.l("desktop_enable_unified_search_panel");I.aiCompanionEnabled=_.l("enable_ai_companion");I.ytSearchboxFocused=!1;I.searchboxLabels=_.Pi("SBOX_LABELS");I.topbarIsAboveChipbar=!1;I.isDarkThemeForced=!1;I.areGhostCardsHidden=!1;I.guideKeyboardToggle=!1;I.voiceSearchManager=rnb();I.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};I.setYtSearchboxFocused=function(y){I.ytSearchboxFocused=y};
I.toggleFrostedGlassDuringViewTransition=function(y){I.disableFrostedGlassDuringViewTransition=y};
return I};
_.E(J1,_.k);_.L=J1.prototype;_.L.computeSimpleText=function(I){return _.rY(I)};
_.L.onDarkChanged=function(){for(var I=_.J(this.buttons||[]),y=I.next();!y.done;y=I.next())y.value.isOverlay=!!this.dark;I=_.J(this.buttonRenderers||[]);for(y=I.next();!y.done;y=I.next())y.value.overrides=this.computeButtonOverride()};
_.L.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.L.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var I=_.NF(_.oJ(),"aa");_.Ye(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||I||(this.isDarkThemeForced=this.dark=!0);this.logoType?(I=this.hostElement.querySelector("#masthead-logo"))&&(_.l("polymer_on_demand_shady_dom")?I.setAttribute("slot","masthead-logo-old"):_.dM(I)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.MX(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.MX(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.L.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.MX(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.MX(this,this.onSetTheaterModeEnabled))};
_.L.dataChanged=function(){var I=this.data;I&&(this.voiceEnabled=I.voiceSearchButton?rnb().isSupported():!1,_.Ax(_.$D(),this.menuButtonTargetId,this.guideButton),I.onReceivedActions&&I.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.GC(this.hostElement,I.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&I&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Ye(this.hostElement,"dark",!1),_.Ye(this.hostElement,"theater",!1),(I=
this.hostElement.querySelector("#masthead-logo"))&&(_.l("polymer_on_demand_shady_dom")?I.setAttribute("slot","masthead-logo-old"):_.dM(I))))};
_.L.computeCenterHidden=function(){var I;return this.data&&!((I=this.data.searchbox)==null?0:I.fusionSearchboxRenderer)};
_.L.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Ye(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.L.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.L.onWatchScroll=function(I){this.watchPageScrollTop=I.detail||0;this.updateMastheadBackgroundOpacity()};
_.L.onFullscreenChangeAction=function(I){I||(this.watchPageScrollTop=0);this.fullscreen=I;this.updateMastheadBackgroundOpacity()};
_.L.onSetTheaterModeEnabled=function(I){this.theater=I.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.L.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.L.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.L.setBackgroundOpacity=function(I){I=this.calculateBackgroundOpacity(I);this.background.style.opacity=""+I};
_.L.calculateBackgroundOpacity=function(I){var y=this.theater?.6:0,D=this.hostElement.clientHeight/2;return Math.min(Math.max(I,0),D)/D*(1-y)+y};
_.L.shouldShowCinematicMastHead=function(){var I=_.l("kevlar_watch_grid")&&!_.l("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(I||this.pageDarkTheme)};
_.L.focusGuide=function(){this.guideButton.focus()};
_.L.onGuideToggleTap=function(){_.lj(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.L.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.L.onGuideToggleHover=function(){_.lj(this.hostElement,"yt-guide-hover")};
_.L.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.L.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.L.closeOnOutsideClickCondition=function(I){for(I=_.r4(I);I[0];){var y=I.shift();if(y instanceof Element&&y.id==="kbd")return!1}return!0};
_.L.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.L.pausePlayer=function(){var I;(I=_.NY())==null||I.pause();this.pauseMiniplayer()};
_.L.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var I;(I=_.nR().resolve(_.OI).getPlayerElement())==null||I.pause()}};
_.L.isMiniplayerActive=function(){return _.nR().resolve(_.OI).isMiniplayerActive()};
_.L.updateNarrowFromBinding=function(I){this.narrow=I.detail.value};
_.L.onYtSendFeedbackAction=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.L.registerWithViewTransitionManager=function(){OHb(_.nR().resolve(_.et),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.mD.Object.defineProperties(J1.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.l("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var I;return!!(this.aiCompanionEnabled&&((I=this.data)==null?0:I.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var I;return(I=this.data)==null?void 0:I.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
J1.prototype.narrowChanged=J1.prototype.narrowChanged;J1.prototype.onWatchPageChange=J1.prototype.onWatchPageChange;J1.prototype.onRendererStamperFinished=J1.prototype.onRendererStamperFinished;J1.prototype.dataChanged=J1.prototype.dataChanged;J1.prototype.onDarkChanged=J1.prototype.onDarkChanged;_.W([_.Q(_.sD),_.A("design:type",Object)],J1.prototype,"ironResizableBehavior",void 0);_.W([_.Q(Gsg),_.A("design:type",Object)],J1.prototype,"ytdExpandableInputBehavior",void 0);
_.W([_.Q(_.KN.YtdGuideStateAwareBehavior),_.A("design:type",Object)],J1.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],J1.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],J1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.Jl),_.A("design:type",Object)],J1.prototype,"ytdReduxBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"narrow",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"logoType",void 0);_.W([_.M(),_.A("design:type",Boolean)],J1.prototype,"voiceEnabled",void 0);
_.W([_.M(),_.A("design:type",Object)],J1.prototype,"menuStrings",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],J1.prototype,"dark",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"pageDarkTheme",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"watchPageScrollTop",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.k2q}),_.A("design:type",Boolean)],J1.prototype,"isWatchPage",void 0);
_.W([_.M({reflectToAttribute:!0,selector:_.dT_}),_.A("design:type",Boolean)],J1.prototype,"isShortsPage",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"theater",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"fullscreen",void 0);_.W([_.M({reflectToAttribute:!0,selector:_.Cqt}),_.A("design:type",String)],J1.prototype,"frostedGlassMode",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"aiCompanionEnabled",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"ytSearchboxFocused",void 0);_.W([_.cp("#buttons > *"),_.A("design:type",Array)],J1.prototype,"buttons",void 0);_.W([_.cp("ytd-button-renderer"),_.A("design:type",Array)],J1.prototype,"buttonRenderers",void 0);
_.W([_.a0("#background"),_.A("design:type",HTMLDivElement)],J1.prototype,"background",void 0);_.W([_.a0("#guide-button"),_.A("design:type",Object)],J1.prototype,"guideButton",void 0);_.W([_.a0("#logo"),_.A("design:type",Object)],J1.prototype,"logo",void 0);_.W([_.M({computed:"computeButtonOverride(dark)"}),_.A("design:type",Object)],J1.prototype,"buttonOverrides",void 0);
_.W([_.Bp("dark"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"onDarkChanged",null);_.W([_.M({value:function(){return this.onVoiceTap.bind(this)}}),
_.A("design:type",Function)],J1.prototype,"boundOnTapVoiceButton",void 0);_.W([_.M(),_.A("design:type",Object)],J1.prototype,"topbarIsAboveChipbar",void 0);_.W([_.M(),_.A("design:type",String),_.A("design:paramtypes",[])],J1.prototype,"guideIcon",null);_.W([_.Y("voiceEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J1.prototype,"shouldShowVoiceSearchButton",null);
_.W([_.Y("data.aiCompanionButton","aiCompanionEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J1.prototype,"shouldShowAiCompanionButton",null);_.W([_.Y("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"voiceSearchButton",null);_.W([_.Y("aiCompanionEnabled"),_.A("design:type",String),_.A("design:paramtypes",[])],J1.prototype,"narrowQuery",null);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"dataChanged",null);_.W([_.z4("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"onRendererStamperFinished",null);_.W([_.Bp("isWatchPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"onWatchPageChange",null);
_.W([_.Bp("narrow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"narrowChanged",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-masthead"})],J1);
_.a(J1,"ytd-masthead",function(){if(fCx!==void 0)return fCx;var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return fCx=I},{mode:_.Qd("kevlar_poly_si_batch_j036")?1:2});var e4x;var Tq$={},soq={},VWa={},Z5n={},gAg=(Z5n.OFFLINE=(Tq$["publicytnetworkstatus-online"]="BACK_ONLINE",Tq$),Z5n.ONLINE=(soq["publicytnetworkstatus-offline"]="OFFLINE",soq),Z5n.BACK_ONLINE=(VWa["publicytnetworkstatus-offline"]="OFFLINE",VWa.TIMER_TRIGGER="ONLINE",VWa),Z5n),w$=function(){var I=_.k.apply(this,arguments)||this;I.currentState="ONLINE";I.scheduledJobId=0;I.bannerString="";I.bannerVe=null;I.networkStatusManagerInstance=new _.x7;return I};
_.E(w$,_.k);_.L=w$.prototype;_.L.attached=function(){var I=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){I.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){I.stateChangeHandler("publicytnetworkstatus-offline")})};
_.L.detached=function(){var I=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){I.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){I.stateChangeHandler("publicytnetworkstatus-offline")})};
_.L.enterState=function(I){var y=this;this.scheduledJobId&&_.w2.cancelJob(this.scheduledJobId);I==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):I==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.zC("NO_INTERNET_CONNECTION",void 0,"No internet connection")):I==="BACK_ONLINE"&&(this.bannerString=_.zC("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.y9(_.w2,function(){y.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=I};
_.L.stateChangeHandler=function(I){(I=gAg[this.currentState][I])&&this.enterState(I)};
_.L.logVisibility=function(I){var y=_.VO();this.createBannerVe(I);y&&this.bannerVe&&(I?_.wH(y,[this.bannerVe]):_.vW(y,[this.bannerVe]))};
_.L.createBannerVe=function(I){!this.bannerVe&&I&&(this.bannerVe=_.QM(37929),_.c0(_.W4(),this.bannerVe))};
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",String)],w$.prototype,"currentState",void 0);_.W([_.M(),_.A("design:type",Object)],w$.prototype,"scheduledJobId",void 0);_.W([_.M(),_.A("design:type",Object)],w$.prototype,"bannerString",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-network-status-banner"})],w$);
_.a(w$,"ytd-network-status-banner",function(){if(e4x!==void 0)return e4x;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return e4x=
I},{mode:1});var IR0;var ve=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};I.hidden=!0;I.frostedGlass=_.l("web_frosted_glass");return I};
_.E(ve,_.k);ve.prototype.computeHidden=function(I){return I&&I.status?!1:!0};
ve.prototype.handleUpdatePermissionRoleCommand=function(I){if(I=_.u(I,_.a8P))if(I=_.u(I.renderer,_.dyz))this.data=I};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],ve.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],ve.prototype,"componentBehavior",void 0);_.W([_.M({value:!0,computed:"computeHidden(data)"}),_.A("design:type",Object)],ve.prototype,"hidden",void 0);_.W([_.M(),_.A("design:type",Object)],ve.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],ve.prototype,"frostedGlass",void 0);
_.W([_.yd({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ve);
_.a(ve,"ytd-permission-role-bottom-bar-renderer",function(){if(IR0!==void 0)return IR0;var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);return IR0=I},{mode:1});var yMH;var Dz0;var t01={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var SO=function(){return _.k.apply(this,arguments)||this};
_.E(SO,_.k);_.L=SO.prototype;_.L.attached=function(){this.JSC$22846_scroller&&(this.JSC$22846_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22846_scroller.attached&&typeof this.JSC$22846_scroller.attached==="function"&&this.JSC$22846_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.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 I=_.XB(this.hostElement);I.querySelector("tp-yt-paper-radio-group").selected="";var y=I.querySelector("#reason-text");y&&(y.value="");I.querySelector("#description-text").value=""}};
_.L.canSubmit=function(I,y){_.lj(this.hostElement,"yt-invalidate-popup-tabbables");return!(I&&y)};
_.L.onCancel=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.L.onSubmit=function(){var I=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(O){return O.active}).map(function(O){return O.innerText.trim()}),y=this.hostElement.querySelector("tp-yt-paper-radio-group"),D=y.selectedItem,F=D.name;
D=D.innerText.trim();var R=y.querySelector("#reason-text");y=void 0;R&&(y=R.value);(R=this.descriptionText.value)&&(R=R.trim());PyT(this.data.searchQuery,I,F,D,R,y);_.uj(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.L.sendFormSubmitToast=function(){var I=_.xc(_.zC("SBOX_INAPPROPRIATE_TOAST"));_.uj(this.hostElement,"yt-open-popup-action",[I,this])};
_.L.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(I){return I.active})};
_.L.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
SO.prototype.onIronSelect=SO.prototype.onIronSelect;SO.prototype.onIronChange=SO.prototype.onIronChange;SO.prototype.dataChanged=SO.prototype.dataChanged;_.W([_.M(),_.A("design:type",Object)],SO.prototype,"data",void 0);_.W([_.M({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.A("design:type",Boolean)],SO.prototype,"submitDisabled",void 0);_.W([_.M(),_.A("design:type",Boolean)],SO.prototype,"suggestionSelected",void 0);
_.W([_.M(),_.A("design:type",Boolean)],SO.prototype,"catagorySelected",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],SO.prototype,"JSC$22846_scroller",void 0);_.W([_.a0("#description-text"),_.A("design:type",Object)],SO.prototype,"descriptionText",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SO.prototype,"dataChanged",null);
_.W([_.z4("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SO.prototype,"onIronChange",null);_.W([_.z4("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SO.prototype,"onIronSelect",null);_.W([_.yd({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],SO);
_.a(SO,"ytd-search-suggestion-report-dialog",function(){if(Dz0!==void 0)return Dz0;var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return Dz0=I},{mode:1});var t1=function(I){var y=I.openPopupAction;var D=I.target;var F=I.container;var R=I.popupContainerConfig;var O=I.getElement;I=I.removeWhenClosed===void 0?!1:I.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=y;this.target=D;this.container=F;this.popupContainerConfig=R;this.getElement=O;this.JSC$22852_popupConfig=this.popupContainerConfig.JSC$21533_popupConfig[this.openPopupAction.popupType];this.rendererName=(y=this.getName())?_.LKW(y,HUe(this.popupContainerConfig,
y)):"";_.l("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=I);this.createPopup()};
t1.prototype.updatePopup=function(I){this.openPopupAction=I;this.JSC$22852_popupConfig=this.popupContainerConfig.JSC$21533_popupConfig[this.openPopupAction.popupType];FMx(this);_.l("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
t1.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var LMx=function(I,y,D){(y=y&&I.JSC$22852_popupConfig.narrowProperties?I.JSC$22852_popupConfig.narrowProperties:I.JSC$22852_popupConfig.properties)&&D!==void 0&&(y.isAriaModal=D);RnV(I,y);I.isRtl()&&RnV(I,I.JSC$22852_popupConfig.rtlProperties);O_o(I)};
t1.prototype.createPopup=function(){var I=this.JSC$22852_popupConfig.component;if(this.popupContent=JMs(this,this.rendererName)){if(I){this.popup=JMs(this,I);var y=this.popupContent;_.l("web_enable_wrapper_for_cow_component_in_popup")&&(y=document.createElement("div"),y.appendChild(this.popupContent));_.l("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22852_popupConfig.slotName&&y.setAttribute("slot",this.JSC$22852_popupConfig.slotName);I=this.popup;var D=this.container.tagName.toLowerCase();
_.uI("desktop_web_boolean_flag_with_counterfactual_study");var F=_.NX(y);_.ykq(_.xe(I),_.qX(y,D,F));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.l("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.XB(this.container).appendChild(this.popup)}};
var FMx=function(I){var y,D,F=(y=I.openPopupAction.accessibilityData)==null?void 0:(D=y.accessibilityData)==null?void 0:D.label;F&&(I.popup.ariaLabel=F);var R;((R=I.popupContent.polymerController)!=null?R:I.popupContent).data=(0,_.e$.unsafeClone)(I.openPopupAction.popup[I.getName()]);I.popupContent.duration=wG0(I);I.popupContent.positionType=I.openPopupAction.position;var O=I.openPopupAction.properties;O&&Object.keys(O).forEach(function(w){I.popupContent[w]=O[w]})},RnV=function(I,y){if(y)for(var D=
_.J(Object.keys(y)),F=D.next();!F.done;F=D.next())F=F.value,I.popup[F]=y[F]},O_o=function(I){if(I.openPopupAction.position){var y=I.JSC$22852_popupConfig.positionalProperties&&I.JSC$22852_popupConfig.positionalProperties[I.openPopupAction.position],D=I.JSC$22852_popupConfig.rtlPositionalProperties&&I.JSC$22852_popupConfig.rtlPositionalProperties[I.openPopupAction.position];
y=I.isRtl()&&D?D:y;y.shiftedHorizontalOffset&&(D=I.popup.style.display,I.popup.style.display="block",I.popupContent&&I.popup.positionTarget&&I.popupContent.clientWidth>I.popup.positionTarget.clientWidth&&(y.horizontalOffset=I.popup.positionTarget.clientWidth/2-y.shiftedHorizontalOffset),I.popup.style.display=D);RnV(I,y)}},vPA=function(I,y,D){if(y){for(var F=_.J(Object.keys(y)),R=F.next();!R.done;R=F.next())R=R.value,I.popup.style[R]=y[R];
if(D)for(y=_.J(Object.keys(D)),F=y.next();!F.done;F=y.next())F=F.value,I.popup.style[F]=D[F]}};
t1.prototype.getName=function(){return _.vi(this.openPopupAction.popup,"renderer")||_.vi(this.openPopupAction.popup,"dialog")||_.vi(this.openPopupAction.popup,"model")||void 0};
var wG0=function(I){I=I.openPopupAction.durationHintMs;return I===0?I:Math.max(4E3,I||4E3)};
t1.prototype.isRtl=function(){return _.Pi("HTML_DIR")==="rtl"};
var JMs=function(I,y){I=I.getElement(y,I.target);I==null&&_.tq(new _.g6("popup getElement returned null",y));return I};var SOs={};
SOs.YtPopupContainerBehavior=[_.vb.YtComponentBehavior,_.cb.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.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.h9(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.xI(this.hostElement)},
closePopup:function(I){var y=this.createCacheKey(void 0,I);this.popups_[y]&&this.handleClosePopupAction_(void 0,I)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.w2.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.w2.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(I){I.opened&&I.keepBelowPlayer&&this.ensurePopupBelowPlayer(I)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var I in this.popups_){var y=this.popups_[I];if(y.popup.scrollAction==="refit"){var D=y.popup.positionTarget.getBoundingClientRect(),F=y.popup;D=D.top;var R=y;if(!R.naturalHeight){R.popup.hidden=!1;R.popup.style.position="fixed";R.popup.style.top="0px";R.popup.style.left="0px";var O=R.popup.getBoundingClientRect();R.naturalHeight=O.bottom-O.top;R.popup.refit()}F.hidden=!(D>=R.naturalHeight+60);y.popupContent.clientHeight===0&&y.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(I){this.popupContainerConfig=I},
handleOpenPopupAction:function(I,y,D){var F=I.openPopupAction,R=_.nR().resolve(_.fR(_.og))&&F.popupType==="TOAST";R&&!F.uniqueId&&(F.uniqueId=so());if(!_.l("popup_container_parent_target_killswitch")){var O;y=(O=this.getParentTarget(y))!=null?O:y}var w=this.ensurePopup_(F,y);return new _.AO(function(v){w.then(function(P){if(!P)return v();this.maybeCreateNarrowMediaQuery_();var K=this.createCacheKey(P.rendererName,P.openPopupAction.uniqueId);if(F.showOncePerUniqueId){if(this.shownPopupKeys_.has(K))return v();
this.shownPopupKeys_.add(K)}K=this.popups_[K];var r=!(!K||!K.openPopupAction.beReused);r=!!F.reusePopup||r;if(P.popup.opened&&!r){R&&!P.openPopupAction.replacePopup||this.handleClosePopupAction_(P.rendererName,P.openPopupAction.uniqueId);r=F.popupType==="DIALOG"&&!_.l("popup_container_dialog_reopen_killswitch");if(!R&&!r&&K&&K.target==y&&(_.l("popup_container_event_target_check_killswitch")||K.target==D)&&!P.openPopupAction.replacePopup)return v();_.YC(P.popup,function(){this.completeOpenPopupAction_(F,
y,P);v()}.bind(this))}else P.popup.opened?P.updatePopup(F):this.completeOpenPopupAction_(F,y,P),v()}.bind(this))}.bind(this))},
getParentTarget:function(I){if(I&&I instanceof HTMLElement)for(var y=_.J(Object.entries(this.popups_)),D=y.next();!D.done;D=y.next())if(D=_.J(D.value),D.next(),D=D.next().value,this.popupClosesOnClick(D)&&D.popup.contains(I))return D.target},
popupClosesOnClick:function(I){return I.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(I.rendererName.toUpperCase())},
completeOpenPopupAction_:function(I,y,D){D.updatePopup(I);var F=this.narrowMediaQuery_.queryMatches,R=this.isAriaModal;I=this.expandToFullWidth;D.target=y;var O;y=((O=D.target.polymerController)!=null?O:D.target).popupPositionTarget||D.target;D.JSC$22852_popupConfig.targetContainer&&(y=D.container);D.popup.positionTarget=y;D.popupContent.positionTarget=y;O_o(D);D.JSC$22852_popupConfig.forceFocus&&(D.popupContent.style.outline="none");D.popupContent.tabIndex=-1;D.JSC$22852_popupConfig.narrowProperties&&
(D.popup.style.position="static");D.JSC$22852_popupConfig.preventAutonav&&D.popup.setAttribute("prevent-autonav",!0);D.JSC$22852_popupConfig.forceCloseOnOutsideClick&&D.popup.setAttribute("force-close-on-outside-click",!0);LMx(D,F,R);O={};O.width=I?"100%":"";vPA(D,D.JSC$22852_popupConfig.styles,O);D.isRtl()&&vPA(D,D.JSC$22852_popupConfig.rtlStyles,O);if(!D.openPopupAction.shouldStopParentSignal){var w;I=(w=D.target.polymerController)!=null?w:D.target;(D.popupContent.startForwardingEvents||D.popupContainerConfig.forwardingEnabledPopups.has(D.rendererName))&&
I.parentComponent!==D.popupContent&&D.popupContent!==D.target&&D.target!==document.body&&(D.popupContent.startForwardingEvents?D.popupContent.startForwardingEvents(D.popupContainerConfig.forwardedEvents,D.target):(D.JSC$22852_eventForwarder||(D.JSC$22852_eventForwarder=new _.fx(D.popupContent)),D.JSC$22852_eventForwarder.start(D.popupContainerConfig.forwardedEvents,D.target)))}D=D.popup;D.addEventListener("iron-overlay-opened",_.MX(this,this.onPopupIronOverlayOpened_));D.addEventListener("iron-overlay-closed",
_.MX(this,this.onPopupIronOverlayClosed_));D.addEventListener("iron-overlay-canceled",_.MX(this,this.onPopupIronOverlayCanceled_));D.addEventListener("yt-refit",_.MX(this,this.refitPopup_));D.addEventListener("yt-invalidate-popup-tabbables",_.MX(this,this.handleInvalidatePopupTabbables_));D.open()},
getPopupDurationMs_:function(I){return I.durationHintMs===0?I.durationHintMs:Math.max(4E3,I.durationHintMs||4E3)},
handleClosePopupAction_:function(I,y){var D=_.l("web_popup_cache_key_killswitch")||!!y;if(I||D){var F=this.createCacheKey(I,y);I=(I=this.popups_[F])&&I.popup}else I=_.c4f(_.SJ);if(I&&I.close){if(y=_.nR().resolve(_.fR(_.Q3)))I.restoreFocusOnClose=y.isKeyBoardInUse();if(I&&I.positionTarget&&!_.l("ytpopup_close_sibling_popups_killswitch")){y=_.J(Object.entries(this.popups_));for(D=y.next();!D.done;D=y.next()){var R=_.J(D.value);D=R.next().value;R=R.next().value;var O=void 0,w=void 0,v=void 0,P=void 0,
K=void 0,r=void 0;I.positionTarget==((O=R)==null?void 0:(w=O.popupContent)==null?void 0:w.positionTarget)&&R.popup&&(!((v=R.popup)==null?0:(P=v.style)==null?0:P.display)||((K=R.popup)==null?void 0:(r=K.style)==null?void 0:r.display)!=="none")&&(O=void 0,(O=R.popup)==null?0:O.close)&&(R.popup.close(),this.removePopup_(R.popup,D))}I&&this.popups_[F]&&(I.close(),this.removePopup_(I,F))}else I.close(),this.removePopup_(I,F)}},
handleClosePopupCommand_:function(I){I.closePopupCommand&&I.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,I.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(I){var y={},D;for(D in this.popups_)if(y={key$jscomp$1245:y.key$jscomp$1245},y.key$jscomp$1245=D,!I||!I.some(function(O){return function(w){return w==O.key$jscomp$1245}}(y))){var F=this.popups_[y.key$jscomp$1245],R=F.popup;
_.nR().resolve(_.fR(_.og))&&F.openPopupAction.popupType==="TOAST"||(R&&R.close&&R.close(),this.removePopup_(R,y.key$jscomp$1245))}},
handleClosePopupsAction_:function(I){I.forEach(function(y){var D=this.popups_[y];D&&((D=D.popup)&&D.close&&D.close(),this.removePopup_(D,y))}.bind(this))},
handleGetPopupOpenedAction_:function(I,y){return(y=this.createCacheKey(I,y))&&this.popups_[y]?this.popups_[I].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var I=[],y;for(y in this.popups_){var D=this.popups_[y];D.popup.opened&&I.push(D)}return I},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(I,y){_.l("ytpopup_disable_default_html_caching")&&I&&I.removeWhenClosed&&(_.XB(this.hostElement).removeChild(I),y&&this.popups_[y]&&delete this.popups_[y])},
shouldReusePopup_:function(I){return!(!I||!I.reusePopup)||!(!I||!I.beReused)},
ensurePopup_:function(I,y){this.maybeCreateNarrowMediaQuery_();var D=_.vi(I.popup,"renderer")||_.vi(I.popup,"dialog")||_.vi(I.popup,"model");if(!D)return _.Xs();D=_.LKW(D,HUe(this.popupContainerConfig,D));return _.Xs(this.getAndMaybeCreatePopup_(I,D,y))},
getAndMaybeCreatePopup_:function(I,y,D){var F=this.createCacheKey(y,I.uniqueId);if(this.popups_[F])return this.popups_[F];I=new t1({openPopupAction:I,target:D,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(y)});return this.popups_[F]=I},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(I){return _.l("ytpopup_disable_default_html_caching")?_.l("ytpopup_disable_cache_allowlist")?I&&this.doNotCacheList_.includes(I):I&&I.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",_.MX(this,this.openPopupQueryMatchesChanged_)),_.XB(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(I){I=I.detail.value;for(var y in this.popups_)LMx(this.popups_[y],I)},
onPopupIronOverlayClosed_:function(I){var y=I.currentTarget,D=_.lpA(y);D=D.length>0?D[0]:y;if(D.is!=="ytd-reel-watch-while-dialog-renderer"||I.target.is!=="tp-yt-iron-dropdown"){I.detail.popup=y;I.detail.popupRenderer=D;var F,R={context:{openingElement:((F=this.popups_[(D==null?void 0:D.is)||""])==null?void 0:F.target)||void 0}};Object.assign(R,I.detail);var O;_.lj((O=D.hostElement)!=null?O:D,"yt-popup-closed",R);y.removeEventListener("yt-refit",_.MX(this,this.refitPopup_));y.removeEventListener("yt-invalidate-popup-tabbables",
_.MX(this,this.handleInvalidatePopupTabbables_));y.removeEventListener("iron-overlay-canceled",_.MX(this,this.onPopupIronOverlayCanceled_));y.removeEventListener("iron-overlay-closed",_.MX(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(y)}},
onPopupIronOverlayCanceled_:function(I,y){var D=I.currentTarget,F=_.lpA(D);F=F.length>0?F[0]:D;if(F.is!=="ytd-reel-watch-while-dialog-renderer"||I.target.is!=="tp-yt-iron-dropdown"){var R;_.lj((R=F.hostElement)!=null?R:F,"yt-popup-canceled",I.detail);R=y?_.r4(y):null;(!y||["click","tap"].includes(y.type))&&!D.hasAttribute("force-close-on-outside-click")&&D.positionTarget&&R&&R.includes(D.positionTarget)&&I.preventDefault();D.restoreFocusOnClose=_.CP.keyboardEventMatchesKeys(y,"esc")}},
onPopupIronOverlayOpened_:function(I){I=I.currentTarget;var y=_.lpA(I);y=y.length>0?y[0]:I;var D,F;_.lj((D=y.hostElement)!=null?D:y,"yt-popup-opened",(F=y.hostElement)!=null?F:y);I.keepBelowPlayer&&(this.ensurePopupBelowPlayer(I,!0),this.dynamicallyPositionedElements_.add(I));D=_.nR().resolve(_.fR(_.Q3));F=!!y.querySelector("#toast");D&&D.isKeyBoardInUse()&&!F&&(typeof y.focusFirstItem==="function"?y.focusFirstItem():(y=_.kQO(I),y.length&&y[0].focus()));I.removeEventListener("iron-overlay-opened",
_.MX(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(I){I=I.currentTarget;I.refit&&I.refit()},
refitPopups_:function(){for(var I in this.popups_)this.popups_[I].refit()},
handleInvalidatePopupTabbables_:function(I){I=I.currentTarget;I.invalidateTabbables&&I.invalidateTabbables()},
createCacheKey:function(I,y){return _.l("web_popup_cache_key_killswitch")?y?I+"#"+y:I:y?"#"+y:I},
openSheet:function(I,y,D){var F=I==null?void 0:I.openPopupActionCommand;if(!F&&(I==null?0:I.viewModel)){if(I.sheetPosition)a:switch(I.sheetPosition){case "SHEET_POSITION_RIGHT":F="OPEN_POPUP_POSITION_RIGHT";break a;default:F="OPEN_POPUP_POSITION_UNKNOWN"}else F=void 0;F={openPopupAction:{popup:{sheetViewModel:I.viewModel},popupType:"CONTEXTUAL_SHEET",position:F}}}if(F){var R;this.expandToFullWidth=(R=I==null?void 0:I.expandToFullWidth)!=null?R:!1;this.handleOpenPopupAction(F,y,D===void 0?y:D)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var I=this;return _.S(function(y){return y.return(I.handleGetOpenedPopupsAction_().filter(function(D){var F;return((F=D.openPopupAction)==null?void 0:F.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(I,y,D){if(_.l("web_dialog_utils_killswitch")){var F=I==null?void 0:I.openPopupActionCommand,R=(D==null?0:D.ariaLabel)?{accessibilityData:{accessibilityData:{label:D.ariaLabel}}}:void 0;!F&&(I==null?0:I.viewModel)&&(F={openPopupAction:Object.assign({},{popup:{dialogViewModel:I.viewModel},popupType:(D==null?0:D.isModal)?"MODAL":"DIALOG"},R&&R)});F&&this.handleOpenPopupAction(F,y)}else{if(R=I==null?void 0:I.viewModel){var O=D=D===void 0?{}:D;D=O.ariaLabel;R={popup:{dialogViewModel:R},
popupType:O.isModal?"MODAL":"DIALOG"};O={accessibilityData:{label:D}};D&&(R.accessibilityData=O);R={openPopupAction:R}}else R=void 0;if(R=(F=R)!=null?F:I==null?void 0:I.openPopupActionCommand)this.isAriaModal=_.l("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(R,y)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var I=this;return _.S(function(y){return y.return(I.handleGetOpenedPopupsAction_().filter(function(D){var F;return((F=D.openPopupAction)==null?void 0:F.popupType)==="DIALOG"}).length>0)})}}];var tfg;var Pun;var KMx=_.UI(["about:blank"]),Pe=function(){var I=_.k.apply(this,arguments)||this;I.isMuted=!1;I.pageLoadTimeoutId=void 0;I.enableA11yFocusFix=_.l("enable_a11y_focus_fix_for_mac_panel_on_desktop");I.moveFocusToContent=function(){I.iframe.focus()};
return I};
_.E(Pe,_.k);_.L=Pe.prototype;_.L.dataChanged=function(){var I=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var y=this.data.url,D=_.vP(y);_.l("enable_yt_ata_iframe_authuser")?(D=_.vP(y),_.Ok(this.iframe,Kro(D))):_.Ok(this.iframe,D);this.pageLoadTimeoutId=_.y9(_.Tr(),function(){return void I.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.YX({destination:window,iframe:this.iframe,origin:_.YWe(D.toString()),channelName:"ataiframe",onMessage:_.WHM(IPy,function(F){y5a(F.data)?(F=_.Va(F.data,1,_.Sg,_.xW()),F.length!==1?_.tq(Error("hm")):(F=F[0],F===3?(I.isMuted=!0,I.logStateChanged({adMuteRequested:!0})):F===1&&I.close())):_.tq(Error("im"))}),
onEstablished:function(){I.cancelPageLoadTimeout();I.logStateChanged({pageLoadSucceeded:!0})}})}};
_.L.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Tr().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.L.logStateChanged=function(I){var y;if((y=this.data)==null?0:y.trackingParams)I={adsClientData:{aboutThisAdData:I}},_.W4().stateChanged(this.data.trackingParams,I)};
_.L.close=function(){_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
_.L.handlesPopupClosed=function(I,y){var D=this,F,R;return _.S(function(O){if(O.nextAddress==1)return _.Pi("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.uj(D.hostElement,"on-about-this-ad-popup-closed",[D.isMuted,y]),O.jumpTo(0)):I&&U0C(I)?O.yield(rTa(I),4):(D.isMuted&&_.uj(D.hostElement,"yt-mute-ad-action",[D.is,D]),O.jumpTo(0));if(F=O.yieldResult){var w=R=new _.DV(F),v=D.isMuted;w.getOptions().includes("onAboutThisAdPopupClosed")?_.qzW(w,"onAboutThisAdPopupClosed",{isMuted:v,layoutId:y}):_.wv("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Cj(O)})};
_.L.onPopupClosed=function(I){var y=this,D,F;return _.S(function(R){D=_.Et(KMx);_.Ok(y.iframe,D);y.cancelPageLoadTimeout();if(!y.data)return R.jumpTo(0);y.ytRendererBehavior.markDirty();F=I.detail.context.openingElement;return R.yield(y.handlesPopupClosed(F,y.data.layoutId),0)})};
_.L.detached=function(){this.cancelPageLoadTimeout()};
_.L.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pe.prototype.onPopupClosed=Pe.prototype.onPopupClosed;Pe.prototype.dataChanged=Pe.prototype.dataChanged;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.W([_.a0("#iframe"),_.A("design:type",HTMLIFrameElement)],Pe.prototype,"iframe",void 0);_.W([_.M(),_.A("design:type",Object)],Pe.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pe.prototype,"dataChanged",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],Pe.prototype,"onPopupClosed",null);_.W([_.I6({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Pe);
_.a(Pe,"yt-about-this-ad-renderer",function(){if(Pun===void 0){var I=document.createElement("template");_.G(I,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;tfg===void 0&&(tfg=document.createElement("template"));var F=tfg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Pun=I}I=Pun;return I},{mode:2});var Uza;var rM0;var jea=function(I){var y=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.maxFileSizeMB=I;Object.setPrototypeOf(this,jea.prototype)};
_.E(jea,Error);var oPA=function(I,y){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=I;this.minHeight=y;Object.setPrototypeOf(this,oPA.prototype)};
_.E(oPA,Error);var NcC=function(I){this.requirements=I;this.JSC$22880_maxFileSize=I.maxFileSizeMB*1024*1024},hnZ=function(I,y){if(y.size>I.JSC$22880_maxFileSize)throw new jea(I.requirements.maxFileSizeMB);
};var xzo=function(I,y){this.canvas=I;this.imageEditorBuilder=y};
xzo.prototype.addEventListeners=function(I){var y=function(R){lRn(I,R)};
this.JSC$22886_mouseDownEvent=y;var D=function(R){uWo(I,R)};
this.JSC$22886_mouseMoveEvent=D;var F=function(){qOg(I)};
this.JSC$22886_mouseUpEvent=F;this.canvas.addEventListener("mousedown",y);this.canvas.addEventListener("mousemove",D);document.addEventListener("mouseup",F)};
xzo.prototype.removeEventListeners=function(){this.JSC$22886_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22886_mouseDownEvent);this.JSC$22886_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22886_mouseMoveEvent);this.JSC$22886_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22886_mouseUpEvent)};
var EPn=function(I,y){I.removeEventListeners();return new Promise(function(D){var F=new Image;F.crossOrigin="anonymous";F.onload=function(){var R=I.imageEditorBuilder(I.canvas,F);I.addEventListeners(R);D(R)};
F.src=y})},Kl=function(I,y,D,F,R,O,w,v){this.canvas=I;
this.image=y;this.requiredRatio=D;this.minImageCropDimension=F;this.minOutputImageResolution=R;this.component=O;this.styleFocusedCorner=v===void 0?!0:v;this.action=2;this.focusedCorner=this.resizeCorner=0;I=this.canvas.getContext("2d");if(!I)throw Error("jm");this.ctx=I;this.canvasMargin=w!=null?w:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;w=this.image;I=this.canvasInnerWidth/w.width;w.height*I>912&&(I=w.width/w.height*912/w.width);w=I;this.scaledImageWidth=this.canvas.width%2?
omZ(this.image.width*w):jLa(this.image.width*w);this.scaledImageHeight=Math.round(this.image.height*w);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22889_overlayMarginBottom=this.JSC$22889_overlayMarginTop=this.canvasMargin;this.JSC$22889_overlayMarginRight=this.JSC$22889_overlayMarginLeft=this.horizontalMargin;this.JSC$22889_overlayWidth=this.scaledImageWidth;this.JSC$22889_overlayHeight=this.scaledImageHeight;
I=this.image.width/this.image.height;I>this.requiredRatio?(this.JSC$22889_overlayWidth=this.canvas.width%2?omZ(this.scaledImageHeight*this.requiredRatio):jLa(this.scaledImageHeight*this.requiredRatio),this.JSC$22889_overlayMarginRight=this.JSC$22889_overlayMarginLeft=(this.canvas.width-this.JSC$22889_overlayWidth)/2):I<this.requiredRatio&&(this.JSC$22889_overlayHeight=this.canvas.height%2?omZ(this.scaledImageWidth/this.requiredRatio):jLa(this.scaledImageWidth/this.requiredRatio),this.JSC$22889_overlayMarginBottom=
this.JSC$22889_overlayMarginTop=(this.canvas.height-this.JSC$22889_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*w,this.scaledImageWidth);GaZ(this)};
Kl.prototype.getContext=function(){return this.ctx};
var lRn=function(I,y){y={x:Math.round(y.pageX-I.canvas.getBoundingClientRect().left),y:Math.round(y.pageY-I.canvas.getBoundingClientRect().top)};I.dragStart=y;XGZ(I,y)!==0?(I.action=1,Qeg(I,y),I.resizeCorner=XGZ(I,y)):y.x>I.JSC$22889_overlayMarginLeft&&y.x<I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth&&y.y>I.JSC$22889_overlayMarginTop&&y.y<I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight&&(I.action=0)},YOa=function(I,y){switch(y){case 1:return{x:I.JSC$22889_overlayMarginLeft,
y:I.JSC$22889_overlayMarginTop};case 2:return{x:I.JSC$22889_overlayMarginLeft,y:I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight};case 3:return{x:I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth,y:I.JSC$22889_overlayMarginTop};case 4:return{x:I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth,y:I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight};default:throw Error("km");}},nPZ=function(I,y){if(I.focusedCorner!==0){I.dragStart=YOa(I,I.focusedCorner);
I.action=1;I.resizeCorner=I.focusedCorner;var D=I.dragStart.x,F=I.dragStart.y;switch(y){case 0:I.focusedCorner===1||I.focusedCorner===4?(D-=10,F-=10):(D-=10,F+=10);break;case 1:I.focusedCorner===1||I.focusedCorner===4?(D+=10,F+=10):(D+=10,F-=10);break;case 2:D=I.focusedCorner===1||I.focusedCorner===4?D-10:D+10;F-=10;break;case 3:D=I.focusedCorner===1||I.focusedCorner===4?D+10:D-10;F+=10;break;default:throw Error("lm");}fRs(I,{x:D,y:F});GaZ(I);I.action=2;I.dragStart=void 0}},uWo=function(I,y){y={x:Math.round(y.pageX-
I.canvas.getBoundingClientRect().left),
y:Math.round(y.pageY-I.canvas.getBoundingClientRect().top)};Qeg(I,y);switch(I.action){case 1:fRs(I,y);break;case 0:I.dragStart&&(I.JSC$22889_overlayMarginLeft=Math.max(I.horizontalMargin,Math.min(I.JSC$22889_overlayMarginLeft-(I.dragStart.x-y.x),I.horizontalMargin+I.scaledImageWidth-I.JSC$22889_overlayWidth)),I.JSC$22889_overlayMarginRight=I.canvas.width-I.JSC$22889_overlayMarginLeft-I.JSC$22889_overlayWidth,I.JSC$22889_overlayMarginTop=Math.max(I.canvasMargin,Math.min(I.JSC$22889_overlayMarginTop-
(I.dragStart.y-y.y),I.scaledImageHeight-I.JSC$22889_overlayHeight+I.canvasMargin)),I.JSC$22889_overlayMarginBottom=I.canvas.height-(I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight));break;default:return}GaZ(I);I.dragStart=y},qOg=function(I){I.action=2;
I.dragStart=void 0;document.body.style.cursor="auto"},Qeg=function(I,y){switch(XGZ(I,y)){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:I.action!==1&&(document.body.style.cursor="auto")}},XGZ=function(I,y){var D=I.JSC$22889_overlayMarginLeft-5,F=I.JSC$22889_overlayMarginTop-5,R=I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth-5;
I=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-5;return pG0(y,{x:D,y:F})?1:pG0(y,{x:R,y:F})?3:pG0(y,{x:D,y:I})?2:pG0(y,{x:R,y:I})?4:0},pG0=function(I,y){return I.x>=y.x&&I.x<=y.x+10&&I.y>=y.y&&I.y<=y.y+10},fRs=function(I,y){if(I.dragStart)switch(I.resizeCorner){case 2:Math.abs((I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth-y.x)/(y.y-I.JSC$22889_overlayMarginTop))>=I.requiredRatio?mzq(I,y.x):Mfg(I,y.y);
break;case 1:Math.abs((I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth-y.x)/(I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-y.y))>=I.requiredRatio?znS(I,y.x):Mfg(I,y.y);break;case 4:Math.abs((y.x-I.JSC$22889_overlayMarginLeft)/(y.y-I.JSC$22889_overlayMarginTop))>=I.requiredRatio?mzq(I,y.x):kaV(I,y.y);break;case 3:Math.abs((y.x-I.JSC$22889_overlayMarginLeft)/(I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-y.y))>=I.requiredRatio?znS(I,y.x):kaV(I,y.y);break;default:throw Error("mm");
}},mzq=function(I,y){var D=I.JSC$22889_overlayMarginTop;
I.JSC$22889_overlayMarginBottom=dzV(I,y);I.JSC$22889_overlayHeight=I.canvas.height-I.JSC$22889_overlayMarginBottom-D;I.JSC$22889_overlayWidth=Math.round(I.JSC$22889_overlayHeight*I.requiredRatio);aRH(I)},znS=function(I,y){var D=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight;
I.JSC$22889_overlayMarginTop=dzV(I,y);I.JSC$22889_overlayHeight=D-I.JSC$22889_overlayMarginTop;I.JSC$22889_overlayWidth=Math.round(I.JSC$22889_overlayHeight*I.requiredRatio);aRH(I)},aRH=function(I){switch(I.resizeCorner){case 2:case 1:I.JSC$22889_overlayMarginLeft=I.canvas.width-I.JSC$22889_overlayMarginRight-I.JSC$22889_overlayWidth;
break;case 4:case 3:I.JSC$22889_overlayMarginRight=I.canvas.width-I.JSC$22889_overlayMarginLeft-I.JSC$22889_overlayWidth;break;default:throw Error("mm");}},Mfg=function(I,y){var D=I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth;
I.JSC$22889_overlayMarginLeft=cM0(I,y);I.JSC$22889_overlayWidth=D-I.JSC$22889_overlayMarginLeft;I.JSC$22889_overlayHeight=Math.round(I.JSC$22889_overlayWidth/I.requiredRatio);WM$(I)},kaV=function(I,y){var D=I.JSC$22889_overlayMarginLeft;
I.JSC$22889_overlayMarginRight=cM0(I,y);I.JSC$22889_overlayWidth=I.canvas.width-I.JSC$22889_overlayMarginRight-D;I.JSC$22889_overlayHeight=Math.round(I.JSC$22889_overlayWidth/I.requiredRatio);WM$(I)},WM$=function(I){switch(I.resizeCorner){case 2:case 4:I.JSC$22889_overlayMarginBottom=I.canvas.height-I.JSC$22889_overlayMarginTop-I.JSC$22889_overlayHeight;
break;case 1:case 3:I.JSC$22889_overlayMarginTop=I.canvas.height-I.JSC$22889_overlayMarginBottom-I.JSC$22889_overlayHeight;break;default:throw Error("mm");}},dzV=function(I,y){switch(I.resizeCorner){case 2:y=I.canvas.height-(I.JSC$22889_overlayMarginTop+Cux(I,y));
break;case 4:y=I.canvas.height-(I.JSC$22889_overlayMarginTop+Bc0(I,y));break;case 1:y=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-Cux(I,y);break;case 3:y=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-Bc0(I,y);break;default:throw Error("mm");}return Math.max(y,I.canvasMargin)},Cux=function(I,y){y=I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth-Math.max(y,I.horizontalMargin);
y=y<0?I.JSC$22889_overlayWidth:Math.max(y,I.minOverlayWidth);return Math.round(y/I.requiredRatio)},Bc0=function(I,y){y=I.canvas.width-Math.max(I.canvas.width-y,I.horizontalMargin)-I.JSC$22889_overlayMarginLeft;
y=y<0?I.JSC$22889_overlayWidth:Math.max(y,I.minOverlayWidth);return Math.round(y/I.requiredRatio)},cM0=function(I,y){switch(I.resizeCorner){case 2:y=I.canvas.width-I.JSC$22889_overlayMarginRight-i_q(I,y);
break;case 4:y=I.canvas.width-I.JSC$22889_overlayMarginLeft-i_q(I,y);break;case 1:y=I.canvas.width-I.JSC$22889_overlayMarginRight-AMa(I,y);break;case 3:y=I.canvas.width-I.JSC$22889_overlayMarginLeft-AMa(I,y);break;default:throw Error("mm");}return Math.max(y,I.horizontalMargin)},i_q=function(I,y){y=I.canvas.height-Math.max(I.canvas.height-y,I.canvasMargin)-I.JSC$22889_overlayMarginTop;
return y<0?I.JSC$22889_overlayWidth:Math.max(Math.round(y*I.requiredRatio),I.minOverlayWidth)},AMa=function(I,y){y=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-Math.max(y,I.canvasMargin);
return y<0?I.JSC$22889_overlayWidth:Math.max(Math.round(y*I.requiredRatio),I.minOverlayWidth)},GaZ=function(I){I.ctx.clearRect(0,0,I.canvas.width,I.canvas.height);
I.ctx.drawImage(I.image,0,0,I.image.width,I.image.height,I.horizontalMargin,I.canvasMargin,I.canvas.width-2*I.horizontalMargin,I.scaledImageHeight);I.ctx.fillStyle="rgba(0, 0, 0, 0.7)";I.ctx.fillRect(I.horizontalMargin,I.JSC$22889_overlayMarginTop,I.JSC$22889_overlayMarginLeft-I.horizontalMargin,I.JSC$22889_overlayHeight);I.ctx.fillRect(I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth,I.JSC$22889_overlayMarginTop,I.JSC$22889_overlayMarginRight-I.horizontalMargin,I.JSC$22889_overlayHeight);I.ctx.fillRect(I.horizontalMargin,
I.canvasMargin,I.scaledImageWidth,I.JSC$22889_overlayMarginTop-I.canvasMargin);I.ctx.fillRect(I.horizontalMargin,I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight,I.scaledImageWidth,I.JSC$22889_overlayMarginBottom-I.canvasMargin);I.drawOverlay();I.component&&_.lj(I.component,"image-updated")};
Kl.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22889_overlayMarginLeft,this.JSC$22889_overlayMarginTop,this.JSC$22889_overlayWidth,this.JSC$22889_overlayHeight);$zs(this)};
var $zs=function(I){var y=I.JSC$22889_overlayMarginLeft-5,D=I.JSC$22889_overlayMarginTop-5,F=I.JSC$22889_overlayMarginLeft+I.JSC$22889_overlayWidth-5,R=I.JSC$22889_overlayMarginTop+I.JSC$22889_overlayHeight-5;I.ctx.fillStyle="#FFF";I.ctx.fillRect(y,D,10,10);I.ctx.strokeRect(y,D,10,10);I.ctx.fillRect(F,D,10,10);I.ctx.strokeRect(F,D,10,10);I.ctx.fillRect(y,R,10,10);I.ctx.strokeRect(y,R,10,10);I.ctx.fillRect(F,R,10,10);I.ctx.strokeRect(F,R,10,10);if(I.focusedCorner!==0&&I.styleFocusedCorner){I.ctx.lineWidth=
4;I.ctx.strokeStyle="#3EA6FF";switch(I.focusedCorner){case 1:--y;--D;break;case 2:--y;D=R-1;break;case 3:y=F-1;--D;break;case 4:y=F-1;D=R-1;break;default:return}I.ctx.strokeRect(y,D,12,12)}};
Kl.prototype.crop=function(I,y){y=y===void 0?!0:y;var D=this.image.width/this.scaledImageWidth,F=document.createElement("canvas"),R=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],O=this.JSC$22889_overlayWidth*D,w=this.JSC$22889_overlayHeight*D;F.width=Math.max(O,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);F.height=Math.max(w,R);I&&(F.width=Math.min(F.width,F.height),F.height=Math.min(F.width,F.height));
I=F.getContext("2d");if(!I)throw Error("am");R=(this.JSC$22889_overlayMarginLeft-this.horizontalMargin)*D;D*=this.JSC$22889_overlayMarginTop-this.canvasMargin;y||(I.fillStyle="white",I.fillRect(0,0,F.width,F.height));I.drawImage(this.image,R,D,O,w,0,0,F.width,F.height);return F};var b_n=function(I,y,D,F,R){Kl.call(this,I,y,D,F,void 0,R,8,!1)};
_.E(b_n,Kl);b_n.prototype.drawOverlay=function(){var I=this.getContext(),y=this.JSC$22889_overlayWidth,D=this.JSC$22889_overlayHeight,F=this.JSC$22889_overlayMarginTop,R=this.JSC$22889_overlayMarginLeft;I.lineWidth=2;I.strokeStyle="#3EA6FF";I.beginPath();I.arc(R+y/2,F+D/2,y/2,0,2*Math.PI);I.stroke();I.strokeRect(R,F,y,D);$zs(this)};
var H_Z={maxFileSizeMB:15,minWidth:98,minHeight:98},enV=["image/png","image/jpeg","image/gif"],Ua=function(){var I=_.k.apply(this,arguments)||this;I.fileSelectorFocusListener=null;I.errorMessage=null;I.isLoading=!0;I.hideContainer=!0;I.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return I};
_.E(Ua,_.k);_.L=Ua.prototype;_.L.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.L.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.L.computePlaylistThumbnail=function(I){return I==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.L.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.uj(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.L.setErrorState=function(I){this.resetErrorState();I&&(this.errorMessage=I)};
_.L.showPopup=function(){var I=this;this.hideContainer=!1;_.y9(_.w2,function(){_.lj(I.hostElement,"yt-refit")});
this.isLoading=!1};
_.L.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.L.closePopup=function(){this.resetFileSelector();_.uj(this.hostElement,"yt-close-popup-action",[this.is])};
_.L.onCancelTap=function(){this.isPlaylistThumbnail||_.uj(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.L.openFileSelector=function(){var I=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.y9(_.w2,function(){setTimeout(function(){if(!I.fileSelector.files||I.fileSelector.files.length===0)I.onCancelTap();I.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(y){y instanceof Error?_.vu(y):_.Sb(new _.g6(JSON.stringify(y)))}};
_.L.handleFileSelection=function(){var I=this,y,D,F,R,O,w;return _.S(function(v){switch(v.nextAddress){case 1:_.nj(v,2);if(!I.fileSelector.files||!I.imageEditorCanvas)return I.onCancelTap(),v.return();y=I.fileSelector.files[0];hnZ(I.imageChecker,y);_.nj(v,4);return v.yield(krC(y),6);case 6:I.mimeType=v.yieldResult;_.lZ(v,5,2);break;case 4:_.dj(v,2),_.uj(I.hostElement,"yt-image-selection-error-action",[(D=I.data)==null?void 0:D.genericImageLoadErrorMessage]),I.onCancelTap();case 5:F=new FileReader;
F.addEventListener("load",function(){var P,K;return _.S(function(r){if(r.nextAddress==1){if(!F.result)return _.tq(Error("cm")),r.return();P=F.result;K=new Image;K.src=P;K.onload=function(){try{var N=I.imageChecker;if(K.width<N.requirements.minWidth||K.height<N.requirements.minHeight)throw new oPA(N.requirements.minWidth,N.requirements.minHeight);}catch(x){if(x instanceof oPA){var h;_.uj(I.hostElement,"yt-image-selection-error-action",[(h=I.data)==null?void 0:h.imageDimensionErrorMessage]);I.logImageDimensionErrorVe()}else x instanceof
Error?_.vu(x):(N=new _.g6(JSON.stringify(x)),_.vu(N));I.onCancelTap()}I.showPopup()};
K.onerror=function(){var N;_.uj(I.hostElement,"yt-image-selection-error-action",[(N=I.data)==null?void 0:N.genericImageLoadErrorMessage]);I.onCancelTap()};
return r.yield(EPn(I.imageEditorCanvas,P),2)}I.imageEditor=r.yieldResult;I.updatePositionOfAllCorners();I.addEventListeners(I.imageEditor);_.Cj(r)})},!1);
F.readAsDataURL(y);_.lZ(v,0);break;case 2:R=_.dj(v),R instanceof jea?_.uj(I.hostElement,"yt-image-selection-error-action",[(O=I.data)==null?void 0:O.imageSizeErrorMessage]):(R instanceof Error?_.vu(R):_.Sb(new _.g6(JSON.stringify(R))),_.uj(I.hostElement,"yt-image-selection-error-action",[(w=I.data)==null?void 0:w.genericImageLoadErrorMessage])),I.onCancelTap(),_.Cj(v)}})};
_.L.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var I=_.c4(_.W4(),{veType:232707,visualElement:_.QM(232707)});I&&(I={visualElement:I},_.a6().reportShown(I))}};
_.L.handleImageSelectionErrorAction=function(I){this.isPlaylistThumbnail&&_.b7S(this.hostElement,I)};
_.L.convertToImageFormatBundle=function(I){var y=this,D,F,R;return _.S(function(O){switch(O.nextAddress){case 1:return D=I.toDataURL(y.outputMimeType,1),O.yield(dv8(D),2);case 2:F=O.yieldResult;_.nj(O,3);hnZ(y.imageChecker,F);_.lZ(O,4);break;case 3:R=_.dj(O);if(!(R instanceof jea))throw R;_.tq(new _.g6("Output size is bigger than input size for image",y.mimeType,y.outputMimeType,F.size));D=I.toDataURL("image/jpeg",.95);return O.yield(dv8(D),6);case 6:F=O.yieldResult;case 4:return O.return({dataUrl:D,
imageFile:F})}})};
_.L.handleUploadImageToScottyCommand=function(I){var y=this,D,F,R,O,w,v,P,K,r,N;return _.S(function(h){switch(h.nextAddress){case 1:if(!y.imageEditor||!_.u(I,miQ))return h.return();D=_.u(I,miQ).scottyUploadUrl;if(!D){var x=new _.g6("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.vu(x);return h.return()}_.nj(h,2);y.setLoadingState();F=y.imageEditor.crop(!1,!1);return h.yield(y.convertToImageFormatBundle(F),4);case 4:return R=h.yieldResult,h.yield(Mze(R.imageFile,D),5);
case 5:O=h.yieldResult;((w=y.data)==null?0:w.onUploadEndpoint)?(v=y.buildUploadServiceEndpoint(O),y.ytComponentBehavior.resolveCommand(v),P=_.u(v,_.Lb),((K=P)==null?0:K.params)?y.closePopup():y.resetFileSelector()):(_.uj(y.hostElement,"yt-image-updated-action",[R.dataUrl,O]),y.closePopup());_.lZ(h,0);break;case 2:r=_.dj(h),y.setErrorState((N=y.data)==null?void 0:N.uploadErrorMessage),r instanceof Error?_.vu(r):(x=new _.g6(JSON.stringify(r)),_.vu(x)),_.Cj(h)}})};
_.L.buildUploadServiceEndpoint=function(I){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",I),this.data.onUploadEndpoint):null};
_.L.dataChanged=function(){var I=this,y;return _.S(function(D){if(D.nextAddress==1){if(!I.data||!I.canvasElement)return D.return();I.data.imageRatio&&I.data.minImageCropWidth||_.Sb(new _.g6("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));y=function(F,R){return I.data.imageType==="IMAGE_TYPE_AVATAR"?new b_n(F,R,I.data.imageRatio,[I.data.minImageCropWidth,I.data.minImageCropWidth/I.data.imageRatio],I.hostElement):new Kl(F,R,I.data.imageRatio,[I.data.minImageCropWidth,
I.data.minImageCropWidth/I.data.imageRatio],void 0,I.hostElement,8,!1)};
I.imageEditorCanvas=new xzo(I.canvasElement,y);return I.data.url?D.yield(EPn(I.imageEditorCanvas,I.data.url),3):(I.hideContainer=!0,I.openFileSelector(),D.jumpTo(0))}I.imageEditor=D.yieldResult;I.showPopup();I.addEventListeners(I.imageEditor);_.Cj(D)})};
_.L.addEventListeners=function(I){this.removeEventListeners();var y=function(R){lRn(I,R)};
this.JSC$22897_mouseDownEvent=y;var D=function(R){uWo(I,R)};
this.JSC$22897_mouseMoveEvent=D;var F=function(){qOg(I)};
this.JSC$22897_mouseUpEvent=F;this.topLeftCorner.addEventListener("mousedown",y);this.topLeftCorner.addEventListener("mousemove",D);this.topLeftCorner.addEventListener("mouseup",F);this.topRightCorner.addEventListener("mousedown",y);this.topRightCorner.addEventListener("mousemove",D);this.topRightCorner.addEventListener("mouseup",F);this.bottomLeftCorner.addEventListener("mousedown",y);this.bottomLeftCorner.addEventListener("mousemove",D);this.bottomLeftCorner.addEventListener("mouseup",F);this.bottomRightCorner.addEventListener("mousedown",
y);this.bottomRightCorner.addEventListener("mousemove",D);this.bottomRightCorner.addEventListener("mouseup",F)};
_.L.removeEventListeners=function(){this.JSC$22897_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22897_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22897_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22897_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22897_mouseDownEvent));this.JSC$22897_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22897_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22897_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22897_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22897_mouseMoveEvent));this.JSC$22897_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22897_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22897_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22897_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22897_mouseUpEvent))};
_.L.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var I=document.activeElement;I&&I.shadowRoot&&I.shadowRoot.activeElement;)I=I.shadowRoot.activeElement;switch(I){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};
_.L.updatePositionOfCorner=function(I,y){var D=I.y-y.offsetHeight/2+4;y.style.left=I.x-y.offsetWidth/2+16+"px";y.style.top=D+"px"};
_.L.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var I=_.J([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),y=I.next();!y.done;y=I.next()){y=y.value;var D=YOa(this.imageEditor,y.corner);this.updatePositionOfCorner(D,y.div)}};
_.L.onLeft=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(nPZ(this.imageEditor,0),this.updatePositionOfAllCorners(),I.preventDefault())};
_.L.onRight=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(nPZ(this.imageEditor,1),this.updatePositionOfAllCorners(),I.preventDefault())};
_.L.onUp=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(nPZ(this.imageEditor,2),this.updatePositionOfAllCorners(),I.preventDefault())};
_.L.onDown=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(nPZ(this.imageEditor,3),this.updatePositionOfAllCorners(),I.preventDefault())};
_.L.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.mD.Object.defineProperties(Ua.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&enV.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var I,y,D;((y=this.data)==null?0:y.imageRatio)&&((D=this.data)==null?0:D.minImageCropWidth)?I={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:I=H_Z;return new NcC(I)}}});
Ua.prototype.updatePositionOfAllCorners=Ua.prototype.updatePositionOfAllCorners;Ua.prototype.dataChanged=Ua.prototype.dataChanged;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Ua.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.W([_.Q(_.CP),_.A("design:type",Object)],Ua.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.a0("#canvas"),_.A("design:type",HTMLCanvasElement)],Ua.prototype,"canvasElement",void 0);_.W([_.a0("#file-selector"),_.A("design:type",HTMLInputElement)],Ua.prototype,"fileSelector",void 0);_.W([_.a0("#top-left-corner"),_.A("design:type",HTMLDivElement)],Ua.prototype,"topLeftCorner",void 0);_.W([_.a0("#top-right-corner"),_.A("design:type",HTMLDivElement)],Ua.prototype,"topRightCorner",void 0);
_.W([_.a0("#bottom-left-corner"),_.A("design:type",HTMLDivElement)],Ua.prototype,"bottomLeftCorner",void 0);_.W([_.a0("#bottom-right-corner"),_.A("design:type",HTMLDivElement)],Ua.prototype,"bottomRightCorner",void 0);_.W([_.M(),_.A("design:type",Object)],Ua.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],Ua.prototype,"errorMessage",void 0);_.W([_.M(),_.A("design:type",Object)],Ua.prototype,"isLoading",void 0);_.W([_.M(),_.A("design:type",Object)],Ua.prototype,"hideContainer",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.A("design:type",Boolean)],Ua.prototype,"isPlaylistThumbnail",void 0);_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Ua.prototype,"dataChanged",null);_.W([_.z4("image-updated"),_.z4("yt-refit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ua.prototype,"updatePositionOfAllCorners",null);
_.W([_.I6({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Ua);
_.a(Ua,"yt-image-editor-renderer",function(){if(rM0===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Uza===void 0&&(Uza=document.createElement("template"));var F=Uza;D.call(y,F.content.cloneNode(!0),I.content.firstChild);rM0=I}I=rM0;return I},{mode:2});var TcV;var se0;var r$=function(){return _.k.apply(this,arguments)||this};
_.E(r$,_.k);r$.prototype.updateMinutesFromBinding=function(I){this.handleMinutesChanged&&this.handleMinutesChanged(I)};
r$.prototype.updateSecondsFromBinding=function(I){this.handleSecondsChanged&&this.handleSecondsChanged(I)};
r$.prototype.updateDescriptionFromBinding=function(I){this.handleDescriptionChanged&&this.handleDescriptionChanged(I)};
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],r$.prototype,"data",void 0);_.W([_.M(),_.A("design:type",String)],r$.prototype,"minutes",void 0);_.W([_.M(),_.A("design:type",String)],r$.prototype,"seconds",void 0);_.W([_.M(),_.A("design:type",String)],r$.prototype,"description",void 0);_.W([_.M(),_.A("design:type",Function)],r$.prototype,"handleMinutesChanged",void 0);
_.W([_.M(),_.A("design:type",Function)],r$.prototype,"handleSecondsChanged",void 0);_.W([_.M(),_.A("design:type",Function)],r$.prototype,"handleDescriptionChanged",void 0);_.W([_.M(),_.A("design:type",Number)],r$.prototype,"characterLimit",void 0);_.W([_.M(),_.A("design:type",Number)],r$.prototype,"textNumRows",void 0);_.W([_.I6({is:"yt-report-details-form-content",disableElementRegistration:!0})],r$);
_.a(r$,"yt-report-details-form-content",function(){if(se0===void 0){var I=document.createElement("template");_.G(I,'\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>');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;TcV===void 0&&(TcV=document.createElement("template"));var F=TcV;D.call(y,F.content.cloneNode(!0),I.content.firstChild);se0=I}I=se0;return I},{mode:2});var VfV;var Z_n;var jO=function(){var I=_.k.apply(this,arguments)||this;I.updateMinutesFromBinding=function(y){I.minutes=y.detail.value};
I.updateSecondsFromBinding=function(y){I.seconds=y.detail.value};
I.updateDescriptionFromBinding=function(y){I.description=y.detail.value};
return I};
_.E(jO,_.k);_.L=jO.prototype;_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.L.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"}}}};
_.L.ready=function(){_.XB(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.L.onSubmitYtAction=function(I){var y=I.detail;y.actionName==="yt-service-request"&&(y=y.args[1],y.flagEndpoint&&(I.stopPropagation(),this.refireAction(y)))};
_.L.refireAction=function(I){var y={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(y.vss_id=this.vssId);_.E$(this.hostElement,[I,y]);this.submitDisabled=!0};
_.L.dataChanged=function(){var I=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var y=_.NY();y&&y.getPlayerPromise().then(function(D){var F=D.getOption("cc","track")||D.getOption("captions","track");F&&(I.vssId=F.vss_id);D=D.getCurrentTime();I.minutes=Math.floor(D/60).toString();I.seconds=(Math.floor(D)%60).toString()})};
_.L.updateSubmitButtonState=function(){var I;((I=this.data)==null?0:I.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==="")};
_.L.onYtServiceRequestCompleted=function(){_.uj(this.hostElement,"yt-close-popup-action")};
_.L.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.mD.Object.defineProperties(jO.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.textNumRows)||4}}});
jO.prototype.onYtServiceRequestError=jO.prototype.onYtServiceRequestError;jO.prototype.onYtServiceRequestCompleted=jO.prototype.onYtServiceRequestCompleted;jO.prototype.updateSubmitButtonState=jO.prototype.updateSubmitButtonState;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);
_.W([_.M({observer:"dataChanged"}),_.A("design:type",Object)],jO.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Boolean)],jO.prototype,"submitDisabled",void 0);_.W([_.M(),_.A("design:type",String)],jO.prototype,"minutes",void 0);_.W([_.M(),_.A("design:type",String)],jO.prototype,"seconds",void 0);_.W([_.M(),_.A("design:type",String)],jO.prototype,"description",void 0);_.W([_.M(),_.A("design:type",String)],jO.prototype,"vssId",void 0);
_.W([_.M({value:_.Pi("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],jO.prototype,"isMusic",void 0);_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],jO.prototype,"characterLimit",null);_.W([_.Y("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],jO.prototype,"textNumRows",null);
_.W([_.Bp("minutes","seconds","description","submitDisabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jO.prototype,"updateSubmitButtonState",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jO.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jO.prototype,"onYtServiceRequestError",null);_.W([_.I6({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],jO);
_.a(jO,"yt-report-details-form-renderer",function(){if(Z_n===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;VfV===void 0&&(VfV=document.createElement("template"));var F=VfV;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Z_n=I}I=Z_n;return I});var gPa;var IQ0;var yeV;var D8s;var oN=function(){return _.k.apply(this,arguments)||this};
_.E(oN,_.k);
oN.prototype.onCheckedChanged_=function(){if(this.data){var I=_.XB(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.uj(this.hostElement,"yt-additional-detail-checkbox-update",[I]):this.data.identifier==="yt-hide-user-checkbox"?_.uj(this.hostElement,"yt-hide-user-checkbox-update",[I]):I&&this.data.enableCommand?_.uj(this.hostElement,"yt-modify-report-form-command",[_.u(this.data.enableCommand,yhe)]):!I&&this.data.disableCommand&&_.uj(this.hostElement,
"yt-modify-report-form-command",[_.u(this.data.enableCommand,yhe)])}};
oN.prototype.onLabelTap_=function(I){I.target.tagName!="A"&&(_.XB(this.hostElement).querySelector("#checkbox").checked=!_.XB(this.hostElement).querySelector("#checkbox").checked)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],oN.prototype,"data",void 0);_.W([_.I6({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],oN);
_.a(oN,"yt-boolean-form-field-v2-renderer",function(){if(D8s===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;yeV===void 0&&(yeV=document.createElement("template"));var F=yeV;D.call(y,F.content.cloneNode(!0),I.content.firstChild);D8s=I}I=D8s;return I});var NB=function(){var I=_.k.apply(this,arguments)||this;I.canShowAdditionalDetailCheckbox=!1;I.canShowCheckbox=!1;I.keepDropdownFocusedAfterSelection=!0;return I};
_.E(NB,_.k);NB.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}}}}};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],NB.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],NB.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.M(),_.A("design:type",Object)],NB.prototype,"canShowCheckbox",void 0);_.W([_.M(),_.A("design:type",Object)],NB.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.I6({is:"yt-report-form-modal-content",disableElementRegistration:!0})],NB);
_.a(NB,"yt-report-form-modal-content",function(){if(IQ0===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;gPa===void 0&&(gPa=document.createElement("template"));var F=gPa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);IQ0=I}I=IQ0;return I},{mode:2});var F1x;var RZj;var h1=function(){var I=_.k.apply(this,arguments)||this;I.submitting=!1;I.submitButtonDisabled=!0;I.command=null;I.canShowCheckbox=!1;I.canShowAdditionalDetailCheckbox=!1;I.canShowNextButton=!1;I.additionalDetailCheckboxChecked=!1;I.refitJob=0;I.keepDropdownFocusedAfterSelection=!0;I.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 I};
_.E(h1,_.k);_.L=h1.prototype;_.L.created=function(){this.refitJob=0};
_.L.attached=function(){this.JSC$22920_scroller&&(this.JSC$22920_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22920_scroller.attached&&typeof this.JSC$22920_scroller.attached==="function"&&this.JSC$22920_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.dataChanged=function(I){I&&(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,I.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),I.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.L.onYtPopupOpened=function(){var I=_.NY();I&&I.getPlayerPromise().then(function(y){y.pauseVideo()})};
_.L.onYtNavigate=function(I){_.u(I.detail.endpoint,_.Fzc)&&(I.stopPropagation(),this.hideReportForm=!0)};
_.L.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.L.onYtServiceRequestCompleted=function(I,y){var D=y.actions;if(D){if(D.length===1&&_.u(D[0],_.Q_)){var F;D=((F=_.u(D[0],_.Q_))==null?void 0:F.commands)||[]}F=0;for(var R=D.length;F<R;F++)_.u(D[F],_.Hc)&&(I.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(D[F]))}if(y.data&&(I=this.get("feedbackResponses",y.data)))for(y=0;y<I.length;y++)if(I[y].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.L.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.L._onDescendantIronResize=function(I){I.stopPropagation();return!1};
_.L.handleReportFormEndpointUpdateAction=function(I){if(I.submitEndpoint){var y=this.command=I.submitEndpoint;y=_.u(y,_.ywM);if(y==null?0:y.additionalDetailCheckboxChecked)y.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else I.submitNavigationEndpoint?(this.command=I.submitNavigationEndpoint,this.toggleSubmitButton(!1)):I.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:I.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;I.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",I));this.refit()};
_.L.handleConfirmDialogCloseAction=function(I){I.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.L.submitButtonDisabledChanged=function(){var I=this.hostElement.parentElement;I&&I.invalidateTabbables&&I.invalidateTabbables()};
_.L.handleModifyReportFormCommand=function(I){I=this.get("action",I);I==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:I==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:I==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:I==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:I==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:I==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.L.updateDialogStyling=function(){var I,y,D,F,R,O=((R=(I=this.data)==null?void 0:(y=I.optionsSupportedRenderers)==null?void 0:(D=y.optionsRenderer)==null?void 0:(F=D.items)==null?void 0:F.length)!=null?R:0)<=2?0:240;_.pg(this.hostElement,{"--yt-report-form-modal-renderer-min-width":O+"px"})};
_.L.toggleSubmitButton=function(I){this.submitButtonDisabled=!I;this.submitButtonDisabled=I};
_.L.computeSubmitButtonData=function(I,y){var D={};_.u(y,_.Fzc)?D.navigationEndpoint=y:D.command=y||void 0;I&&I.buttonRenderer&&_.e$.extend(D,I.buttonRenderer);return D};
_.L.computeNextButtonData=function(I,y){var D={};if(!I||!I.buttonRenderer)return D;_.e$.extend(D,I.buttonRenderer);if(!y)return D;if(_.u(y,_.Fzc))D.navigationEndpoint=jce(y);else if(D.command=jce(y),I=_.u(D.command,_.ywM))I.legalCheckboxChecked=!0;return D};
_.L.computeShowNextButton=function(I,y,D){return!!I&&y&&D};
_.L.refit=function(){var I=this;this.refitJob||(this.refitJob=_.w2.addLowPriorityJob(function(){_.lj(I.hostElement,"yt-refit");I.refitJob=0}))};
_.L.handleAdditionalDetailCheckboxUpdateAction=function(I){this.additionalDetailCheckboxChecked=I;_.u(this.command,_.ywM).additionalDetailCheckboxChecked=I};
_.mD.Object.defineProperties(h1,{template:{configurable:!0,enumerable:!0,get:function(){if(RZj===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;F1x===void 0&&(F1x=document.createElement("template"));var F=F1x;D.call(y,F.content.cloneNode(!0),I.content.firstChild);RZj=I}I=RZj;return I}}});
h1.prototype.onYtServiceRequestError=h1.prototype.onYtServiceRequestError;h1.prototype.onYtServiceRequestCompleted=h1.prototype.onYtServiceRequestCompleted;h1.prototype.onYtServiceRequestSent=h1.prototype.onYtServiceRequestSent;h1.prototype.onYtNavigate=h1.prototype.onYtNavigate;h1.prototype.onYtPopupOpened=h1.prototype.onYtPopupOpened;_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],h1.prototype,"openPopupBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],h1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],h1.prototype,"eventForwardingBehavior",void 0);_.W([_.Q(_.sD),_.A("design:type",Object)],h1.prototype,"ironResizableBehavior",void 0);_.W([_.M({observer:"dataChanged"}),_.A("design:type",Object)],h1.prototype,"data",void 0);
_.W([_.M(),_.A("design:type",Object)],h1.prototype,"submitting",void 0);_.W([_.M({observer:"submitButtonDisabledChanged"}),_.A("design:type",Object)],h1.prototype,"submitButtonDisabled",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"command",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],h1.prototype,"hideReportForm",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"canShowCheckbox",void 0);
_.W([_.M(),_.A("design:type",Object)],h1.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"canShowNextButton",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"additionalDetailCheckboxChecked",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"refitJob",void 0);_.W([_.M(),_.A("design:type",Object)],h1.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.a0("#scroller"),_.A("design:type",Object)],h1.prototype,"JSC$22920_scroller",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],h1.prototype,"onYtPopupOpened",null);_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],h1.prototype,"onYtNavigate",null);
_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],h1.prototype,"onYtServiceRequestSent",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],h1.prototype,"onYtServiceRequestCompleted",null);
_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],h1.prototype,"onYtServiceRequestError",null);_.W([_.I6({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],h1);var OaS;var L1q;var xd=function(){return _.k.apply(this,arguments)||this};
_.E(xd,_.k);_.L=xd.prototype;_.L.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.L.onVisible=function(){var I,y;(y=_.nR().resolve(_.fR(_.uY)))==null||y.enqueue({label:_.rY((I=this.data)==null?void 0:I.messageTitle),elementToFocus:this.hostElement})};
_.L.onThumbnailLoaded=function(){_.lj(this.hostElement,"yt-refit")};
_.L.onDismissTap=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.L.computeAlternateIcon=function(I){return I?I==="BACKSTAGE_ARTWORK"?"backstage:artwork":I:null};
_.L.computeFontFamily=function(I){return I==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.L.computeBackgroundStyle=function(I,y){if(I=this.computeBackgroundImage(I,y))if(I=_.xY(I.thumbnails))return'background-image: url("'+I+'");'};
_.L.computeHasFullHeightImage=function(I){return!(!(I&&I.thumbnails&&I.thumbnails.length>0)||this.modern)};
_.L.isModernStyle=function(I){return I.style==="STYLE_MODERN"};
_.L.computeIcon=function(I,y){if(I&&I.icon)return y?I.iconDark:I.icon};
_.L.computeBackgroundImage=function(I,y){if(I&&I.backgroundImage)return y?I.backgroundImageDark:I.backgroundImage};
_.L.computeLogo=function(I,y){if(I&&I.logo)return y?I.logoDark:I.logo};
_.L.computeShouldShowModernIcon=function(I,y){return I&&!!y};
_.L.getLogoContainerClassName=function(I){return this.logoWithPadding(I)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.L.getLogoImageId=function(I){return this.logoWithPadding(I)?"mealbar-logo-with-padding":"mealbar-logo"};
_.L.logoWithPadding=function(I){var y,D,F;return(I=(y=this.computeLogo(I,this.isDarkTheme))==null?void 0:(D=y.thumbnails)==null?void 0:(F=D[0])==null?void 0:F.height)&&I%31===0?!0:!1};
xd.prototype.onThumbnailLoaded=xd.prototype.onThumbnailLoaded;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.W([_.M({}),_.A("design:type",Object)],xd.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.A("design:type",Boolean)],xd.prototype,"modern",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],xd.prototype,"isDarkTheme",void 0);
_.W([_.M({computed:"computeIcon(data, isDarkTheme)"}),_.A("design:type",Object)],xd.prototype,"icon",void 0);_.W([_.M({computed:"computeLogo(data, isDarkTheme)"}),_.A("design:type",Object)],xd.prototype,"logo",void 0);_.W([_.M({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.A("design:type",Object)],xd.prototype,"backgroundStyle",void 0);_.W([_.M({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.A("design:type",Object)],xd.prototype,"alternateIcon",void 0);
_.W([_.M({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.A("design:type",Boolean)],xd.prototype,"hasFullHeightImage",void 0);_.W([_.M({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.A("design:type",Boolean)],xd.prototype,"useYoutubeSans",void 0);_.W([_.M({computed:"computeShouldShowModernIcon(modern, icon)"}),_.A("design:type",Boolean)],xd.prototype,"shouldShowModernIcon",void 0);
_.W([_.z4("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xd.prototype,"onThumbnailLoaded",null);_.W([_.I6({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],xd);
_.a(xd,"yt-mealbar-promo-renderer",function(){if(L1q===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;OaS===void 0&&(OaS=document.createElement("template"));var F=OaS;D.call(y,F.content.cloneNode(!0),I.content.firstChild);L1q=I}I=L1q;return I},{mode:2});var Je0;var wCV;var lJ=function(){return _.k.apply(this,arguments)||this};
_.E(lJ,_.k);_.L=lJ.prototype;_.L.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]]"}}}}}};
_.L.computeHasButtons_=function(I){return!(!I.dismissButton&&!I.acceptButton)};
_.L.computeStyle_=function(I){return I||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.L.observeImpressionEndpoints_=function(){var I=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(y){y.clickTrackingParams&&delete y.clickTrackingParams;_.E$(I.hostElement,[y])})};
_.L.onTap_=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lJ.prototype.observeImpressionEndpoints_=lJ.prototype.observeImpressionEndpoints_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],lJ.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],lJ.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],lJ.prototype,"positionType",void 0);_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],lJ.prototype,"hasButtons_",void 0);_.W([_.M({value:function(){return this.onTap_.bind(this)}}),
_.A("design:type",Function)],lJ.prototype,"boundOnTap_",void 0);_.W([_.M({value:{style:"mono-inverse"}}),_.A("design:type",Object)],lJ.prototype,"buttonOverride",void 0);_.W([_.ke("data.promoConfig.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lJ.prototype,"observeImpressionEndpoints_",null);_.W([_.I6({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lJ);
_.a(lJ,"yt-tooltip-renderer",function(){if(wCV===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Je0===void 0&&(Je0=document.createElement("template"));var F=Je0;D.call(y,F.content.cloneNode(!0),I.content.firstChild);wCV=I}I=wCV;return I},{mode:2});var vyC;var Sb0;var tgj;var PRq;var uJ=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-open-popup-action":"onOpen"};return I};
_.E(uJ,_.k);_.L=uJ.prototype;_.L.attached=function(){this.onOpen()};
_.L.updateTimeSecs=function(I){this.currentTimeSecs=I};
_.L.computeTimeString=function(I){I=I.toString();var y=Math.floor(Number(I)/3600),D=Math.floor(Number(I)%3600%60);return(y>0?y+":":"")+_.p2(Math.floor(Number(I)%3600/60),y>0?2:1)+":"+_.p2(D,2)};
_.L.computeTimeStringA11y=function(I){return _.dG5({seconds:I})};
_.L.getTimeParam=function(){return NuT(this.timeString)};
_.L.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var I={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},y;_.Cb(_.W4(),(y=this.data)==null?void 0:y.trackingParams,I,7)};
_.L.onChangeStartAtTimestamp=function(){for(var I=this.startAtTimestamp.value.split(":"),y=0,D=1,F=I.length-1;F>=0;F--)y+=Number(I[F])*D,D*=60;this.updateTimeSecs(y);this.setTimestamp()};
_.L.onOpen=function(){var I=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var y=_.NY();y?y.getPlayerPromise().then(function(D){D=D.getCurrentTime();I.updateTimeSecs(D)}):Y$T()&&this.updateTimeSecs(Y$T())};
_.L.setTimestamp=function(){var I=Math.floor(this.currentTimeSecs);_.uj(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!I,timestamp:I||""}])};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],uJ.prototype,"data",void 0);_.W([_.M({value:!1,notify:!0}),_.A("design:type",Boolean)],uJ.prototype,"isStartAtChecked",void 0);_.W([_.M(),_.A("design:type",Number)],uJ.prototype,"currentTimeSecs",void 0);
_.W([_.M({computed:"computeTimeString(currentTimeSecs)"}),_.A("design:type",String)],uJ.prototype,"timeString",void 0);_.W([_.M({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.A("design:type",String)],uJ.prototype,"timeStringA11y",void 0);_.W([_.a0("#start-at-timestamp"),_.A("design:type",Object)],uJ.prototype,"startAtTimestamp",void 0);_.W([_.I6({is:"yt-start-at-renderer",disableElementRegistration:!0})],uJ);
_.a(uJ,"yt-start-at-renderer",function(){if(PRq===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;tgj===void 0&&(tgj=document.createElement("template"));var F=tgj;D.call(y,F.content.cloneNode(!0),I.content.firstChild);PRq=I}I=PRq;return I},{mode:2});var K1Z={},U8$=(K1Z.WEB_REMIX="music.youtube.com",K1Z),qB=function(){var I=_.k.apply(this,arguments)||this;I.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return I};
_.E(qB,_.k);_.L=qB.prototype;_.L.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.created=function(){this.embedHost_=U8$[_.Pi("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.L.ready=function(){_.XB(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.L.computeEmbedCode_=function(I,y,D,F,R){if(!I)return"";var O=I.videoId,w=I.fullListId,v=[];I.attributionId&&v.push("si="+I.attributionId);F||v.push("controls=0");D&&Number(y)>0&&v.push("start="+y);w&&(O="videoseries",v.push("list="+w));D="https://"+(R?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+O;I.clipId&&(v.push("clip="+I.clipId),v.push("clipt="+I.clipTiming));y=v.length>0?D+"?"+v.join("&amp;"):D;I.encryptedEmbedConfig&&v.push("embed_config="+JSON.stringify({enc:I.encryptedEmbedConfig}));
v=v.length>0?D+"?"+v.join("&amp;"):D;_.l("web_sharing_embed_preview_killswitch")?_.XB(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(v,I.previewWidth||854,I.previewHeight||480):(_.RR(this.videoPreviewContainer),_.XB(this.videoPreviewContainer).appendChild(this.buildIframeElement(v)));return this.getEmbedCode_(y,I.width||560,I.height||315)};
_.L.buildIframeElement=function(I){var y=document.createElement("iframe"),D,F;y.width=""+((F=(D=this.data)==null?void 0:D.previewWidth)!=null?F:854);var R,O;y.height=""+((O=(R=this.data)==null?void 0:R.previewHeight)!=null?O:480);_.JW(y,2,I);y.title="YouTube video player";y.frameBorder="0";y.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";y.referrerPolicy="strict-origin-when-cross-origin";y.allowFullscreen=!0;return y};
_.L.computeIsSquareAspectRatio_=function(I){return I.previewHeight&&I.previewWidth?I.previewHeight==I.previewWidth:!1};
_.L.computeShowEmbedOptions_=function(I){return!!I.enablePrivacyModeOptionLabel||!!I.showPlayerControlsOptionLabel};
_.L.getEmbedCode_=function(I,y,D){return'<iframe width="'+y+'" height="'+D+'" src="'+I+'" 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>'};
_.L.handleSignalActionCopyShareEmbedUrl_=function(){_.XB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.L.handleSetTimestamp_=function(I){this.startAtTimeStamp_=(this.startAtChecked_=I.isSet)?I.timestamp:0};
_.L.closePanel_=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.L.onEmbedCode_=function(){_.XB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.L.onYtPopupClosed_=function(){_.RR(_.XB(this.hostElement).querySelector("#video-preview"))};
_.L.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.u(this.data.actionButtons[0],_.S1)&&this.ytRendererBehavior.logExplicitClick(_.u(this.data.actionButtons[0],_.S1))};
qB.prototype.onYtPopupClosed_=qB.prototype.onYtPopupClosed_;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],qB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],qB.prototype,"data",void 0);
_.W([_.M({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.A("design:type",String)],qB.prototype,"embedCode_",void 0);_.W([_.M({value:!0}),_.A("design:type",Boolean)],qB.prototype,"isPlayerControlsOptionChecked_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],qB.prototype,"isPrivacyModeOptionChecked_",void 0);_.W([_.M({value:!1,notify:!0}),_.A("design:type",Boolean)],qB.prototype,"startAtChecked_",void 0);
_.W([_.M({value:0}),_.A("design:type",Number)],qB.prototype,"startAtTimeStamp_",void 0);_.W([_.M({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],qB.prototype,"isSquareAspectRatio_",void 0);_.W([_.a0("#video-preview"),_.A("design:type",HTMLElement)],qB.prototype,"videoPreviewContainer",void 0);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qB.prototype,"onYtPopupClosed_",null);
_.W([_.I6({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],qB);
_.a(qB,"yt-sharing-embed-renderer",function(){if(Sb0===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;vyC===void 0&&(vyC=document.createElement("template"));var F=vyC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Sb0=I}I=Sb0;return I},{mode:2});var reH;var jTH=function(){return _.k.apply(this,arguments)||this};
_.E(jTH,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],jTH.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],jTH.prototype,"data",void 0);_.W([_.I6({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],jTH);
_.a(jTH,"yt-sender-id-section-renderer",function(){if(reH===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);reH=I}I=
reH;return I},{mode:1});var oyj;var NGx;var Ea=function(){return _.k.apply(this,arguments)||this};
_.E(Ea,_.k);Ea.prototype.closePopup=function(){_.uj(this.hostElement,"yt-close-popup-action")};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Ea.prototype,"data",void 0);_.W([_.I6({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Ea);
_.a(Ea,"yt-community-post-section-renderer",function(){if(NGx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;oyj===void 0&&(oyj=document.createElement("template"));var F=oyj;D.call(y,F.content.cloneNode(!0),I.content.firstChild);NGx=I}I=NGx;return I},{mode:2});var hZo;var x8A;var lQj;var uYa;var qbn;var Eys;var GoC=function(){return _.k.apply(this,arguments)||this};
_.E(GoC,_.k);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],GoC.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],GoC.prototype,"data",void 0);_.W([_.I6({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],GoC);
_.a(GoC,"yt-share-start-time-with-context-renderer",function(){if(Eys===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;qbn===void 0&&(qbn=document.createElement("template"));var F=qbn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Eys=I}I=Eys;return I},{mode:2});var Gy=function(){return _.k.apply(this,arguments)||this};
_.E(Gy,_.k);Gy.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Gy.prototype,"data",void 0);_.W([_.I6({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Gy);
_.a(Gy,"yt-share-panel-title-v15-renderer",function(){if(uYa===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;lQj===void 0&&(lQj=document.createElement("template"));var F=lQj;D.call(y,F.content.cloneNode(!0),I.content.firstChild);uYa=I}I=uYa;return I},{mode:2});var Xc=function(){return _.k.apply(this,arguments)||this};
_.E(Xc,_.k);Xc.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Xc.prototype,"data",void 0);_.W([_.I6({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Xc);
_.a(Xc,"yt-share-panel-header-renderer",function(){if(x8A===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;hZo===void 0&&(hZo=document.createElement("template"));var F=hZo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);x8A=I}I=x8A;return I},{mode:2});var XCH;var QTj;var Ybs={};Ybs.YtBindingExpressionsBehavior={identity:_.mJ,msg:function(I,y){y=y===void 0?{}:y;return _.zC(I,y,I)},
msgPlural:function(I,y){return _.kI(I,y)},
getMusicIconFromType:function(I){return _.pQ(I)}};var fQj;var nyx;var pCq;var m8S=document.head,MgC=m8S.appendChild,zZA;
if(pCq===void 0){var koo=document.createElement("template");_.G(koo,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><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>');pCq=
koo}zZA=pCq;MgC.call(m8S,zZA.content);var QK=function(){var I=_.k.apply(this,arguments)||this;I.screenLayer=7;return I};
_.E(QK,_.k);QK.prototype.getScreenLayer=function(){return this.screenLayer};
QK.prototype.onTap=function(I){I&&I.detail&&(I.detail.x||I.detail.y)&&_.XB(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.E$(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(I=this.getScreenLayer(),_.lj(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:I}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.mD.Object.defineProperties(QK.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()}}});
QK.prototype.onTap=QK.prototype.onTap;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],QK.prototype,"ytComponentBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],QK.prototype,"data",void 0);_.W([_.Y("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],QK.prototype,"title",null);
_.W([_.Y("data.serviceName"),_.A("design:type",String),_.A("design:paramtypes",[])],QK.prototype,"icon",null);_.W([_.z4("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],QK.prototype,"onTap",null);_.W([_.I6({is:"yt-share-target-renderer",disableElementRegistration:!0})],QK);
_.a(QK,"yt-share-target-renderer",function(){if(nyx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;fQj===void 0&&(fQj=document.createElement("template"));var F=fQj;D.call(y,F.content.cloneNode(!0),I.content.firstChild);nyx=I}I=nyx;return I},{mode:2});var d8V;var aQH;var Yd=function(){var I=_.k.apply(this,arguments)||this;I.SHARE_TARGET_WIDTH=70;I.SHARE_TARGET_MARGIN_RIGHT=8;I.PAGE_SCROLL_SPEED=9;I.actionMap={"yt-share-panel-reset-action":"onReset_"};return I};
_.E(Yd,_.k);_.L=Yd.prototype;_.L.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.L.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.XB(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.XB(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.L.onReset_=function(){if(_.XB(this.hostElement).querySelector("#list")){var I=_.XB(this.hostElement).querySelector("#list");var y=_.XB(this.hostElement).querySelector("#list");var D=y.offsetLeft,F=y.offsetParent;F||_.w5M(y)!="fixed"||(F=_.VE(y).documentElement);if(F){if(_.Wr&&!_.nz(58)){var R=_.jDP(F);D+=R.left}else Number(_.kaM)>=8&&!(Number(_.kaM)>=9)&&(R=_.jDP(F),D-=R.left);y=_.UJz(F)?F.clientWidth-(D+y.offsetWidth):D}else y=D;bTb(I,y);this.updateScrollButtons_()}};
_.L.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.L.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.L.onScrollWheel_=function(I){I.stopPropagation();I.preventDefault();var y=$Mo(_.XB(this.hostElement).querySelector("#list"));I=Math.abs(I.deltaX)>Math.abs(I.deltaY)?I.deltaX:I.deltaY;bTb(_.XB(this.hostElement).querySelector("#list"),y+I);this.updateScrollButtons_()};
_.L.smoothScrollByOnePage_=function(I){var y=_.XB(this.hostElement).querySelector("#list"),D=(Math.floor(y.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,F=$Mo(y),R=D*(I?1:-1),O=this.PAGE_SCROLL_SPEED,w=this.updateScrollButtons_.bind(this),v=0,P;(function r(){v+=O;P=v/D*2;bTb(y,F+R*(P<1?P*P:-P*P+4*P-2));v<D?window.requestAnimationFrame(r):w()})()};
_.L.updateScrollButtons_=function(){var I=$Mo(_.XB(this.hostElement).querySelector("#list")),y=_.XB(this.hostElement).querySelector("#list").scrollWidth-_.XB(this.hostElement).querySelector("#list").clientWidth;_.XB(this.hostElement).querySelector("#scroll-button-back").hidden=I<=0;_.XB(this.hostElement).querySelector("#scroll-button-forward").hidden=I>=y};
Yd.prototype.onScrollWheel_=Yd.prototype.onScrollWheel_;Yd.prototype.onDataChanged_=Yd.prototype.onDataChanged_;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Yd.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(Ybs.YtBindingExpressionsBehavior),_.A("design:type",Object)],Yd.prototype,"ytBindingExpressionsBehavior",void 0);
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Yd.prototype,"data",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yd.prototype,"onDataChanged_",null);_.W([_.z4("wheel"),_.A("design:type",Function),_.A("design:paramtypes",[WheelEvent]),_.A("design:returntype")],Yd.prototype,"onScrollWheel_",null);
_.W([_.I6({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Yd);
_.a(Yd,"yt-third-party-share-target-section-renderer",function(){if(aQH===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;d8V===void 0&&(d8V=document.createElement("template"));var F=d8V;D.call(y,F.content.cloneNode(!0),I.content.firstChild);aQH=I}I=aQH;return I},{mode:2});var fl=function(){return _.k.apply(this,arguments)||this};
_.E(fl,_.k);fl.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"}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],fl.prototype,"data",void 0);_.W([_.I6({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],fl);
_.a(fl,"yt-third-party-network-section-renderer",function(){if(QTj===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;XCH===void 0&&(XCH=document.createElement("template"));var F=XCH;D.call(y,F.content.cloneNode(!0),I.content.firstChild);QTj=I}I=QTj;return I},{mode:2});var ceq;_.NK(_.d(function(I){return _.t("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.t("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.t(_.aP,{data:function(){return I.data().firstPartyItems}},{listItemViewModel:_.P3})))},"hl"),"first-party-network-section-view-model",{props:{data:_.om}});var W1V=_.UI(["data:image/svg+xml;charset=UTF-8;base64,",""]),nl=function(){var I=_.k.apply(this,arguments)||this;I.screenLayer=7;I.qrCodeEnabled=_.l("web_enable_sharing_qr_code");I.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return I};
_.E(nl,_.k);_.L=nl.prototype;_.L.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.L.attached=function(){this.JSC$22971_scroller&&(this.JSC$22971_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22971_scroller.attached&&typeof this.JSC$22971_scroller.attached==="function"&&this.JSC$22971_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.L.onDataChanged=function(){var I=this,y;(y=this.data)!=null&&y.contents&&(this.hostElement.setAttribute("links-only","true"),_.fg(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.YC(this,function(){_.lj(I.hostElement,"yt-refit");I.focusSharePanelHeader()}))};
_.L.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.L.handleSetTimestamp=function(I){var y=this.shortUrl();I.isSet&&(y=_.rC(y,"t",I.timestamp));this.maybeRenderQrCode(y)};
_.L.shortUrl=function(){var I,y=(I=this.data)==null?void 0:I.contents;if(y)for(I=0;I<y.length;I++){var D=void 0,F=void 0;if((D=y[I])==null?0:(F=D.thirdPartyNetworkSection)==null?0:F.copyLinkContainer){var R=F=D=void 0;return(R=_.u((D=y[I])==null?void 0:(F=D.thirdPartyNetworkSection)==null?void 0:F.copyLinkContainer,SGQ))==null?void 0:R.shortUrl}}};
_.L.maybeRenderQrCode=function(I){var y=this,D,F,R,O,w,v,P,K,r;return _.S(function(N){if(N.nextAddress==1){D=_.XB(y.hostElement).querySelector("#qr-code");if(!y.qrCodeEnabled||!I)return D&&(D.style.display="none"),N.return();F=_.Ngq(_.nR().resolve(_.mZ),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});R=document.createElement("div");return typeof F==="function"?(F(R),N.jumpTo(2)):N.yield(F,3)}N.nextAddress!=2&&(O=N.yieldResult,O(R));P=(w=R)==null?void 0:(v=w.firstChild)==null?void 0:v.firstChild;
K=document.createElement("img");r=_.uyS(W1V,btoa(P.outerHTML));K.onload=function(){var h={canvas:D,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:K},x=new mPy;cSy(x,I);WXY(x,!1,CXY(x));var q=x.modules,X=Object.assign({},FeR,h);q=structuredClone(q);h=q.length;var f,m=(f=X.canvas)!=null?f:document.createElement("canvas");f=X.cellSize;x=X.logo;var z,B=(z=X.logoSize)!=null?z:Math.floor(h/4);h%2!==B%2&&B++;var C=X.logoPadding,H=X.backgroundColor;z=h*f;var e=
X.width,T=0;e&&(T=X.padding,T=Math.ceil(T*z/(e-T*2)),m.style.width=e+"px",m.style.height=e+"px");m.width!==z+T*2&&(m.width=z+T*2);m.height!==z+T*2&&(m.height=z+T*2);z=m.getContext("2d");X.autoClear&&z.clearRect(0,0,m.width,m.height);z.fillStyle=H;z.beginPath();z.roundRect(0,0,m.width,m.height,X.borderRadius);z.fill();z.save();z.translate(T,T);if(x)for(m=Math.floor(h-B)/2-C,C=Math.floor(h+B)/2+C,H=m;H<C;H++)for(e=m;e<C;e++)q[H][e]=!1;for(m=0;m<h;m++)for(C=0;C<h;C++)(m<7&&C<7||m<7&&C>=h-7||m>=h-7&&
C<7)&&(q[m][C]=!1);var L5;m=(L5=X.markerColor)!=null?L5:X.color;i0o(z,0,0,f,m);i0o(z,f*(h-7),0,f,m);i0o(z,0,f*(h-7),f,m);switch(X.cellStyle){case 0:L5=q;q=L5.length;m=X.cellSize;z.beginPath();for(C=0;C<q;C++)for(H=0;H<q;H++)L5[C][H]&&z.rect(C*m,H*m,m,m);z.fillStyle=X.color;z.fill();break;case 1:L5=q;q=L5.length;m=X.cellSize;C=m*X.relativeCircleSize;z.fillStyle=X.color;z.beginPath();for(X=0;X<q;X++)for(H=0;H<q;H++)L5[X][H]&&(z.beginPath(),z.ellipse((X+.5)*m,(H+.5)*m,C/2,C/2,0,0,2*Math.PI),z.fill());
z.fill();break;case 2:L5=q;q=L5.length;m=X.cellSize;z.fillStyle=X.color;X=[[1,1],[-1,1],[-1,-1],[1,-1]];z.beginPath();for(C=0;C<q;C++)for(H=0;H<q;H++)if(L5[C][H])z.roundRect(C*m,H*m,m,m,m/2),C+1<q&&L5[C+1][H]&&z.rect(C*m+m/2,H*m,m,m),H+1<q&&L5[C][H+1]&&z.rect(C*m,H*m+m/2,m,m);else{e=C*m+m/2;T=H*m+m/2;for(var vH=0;vH<4;vH++){var u_=_.J(X[vH]),jW=u_.next().value;u_=u_.next().value;C+jW>=0&&C+jW<q&&H+u_>=0&&H+u_<q&&L5[C+jW][H]&&L5[C][H+u_]&&L5[C+jW][H+u_]&&(jW=vH*Math.PI/2,u_=m/2,z.moveTo(e+u_*Math.cos(jW),
T+u_*Math.sin(jW)),z.arc(e,T,m/2,jW,jW+Math.PI/2,!1),z.lineTo(e+u_*(Math.cos(jW)-Math.sin(jW)),T+u_*(Math.cos(jW)+Math.sin(jW))),z.lineTo(e+u_*Math.cos(jW),T+u_*Math.sin(jW)))}}z.fill()}x&&z.drawImage(x,(h-B)*f/2,(h-B)*f/2,B*f,B*f);z.restore();D.style.removeProperty("display")};
K.src=_.H$(r);_.Cj(N)})};
_.L.hasCommunityPostRenderer=function(){var I,y,D,F;return!!((I=this.data)==null?0:(y=I.header)==null?0:(D=y.sharePanelHeaderRenderer)==null?0:(F=D.communityPost)==null?0:F.communityPostSectionRenderer)};
_.L.onTapClose=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.L.getScreenLayer=function(){return this.screenLayer};
nl.prototype.onDataChanged=nl.prototype.onDataChanged;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],nl.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],nl.prototype,"data",void 0);
_.W([_.M({value:_.zC("SBOX_INAPPROPRIATE_CANCEL")}),_.A("design:type",String)],nl.prototype,"closeButtonAriaLabel",void 0);_.W([_.a0("yt-share-panel-header-renderer"),_.A("design:type",HTMLElement)],nl.prototype,"header",void 0);_.W([_.M(),_.A("design:type",Object)],nl.prototype,"qrCodeEnabled",void 0);_.W([_.a0("#scroller"),_.A("design:type",Object)],nl.prototype,"JSC$22971_scroller",void 0);
_.W([_.Bp("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nl.prototype,"onDataChanged",null);_.W([_.I6({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],nl);
_.a(nl,"yt-unified-share-panel-renderer",function(){if(ceq===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);ceq=I}I=ceq;return I},{mode:1});var CRV={};
CRV.YtUnlimitedFamilyInterstitialBehavior=[_.di.YtOpenPopupBehavior,_.cb.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(I){I=_.OW_(_.jv(I),"yt-button-renderer");return I?I.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(I){this.dialogHistory_.push(I)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var I=this.popFromHistory();if(I){var y={openPopupAction:{popupType:"DIALOG",popup:{}}};y.openPopupAction.popup[I.renderer]=I.data;this.showingPreviousDialog_=!0;this.openPopup(y)}},
handleOpenPopupAction_:function(I){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var y=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(F){return!!I.openPopupAction.popup[F]}),D=this.getElementName_();
y&&this.data&&(this.pushToHistory({renderer:D,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(I){if(I=_.u(I,PAZ))this.loading=!0,_.uj(this.hostElement,"yt-open-create-family-dialog",[I,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var I=this.hostElement.nodeName.split("-").slice(1).map(function(y){return""+y[0].toUpperCase()+y.slice(1).toLowerCase()}).join("");
return I[0].toLowerCase()+I.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var BGC;var iao;var pl=function(){return _.k.apply(this,arguments)||this};
_.E(pl,_.k);_.L=pl.prototype;_.L.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}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.uj(this.hostElement,"yt-register-create-family-dialog");_.XB(this.hostElement).querySelector("#thumbnail").onShow()};
_.L.fireOnCloseCommand_=function(){var I;((I=this.data)==null?0:I.onCloseCommand)&&_.GC(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.L.onYtServiceRequestSent_=function(I,y){y&&y.endpoint&&_.u(y.endpoint,_.fE)||(this.loading=!0)};
_.L.onYtServiceRequestCompleted_=function(){var I=this.hostElement.parentElement;I.close&&I.close();this.loading=!1};
_.L.openPopupHandler_=function(I){if(I.detail==this){var y;((y=this.data)==null?0:y.onOpenCommands)&&_.GC(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.L.closePopupHandler_=function(I,y){this.fireOnCloseCommand_();if(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1){var D;((D=this.data)==null?0:D.onDismissCommands)&&_.GC(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.L.dataChanged_=function(){this.loading=!1};
pl.prototype.dataChanged_=pl.prototype.dataChanged_;pl.prototype.closePopupHandler_=pl.prototype.closePopupHandler_;pl.prototype.openPopupHandler_=pl.prototype.openPopupHandler_;pl.prototype.onYtServiceRequestCompleted_=pl.prototype.onYtServiceRequestCompleted_;pl.prototype.onYtServiceRequestSent_=pl.prototype.onYtServiceRequestSent_;_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],pl.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(CRV.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],pl.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],pl.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],pl.prototype,"loading",void 0);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],pl.prototype,"onYtServiceRequestSent_",null);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],pl.prototype,"onYtServiceRequestCompleted_",null);
_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],pl.prototype,"openPopupHandler_",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],pl.prototype,"closePopupHandler_",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pl.prototype,"dataChanged_",null);
_.W([_.I6({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],pl);
_.a(pl,"yt-unlimited-family-message-interstitial-renderer",function(){if(iao===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;BGC===void 0&&(BGC=document.createElement("template"));var F=BGC;D.call(y,F.content.cloneNode(!0),I.content.firstChild);iao=I}I=iao;return I},{mode:2});var AeS;var $8a;var mI=function(){return _.k.apply(this,arguments)||this};
_.E(mI,_.k);mI.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"}}}};
mI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XB(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(I){I.onShow()});
_.XB(this.hostElement).querySelector("#main-thumbnail").onShow()};
mI.prototype.onButtonTap_=function(I){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(I)};
mI.prototype.computeMainThumbnailWidth_=function(I){return I&&I.length!==0?72:96};
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.W([_.Q(CRV.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],mI.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],mI.prototype,"data",void 0);
_.W([_.M({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.A("design:type",Number)],mI.prototype,"mainThumbnailWidth_",void 0);_.W([_.M({value:function(){return this.onButtonTap_.bind(this)}}),
_.A("design:type",Function)],mI.prototype,"boundButtonTap_",void 0);_.W([_.I6({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],mI);
_.a(mI,"yt-unlimited-family-profile-interstitial-renderer",function(){if($8a===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;AeS===void 0&&(AeS=document.createElement("template"));var F=AeS;D.call(y,F.content.cloneNode(!0),I.content.firstChild);$8a=I}I=$8a;return I},{mode:2});var baH;var Haa;var MB=function(){var I=_.k.apply(this,arguments)||this;I.sliderAriaValueText_=null;I.selectedIndex_=0;I.messages={PAUSE_SLIDER:_.zC("PAUSE_SLIDER",void 0,"Pause Duration")};return I};
_.E(MB,_.k);_.L=MB.prototype;_.L.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_]]"}}}}}};
_.L.onPopupOpened_=function(I){I.detail==this&&_.l("enable_premium_voluntary_pause")&&(_.uj(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.L.setDialogData=function(I){this.data=I;this.resetSlider_()};
_.L.dataChanged_=function(){this.data&&this.resetSlider_()};
_.L.onSubmitTap_=function(){if(this.data.confirmCommand){var I=this.data.confirmCommand;_.u(I,_.Jhc)&&_.E$(this.hostElement,[I,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.L.onExitButtonTap_=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.L.closePopupHandler_=function(I,y){(y&&y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.handleOnDismissCommands_()};
_.L.onSliderChange_=function(){this.selectedIndex_=_.XB(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.L.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.L.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.L.resetSlider_=function(){if(this.data){var I=this.data.defaultEndOptionIndex||0,y=_.XB(this.hostElement).querySelector("#id-pause-slider");if(y.immediateValue<I)for(;y.immediateValue!=I;)y.increment();else if(I<y.immediateValue)for(;y.immediateValue!=I;)y.decrement();this.selectedIndex_=I;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.L.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.GC(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.L.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.GC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.L.onYtServiceRequestSent=function(){this.loading=!0};
_.L.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
MB.prototype.onYtServiceRequestCompleted=MB.prototype.onYtServiceRequestCompleted;MB.prototype.onYtServiceRequestSent=MB.prototype.onYtServiceRequestSent;MB.prototype.closePopupHandler_=MB.prototype.closePopupHandler_;MB.prototype.dataChanged_=MB.prototype.dataChanged_;MB.prototype.onPopupOpened_=MB.prototype.onPopupOpened_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],MB.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],MB.prototype,"loading",void 0);_.W([_.M(),_.A("design:type",Number)],MB.prototype,"selectIndexMax_",void 0);_.W([_.M(),_.A("design:type",Object)],MB.prototype,"selectedData_",void 0);
_.W([_.M(),_.A("design:type",Object)],MB.prototype,"sliderAriaValueText_",void 0);_.W([_.M({value:function(){return this.onSubmitTap_.bind(this)}}),
_.A("design:type",Function)],MB.prototype,"onButtonTap_",void 0);_.W([_.M({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.A("design:type",Function)],MB.prototype,"onSecondaryTap_",void 0);_.W([_.M(),_.A("design:type",Object)],MB.prototype,"messages",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],MB.prototype,"onPopupOpened_",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MB.prototype,"dataChanged_",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],MB.prototype,"closePopupHandler_",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],MB.prototype,"onYtServiceRequestSent",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],MB.prototype,"onYtServiceRequestCompleted",null);_.W([_.I6({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],MB);
_.a(MB,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Haa===void 0){var I=document.createElement("template");_.G(I,'\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>');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;baH===void 0&&(baH=document.createElement("template"));var F=baH;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Haa=I}I=Haa;return I},{mode:2});var eZS;var TGj;var zy=function(){return _.k.apply(this,arguments)||this};
_.E(zy,_.k);zy.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.HU("vcBalanceRenderer")}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],zy.prototype,"data",void 0);_.W([_.I6({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],zy);
_.a(zy,"yt-vc-offer-layout-header-renderer",function(){if(TGj===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;eZS===void 0&&(eZS=document.createElement("template"));var F=eZS;D.call(y,F.content.cloneNode(!0),I.content.firstChild);TGj=I}I=TGj;return I},{mode:2});var sTq;var Vgg;var Zao;var gy0;var kd=function(){return _.k.apply(this,arguments)||this};
_.E(kd,_.k);kd.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mD.Object.defineProperties(kd.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)}}});
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.kae.YtTappableItemBehavior),_.A("design:type",Object)],kd.prototype,"ytTappableItemBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],kd.prototype,"data",void 0);
_.W([_.M({reflectToAttribute:!0}),_.Y("data.accessibilityText"),_.A("design:type",String),_.A("design:paramtypes",[])],kd.prototype,"ariaLabel",null);_.W([_.M({reflectToAttribute:!0}),_.Y("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],kd.prototype,"vcOfferStyle",null);_.W([_.Y("data.style","data.titleText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kd.prototype,"showTitleText",null);_.W([_.I6({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],kd);
_.a(kd,"yt-vc-offer-renderer",function(){if(gy0===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;Zao===void 0&&(Zao=document.createElement("template"));var F=Zao;D.call(y,F.content.cloneNode(!0),I.content.firstChild);gy0=I}I=gy0;return I},{mode:2});var d$=function(){return _.k.apply(this,arguments)||this};
_.E(d$,_.k);d$.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],d$.prototype,"data",void 0);_.W([_.I6({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],d$);
_.a(d$,"yt-vc-offer-layout-renderer",function(){if(Vgg===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;sTq===void 0&&(sTq=document.createElement("template"));var F=sTq;D.call(y,F.content.cloneNode(!0),I.content.firstChild);Vgg=I}I=Vgg;return I},{mode:2});var I0Z;var yVS;var Dgn;var FHx;var aN=function(){return _.k.apply(this,arguments)||this};
_.E(aN,_.k);aN.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}}}}}};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],aN.prototype,"data",void 0);_.W([_.I6({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],aN);
_.a(aN,"yt-ypc-offers-modal-top-bar-renderer",function(){if(FHx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Dgn===void 0&&(Dgn=document.createElement("template"));var F=Dgn;D.call(y,F.content.cloneNode(!0),I.content.firstChild);FHx=I}I=FHx;return I},{mode:2});var ce=function(){return _.k.apply(this,arguments)||this};
_.E(ce,_.k);ce.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"}}}}};
ce.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ce.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var I=this.scrollable;I.attached&&typeof I.attached==="function"&&I.attached()};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);_.W([_.a0("#scrollable"),_.A("design:type",Object)],ce.prototype,"scrollable",void 0);_.W([_.M(),_.A("design:type",Object)],ce.prototype,"data",void 0);_.W([_.I6({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ce);
_.a(ce,"yt-ypc-offers-modal-renderer",function(){if(yVS===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;I0Z===void 0&&(I0Z=document.createElement("template"));var F=I0Z;D.call(y,F.content.cloneNode(!0),I.content.firstChild);yVS=I}I=yVS;return I},{mode:2});var RCZ;var OSx;var We=function(){return _.k.apply(this,arguments)||this};
_.E(We,_.k);_.L=We.prototype;_.L.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}}}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XB(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.L.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.uj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.L.onYtPopupOpened_=function(I,y){(y==null?void 0:y.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.GC(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.L.onYtPopupClosed_=function(I,y){this.continueButtonTapped||y&&(y.canceled===!0||y.canceled===!1&&y.confirmed===!1)&&this.data.onDismissCommands&&_.GC(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.L.onYtServiceRequestError_=function(I){this.set("showSpinner",!1);_.v_(this.hostElement,I.detail.error.message)};
_.L.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.l("enable_ypc_spinners")?_.uj(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
We.prototype.onYtServiceRequestError_=We.prototype.onYtServiceRequestError_;We.prototype.onYtPopupClosed_=We.prototype.onYtPopupClosed_;We.prototype.onYtPopupOpened_=We.prototype.onYtPopupOpened_;We.prototype.onYtServiceRequestCompleted_=We.prototype.onYtServiceRequestCompleted_;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.M(),_.A("design:type",Object)],We.prototype,"data",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],We.prototype,"showSpinner",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],We.prototype,"continueButtonTapped",void 0);_.W([_.M({value:function(){return this.onContinueTapped_.bind(this)}}),
_.A("design:type",Function)],We.prototype,"bindOnContinueTapped_",void 0);_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],We.prototype,"onYtServiceRequestCompleted_",null);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],We.prototype,"onYtPopupOpened_",null);
_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],We.prototype,"onYtPopupClosed_",null);_.W([_.z4("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],We.prototype,"onYtServiceRequestError_",null);_.W([_.I6({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],We);
_.a(We,"yt-ypc-upgrade-dialog-renderer",function(){if(OSx===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;RCZ===void 0&&(RCZ=document.createElement("template"));var F=RCZ;D.call(y,F.content.cloneNode(!0),I.content.firstChild);OSx=I}I=OSx;return I},{mode:2});var LHo;var JVx;var Cl=function(){return _.k.apply(this,arguments)||this};
_.E(Cl,_.k);Cl.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Cl.prototype.computeHasButtons_=function(I){return!(!I.dismissButton&&!I.confirmButton)};
Cl.prototype.computeStyle_=function(I){return I||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],Cl.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Cl.prototype,"data",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],Cl.prototype,"positionType",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],Cl.prototype,"hasButtons_",void 0);_.W([_.M({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Cl.prototype,"style_",void 0);_.W([_.I6({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Cl);
_.a(Cl,"yt-bubble-hint-renderer",function(){if(JVx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;LHo===void 0&&(LHo=document.createElement("template"));var F=LHo;D.call(y,F.content.cloneNode(!0),I.content.firstChild);JVx=I}I=JVx;return I},{mode:2});var w$q;var vsA;var Be=function(){var I=_.MQ.apply(this,arguments)||this;I.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return I};
_.E(Be,_.MQ);_.L=Be.prototype;_.L.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.L.attached=function(){var I=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){I.$.thumbnail.onShow();I.$["header-image"].onShow()})};
_.L.handleCheckBoxUpdateAction_=function(I){this.canShowCheckboxEnabledConfirmButton=I};
_.L.computeUseOverlayForSpinner_=function(I,y){return!!I&&y};
_.L.computeShowSpinner_=function(I,y){return I||!!y};
_.L.fireOnCloseActions_=function(){var I,y=_.J(((I=this.data)==null?void 0:I.onClosedActions)||[]);for(I=y.next();!I.done;I=y.next())this.ytRendererBehavior.resolveCommand(I.value)};
_.L.fireOnOpenCommands_=function(I){var y,D=(y=this.data)==null?void 0:y.onOpenCommands;if(D)for(I.stopImmediatePropagation(),I=_.J(D),y=I.next();!y.done;y=I.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.L.fireOnDismissCommands_=function(I){var y,D=(y=this.data)==null?void 0:y.onDismissCommands;if(D)for(I.stopImmediatePropagation(),I=_.J(D),y=I.next();!y.done;y=I.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.L.openPopupHandler_=function(I){I.detail==this&&this.fireOnOpenCommands_(I)};
_.L.closePopupHandler_=function(I,y){_.qr(this,"yt-confirm-dialog-close-action",[y]);this.fireOnCloseActions_();(y&&y.canceled===!0||y&&y.canceled===!1&&y.confirmed===!1)&&this.fireOnDismissCommands_(I)};
_.L.onHeaderImageChanged_=function(){var I;((I=this.data)==null?0:I.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.L.computeHasHeaderImageWidth_=function(I){return I!=void 0};
_.L.computeHasLoadingMessage=function(I){return!!I};
_.L.onHeaderImageWidthChanged_=function(){var I,y=(I=this.data)==null?void 0:I.headerImageWidth;if(y){if(I=1.25*y*2+y,this.$.main.style.width=I+"px",y=this.$.scroller.firstElementChild)y.style.minWidth=I+"px"}else this.$.main.style.width="100%"};
_.L.onThumbnailChanged_=function(){var I;((I=this.data)==null?0:I.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")};
_.L.onYtNavigate_=function(I){I=_.jv(I);I instanceof Node&&_.QU(this.$["confirm-button"]).contains(I)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.L.computePrimaryIsCancel_=function(I){return I};
_.L.computeIsCancelButtonHidden_=function(I){return I.skipCancelButton||!I.cancelButton};
_.L.computeIsCheckboxHidden_=function(I){return!I.checkbox};
_.L.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.L.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.L.onYtServiceRequestCompleted_=function(){var I;((I=this.data)==null?0:I.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.mD.Object.defineProperties(Be,{template:{configurable:!0,enumerable:!0,get:function(){if(vsA===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;w$q===void 0&&(w$q=document.createElement("template"));var F=w$q;D.call(y,F.content.cloneNode(!0),I.content.firstChild);vsA=I}I=vsA;return I}}});
Be.prototype.onYtServiceRequestCompleted_=Be.prototype.onYtServiceRequestCompleted_;Be.prototype.onYtServiceRequestSent_=Be.prototype.onYtServiceRequestSent_;Be.prototype.onThumbnailLoaded_=Be.prototype.onThumbnailLoaded_;Be.prototype.onYtNavigate_=Be.prototype.onYtNavigate_;Be.prototype.onThumbnailChanged_=Be.prototype.onThumbnailChanged_;Be.prototype.onHeaderImageWidthChanged_=Be.prototype.onHeaderImageWidthChanged_;Be.prototype.onHeaderImageChanged_=Be.prototype.onHeaderImageChanged_;
Be.prototype.closePopupHandler_=Be.prototype.closePopupHandler_;Be.prototype.openPopupHandler_=Be.prototype.openPopupHandler_;_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],Be.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);
_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],Be.prototype,"ytEventForwardingBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],Be.prototype,"data",void 0);_.W([_.M({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],Be.prototype,"primaryIsCancel",void 0);_.W([_.M({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],Be.prototype,"isCancelButtonHidden",void 0);
_.W([_.M({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],Be.prototype,"isCheckboxHidden",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Be.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.W([_.M({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Be.prototype,"useOverlayForSpinner_",void 0);
_.W([_.M({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.A("design:type",Boolean)],Be.prototype,"showSpinner_",void 0);_.W([_.M({value:!1}),_.A("design:type",Boolean)],Be.prototype,"isActionInProgress_",void 0);_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.A("design:type",Boolean)],Be.prototype,"hasHeaderImageWidth_",void 0);
_.W([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.A("design:type",Boolean)],Be.prototype,"hasLoadingMessage",void 0);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Be.prototype,"openPopupHandler_",null);_.W([_.z4("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Be.prototype,"closePopupHandler_",null);
_.W([_.ke("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Be.prototype,"onHeaderImageChanged_",null);_.W([_.ke("data.headerImageWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Be.prototype,"onHeaderImageWidthChanged_",null);_.W([_.ke("data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Be.prototype,"onThumbnailChanged_",null);
_.W([_.z4("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Be.prototype,"onYtNavigate_",null);_.W([_.z4("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Be.prototype,"onThumbnailLoaded_",null);_.W([_.z4("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.RP]),_.A("design:returntype")],Be.prototype,"onYtServiceRequestSent_",null);
_.W([_.z4("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.tZ]),_.A("design:returntype")],Be.prototype,"onYtServiceRequestCompleted_",null);_.W([_.I6({is:"yt-confirm-dialog-renderer",noInjection:!0})],Be);var Sxg;var tZC;var iJ=function(){return _.k.apply(this,arguments)||this};
_.E(iJ,_.k);iJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XB(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
iJ.prototype.computeConfirmButton_=function(I){var y={text:I.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};I.confirmNavigationEndpoint?y.navigationEndpoint=I.confirmNavigationEndpoint:I.confirmServiceEndpoint&&(y.serviceEndpoint=I.confirmServiceEndpoint);return y};
iJ.prototype.computeShowTitle_=function(I){return!(I==null||!I.title)};
_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],iJ.prototype,"data",void 0);_.W([_.M({computed:"computeShowTitle_(data)"}),_.A("design:type",Boolean)],iJ.prototype,"showTitle",void 0);_.W([_.I6({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],iJ);
_.a(iJ,"yt-fancy-dismissible-dialog-renderer",function(){if(tZC===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Sxg===void 0&&(Sxg=document.createElement("template"));var F=Sxg;D.call(y,F.content.cloneNode(!0),I.content.firstChild);tZC=I}I=tZC;return I});var Paa;var KHH;var A1=function(){var I=_.k.apply(this,arguments)||this;I.spinnerActive=!1;return I};
_.E(A1,_.k);A1.prototype.created=function(){jRC(2201)};
A1.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
A1.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
A1.prototype.onIronOverlayClosed=A1.prototype.onIronOverlayClosed;A1.prototype.onIronOverlayOpened=A1.prototype.onIronOverlayOpened;_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.Pc),_.A("design:type",Object)],A1.prototype,"tpYtIronOverlayBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],A1.prototype,"data",void 0);_.W([_.M(),_.A("design:type",Object)],A1.prototype,"spinnerActive",void 0);
_.W([_.z4("iron-overlay-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A1.prototype,"onIronOverlayOpened",null);_.W([_.z4("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],A1.prototype,"onIronOverlayClosed",null);_.W([_.I6({is:"yt-loading-renderer",disableElementRegistration:!0})],A1);
_.a(A1,"yt-loading-renderer",function(){if(KHH===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Paa===void 0&&(Paa=document.createElement("template"));var F=Paa;D.call(y,F.content.cloneNode(!0),I.content.firstChild);KHH=I}I=KHH;return I},{mode:2});var Ugs;var rVx;var $d=function(){var I=_.k.apply(this,arguments)||this;I.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);I.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);I.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.E($d,_.k);_.L=$d.prototype;_.L.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.L.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.L.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.L.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.L.openPopupHandler_=function(I){I.detail===this.hostElement&&this.hostElement.hidden&&_.uj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.L.onDismissButtonTap_=function(){var I;this.closeOnDismissButton_.has(((I=this.data)==null?void 0:I.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.uj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.L.onAcceptButtonTap_=function(){var I;this.closeOnAcceptButton_.has(((I=this.data)==null?void 0:I.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.uj(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.L.computeHasHeader_=function(I){return!!I.headerBackgroundImage};
_.L.computeLayoutStyle_=function(I){return I};
_.L.computePopupSize_=function(I){return I};
_.L.computeIconType_=function(I){return I.dialogIcon&&I.dialogIcon.iconType?I.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":I.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":I.dialogIcon.iconType:""};
_.L.computeIsLogo_=function(I){return!!I.dialogIcon&&!!I.dialogIcon.iconType&&(I.dialogIcon.iconType==="YOUTUBE_LOGO"||I.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||I.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.L.computeHasCustomLogo=function(I){return!(I==null||!I.headerForegroundImage)};
_.L.computeCustomLogo=function(I,y){if(I!=null&&I.headerForegroundImage)return I.headerForegroundImageDark?y?I.headerForegroundImageDark:I.headerForegroundImage:I.headerForegroundImage};
_.L.computeHeaderBackgroundImage=function(I,y){if(I!=null&&I.headerBackgroundImage)return y&&(I==null?0:I.headerBackgroundImageDark)?I.headerBackgroundImageDark:I.headerBackgroundImage};
_.L.shouldShowIconContainer=function(I,y){return I&&!y};
_.L.shouldShowNonYouTubeIcon=function(I,y){return!I&&!y};
_.L.getLogoImageId=function(I){var y,D,F;return(I=(y=this.computeCustomLogo(I,this.isDarkTheme))==null?void 0:(D=y.thumbnails)==null?void 0:(F=D[0])==null?void 0:F.height)&&I%31===0?"custom-logo-with-padding":"custom-logo"};
$d.prototype.openPopupHandler_=$d.prototype.openPopupHandler_;$d.prototype.dataChanged_=$d.prototype.dataChanged_;_.W([_.Q(_.XN.YtRendererstamperBehavior),_.A("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.W([_.M(),_.A("design:type",Boolean)],$d.prototype,"isDarkTheme",void 0);
_.W([_.M({computed:"computeCustomLogo(data, isDarkTheme)"}),_.A("design:type",Object)],$d.prototype,"customLogo",void 0);_.W([_.M({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.A("design:type",Object)],$d.prototype,"headerBackgroundImage",void 0);_.W([_.M(),_.A("design:type",Object)],$d.prototype,"data",void 0);_.W([_.M({computed:"computeHasHeader_(data)"}),_.A("design:type",Boolean)],$d.prototype,"hasHeader",void 0);
_.W([_.M({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.A("design:type",Object)],$d.prototype,"layoutStyle",void 0);_.W([_.M({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.A("design:type",Object)],$d.prototype,"popupSize",void 0);_.W([_.M({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$d.prototype,"hasLogo",void 0);
_.W([_.M({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$d.prototype,"hasCustomLogo",void 0);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$d.prototype,"dataChanged_",null);_.W([_.z4("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$d.prototype,"openPopupHandler_",null);
_.W([_.I6({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],$d);
_.a($d,"yt-upsell-dialog-renderer",function(){if(rVx===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;Ugs===void 0&&(Ugs=document.createElement("template"));var F=Ugs;D.call(y,F.content.cloneNode(!0),I.content.firstChild);rVx=I}I=rVx;return I},{mode:2});var jno=_.d(function(I){return _.t("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.t(_.U,{cond:I.title,then:function(y){return _.t("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},y)}}))},"il"),osV=_.d(function(I){return _.t("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.t(_.aP,{data:I.closeButton},{buttonViewModel:function(y){return _.t("div",null,_.t(_.My,{data:y.data}))}}))},"jl"),Non=_.d(function(I){var y=I.data;
return _.t(_.ni,null,_.t("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.t("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.t(_.U,{cond:function(){return!!y().image&&!!y().title},
then:function(){return _.t(_.UE,{data:function(){return y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.t("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.t(_.U,{cond:function(){return y().title},
then:function(D){return _.t("h3",{class:"miniAppGameInfoDialogViewModelTitle"},D)}}),_.t(_.U,{cond:function(){return y().primaryGenre},
then:function(D){return _.t("span",{class:"miniAppGameInfoDialogViewModelGenre"},D)}}))),_.t(_.U,{cond:function(){var D=y().description;
return D&&D.length<=150},
then:function(){return _.t("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.t("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return y().description}))}}))},"kl"),hCa=_.d(function(I){var y=I.ageRating;
return _.t("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.t(_.UE,{data:function(){return{sources:[{url:y().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.t("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.t(_.jr,{text:function(){return y().attributedLabel},
noPreWrap:!0})))},"ll"),xg$=_.d(function(I){I=I.infoRows;
var y=_.nR().resolve(_.lB),D=_.l("enable_displaying_ppn");return _.t("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.t(_.gZ,{each:I},function(F){return _.t("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.t(_.U,{cond:function(){return F.label},
then:function(R){return _.t("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},R)}}),_.t(_.U,{cond:function(){return F.attributedLabel},
then:function(R){return _.t("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.t(_.jr,{text:R,noPreWrap:!0}))}}),_.t(_.U,{cond:function(){return F.value},
then:function(R){return _.t("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},R)}}),_.t(_.U,{cond:function(){return F.attributedValue},
then:function(R){return _.t("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.t(_.jr,{text:R,noPreWrap:!0}))}}),_.t(_.U,{cond:function(){return F.ageRating},
then:function(R){return _.t(hCa,{ageRating:R})}}))}),_.t(_.U,{cond:function(){return D&&y.clientData.has("post_play_nonce")},
then:function(){return _.t("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.t("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.t("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},y.getData("post_play_nonce")))}}))},"ml"),l0j=_.d(function(I){var y=I.data;
return _.t("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.t(jno,{title:function(){return y().dialogTitle}}),_.t(Non,{data:y}),_.t(_.U,{cond:function(){return y().infoRow},
then:function(D){return _.t(xg$,{infoRows:D})}}),_.t(osV,{closeButton:function(){return y().closeButton}}))},"nl");
l0j.idomCompat=!0;_.NK(l0j,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;return _.t("yt-gulp-triggering-dialog-view-model",{class:_.XH("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.t(_.UE,{data:function(){return y().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.t("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.t("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.t("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t(_.U,{cond:function(){return y().bodyText},
then:function(D){return _.t(_.gZ,{each:D},function(F){return _.t("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.t(_.jr,{text:F}))})}})),_.t("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.t(_.aP,{data:function(){return y().dismissButton}},{buttonViewModel:function(D){return _.t("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.t(_.My,{data:D.data}))}}),_.t(_.aP,{data:function(){return y().actionButton}},{buttonViewModel:function(D){return _.t("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.t(_.My,{data:D.data}))}}))))},"ol"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.om}});var uja=_.d(function(I){var y=I.data;I=_.jE(function(){return y().agreements},[]);
return _.t("installment-agreements-view-model",{class:_.XH("ytInstallmentAgreementsViewModelHost")},_.t(_.gZ,{each:I},function(D){return _.t("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.t("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.t(_.jr,{text:D.label})),_.t("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.t(_.aP,{data:function(){return D.openButton}},{buttonViewModel:_.My})))}))},"pl");
uja.idomCompat=!0;var qxj=_.d(function(I){var y=_.J(_.N4(function(){var e,T;return((e=I.data().createPlaylistDialogFormSchema)==null?0:(T=e.initialValues)==null?0:T.title)?I.data().createPlaylistDialogFormSchema.initialValues.title:""})),D=y.next().value,F=y.next().value;
y=_.J(_.N4(function(){I.data();return!1}));
var R=y.next().value,O=y.next().value;y=_.J(_.N4(function(){I.data();return!1}));
var w=y.next().value,v=y.next().value;y=_.J(_.N4(function(){var e,T;return(e=I.data().createPlaylistDialogFormSchema)==null?void 0:(T=e.initialValues)==null?void 0:T.visibility}));
var P=y.next().value,K=y.next().value;y=_.J(_.N4(function(){I.data();return!1}));
var r=y.next().value,N=y.next().value;y=_.J(_.N4(function(){var e,T;return(e=I.data().createPlaylistDialogFormSchema)==null?void 0:(T=e.initialValues)==null?void 0:T.isCollaborative}));
var h=y.next().value,x=y.next().value,q=_.DF("div");_.wZ(function(){var e=q.value.querySelector("textarea");e&&(e.value=D())},"axFRaf");
_.LR(function(){var e;MkZ((e=I.data().createPlaylistDialogFormSchema)==null?void 0:e.id,{onSubmit:function(){var T=D();var L5=P(),vH=h(),u_=I.data();T={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:T,privacyStatus:L5,videoIds:u_.videoIds,sourcePlaylistId:u_.sourcePlaylistId,params:vH?u_.createPlaylistParamsCollaborationEnabled:u_.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.nR().resolve(_.MC).resolveCommand(T)},
isValid:function(){return R()&&!w()&&!r()}})});
var X=function(e){if(e!==void 0&&(F(e),!R()&&e.length>0&&O(!0),R())){var T=hM8(I.data());if(T){var L5=T.minLength;T=T.maxLength;L5&&e.length<L5?v(!0):T&&e.length>T?v(!0):v(!1)}}},f=function(){var e=!(!h()||P()!=="PRIVATE");
N(e)},m=function(e){e!==void 0&&(K(e),f())},z=function(){if(r())return l$g(I.data())},B=function(){x(!h());
f()},C=function(){return{validate:function(e){if(R()){var T=hM8(I.data());
if(T){var L5=T.minLength;T=T.translations;if(L5&&e.length<L5)return T==null?void 0:T.minLengthErrorMessage}}}}},H=function(){var e=hM8(I.data()),T=e==null?void 0:e.maxLength,L5;
e=e==null?void 0:(L5=e.translations)==null?void 0:L5.maxLengthErrorMessage;if(T&&e)return{maxChars:T,errorMessage:e}};
return _.t("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.t("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:q},_.t(_.aP,{data:function(){return I.data().playlistTitle}},{textFormFieldViewModel:function(e){return _.t(JEo,{data:e.data,
text:D,onInput:X,validation:C,characterLimit:H})},
textFieldViewModel:function(e){return _.t(LvZ,{data:e.data,text:D,onInput:X,validation:C,characterLimit:H})}})),_.t("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.t(_.aP,{data:function(){return I.data().playlistVisibility}},{dropdownViewModel:function(e){return _.t(oN8,{data:e.data,
onSelected:m,error:z})}})),_.t(_.U,{cond:function(){return!!I.data().playlistCollaborate},
then:function(){return _.t("div",null,_.t(_.aP,{data:function(){return I.data().playlistCollaborate}},{switchListItemViewModel:function(e){return _.t(_.nGM,{data:e.data,
onTap:B})}}))}}))},"rl");var Es$=_.d(function(I){var y=I.data;return _.t("upsell-offer-table-cell-content-view-model",null,_.t("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.t(_.I8,null,_.t(_.Vj,{when:function(){var D;return(D=y().icon)==null?void 0:D.iconType}},function(){return _.t("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.t(_.mj,{icon:function(){var D;
return(D=y().icon)==null?void 0:D.iconType.toString()}}))}),_.t(_.Vj,{when:function(){return y().title}},function(){return _.t(_.jr,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return y().title}})}),_.t(_.Vj,{when:function(){return y().subtitle}},function(){return _.t(_.jr,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return y().subtitle}})}),_.t(_.Vj,{when:function(){return y().infoText}},function(){return _.t(_.jr,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return y().infoText}})}),_.t(_.Vj,{when:function(){return y().featureDescription}},function(){return _.t(_.jr,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return y().featureDescription}})}),_.t(_.Vj,{when:function(){return y().note}},function(){return _.t(_.jr,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return y().note}})})),_.t(_.U,{cond:function(){var D;
return(D=y().icon)==null?void 0:D.iconAccessibilityText},
then:function(){return _.t("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var D;return(D=y().icon)==null?void 0:D.iconAccessibilityText})}})))},"sl");
Es$.idomCompat=!0;var GqC=_.d(function(I){var y=I.data;var D=I.cellIndex;var F=I.rowIndex;return _.t("upsell-offer-table-cell-view-model",null,_.t("div",{class:_.XH("ytUpsellOfferTableCellViewModelCellWrapper",function(){return y().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":y().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var R,O;return"cell-"+((R=F==null?void 0:F())!=null?R:0)+"-"+((O=D==null?void 0:D())!=null?O:0)},
role:function(){return y().isFirstRow?"columnHeader":y().isFirstColumn?"rowheader":"gridcell"}},_.t(_.aP,{data:function(){return y().contents}},{upsellOfferTableCellContentViewModel:Es$})))},"tl");
GqC.idomCompat=!0;var X$s=_.d(function(I){var y=I.data;var D=I.upsellTableIsFirstRow;var F=I.rowIndex;var R=function(){return(D==null?0:D())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},O=function(){return(D==null?0:D())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.t("ytm-upsell-offer-table-row-view-model",null,_.t("div",{class:function(){return(D==null?0:D())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(F==null?void 0:F())+"-1 cell-"+(F==null?void 0:F())+"-2"}},_.t(_.aP,{data:function(){return y().rowHeaderCell}},{upsellOfferTableCellViewModel:function(w){return _.t("div",{class:R},_.t(GqC,{data:w.data,
cellIndex:0,rowIndex:F}))}}),_.t("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.t(_.aP,{data:function(){return y().contentCells}},{upsellOfferTableCellViewModel:function(w,v){return _.t("div",{class:O},_.t(GqC,{data:w.data,
cellIndex:function(){return v()+1},
rowIndex:F}))}}))))},"ul");
X$s.idomCompat=!0;var Qnj=_.d(function(I){var y=I.data;return _.t("ytm-upsell-offer-table-view-model",null,_.t("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.t("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.t(_.aP,{data:function(){return y().rows}},{upsellOfferTableRowViewModel:function(D,F){return _.t(X$s,{data:D.data,
upsellTableIsFirstRow:function(){return F()===0},
rowIndex:F})}}))))},"vl");
Qnj.idomCompat=!0;var Yxo=_.d(function(I){var y=function(){return I.data()},D=_.jE(I.noPadding,!1),F=function(){var O,w;
return(w=(O=y().logo.accessibilityData)==null?void 0:O.label)!=null?w:""},R={};
return _.t("upsell-view-model",{class:_.XH("ytUpsellViewModelHost",(R.ytUpsellViewModelHostNoPadding=function(){return D()},R.ytUpsellViewModelHostWide=function(){return y().offerTable!==void 0},R))},_.t("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.t(_.U,{cond:function(){return _.OA(y().logo)},
then:function(O){return _.t(_.UE,{data:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:F})}})),_.t("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.t(_.jr,{text:function(){return y().title}})),_.t("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.t(_.gZ,{each:function(){var O;
return(O=y().subtitles)!=null?O:[]},
keyBy:"INDEX"},function(O){var w={};return _.t("div",{class:_.XH("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(w.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return y().offerTable!==void 0},w))},_.t(_.jr,{text:O}))})),_.t("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.t(_.gZ,{each:function(){var O;
return(O=y().benefitInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){return _.t(_.U,{cond:function(){return O().info},
then:function(w){return _.t("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.t(_.mj,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.t(_.jr,{text:w}))}})})),_.t(_.U,{cond:function(){return y().offerTable!==void 0},
then:function(){return _.t("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.t(_.aP,{data:function(){return y().offerTable}},{upsellOfferTableViewModel:function(O){return _.t(Qnj,{data:O.data})}}))}}),_.t("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.t(_.gZ,{each:function(){var O;
return(O=y().legalInfos)!=null?O:[]},
keyBy:"INDEX"},function(O){var w={};return _.t("div",{class:_.XH("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(w.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return y().offerTable!==void 0},w))},_.t(_.jr,{text:O}))})))},"wl");var f0C=_.d(function(I){var y=I.data;I={};I=(I.ytMiniAppScoreChallengeViewModelScoreRadial=!0,I.ytMiniAppScoreChallengeViewModelDarkScoreRadial=uqa(),I);return _.t("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.t("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return y().title}),_.t("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return y().subtitle}),_.t("div",{class:_.bp(I)},_.t("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return y().score})),_.t("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return y().prompt}))},"xl");var nsq=function(){this.store=_.Uv();this.formId=""};
nsq.prototype.onInit=function(I){I.formId&&(this.formId=I.formId,this.store.dispatch(_.Ec({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
nsq.prototype.cleanup=function(){this.store.dispatch(_.Ec({type:"RESET_COMMAND_MAP"}))};var p$Z=_.d(function(I){function y(v){if(v&&(v=_.u(v,_.BS)))return Object.assign({},v,{isSelected:O()})}
var D=_.J(_.N4(function(){var v,P;return(P=(v=_.u(I.data().option,_.BS))==null?void 0:v.isSelected)!=null?P:!1})),F=D.next().value,R=D.next().value,O=F;
_.LR(function(){var v;MkZ((v=I.data().formSchema)==null?void 0:v.id,{onSubmit:function(){var P=_.nR().resolve(_.MC),K=!!I.data().selectedCommand,r=!!I.data().unselectedCommand;if(O()){if(K)var N=I.data().selectedCommand}else r&&(N=I.data().unselectedCommand);N=_.yz(N);y(I.data().option)&&!N?(P="",!K&&r?P="selected ":K&&!r&&(P="unselected "),K=new _.g6("No "+P+"command found for SelectionListItemFormViewModel"),_.vu(K)):N&&P.resolveCommand(N)},
isValid:function(){return!0}})});
var w=function(){R(!O())};
_.tI(function(){var v,P,K=(v=I.data())==null?void 0:(P=v.formSchema)==null?void 0:P.id;K&&_.kz()().delete(K)});
return _.t("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.t("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.t(_.jr,{text:function(){return I.data().paragraph}})),_.t(_.U,{cond:function(){return y(I.data().option)},
then:function(v){return _.t(_.P3,{data:v,isCompact:!0,hideSelectionTextChevron:!0,onTap:w,disableHorizontalPadding:!0})}}))},"yl");var mgj=_.d(function(I){var y=I.data;var D=I.disablePadding;var F=I.className;var R=_.DF("yt-dialog-header-view-model"),O=function(){var P=y().imageBanner;a:switch(y().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var K="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:K="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:P,style:K,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},w=function(){return y().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
v=function(){return y().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.LR(function(){var P=function(){_.uj(R.value,"yt-refit-popups-action")},K;
(K=R.value)==null||K.addEventListener("image-loaded",P);_.tI(function(){var r;(r=R.value)==null||r.removeEventListener("image-loaded",P)})});
I={};return _.t("yt-dialog-header-view-model",{el:R,class:_.XH(F,(I.ytDialogHeaderViewModelHost=!0,I.ytDialogHeaderViewModelHostDisablePadding=D,I.ytDialogHeaderViewModelHostCentered=v,I))},_.t(_.U,{cond:function(){return y().imageBanner},
then:function(){var P={};return _.t("div",{class:_.XH(F,(P.ytDialogHeaderViewModelBanner=!0,P.ytDialogHeaderViewModelBannerFullBleed=w,P)),style:_.p4({"max-height":function(){return y().assetContainerMaxHeight!==void 0?y().assetContainerMaxHeight+"px":void 0}})},_.t(_.mF,{data:O,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.t(_.U,{cond:function(){return y().headerBlock},
then:function(){var P={};return _.t("div",{class:_.XH("ytDialogHeaderViewModelHeaderBlock",(P.ytDialogHeaderViewModelHeaderBlockCentered=v,P))},_.t(_.aP,{data:function(){return y().headerBlock}},{contentPreviewImageViewModel:function(K){return _.t(_.mF,{data:K.data,
notifyOnLoaded:!0})}}))}}),_.t(_.U,{cond:function(){return y().customBanner},
then:function(P){var K={};return _.t("div",{class:_.XH("ytDialogHeaderViewModelCustomAssetContainer",(K.ytDialogHeaderViewModelCustomAssetContainerCentered=v,K))},_.t(_.aP,{data:P},{avatarStackViewModel:_.wm}))}}),_.t(_.U,{cond:function(){return y().headline},
then:function(P){return _.t("h2",null,_.t(_.jr,{text:P,className:"ytDialogHeaderViewModelText"}))}}))},"zl");
mgj.idomCompat=!0;var MZ0=_.d(function(I){var y=_.$WC(function(){return I.data().formId}),D=y.submitForm,F=y.isValid;
return _.t("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.t(_.aP,{data:function(){return I.data().panelFooter}},{panelFooterViewModel:function(R){return _.t(ns,{data:R.data,
disablePadding:!0,disablePrimaryButton:function(){return!F()},
onClickPrimaryButton:function(){D()}})}}))},"Al");var zCx=_.d(function(I){var y=function(){var D,F;return(F=(D=_.u(I.data().rendererContext,_.W_))==null?void 0:D.label)!=null?F:""};
return _.t("yt-dialog-image-content-view-model",{class:_.XH("ytDialogImageContentViewModelHost",I.className)},_.t(_.U,{cond:function(){return _.OA(I.data().image)},
then:function(D){var F={};return _.t("div",{style:_.p4((F.width=(0,_.w_)(function(){var R;return(R=I.data().imageMaxWidth)!=null?R:""}),F)),
class:"ytDialogImageContentViewModelImage"},_.t(_.UE,{data:D,alt:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.t(_.jr,{text:function(){return I.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Bl");var a0x=_.d(function(I){var y=_.o6(I,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),D=y.elRefCallback;I=y.Icon;var F=y.Asset,R=y.assetType,O=y.Title,w=y.LeadingActionHeader,v=y.TrailingActionHeader,P=y.headerPosition,K=y.Content,r=y.buttonLayout,N=y.buttonStyle,h=y.primaryButtonWiz,x=y.secondaryButtonWiz,q=y.contentAlignment,X=y.isFullscreen,f=y.width,m=y.maxHeight,z=y.isHeaderWizDefined,B=y.Header,C=y.isFooterWizDefined,
H=y.Footer;y=_.DF("dialog-layout",function(dq){D==null||D(dq)});
var e=h?function(){var dq={};return h({buttonOverrides:function(){return{style:(N==null?void 0:N())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.XH((dq["yt-spec-dialog-layout__dialog-layout-button"]=!0,dq["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},dq))})}:void 0,T=x?function(){var dq={};
return x({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.XH((dq["yt-spec-dialog-layout__dialog-layout-button"]=!0,dq["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},dq))})}:void 0,L5=function(){return(!!O||!!w||!!v)&&P()===0},vH={},u_={},jW={},xA={};
return _.t("dialog-layout",{el:y,class:_.XH((vH["yt-spec-dialog-layout"]=!0,vH["yt-spec-dialog-layout--dialog-layout-fullscreen"]=X,vH["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!X()},vH["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return m()===1},vH["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(R==null?void 0:R())===1},vH)),
style:function(){return(f==null?void 0:f())!==void 0?"width: "+f()+"px;":""}},I?_.t("div",{class:_.XH((u_["yt-spec-dialog-layout__dialog-layout-icon"]=!0,u_["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!F&&P()===1},u_["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return q()===1},u_))},_.t(I,null)):null,_.t(_.U,{cond:z,
then:function(){return B?_.t("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.t(B,null)):null},
else:function(){return _.t(_.ni,null,_.t(_.U,{cond:L5,then:function(){return _.t(kqC,{contentAlignment:q,LeadingActionHeader:w,TrailingActionHeader:v,Title:O,isAboveAsset:!!F})}}),F?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.t(F,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.t("div",{class:_.XH((jW["yt-spec-dialog-layout__dialog-layout-container"]=!0,jW["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(q==null?void 0:q())===1},
jW["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!O&&!(B&&z())||!!F&&(P==null?void 0:P())===0},jW))},_.t(_.U,{cond:function(){return O&&!B&&(P==null?void 0:P())===1},
then:function(){return _.t(kqC,{contentAlignment:q,LeadingActionHeader:w,TrailingActionHeader:v,Title:O,isAboveAsset:!1})}}),K?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.t(K,null))):null,_.t(_.U,{cond:C,
then:function(){return H?_.t("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.t(H,null)):null}}),e||T?_.t(dgx,{footerClasses:_.XH((xA["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,xA["yt-spec-dialog-layout__dialog-layout-footer"]=!0,xA["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(r==null?void 0:r())===2},xA["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(r==null?void 0:r())===1},xA)),
PrimaryButton:e,SecondaryButton:T}):null))},"Cl"),kqC=_.d(function(I){var y=_.o6(I,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),D=y.contentAlignment,F=y.LeadingActionHeader;I=y.Title;var R=y.TrailingActionHeader,O=y.isAboveAsset,w=y.enableLeadingActionHeader;y={};return _.t("div",{class:_.XH((y["yt-spec-dialog-layout__dialog-header-container"]=!0,y["yt-spec-dialog-layout__dialog-header"]=!0,y["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=O,y["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(D==null?void 0:D())===1&&w()},y))},_.t(_.U,{cond:function(){return w()},
then:function(){return F?_.t("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.t(F,null)):null}}),I?_.t("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.t(I,null)):null,R?_.t("div",null,_.t(R,null)):null)},"Dl"),dgx=_.d(function(I){var y=I.footerClasses;
var D=I.PrimaryButton;I=I.SecondaryButton;return _.t("div",{class:y},I?_.t(I,null):null,D?_.t(D,null):null)},"El");var cVo=new _.uk("TIME_PICKER_VIEW_MODEL_TOKEN");var WHH=_.d(function(I){var y=I.data;return _.t("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.t("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.t(_.aP,{data:function(){return y().avatar}},{avatarViewModel:_.LF})),_.t("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t(_.jr,{text:function(){return y().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Fl");var CaZ=_.d(function(I){return _.t("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.t(_.jr,{text:function(){return I.data().inviteMessage}})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.t(_.jr,{text:function(){return I.data().attributedAccountSectionHeaderText}})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.t(_.aP,{data:function(){return I.data().accountAvatar}},{avatarViewModel:_.LF}),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.t(_.jr,{text:function(){return I.data().accountName}}),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.t(_.jr,{text:function(){return I.data().handle}}))),_.t(_.aP,{data:function(){return I.data().trailingButton}},{buttonViewModel:_.My})),_.t("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.t(_.jr,{text:function(){return I.data().termsOfService}})))},"Gl");var BoS=_.d(function(I){var y=I.data;return _.t("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.t("div",{class:"ytAccessConfirmationViewModelContent"},_.t(_.aP,{data:function(){var D;return(D=y().avatar)!=null?D:y().dualAvatar}},{dualAvatarViewModel:function(D){return _.t(_.ujR,{data:D.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(D){return _.t(_.Jh,{data:D.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.t("h2",{class:"ytAccessConfirmationViewModelTitle"},_.t(_.jr,{text:function(){return y().title}})),_.t(_.jr,{text:function(){return y().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Hl");var iSV=_.d(function(I){var y=function(){var v,P;return(v=I.data().formSchema)==null?void 0:(P=v.initialValues)==null?void 0:P.selectedLanguages},D=_.J(_.N4(function(){return y()})),F=D.next().value,R=D.next().value,O={};
_.wZ(function(){var v=I.data().formSchema,P=v==null?void 0:v.submitConfig;I.data()!==O&&(O=I.data(),v&&P&&mra(v.id,{isValid:function(){var K,r=(K=F())!=null?K:[],N;K=(N=y())!=null?N:[];if(r.length!==K.length)return!0;N=new Set(K);r=_.J(r);for(K=r.next();!K.done;K=r.next())if(!N.has(K.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:F()||[]}}},
submitConfig:P}))},"iCaJcc");
var w=function(v){var P=v.key;if(P){var K;if(P&&((K=F())==null?0:K.includes(P))){var r;R((r=F())==null?void 0:r.filter(function(N){return N!==P}))}else R([].concat(_.Td(F()||[]),[P]))}};
return _.t("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.t(_.aP,{data:function(){return I.data().checkboxGroup}},{checkboxGroupViewModel:function(v){return _.t(FvR,{data:v.data,
onItemTap:w,selectedKeys:F,controlledMode:!0,disableHorizontalPadding:I.disableHorizontalPadding})}}))},"Jl");var AVq=_.d(function(I){var y=I.data;var D=void 0;I=_.J(_.N4(function(){var r;return((r=_.u(y().content,$ko))==null?void 0:r.defaultSelectedKey)||""}));
var F=I.next().value,R=I.next().value,O,w=function(){R("");var r;(r=D)==null||r.cleanup()};
_.LR(function(){D=new nsq;window.addEventListener("yt-popup-closed",w)});
_.wZ(function(){if(D&&O!==y().formId&&(D.onInit(y()),(O=y().formId)&&F())){var r=D,N={key:F()};N.command&&r.store.dispatch(CkR(O,N.command))}},"bo7oA");
_.tI(function(){window.removeEventListener("yt-popup-closed",w)});
var v=function(r,N,h){N.key&&h&&N.key!==F()&&(R(N.key),D&&N.command&&D.store.dispatch(CkR(h,N.command)))},P=function(){if(_.u(y().content,$ko))return!(F==null?0:F())},K=_.nR().resolve(_.fR(cVo));
return _.t("yt-dialog-view-model",{class:_.XH("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.t(a0x,{Header:function(){return _.t(_.aP,{data:function(){return y().header}},{dialogHeaderViewModel:function(r){return _.t(mgj,{data:r.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!y().header},
Content:function(){return _.t(_.aP,{data:function(){return y().customContent?y().customContent:y().content}},Object.assign({},{basicContentViewModel:_.Sc,
createPlaylistDialogFormViewModel:qxj,collaborativePlaylistInviteMessageViewModel:CaZ,preferredLanguageSettingsPanelViewModel:function(r){return _.t(iSV,{data:r.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:f0C,radioButtonGroupViewModel:function(r){var N=r.data;return _.t(yEy,{data:N,selectedKey:F,onSelected:v,groupName:function(){return N().formId}})},
selectionListItemFormViewModel:p$Z,upsellViewModel:function(r){return _.t(Yxo,{data:r.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:WHH,installmentAgreementsViewModel:uja,accessConfirmationViewModel:BoS,listViewModel:function(r){return _.t(_.cyG,{data:r.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:zCx},K&&{timePickerViewModel:K}))},
Footer:function(){return _.t(_.aP,{data:function(){return y().footer}},{panelFooterViewModel:function(r){return _.t(ns,{data:r.data,
disablePadding:!0,disablePrimaryButton:P})},
formPanelFooterViewModel:MZ0,formFooterViewModel:function(r){return _.t(Tge,{data:r.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!y().footer}}))},"Ll");
AVq.idomCompat=!0;_.NK(AVq,"yt-dialog-view-model",{props:{data:_.om},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var $gn=_.d(function(I){var y=I.data;return _.t("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.t(_.U,{cond:function(){return y().title},
then:function(D){return _.t("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.t(_.jr,{text:D,className:"ytPanelHeaderViewModelTitle"}))}}),_.t(_.U,{cond:function(){return y().subtitle},
then:function(D){return _.t(_.jr,{text:D,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Ml"),bSH=_.d(function(I){var y=I.data;
var D=_.huq(function(){return y().rendererContext});
I={};return _.t("yt-panel-header-view-model",{class:_.XH("ytPanelHeaderViewModelHost",(I.ytPanelHeaderViewModelHostHideDivider=function(){return!!y().shouldHideDivider},I.ytPanelHeaderViewModelHostCompact=function(){return!!y().subtitle},I)),
"aria-label":function(){var F;return(F=D())==null?void 0:F.label}},_.t(_.U,{cond:function(){return _.sP(y().rendererContext)},
then:function(){return _.t(_.lYW,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.Tj(y().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.t($gn,{data:y}))},
else:function(){return _.t($gn,{data:y})}}),_.t("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.t(_.aP,{data:function(){return y().trailingButtons}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Nl");
bSH.idomCompat=!0;var HSn=_.d(function(I){var y=_.YY(function(O){var w;if((w=I.skipContentClick)==null?0:w.call(I))return!1;I.onContentWrapperClick(O);return!0}),D,F,R;
return _.t("div",{class:_.XH("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return I.isAnimating()?"transform: translateY("+I.currentY()+"px);transition: 0.2s":""}},(D=I.header)==null?void 0:D.call(I),_.t("div",{id:I.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.p4({"max-height":(0,_.w_)(I.maxHeightForContentWrapper)}),"on:scroll":_.YY(function(O){return I.onScroll(O),!1}),
"on:touchmove":_.YY(function(O){return O.stopPropagation(),!1})},_.t("div",{el:_.K4(I.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":y},(F=I.body)==null?void 0:F.call(I))),(R=I.footer)==null?void 0:R.call(I))},"Ol");
HSn.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var eCZ=_.d(function(I){var y=_.jE(I.leadingLabel),D=_.jE(I.trailingLabel),F=_.jE(I.footerButtonType),R=function(){return y()||D()||I.hasPrimaryButton()||I.hasSecondaryButton()},O={},w=_.XH("yt-spec-bottom-sheet-layout__primary-button",(O["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return F()===0&&I.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return F()===1&&I.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return F()===2&&I.hasPrimaryButton()},O["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return F()===3&&I.hasPrimaryButton()},O));
O={};var v=_.XH("yt-spec-bottom-sheet-layout__secondary-button",(O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return F()===1&&I.hasSecondaryButton()},O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return F()===2&&I.hasSecondaryButton()},O["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return F()===3&&I.hasPrimaryButton()},O));
return _.t(_.U,{cond:I.hasFooterOverride,then:function(){var P;return _.t(_.ni,null,(P=I.footerOverride)==null?void 0:P.call(I))},
else:function(){return _.t(_.U,{cond:R,then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.t(_.U,{cond:function(){return y()||D()},
then:function(){var P={};return _.t("div",{class:_.XH("yt-spec-bottom-sheet-layout__footer-label-wrapper",(P["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!I.hasPrimaryButton()},P))},_.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},y)}}),_.t(_.U,{cond:D,
then:function(){return _.t("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},D)}}))}}),_.t(_.U,{cond:function(){return I.hasPrimaryButton()||I.hasSecondaryButton()},
then:function(){var P={};return _.t("div",{class:_.XH("yt-spec-bottom-sheet-layout__footer-button-wrapper",(P["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.KTz,P))},_.t(_.U,{cond:function(){return I.hasSecondaryButton()&&F()!==0},
then:function(){var K;return _.t("div",{class:v},(K=I.secondaryButton)==null?void 0:K.call(I))}}),_.t(_.U,{cond:I.hasPrimaryButton,
then:function(){var K;return _.t("div",{class:w},(K=I.primaryButton)==null?void 0:K.call(I))}}))}}))}})}})},"Pl");
eCZ.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var ToV=_.d(function(I){var y=_.jE(I.title),D=_.jE(I.subtitle);return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:I.headerId,"on:touchstart":_.YY(function(F){var R;(R=I.touchstart)==null||R.call(I,F);return!1}),
"on:touchmove":_.YY(function(F){var R;(R=I.touchmove)==null||R.call(I,F);return!1}),
"on:touchend":_.YY(function(F){var R;(R=I.touchend)==null||R.call(I,F);return!1})},_.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.t(_.U,{cond:I.hasHeaderOverride,
then:function(){var F;return _.t(_.ni,null,(F=I.headerOverride)==null?void 0:F.call(I))},
else:function(){var F={};return _.t("div",{class:_.XH((F["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,F["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=y,F))},_.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.t(_.U,{cond:y,then:function(){return _.t(_.ni,null,_.t("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},y),_.t(_.U,{cond:D,then:function(){return _.t("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
D)}}))}})),_.t(_.U,{cond:function(){return y()&&I.hasActionHeader()},
then:function(){var R;return _.t("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(R=I.actionHeader)==null?void 0:R.call(I))}}))}}))},"Ql");
ToV.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.d(function(I){function y(L5){if(!B&&typeof MutationObserver!=="undefined"){var vH={childList:!0};"MutationObserver"in window&&(B=new MutationObserver(D.bind(void 0,L5)),B.observe(L5,vH))}}
function D(L5){typeof B!=="undefined"&&(C["content-wrapper"]===void 0&&(C["content-wrapper"]=L5.children[0].clientHeight),X(C["content-wrapper"]),q()>f()||m(q()))}
function F(){x(window.innerHeight);q()>f()||m(q());H.isFullScreen[0]()&&q()>f()?e().dispatch("Snap To Full Screen",{maxHeight:z()}):e().dispatch("Snap To Neutral Position",{maxHeight:f()})}
function R(L5){document.body.style.overscrollBehavior="none";L5.preventDefault();e().dispatch("Touch Start",{event:L5})}
function O(L5){L5.preventDefault();e().dispatch("Touch Move",{event:L5,contentScrollable:q()>f(),fullContentWrapperHeight:z(),contentWrapperHeight:f(),heightMap:C,contentWrapperId:"content-wrapper",header:QLe(I),footer:QLe(I),headerDivHeight:C["bottom-sheet-header"],footerDivHeight:C["bottom-sheet-footer"]})}
function w(){document.body.style.overscrollBehavior="";H.isFullScreen[0]()?H.currentY[0]()>=60?e().dispatch("Snap To Neutral Position",{maxHeight:f()}):e().dispatch("Snap To Full Screen",{maxHeight:z()}):H.currentY[0]()>=60?v():H.currentY[0]()<=-60&&q()>f()?e().dispatch("Snap To Full Screen",{maxHeight:z()}):e().dispatch("Snap To Neutral Position",{maxHeight:f()})}
function v(){e().dispatch("Close Sheet",{clientHeight:h(),maxHeight:0});setTimeout(function(){XnT()},250)}
var P=_.DF("div"),K=_.DF("div"),r=_.J(_.$M(window.innerHeight,void 0,"CmOsU")),N=r.next().value;r=r.next().value;var h=N,x=r;r=_.J(_.$M(0,void 0,"p0Flhb"));N=r.next().value;r=r.next().value;var q=N,X=r;r=_.J(_.N4(function(){var L5=QLe(I);return.6*h()-qIb(L5)-EmR(L5)}));
N=r.next().value;r=r.next().value;var f=N,m=r,z=function(){var L5=QLe(I),vH=h(),u_=C["bottom-sheet-header"],jW=C["bottom-sheet-footer"];return vH-(L5.hasHeaderFn&&u_!==void 0?u_:qIb(L5))-(L5.hasFooterFn&&jW!==void 0?jW:EmR(L5))-24-24},B=null,C={},H={initialY:_.$M(0,void 0,"sxdESd"),
currentY:_.$M(0,void 0,"GZzqeb"),isAnimating:_.$M(!1,void 0,"vJBupc"),isFullScreen:_.$M(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.N4(f)},e=function(){var L5=null;return function(){if(!L5){var vH={initialY:H.initialY[0](),currentY:H.currentY[0](),isAnimating:H.isAnimating[0](),isFullScreen:H.isFullScreen[0](),maxHeightForContentWrapper:H.maxHeightForContentWrapper[0]()};L5=Gpo(vH)}return L5}}();
_.LR(function(){window.addEventListener("resize",F);e().subscribe(function(L5){H.initialY[1](L5.initialY);H.currentY[1](L5.currentY);H.isAnimating[1](L5.isAnimating);H.isFullScreen[1](L5.isFullScreen);H.maxHeightForContentWrapper[1](L5.maxHeightForContentWrapper)});
requestAnimationFrame(function(){P.value&&(C["bottom-sheet-header"]=P.value.clientHeight);K.value&&(C["bottom-sheet-footer"]=K.value.clientHeight)})});
_.tI(function(){window.removeEventListener("resize",F);B&&(B.disconnect(),B=null)});
var T=_.XH({"bottom-sheet-content-without-icon":function(){var L5;return!((L5=I.shouldShowIcons)==null?0:L5.call(I))}});
return _.t("bottom-sheet-layout",null,_.t(HSn,{contentWrapperId:"content-wrapper",isAnimating:function(){return H.isAnimating[0]()},
currentY:function(){return H.currentY[0]()},
maxHeightForContentWrapper:function(){return H.maxHeightForContentWrapper[0]()},
shouldShowIcons:I.shouldShowIcons,skipContentClick:I.skipContentClick,onScroll:function(){var L5=document.getElementById("bottom-sheet-header"),vH=document.getElementById("content-wrapper");if(L5&&vH){var u_={};u_=(u_["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,u_["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,u_);L5.className=vH.scrollTop>1?_.bp(u_):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:XnT,contentWrapperEl:function(L5){y(L5);requestAnimationFrame(function(){D(L5)})},
header:function(){return _.t("div",{el:P},_.t(ToV,{touchstart:R,touchmove:O,touchend:w,title:I.headerTitle,subtitle:I.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:I.headerFn,hasHeaderOverride:I.hasHeaderFn,actionHeader:I.headerActionHeader,hasActionHeader:I.hasHeaderActionHeader}))},
footer:function(){return _.t("div",{el:K},_.t(eCZ,{footerButtonType:I.footerButtonType,leadingLabel:I.footerLeadingLabel,trailingLabel:I.footerTrailingLabel,primaryButton:I.footerPrimaryButton,hasPrimaryButton:I.hasFooterPrimaryButton,secondaryButton:I.footerSecondaryButton,hasSecondaryButton:I.hasFooterSecondaryButton,footerOverride:I.footerFn,hasFooterOverride:I.hasFooterFn}))},
body:function(){return _.t(_.U,{cond:I.hasContentFn,then:function(){var L5;return _.t("div",{class:T},(L5=I.contentFn)==null?void 0:L5.call(I))}})}}))},"Rl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var snn=_.d(function(I){var y=_.nR().resolve(_.DP);return _.t("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.YY(function(){return void y.closeSheet()})},_.t(_.U,{cond:function(){return!!I.header},
then:function(){return _.t("div",{class:"ytContextualSheetLayoutHeaderContainer"},I.header())}}),_.t(_.U,{cond:function(){return!!I.content},
then:function(){return _.t("div",{class:"ytContextualSheetLayoutContentContainer"},I.content())}}),_.t(_.U,{cond:function(){return!!I.footer},
then:function(){return _.t("div",{class:"ytContextualSheetLayoutFooterContainer"},I.footer())}}))},"Sl");
snn.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var VZV=_.d(function(I){var y=I.data;var D=_.nR().resolve(_.MC),F=_.DF("yt-sheet-view-model",function(R){if(_.l("web_focus_first_element_sheet")||!_.l("sheet_focus_first_killswitch"))return R.addEventListener("focus",function(){mMe(R)}),function(){R.removeEventListener("focus",function(){mMe(R)})}});
I={};return _.t("yt-sheet-view-model",{"on:mousedown":_.YY(function(R){_.l("sheet_focus_first_killswitch")||R.currentTarget!==R.target&&R.preventDefault()}),
"on:focus":_.YY(function(){_.l("sheet_focus_first_killswitch")||mMe(F.value)}),
"on:mouseleave":_.YY(function(){var R,O=y==null?void 0:(R=y())==null?void 0:R.rendererContext,w;(R=(w=_.u(O,_.ZX))==null?void 0:w.onHoverEnd)&&D.resolveCommand(R)}),
class:_.XH("ytSheetViewModelHost",(I.ytSheetViewModelContextual=!0,I.ytSheetViewModelDisableBackdropFilter=_.l("web_disable_backdrop_filter"),I)),el:F,tabindex:-1},_.t(_.U,{cond:y,then:function(R){return _.t(snn,{header:function(){return _.t(_.aP,{data:function(){return R().header}},{panelHeaderViewModel:bSH})},
content:function(){return _.t(_.aP,{data:function(){return R().content}},{listViewModel:function(O){return _.t(_.cyG,{data:O.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Yxo,miniAppScoreChallengeViewModel:f0C})},
footer:function(){return _.t(_.aP,{data:function(){return R().footer}},{panelFooterViewModel:ns})}})}}))},"Tl");
VZV.idomCompat=!0;_.NK(VZV,"yt-sheet-view-model",{props:{data:_.om}});var gsH=_.d(function(I){var y=function(){var D;return(D=I.data().enableDebuggingFeatures)!=null?D:!1};
return _.t("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.t(_.gZ,{each:function(){var D;return(D=I.data().stickers)!=null?D:[]}},function(D){return _.t(ZSq,{data:function(){return D},
debugMode:y})}))},"Ul"),ZSq=_.d(function(I){var y=_.o6(I,{debugMode:!1}).debugMode,D=_.jE(function(){var P;
return(P=I.data().region)==null?void 0:P.w},0),F=_.jE(function(){var P;
return(P=I.data().region)==null?void 0:P.h},0),R=_.jE(function(){var P;
return(P=I.data().region)==null?void 0:P.x},0),O=_.jE(function(){var P;
return(P=I.data().region)==null?void 0:P.y},0),w=_.YY(function(){var P=I.data().onTap;
P&&_.OE(P)}),v={};
return _.t("div",{class:_.XH("ytStoriesStickerLayerViewModelSticker",(v.ytStoriesStickerLayerViewModelDebugMode=y,v)),style:_.p4({width:function(){return 100*D()+"%"},
height:function(){return 100*F()+"%"},
left:function(){return 100*R()+"%"},
top:function(){return 100*O()+"%"},
"flex-direction":function(){return YIQ(I.data().flexDirection)},
"justify-content":function(){return f$G(I.data().justifyContent)},
"align-items":function(){return nmY(I.data().alignItems)}}),
"on:click":w},_.t(_.aP,{data:function(){return I.data().button||I.data().toggleButton}},{buttonViewModel:function(P){return _.t(_.My,{data:P.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(P){return _.t(_.yJ,{data:P.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Vl");var yWC=_.d(function(I){var y=function(){return I.data()},D={},F=_.J(_.$M(!1,void 0,"SegA3d")),R=F.next().value,O=F.next().value,w=_.jE(function(){return y().backgroundColor},0);
F=_.jE(function(){return y().actionButtons},[]);
var v=_.jE(function(){return y().stickerLayer},{}),P=function(){var r,N;
return{animationRef:D,animationConfig:{autoplay:!1,loop:!1,path:(N=(r=y().foregroundAnimation)==null?void 0:r.url)!=null?N:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){O(!0)},
complete:function(){I.navigateToNextItemOnLottieComplete()}}}},K=function(){var r,N,h,x,q,X,f,m;
return{animationConfig:{autoplay:(X=(r=y().backgroundAnimation)==null?void 0:(N=r.settings)==null?void 0:N.autoplay)!=null?X:!1,loop:(f=(h=y().backgroundAnimation)==null?void 0:(x=h.settings)==null?void 0:x.loop)!=null?f:!1,path:(m=(q=y().backgroundAnimation)==null?void 0:q.url)!=null?m:"",name:"stories_item_background_animation"}}};
_.wZ(function(){if(I.isVisible()&&R()){var r;(r=D.lottieEl)==null||r.play();I.animationRef()&&(I.animationRef().lottieEl=D.lottieEl)}else{var N;(N=D.lottieEl)==null||N.stop()}},"MxM2wb");
return _.t("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.p4({"background-color":function(){return _.Z7(w())+";"}})},_.t("div",{class:"ytStoriesItemViewModelAssetContent"},_.t(_.U,{cond:function(){return!!y().backgroundAnimation},
then:function(){return _.t(_.Wb,{data:K,animationName:function(){return K().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.t(_.U,{cond:function(){return!!y().backgroundImage},
then:function(){return _.t(_.UE,{data:function(){return y().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.t(_.U,{cond:function(){return!!y().foregroundAnimation},
then:function(){return _.t(_.Wb,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.t(_.U,{cond:function(){return!!y().foregroundImage},
then:function(){return _.t(_.UE,{data:function(){return y().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.t("div",{class:"ytStoriesItemViewModelTopShadow"}),_.t(_.aP,{data:function(){return v()}},{storiesStickerLayerViewModel:gsH})),_.t("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.p4({"background-color":function(){return _.Z7(w())}})},_.t("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.t(_.gZ,{each:F},function(r){return _.t(Itg,{data:function(){return r},
pauseAutoNavigation:I.pauseAutoNavigation})}))))},"Xl"),D_x={style:"overlay",
type:"outline"},Itg=_.d(function(I){var y={};return _.t("div",{class:_.XH("ytStoriesItemViewModelActionButton",(y.ytStoriesItemViewModelStretchedActionButton=function(){return I.data().size==="STORIES_BUTTON_SIZE_STRETCH"},y)),
"on:click":_.YY(I.pauseAutoNavigation)},_.t(_.aP,{data:function(){return I.data().button}},{buttonViewModel:function(D){return _.t(_.My,{data:D.data,
buttonOverrides:D_x})}}))},"Yl");var F4q={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.NK(_.d(function(I){var y=function(){var jW;return(jW=I.data().startIndex)!=null?jW:0},D=_.J(_.N4(y)),F=D.next().value,R=D.next().value;
D=_.J(_.$M(!1,void 0,"sjy7s"));var O=D.next().value,w=D.next().value,v=function(){var jW;return(jW=I.data().storyItems)!=null?jW:[]},P={},K=_.DF("yt-stories-viewer-view-model"),r=function(){return I.data().dismissButton},N=function(){var jW;
return _.yz((jW=_.u(r(),_.Kb))==null?void 0:jW.onTap)},h=_.DF("div"),x,q,X=!1,f=function(){var jW;
(jW=x)==null||jW.cancel();x=m(F()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});x.onfinish=function(){var xA=_.u(v()[F()],Ofa),dq,$A;xA!=null&&xA.foregroundAnimation&&((xA==null?0:(dq=xA.foregroundAnimation)==null?0:dq.url)||(xA==null?0:($A=xA.foregroundAnimation)==null?0:$A.payload))||(F()!==v().length-1?(R(F()+1),f()):N()&&_.Do(N()))}},m=function(jW){return h.value.children[jW].children[0]},z=function(){for(var jW=0;jW<F();jW++)m(jW).style.transform=
"scaleX(1)"},B=function(){X||(O()?w(!1):(F()===v().length-1&&N()&&_.Do(N()),m(F()).style.transform="scaleX(1)",F()!==v().length-1&&(R(F()+1),f())))},C=function(){X||(O()?w(!1):(m(F()).style.transform="scaleX(0)",F()!==0&&R(F()-1),f()))},H=function(){w(!0)},e=function(){m(F()).style.transform="scaleX(1)";
F()!==v().length-1?(R(F()+1),f()):N()&&_.Do(N())};
D=function(){X=!1;q=setTimeout(function(){w(!0);X=!0},300)};
var T=function(){clearTimeout(q);X&&O()&&w(!1)};
_.wZ(function(){if(O()){var jW;(jW=x)==null||jW.pause();var xA;(xA=P.lottieEl)==null||xA.pause()}else{var dq;(dq=x)==null||dq.play();var $A;($A=P.lottieEl)==null||$A.play()}},"vAvZob");
_.wZ(function(){z();F()===y()&&f()},"uSlfE");
var L5=function(jW){jW.key==="ArrowLeft"?C():jW.key==="ArrowRight"&&B()},vH=function(jW){if(jW.target===K.value){(jW=N())&&_.Do(jW);
clearTimeout(q);var xA;(xA=x)==null||xA.cancel();var dq;(dq=P.lottieEl)==null||dq.stop();window.removeEventListener("keydown",L5);window.removeEventListener("yt-popup-closed",vH)}},u_=function(jW){if(jW.target===K.value){var xA;
(xA=P.lottieEl)==null||xA.play();window.addEventListener("keydown",L5);window.addEventListener("yt-popup-closed",vH)}};
_.LR(function(){z();f();window.addEventListener("yt-popup-opened",u_)});
return _.t("yt-stories-viewer-view-model",{el:K,class:_.XH("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.t("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.t("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.YY(C),"on:mousedown":_.YY(D),"on:mouseup":_.YY(T),"on:mouseleave":_.YY(T)}),_.t("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.YY(B),"on:mousedown":_.YY(D),"on:mouseup":_.YY(T),"on:mouseleave":_.YY(T)})),
_.t("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.t(_.aP,{data:v},{storiesItemViewModel:function(jW,xA){var dq=jW.data;return _.t(_.U,{cond:function(){return Math.abs(xA()-F())<=1},
then:function(){var $A={};return _.t("div",{class:_.XH("ytStoriesViewerViewModelStoryItem",($A.ytStoriesViewerViewModelActiveStoryItem=function(){return xA()===F()},$A))},_.t(yWC,{data:dq,
pauseAutoNavigation:H,navigateToNextItemOnLottieComplete:e,isVisible:function(){return xA()===F()},
animationRef:P}))}})}})),_.t("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:h},_.t(_.gZ,{each:v},function(){return _.t("div",{class:"ytStoriesViewerViewModelProgressBar"},_.t("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.t("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.t(_.UE,{data:F4q,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.t("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.t(_.aP,{data:function(){return I.data().menuButton}},{buttonViewModel:function(jW){return _.t(_.My,{data:jW.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.t(_.aP,{data:function(){return I.data().muteButton}},{toggleButtonViewModel:function(jW){return _.t(_.yJ,{data:jW.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.t(_.aP,{data:r},{buttonViewModel:function(jW){return _.t(_.My,{data:jW.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"am"),"yt-stories-viewer-view-model",{props:{data:_.om}});_.NK(_.d(function(I){var y=I.data;var D=_.DF("yt-gen-ai-feedback-form-view-model"),F=[];return _.t("yt-gen-ai-feedback-form-view-model",{el:D,class:"ytGenAiFeedbackFormViewModelHost"},_.t(_.jr,{text:function(){return y().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.t("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.t(_.aP,{data:function(){return y().feedbackChips}},{toggleButtonViewModel:function(R){var O=R.data;
return _.t(_.yJ,{data:O,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(w){var v=O();v=_.u(v,_.r7);v=_.u(v==null?void 0:v.defaultButtonViewModel,_.Kb).trackingParams;w?F.push(v):(w=F.indexOf(v),w>-1&&F.splice(w,1))}})}})),_.t(_.jr,{text:function(){return y().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.t("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.t(_.aP,{data:function(){return y().submitButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){pnR(D.value,F,y().uniqueId)}})}}),_.t(_.aP,{data:function(){return y().moreFeedbackButton}},{buttonViewModel:function(R){return _.t(_.My,{data:R.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"bm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.om},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var bJ=function(){return _.k.apply(this,arguments)||this};
_.E(bJ,_.k);bJ.prototype.created=function(){jRC(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(T0g);var I=_.nR().resolve(_.cuR);I&&(I.container=this.ytPopupContainerBehavior);if(I=_.nR().resolve(_.DP))I.container=this.ytPopupContainerBehavior;if(I=_.nR().resolve(_.Fu)){var y=this.ytPopupContainerBehavior;I.containerWasInjected?_.tq(Error("tj")):I.container=y}};
bJ.prototype.ensurePopupBelowPlayer=function(I,y){var D=_.nR().resolve(_.fR(_.ja));if(!D||!D.isOnWatch()||!_.NY())return!1;D=D.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.cF().height>D+this.getPopupHeight(I,y)?(I.style.top="auto",I.style.bottom="0px"):(I.style.top=D+"px",I.style.bottom="auto");return!0};
bJ.prototype.getPopupHeight=function(I,y){y&&(I.cachedPopupHeight=0);if(!I.cachedPopupHeight){y=0;var D=I.clientHeight,F=window.getComputedStyle(I);y+=parseInt(F.marginTop,10);y+=parseInt(F.marginBottom,10);I.cachedPopupHeight=D+y}return I.cachedPopupHeight};
bJ.prototype.getElement=function(I){return document.createElement(I)};
_.W([_.Q(SOs.YtPopupContainerBehavior),_.A("design:type",Object)],bJ.prototype,"ytPopupContainerBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],bJ.prototype,"ytComponentBehavior",void 0);_.W([_.yd({disableElementRegistration:!0,is:"ytd-popup-container"})],bJ);
_.a(bJ,"ytd-popup-container",function(){if(yMH!==void 0)return yMH;var I=document.createElement("template");_.G(I,"\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");I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);return yMH=I},{mode:1});var RDA;var OjV={};OjV.YtLogYpcFlowCommandsBehavior=[_.cb.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(I){_.u(I,vay)&&(I=_.u(I,vay))&&(I.serializedTransactionFlowLoggingParams?_.Nlt(I.serializedTransactionFlowLoggingParams):I.serializedYpcCancelFlowLoggingParams?(I=I.serializedYpcCancelFlowLoggingParams)&&LK("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",I):I.serializedYpcResumeFlowLoggingParams?(I=I.serializedYpcResumeFlowLoggingParams)&&LK("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",I):I.serializedYpcPauseFlowLoggingParams?(I=I.serializedYpcPauseFlowLoggingParams)&&
LK("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",I):I.serializedYpcRefundFlowLoggingParams?(I=I.serializedYpcRefundFlowLoggingParams)&&wgZ("YPC_EVENT_TYPE_START",I):I.serializedYpcDeactivateFlowLoggingParams?(I=I.serializedYpcDeactivateFlowLoggingParams)&&LK("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",I):I.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(I=I.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&LK("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",I))},
handleLogYpcFlowDismiss_:function(I){_.u(I,wA8)&&(I=_.u(I,wA8),I.serializedTransactionFlowLoggingParams?_.hyL(I.serializedTransactionFlowLoggingParams):I.serializedYpcCancelFlowLoggingParams?(I=I.serializedYpcCancelFlowLoggingParams)&&LK("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",I):I.serializedYpcResumeFlowLoggingParams?(I=I.serializedYpcResumeFlowLoggingParams)&&LK("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",I):I.serializedYpcPauseFlowLoggingParams?(I=I.serializedYpcPauseFlowLoggingParams)&&
LK("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",I):I.serializedYpcRefundFlowLoggingParams&&(I=I.serializedYpcRefundFlowLoggingParams)&&wgZ("YPC_EVENT_TYPE_CANCEL",I))}}];var L4$={};L4$.YtCancelRecurrenceBehavior=[_.vb.YtComponentBehavior,_.wLf,{attached:function(){var I=this;ydo(this,function(y,D){return I.ypcCancelRecurrenceHandler(y,D)})},
ypcCancelRecurrenceHandler:function(I,y){var D=this;if(!y||!y.ypcCancelRecurrenceEndpoint)return!1;if(!y.ypcCancelRecurrenceEndpoint.params)return _.UJ(Error("nm")),!0;_.Rz(this.hostElement);var F=_.Lt.instance,R=_.nR().resolve(_.fR(_.BF));F&&_.JZ(F,y)?_.wP(F,y).then(function(O){D.ypcCancelRecurrenceSuccess_(I,y,{data:O})},function(O){D.ypcCancelRecurrenceFailure_(I,y,O)}).thenCatch(function(){_.UJ(Error("om"))}):R?R.requestDataForServiceEndpoint(y).then(function(O){D.ypcCancelRecurrenceSuccess_(I,
y,O)},function(O){D.ypcCancelRecurrenceFailure_(I,y,O)}).thenCatch(function(){_.UJ(Error("om"))}):_.UJ(Error("pm"));
return!0},
ypcCancelRecurrenceSuccess_:function(I,y,D){_.OR(this.hostElement);D.data||(D={data:D});D.data&&D.data.actions&&_.GC(this.hostElement,D.data.actions,this.hostElement);D.data.messageRenderer?Pjg(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(y=y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&LK("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",y);_.lj(I,"yt-service-request-completed",D)},
ypcCancelRecurrenceFailure_:function(I,y,D){_.OR(this.hostElement);Pjg(y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.lj(I,"yt-service-request-error",{error:D,params:[I,y]})}}];var JWg=function(I,y){_.Io.call(this,y)};
_.E(JWg,tlQ);var wd0={};wd0.YtCompleteTransactionBehavior=[_.vb.YtComponentBehavior,_.wLf,{attached:function(){var I=this;ydo(this,function(y,D){return I.ypcCompleteTransactionHandler(y,D)})},
completeTransaction:function(I,y){var D=this;y={payments_payload:window.btoa(y.integratorData),buybucket_params:I.data.buybucketParams,offer_params:I.data.offerParams};var F=_.nR().resolve(_.BF),R=I.data.completeTransactionEndpoint,O=this.get("ypcCompleteTransactionEndpoint.actions",R);O&&_.GC(this.hostElement,O,this.hostElement);return(O=_.Lt.instance)&&_.JZ(O,R)?_.wP(O,R,y).then(function(w){return!w||(w==null?0:w.error)?(w=D.get("data.serializedTransactionFlowLoggingParams",I),_.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
w))):{data:w}}).then(function(w){return D.handleCompleteTransactionSuccess_(w,I)},function(){return D.handleCompleteTransactionFailure_(I)}):F.requestDataForServiceEndpoint(R,y).then(function(w){return D.handleCompleteTransactionSuccess_(w,I)},function(){return D.handleCompleteTransactionFailure_(I)})},
handleCompleteTransactionSuccess_:function(I,y){I.data||(I={data:I});if(I.data.messageRenderer)return _.eE(new JWg(I.data.messageRenderer));if(I.data.trackingParams){var D=_.VO(),F=_.s_();D&&F&&_.Oc(D,F,_.AC(I.data.trackingParams))}y=this.get("data.serializedTransactionFlowLoggingParams",y);vIo(y);return _.Xs(I)},
handleCompleteTransactionFailure_:function(I){I=this.get("data.serializedTransactionFlowLoggingParams",I);_.Kg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",I);return _.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",I))},
ypcCompleteTransactionHandler:function(I,y){var D=this;if(!y.ypcCompleteTransactionEndpoint)return!1;if(!y.ypcCompleteTransactionEndpoint.transactionParams)return _.UJ(Error("qm")),!0;y.ypcCompleteTransactionEndpoint&&y.ypcCompleteTransactionEndpoint.gtmData&&_.ZI(y.ypcCompleteTransactionEndpoint.gtmData);var F=_.nR().resolve(_.fR(_.BF));if(F){_.Rz(this.hostElement);var R=_.Lt.instance;R&&_.JZ(R,y)?_.wP(R,y).then(function(O){return!O||(O==null?0:O.error)?(O=D.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
y),_.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O))):{data:O}}).then(function(O){_.lj(I,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(y,O)},function(){return D.ypcCompleteTransactionFailure_(y)}):F.requestDataForServiceEndpoint(y).then(function(O){_.lj(I,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(y,O)},function(){return D.ypcCompleteTransactionFailure_(y)})}return!0},
ypcCompleteTransactionSuccess_:function(I,y){_.OR(this.hostElement);y.data||(y={data:y});_.uj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);y.data.messageRenderer||y.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(I):(_.ZI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",I));y.data.actions&&(I=Kj8(y.data.actions),y=UKR(y.data.actions),I.length&&_.E$(this.hostElement,
I),y.length&&_.GC(this.hostElement,y,this.hostElement))},
ypcCompleteTransactionFailure_:function(I){_.OR(this.hostElement);_.uj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",I,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(I,y,D){if(y=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",y))y={serializedTransactionFlowLoggingParams:y},D&&(y.errorType=D),_.Jq(I,y),_.wI()}}];var vQn={};vQn.YtEndpointHandlerWithYpcBehavior=[_.wLf,_.cb.YtActionHandlerBehavior,[{openWalletDialog:function(I,y,D,F,R,O,w){var v=this,P=_.vS();y=y.replace(/-/g,"+").replace(/_/g,"/");var K=_.a1().get("hl");_.NDJ(_.l0(_.UM),y,P.resolve,R,function(r){O&&O();P.reject(r)},K,function(r){return v.onServerBackendAnalyticEvent_(I,D,r)},this.onDialogClose_.bind(this),F,w);
return P.promise},
openFixFlowDialog:function(I,y,D,F){I=I.replace(/-/g,"+").replace(/_/g,"/");_.l0(_.UM).openFixFlowDialog(I,y,D,F)},
onDialogClose_:function(){_.uj(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(I,y,D){_.lj(I,"yt-commerce-action-init-done");y&&_.E$(this.hostElement,[y,{backend_analytics:D}])}}],
_.di.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(I,y){I=this.get("data.nativeFlowEndpoint",y);y=this.get("data.fallbackEndpoint",y);I?_.E$(this.hostElement,[I]):y&&_.lj(this.hostElement,"yt-navigate",{endpoint:y})}}],
L4$.YtCancelRecurrenceBehavior,wd0.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 I=this;ydo(this,function(y,D,F){return I.handleYPCEndpoint(y,D,F)});
this.ypcRegisterActionMapJobId_=_.y9(_.w2,function(){I.registerActionMap(I.buyFlowActionMap_)})},
detached:function(){var I=this;_.w2.cancelJob(this.ypcRegisterActionMapJobId_);_.y9(_.w2,function(){I.unregisterActionMap(I.buyFlowActionMap_)})},
handleYPCEndpoint:function(I,y,D){var F=y.ypcGetCartEndpoint;if(F){_.s$("commerce_transaction");var R=F.gtmId;R&&_.V8(R);(F=F.gtmData)&&_.ZI(F)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",y)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(I,y),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",y)!=null?(this.handleYPCFixInstrumentEndpoint_(I,y),!0):y.ypcPauseSubscriptionCommand?(CyC(this.hostElement,I,y,D),
!0):y.ypcResumeSubscriptionCommand?(ATC(this.hostElement,I,y),!0):y.getPaymentInstrumentsParamsCommand?(a$8(this.hostElement,I,y),!0):y.ypcHandleTransactionEndpoint?(kp8(this.hostElement,I,y,D),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(I,y){var D=this;_.V_("ttcr",void 0,"commerce_transaction");y=y.ypcGetCartEndpoint;var F=y.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,R=F.encryptedPurchaseParams,O=F.serializedTransactionFlowLoggingParams,w=F.serializedPaymentsClientParams,v=this.createGetCartResponseFromParams_(F,y.offerParams,O);this.changeButtonState(I,!0);_.D1(this.openWalletDialog(I,R,F.ypcLogWalletAnalyticDataEndpoint,O,function(){D.changeButtonState(I,!1)},function(){D.changeButtonState(I,
!1)},w).then(function(P){return D.handleBuyFlowCompleteCallback_(I,v,P)},function(){return D.handleOnLoadError(v)}).then(function(P){return void D.handlePostPurchaseSuccess_(I,v,P)},function(P){return void D.handlePostPurchaseError_(P)}),function(){D.changeButtonState(I,!1);
I instanceof Element&&_.lj(I,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(I,y,D){var F=I.completeTransactionEndpoint,R=I.handleTransactionEndpoint;y={data:{offerParams:window.btoa(y),serializedTransactionFlowLoggingParams:D}};R?y.data.handleTransactionEndpoint=R:y.data.completeTransactionEndpoint=F;I.onCartDismissCommand&&(y.data.onCartDismissCommand=I.onCartDismissCommand);return y},
onGetCartServiceRequestCompleted_:function(I,y){var D=this,F=I.target;if(y&&y.data&&y.data.messageRenderer)_.OR(this.hostElement),this.handleMessageRenderer_(y.data.messageRenderer),this.changeButtonState(F,!1);else{var R=this.get("data.encryptedPurchaseParams",y),O=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",y),w=this.get("data.ypcLogWalletAnalyticDataEndpoint",y),v=this.get("data.serializedPaymentsClientParams",y),P=this.getLoggingParams_(y);if(P||R||O)I.stopPropagation(),_.V_("ttcr",
void 0,"commerce_transaction"),R||_.OR(this.hostElement),this.changeButtonState(F,!1),O?_.uj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Pi("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:O}}},this]):R&&(this.changeButtonState(F,!0),I=null,I=this.openWalletDialog(F,R,w,P,function(){_.OR(D.hostElement);D.changeButtonState(F,!1)},function(){_.OR(D.hostElement);
D.changeButtonState(F,!1)},v),_.D1(I.then(function(K){return D.handleBuyFlowCompleteCallback_(F,y,K)},function(){return D.handleOnLoadError(y)}).then(function(K){return D.handlePostPurchaseSuccess_(F,y,K)},function(K){return D.handlePostPurchaseError_(K)}),function(){D.changeButtonState(F,!1);
_.lj(F,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(I,y){y&&y.endpoint&&y.endpoint.ypcGetCartEndpoint&&!y.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)&&_.GC(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",y.endpoint.ypcGetCartEndpoint)],I.target),_.Rz(this.hostElement),this.changeButtonState(I.target,!0))},
onServiceRequestError_:function(I,y){if(y&&y.params&&y.params.length){y=_.J(y.params);for(var D=y.next();!D.done;D=y.next())if((D=D.value)&&D.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)&&_.GC(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)],I.target);_.OR(this.hostElement);this.changeButtonState(I.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(I,y,D){var F=D.integratorData;return F==null||F===""||D.error!=null?(F=this.getLoggingParams_(y),String(D.error)==="-1"?(y.data.onCartDismissCommand&&_.GC(this.hostElement,[y.data.onCartDismissCommand],I),_.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",F,!0))):_.eE(new rF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",F))):y.data.handleTransactionEndpoint?d0o(this.hostElement,y.data.handleTransactionEndpoint,{payments_payload:F,funds_guarantee_callback_client_data:D.integratorClientCallbackData}):
this.completeTransaction(y,D)},
handlePostPurchaseSuccess_:function(I,y,D){y=D.data;var F=!1,R,O;if(y&&((R=y.command)==null?0:(O=R.commandExecutorCommand)==null?0:O.commands)){var w,v;R=(w=y.command)==null?void 0:(v=w.commandExecutorCommand)==null?void 0:v.commands;for(w=0;w<R.length;w++)if(_.u(R[w],_.OFe)){F=!0;break}}F||(y&&y.gtmDatas&&y.gtmDatas.length?_.ZI(y.gtmDatas[0]):_.ZI('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));D.data&&D.data.actions&&(y=Kj8(D.data.actions),D=UKR(D.data.actions),y.length&&
_.E$(this.hostElement,y),D.length&&_.GC(this.hostElement,D,I))},
handlePostPurchaseError_:function(I){I&&I.payload&&I.payload.isUserDismiss||_.vu(Error("sm"))},
handleOnLoadError:function(I){I=this.getLoggingParams_(I);return _.eE(new rF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I))},
getLoggingParams_:function(I){return this.get("data.serializedTransactionFlowLoggingParams",I)},
handleMessageRenderer_:function(I){var y=_.vi(I,"renderer"),D=_.Pi("openPopupConfig");y==="confirmDialogRenderer"&&D&&_.uj(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:D.popupTypeMap[y],popup:I}},this])},
handleYPCFixInstrumentEndpoint_:function(I,y){var D=this,F=y.ypcFixInstrumentEndpoint;y=F.encryptedFixInstrumentParameters;this.logFixFopEvent_(F,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(I,!0);this.openFixFlowDialog(y,function(R,O){D.onFixFlowCompleteCallback_(F,R,O)},function(){return D.changeButtonState(I,!1)},function(){D.changeButtonState(I,!1);
D.logFixFopEvent_(F,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(I,y,D){var F=_.jF("payments.business.integration.scenario.FixInstrument");if(y==F.IntegratorCallbackType.ON_COMPLETE){y="FIX_FOP_EVENT_TYPE_CANCEL";var R=null;D.error!=null?D.error!=F.OnCompleteCallbackError.USER_CANCELLED&&(_.GC(this.hostElement,[I.errorAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_FAILURE",R="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.GC(this.hostElement,[I.successAction],this.hostElement),y="FIX_FOP_EVENT_TYPE_SUCCESS");_.GC(this.hostElement,[I.onFinishAction],
this.hostElement);this.logFixFopEvent_(I,y,R)}},
logFixFopEvent_:function(I,y,D){(I=I.serializedFixFopLoggingParams)?(y={eventType:y,serializedFixFopLoggingParams:I},D!=null&&(y.errorType=D),_.Jq("fixFopFlow",y),_.wI()):_.vu(Error("tm"))},
changeButtonState:function(I,y){_.l("enable_ypc_spinners")&&I&&(I.is==="yt-button-renderer"||I.is==="ytd-button-renderer")&&(I.disabled=y)}}];var SkS=function(I){this.JSC$33789_clientRoot=I;this.feedbackCollectorActionMap={"yt-help-dialog-requested":bza,"yt-feedback-dialog-requested":$0o,"yt-signal-action-help":Hze,"yt-signal-action-send-feedback":eMG,"yt-send-feedback-action":sLo,"yt-user-feedback-endpoint":V0g};_.qM(_.uK.getInstance(),this.feedbackCollectorActionMap,this.JSC$33789_clientRoot)},tYV;var Pi0=function(I){this.JSC$33794_clientRoot=I;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Zz8.bind(null,this.JSC$33794_clientRoot),"yt-signal-action-delete-all-downloads":Ih1,"yt-signal-action-delete-download":y4y,"yt-signal-action-delete-playlist-download":FVg,"yt-signal-action-install-pwa":vXa,"yt-signal-action-refresh-downloads":J4G,"yt-offline-video-endpoint":tqa,"yt-offline-playlist-endpoint":KVa,"yt-update-local-app-setting-command":r4y,"yt-offline-orchestration-action-command":oXY,
"yt-signal-action-undo-delete-download":O2a,"yt-local-watch-history-command":xVe,"yt-signal-action-mark-download-to-mobile-edu-shown":udC};_.qM(_.uK.getInstance(),this.downloadManagerActionMap,this.JSC$33794_clientRoot);_.vp.instance=new _.vp},K4V;var He=function(){var I=_.k.apply(this,arguments)||this;I.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_"};I.remoteApi_=null;return I};
_.E(He,_.k);_.L=He.prototype;
_.L.ready=function(){_.l("polymer_enable_mdx")&&(fdo({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.l("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.l("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.l("enable_cast_short_lived_lounge_token")}),_.ar("yt-remote-connection-change",this.handleConnectionChange_,this),_.ar("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=adQ())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.L.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.L.handleConnectionChange_=function(I){(this.mdxConnected=I)?(I=m4C(),!I&&PVb()&&KZb()&&(I={key:"cast-selector-receiver",name:KZb()}),I=I.name):I=null;this.receiverName=I;_.rM(this.remoteApi_);(this.remoteApi_=adQ())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.L.handleReceiverAvailabilityChange_=function(){var I=p4e();PVb()&&_.bX("yt-remote-cast-available")&&I.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=I.length>0};
_.L.handleRemoteQueueChange_=function(){var I=this.currentVideoId_,y=this.currentListId_,D=cz(this.remoteApi_);this.currentVideoId_=D.videoId;this.currentListId_=D.listId;this.currentVideoId_&&_.uj(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.l("polymer_enable_mdx_queue")?this.currentListId_:null,I,y])};
_.L.handleAddToQueueAction_=function(I){I=_.u(I,wJR);this.remoteApi_&&(I.videoId?this.remoteApi_.addVideo(I.videoId):I.playlistId&&this.remoteApi_.addPlaylist(I.playlistId))};
_.L.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.L.handleInsertInQueueAction_=function(I){I=_.u(I,vuZ);this.remoteApi_&&I.videoId&&this.remoteApi_.JSC$20060_insertVideo(I.videoId)};
_.L.handleRemoveFromQueueAction_=function(I){I=_.u(I,S0b);this.remoteApi_&&I.videoId&&this.remoteApi_.JSC$20060_removeVideo(I.videoId)};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],He.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M(),_.A("design:type",Object)],He.prototype,"appId",void 0);_.W([_.M(),_.A("design:type",Boolean)],He.prototype,"mdxConnected",void 0);_.W([_.M(),_.A("design:type",Boolean)],He.prototype,"receiverAvailable",void 0);_.W([_.M(),_.A("design:type",Object)],He.prototype,"receiverName",void 0);_.W([_.M(),_.A("design:type",Object)],He.prototype,"currentVideoId_",void 0);
_.W([_.M(),_.A("design:type",Object)],He.prototype,"currentListId_",void 0);_.W([_.I6({is:"yt-mdx-manager",disableElementRegistration:!0})],He);_.a(He,"yt-mdx-manager",void 0,{mode:2});var U_a;var rWH;var eO=function(){var I=_.k.apply(this,arguments)||this;I.APP_IDS={ytr:3,ytm:5};I.JSC$23160_timeoutId_=0;I.actionMap={"yt-open-create-family-dialog":"open"};return I};
_.E(eO,_.k);_.L=eO.prototype;_.L.created=function(){jRC(2200)};
_.L.detached=function(){this.observer_&&this.observer_.disconnect()};
_.L.open=function(I,y){var D=this,F=I.serializedYpcFamilyCreateLoggingParams;this.JSC$23160_timeoutId_=setTimeout(this.abort_.bind(this,I.postFlowErrorEndpoint,F),3E4);y&&(this.onReadyCallback_=y);var R=_.XB(this.hostElement).querySelector("#unicorn-iframe");F&&F&&J9o("ypcFamilyCreateFlowStarted",F);_.PWC("family_creation",function(){var O=_.jF("gapi.family_creation.render");_.jF("gapi.config.update")("iframes/family_creation/url",D.getFamilyCreationUrlWithUnicornParams_());var w=3;I.appId&&I.appId in
D.APP_IDS&&(w=D.APP_IDS[I.appId]);w={authUser:_.Pi("SESSION_INDEX")||0,clientId:w,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Pi("HL"),initialflow:[4,5,6,7],m:D.isMobile?1:0,onFlowComplete:D.onUnicornFlowComplete_.bind(D,I.postFlowSuccessEndpoint,F),onError:D.onUnicornFlowError_.bind(D,I.postFlowErrorEndpoint,F),onReady:D.onUnicornFlowReady_.bind(D,I.referencePcidParams)};O(R,w)})};
_.L.close=function(){_.XB(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.L.onUnicornFlowComplete_=function(I,y){this.close();y&&y&&J9o("ypcFamilyCreateFlowSucceeded",y);_.lj(this.hostElement,"yt-navigate",{endpoint:I})};
_.L.onUnicornFlowError_=function(I,y){this.close();y&&J9o("ypcFamilyCreateFlowCancelled",y);_.lj(this.hostElement,"yt-navigate",{endpoint:I})};
_.L.onUnicornFlowReady_=function(I){var y=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();I&&_.jF("gapi.family_creation.setConfig")(0,I);this.observer_=new MutationObserver(function(){_.XB(y.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.XB(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.XB(this.hostElement).querySelector("#dialog").open()};
_.L.getFamilyCreationUrlWithUnicornParams_=function(){return _.Pi("YTR_FAMILY_CREATION_URL")};
_.L.getCurrentUrl_=function(){return document.location.href};
_.L.abort_=function(I,y){this.clearTimeout_();this.onUnicornFlowError_(I,y)};
_.L.clearTimeout_=function(){clearTimeout(this.JSC$23160_timeoutId_)};
_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],eO.prototype,"ytActionHandlerBehavior",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],eO.prototype,"isMobile",void 0);_.W([_.M(),_.A("design:type",Object)],eO.prototype,"onReadyCallback_",void 0);_.W([_.M(),_.A("design:type",Object)],eO.prototype,"observer_",void 0);_.W([_.I6({is:"yt-create-family-dialog",disableElementRegistration:!0})],eO);
_.a(eO,"yt-create-family-dialog",function(){if(rWH===void 0){var I=document.createElement("template");_.G(I,'\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');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);var y=I.content,D=y.insertBefore;U_a===void 0&&(U_a=document.createElement("template"));var F=U_a;D.call(y,F.content.cloneNode(!0),I.content.firstChild);rWH=I}I=rWH;return I},{mode:2});var jBV;var oQs;var Ty=function(){var I=_.k.apply(this,arguments)||this;I.STEP=1;I.BLOCK_ON=80;I.MIN_PROGESS=0;I.MAX_PROGESS=100;return I};
_.E(Ty,_.k);_.L=Ty.prototype;_.L.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.L.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));_.nR().addProvider({provide:tBG,useValue:this})};
_.L.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.L.finish=function(){var I=this;this.progress=this.MAX_PROGESS;qma(function(){I.progress==I.MAX_PROGESS&&(I.hostElement.hidden=!0)})};
_.L.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.mD.Object.defineProperties(Ty.prototype,{progress:{configurable:!0,enumerable:!0,set:function(I){this.progress_=I;var y="scaleX("+I/this.MAX_PROGESS+")",D=_.XB(this.hostElement).querySelector("#progress").style;D.transform=y;D.webkitTransform=y;this.hostElement.setAttribute("aria-valuenow",String(I))},
get:function(){return this.progress_}}});
_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.W([_.I6({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Ty);
_.a(Ty,"yt-page-navigation-progress",function(){if(oQs===void 0){var I=document.createElement("template");_.G(I,'\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');I.content.insertBefore(_.b().content.cloneNode(!0),
I.content.firstChild);var y=I.content,D=y.insertBefore;jBV===void 0&&(jBV=document.createElement("template"));var F=jBV;D.call(y,F.content.cloneNode(!0),I.content.firstChild);oQs=I}I=oQs;return I},{mode:2});var NjS={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"},hD0={"font-size":"12px","font-style":"italic"},x_n={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Qhb=function(){return _.S(function(I){_.Cj(I)})};var ltq=_.d(function(I){var y=function(){return I.data().subtext},D={};
return _.t("snackbar-view-model",{class:_.XH("snackbarViewModelHost",I.className)},_.t("div",{class:_.XH("snackbarViewModelEngagementBarWrapper",I.className)},_.t(_.U,{cond:function(){return I.data().image},
then:function(F){return _.t(_.UE,{data:F,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.t(_.U,{cond:function(){return I.data().imageContent},
then:function(){return _.t("div",{class:"snackbarViewModelAvatarContainer"},_.t(_.aP,{data:function(){return I.data().imageContent}},{decoratedAvatarViewModel:_.Jh}))}}),_.t("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.t("div",{class:_.XH((D.snackbarViewModelTitle=!0,D.snackbarViewModelTitleWithSubtext=y,D))},_.t(_.jr,{text:function(){return I.data().text}})),_.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"snackbarViewModelSubtext"},_.t(_.jr,{text:function(){return y()}}))}})),_.t(_.U,{cond:function(){return I.data().buttons},
then:function(){return _.t("div",{class:"snackbarViewModelButtonClassWrapper"},_.t(_.aP,{data:function(){return I.data().buttons}},{buttonViewModel:function(F){return _.t(_.My,{data:F.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:I.target})}}))}})))},"cm");_.NK(_.d(function(){function I(z,B,C){q(z);f(C);h("in");r(!0);y(z,B);w=setTimeout(function(){D()},B)}
function y(z,B){var C,H=(C=z.text)==null?void 0:C.content;z=_.Tj(z.rendererContext);H&&(B={label:H,command:z,durationMs:B},_.nR().resolve(_.uY).enqueue(B))}
function D(z){h("out");z&&clearTimeout(w)}
function F(){D(!0)}
function R(z){if(z){var B=z.snackbarViewModel,C=z.durationMs,H=z.target;C||(C=3E3);B&&(z=_.nR().resolve(_.fR(_.og)))&&z.enqueue({isOpened:K,open:function(){I(B,C,H)},
close:D},0)}}
var O=_.Fh("snackbar-container"),w=void 0,v=_.J(_.$M(!1,void 0,"mDc5N")),P=v.next().value;v=v.next().value;var K=P,r=v;P=_.J(_.$M("out",void 0,"FpOs5e"));var N=P.next().value,h=P.next().value;P=_.J(_.$M(void 0,void 0,"jIDRob"));var x=P.next().value,q=P.next().value;P=_.J(_.$M(void 0,void 0,"kOA3Mb"));var X=P.next().value,f=P.next().value,m=_.YY(function(){if(N()==="out"){r(!1);q(void 0);f(void 0);var z=_.nR().resolve(_.fR(_.og));z&&$2e(z,0)}});
_.LR(function(){var z=_.nR().resolve(_.fR(_.k_e));z&&(z.showSnackbarFn=R,z.closeSnackbarFn=F)});
return _.t("snackbar-container",{class:"ytSnackbarContainerHost",el:O},_.t(_.U,{cond:function(){return K()&&!!x()},
then:function(){var z={};return _.t("div",{class:_.XH("ytSnackbarContainerSnackbarContainer",(z.ytSnackbarContainerMobile=!1,z.ytSnackbarContainerPivotBar=function(){var B;return!((B=_.nR().resolve(_.fR(_.dRa)))==null||!B())},z.ytSnackbarContainerOpened=function(){return K()&&N()==="in"},z.ytSnackbarContainerClosed=function(){return K()&&N()==="out"},z)),
"on:animationend":m},_.t(ltq,{data:function(){return x()},
target:function(){return X()}}))}}))},"dm"),"snackbar-container");_.NK(_.O8n,"yt-tooltip");var uyg=_.la1.ephemeralActionSelector;_.NK(_.d(function(){var I=_.dV(uyg);return _.t("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var y;return(y=I())==null?void 0:y.announcement})},"em"),"yt-ephemeral-actions");var eva=new Map;var I6C=function(I,y){var D=this;this.handleError=I;this.logEventInternal=y;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){D.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
I6C.prototype.logError=function(I){this.handleError(I)};
I6C.prototype.logEvent=function(I,y){switch(I){case "IDB_DATA_CORRUPTED":_.l("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",y);break;case "IS_SUPPORTED_COMPLETED":_.l("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",y);break;case "QUOTA_EXCEEDED":qko(this,y);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":I=Object.assign({},y,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",I)}};
var qko=function(I,y){_.Eo.getInstance().estimate().then(function(D){D=Object.assign({},y,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:shC(D==null?void 0:D.usage),deviceStorageQuotaMbytes:shC(D==null?void 0:D.quota)});I.logEventInternal("idbQuotaExceeded",D)})};var EQC=_.d(function(I){var y=_.DF("yt-draggable"),D=I.onDrag,F=I.onDragStart,R=I.onDragEnd,O=_.o6(I,{allowClicks:!1,dragThreshold:5}),w=O.dragThreshold,v=O.allowClicks;I=O.children;O=O.className;var P=void 0,K=void 0,r=new _.XO(0,0),N=!1;_.LR(function(){P=new _.LH(y.value);K=new _.kC(x);h(P,K);if(v()){_.ZZc(P,w());var X;(X=y.value)==null||X.addEventListener("click",q,{capture:!0})}_.tI(function(){var f;(f=P)==null||f.dispose();if(v()){var m;(m=y.value)==null||m.removeEventListener("click",q,{capture:!0})}})});
var h=function(X,f){_.bV(X,"earlycancel",function(){v()&&(N=!1)});
_.bV(X,"start",function(m){F==null||F(m);m.defaultPrevented||v()&&(N=!0)});
_.bV(X,"beforedrag",function(m){P&&K&&(m.preventDefault(),r=new _.XO(m.clientX-P.startX,m.clientY-P.startY),K.start())});
_.bV(X,"end",function(){f.stop();R==null||R();r=new _.XO(0,0)})},x=function(){r&&D(r)},q=function(X){N&&(N=!1,X.stopPropagation(),X.preventDefault())};
return _.t("yt-draggable",{el:y,class:_.XH("ytDraggableComponentHost",O)},I)},"fm");var Gd$=_.d(function(I){var y=_.J(_.$M(0,void 0,"Qf0tbc")),D=y.next().value,F=y.next().value;y=function(R){var O={},w={};return _.t(EQC,{className:_.XH("ytdMiniplayerComponentResizer",(O.ytdMiniplayerComponentResizerDisabled=function(){return R===I.horizontalAlignment()||R===I.verticalAlignment()},O.ytdMiniplayerComponentResizerNorth=R==="north",O.ytdMiniplayerComponentResizerEast=R==="east",O.ytdMiniplayerComponentResizerSouth=R==="south",O.ytdMiniplayerComponentResizerWest=R==="west",O)),
onDragStart:function(){F(I.currentMiniplayerSize());if(I.onResizeStart)I.onResizeStart()},
onDrag:function(v){R!=="north"&&R!=="west"||v.scale(-1);var P;v=(P=R==="north"||R==="south")?v.y:v.x;var K=I.currentAspectRatio();P&&K>=1?v*=K:!P&&K<1&&(v/=K);P=v;I.onResize(D()+P)}},_.t("div",{class:_.XH("ytdMiniplayerComponentResizerCorner",(w.ytdMiniplayerComponentResizerNorthCorner=R==="north",w.ytdMiniplayerComponentResizerEastCorner=R==="east",w.ytdMiniplayerComponentResizerSouthCorner=R==="south",w.ytdMiniplayerComponentResizerWestCorner=R==="west",w))}))};
return _.t("div",{class:"ytdMiniplayerComponentResizers"},y("north"),y("east"),y("south"),y("west"))},"gm");var Xds=16/9;_.NK(_.d(function(){var I=_.DF("ytd-miniplayer"),y=_.J(_.$M(new _.ad(NaN,NaN),void 0,"i8Divd")),D=y.next().value,F=y.next().value;y=_.J(_.$M(!1,void 0,"M0mb9d"));var R=y.next().value,O=y.next().value;y=_.J(_.$M(!1,void 0,"U2besf"));var w=y.next().value,v=y.next().value;y=_.J(_.$M(!1,void 0,"oMkCO"));var P=y.next().value,K=y.next().value;y=_.J(_.$M(!1,void 0,"LLG3Bf"));var r=y.next().value,N=y.next().value;y=_.J(_.$M(!1,void 0,"m7HPQe"));var h=y.next().value,x=y.next().value;y=_.J(_.$M(!1,void 0,"jUGfuc"));
var q=y.next().value,X=y.next().value;y=_.J(_.$M(Xds,void 0,"LkUsDe"));var f=y.next().value,m=y.next().value,z=_.J(_.$M(!1,void 0,"xKE3oe"));y=z.next().value;var B=z.next().value;z=_.J(_.$M(!1,void 0,"QQ32Je"));var C=z.next().value,H=z.next().value;z=_.J(_.$M(void 0,void 0,"LRAn3"));var e=z.next().value,T=z.next().value;z=_.J(_.$M(hc()?"west":"east",void 0,"ZPTxkd"));var L5=z.next().value,vH=z.next().value;z=_.J(_.$M("south",void 0,"XYTr4"));var u_=z.next().value,jW=z.next().value;z=_.J(_.$M(400,
void 0,"hJycJe"));var xA=z.next().value,dq=z.next().value;z=_.nR().resolve(_.OI).miniplayerPropSignalMap[0];var $A=z.data,BH=z.externalPlaylistData,jf=z.playabilityStatus,yg=z.isReadyToResume,eW=z.isDisabled,oe=z.watchWhile,xP=z.playerVe,XW=z.expandVe,zo=z.closeVe,Ub=z.readyToResumeVe,rq=z.readyToResumeCloseVe,ao=z.repositionVe,rc=z.resizeVe;z=_.J(_.N4(yg));var Ta=z.next().value,f_=z.next().value,mM=_.dV(_.LV.persistentPanelVisibleSelector),M_=!1,ZR=!1,rG;_.LR(function(){F(_.cF());I.value.addEventListener("animationend",
function(AM){AM.target===I.value&&(x(!1),X(!1))});
DO8(I.value)});
_.GU("yt-window-resized",function(AM){AM&&F(AM)});
var $P=function(){rG&&m(rG.getVideoAspectRatio())},HC=function(){if(rG){var AM=rG.getPlayerState()===1;
Ta()&&AM&&f_(!1)}},vG=function(){var AM=XW();
if(AM){var oT=_.VO(3);oT&&_.SI(oT,AM)}},jg=function(){var AM=zo(),oT=rq();
AM&&_.SI(_.VO(3),AM);yg()&&oT&&_.SI(_.VO(3),oT)};
_.GU("yt-activate-miniplayer",function(AM){var oT;return _.S(function(ZQ){if(ZQ.nextAddress==1)return R()?ZQ.return():ZQ.yield((oT=_.nR().resolve(_.OI).getPlayerElement())==null?void 0:oT.getPlayerPromise(),2);rG=ZQ.yieldResult;if(!rG)return ZQ.return();!C()&&_.l("kevlar_watch_while_v2")&&(jW(AM&&!_.l("kevlar_watch_while_bottom_align")?"north":"south"),vH(hc()?"west":"east"));var Ox=rG;Ox.addEventListener("onVideoDataChange",$P);Ox.addEventListener("onStateChange",HC);Ox.addEventListener("onExpandMiniplayer",
vG);Ox.addEventListener("onCloseMiniplayer",jg);m(rG.getVideoAspectRatio());O(!0);yPa()||x(!0);_.Cj(ZQ)})});
_.GU("yt-deactivate-miniplayer",function(AM,oT){return _.S(function(ZQ){if(!R())return ZQ.return();O(!1);f_(!1);X(AM);N(!1);v(!1);if(rG){var Ox=rG;Ox.removeEventListener("onVideoDataChange",$P);Ox.removeEventListener("onStateChange",HC);Ox.removeEventListener("onExpandMiniplayer",vG);Ox.removeEventListener("onCloseMiniplayer",jg)}yPa()||oT?oT&&x(!1):x(!0);_.Cj(ZQ)})});
var UO=function(){return!(oe()&&_.l("kevlar_watch_while_modern"))},HG=function(){var AM;
return!((AM=BH())==null||!AM.contents)},cG=function(){var AM=xA();
var oT=D();oT=Math.min(Math.min(oT.width,oT.height)-32,720);var ZQ=f(),Ox=UO(),qa=HG()&&w(),aB=Math.min(AM,oT);AM=new _.ad(192,Ox?116:192);ZQ=new _.ad(qa?Xds:ZQ,1);aB=new _.ad(aB,Ox?aB-76:aB);aB=ZQ.aspectRatio()>aB.aspectRatio()?aB.width/ZQ.width:aB.height/ZQ.height;ZQ=ZQ.scale(aB);AM.width<=ZQ.width&&AM.height<=ZQ.height||(AM=ZQ.aspectRatio()<=AM.aspectRatio()?AM.width/ZQ.width:AM.height/ZQ.height,ZQ.scale(AM),ZQ.width=Math.min(ZQ.width,oT),ZQ.height=Math.min(ZQ.height,oT));return new _.ad(ZQ.width,
_.IL(192,ZQ.height+LWy(Ox,qa),720))},vC=function(){var AM=cG(),oT=UO(),ZQ=HG()&&w();
return new _.ad(AM.width,AM.height-LWy(oT,ZQ))},AV=function(){var AM=function(oT){oT.target===I.value&&r()&&(N(!1),I.value.removeEventListener("transitionend",AM))};
yPa()||(I.value.addEventListener("transitionend",AM),N(!0));v(!w())};
_.wZ(function(){var AM=xP(),oT=_.VO(3),ZQ=_.s_(3);if(oT&&ZQ&&AM){_.Oc(oT,ZQ,AM);ZQ=ao();var Ox=rc(),qa=XW(),aB=zo(),mE=rq();qa&&aB&&mE&&(_.LC(oT,AM,[qa,aB,mE]),_.wH(oT,[qa,aB]));ZQ&&Ox&&_.LC(oT,AM,[ZQ,Ox])}},"UatZXe");
_.wZ(function(){var AM=Ub();if(AM){var oT=_.VO(0),ZQ=_.s_(0);oT&&ZQ&&(_.Oc(oT,ZQ,AM),_.wH(oT,[AM]))}},"kTR4R");
z={};return _.t("ytd-miniplayer",{el:I,class:_.XH("ytdMiniplayerComponentHost",(z.ytdMiniplayerComponentVisible=function(){return(R()||h())&&!(oe()&&_.l("kevlar_watch_while_counterfactual"))},z.ytdMiniplayerComponentAnimatingSnap=P,z.ytdMiniplayerComponentAnimatingPlaylistExpand=r,z.ytdMiniplayerComponentAnimatingFade=h,z),function(){if(h()){var AM=u_();
var oT=R(),ZQ=q();AM=oT?AM==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":ZQ?AM==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":AM==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else AM="";return AM}),
style:_.p4({top:function(){return u_()==="north"?"16px":""},
right:function(){var AM=L5(),oT=mM();oT=(oT===void 0?0:oT)&&!hc()?400:0;return AM==="east"?16+oT+"px":""},
bottom:function(){return u_()==="south"?"16px":""},
left:function(){var AM=L5(),oT=mM();oT=(oT===void 0?0:oT)&&hc()?400:0;return AM==="west"?16+oT+"px":""},
width:function(){return cG().width+"px"},
height:function(){return cG().height+"px"},
transform:function(){var AM=e();return AM?"translate("+AM.x+"px, "+AM.y+"px)":""}})},_.t("div",{class:"ytdMiniplayerComponentContent"},_.t(EQC,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(AM){var oT=OAa(L5(),u_(),D(),cG(),e()),ZQ=vC();Math.abs(AM.clientY-(oT.y+ZQ.height))>15?(B(!0),AM=_.VO(3),oT=ao(),M_||(M_=!0,AM&&oT&&_.wH(AM,[oT])),AM&&oT&&_.SI(AM,oT)):AM.preventDefault()},
onDrag:function(AM){T(AM)},
onDragEnd:function(){var AM=FWC(OAa(L5(),u_(),D(),cG(),e()),D(),cG()),oT=Rre(L5(),u_(),D(),cG(),mM()),ZQ=Rre(AM.horizontalAlignment,AM.verticalAlignment,D(),cG(),mM());ZQ=new _.XO(ZQ.x-oT.x,ZQ.y-oT.y);var Ox;oT=oT.y+(((Ox=e())==null?void 0:Ox.y)||0)+cG().height/2;var qa=function(){L5()===AM.horizontalAlignment&&u_()===AM.verticalAlignment||H(!0);vH(AM.horizontalAlignment);jW(AM.verticalAlignment);T(void 0)},aB=function(mE){mE.target===I.value&&P()&&(K(!1),qa(),I.value.removeEventListener("transitionend",
aB))};
B(!1);u_()==="south"&&oT>D().height?(qa(),_.nR().resolve(_.OI).close()):(I.value.addEventListener("transitionend",aB),K(!0),T(ZQ))}},_.t(_.U,{cond:R,
then:function(){return _.t(_.Gma,{isDisabled:eW,playabilityStatus:jf,size:vC})}}),_.t(_.U,{cond:UO,
then:function(){return _.t(_.qlY,{isReadyToResume:Ta,data:$A,expanded:w,onExpandClick:AV,playlistData:BH})}}),_.t(_.U,{cond:y,
then:function(){return _.t("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.t(_.U,{cond:function(){return HG()&&w()||r()},
then:function(){return _.t(_.kqZ,{className:"ytdMiniplayerComponentPlaylistPanel",data:BH,hideHeaderText:!0,withinMiniplayer:!0})}})),_.t(Gd$,{onResize:function(AM){dq(_.IL(192,AM,720))},
onResizeStart:function(){var AM=_.VO(3),oT=rc();ZR||(ZR=!0,AM&&oT&&_.wH(AM,[oT]));AM&&oT&&_.SI(AM,oT)},
currentAspectRatio:f,currentMiniplayerSize:xA,horizontalAlignment:L5,verticalAlignment:u_}))},"jm"),"ytd-miniplayer",{});var QBo=_.LV.persistentPanelVisibleSelector,sa=function(){var I=_.k.apply(this,arguments)||this;I.tabGesturesIsActive=!1;I.persistentPanelEnabled=_.l("enable_ai_companion");I.hasDelegation=!1;I.isFrostedGlassInitialized=!1;I.frostedGlassExp=_.l("web_frosted_glass");I.hasPendingWatchNavigation=!1;I.mastheadHiddenFocusWithinKillswitch=_.l("web_masthead_hidden_focus_within_killswitch");I.clientOnlyWizTooltipsEnabled=_.l("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
I.scrollAtTopInternal=!0;I.guideScrollTop=0;I.isTheaterModeSession=_.KR("START_IN_THEATER_MODE");I.iMaxTheaterMode=_.l("web_watch_imax_theater_mode");I.isFullWindowSession=_.KR("START_IN_FULL_WINDOW_MODE");I.hasCreateFamilyDialog=!1;I.mastheadHeight=56;I.networkStatusManager=new _.x7;I.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"};I.dynamicActionMap={"yt-run-attestation-command":function(y){var D=_.lto.instance,F=_.u(y,_.jcM);return F?_.l("use_rta_manager_for_async")&&
(_.l("attmusi")&&_.l("attmusi_ue")?window.attmp:Xua())?U28(D,F,y.clickTrackingParams):KqG(D,F,y.clickTrackingParams):_.eE(Error("si"))}};
I.isFrostedGlassDisabled=!1;I.isChannelOrPlaylistPage=!1;return I};
_.E(sa,_.k);_.L=sa.prototype;_.L.created=function(){var I=_.nR();_.l("kevlar_clear_duplicate_pref_cookie")&&_.y9(_.w2,function(){var y=_.eF.get("PREF");y&&!/f\d=/.test(y)&&(y=_.d6("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=y?"PREF=null;domain="+y+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.l("gzip_gel_with_worker")&&_.R0S();_.l("jspb_serialize_with_worker")&&S1Z();_.l("web_worker_availability_check")&&TJo();_.l("nwl_init_killswitch")||wr1().then(function(){_.w2.addLowPriorityJob(iQy)});
this.pageManagerAttachedPromise=_.vS();this.ytdAppBehavior.loadDepsPromise=_.yL([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.n4(this.onThrottledScroll,200,this);_.l("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);ypo();v0Q=!!_.jF("ytappsettings.initialized");C5G=_.jF("ytappsettings.previousValue");BUG=_.jF("ytappsettings.previousSnapshotTime");v0Q||(v0Q=!0,iD1());SEb();tpo();_.tG("DEFERRED_DETACH",
_.l("kevlar_tuner_should_defer_detach"));_.tG("REUSE_COMPONENTS",!0);_.tG("STAMPER_STABLE_LIST",!0);_.tG("SCHEDULED_LAZY_LIST",!0);_.tG("openPopupConfig",ezb);_.tG("useClickHandler",!0);_.l("kevlar_shell_cleanup")&&_.w2.addLowPriorityJob(EiC.bind(this,_.Ft.caches));_.KR("IS_SHELL_LOAD")&&_.ek({shellStartupDurationMs:Math.round((0,_.m_)()-IX())});pqa(this.networkStatusManager);_.l("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",EXY(NjS)),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!",
EXY(hD0)),console.log("%cVisit http://go/join-youtube-web to apply today.",EXY(x_n)));yrY(I.resolve(_.xO),1E3)};
_.L.ready=function(){var I=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var y=XrT();y&&!_.l("external_fullscreen_killswitch")&&document.addEventListener(y,this.setFullscreen.bind(this));(y=window.matchMedia("(prefers-color-scheme: dark)"))&&y.addEventListener&&y.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(y=_.nR().resolve(_.fR(_.leM)))y.subscribe("navigation-start",
function(D){D.destinationPageSubtype==="watch"&&(I.hasPendingWatchNavigation=!0)}),y.subscribe("navigation-end",function(D){D.destinationPageSubtype==="watch"&&(I.hasPendingWatchNavigation=!1)})};
_.L.attached=function(){var I=this;_.oJ().processSignal("ci");_.l("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.MZR?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Mv(_.mHC(),"SUCCESS");this.updateIconSet();_.h9(this.guideInnerContent,!1);_.$D().initVisibilityObserver();this.guideService.guideElement=this.guide;var y=document.createElement("ytd-miniplayer"),D=_.XB(this.hostElement).querySelector("#content");
_.XB(this.hostElement).insertBefore(y,D);_.oJ().processSignal("ma");_.nR().resolve(_.OI).init(y);this.persistentPanelEnabled&&cdR(this.persistentPanelContainer,"APP");_.KR("IS_SHELL_LOAD")&&(D=document.createElement("ytd-network-status-banner"),_.XB(this.hostElement).insertBefore(D,y));_.l("kevlar_right_click_on_lockups")&&_.SJ._onCaptureClick&&document.addEventListener("contextmenu",_.SJ._onCaptureClick.bind(_.SJ),!0);var F=function(){var R=_.qy("yt-page-navigation-progress");_.XB(I.hostElement).appendChild(R)};
setTimeout(function(){_.oJ().parkOrScheduleJob(F,0,"eocs",16)},0);
_.l("service_worker_push_enabled")&&_.y9(_.w2,L9R);_.qM(_.uK.getInstance(),this.dynamicActionMap,this.hostElement);_.lj(this.hostElement,"ytd-app-attached");_.oJ().processSignal("aa");tCY(this.hostElement);_.fv("gapi.load",_.PWC);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.y9(_.w2,
function(){var R=document.createElement("ytd-video-preview");_.XB(_.XB(I.hostElement).querySelector("#video-preview")).appendChild(R)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.y9(_.w2,function(){YmT();I.registerWithViewTransitionManager()});
if(_.w4()&&this.isAppDarkTheme()!==_.Lg())this.onDarkModeToggledAction();else y=_.Jt()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==y&&(_.l("enable_dark_theme_only_on_shorts")?_.FB(_.l("enable_dark_theme_only_on_shorts_control")?window.location.href:_.uP(window.location.href,{theme:"dark"})):_.tq(new _.g6("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(ZUG=new V_y(this.hostElement)),K4V=new Pi0(this.hostElement),tYV=new SkS(this.hostElement),olb=new jSC(this.hostElement)};
_.L.getThemeSettingsToLog=function(){var I=_.Jt()==="USER_INTERFACE_THEME_DARK";I=_.w4()?_.Lg()?"os-dark":"os-light":I?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:I,cookiesEnabled:_.sJ()}};
_.L.detached=function(){_.xI(this.guideInnerContent);_.w2.cancelJob(DUe);DUe=0;_.w2.cancelJob(LQy);LQy=0;_.oY4(S_C);S_C.length=0;JRQ=_.wj4=null;_.$D().dispose();_.l("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.EN(_.uK.getInstance(),ZUG.playlistHandlerActionMap,ZUG.JSC$33348_clientRoot);_.EN(_.uK.getInstance(),K4V.downloadManagerActionMap,K4V.JSC$33794_clientRoot);_.EN(_.uK.getInstance(),tYV.feedbackCollectorActionMap,tYV.JSC$33789_clientRoot);
for(var I=_.J(olb.eventListeners),y=I.next();!y.done;y=I.next()){var D=_.J(y.value);y=D.next().value;D=D.next().value;D=_.J(D);for(var F=D.next();!F.done;F=D.next()){var R=_.J(F.value);F=R.next().value;R=R.next().value;y.removeEventListener(F,R)}}_.EN(_.uK.getInstance(),olb.autonavPauseActionMap,olb.JSC$21620_clientRoot)};
_.L.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.a1().getFlag(186)};
_.L.computeIsInlinePreviewEnabled=function(I,y,D){return!D&&SAQ({miniplayerIsActive:I,miniplayerPlaybackState:y})};
_.L.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_FROSTED_GLASS_MODE",payload:!_.l("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"}))};
_.L.computeIsFrostedGlassDisabled=function(I,y,D,F){return I||y||D||F&&_.l("web_frosted_glass_disable_watch")};
_.L.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.l("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.L.computeIsHomePage=function(I,y){if(!I||y==null||!y.endpoint)return!1;var D;return((D=_.u(y.endpoint,_.kc))==null?void 0:D.browseId)==="FEwhat_to_watch"};
_.L.updateIsChannelOrPlaylistPage=function(){if(_.l("web_frosted_glass")){var I,y,D=(y=(I=_.nR().resolve(_.fR(_.ja)))==null?void 0:I.getCurrentPage())==null?void 0:y.pageSubtype;this.isChannelOrPlaylistPage=D?["channel","channels","playlist"].includes(D):!1}};
_.L.scheduleFrostedGlassInitialization=function(){var I=this;_.l("web_frosted_glass")&&_.oJ().parkOrScheduleJob(function(){I.isFrostedGlassInitialized=!0},0,xo(["eocs",
"cr"]),300)};
_.L.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Jbu(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Ec({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.L.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(TXZ(!0))};
_.L.onYtSignalActionRequestPersistentStorage=function(){if(!_.l("request_persistent_storage_killswitch")){var I=_.nR().resolve(_.LEG);I.cachedPersistStatePromise||(I.cachedPersistStatePromise=RPe())}};
_.L.handleYtChannelCreationFormEndpoints=function(I){I&&this.ytComponentBehavior.resolveCommand(I)};
_.L.handleShowEngagementPanelEndpoint=function(I){I&&this.ytComponentBehavior.resolveCommand(I)};
_.L.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(TXZ(!1))};
_.L.initIconDefs=function(I,y){var D=document.createElement("iron-iconset-svg");D.name=I;I=document.createElementNS("http://www.w3.org/2000/svg","svg");D.appendChild(I);I.appendChild(y);document.body.appendChild(D);return D};
_.L.onWindowResized=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var I=_.MF.getInstance();I.documentWidth_=document.body.clientWidth;p2a(I)};
_.L.onWindowScrolled=function(){var I=_.nR().resolve(_.ja).getCurrentPage();if(I!=null&&I.getScrollTop){var y=this.ytdReduxBehavior,D=y.dispatch;I=I.getScrollTop()<=0;D.call(y,_.Ec({type:"SET_SCROLL_AT_TOP",payload:I}))}};
_.L.guideIsVisibleButNotPersistentSelectorChanged=function(){var I=_.nR().resolve(_.ja).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=I.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"),
I.setScrollTop(this.guideScrollTop));_.qr(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.L.getCurrentPageScrollableElementType=function(){var I=_.nR().resolve(_.ja).getCurrentPage();if(I&&I.getPageScrollingElement())return I.getPageScrollingElement().nodeName};
_.L.observeGuideVisibility=function(){var I=_.MF.getInstance(),y=this.miniGuideVisible;I.guidePersistentAndVisible_=this.guidePersistentAndVisible;I.miniGuideVisible_=y;p2a(I)};
_.L.observePersistentPanelVisibility=function(){var I=_.MF.getInstance();I.persistentPanelVisible_=this.persistentPanelVisible;p2a(I)};
_.L.handleEduDismissAction=function(I){I&&I.eduDismissAction&&(_.uj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.PNf.getInstance(),_.pJ.set(I.eduDismissAction.key+"-dismissed",!0))};
_.L.handleEduImpressionAction=function(I){if(I&&I.eduImpressionAction){var y=_.PNf.getInstance();I=I.eduImpressionAction.key;y.JSC$13460_eduDisplayedThisLoad_[_.tcM[I].setKey||I]=!0;_.pJ.set(I+"-impression",parseInt(_.pJ.get(I+"-impression")||0,10)+1)}};
_.L.onYtSignalActionConfirmMentionsEdu=function(){_.uj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.kD.getInstance();_.zL.set("edu-dismissed",!0)};
_.L.onYtSignalActionRecordMentionsEduImpression=function(){_.kD.getInstance();var I=_.zL.set,y=parseInt(_.zL.get("edu-impressions"),10);I.call(_.zL,"edu-impressions",(isFinite(y)?y:0)+1)};
_.L.onYtPageManagerAttached=function(I){var y;((y=_.jv(I))==null?void 0:y.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.L.onInvokeInstrumentManagerAction=function(I,y){IwR(y,I)};
_.L.updateIconSet=function(){var I=this.hostElement.querySelector("#masthead");if(I){var y=_.QU(I),D=y.querySelector("g#yt-logo-updated");D&&(I=document.createElementNS("http://www.w3.org/2000/svg","defs"),I.appendChild(D.cloneNode(!0)),(y=y.querySelector("g#yt-logo-red-updated"))&&I.appendChild(y.cloneNode(!0)),this.initIconDefs("yt-logos-ext",I))}};
_.L.updateMastheadData=function(){var I=this,y,D,F,R,O;return _.S(function(w){if(w.nextAddress==1){y=I.data;D=I.hostElement.querySelector("#masthead");if(!D)return w.return();_.YC(I,function(){D.data=I.topbarData});
if(!I.get("response.topbar",y)||I.get("response.topbar.responseContext.maxAgeSeconds",y)===0)return w.jumpTo(0);if(F=_.nR().resolve(_.Ig))return w.yield(F(),6);R=_.nR().resolve(_.aK);return w.yield(R.put("service:topbar:fallback",new _.cy({innertubeResponse:I.get("response.topbar",y)})),0)}return(O=w.yieldResult)?w.yield(O.put("service:topbar:fallback",new _.cy({innertubeResponse:I.get("response.topbar",y)})),0):w.jumpTo(0)})};
_.L.computeTopbarData=function(I){if(!I)return null;var y;return this.isShortsPage&&this.topbarData&&!_.u((y=I.response)==null?void 0:y.topbar,c5C)?this.topbarData:I.response&&"topbar"in I.response?_.u(I.response.topbar,c5C)||null:null};
_.L.onSetTheaterModeEnabled=function(I,y){this.isTheaterModeSession=y.enabled;this.setTheaterModeStyles(y.enabled)};
_.L.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.L.onDarkModeToggledAction=function(){var I=_.iP(window.location.href);if(!_.woq(I)){(I=!!_.lP(window.location.href).themeRefresh)&&_.tq(new _.g6("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!I){iD1();I={themeRefresh:1};var y=_.nR().resolve(_.ja);if(y.isOnWatch()){var D,F;y=((D=y.getPlayerFromWatch())==null?void 0:(F=D.getPlayer())==null?void 0:F.getCurrentTime())||0;y>=1&&(I.time_continue=Math.floor(y))}_.sJ()||_.Jt()!=="USER_INTERFACE_THEME_DARK"||(I.theme="dark");_.FB(_.uP(window.location.href,
I))}_.l("web_appshell_refresh_trigger")&&_.Ft.caches&&this.refreshAppShellResponse();D=_.LE(window.location.href);_.By(_.nR().resolve(_.iL),_.jk(D,"theme"))}};
_.L.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.L.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.L.onPlayerFullscreen=function(I){_.o1();this.playerFullscreen=I};
_.L.setRestrictedMode=function(I){var y=_.a1();_.cg(0,58,I);y.save();_.nR().resolve(_.Wf).reload()};
_.L.onPageChanged=function(I){I.detail.newPageType==="ytd-watch-flexy"||I.detail.newPageType==="ytd-watch-fixie"||I.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.sR("WEB_PAGE_TYPE_WATCH")):I.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.sR("WEB_PAGE_TYPE_SHORTS")):I.detail.newPageType==="ytd-browse"&&I.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.sR("WEB_PAGE_TYPE_MINI_APP")):_.l("web_frosted_glass")&&I.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.sR("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.sR("WEB_PAGE_TYPE_UNKNOWN"));I.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.L.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.L.onGuideToggleTap=function(){_.lj(this.hostElement,"yt-guide-toggle")};
_.L.onGuideToggleHover=function(){_.lj(this.hostElement,"yt-guide-hover")};
_.L.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.L.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.L.setMastheadTheme=function(){var I=_.QU(this.hostElement).querySelector("#masthead");I&&(I.dark=I.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),I.isDarkThemeForced=!1)};
_.L.onRequestPanelModeChange=function(I,y){this.hideHeaderShadow=y.mode!=="seamed"};
_.L.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.L.onDrawerIronSelect=function(I){_.jv(I).id==="guide"&&this.processDrawerIronSelect()};
_.L.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var I="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(I="opened"));_.lj(this.hostElement,"yt-autonav-pause-guide-"+I)};
_.L.onAddElementToApp=function(I){_.XB(this.hostElement).appendChild(I.detail)};
_.L.onThrottledScroll=function(){var I=_.nR().resolve(_.ja).getCurrentPage();I&&(this.scrollAtTopInternal=I.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.L.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.L.setFullscreen=function(){if(_.l("external_fullscreen")||!this.isWatchPage){var I=_.l("kevlar_fullerscreen_root_only_killswitch")?!!_.o1():!!_.o1()&&_.o1()===document.documentElement;I=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(I||this.isFullWindowSession);this.fullscreen!==I&&((this.fullscreen=I)&&_.qr(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.oq().dispatch(_.T5g(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.uj(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.L.setFullscreenLoggingForShorts=function(I){var y,D,F;return _.S(function(R){if(R.nextAddress==1)return R.yield((y=_.NY())==null?void 0:y.getPlayerPromise(),2);D=R.yieldResult;(F=D)==null||F.setAppFullscreen(I);_.Cj(R)})};
_.L.updateMastheadCssHeight=function(){var I=this.mastheadHeight;this.fullscreen&&(I=0);_.pg(this.hostElement,{"--ytd-masthead-height":I+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.L.updateNetworkStatusBannerDisplayStatus=function(){var I="unset";this.fullscreen&&(I="none");_.pg(this.hostElement,{"--ytd-network-status-banner-display":I})};
_.L.updateNetworkStatusBannerCssHeight=function(){var I="unset";this.fullscreen&&(I="0px");_.pg(this.hostElement,{"--ytd-network-status-banner-max-height":I})};
_.L.updateScrollAndMasthead=function(I,y,D,F){this.iMaxTheaterMode||(F=!1);var R=_.nR().resolve(_.ja).getCurrentPage();I||y||F?(document.body.classList.add("no-scroll"),R.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.MX(this,this.onScroll)),R.setScrollTop(0),_.pg(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":ZA()+"px"})):D?_.lj(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.lj(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
R.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.MX(this,this.onScroll)));this.mastheadHidden=I||y||D;this.updateMastheadCssHeight();_.l("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.L.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.L.onYtNavigateAction=function(I){I=this.get("navigateAction.endpoint",I);_.lj(this.hostElement,"yt-navigate",{endpoint:I})};
_.L.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var I=document.createElement("yt-create-family-dialog");_.XB(this.hostElement).appendChild(I);this.hasCreateFamilyDialog=!0}};
_.L.onSetPushNotificationsEnabledCommand=function(I){var y=this,D=_.u(I,dig);D&&typeof D.enabled==="boolean"&&(Notification.permission!=="granted"?y9a().then(function(){Notification.permission==="granted"?(mUb(!D.enabled).then(dUG),D.successAction&&_.E$(y.hostElement,[D.successAction])):D.failureAction&&_.E$(y.hostElement,[D.failureAction])}):(mUb(!D.enabled).then(dUG),D.successAction&&_.E$(this.hostElement,[D.successAction])))};
_.L.onYtSignalActionEnableChromeNotifications=function(){DrC(!0)};
_.L.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.u(this.topbarData.hotkeyDialog,A5R)}}})};
_.L.onYtSignalActionShowKeyboardShortcutDialog=function(){_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.L.onYtEndpointChangeHandler=function(I,y){var D=_.l0(_.cf);D.pendingPrefetchJob_&&(y=!(!y||y.autonav!="1"),D.pendingPrefetchJob_.resolve(I&&_.vx_(I)?_.SKo(I,y):""),D.pendingPrefetchJob_=null);_.uj(this.hostElement,"yt-pause-active-page-context");_.uj(this.hostElement,"ytd-log-youthere-nav");_.uj(this.hostElement,"yt-prepare-page-dispose")};
_.L.handleCommandWithCommandHandler=function(I,y){_.M4.instance.resolveCommand(I,{form:{element:y}})};
_.L.onYtTimedCommand=function(I){var y=this;I=_.u(I,Kna);var D=I.command;D&&_.k1(_.w2,function(){var F=_.u(D,_.uXa);F?(_.M4.instance.resolveCommand(D),y.maybeLogGetAnswerRequestTick(F)):_.GC(y.hostElement,[D],y.hostElement)},I.timeoutMs||0)};
_.L.maybeLogGetAnswerRequestTick=function(I){I&&I.isFirstRequest&&(_.s$("search_overview_answer"),_.V_("so_rq",void 0,"search_overview_answer"))};
_.L.onYtSignalActionSkipNavigation=function(){var I=_.nR().resolve(_.ja).getCurrentPage();_.E6(I)};
_.L.onYtSignalActionCopyDebugData=function(){pgT()};
_.L.handleEntityUpdateCommand=function(I){_.kK(_.u(I,_.C8a).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.L.logFlowLoggingEventCommand=function(I){if(I=_.u(I,_.BSC))if(I.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var y=I.flowEventNamespace,D=I.flowEventType,F=I.flowType;F&&y&&D&&_.yaB(_.p0(y,D,I.flowEventMetadata),F)}else{y=_.mX();D=I.flowEventNamespace;F=I.flowEventType;var R=I.flowType;R&&D&&F&&y.logFlowEvent(_.p0(D,F,I.flowEventMetadata),R,I.flowNonce)}};
_.L.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.L.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.L.onTouchStart=function(){var I=_.b3();_.VO()&&_.OP(I.JSC$13582_screenManager,{visualElement:I.ve})};
_.L.handleSelectLanguageCommand=function(I){if(I=_.u(I,Q_Q).hl){var y=_.a1();y.set("hl",I);y.save();_.nR().resolve(_.Wf).reload()}};
_.L.handleConfirmDialogEndpoint=function(I){(I=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&this.ytOpenPopupBehavior.openPopup(I)};
_.L.handleOpenPopupNavigationEndpoints=function(I,y){(I=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&this.ytOpenPopupBehavior.openPopup(I,y)};
_.L.handleSaveCommandToSessionStorage=function(I){if(I=_.u(I,_.uig)){var y=I.key;y&&I.command&&window.sessionStorage.setItem(y,JSON.stringify(I.command))}};
_.L.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(I){I&&I.active&&I.active.postMessage({type:"refresh_shell"})}).catch(function(I){I.name!=="SecurityError"&&_.vu(I)})};
_.L.onDeviceThemeChanged=function(){var I=_.Lg();_.cg(_.a1(),185,I);_.a1().save()};
_.L.handleYtRegisterPromoCommand=function(I){if(_.u(I,kib)){var y=_.nR().resolve(_.ja).getCurrentPage()||this.hostElement;pNa().registerPromoCommand(_.u(I,kib),y)}};
_.L.onYtNavigateHomeAction=function(){if(!_.l("kevlar_miniplayer_navigate_home_from_app_killswitch")){var I,y,D,F,R=(F=(I=this.topbarData)==null?void 0:(y=I.logo)==null?void 0:(D=y.topbarLogoRenderer)==null?void 0:D.endpoint)!=null?F:_.e1;this.ytComponentBehavior.resolveCommand(R)}};
_.L.onYtLocationCollectionCommand=function(I){Xqy(_.u(I,DkC))};
_.L.onYtGetLocationCommand=function(I){Dve(_.u(I,ykG),this)};
_.L.updateRenderGuideFromBinding=function(I){this.renderGuide=I.detail.value};
_.L.updateGuidePersistentAndVisibleFromBinding=function(I){this.guidePersistentAndVisible=I.detail.value};
_.L.updateMiniGuideVisibleFromBinding=function(I){this.miniGuideVisible=I.detail.value};
_.L.onThemeSelected=function(I,y){var D=_.a1(),F=I||y?I:_.Lg(),R=(F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.woq(_.iP(window.location.href));_.cg(0,165,I);_.cg(0,174,y);D.save();R&&_.uj(this.hostElement,"yt-dark-mode-toggled-action",[F]);_.uj(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.L.getCurrentTheme=function(){return _.w4()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Jt()};
_.L.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.L.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.L.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.L.handleShowConsentPrimitive=function(I){var y=this,D,F;return _.S(function(R){if(R.nextAddress==1){try{D=(F=_.NY())==null?void 0:F.getPlayerPromise()}catch(O){}return R.yield(H2G(I,D),2)}_.uj(y.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Cj(R)})};
_.L.handleSelectActiveIdentityEndpointInternal=function(I){_.yU();I=_.u(I,_.cma);if(I!=null&&I.supportedTokens){I=_.J(I.supportedTokens);for(var y=I.next();!y.done;y=I.next())y=y.value,y.accountSigninToken&&_.FB(y.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.L.handleUpdatePermissionRoleCommand=function(I){if(I=_.u(I,_.a8P)){var y;this.hasDelegation=!((y=_.u(I.renderer,_.dyz))==null||!y.status)}};
_.L.registerWithViewTransitionManager=function(){var I=_.nR().resolve(_.fR(_.et));if(I){var y,D=(y=this.guide)==null?void 0:y.querySelector("#scrim"),F;y=(F=this.guide)==null?void 0:F.querySelector("#contentContainer");D&&y&&I.isAnyTransitionEnabled&&(F={},I.viewTransitionCoordinator.registerElement(D,(F.slide="app-drawer-scrim-page-transition",F["lockup-to-watch"]="app-drawer-scrim-page-transition",F["learning-journey"]="app-drawer-scrim-page-transition",F)),D={},I.viewTransitionCoordinator.registerElement(y,
(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)))}};
_.mD.Object.defineProperties(sa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.l("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.l("kevlar_show_chips_on_scroll"))}}});
_.mD.Object.defineProperties(sa,{template:{configurable:!0,enumerable:!0,get:function(){if(RDA===void 0){var I=document.createElement("template");_.G(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
I.content.insertBefore(_.b().content.cloneNode(!0),I.content.firstChild);RDA=I}I=RDA;return I}}});
sa.prototype.onOpenHotkeyDialog=sa.prototype.onOpenHotkeyDialog;sa.prototype.setFullscreen=sa.prototype.setFullscreen;sa.prototype.onAddElementToApp=sa.prototype.onAddElementToApp;sa.prototype.onDrawerIronSelect=sa.prototype.onDrawerIronSelect;sa.prototype.onGuideOpenButtonHover=sa.prototype.onGuideOpenButtonHover;sa.prototype.onRequestPanelModeChange=sa.prototype.onRequestPanelModeChange;sa.prototype.onPageDataUpdated=sa.prototype.onPageDataUpdated;sa.prototype.onPageChanged=sa.prototype.onPageChanged;
sa.prototype.onSetTheaterModeEnabled=sa.prototype.onSetTheaterModeEnabled;sa.prototype.updateMastheadData=sa.prototype.updateMastheadData;sa.prototype.onYtPageManagerAttached=sa.prototype.onYtPageManagerAttached;sa.prototype.observePersistentPanelVisibility=sa.prototype.observePersistentPanelVisibility;sa.prototype.observeGuideVisibility=sa.prototype.observeGuideVisibility;sa.prototype.guideIsVisibleButNotPersistentSelectorChanged=sa.prototype.guideIsVisibleButNotPersistentSelectorChanged;
sa.prototype.isInlinePreviewEnabledChanged=sa.prototype.isInlinePreviewEnabledChanged;sa.prototype.isWatchPageChanged=sa.prototype.isWatchPageChanged;sa.prototype.dispatchFrostedGlassMode=sa.prototype.dispatchFrostedGlassMode;_.W([_.Q(_.Jl),_.A("design:type",Object)],sa.prototype,"ytdReduxBehavior",void 0);_.W([_.Q(_.VR.YtEventForwardingBehavior),_.A("design:type",Object)],sa.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Q(_.di.YtOpenPopupBehavior),_.A("design:type",Object)],sa.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Q(_.cb.YtActionHandlerBehavior),_.A("design:type",Object)],sa.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Q({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.uK.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.l("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var I;((I=this.actionRouterNode.hostElement)!=null?I:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var I;((I=this.actionRouterNode.hostElement)!=null?I:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(I){this.actionRouter_.handleAction(I.detail)}}),
_.A("design:type",Object)],sa.prototype,"ytActionRouterBehavior",void 0);_.W([_.Q(PeZ.YtdAppBehavior),_.A("design:type",Object)],sa.prototype,"ytdAppBehavior",void 0);_.W([_.Q(_.am.YtEndpointBehavior),_.A("design:type",Object)],sa.prototype,"ytEndpointBehavior",void 0);_.W([_.Q(vQn.YtEndpointHandlerWithYpcBehavior),_.A("design:type",Object)],sa.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.W([_.Q(OjV.YtLogYpcFlowCommandsBehavior),_.A("design:type",Object)],sa.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.W([_.Q(_.V.YtRendererBehavior),_.A("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.W([_.Q(_.vb.YtComponentBehavior),_.A("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.W([_.M({selector:Cga}),_.A("design:type",Object)],sa.prototype,"tabGesturesIsActive",void 0);_.W([_.M(),_.A("design:type",Boolean)],sa.prototype,"renderGuide",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"guidePersistentAndVisible",void 0);_.W([_.M({selector:cpa}),_.A("design:type",Boolean)],sa.prototype,"guideIsVisibleButNotPersistent",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"standalone",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"miniGuideVisible",void 0);
_.W([_.M(),_.A("design:type",Object)],sa.prototype,"persistentPanelEnabled",void 0);_.W([_.M({selector:QBo,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"persistentPanelVisible",void 0);_.W([_.M({selector:_.Wk5}),_.A("design:type",Number)],sa.prototype,"miniplayerPlaybackState",void 0);_.W([_.M({selector:_.Iq,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"miniplayerIsActive",void 0);
_.W([_.M({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],sa.prototype,"isInlinePreviewEnabled",void 0);_.W([_.M(),_.A("design:type",Boolean)],sa.prototype,"isInlinePreviewDisabled",void 0);_.W([_.M({reflectToAttribute:!0,value:function(){return _.KR("START_IN_FULL_WINDOW_MODE")}}),
_.A("design:type",Boolean)],sa.prototype,"mastheadHidden",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"playerFullscreen",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"fullscreen",void 0);_.W([_.M({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"hideHeaderShadow",void 0);
_.W([_.M({value:{GUIDE_ALT_LABEL:_.zC("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.A("design:type",Object)],sa.prototype,"menuStrings",void 0);_.W([_.M({computed:"computeTopbarData(data)"}),_.A("design:type",Object)],sa.prototype,"topbarData",void 0);_.W([_.M({selector:_.k2q,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"isWatchPage",void 0);_.W([_.M({selector:_.dT_,reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"isShortsPage",void 0);
_.W([_.M({selector:function(I){return _.yp(I)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.A("design:type",Boolean)],sa.prototype,"isMiniAppPage",void 0);_.W([_.M({selector:function(I){return _.yp(I)==="WEB_PAGE_TYPE_BROWSE"}}),
_.A("design:type",Boolean)],sa.prototype,"isBrowsePage",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Boolean)],sa.prototype,"scrolling",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sa.prototype,"hasDelegation",void 0);_.W([_.M({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],sa.prototype,"guideScrolledByTouch",void 0);_.W([_.M(),_.A("design:type",Object)],sa.prototype,"isFrostedGlassInitialized",void 0);
_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sa.prototype,"frostedGlassExp",void 0);_.W([_.M({selector:function(I){return I.ui.chipBarIsSticky}}),
_.A("design:type",Boolean)],sa.prototype,"chipBarIsSticky",void 0);_.W([_.M({selector:WDT}),_.A("design:type",Boolean)],sa.prototype,"scrollAtTop",void 0);_.W([_.M({computed:"computeIsHomePage(isBrowsePage, data)"}),_.A("design:type",Boolean)],sa.prototype,"isHomePage",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sa.prototype,"hasPendingWatchNavigation",void 0);_.W([_.M({reflectToAttribute:!0}),_.A("design:type",Object)],sa.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.W([_.M(),_.A("design:type",Object)],sa.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.W([JE("guide"),_.A("design:type",Object)],sa.prototype,"guide",void 0);_.W([JE("guide-service"),_.A("design:type",uVG)],sa.prototype,"guideService",void 0);_.W([JE("guide-inner-content"),_.A("design:type",HTMLDivElement)],sa.prototype,"guideInnerContent",void 0);_.W([_.a0("#persistent-panel-container"),_.A("design:type",HTMLElement)],sa.prototype,"persistentPanelContainer",void 0);
_.W([_.M({selector:_.Cqt}),_.A("design:type",String)],sa.prototype,"frostedGlassMode",void 0);_.W([_.ke("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"dispatchFrostedGlassMode",null);_.W([_.M({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.A("design:type",Object)],sa.prototype,"isFrostedGlassDisabled",void 0);
_.W([_.ke("isWatchPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"isWatchPageChanged",null);_.W([_.Y("isHomePage","chipBarIsSticky","scrollAtTop"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sa.prototype,"applyFrostedGlassToChipBar",null);_.W([_.M(),_.A("design:type",Object)],sa.prototype,"isChannelOrPlaylistPage",void 0);
_.W([_.Bp("isInlinePreviewEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"isInlinePreviewEnabledChanged",null);_.W([_.ke("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.W([_.ke("guidePersistentAndVisible","miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"observeGuideVisibility",null);_.W([_.ke("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"observePersistentPanelVisibility",null);
_.W([_.z4("attached"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],sa.prototype,"onYtPageManagerAttached",null);_.W([_.ke("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],sa.prototype,"updateMastheadData",null);_.W([_.z4("yt-set-theater-mode-enabled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],sa.prototype,"onSetTheaterModeEnabled",null);
_.W([_.z4("yt-page-type-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sa.prototype,"onPageChanged",null);_.W([_.z4("yt-page-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"onPageDataUpdated",null);_.W([_.z4("yt-request-panel-mode-change"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],sa.prototype,"onRequestPanelModeChange",null);
_.W([_.z4("yt-guide-hover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"onGuideOpenButtonHover",null);_.W([_.z4("app-drawer-transitioned"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],sa.prototype,"onDrawerIronSelect",null);_.W([_.z4("yt-add-element-to-app"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sa.prototype,"onAddElementToApp",null);
_.W([_.z4("yt-set-fullerscreen-styles"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"setFullscreen",null);_.W([_.z4("yt-open-hotkey-dialog"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sa.prototype,"onOpenHotkeyDialog",null);_.W([_.yd({is:"ytd-app"})],sa);_.oJ().processSignal("eor");
_.F5&&_.F5.JSC$11332_setLoaded();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
